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