Esempio n. 1
0
        private void IncludeDeviceScriptList(ComponentController paComponentController, JavaScriptManager paJavaScriptManager)
        {
            String[] lcScriptList;

            lcScriptList = PrinterController.GetInstance().GetDeviceScriptList(clPrimaryPrinterName);

            if (lcScriptList != null)
            {
                for (int lcCount = 0; lcCount < lcScriptList.Length; lcCount++)
                {
                    if (!String.IsNullOrEmpty(lcScriptList[lcCount]))
                    {
                        paJavaScriptManager.IncludeExternalJavaScript(ResourceManager.GetInstance().GetFoundationScriptUrl(lcScriptList[lcCount]));
                    }
                }
            }
        }
Esempio n. 2
0
        private void RenderBrowserMode(ComponentController paComponentController)
        {
            IncludeExternalLinkFiles(paComponentController);

            paComponentController.AddElementAttribute(ComponentController.ElementAttribute.ea_AdditionalData, PrinterController.GetInstance().PrinterListBase64JSON);
            paComponentController.AddElementAttribute(ctSETPrimaryPrinterSetting, clPrimaryPrinterSetting);
            paComponentController.AddElementAttribute(ComponentController.ElementAttribute.ea_Template, clTestPrintTemplate);
            paComponentController.AddElementType(ComponentController.ElementType.Control);
            paComponentController.AddAttribute(HtmlAttribute.Class, ctCLSWidControlPOSPrinterSetting);
            paComponentController.RenderBeginTag(HtmlTag.Div);

            RenderTitle(paComponentController);
            RenderContentContainer(paComponentController);
            RenderStatusOverlay(paComponentController);
            paComponentController.RenderEndTag();

            RenderExternalComponentsContainer(paComponentController);
        }
Esempio n. 3
0
        private void RenderSelectionPanel(ComponentController paComponentController)
        {
            SubControlSelectionPanel lcSubControlSelectionPanel;

            lcSubControlSelectionPanel = new SubControlSelectionPanel(ctPanelType, ctPanelAppearance, ctDYTPanelTitle, PrinterController.GetInstance().GetPrinterNameDictionary());

            lcSubControlSelectionPanel.RenderChildMode(paComponentController);
        }