示例#1
0
        void loadDRDV(int ma)
        {
            DonViBHDAO dv = new DonViBHDAO();

            drDonvi.DataSource     = dv.DSDonViBaoHiem(ma);
            drDonvi.DataValueField = "ID_DonVi";
            drDonvi.DataTextField  = "TenDonVi";
            drDonvi.DataBind();
        }
示例#2
0
        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();
        }
示例#4
0
 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();
     }
 }
示例#5
0
        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();
            }
        }
示例#6
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();
         }
     }
 }
 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();
                }
            }
        }