/// <summary> /// 控件绑定 /// </summary> #region ///ComboBox 控件绑定 Author:Micro (2011-09-27) void ControlsBinder() { ControlBinder.CmbBinder(StoreVessel, "VesselList"); ControlBinder.CmbBinder(StoreLocation, "LocationList", SYS[0].ToString()); cmbVesselText.Template.Html = TempVoyage.Html; }
private void ComboBoxBinding() { ControlBinder.CmbBinder(StoreServiceMode, "ServerMode", SYS[0].ToString()); ControlBinder.CmbBinder(StoreUnit, "UnitBinding", SYS[0].ToString()); ControlBinder.CmbBinder(StoreDes, "Description", "OI"); ControlBinder.CmbBinder(StoreCN, "ContainerSize", SYS[0].ToString()); }
private void ComboBoxBinding() { ControlBinder.CmbBinder(StoreLocation, "LocationList", SYS[0].ToString()); ControlBinder.CmbBinder(StoreSalesman, "SalesList", SYS[0].ToString()); //ControlBinder.CmbBinder(StoreCompany, "CompanyList", SYS[0].ToString()); ControlBinder.CmbBinder(StoreUnit, "UnitBinding", SYS[0].ToString()); o_unit.Template.Html = Template.Html; //ControlBinder.CmbBinder(StoreCurrency, "CurrencysList", SYS[0].ToString()); //ControlBinder.CmbBinder(StoreItem, "ItemBinding", SYS[0].ToString()); DataSet dsGetItem = dal.FactoryDAL(PageHelper.ConnectionStrings, "FW_GetItem_SP", new List <IFields> { dal.CreateIFields() .Append("Option", "GetItem").Append("STAT", FSecurityHelper.CurrentUserDataGET()[12]).Append("SYS", "O") }).GetList(); StoreGetItem.DataSource = dsGetItem; StoreGetItem.DataBind(); //l_item.Template.Html = Template.Html; //o_item.Template.Html = Template.Html; ControlBinder.CmbBinder(StoreKind, "QtyKindBinding", SYS[0].ToString()); ControlBinder.CmbBinder(StoreDept, "DeptBinding", SYS[0].ToString()); ControlBinder.CmbBinder(StoreForeignKind, "ForeignKind", SYS[0].ToString()); ControlBinder.CmbBinder(StoreShipKind, "ShipKind", SYS[0].ToString()); ControlBinder.CmbBinder(StoreCompanyKind, "CompanyKind", SYS[0].ToString()); ControlBinder.CmbBinder(StorePPCC, "PPCCList", SYS[0].ToString()); ControlBinder.CmbBinder(StoreAgentLocal, "PPCC", SYS[0].ToString()); ControlBinder.CmbBinder(StoreServiceMode, "ServerMode", SYS[0].ToString()); //ControlBinder.CmbBinder(StoreCurrLocal, "CurrencysListLocal", SYS[0].ToString()); ControlBinder.CmbBinder(StoreCurrInvoice, "CurrencysInvoice", SYS[0].ToString()); }
/// <summary> /// 控件绑定 /// </summary> #region ///ComboBox 控件绑定 Author:Micro (2011-09-27) void ControlsBinder() { hidSeed.Text = string.IsNullOrEmpty(Request["seed"]) ? "0" : Request["seed"]; txtMBL.Focus(true); //ControlBinder.CmbBinder(StoreCmb, "CompanyList",SYS[0].ToString()); //ControlBinder.CmbBinder(StoreItem, "ItemBinding", SYS[0].ToString()); DataSet dsGetItem = dal.FactoryDAL(PageHelper.ConnectionStrings, "FW_GetItem_SP", new List <IFields> { dal.CreateIFields() .Append("Option", "GetItem").Append("STAT", FSecurityHelper.CurrentUserDataGET()[12]).Append("SYS", "O") }).GetList(); StoreGetItem.DataSource = dsGetItem; StoreGetItem.DataBind(); //ControlBinder.CmbBinder(StoreCurrency, "CurrencysList", SYS[0].ToString()); ControlBinder.CmbBinder(StoreUnit, "UnitBinding", SYS[0].ToString()); ControlBinder.CmbBinder(StoreKind, "QtyKindBinding", SYS[0].ToString()); ControlBinder.CmbBinder(StoreSalesman, "SalesList", SYS[0].ToString()); ControlBinder.CmbBinder(StoreVessel, "VesselList"); ControlBinder.CmbBinder(StorePPCC, "PPCCList", SYS[0].ToString()); ControlBinder.CmbBinder(StoreAgentLocal, "PPCC", SYS[0].ToString()); ControlBinder.CmbBinder(StoreLocation, "LocationList", SYS[0].ToString()); ControlBinder.CmbBinder(StoreServiceMode, "ServerMode", SYS[0].ToString()); //ControlBinder.CmbBinder(StoreCurrLocal, "CurrencysListLocal", SYS[0].ToString()); ControlBinder.CmbBinder(StoreCurrInvoice, "CurrencysInvoice", SYS[0].ToString()); cmbVesselText.Template.Html = TempVoyage.Html; }
private void ComboBoxBinding() { DataSet dsSalesman = GetComboxDs("SalesList"); DataSet dsLocation = GetComboxDs("LocationList"); DataSet dsUnit = GetComboxDs("UnitBinding"); DataSet dsItem = GetComboxDs("ItemBinding"); DataSet dsKind = GetComboxDs("QtyKindBinding"); DataSet dsCurrencysList = GetComboxDs("CurrencysInvoice"); DataSet dsGetItem = dal.FactoryDAL(PageHelper.ConnectionStrings, "FW_GetItem_SP", new List <IFields> { dal.CreateIFields() .Append("Option", "GetItem").Append("STAT", FSecurityHelper.CurrentUserDataGET()[12]).Append("SYS", "A") }).GetList(); StoreGetItem.DataSource = dsGetItem; StoreGetItem.DataBind(); StoreCurrInvoice.DataSource = dsCurrencysList; StoreCurrInvoice.DataBind(); StoreLocation.DataSource = dsLocation; StoreLocation.DataBind(); StoreUnit.DataSource = dsUnit; StoreUnit.DataBind(); StoreKind.DataSource = dsKind; StoreKind.DataBind(); StoreSalesman.DataSource = dsSalesman; StoreSalesman.DataBind(); ControlBinder.CmbBinder(StoreAgentLocal, "PPCC", "A"); }
public string stationSys; //当前用户所在系统(总站Y或者分站N) protected void Page_Load(object sender, EventArgs e) { this.sys = Request["sys"]; if (sys == "D" || sys == "B" || sys == "T") { sys = "O"; } if (!X.IsAjaxRequest) { ControlBinder.CmbBinder(StoreCompany, "CompanyList", sys); ControlBinder.CmbBinder(storeCountry, "CountryList", sys); ControlBinder.CmbBinder(storeCurrency, "CurrencysList", sys); Code.Text = Request["code"]; dep = FSecurityHelper.CurrentUserDataGET()[28].ToUpper(); stationSys = FSecurityHelper.CurrentUserDataGET()[29].ToUpper(); div_bottom.Html = "<p>Status: New location record .</p>"; if (dep == "OP" || dep == "ACCOUNT" || stationSys == "N") { DisabledControl(); } else { UseControl(); } } ControlBinder.ChkGroupBind(this.tblChkGroup); //绑定CheckBoxGroup ( 2014-10-12 ) }
//protected static string sys = "AI"; //protected static string type = "DNCN"; protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { if (Request["sys"] != null) { hidsys.Text = Request["sys"]; if (hidsys.Text.ToUpper() == "SYS") { lblLoc.Visible = true; lblDest.Visible = false; } } if (Request["type"] != null) { hidtype.Text = Request["type"]; } ControlBinder.DateFormat(txtETDFrom); ControlBinder.DateFormat(txtETDTo); string date = DateTime.Now.Year.ToString() + "/" + DateTime.Now.Month.ToString().PadLeft(2, '0') + "/01"; txtETDFrom.RawText = date; txtETDFrom.Text = date; if (hidtype.Text == "SALES") { lblCNEE.Visible = true; lblSHPR.Visible = true; cmbShipperCode.Visible = true; cmbConsigneeCode.Visible = true; divSales.Style.Add("display", "none"); ControlBinder.CmbBinder(StoreSalesman, "SalesList", hidsys.Text.Substring(0, 1)); ControlBinder.CmbBinder(StoreLocation, "LocationList", hidsys.Text.Substring(0, 1)); } else if (hidtype.Text == "House") { lblSalesman.Visible = false; divSales.Style.Add("display", "none"); divSalesman.Style.Add("display", "none"); ControlBinder.CmbBinder(StoreSalesman, "SalesList", hidsys.Text.Substring(0, 1)); ControlBinder.CmbBinder(StoreLocation, "LocationList", hidsys.Text.Substring(0, 1)); } else if (hidtype.Text == "OP") { LblOP.Visible = true; lblSalesman.Visible = false; divSales.Style.Add("display", "none"); divSalesman.Style.Add("display", "none"); divOP.Style.Add("display", "block"); ControlBinder.CmbBinder(StoreSalesman, "SalesList", hidsys.Text.Substring(0, 1)); ControlBinder.CmbBinder(StoreLocation, "LocationList", hidsys.Text.Substring(0, 1)); ControlBinder.CmbBinder(StoreOP, "GetUserListByStat"); } else { lblSalesman.Visible = false; divSalesman.Style.Add("display", "none"); divSales.Style.Add("display", "none"); ControlBinder.CmbBinder(StoreLocation, "LocationList", hidsys.Text.Substring(0, 1)); } } }
/// <summary> /// ComboBox数据绑定 /// </summary> void CmbBinder() { ControlBinder.CmbBinder(storeVessel, "VesselList"); ControlBinder.CmbBinder(storeLocation, "LocationList", "O"); DataBinder(); ControlInit(); }
/// <summary> /// 控件绑定 /// </summary> #region ///ComboBox 控件绑定 Author:Micro (2011-09-27) void ControlsBinder() { hidSeed.Text = Request["seed"] == null ? "" : Request["seed"]; hidIDList.Text = Server.UrlDecode(Request["IDList"] == null ? "" : Request["IDList"]); //txtMBL.Focus(true); CmbGroup.Focus(true); DataSet dsGetItem = dal.FactoryDAL(PageHelper.ConnectionStrings, "FW_GetItem_SP", new List <IFields> { dal.CreateIFields() .Append("Option", "GetItem").Append("STAT", FSecurityHelper.CurrentUserDataGET()[12]).Append("SYS", "O") }).GetList(); StoreGetItem.DataSource = dsGetItem; StoreGetItem.DataBind(); ControlBinder.CmbBinder(StoreUnit, "UnitBinding", SYS[0].ToString()); ControlBinder.CmbBinder(StoreKind, "QtyKindBinding", SYS[0].ToString()); ControlBinder.CmbBinder(StoreSalesman, "SalesList", SYS[0].ToString()); ControlBinder.CmbBinder(StoreVessel, "VesselList"); ControlBinder.CmbBinder(StorePPCC, "PPCCList", SYS[0].ToString()); ControlBinder.CmbBinder(StoreAgentLocal, "PPCC", SYS[0].ToString()); ControlBinder.CmbBinder(StoreLocation, "LocationList", SYS[0].ToString()); ControlBinder.CmbBinder(StoreMode, "ServerMode", SYS[0].ToString()); ControlBinder.CmbBinder(StoreGroup, "GetSmGroup", SYS[0].ToString()); ControlBinder.CmbBinder(StoreCurrInvoice, "CurrencysInvoice", SYS[0].ToString()); cmbVesselText.Template.Html = TempVoyage.Html; cmbpreVoyage.Template.Html = TempVoyage.Html; }
/// <summary> /// 绑定ComboBox /// </summary> #region ComboBoxBinder() Author :Micro (2011-09-06) void ComboBoxBinder() { //StoreCmb.DataSource = GetList("CompanyList"); //StoreCmb.DataBind(); //StoreCmbName.DataSource = GetList("CompanyListByName"); //StoreCmbName.DataBind(); //StoreCurrLocal.DataSource = GetList("CurrencysListLocal"); //StoreCurrLocal.DataBind(); ControlBinder.CmbBinder(StoreAgentLocal, "PPCC", "A"); DataSet dsLocation = GetList("LocationList"); StoreLocation.DataSource = dsLocation; StoreLocation.DataBind(); DataSet dsUnit = GetList("UnitBinding"); StoreUnit.DataSource = dsUnit; StoreUnit.DataBind(); DataSet dsCurrency = GetList("CurrencysList"); StoreCurrency.DataSource = dsCurrency; StoreCurrency.DataBind(); DataSet dsSales = GetList("SalesList"); StoreSalesman.DataSource = dsSales; StoreSalesman.DataBind(); //DataSet dsItem = GetList("ItemBinding"); //StoreItem.DataSource = dsItem; //StoreItem.DataBind(); //l_item.Template.Html = Template.Html; DataSet dsGetItem = dal.FactoryDAL(PageHelper.ConnectionStrings, "FW_GetItem_SP", new List <IFields> { dal.CreateIFields() .Append("Option", "GetItem").Append("STAT", FSecurityHelper.CurrentUserDataGET()[12]).Append("SYS", "A") }).GetList(); StoreGetItem.DataSource = dsGetItem; StoreGetItem.DataBind(); DataSet dsKind = GetList("QtyKindBinding"); StoreKind.DataSource = dsKind; StoreKind.DataBind(); StoreCurrInvoice.DataSource = GetList("CurrencysInvoice"); StoreCurrInvoice.DataBind(); //CmbFromRight.Template.Html = Template.Html; //CmbToRight.Template.Html = Template.Html; //CmbUnit.Template.Html = Template.Html; //l_unit.Template.Html = Template.Html; }
/// <summary> /// 控件 数据绑定 /// </summary> #region ControlBinding() Author: Hcy ( 2011-09-08 ) void ControlBinding() { ControlBinder.CmbBinder(StoreUnit, "UnitBinding", sys); ControlBinder.CmbBinder(StoreForeign, "CurrencysListF", sys); ControlBinder.CmbBinder(StoreLocal, "CurrencysListL", sys); ControlBinder.CmbBinder(storeCaclby, "QtyKindBinding", sys); cmbFUnit.Template.Html = template.Html; cmbLUnit.Template.Html = template.Html; }
private void ComboBoxBinding() { ControlBinder.CmbBinder(StoreServiceMode, "ServerMode", SYS[0].ToString()); ControlBinder.CmbBinder(StoreUnit, "UnitBindingContainer", SYS[0].ToString()); ControlBinder.CmbBinder(StoreDes, "Description", SYS[0].ToString()); ControlBinder.CmbBinder(StoreCN, "ContainerSize", SYS[0].ToString()); DataFactory dal = new DataFactory(); DataSet ds = dal.FactoryDAL(PageHelper.ConnectionStrings, "FW_OceanExport_Container_SP", new List <IFields>() { dal.CreateIFields() .Append("Option", "GetContainerInfo").Append("oc_ToHBL", Request["HBL"]) }).GetList(); StoreCNNO.DataSource = ds; StoreCNNO.DataBind(); }
protected void Page_Load(object sender, EventArgs e) { sys = Request["sys"]; if (!X.IsAjaxRequest) { if (!IsPostBack) { Code.Text = Request["code"]; ControlBinder.CmbBinder(StoreCompany, "CompanyList", sys); div_bottom.Html = "<p>Status: New Salesman record .</p>"; } } ControlBinder.ChkGroupBind(this.tblChkGroup); //绑定CheckBoxGroup ( 2014-10-12 ) }
protected void Page_Load(object sender, EventArgs e) { if (!X.IsAjaxRequest) { TextHelper tp = new TextHelper(); string sys = Request["sys"] == null ? "" : Request["sys"]; txtLotNo.Text = tp.getPre(sys); txtLotNo.Focus(); tp.SetFocusAtLast("txtLotNo"); ControlBinder.DateFormat(txtETDFrom); ControlBinder.DateFormat(txtETDTo); txtETDFrom.RawText = DateTime.Now.AddDays(-10).ToString("dd/MM/yyyy"); txtETDFrom.Text = DateTime.Now.AddDays(-10).ToString("yyyy/MM/dd"); ControlBinder.CmbBinder(StoreOP, "GetUserListByStat"); DataBinder(); } }
protected void Page_Load(object sender, EventArgs e) { sys = Request["sys"]; if (sys == "D" || sys == "B" || sys == "T") { sys = "O"; } if (!X.IsAjaxRequest) { ControlBinder.CmbBinder(cmbCountry, "CountryList", sys); this.BindData(); } InitControls(); div_bottom.Html = "<p class=\"\">Status : New currency record. </p>"; Code.Focus(); }
public string stationSys; //当前用户所在系统(总站Y或者分站N) protected void Page_Load(object sender, EventArgs e) { if (!X.IsAjaxRequest) { ControlBinder.CmbBinder(storeCountry, "CountryList", ""); userDept = FSecurityHelper.CurrentUserDataGET()[28].ToUpper(); stationSys = FSecurityHelper.CurrentUserDataGET()[29].ToUpper(); if (userDept == "OP" || userDept == "ACCOUNT" || stationSys == "N") { DisabledControl(); } else { UseControl(); } //this.BindData(); div_bottom.Html = "<p>Status: New Airline record .</p>"; Code.Focus(true); } ControlBinder.ChkGroupBind(this.tblChkGroup); //绑定CheckBoxGroup ( 2014-10-12 ) }
/// <summary> /// 绑定ComboBox /// </summary> #region ComboBoxBinder() Author :Micro (2011-09-06) void ComboBoxBinder() { ControlBinder.CmbBinder(StoreAgentLocal, "PPCC", "O"); DataSet dsLocation = GetList("LocationList"); StoreLocation.DataSource = dsLocation; StoreLocation.DataBind(); DataSet dsUnit = GetList("UnitBinding"); StoreUnit.DataSource = dsUnit; StoreUnit.DataBind(); DataSet dsGetItem = dal.FactoryDAL(PageHelper.ConnectionStrings, "FW_GetItem_SP", new List <IFields> { dal.CreateIFields() .Append("Option", "GetItem").Append("STAT", FSecurityHelper.CurrentUserDataGET()[12]).Append("SYS", "O") }).GetList(); StoreGetItem.DataSource = dsGetItem; StoreGetItem.DataBind(); DataSet dsKind = GetList("QtyKindBinding"); StoreKind.DataSource = dsKind; StoreKind.DataBind(); StoreCurrInvoice.DataSource = GetList("CurrencysInvoice"); StoreCurrInvoice.DataBind(); StoreSalesman.DataSource = GetList("SalesList"); StoreSalesman.DataBind(); ControlBinder.CmbBinder(StoreVessel, "VesselList"); cmbVesselText.Template.Html = TempVoyage.Html; }
public string stationSys; //当前用户所在系统(总站Y或者分站N) protected void Page_Load(object sender, EventArgs e) { if (!X.IsAjaxRequest) { txtVessel.Focus(true); ControlBinder.CmbBinder(StoreCompany, "CompanyList", "o"); userDept = FSecurityHelper.CurrentUserDataGET()[28].ToUpper(); stationSys = FSecurityHelper.CurrentUserDataGET()[29].ToUpper(); if (userDept == "OP" || userDept == "ACCOUNT" || stationSys == "N") { DisabledControl(); } else { UseControl(); } //DataBinder(); } ControlBinder.ChkGroupBind(this.tblChkGroup); //绑定CheckBoxGroup ( 2014-10-12 ) }
public void StoreUnit_OnRefreshData(object sender, StoreRefreshDataEventArgs e) { ControlBinder.CmbBinder(StoreUnit, "UnitBinding", SYS[0].ToString()); }
private void ComboBoxBinding() { ControlBinder.CmbBinder(StoreAgentLocal, "PPCC", "A"); DataSet dsLocation = GetComboxDs("LocationList"); DataSet dsSalesman = GetComboxDs("SalesList"); DataSet dsCompany = new DataSet();//GetComboxDs("CompanyList"); DataSet dsCurrency = GetComboxDs("CurrencysList"); DataSet dsUnit = GetComboxDs("UnitBinding"); //DataSet dsItem = GetComboxDs("ItemBinding"); DataSet dsKind = GetComboxDs("QtyKindBinding"); DataSet dsDept = GetComboxDs("DeptBinding"); DataSet dsForeignKind = GetComboxDs("ForeignKind"); DataSet dsShipKind = GetComboxDs("ShipKind"); DataSet dsCompanyKind = GetComboxDs("CompanyKind"); //StoreCurrLocal.DataSource = GetComboxDs("CurrencysListLocal"); //StoreCurrLocal.DataBind(); StoreLocation.DataSource = dsLocation; StoreLocation.DataBind(); StoreSalesman.DataSource = dsSalesman; StoreSalesman.DataBind(); //StoreCompany.DataSource = dsCompany; //StoreCompany.DataBind(); StoreUnit.DataSource = dsUnit; StoreUnit.DataBind(); //l_unit.Template.Html = Template.Html; //StoreCurrency.DataSource = dsCurrency; //StoreCurrency.DataBind(); //StoreItem.DataSource = dsItem; //StoreItem.DataBind(); //l_item.Template.Html = Template.Html; DataSet dsGetItem = dal.FactoryDAL(PageHelper.ConnectionStrings, "FW_GetItem_SP", new List <IFields> { dal.CreateIFields() .Append("Option", "GetItem").Append("STAT", FSecurityHelper.CurrentUserDataGET()[12]).Append("SYS", "A") }).GetList(); StoreGetItem.DataSource = dsGetItem; StoreGetItem.DataBind(); StoreKind.DataSource = dsKind; StoreKind.DataBind(); StoreDept.DataSource = dsDept; StoreDept.DataBind(); StoreForeignKind.DataSource = dsForeignKind; StoreForeignKind.DataBind(); StoreShipKind.DataSource = dsShipKind; StoreShipKind.DataBind(); StoreCompanyKind.DataSource = dsCompanyKind; StoreCompanyKind.DataBind(); StoreCurrInvoice.DataSource = GetComboxDs("CurrencysInvoice"); StoreCurrInvoice.DataBind(); }
public void StoreVessel_OnRefreshData(object sender, StoreRefreshDataEventArgs e) { ControlBinder.CmbBinder(StoreVessel, "VesselList"); }
public void StoreCurrInvoice_OnRefreshData(object sender, StoreRefreshDataEventArgs e) { ControlBinder.CmbBinder(StoreCurrInvoice, "CurrencysInvoice", SYS[0].ToString()); }
public void binder() { ControlBinder.CmbBinder(StoreCurrInvoice, "CurrencysInvoice", "A"); }
protected void ComboboxBinder() { ControlBinder.CmbBinder(StoreLocation, "LocationList", hidsys.Text.Substring(0, 1)); ControlBinder.CmbBinder(StoreSalesman, "SalesList", hidsys.Text.Substring(0, 1)); }
protected void Page_Load(object sender, EventArgs e) { string curSys = Request["curSys"]; ControlBinder.CmbBinder(StoreCurrInvoice, "CurrencysInvoice", curSys); }
public void StoreSalesman_OnRefreshData(object sender, StoreRefreshDataEventArgs e) { ControlBinder.CmbBinder(StoreSalesman, "SalesList", hidsys.Text.Substring(0, 1)); }
public void StoreLocation_OnRefreshData(object sender, StoreRefreshDataEventArgs e) { ControlBinder.CmbBinder(StoreLocation, "LocationList", hidsys.Text.Substring(0, 1)); }
public void StoreKind_OnRefreshData(object sender, StoreRefreshDataEventArgs e) { ControlBinder.CmbBinder(StoreKind, "QtyKindBinding", SYS[0].ToString()); }
public void StoreLocation_OnRefreshData(object sender, StoreRefreshDataEventArgs e) { ControlBinder.CmbBinder(StoreLocation, "LocationList", SYS[0].ToString()); }
public void StoreMode_OnRefreshData(object sender, StoreRefreshDataEventArgs e) { ControlBinder.CmbBinder(StoreMode, "ServerMode", SYS[0].ToString()); }