private void ResetPassword() { String lcDataBlock; String lcQueryName; String lcResult; if ((!String.IsNullOrWhiteSpace(lcQueryName = ApplicationFrame.GetParameter(ctARGParameter))) && (!String.IsNullOrWhiteSpace(lcDataBlock = ApplicationFrame.GetParameter(ctARGDataBlock)))) { try { if ((lcResult = DynamicQueryManager.GetInstance().GetStringResult(DynamicQueryManager.ExecuteMode.Scalar, lcQueryName, General.Base64Decode(lcDataBlock))) != null) { clServiceResponse.AddResponse(CobraServiceResponse.RSP_Result.ToString(), lcResult); clServiceResponse.Success = true; } } catch (Exception paException) { if (paException.InnerException != null) { TranslateException(paException.InnerException); } } } }
private void CreateLogInSession() { String lcErrorMessage; String lcUserName; String lcPassword; lcErrorMessage = String.Empty; if ((!String.IsNullOrWhiteSpace(lcUserName = ApplicationFrame.GetParameter(ctARGLogInID))) && (!String.IsNullOrWhiteSpace(lcPassword = ApplicationFrame.GetParameter(ctARGPassword)))) { if (ApplicationFrame.GetInstance().ActiveSessionController.LogIn(lcUserName, lcPassword)) { clServiceResponse.Success = true; } else { lcErrorMessage = ApplicationFrame.GetInstance().ActiveSessionController.User.GetLastResultStr(); } } if (!clServiceResponse.Success) { clServiceResponse.AddResponse("ErrorMessage", String.IsNullOrWhiteSpace(lcErrorMessage) ? ctUnexpectedError : lcErrorMessage); } }
public WidControlPOSPrinterSetting() { clLanguageManager = ApplicationFrame.GetInstance().ActiveSubscription.ActiveLanguage; clSettingManager = ApplicationFrame.GetInstance().ActiveSubscription.ActiveSetting; clPrimaryPrinterSetting = General.Base64Encode(clSettingManager.GetSettingValue(ctSETPrimaryPrinterSetting, "{}")); clTestPrintTemplate = General.Base64Encode(clSettingManager.GetSettingValue(ctSETTestPrintReceipt, "{}")); }
public SubControlImageProcessor(String paTitle) { clTitle = paTitle; clSettingManager = ApplicationFrame.GetInstance().ActiveSubscription.ActiveSetting; clLanguageManager = ApplicationFrame.GetInstance().ActiveSubscription.ActiveLanguage; }
public SubControlPOSPaymentPanel() { clSettingManager = ApplicationFrame.GetInstance().ActiveSubscription.ActiveSetting; clLanguageManager = ApplicationFrame.GetInstance().ActiveSubscription.ActiveLanguage; clTransactionSetting = General.JSONDeserialize <Dictionary <String, String> >(clSettingManager.GetSettingValue(ctSETTransactionSetting)); }
protected void RenderBrowserMode(ComponentController paComponentController) { InputInfoManager lcInputInfoManager; MetaDataRow lcMetaDataRow; IncludeExternalLinkFiles(paComponentController); lcInputInfoManager = ApplicationFrame.GetInstance().ActiveFormInfoManager.FieldInfoManager.ActiveInputInfoManager; lcInputInfoManager.CustomComponentRenderer += CustomComponentRendererHandler; lcMetaDataRow = new MetaDataRow(SC_ActiveDataRow); paComponentController.AddElementAttribute(ComponentController.ElementAttribute.ea_ControlMode, "standard"); paComponentController.AddElementType(ComponentController.ElementType.Control); paComponentController.AddAttribute(HtmlAttribute.Class, ctCLSWidControlCreateUser); paComponentController.RenderBeginTag(HtmlTag.Div); RenderConfirmationTitle(paComponentController); paComponentController.AddElementType(ComponentController.ElementType.Container); paComponentController.RenderBeginTag(HtmlTag.Div); if (lcInputInfoManager != null) { lcInputInfoManager.RenderAllSubGroups(paComponentController, lcMetaDataRow); } paComponentController.RenderEndTag(); RenderButtonPanel(paComponentController); paComponentController.RenderEndTag(); }
public WidControlPOSAddAdjustUnit() { clUnitRow = RetrieveRow(); clControlMode = General.ParseEnum <ControlMode>(ApplicationFrame.GetInstance().ActiveFormInfoManager.GetFormParam(ctFPMControlMode), ControlMode.Custom); clLanguageManager = ApplicationFrame.GetInstance().ActiveSubscription.ActiveLanguage; }
private static POSReceiptRow CreateNewPOSReceiptRow(ReceiptType paReceiptType) { bool lcTaxApplicable; POSReceiptRow lcPOSReceiptRow; lcPOSReceiptRow = new POSReceiptRow(EServiceTableManager.GetInstance().GetNewRow(EServiceTableManager.TableType.POSReceipt, true)); lcTaxApplicable = General.ParseBoolean(ApplicationFrame.GetInstance().ActiveSubscription.ActiveSetting.GetSettingValue(ctSETTaxApplicable), false); lcPOSReceiptRow.ReceiptID = -1; lcPOSReceiptRow.ReceiptNo = GetPOSLastReceiptNo(paReceiptType) + 1; lcPOSReceiptRow.ReceiptDate = General.GetCurrentSystemLocalTime(); if ((lcTaxApplicable) && (paReceiptType == ReceiptType.Sale)) { lcPOSReceiptRow.TaxPercent = General.ParseDecimal(ApplicationFrame.GetInstance().ActiveSubscription.ActiveSetting.GetSettingValue(ctSETTaxPercent), 0); } else { lcPOSReceiptRow.TaxPercent = 0; } lcPOSReceiptRow.TaxInclusive = General.ParseBoolean(ApplicationFrame.GetInstance().ActiveSubscription.ActiveSetting.GetSettingValue(ctSETTaxInclusive), false); lcPOSReceiptRow.ReceiptType = paReceiptType.ToString().ToUpper(); lcPOSReceiptRow.Status = Status.Active.ToString().ToUpper(); return(lcPOSReceiptRow); }
protected void RenderBrowserMode(ComponentController paComponentController) { IncludeExternalLinkFiles(paComponentController); clReceiptList = ApplicationFrame.GetInstance().ActiveFormInfoManager.RunRetrieveQuery(); paComponentController.AddElementType(ComponentController.ElementType.Control); paComponentController.AddElementAttribute(ComponentController.ElementAttribute.ea_Template, ctTPLEditReceipt); paComponentController.AddElementAttribute(ComponentController.ElementAttribute.ea_LowerBound, GetLowerBoundDays().ToString()); paComponentController.AddElementAttribute(ComponentController.ElementAttribute.ea_UpperBound, GetUpperBoundDays().ToString()); paComponentController.AddElementAttribute(ComponentController.ElementAttribute.ea_Edition, clEdition.ToString().ToLower()); paComponentController.AddElementAttribute(ComponentController.ElementAttribute.ea_Filter, ctDefaultType); paComponentController.AddAttribute(HtmlAttribute.Class, ctCLSWidControlPOSReceiptList); paComponentController.RenderBeginTag(HtmlTag.Div); RenderTitleBar(paComponentController); RenderHeaderBar(paComponentController); SCI_ParentForm.RenderToolBar(paComponentController); RenderReceiptContainer(paComponentController); RenderSummaryBar(paComponentController); RenderNoReceiptDiv(paComponentController); paComponentController.RenderEndTag(); RenderExternalComponentsContainer(paComponentController); }
public WidControlPOSTableManager() { clTableList = null; clLanguageManager = ApplicationFrame.GetInstance().ActiveSubscription.ActiveLanguage; clSettingManger = ApplicationFrame.GetInstance().ActiveSubscription.ActiveSetting; }
public WidControlPOSWidgetRestriction() { clUserList = null; clLanguageManager = ApplicationFrame.GetInstance().ActiveSubscription.ActiveLanguage; clSettingManger = ApplicationFrame.GetInstance().ActiveSubscription.ActiveSetting; }
public WidControlPOSControlPanel() { clLanguageManager = ApplicationFrame.GetInstance().ActiveSubscription.ActiveLanguage; clSettingManager = ApplicationFrame.GetInstance().ActiveSubscription.ActiveSetting; clSettingOptions = General.JSONDeserialize <Dictionary <String, dynamic> >(clSettingManager.GetSettingValue(ctSETSettingOptions)); }
private void RenderWidgetListContainer(ComponentController paComponentController) { ViewWidgetSubscriptionRow lcWidgetSubscriptionRow; DataRow[] lcWidgetRows; lcWidgetRows = ApplicationFrame.GetInstance().ActiveSubscription.ActiveWidgetSubscription.ActiveTable.Select(ctFLTType, ctCOLSortPriority); paComponentController.AddElementType(ComponentController.ElementType.List); paComponentController.AddAttribute(HtmlAttribute.Class, ctCLSWidgetList); paComponentController.RenderBeginTag(HtmlTag.Div); lcWidgetSubscriptionRow = new ViewWidgetSubscriptionRow(null); if (lcWidgetRows != null) { for (int lcCount = 0; lcCount < lcWidgetRows.Length; lcCount++) { lcWidgetSubscriptionRow.Row = lcWidgetRows[lcCount]; RenderWidgetRow(paComponentController, lcWidgetSubscriptionRow); } } paComponentController.RenderEndTag(); }
private void RenderContainerContent(ComponentController paComponentController) { DateTime lcDate; Decimal lcTotalAmount; Decimal lcTotalCost; Decimal lcGrandTotalAmount; Decimal lcGrandTotalCost; DataTable lcMonthlyTransaction; lcMonthlyTransaction = ApplicationFrame.GetInstance().ActiveFormInfoManager.RunRetrieveQuery(); RenderHeaderRow(paComponentController); paComponentController.AddElementType(ComponentController.ElementType.List); paComponentController.RenderBeginTag(HtmlTag.Div); for (int lcCount = 0; lcCount < lcMonthlyTransaction.Rows.Count; lcCount++) { lcDate = Convert.ToDateTime(lcMonthlyTransaction.Rows[lcCount][ctCOLReceiptDate]); lcTotalAmount = Convert.ToDecimal(lcMonthlyTransaction.Rows[lcCount][ctCOLTotalAmount]); lcTotalCost = Convert.ToDecimal(lcMonthlyTransaction.Rows[lcCount][ctCOLTotalCost]); RenderEntryRow(paComponentController, lcDate, lcTotalAmount, lcTotalCost); } paComponentController.RenderEndTag(); lcGrandTotalAmount = General.SumDecimal(lcMonthlyTransaction, ctCOLTotalAmount); lcGrandTotalCost = General.SumDecimal(lcMonthlyTransaction, ctCOLTotalCost); RenderSummaryRow(paComponentController, lcGrandTotalAmount, lcGrandTotalCost); }
public SubControlCalendar(String paTitle = null) { String lcDayOfWeekStr; clSettingManager = ApplicationFrame.GetInstance().ActiveSubscription.ActiveSetting; clLanguageManager = ApplicationFrame.GetInstance().ActiveSubscription.ActiveLanguage; if (paTitle != null) { clTitle = paTitle; } else { clTitle = clTitle = ctTXTCalendarTitle; } clMonthList = clLanguageManager.GetText(ctTXTMonthList); if ((lcDayOfWeekStr = clLanguageManager.GetText(ctTXTDayOfWeek)) != null) { clDayOfWeek = lcDayOfWeekStr.Split(new String[] { ctDLMComma }, StringSplitOptions.None); } if ((clDayOfWeek == null) || (clDayOfWeek.Length != 7)) { clDayOfWeek = ctDEFDayOfWeek.Split(new String[] { ctDLMComma }, StringSplitOptions.None); } }
public SubControlPOSReceiptOutput() { clLanguageManager = ApplicationFrame.GetInstance().ActiveSubscription.ActiveLanguage; clSetting = ApplicationFrame.GetInstance().ActiveSubscription.ActiveSetting; LoadLayoutDictionary(); }
private void RenderTitle(ComponentController paComponentController) { paComponentController.AddAttribute(HtmlAttribute.Class, ctCLSCategoryTitle); paComponentController.RenderBeginTag(HtmlTag.Div); paComponentController.Write(ApplicationFrame.GetInstance().ActiveFormInfoManager.TranslateString(SC_CategoryTitle)); paComponentController.RenderEndTag(); }
public WidControlPOSLogIn() { clLandingPage = String.Empty; clLanguageManager = ApplicationFrame.GetInstance().ActiveSubscription.ActiveLanguage; clSettingManager = ApplicationFrame.GetInstance().ActiveSubscription.ActiveSetting; }
public SubControlWidgetGroup(ViewWidgetSubscriptionRow paWidgetSubscriptionRow, DataRow[] paWidgetRows) { clWidgetRows = paWidgetRows; clWidgetSubscriptionRow = paWidgetSubscriptionRow; clLanguageManager = ApplicationFrame.GetInstance().ActiveSubscription.ActiveLanguage; clEffectiveRole = ApplicationFrame.GetInstance().GetEffectiveRoleList(); }
public WidControlPOSChangePassword() { clUserRow = RetrieveRow(); clLanguageManager = ApplicationFrame.GetInstance().ActiveSubscription.ActiveLanguage; clSettingManager = ApplicationFrame.GetInstance().ActiveSubscription.ActiveSetting; }
public SubControlPOSTransactionList(POSReceiptManager paReceiptManager) { clReceiptManager = paReceiptManager; clReceiptDetail = null; clLanguageManager = ApplicationFrame.GetInstance().ActiveSubscription.ActiveLanguage; clSettingManager = ApplicationFrame.GetInstance().ActiveSubscription.ActiveSetting; }
public WidControlWidgetPanel() { SC_WidgetList = null; SC_EffectiveRole = new String[0]; clSettingManager = ApplicationFrame.GetInstance().ActiveSubscription.ActiveSetting; clRestrictedWidgets = clSettingManager.GetSettingValue(ctSETRestrictedWidget.Replace("$USERID", ApplicationFrame.GetInstance().ActiveSessionController.User.ActiveRow.UserID.ToString())); }
//Dictionary<String, String> clAppGrouping; //Dictionary<String, String> clWallPaper; public WidControlPOSAppearanceSetting() { clLanguageManager = ApplicationFrame.GetInstance().ActiveSubscription.ActiveLanguage; clSettingManager = ApplicationFrame.GetInstance().ActiveSubscription.ActiveSetting; //clAppGrouping = General.JSONDeserialize<Dictionary<String, String>>(clSettingManager.GetSettingValue(ctSETApplicationGrouping)); //clWallPaper = General.JSONDeserialize<Dictionary<String, String>>(clSettingManager.GetSettingValue(ctSETWallPaper)); }
public WidControlPOSDailyStockBalance() { clItemList = null; clLanguageManager = ApplicationFrame.GetInstance().ActiveSubscription.ActiveLanguage; clSettingManager = ApplicationFrame.GetInstance().ActiveSubscription.ActiveSetting; clAdminUser = ApplicationFrame.GetInstance().ActiveSessionController.User.IsAdminUser(); clStaffPermissionSetting = General.JSONDeserialize <Dictionary <String, String> >(clSettingManager.GetSettingValue(ctSETStaffPermissionSetting)); }
public DataRecordUpdate(Dictionary <String, String> paDataList, String paUpdateQuery) { clDataList = paDataList; clUpdateQuery = paUpdateQuery; clConnectionMode = ApplicationFrame.GetInstance().ActiveFormInfoManager.ConnectionMode; clMetaMode = ApplicationFrame.GetInstance().ActiveFormInfoManager.IsAttributeSet(FormInfoManager.FormAttribute.MetaMode); }
public RegisteredEnergyObservationSourceWrapper(ApplicationFrame <T> app, IEnergyObservationSource <T> inner) { _app = app ?? throw new ArgumentNullException(nameof(app)); _inner = inner ?? throw new ArgumentNullException(nameof(inner)); _processingGroups = new List <IProcessingGroup <T> >(); Subscribe(this); }
protected void InitializePage() { ApplicationFrame.GetInstance().SetAjaxRequestMode(false); AppManifestManager.AddAndriodManifestLink(); CSSStyleManager.IncludeStandardStyleSheet(); JavaScriptManager.IncludeStandardJavaScript(); CSSStyleManager.InsertEmbeddedFontStyle(ApplicationFrame.GetInstance().GetEmbeddedFontList()); }
public void Dispose() { DeregisterPageDataContextEvents(); DeregisterPageEvents(); DeregisterFrameEvents(); PageDataContext = null; Page = null; Frame = null; }
public SubControlWidgetIcon() { SC_WidgetIcon = String.Empty; SC_WidgetLabel = String.Empty; SC_WidgetLink = String.Empty; SC_WidgetCategory = String.Empty; clLanguageManager = ApplicationFrame.GetInstance().ActiveSubscription.ActiveLanguage; }
public String GetWidgetScriptUrl(WidgetCategory paWidgetCategory, String paFileName) { String lcResourceName; lcResourceName = ctWidgetScriptResourceTemplate.Replace("$FILENAME", paFileName); lcResourceName = lcResourceName.Replace("$CATEGORY", clWidgetCategoryFolderList[(int)paWidgetCategory]); return(ApplicationFrame.GetInstance().ClientScriptManager.GetWebResourceUrl(clType, lcResourceName)); }