private void RegisterJavascript() { string partyNameParameter = ConfigurationHelper.GetParameter("PartyName"); string script = JSUtility.GetVar("partyNameParameter", partyNameParameter); PageUtility.RegisterJavascript("PartiesPopup_Vars", script, this.Page, true); }
private void AddScrudCustomValidatorErrorMessages() { string javascript = JSUtility.GetVar("dateErrorMessageLocalized", Warnings.DateErrorMessage); Common.PageUtility.RegisterJavascript("VoucherVerification_ScrudCustomValidatorMessages", javascript, this.Page, true); }
private void AddScrudCustomValidatorErrorMessages() { string javascript = JSUtility.GetVar("dateErrorMessageLocalized", Warnings.DateErrorMessage); Common.PageUtility.RegisterJavascript("RecurringInvoiceSetup_ScrudCustomValidatorErrorMessages", javascript, this.Page, true); }
private void AddScrudCustomValidatorErrorMessages() { string javascript = JSUtility.GetVar("compareCompoundUnitOfMeasureErrorMessageLocalized", Errors.CompoundUnitOfMeasureErrorMessage); PageUtility.RegisterJavascript("CompoundUnit_ScrudCustomValidatorErrorMessages", javascript, this.Page, true); }
private void AddScrudCustomValidatorErrorMessages() { string javascript = JSUtility.GetVar("itemErrorMessageLocalized", Warnings.ItemErrorMessage); javascript += JSUtility.GetVar("recurringAmountErrorMessageLocalized", Warnings.RecurringAmountErrorMessage); Common.PageUtility.RegisterJavascript("RecurringInvoice_ScrudCustomErrorMessages", javascript, this.Page, true); }
private void RegisterJavascript() { string script = JSUtility.GetVar("allFieldsRequiredLocalized", Resources.Labels.AllFieldsRequired); script += JSUtility.GetVar("confirmedPasswordDoesNotMatch", Resources.Labels.ConfirmedPasswordDoesNotMatch); PageUtility.RegisterJavascript("InstallPage_Vars", script, this.Page, true); }
private void RegisterJavascriptVariables() { string javascript = JSUtility.GetVar("totalSalesLocalized", Titles.TotalSales); javascript += JSUtility.GetVar("baseCurrencyCode", CurrentUser.GetSignInView().CurrencyCode); PageUtility.RegisterJavascript("SalesByGeographyWidget_Localized", javascript, this.Page, true); }
private void AddScrudCustomValidatorMessages() { string javascript = JSUtility.GetVar("compareAmountErrorMessageLocalized", Warnings.CompareAmountErrorMessage); Common.PageUtility.RegisterJavascript("BonusSlabDetails_CustomValidatorMessages", javascript, this.Page, true); }
private void RegisterJavascript() { string javascript = JSUtility.GetVar("actualLocalized", Titles.Actual); javascript += JSUtility.GetVar("differenceLocalized", Titles.Difference); PageUtility.RegisterJavascript("Adjustment_Localized", javascript, this.Page, true); }
private void AddScrudCustomValidatorErrorMessages() { string javascript = JSUtility.GetVar("dateErrorMessageLocalized", Warnings.DateErrorMessage); javascript += JSUtility.GetVar("comparePriceErrorMessageLocalized", Warnings.ComparePriceErrorMessage); Common.PageUtility.RegisterJavascript("SalesTaxExempts_ScrudCustomValidatorErrorMessages", javascript, this.Page, true); }
private void AddScript() { string fileName = Path.GetFileName(this.AttachmentFileName); var script = JSUtility.GetVar("fileName", fileName); PageUtility.RegisterJavascript("Checklist", script, this.Page, true); JSUtility.AddJSReference(this.Page, "MixERP.Net.WebControls.TransactionChecklist.Scripts.TransactionChecklist.js", "TransactionChecklistForm", typeof(TransactionChecklistForm)); }
private void RegisterJavascript() { string script = JSUtility.GetVar("culture", CultureManager.GetCurrent().Name); script += JSUtility.GetVar("language", CultureManager.GetCurrent().TwoLetterISOLanguageName); script += JSUtility.GetVar("jqueryUIi18nPath", this.Page.ResolveUrl("~/Scripts/jquery-ui/i18n")); script += JSUtility.GetVar("today", string.Format(CultureManager.GetCurrent(), CultureManager.GetCurrent().DateTimeFormat.ShortDatePattern, DateTime.Now)); script += JSUtility.GetVar("now", DateTime.Now.ToString(CultureManager.GetCurrent())); script += JSUtility.GetVar("date", DateTime.Now.ToString(CultureInfo.InvariantCulture)); script += JSUtility.GetVar("reportTemplatePath", PageUtility.ResolveUrl(DbConfig.GetScrudParameter(AppUsers.GetCurrentUserDB(), "TemplatePath"))); script += JSUtility.GetVar("reportExportTemplatePath", PageUtility.ResolveUrl(DbConfig.GetScrudParameter(AppUsers.GetCurrentUserDB(), "ExportTemplatePath"))); script += JSUtility.GetVar("reportHeaderPath", PageUtility.ResolveUrl(DbConfig.GetScrudParameter(AppUsers.GetCurrentUserDB(), "HeaderPath"))); script += JSUtility.GetVar("userId", AppUsers.GetCurrent().View.UserId); script += JSUtility.GetVar("user", AppUsers.GetCurrent().View.UserName); script += JSUtility.GetVar("officeCode", AppUsers.GetCurrent().View.OfficeCode); script += JSUtility.GetVar("office", AppUsers.GetCurrent().View.OfficeName); script += JSUtility.GetVar("applicationDates", JsonConvert.SerializeObject(DatePersister.GetFrequencyDates(AppUsers.GetCurrentUserDB(), AppUsers.GetCurrent().View.OfficeId.ToInt())), false); script += JSUtility.GetVar("metaView", JsonConvert.SerializeObject(AppUsers.GetCurrent().View), false); script += JSUtility.GetVar("overridePath", this.OverridePath); script += JSUtility.GetVar("shortDateFormat", CultureManager.GetShortDateFormat()); script += JSUtility.GetVar("longDateFormat", CultureManager.GetLongDateFormat()); script += JSUtility.GetVar("thousandSeparator", CultureManager.GetThousandSeparator()); script += JSUtility.GetVar("decimalSeparator", CultureManager.GetDecimalSeparator()); script += JSUtility.GetVar("currencyDecimalPlaces", CultureManager.GetCurrencyDecimalPlaces()); script += JSUtility.GetVar("currencySymbol", CultureManager.GetCurrencySymbol()); script += JSUtility.GetVar("today", DateTime.Now.ToShortDateString()); script += JSUtility.GetVar("shortDateFormat", CultureManager.GetShortDateFormat()); script += JSUtility.GetVar("thousandSeparator", CultureManager.GetThousandSeparator()); script += JSUtility.GetVar("decimalSeparator", CultureManager.GetDecimalSeparator()); script += JSUtility.GetVar("currencyDecimalPlaces", CultureManager.GetCurrencyDecimalPlaces()); script += JSUtility.GetVar("baseCurrencyCode", AppUsers.GetCurrent().View.CurrencyCode); script += JSUtility.GetVar("catalog", AppUsers.GetCurrentUserDB()); script += JSUtility.GetVar("update", this.Update()); script += JSUtility.GetVar("firstStepsPending", this.Context.Session["FirstStepsPending"]); script += JSUtility.GetVar("datepickerFormat", jQueryUI.GetDatePickerFormat()); script += JSUtility.GetVar("datepickerShowWeekNumber", jQueryUI.ShowWeekNumber()); script += JSUtility.GetVar("datepickerWeekStartDay", jQueryUI.GetWeekStartDay()); script += JSUtility.GetVar("datepickerNumberOfMonths", jQueryUI.GetNumberOfMonths()); ScriptManager.RegisterClientScriptBlock(this.Page, this.Page.GetType(), "MixERPMasterPage", script, true); }
private void AddScrudCustomValidatorErrorMessages() { string javascript = JSUtility.GetVar("dueFrequencyErrorMessageLocalized", Warnings.DueFrequencyErrorMessage); javascript += JSUtility.GetVar("lateFeeErrorMessageLocalized", Warnings.LateFeeErrorMessage); Common.PageUtility.RegisterJavascript("PaymentTerm_ScrudCustomValidatorErrorMessages", javascript, this.Page, true); }
private void AddLocalizedVariables() { string javascript = JSUtility.GetVar("approvedLocalized", Titles.ApproveThisTransaction); javascript += JSUtility.GetVar("rejectLocalized", Titles.RejectThisTransaction); javascript += JSUtility.GetVar("tranIdLocalized", Titles.TranIdParameter); PageUtility.RegisterJavascript("VoucherVerification_LocalizedVariables", javascript, this.Page, true); }
private void RegisterJavascript() { string script = JSUtility.GetVar("perviousPeriodLocalized", Titles.PreviousPeriod); script += JSUtility.GetVar("currentPeriodLocalized", Titles.CurrentPeriod); script += JSUtility.GetVar("closingLocalized", Titles.ClosingBalance); PageUtility.RegisterJavascript("TrialBalance_Vars", script, this.Page, true); }
private void RegisterJavascript() { string script = JSUtility.GetVar("viewLocalized", Titles.View); script += JSUtility.GetVar("downloadLocalized", Titles.Download); script += JSUtility.GetVar("deleteLocalized", Titles.Delete); PageUtility.RegisterJavascript("AttachmentManager_Localized", script, this.Page, true); }
private void RegisterJavascript() { string script = JSUtility.GetVar("allowedExtensions", ConfigurationHelper.GetAllowedExtensions(this.Catalog)); script += "allowedExtensions = allowedExtensions.split(',');"; script += JSUtility.GetVar("undoUploadServiceUrl", ConfigurationHelper.GetUndoUploadServiceUrl(this.Catalog)); script += JSUtility.GetVar("uploadHandlerUrl", ConfigurationHelper.GetUploadHandlerUrl(this.Catalog)); PageUtility.RegisterJavascript("AttachmentUserControl_Resources", script, this.Page, true); }
private void AddJavascript() { string script = JSUtility.GetVar("shortDateFormat", CultureManager.GetShortDateFormat()); script += JSUtility.GetVar("thousandSeparator", CultureManager.GetThousandSeparator()); script += JSUtility.GetVar("decimalSeparator", CultureManager.GetDecimalSeparator()); script += JSUtility.GetVar("currencyDecimalPlaces", CultureManager.GetCurrencyDecimalPlaces()); PageUtility.RegisterJavascript("SignInPage_Vars", script, this.Page, true); }
private void CreateJavasriptLocalizedMessages() { string javascript = string.Empty; javascript += JSUtility.GetVar("enterCurrentPasswordLocalized", Warnings.PleaseEnterCurrentPassword); javascript += JSUtility.GetVar("newPasswordCannotBeOldPasswordLocalized", Warnings.NewPasswordCannotBeOldPassword); javascript += JSUtility.GetVar("enterNewPasswordLocalized", Warnings.PleaseEnterNewPassword); javascript += JSUtility.GetVar("confirmationPasswordDoesNotMatchLocalized", Warnings.ConfirmationPasswordDoesNotMatch); PageUtility.RegisterJavascript("ChangePassword", javascript, this.Page, true); }
private void AddInlineScript() { string script = string.Empty; script += JSUtility.GetVar("storeServiceUrl", this.StoreServiceUrl); script += JSUtility.GetVar("shippingCompanyServiceUrl", this.ShippingCompanyServiceUrl); script += JSUtility.GetVar("itemServiceUrl", this.ItemServiceUrl); script += JSUtility.GetVar("unitServiceUrl", this.UnitServiceUrl); script += JSUtility.GetVar("itemPopupUrl", this.ItemPopupUrl); script += JSUtility.GetVar("itemIdQuerySericeUrl", this.ItemIdQuerySericeUrl); script += JSUtility.GetVar("validateSides", this.ValidateSides.ToString().ToLower(CultureInfo.InvariantCulture)); PageUtility.RegisterJavascript("StockAdjustmentFormViewInlineScript", script, this.Page, true); }
private void RegisterJavascript() { string isSales = (this.Book.Equals(TranBook.Sales)) ? "true" : "false"; string tranBook = this.GetTranBook(); string verifyStock = (this.VerifyStock) ? "true" : "false"; string js = string.Empty; js += JSUtility.GetVar("isSales", isSales, false); js += JSUtility.GetVar("tranBook", tranBook); js += JSUtility.GetVar("verifyStock", verifyStock, false); PageUtility.RegisterJavascript("StockTransactionForm_Vars", js, this.Page, true); }
private void RegisterJavascript() { string script = JSUtility.GetVar("allowedExtensions", ConfigurationHelper.GetAllowedExtensions()); script += "allowedExtensions = allowedExtensions.split(',');"; script += JSUtility.GetVar("areYouSureLocalized", Messages.AreYouSure); script += JSUtility.GetVar("duplicateFileLocalized", Messages.DuplicateFile); script += JSUtility.GetVar("invalidFileLocalized", Messages.InvalidFile); script += JSUtility.GetVar("uploadedFilesDeletedLocalized", Messages.UploadFilesDeleted); script += JSUtility.GetVar("undoUploadServiceUrl", ConfigurationHelper.GetUndoUploadServiceUrl()); script += JSUtility.GetVar("uploadHandlerUrl", ConfigurationHelper.GetUploadHandlerUrl()); PageUtility.RegisterJavascript("AttachmentUserControl_Resources", script, this.Page, true); }
private void AddInlineScript() { string script = string.Empty; script += JSUtility.GetVar("referencingSidesNotEqualErrorLocalized", Errors.ReferencingSidesNotEqual); script += JSUtility.GetVar("storeServiceUrl", this.StoreServiceUrl); script += JSUtility.GetVar("itemServiceUrl", this.ItemServiceUrl); script += JSUtility.GetVar("unitServiceUrl", this.UnitServiceUrl); script += JSUtility.GetVar("itemPopupUrl", this.ItemPopupUrl); script += JSUtility.GetVar("itemIdQuerySericeUrl", this.ItemIdQuerySericeUrl); script += JSUtility.GetVar("validateSides", this.ValidateSides.ToString().ToLower(CultureInfo.InvariantCulture)); Net.Common.PageUtility.RegisterJavascript("StockAdjustmentFormViewInlineScript", script, this.Page, true); }
private void AddJavascript() { string challenge = Guid.NewGuid().ToString().Replace("-", ""); this.Session["Challenge"] = challenge; string script = JSUtility.GetVar("challenge", challenge); script += JSUtility.GetVar("shortDateFormat", CultureManager.GetShortDateFormat()); script += JSUtility.GetVar("thousandSeparator", CultureManager.GetThousandSeparator()); script += JSUtility.GetVar("decimalSeparator", CultureManager.GetDecimalSeparator()); script += JSUtility.GetVar("currencyDecimalPlaces", CultureManager.GetCurrencyDecimalPlaces()); PageUtility.RegisterJavascript("SignInPage_Vars", script, this.Page, true); }
private static string GetJavascript(Config config) { string script = "<script type='text/javascript'>"; script += JSUtility.GetVar("scrudAreYouSureLocalized", Resources.Titles.AreYouSure); script += JSUtility.GetVar("scrudNothingSelectedLocalized", Resources.Titles.NothingSelected); script += JSUtility.GetVar("requiredLocalized", Resources.Titles.RequiredField); script += JSUtility.GetVar("invalidNumberLocalized", Resources.Titles.OnlyNumbersAllowed); script += JSUtility.GetVar("reportTemplatePath", ConfigurationHelper.GetScrudParameter("TemplatePath")); script += JSUtility.GetVar("reportHeaderPath", ConfigurationHelper.GetScrudParameter("HeaderPath")); script += JSUtility.GetVar("date", DateTime.Now.ToString(CultureInfo.InvariantCulture)); script += JSUtility.GetVar("customFormUrl", config.CustomFormUrl); script += JSUtility.GetVar("keyColumn", config.KeyColumn); script += "</script>"; return(script); }
private void RegisterJavascript() { string script = JSUtility.GetVar("culture", CultureManager.GetCurrent().Name); script += JSUtility.GetVar("language", CultureManager.GetCurrent().TwoLetterISOLanguageName); script += JSUtility.GetVar("jqueryUIi18nPath", this.Page.ResolveUrl("~/Scripts/jquery-ui/i18n/")); script += JSUtility.GetVar("today", string.Format(CultureManager.GetCurrent(), CultureManager.GetCurrent().DateTimeFormat.ShortDatePattern, DateTime.Now)); script += JSUtility.GetVar("now", DateTime.Now.ToString(CultureManager.GetCurrent())); script += JSUtility.GetVar("user", AppUsers.GetCurrent().View.UserName); script += JSUtility.GetVar("office", AppUsers.GetCurrent().View.OfficeName); script += JSUtility.GetVar("shortDateFormat", CultureManager.GetShortDateFormat()); script += JSUtility.GetVar("longDateFormat", CultureManager.GetLongDateFormat()); script += JSUtility.GetVar("thousandSeparator", CultureManager.GetThousandSeparator()); script += JSUtility.GetVar("decimalSeparator", CultureManager.GetDecimalSeparator()); script += JSUtility.GetVar("currencyDecimalPlaces", CultureManager.GetCurrencyDecimalPlaces()); script += JSUtility.GetVar("currencySymbol", CultureManager.GetCurrencySymbol()); script += JSUtility.GetVar("today", DateTime.Now.ToShortDateString()); script += JSUtility.GetVar("shortDateFormat", CultureManager.GetShortDateFormat()); script += JSUtility.GetVar("thousandSeparator", CultureManager.GetThousandSeparator()); script += JSUtility.GetVar("decimalSeparator", CultureManager.GetDecimalSeparator()); script += JSUtility.GetVar("currencyDecimalPlaces", CultureManager.GetCurrencyDecimalPlaces()); script += JSUtility.GetVar("baseCurrencyCode", AppUsers.GetCurrent().View.CurrencyCode); script += JSUtility.GetVar("catalog", AppUsers.GetCurrentUserDB()); script += JSUtility.GetVar("update", this.Update()); script += JSUtility.GetVar("firstStepsPending", this.Context.Session["FirstStepsPending"]); script += JSUtility.GetVar("datepickerFormat", jQueryUI.GetDatePickerFormat()); script += JSUtility.GetVar("datepickerShowWeekNumber", jQueryUI.ShowWeekNumber()); script += JSUtility.GetVar("datepickerWeekStartDay", jQueryUI.GetWeekStartDay()); script += JSUtility.GetVar("datepickerNumberOfMonths", jQueryUI.GetNumberOfMonths()); PageUtility.RegisterJavascript("MixERPMasterPage", script, this.Page, true); }
private void AddJavascript() { PageUtility.RegisterJavascriptFiles("bundles_libraries_min", "/bundles/scripts/libraries.min.js", this.Page); PageUtility.RegisterJavascriptFiles("sha", "/Scripts/jssha1.5/src/sha.js", this.Page); PageUtility.RegisterJavascriptFiles("SignIn", "/Scripts/Pages/SignIn.aspx.js", this.Page); string challenge = Guid.NewGuid().ToString().Replace("-", ""); this.Session["Challenge"] = challenge; string script = JSUtility.GetVar("challenge", challenge); script += JSUtility.GetVar("shortDateFormat", LocalizationHelper.GetShortDateFormat()); script += JSUtility.GetVar("thousandSeparator", LocalizationHelper.GetThousandSeparator()); script += JSUtility.GetVar("decimalSeparator", LocalizationHelper.GetDecimalSeparator()); script += JSUtility.GetVar("currencyDecimalPlaces", LocalizationHelper.GetCurrencyDecimalPlaces()); PageUtility.RegisterJavascript("SignInPage_Vars", script, this.Page, true); }
private void RegisterJavascript() { string isSales = (this.Book.Equals(TranBook.Sales)) ? "true" : "false"; string tranBook = this.GetTranBook(); string verifyStock = (this.VerifyStock) ? "true" : "false"; string js = string.Empty; js += JSUtility.GetVar("isSales", isSales, false); js += JSUtility.GetVar("tranBook", tranBook); js += JSUtility.GetVar("verifyStock", verifyStock, false); js += JSUtility.GetVar("insufficientStockWarningLocalized", Warnings.InsufficientStockWarning); js += JSUtility.GetVar("invalidPartyWarningLocalized", Warnings.InvalidParty); js += JSUtility.GetVar("invalidPriceTypeWarningLocalized", Warnings.InvalidPriceType); js += JSUtility.GetVar("invalidStoreWarningLocalized", Warnings.InvalidStore); js += JSUtility.GetVar("invalidShippingCompanyWarningLocalized", Warnings.InvalidShippingCompany); js += JSUtility.GetVar("invalidCostCenterWarningLocalized", Warnings.InvalidCostCenter); js += JSUtility.GetVar("invalidSalesPersonWarningLocalized", Warnings.InvalidSalesPerson); js += JSUtility.GetVar("invalidPaymentTermLocalized", Warnings.InvalidPaymentTerm); PageUtility.RegisterJavascript("StockTransactionForm_Vars", js, this.Page, true); }
internal static string GetScript(string catalog, string keyColumn, string customFormUrl, string formGridViewId, string gridPanelId, string userIdHiddenId, string officeCodeHiddenId, string titleLabelId, string formPanelId, string cancelButtonId) { string resource = JSUtility.GetEmbeddedScript("MixERP.Net.WebControls.ScrudFactory.Scrud.js", Assembly.GetExecutingAssembly()); string script = string.Empty; script += JSUtility.GetVar("gridPanelId", gridPanelId); script += JSUtility.GetVar("userIdHiddenId", userIdHiddenId); script += JSUtility.GetVar("formGridViewId", formGridViewId); script += JSUtility.GetVar("officeCodeHiddenId", officeCodeHiddenId); script += JSUtility.GetVar("titleLabelId", titleLabelId); script += JSUtility.GetVar("formPanelId", formPanelId); script += JSUtility.GetVar("cancelButtonId ", cancelButtonId); script += JSUtility.GetVar("reportTemplatePath", PageUtility.ResolveUrl(DbConfig.GetScrudParameter(catalog, "TemplatePath"))); script += JSUtility.GetVar("reportExportTemplatePath", PageUtility.ResolveUrl(DbConfig.GetScrudParameter(catalog, "ExportTemplatePath"))); script += JSUtility.GetVar("reportHeaderPath", PageUtility.ResolveUrl(DbConfig.GetScrudParameter(catalog, "HeaderPath"))); script += JSUtility.GetVar("date", DateTime.Now.ToString(CultureInfo.InvariantCulture)); script += JSUtility.GetVar("keyColumn", keyColumn); script += JSUtility.GetVar("customFormUrl", customFormUrl); script += resource; return(script); }
private void RegisterJavascript() { string script = JSUtility.GetVar("culture", Thread.CurrentThread.CurrentCulture.Name); script += JSUtility.GetVar("language", Thread.CurrentThread.CurrentCulture.TwoLetterISOLanguageName); script += JSUtility.GetVar("jqueryUIi18nPath", this.Page.ResolveUrl("~/Scripts/jquery-ui/i18n/")); script += JSUtility.GetVar("today", DateTime.Now.ToShortDateString()); script += JSUtility.GetVar("now", DateTime.Now.ToString(CultureInfo.InvariantCulture)); script += JSUtility.GetVar("user", CurrentUser.GetSignInView().UserName); script += JSUtility.GetVar("office", CurrentUser.GetSignInView().OfficeName); script += JSUtility.GetVar("shortDateFormat", LocalizationHelper.GetShortDateFormat()); script += JSUtility.GetVar("longDateFormat", LocalizationHelper.GetLongDateFormat()); script += JSUtility.GetVar("thousandSeparator", LocalizationHelper.GetThousandSeparator()); script += JSUtility.GetVar("decimalSeparator", LocalizationHelper.GetDecimalSeparator()); script += JSUtility.GetVar("currencyDecimalPlaces", LocalizationHelper.GetCurrencyDecimalPlaces()); script += JSUtility.GetVar("currencySymbol", LocalizationHelper.GetCurrencySymbol()); script += JSUtility.GetVar("duplicateEntryLocalized", Resources.Warnings.DuplicateEntry); script += JSUtility.GetVar("selectLocalized", Resources.Titles.Select); script += JSUtility.GetVar("noneLocalized", Resources.Titles.None); script += JSUtility.GetVar("invalidDateWarningLocalized", Resources.Warnings.InvalidDate); script += JSUtility.GetVar("areYouSureLocalized", Resources.Questions.AreYouSure); script += JSUtility.GetVar("nothingSelectedLocalized", Resources.Warnings.NothingSelected); script += JSUtility.GetVar("yesLocalized", Resources.Titles.Yes); script += JSUtility.GetVar("noLocalized", Resources.Titles.No); script += JSUtility.GetVar("daysLowerCaseLocalized", Resources.Labels.DaysLowerCase); script += JSUtility.GetVar("gridViewEmptyWarningLocalized", Resources.Warnings.GridViewEmpty); script += JSUtility.GetVar("duplicateFileLocalized", Resources.Warnings.DuplicateFiles); script += JSUtility.GetVar("taskCompletedSuccessfullyLocalized", Resources.Labels.TaskCompletedSuccessfully); script += JSUtility.GetVar("today", DateTime.Now.ToShortDateString()); script += JSUtility.GetVar("shortDateFormat", LocalizationHelper.GetShortDateFormat()); script += JSUtility.GetVar("thousandSeparator", LocalizationHelper.GetThousandSeparator()); script += JSUtility.GetVar("decimalSeparator", LocalizationHelper.GetDecimalSeparator()); script += JSUtility.GetVar("currencyDecimalPlaces", LocalizationHelper.GetCurrencyDecimalPlaces()); script += JSUtility.GetVar("duplicateEntryLocalized", Resources.Warnings.DuplicateEntry); script += JSUtility.GetVar("selectLocalized", Resources.Titles.Select); script += JSUtility.GetVar("noneLocalized", Resources.Titles.None); script += JSUtility.GetVar("invalidDateWarningLocalized", Resources.Warnings.InvalidDate); script += JSUtility.GetVar("areYouSureLocalized", Resources.Questions.AreYouSure); script += JSUtility.GetVar("nothingSelectedLocalized", Resources.Warnings.NothingSelected); script += JSUtility.GetVar("yesLocalized", Resources.Titles.Yes); script += JSUtility.GetVar("noLocalized", Resources.Titles.No); script += JSUtility.GetVar("daysLowerCaseLocalized", Resources.Labels.DaysLowerCase); script += JSUtility.GetVar("gridViewEmptyWarningLocalized", Resources.Warnings.GridViewEmpty); script += JSUtility.GetVar("duplicateFileLocalized", Resources.Warnings.DuplicateFiles); script += JSUtility.GetVar("taskCompletedSuccessfullyLocalized", Resources.Labels.TaskCompletedSuccessfully); PageUtility.RegisterJavascript("MixERPMasterPage", script, this.Page, true); }