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"); }
/// <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> /// 控件绑定 /// </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() { 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> /// 绑定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; }
public void StoreItem_OnRefreshData(object sender, StoreRefreshDataEventArgs e) { 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(); }
/// <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; }
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(); }