void loadDRDV(int ma) { DonViBHDAO dv = new DonViBHDAO(); drDonvi.DataSource = dv.DSDonViBaoHiem(ma); drDonvi.DataValueField = "ID_DonVi"; drDonvi.DataTextField = "TenDonVi"; drDonvi.DataBind(); }
void load_DonViBaoHiem(int maNhaBH) { DonViBHDAO dvbhdao = new DonViBHDAO(); drSubsidiary.DataSource = dvbhdao.DSDonViBaoHiem(maNhaBH); drSubsidiary.DataValueField = "ID_DonVi"; drSubsidiary.DataTextField = "TenDonVi"; drSubsidiary.DataBind(); }
protected void drNBH_SelectedIndexChanged(object sender, EventArgs e) { DonViBHDAO dvbhdao = new DonViBHDAO(); int maNhaBH = int.Parse(drNBH.SelectedItem.Value.ToString()); drDVBH.DataSource = dvbhdao.DSDonViBaoHiem(maNhaBH); drDVBH.DataValueField = "ID_DonVi"; drDVBH.DataTextField = "TenDonVi"; drDVBH.DataBind(); }
void load_DonViBaoHiem(int maNhaBH) { if (!this.IsPostBack) { DonViBHDAO dvbhdao = new DonViBHDAO(); drDVBH.DataSource = dvbhdao.DSDonViBaoHiem(maNhaBH); drDVBH.DataValueField = "ID_DonVi"; drDVBH.DataTextField = "TenDonVi"; drDVBH.DataBind(); } }
protected void drInsurer_SelectedIndexChanged(object sender, EventArgs e) { DonViBHDAO dvbhdao = new DonViBHDAO(); int maNhaBH = int.Parse(drInsurer.SelectedItem.Value.ToString()); if (maNhaBH != 0) { //load_DonViBaoHiem(maNhaBH); drSubsidiary.DataSource = dvbhdao.DSDonViBaoHiem(maNhaBH); drSubsidiary.DataValueField = "ID_DonVi"; drSubsidiary.DataTextField = "TenDonVi"; drSubsidiary.DataBind(); } }
protected void drNBH_SelectedIndexChanged(object sender, EventArgs e) { if (this.IsPostBack) { DonViBHDAO dv = new DonViBHDAO(); int ma = int.Parse(drNBH.SelectedItem.Value.ToString()); if (ma != 0) { drDonvi.DataSource = dv.DSDonViBaoHiem(ma); drDonvi.DataValueField = "ID_DonVi"; drDonvi.DataTextField = "TenDonVi"; drDonvi.DataBind(); } } }
void load_DonViBaoHiem(int maNhaBH) { if (!this.IsPostBack) { DonViBHDAO dvbhdao = new DonViBHDAO(); DataTable dt = new DataTable(); dt = dvbhdao.DSDonViBaoHiem(maNhaBH); if (dt.Rows.Count > 0) { drDV.DataSource = dt; drDV.DataValueField = "ID_DonVi"; drDV.DataTextField = "TenDonVi"; drDV.DataBind(); } } }
void load_Grid() { DonViBHDAO dvbhdao = new DonViBHDAO(); int maNhaBH = int.Parse(drBH.SelectedItem.Value.ToString()); if (maNhaBH > 0) { DataTable dt = new DataTable(); dt = dvbhdao.DSDonViBaoHiem(maNhaBH); if (dt.Rows.Count > 0) { drDV.DataSource = dt; drDV.DataValueField = "ID_DonVi"; drDV.DataTextField = "TenDonVi"; drDV.DataBind(); } } }