コード例 #1
0
        private void RegisterJavascript()
        {
            string partyNameParameter = ConfigurationHelper.GetParameter("PartyName");
            string script             = JSUtility.GetVar("partyNameParameter", partyNameParameter);

            PageUtility.RegisterJavascript("PartiesPopup_Vars", script, this.Page, true);
        }
コード例 #2
0
        private void AddScrudCustomValidatorErrorMessages()
        {
            string javascript = JSUtility.GetVar("dateErrorMessageLocalized", Warnings.DateErrorMessage);

            Common.PageUtility.RegisterJavascript("VoucherVerification_ScrudCustomValidatorMessages", javascript, this.Page,
                                                  true);
        }
コード例 #3
0
        private void AddScrudCustomValidatorErrorMessages()
        {
            string javascript = JSUtility.GetVar("dateErrorMessageLocalized", Warnings.DateErrorMessage);

            Common.PageUtility.RegisterJavascript("RecurringInvoiceSetup_ScrudCustomValidatorErrorMessages", javascript,
                                                  this.Page, true);
        }
コード例 #4
0
ファイル: CUOM.ascx.cs プロジェクト: gitter-badger/mixerp
        private void AddScrudCustomValidatorErrorMessages()
        {
            string javascript = JSUtility.GetVar("compareCompoundUnitOfMeasureErrorMessageLocalized",
                                                 Errors.CompoundUnitOfMeasureErrorMessage);

            PageUtility.RegisterJavascript("CompoundUnit_ScrudCustomValidatorErrorMessages", javascript, this.Page, true);
        }
コード例 #5
0
        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);
        }
コード例 #6
0
ファイル: Install.aspx.cs プロジェクト: deye9/mixerp
        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);
        }
コード例 #7
0
        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);
        }
コード例 #8
0
        private void AddScrudCustomValidatorMessages()
        {
            string javascript = JSUtility.GetVar("compareAmountErrorMessageLocalized",
                                                 Warnings.CompareAmountErrorMessage);

            Common.PageUtility.RegisterJavascript("BonusSlabDetails_CustomValidatorMessages", javascript, this.Page,
                                                  true);
        }
コード例 #9
0
ファイル: Adjustment.ascx.cs プロジェクト: ududsha/mixerp
        private void RegisterJavascript()
        {
            string javascript = JSUtility.GetVar("actualLocalized", Titles.Actual);

            javascript += JSUtility.GetVar("differenceLocalized", Titles.Difference);

            PageUtility.RegisterJavascript("Adjustment_Localized", javascript, this.Page, true);
        }
コード例 #10
0
        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);
        }
コード例 #11
0
        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));
        }
コード例 #12
0
        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);
        }
コード例 #13
0
        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);
        }
コード例 #14
0
        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);
        }
コード例 #15
0
        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);
        }
コード例 #16
0
        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);
        }
コード例 #17
0
ファイル: Javascript.cs プロジェクト: AYCHErp/AYCH-mixerp
        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);
        }
コード例 #18
0
ファイル: SignIn.aspx.cs プロジェクト: AYCHErp/AYCH-mixerp
        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);
        }
コード例 #19
0
        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);
        }
コード例 #20
0
ファイル: JavaScript.cs プロジェクト: AYCHErp/AYCH-mixerp
        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);
        }
コード例 #21
0
ファイル: Javascript.cs プロジェクト: gsantoshg74/mixerp
        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);
        }
コード例 #22
0
ファイル: Javascript.cs プロジェクト: phuctanpham/mixerp
        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);
        }
コード例 #23
0
        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);
        }
コード例 #24
0
        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);
        }
コード例 #25
0
        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);
        }
コード例 #26
0
        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);
        }
コード例 #27
0
        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);
        }
コード例 #28
0
ファイル: Javascript.cs プロジェクト: tmoodley/mixerp
        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);
        }
コード例 #29
0
        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);
        }
コード例 #30
0
ファイル: MixERPMasterPage.cs プロジェクト: ududsha/mixerp
        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);
        }