Beispiel #1
0
        public async void GetTenTruyen()
        {
            var listTenTruyen = await ExecSQL.ExecProcedureDataAsync <TenTruyen>("pro_get_tentruyen", new { option = 1 });

            cbo_tentruyen.DataSource    = listTenTruyen;
            cbo_tentruyen.DisplayMember = "matruyen";
            cbo_tentruyen.ValueMember   = "matruyen";
        }
Beispiel #2
0
        public async void GetTuatruyen()
        {
            var x  = grvViewTuaTruyen.FocusedRowHandle;
            var y  = grvViewTuaTruyen.TopRowIndex;
            var dt = await ExecSQL.ExecProcedureDataAsync <TuaTruyen>("pro_get_tuatruyen", new { option = 1 });

            grcTuaTruyen.BeginInvoke(new Action(() =>
            {
                grcTuaTruyen.DataSource           = dt;
                grvViewTuaTruyen.FocusedRowHandle = x;
                grvViewTuaTruyen.TopRowIndex      = y;
            }));
        }
Beispiel #3
0
        public async void GetDonVi()
        {
            var x  = gridView1.FocusedRowHandle;
            var y  = gridView1.TopRowIndex;
            var dt = await ExecSQL.ExecProcedureDataAsync <DonVi>("pro_get_donvi", new { option = 1 });

            dgv_donvi.BeginInvoke(new Action(() =>
            {
                dgv_donvi.DataSource       = dt;
                gridView1.FocusedRowHandle = x;
                gridView1.TopRowIndex      = y;
            }));
        }
        public async void GetDanhMuc()
        {
            var x  = gridView1.FocusedRowHandle;
            var y  = gridView1.TopRowIndex;
            var dt = await ExecSQL.ExecProcedureDataAsync <TenTruyen>("pro_get_tentruyen", new { option = 1 });

            dgv_danhmuc.BeginInvoke(new Action(() =>
            {
                dgv_danhmuc.DataSource = dt;

                gridView1.FocusedRowHandle = x;
                gridView1.TopRowIndex      = y;
            }));
        }