protected void drNBH_SelectedIndexChanged(object sender, EventArgs e)
 {
     DonViBHDAO dvbhdao = new DonViBHDAO();
     int maNhaBH = int.Parse(drNBH.SelectedItem.Value.ToString());
     drDV.DataSource = dvbhdao.DSDonViBaoHiem(maNhaBH);
     drDV.DataValueField = "ID_DonVi";
     drDV.DataTextField = "TenDonVi";
     drDV.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();
            }
        }
Ejemplo n.º 3
0
        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();
                }
            }
        }
Ejemplo n.º 4
0
 protected void drInsurer_SelectedIndexChanged(object sender, EventArgs e)
 {
     //if (this.IsPostBack)
         //{
         DonViBHDAO dvbhdao = new DonViBHDAO();
         int maNhaBH = int.Parse(drInsurer.SelectedItem.Value.ToString());
         if (maNhaBH != 0)
         {
             DataTable ds = new DataTable();
             ds = dvbhdao.DSDonViBaoHiem(maNhaBH);
             drSubsidiary.DataSource = ds;
             drSubsidiary.DataValueField = "ID_DonVi";
             drSubsidiary.DataTextField = "TenDonVi";
             drSubsidiary.DataBind();
         }
     //}
 }
Ejemplo n.º 5
0
 void load_DonViBaoHiem(int maNhaBH)
 {
     DonViBHDAO dvbhdao = new DonViBHDAO();
     drSubsidiary.DataSource = dvbhdao.DSDonViBaoHiem(maNhaBH);
     drSubsidiary.DataValueField = "ID_DonVi";
     drSubsidiary.DataTextField = "TenDonVi";
     drSubsidiary.DataBind();
 }
Ejemplo n.º 6
0
 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();
         }
     }
 }
Ejemplo n.º 7
0
 void loadDRDV(int ma)
 {
     DonViBHDAO dv = new DonViBHDAO();
     drDonvi.DataSource = dv.DSDonViBaoHiem(ma);
     drDonvi.DataValueField = "ID_DonVi";
     drDonvi.DataTextField = "TenDonVi";
     drDonvi.DataBind();
 }
Ejemplo n.º 8
0
 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();
         }
     }
 }