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); } }
protected void Page_Load(object sender, EventArgs e) { Permissions.ComRedirect(Page, Permissions.redirUrl); if (!IsPostBack) { Response.Cache.SetExpires(DateTime.Now); Permissions.CheckManagePermission(EnumCompanyPermission.LogisticsBrowseStoreOrders); this.DropCurrency.DataSource = CountryBLL.GetCountryModels(); this.DropCurrency.DataTextField = "name"; this.DropCurrency.DataValueField = "id"; this.DropCurrency.DataBind(); listCondition(); if (Request.QueryString["type"] != null) { type = 1; } getbtCon(); } SetFanY(); AjaxPro.Utility.RegisterTypeForAjax(typeof(AjaxClass)); }
private void BindDropDownList() { this.ddlCountry.DataSource = CountryBLL.GetCountryModels(); this.ddlCountry.DataTextField = "name"; this.ddlCountry.DataValueField = "id"; this.ddlCountry.DataBind(); }
protected void Page_Load(object sender, EventArgs e) { Permissions.ComRedirect(Page, Permissions.redirUrl); if (!IsPostBack) { Response.Cache.SetExpires(DateTime.Now); Permissions.CheckManagePermission(EnumCompanyPermission.LogisticswuliuStateShow); this.DropCurrency.DataSource = CountryBLL.GetCountryModels(); this.DropCurrency.DataTextField = "name"; this.DropCurrency.DataValueField = "id"; this.DropCurrency.DataBind(); listCondition(); Button1_Click(null, null); /*int year = DateTime.Now.Year; * int month = DateTime.Now.Month; * int lastDay = DateTime.DaysInMonth(DateTime.Now.Year, DateTime.Now.Month); * * txtBox_OrderDateTimeStart.Text = txtBox_ConsignmentDateTimeStart.Text = year + "-" + month + "-" + "01"; * txtBox_OrderDateTimeEnd.Text = txtBox_ConsignmentDateTimeEnd.Text = year + "-" + month + "-" + lastDay;*/ SetFanY(); } AjaxPro.Utility.RegisterTypeForAjax(typeof(AjaxClass)); }
protected void Page_Load(object sender, EventArgs e) { Permissions.ComRedirect(Page, Permissions.redirUrl); Response.Cache.SetExpires(DateTime.Now); Permissions.CheckManagePermission(EnumCompanyPermission.StorageAddReWareHouse); if (!Common.WPermission(Session["Company"].ToString())) { visdiv.Visible = false; Response.Write(Common.ReturnAlert("该管理员没有仓库权限!!")); return; } visdiv.Visible = true; if (!IsPostBack) { CountryModel mode = CountryBLL.GetCountryModels()[0]; DataView dataev = new DataView(BillOutOrderBLL.GetWareHouseName()); dataev.RowFilter = "[CountryCode]=" + CountryBLL.GetCountryByCode(mode.ID); ddlcangku.DataSource = dataev; ddlcangku.DataTextField = "WareHouseName"; ddlcangku.DataValueField = "WareHouseID"; ddlcangku.DataBind(); if (string.IsNullOrEmpty(ddlcangku.SelectedValue)) { ViewState["Ekuc"] = "false"; } else { ViewState["Ekuc"] = "true"; } ddlcangku_SelectedIndexChanged(null, null); BtnConfirm_Click(null, null); } Translations(); }
private void BindCountryList() { this.DropDownList1.DataSource = CountryBLL.GetCountryModels(); this.DropDownList1.DataTextField = "name"; this.DropDownList1.DataValueField = "countrycode"; this.DropDownList1.DataBind(); Translations(); }
protected void Initddl() { //绑定国家信息到下拉列表框 this.ddlCountry.DataSource = CountryBLL.GetCountryModels(); //设定绑定显示为CountryModel.Name this.ddlCountry.DataTextField = "Name"; //设定绑定值为CountryModel.ID this.ddlCountry.DataValueField = "ID"; this.ddlCountry.DataBind(); }
/// <summary> /// 绑定国家 /// </summary> /// <param name="guojia"></param> private void BindGuojia(string guojia) { this.ddlCountry.DataSource = CountryBLL.GetCountryModels(); this.ddlCountry.DataBind(); //ddlCountry.SelectedIndex = 0; foreach (ListItem item in ddlCountry.Items) { if (item.Value == guojia) { item.Selected = true; break; } } }
protected void Page_Load(object sender, EventArgs e) { Permissions.ComRedirect(Page, Permissions.redirUrl); Response.Cache.SetExpires(DateTime.Now); Permissions.CheckManagePermission(EnumCompanyPermission.StorageBrowseBills); if (!Common.WPermission(Session["Company"].ToString())) { vistable.Visible = false; vistable1.Visible = false; Response.Write(Common.ReturnAlert("该管理员没有仓库权限!!")); return; } vistable.Visible = true; vistable1.Visible = true; if (!IsPostBack) { //绑定单据类型 ddltype.DataSource = DocTypeTableDAL.GetDocTypeTableInfo(); ddltype.DataTextField = "DocTypeName"; ddltype.DataValueField = "DocTypeID"; ddltype.DataBind(); CountryModel mode = CountryBLL.GetCountryModels()[0]; DataView dataev = new DataView(BillOutOrderBLL.GetWareHouseName()); dataev.RowFilter = "[CountryCode]=" + CountryBLL.GetCountryByCode(mode.ID); ddlcangku.DataSource = dataev; ddlcangku.DataTextField = "WareHouseName"; ddlcangku.DataValueField = "WareHouseID"; ddlcangku.DataBind(); if (string.IsNullOrEmpty(ddlcangku.SelectedValue)) { ViewState["Ekuc"] = "false"; } else { ViewState["Ekuc"] = "true"; } ddlcangku_SelectedIndexChanged(null, null); btnSeach_Click(null, null); this.txtshenheren.Text = GetTran("000881", "不限"); this.txtkaichuren.Text = GetTran("000881", "不限"); Translations(); } }
protected void Page_Load(object sender, EventArgs e) { Permissions.ComRedirect(Page, Permissions.redirUrl); Response.Cache.SetExpires(DateTime.Now); Permissions.CheckManagePermission(EnumCompanyPermission.CustomerThirdLogistics); if (!IsPostBack) { this.DropCurrency.DataSource = CountryBLL.GetCountryModels(); this.DropCurrency.DataTextField = "name"; this.DropCurrency.DataValueField = "id"; this.DropCurrency.DataBind(); bind(); SetFanY(); this.DataBind(); } }
protected void Page_Load(object sender, EventArgs e) { Permissions.ComRedirect(Page, Permissions.redirUrl); if (!IsPostBack) { Response.Cache.SetExpires(DateTime.Now); Permissions.CheckManagePermission(EnumCompanyPermission.StorageAddReWareHouse); this.DropCurrery.DataSource = CountryBLL.GetCountryModels(); this.DropCurrery.DataTextField = "name"; this.DropCurrery.DataValueField = "countrycode"; this.DropCurrery.DataBind(); int cID = Convert.ToInt32(DropCurrery.SelectedItem.Value); //绑定入库仓库 //this.ddlinwareHouse.DataSource = BillOutOrderBLL.GetWareHouseName(); CountryModel mode = CountryBLL.GetCountryModels()[0]; DataView dataev = new DataView(BillOutOrderBLL.GetWareHouseName()); dataev.RowFilter = "[CountryCode]=" + CountryBLL.GetCountryByCode(mode.ID); ddlinwareHouse.DataSource = dataev; this.ddlinwareHouse.DataTextField = "WareHouseName"; this.ddlinwareHouse.DataValueField = "WareHouseID"; this.ddlinwareHouse.DataBind(); if (string.IsNullOrEmpty(ddlinwareHouse.SelectedValue)) { ddlinwareHouse.DataSource = AddReportProfit.GetProductWareHouseInfo(); ddlinwareHouse.DataTextField = "name"; ddlinwareHouse.DataValueField = "id"; ddlinwareHouse.DataBind(); ddlinwareHouse.Enabled = false; ddlintDepotSeatID.Enabled = false; ViewState["Ekuc"] = "false"; } //绑定出库仓库 //this.ddloutWareHouse.DataSource = BillOutOrderBLL.GetWareHouseName(); DataView dataev1 = new DataView(BillOutOrderBLL.GetWareHouseName()); dataev1.RowFilter = "[CountryCode]=" + CountryBLL.GetCountryByCode(mode.ID); ddloutWareHouse.DataSource = dataev1; this.ddloutWareHouse.DataTextField = "WareHouseName"; this.ddloutWareHouse.DataValueField = "WareHouseID"; this.ddloutWareHouse.DataBind(); if (string.IsNullOrEmpty(ddloutWareHouse.SelectedValue)) { ddloutWareHouse.DataSource = AddReportProfit.GetProductWareHouseInfo(); ddloutWareHouse.DataTextField = "name"; ddloutWareHouse.DataValueField = "id"; ddloutWareHouse.DataBind(); ddloutWareHouse.Enabled = false; ddloutDepotSeatID.Enabled = false; ViewState["Ekuc"] = "false"; } else { ViewState["Ekuc"] = "true"; } ddloutWareHouse_SelectedIndexChanged(null, null); ddlinwareHouse_SelectedIndexChanged(null, null); //绑定产品列表 gridBind(cID, Convert.ToInt32(ddloutWareHouse.SelectedValue), Convert.ToInt32(ddloutDepotSeatID.SelectedValue)); } Translations(); }