private void btnSelect_Click(object sender, EventArgs e) { string paramSupplierName = txtSupplierName.Text.Trim(); BUSupplier myBUSupplier = new BUSupplier(); this.gdCItem.DataSource = myBUSupplier.GetAllSupplierListByName(paramSupplierName).Tables[0]; }
/// <summary> /// 获取所有数据 /// </summary> public void GetAllData() { string paramSupplierName = this.txtSupplierID.Text.Trim(); DataSet myDs = new DataSet(); myDs = myBUDeleteSupplier.GetAllSupplierListByName(paramSupplierName); this.gdcInfo.DataSource = myDs.Tables[0]; }
public void SetSupplier() { DataTable mydt = new DataTable(); BUSupplier myBUSupplier = new BUSupplier(); mydt = myBUSupplier.GetAllSupplierListByName(string.Empty).Tables[0]; combSupplier.DataSource = mydt; combSupplier.DisplayMember = "name"; combSupplier.ValueMember = "supplier_id"; }