Exemplo n.º 1
0
 public DataListUpdate(dynamic paDataList, String paUpdateQuery)
 {
     clDataList       = paDataList;
     clUpdateQuery    = paUpdateQuery;
     clConnectionMode = ApplicationFrame.GetInstance().ActiveFormInfoManager.ConnectionMode;
 }
Exemplo n.º 2
0
 public String GetPolymorphicStyleSheetUrl(String paFileName)
 {
     return(ApplicationFrame.GetInstance().ClientScriptManager.GetWebResourceUrl(clType, ctPolymorphicStyleResourceTemplate.Replace("$FILENAME", paFileName)));
 }
Exemplo n.º 3
0
 public String GetToolBarScriptUrl(String paFileName)
 {
     return(ApplicationFrame.GetInstance().ClientScriptManager.GetWebResourceUrl(clType, ctToolBarScriptResourceTemplate.Replace("$FILENAME", paFileName)));
 }
Exemplo n.º 4
0
 public WidControlPOSSubscriptionInfo()
 {
     clLanguageManager = ApplicationFrame.GetInstance().ActiveSubscription.ActiveLanguage;
     clSettingManager  = ApplicationFrame.GetInstance().ActiveSubscription.ActiveSetting;
 }
Exemplo n.º 5
0
 public String GetResourceUrl(String paFileName)
 {
     return(ApplicationFrame.GetInstance().ClientScriptManager.GetWebResourceUrl(clType, paFileName));
 }
Exemplo n.º 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();
        }
Exemplo n.º 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);
                }
            }
        }
Exemplo n.º 8
0
 public WidControlPOSUpdateSubscriberInfo()
 {
     clLanguageManager = ApplicationFrame.GetInstance().ActiveSubscription.ActiveLanguage;
     clSettingManager  = ApplicationFrame.GetInstance().ActiveSubscription.ActiveSetting;
     clSubscriberRow   = RetrieveRow();
 }
Exemplo n.º 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();
        }
Exemplo n.º 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);
            }
        }