protected function onReadyHook()
 {
     parent::onReadyHook();
     // TODO: Change the autogenerated stub
 }
 public function render()
 {
     $this->style();
     parent::render();
 }
    public function render()
    {
        if ($this->data['nopermission'] === true) {
            $this->layout_nopermission();
            return;
        }
        $this->style();
        parent::render();
        ?>
        <div id="qdmvcRootDiv" style="display: none; width: inherit; height: inherit">
            <?php 
        echo $this->preConfig();
        ?>
            <?php 
        echo $this->internalGateway();
        ?>
            <?php 
        echo $this->externalGateway();
        ?>

            <?php 
        echo $this->formValidation();
        ?>
            <?php 
        echo $this->progressSpinner();
        ?>
            <?php 
        echo $this->lookupWindowLayout();
        ?>
            <?php 
        echo $this->lookupDatePickerLayout();
        ?>
            <?php 
        echo $this->Bar();
        ?>
            <?php 
        echo $this->msgPanelLayout();
        ?>
            <?php 
        echo $this->progressLoader();
        ?>
            <?php 
        echo $this->onReadyHook();
        ?>
            <?php 
        echo $this->applyKOBinding();
        ?>
        </div>
    <?php 
    }
    protected function onReadyHook()
    {
        parent::onReadyHook();
        // TODO: Change the autogenerated stub
        ?>
        <script>
            (function ($) {
                $(document).ready(function () {
                    MYAPP.viewModel = {
                        selectedQueue_length: ko.observable(0)
                    };
                    ko.applyBindings(MYAPP.viewModel);
                });
            })(jQuery);

        </script>
    <?php 
    }