protected void Page_Load(object sender, EventArgs e) { Permissions.ComRedirect(Page, Permissions.redirUrl); Response.Cache.SetExpires(DateTime.Now); Permissions.CheckManagePermission(EnumCompanyPermission.LogisticsBillOutOrder); AjaxPro.Utility.RegisterTypeForAjax(typeof(AjaxClass)); if (!IsPostBack) { AddOrderBLL.BindCurrency_Rate(Dropdownlist2); Dropdownlist2.SelectedValue = CountryBLL.GetCurrency(); ViewState["GridViewID"] = "GridView_BillOutOrder"; this.DropCurrery.DataSource = CountryBLL.GetCountryModels(); this.DropCurrery.DataTextField = "name"; this.DropCurrery.DataValueField = "id"; this.DropCurrery.DataBind(); btn_Submit_Click(null, null); SetFanY(); DropDownList_Items_SelectedIndexChanged(null, null); } }
private void Page_Load(object sender, System.EventArgs e) { Permissions.ComRedirect(Page, Permissions.redirUrl); this.Btn_Detail.Click += new System.EventHandler(this.Btn_Detail_Click); if (!IsPostBack) { Response.Cache.SetExpires(DateTime.Now); Permissions.CheckManagePermission(EnumCompanyPermission.ReportOrderDetail); DateTime dt = DateTime.Now; string t = dt.Year.ToString() + "-" + dt.Month.ToString() + "-" + dt.Day.ToString(); this.DatePicker1.Text = DateTime.Now.AddMonths(-1).ToString("yyyy-MM-dd"); this.DatePicker2.Text = DateTime.Now.ToString("yyyy-MM-dd"); Btn_Detail_Click(null, null); Bind(); } AjaxPro.Utility.RegisterTypeForAjax(typeof(AjaxClass)); AddOrderBLL.BindCurrency_Rate(Dropdownlist1); Dropdownlist1.SelectedValue = CountryBLL.GetCurrency(); // 在此处放置用户代码以初始化页面 Session["language"] = LanguageBLL.GetDefaultLanguageTableName(); Session["LanguegeSelect"] = LanguageBLL.GetDefaultlLanguageName(); Translations(); }
protected void Page_Load(object sender, EventArgs e) { Permissions.MemRedirect(Page, Permissions.redirUrl); //首次页面加载 if (!IsPostBack) { Bind(); this.DataBind(); } Translations(); AjaxPro.Utility.RegisterTypeForAjax(typeof(AjaxClass)); AddOrderBLL.BindCurrency_Rate(Dropdownlist1); Dropdownlist1.SelectedValue = CountryBLL.GetCurrency(); }