private void BindList() { string id = Request.QueryString["id"]; U_ZCBU zc1 = new U_ZCBU(); DataSet ds = zc1.GetDetailByID(id, "danwei,depart,zeren"); this.danwei.Text = ds.Tables[0].Rows[0]["danwei"].ToString(); this.depart.Text = ds.Tables[0].Rows[0]["depart"].ToString(); this.zeren.Text = ds.Tables[0].Rows[0]["zeren"].ToString(); zc1.Close(); CW_StockBillBU stock1 = new CW_StockBillBU(); this.Repeater1.DataSource = stock1.GetStockListByZcID1(id); this.Repeater1.DataBind(); stock1.Close(); //////////////////////////////////////// CW_ShouKuanBU shoukuan1 = new CW_ShouKuanBU(); List <SearchField> list1 = new List <SearchField>(); list1.Add(new SearchField("zcid", Request.QueryString["id"], SearchFieldType.数值型)); this.Repeater2.DataSource = shoukuan1.GetBillList("2", list1, true); this.Repeater2.DataBind(); //////////////////////////////////////////////////////////// list1.Clear(); list1.Add(new SearchField("zcid", Request.QueryString["id"], SearchFieldType.数值型)); this.Repeater3.DataSource = shoukuan1.GetBillList("3", list1, true); this.Repeater3.DataBind(); shoukuan1.Close(); }
private void BindData(string danwei, string gname, string gkind, bool flag) { CW_StockBillBU stock1 = new CW_StockBillBU(); this.GridView1.DataSource = stock1.GetStockList1(danwei, gname, gkind, flag); this.GridView1.DataBind(); stock1.Close(); }
private void BindData() { CW_StockBillBU stock1 = new CW_StockBillBU(); this.Repeater1.DataSource = stock1.GetStockListByZcID(Request.QueryString["zcid"]); this.Repeater1.DataBind(); stock1.Close(); }