Exemplo n.º 1
0
 private void MoHinhDaoTao_Load(object sender, EventArgs e)
 {
     dtDSMoHinh = oMoHinhDaoTao.GetData();
     if (dtDSMoHinh != null)
     {
         PrepareDataSource();
         EditDtgInterface();
     }
 }
Exemplo n.º 2
0
        private void NV_MoHinh_HinhThuc_Load(object sender, EventArgs e)
        {
            try
            {
                DataTable dt_mh = oMoHinhDaoTao.GetData();
                DataTable dt_ht = oHinhThucDaoTao.GetData();

                clb_MoHinh.DataSource    = dt_mh;
                clb_MoHinh.ValueMember   = "id";
                clb_MoHinh.DisplayMember = "ten_mo_hinh";


                clb_HinhThuc.DataSource    = dt_ht;
                clb_HinhThuc.ValueMember   = "id";
                clb_HinhThuc.DisplayMember = "ten_hinh_thuc";
            }
            catch (Exception)
            {
            }
        }
Exemplo n.º 3
0
 /// <summary>
 /// Refresh Data Source cho dtg sau moi lan thao tac
 /// </summary>
 private void RefreshDataSource()
 {
     Business.MoHinhDaoTao mh = new Business.MoHinhDaoTao();     // khong dung chung oChucVu duoc ???
     dtDSMoHinh = mh.GetData();
     PrepareDataSource();
     
 }
Exemplo n.º 4
0
 /// <summary>
 /// Refresh Data Source cho dtg sau moi lan thao tac
 /// </summary>
 private void RefreshDataSource()
 {
     Business.MoHinhDaoTao mh = new Business.MoHinhDaoTao();     // khong dung chung oChucVu duoc ???
     dtDSMoHinh = mh.GetData();
     PrepareDataSource();
 }