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.Goods goodsBLL = new BLL.Goods(); DataTable goodsDT = goodsBLL.GetList(0, strWhere, "Id desc").Tables[0]; this.ddlGoods.Items.Clear(); this.ddlGoods.Items.Add(new ListItem("货物", "")); foreach (DataRow dr in goodsDT.Rows) { this.ddlGoods.Items.Add(new ListItem(dr["Name"].ToString(), dr["Id"].ToString())); } BLL.Store storeBLL = new BLL.Store(); DataTable storeDT = storeBLL.GetAllList().Tables[0]; storeOptions += "<option value='0'>选择仓库</option>"; foreach (DataRow dr in storeDT.Rows) { storeOptions += "<option value='" + dr["Id"] + "'>" + dr["Name"] + "</option>"; } }
private void TreeBind(string strWhere) { BLL.StoreInOrder stroeInOrderBLL = new BLL.StoreInOrder(); DataTable stroeInOrderDT = stroeInOrderBLL.GetList(0, strWhere, "Id desc").Tables[0]; this.ddlStoreInOrder.Items.Clear(); this.ddlStoreInOrder.Items.Add(new ListItem("选择入库单", "")); foreach (DataRow dr in stroeInOrderDT.Rows) { this.ddlStoreInOrder.Items.Add(new ListItem(dr["AccountNumber"].ToString(), dr["Id"].ToString())); } BLL.Store storeBLL = new BLL.Store(); storeDT = storeBLL.GetAllList().Tables[0]; }
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.Store storeBLL = new BLL.Store(); storeDT = storeBLL.GetAllList().Tables[0]; }