Exemple #1
0
        private void RenderBrowserMode(ComponentController paComponentController)
        {
            String lcBase64RegionalConfig;
            String lcBase64AppManifestConfig;
            String lcBase64JSONTable;

            lcBase64RegionalConfig    = General.Base64Encode(clSettingManager.RegionalConfigStr);
            lcBase64AppManifestConfig = General.Base64Encode(General.JSONSerialize(clAppManifestDictionary));
            lcBase64JSONTable         = General.Base64Encode(TimeZoneManager.GetInstance().GetJSONTable());

            IncludeExternalLinkFiles(paComponentController);

            paComponentController.AddElementType(ComponentController.ElementType.Control);
            paComponentController.AddBareAttribute(ctSETRegionalConfig, lcBase64RegionalConfig);
            paComponentController.AddBareAttribute(ctTBLAppManifest, lcBase64AppManifestConfig);
            paComponentController.AddElementAttribute(ComponentController.ElementAttribute.ea_OptionList, lcBase64JSONTable);
            paComponentController.AddAttribute(HtmlAttribute.Class, ctCLSWidControlPOSGeneralSetting);
            paComponentController.RenderBeginTag(HtmlTag.Div);

            RenderContainer(paComponentController);

            paComponentController.RenderEndTag();

            RenderExternalComponentsContainer(paComponentController);
        }
Exemple #2
0
        protected void RenderBrowserMode(ComponentController paComponentController)
        {
            String lcBase64TransactionSettingStr;
            String lcBase64SystemConfigStr;
            String lcBase64StaffPermissionStr;
            String lcBase64RegionalConfigStr;

            lcBase64SystemConfigStr       = General.Base64Encode(clSettingManager.SystemConfigStr);
            lcBase64RegionalConfigStr     = General.Base64Encode(clSettingManager.RegionalConfigStr);
            lcBase64StaffPermissionStr    = General.Base64Encode(clSettingManager.GetSettingValue(ctSETStaffPermissionSetting, "{}"));
            lcBase64TransactionSettingStr = General.Base64Encode(clSettingManager.GetSettingValue(ctSETTransactionSetting, "{}"));

            IncludeExternalLinkFiles(paComponentController);
            CreateReceiptManager();

            paComponentController.AddElementType(ComponentController.ElementType.Control);
            paComponentController.AddBareAttribute(ctSETSytemConfig, lcBase64SystemConfigStr);
            paComponentController.AddBareAttribute(ctSETRegionalConfig, lcBase64RegionalConfigStr);
            paComponentController.AddBareAttribute(ctSETTransactionSetting, lcBase64TransactionSettingStr);
            paComponentController.AddBareAttribute(ctSETStaffPermissionSetting, lcBase64StaffPermissionStr);

            // paComponentController.AddElementAttribute(ComponentController.ElementAttribute.gpos_TaxApplicable, clTaxApplicable.ToString().ToLower());
            paComponentController.AddElementAttribute(ComponentController.ElementAttribute.gpos_TransactionState, clTransactionState.ToString().ToLower());
            // paComponentController.AddElementAttribute(ComponentController.ElementAttribute.gpos_MultiPaymentMode, clMultiPaymentMode.ToString().ToLower());
            // paComponentController.AddElementAttribute(ComponentController.ElementAttribute.gpos_ReceiptPrintMode, clReceiptPrintMode.ToString().ToLower());

            // paComponentController.AddElementAttribute(ComponentController.ElementAttribute.gpos_AllowShortSell, General.ParseBoolean(clSettingManager.SystemConfig.GetData(ctKEYAllowShortSell), false).ToString().ToLower());
            // paComponentController.AddElementAttribute(ComponentController.ElementAttribute.gpos_TaxInclusive, clReceiptManager.ActiveRow.TaxInclusive.ToString().ToLower());
            // paComponentController.AddElementAttribute(ComponentController.ElementAttribute.gpos_TaxPercent, clReceiptManager.ActiveRow.TaxPercent.ToString());
            // paComponentController.AddElementAttribute(ComponentController.ElementAttribute.ea_LowerBound, GetLowerBoundDays().ToString());
            // paComponentController.AddElementAttribute(ComponentController.ElementAttribute.ea_UpperBound, GetUpperBoundDays().ToString());
            paComponentController.AddElementAttribute(ComponentController.ElementAttribute.ea_AdminMode, clAdminUser ? "true" : null);
            paComponentController.AddElementAttribute(ComponentController.ElementAttribute.ea_Mode, clMode.ToString().ToLower());
            paComponentController.AddElementAttribute(ComponentController.ElementAttribute.ea_DataID, clReceiptManager.ActiveRow.ReceiptID.ToString());
            paComponentController.AddElementAttribute(ComponentController.ElementAttribute.ea_Edition, clEdition.ToString().ToLower());
            paComponentController.AddAttribute(HtmlAttribute.Class, ctCLSWidControlPOSTransaction);
            paComponentController.RenderBeginTag(HtmlTag.Div);
            RenderTitleBar(paComponentController);
            RenderHeaderBar(paComponentController);
            RenderFields(paComponentController);

            RenderTransactionList(paComponentController);

            RenderKeyPad(paComponentController);

            paComponentController.RenderEndTag();

            RenderExternalComponentsContainer(paComponentController);


            // RenderPopUp(paComponentController, ctTIDReceiptDateInfo, ctIIGReceiptDateInfo);
            // RenderPopUp(paComponentController, ctTIDPaymentInfo, ctIIGPaymentInfo);
        }
Exemple #3
0
        private void RenderBrowserMode(ComponentController paComponentController)
        {
            String lcBase64RegionalConfig;

            IncludeExternalLinkFiles(paComponentController);

            lcBase64RegionalConfig = General.Base64Encode(clSettingManager.RegionalConfigStr);

            paComponentController.AddBareAttribute(ctSETRegionalConfig, lcBase64RegionalConfig);
            paComponentController.AddElementType(ComponentController.ElementType.Control);
            paComponentController.AddAttribute(HtmlAttribute.Class, ctCLSWidControlPOSLanguageSetting);
            paComponentController.RenderBeginTag(HtmlTag.Div);

            RenderContainer(paComponentController);

            paComponentController.RenderEndTag();
        }