private void RptBind(string _strWhere) { this.txtKeywords.Text = this.keywords; BLL.StoreMode bll = new BLL.StoreMode(); this.rptList.DataSource = bll.GetList(0, _strWhere, "Id DESC"); this.rptList.DataBind(); }
private void TreeBind(string strWhere) { BLL.Customer customerBLL = new BLL.Customer(); DataTable customerDT = customerBLL.GetList(0, strWhere, "Id desc").Tables[0]; this.ddlCustomer.Items.Clear(); this.ddlCustomer.Items.Add(new ListItem("所属客户", "")); foreach (DataRow dr in customerDT.Rows) { this.ddlCustomer.Items.Add(new ListItem(dr["Name"].ToString(), dr["Id"].ToString())); } BLL.StoreMode storeModeBLL = new BLL.StoreMode(); DataTable storeModeDT = storeModeBLL.GetList(0, strWhere, "Id desc").Tables[0]; this.ddlStoreMode.Items.Clear(); this.ddlStoreMode.Items.Add(new ListItem("存储方式", "")); foreach (DataRow dr in storeModeDT.Rows) { this.ddlStoreMode.Items.Add(new ListItem(dr["Name"].ToString(), dr["Id"].ToString())); } BLL.HandlingMode handlingModeBLL = new BLL.HandlingMode(); DataTable handlingModeDT = handlingModeBLL.GetList(0, strWhere, "Id desc").Tables[0]; this.ddlHandlingMode.Items.Clear(); this.ddlHandlingMode.Items.Add(new ListItem("装卸方式", "")); foreach (DataRow dr in handlingModeDT.Rows) { this.ddlHandlingMode.Items.Add(new ListItem(dr["Name"].ToString(), dr["Id"].ToString())); } }
private void TreeBind(string strWhere) { BLL.Customer customerBLL = new BLL.Customer(); DataTable customerDT = customerBLL.GetList(0, strWhere, "Id desc").Tables[0]; this.ddlCustomer.Items.Clear(); this.ddlCustomer.Items.Add(new ListItem("所属客户", "")); foreach (DataRow dr in customerDT.Rows) { this.ddlCustomer.Items.Add(new ListItem(dr["Name"].ToString(), dr["Id"].ToString())); } BLL.StoreMode storeModeBLL = new BLL.StoreMode(); DataTable storeModeDT = storeModeBLL.GetList(0, strWhere, "Id desc").Tables[0]; this.ddlStoreMode.Items.Clear(); this.ddlStoreMode.Items.Add(new ListItem("存储方式", "")); foreach (DataRow dr in storeModeDT.Rows) { this.ddlStoreMode.Items.Add(new ListItem(dr["Name"].ToString(), dr["Id"].ToString())); } BLL.HandlingMode handlingModeBLL = new BLL.HandlingMode(); DataTable handlingModeDT = handlingModeBLL.GetList(0, strWhere, "Id desc").Tables[0]; this.ddlHandlingMode.Items.Clear(); this.ddlHandlingMode.Items.Add(new ListItem("装卸方式", "")); foreach (DataRow dr in handlingModeDT.Rows) { this.ddlHandlingMode.Items.Add(new ListItem(dr["Name"].ToString(), dr["Id"].ToString())); } BLL.Unit unitBLL = new BLL.Unit(); DataTable unitDT = unitBLL.GetList(0, strWhere, "Id desc").Tables[0]; this.ddlUnit.Items.Clear(); this.ddlUnit.Items.Add(new ListItem("计量单位", "")); foreach (DataRow dr in unitDT.Rows) { this.ddlUnit.Items.Add(new ListItem(dr["Name"].ToString(), dr["Id"].ToString())); } }