示例#1
0
 public DataListUpdate(dynamic paDataList, String paUpdateQuery)
 {
     clDataList       = paDataList;
     clUpdateQuery    = paUpdateQuery;
     clConnectionMode = ApplicationFrame.GetInstance().ActiveFormInfoManager.ConnectionMode;
 }
示例#2
0
 public String GetPolymorphicStyleSheetUrl(String paFileName)
 {
     return(ApplicationFrame.GetInstance().ClientScriptManager.GetWebResourceUrl(clType, ctPolymorphicStyleResourceTemplate.Replace("$FILENAME", paFileName)));
 }
示例#3
0
 public String GetToolBarScriptUrl(String paFileName)
 {
     return(ApplicationFrame.GetInstance().ClientScriptManager.GetWebResourceUrl(clType, ctToolBarScriptResourceTemplate.Replace("$FILENAME", paFileName)));
 }
示例#4
0
 public WidControlPOSSubscriptionInfo()
 {
     clLanguageManager = ApplicationFrame.GetInstance().ActiveSubscription.ActiveLanguage;
     clSettingManager  = ApplicationFrame.GetInstance().ActiveSubscription.ActiveSetting;
 }
示例#5
0
 public String GetResourceUrl(String paFileName)
 {
     return(ApplicationFrame.GetInstance().ClientScriptManager.GetWebResourceUrl(clType, paFileName));
 }
示例#6
0
        private void RenderServiceInfoPanel(ComponentController paComponentController)
        {
            String lcSubscriptionTypeText;
            String lcSubscriptionCode;

            paComponentController.AddElementType(ComponentController.ElementType.Block);
            paComponentController.AddAttribute(HtmlAttribute.Class, ctCLSInfoGroup);
            paComponentController.RenderBeginTag(HtmlTag.Div);

            RenderInfoHeader(paComponentController, ctDYTServiceTitle);

            lcSubscriptionCode     = ApplicationFrame.GetInstance().ActiveSubscription.ActiveRow.SubscriptionID;
            lcSubscriptionCode     = lcSubscriptionCode.Substring(lcSubscriptionCode.Length - ctSubscriptionCodeLength);
            lcSubscriptionTypeText = ctDTTSubscriptionTypeTemplate.Replace("$SUBSCRIPTIONTYPE", ApplicationFrame.GetInstance().ActiveSubscription.ActiveRow.Type.ToUpper());

            RenderInfoRow(paComponentController, ctDYTServiceName, clLanguageManager.GetText(ApplicationFrame.GetInstance().ActiveEservice.ActiveRow.ServiceName));
            RenderInfoRow(paComponentController, ctDYTSubscriptionType, clLanguageManager.GetText(lcSubscriptionTypeText));
            RenderInfoRow(paComponentController, ctDYTSubscriptionCode, lcSubscriptionCode);

            paComponentController.RenderEndTag();
        }
示例#7
0
        protected void AddFormStyle(ComponentController paComponentController)
        {
            String lcFormCSSClass;
            String lcCustomWallPaper;

            lcFormCSSClass = String.IsNullOrWhiteSpace(clFormInfoManager.ActiveRow.FormCSSClass) ? clFormInfoManager.ActiveRow.RenderMode : clFormInfoManager.ActiveRow.FormCSSClass;

            paComponentController.AddAttribute(HtmlAttribute.Class, ctCLSPanel + " " + lcFormCSSClass);
            paComponentController.AddElementType(ComponentController.ElementType.Form);

            if (ApplicationFrame.GetInstance().ActiveSubscription.IsDemoMode())
            {
                paComponentController.AddElementAttribute(ComponentController.ElementAttribute.ea_DemoMode, "true");
            }

            paComponentController.AddElementAttribute(ComponentController.ElementAttribute.ea_FormProtocolList, General.Base64Encode(clSettingManager.FormProtocolListStr));
            paComponentController.AddElementAttribute(ComponentController.ElementAttribute.ea_ServiceRequestToken, ApplicationFrame.GetInstance().ActiveServiceRequestToken);
            paComponentController.AddElementAttribute(ComponentController.ElementAttribute.ea_FormStack, ApplicationFrame.GetInstance().FormStack);
            paComponentController.AddElementAttribute(ComponentController.ElementAttribute.ea_FormName, clFormInfoManager.ActiveRow.FormName);
            paComponentController.AddElementAttribute(ComponentController.ElementAttribute.ea_EncodedFormName, clFormInfoManager.EncodedFormName);
            paComponentController.AddElementAttribute(ComponentController.ElementAttribute.ea_DataGroupName, clFormInfoManager.ActiveRow.DataGroup);
            paComponentController.AddElementAttribute(ComponentController.ElementAttribute.ea_LandingPage, General.Base64Encode(ApplicationFrame.GetInstance().ActiveSubscription.GetLandingPage()));
            paComponentController.AddElementAttribute(ComponentController.ElementAttribute.ea_Language, ApplicationFrame.GetInstance().ActiveSubscription.ActiveLanguage.ActiveRow.Language.ToLower());
            paComponentController.AddElementAttribute(ComponentController.ElementAttribute.ea_LocalNumberMode, ApplicationFrame.GetInstance().ActiveSubscription.ActiveSetting.LocalNumberMode.ToString().ToLower());
            paComponentController.AddElementAttribute(ComponentController.ElementAttribute.ea_LocalDigits, ApplicationFrame.GetInstance().ActiveSubscription.ActiveLanguage.LocalDigits);
            paComponentController.AddStyle(CSSStyle.Width, clFormInfoManager.ActiveRow.FormWidth.ToString() + ConfigClass.GetInstance().StandardXUnit);
            paComponentController.AddStyle(CSSStyle.Height, clFormInfoManager.ActiveRow.FormHeight.ToString() + ConfigClass.GetInstance().StandardYUnit);

            if ((lcCustomWallPaper = ApplicationFrame.GetInstance().ActiveSubscription.GetCustomWallPaper(clFormInfoManager.ActiveRow.FormName)) != null)
            {
                if (lcCustomWallPaper.ToLower().Contains(ctWallPaperPath))
                {
                    SetCustomBackground(paComponentController, lcCustomWallPaper);
                }
                else
                {
                    paComponentController.AddElementAttribute(ComponentController.ElementAttribute.ea_desktopbackgroundcss, lcCustomWallPaper);
                }
            }
        }
示例#8
0
 public WidControlPOSUpdateSubscriberInfo()
 {
     clLanguageManager = ApplicationFrame.GetInstance().ActiveSubscription.ActiveLanguage;
     clSettingManager  = ApplicationFrame.GetInstance().ActiveSubscription.ActiveSetting;
     clSubscriberRow   = RetrieveRow();
 }
示例#9
0
        private void RenderBrowserMode(ComponentController paComponentController)
        {
            IncludeExternalLinkFiles(paComponentController);

            paComponentController.AddElementAttribute(ComponentController.ElementAttribute.ea_DataID, ApplicationFrame.GetInstance().ActiveSubscription.ActiveRow.SubscriptionID);
            paComponentController.AddElementType(ComponentController.ElementType.Control);
            paComponentController.AddAttribute(HtmlAttribute.Class, ctCLSWidControlPOSUpdateSubscriberInfo);
            paComponentController.RenderBeginTag(HtmlTag.Div);

            RenderContactPersonPanel(paComponentController);
            RenderBusinessInfoPanel(paComponentController);

            RenderButtonPanel(paComponentController);
            paComponentController.RenderEndTag();
        }
示例#10
0
        protected String GetHyperLink(String paToolItemName, String paLink, out String paFormName)
        {
            Match lcMatch;

            paFormName = String.Empty;

            if (!String.IsNullOrEmpty(paLink))
            {
                if (paLink == ctHome)
                {
                    return(ctToolLinkTemplate.Replace("$FORMNAME", HttpUtility.UrlEncode(General.Base64Encode(paFormName = ApplicationFrame.GetInstance().ActiveSubscription.GetHomeForm()))));
                }
                else if ((lcMatch = Regex.Match(paLink, ctRegExFormLink)).Success)
                {
                    return(ctToolLinkTemplate.Replace("$FORMNAME", HttpUtility.UrlEncode(General.Base64Encode(paFormName = lcMatch.Groups[ctGRPFormName].Value))));
                }
                else
                {
                    return(paLink);
                }
            }
            else
            {
                return(null);
            }
        }