Example #1
0
 private void bbiLapPhieuCamDo_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
 {
     PhieuCamDo frm = new PhieuCamDo();
     frm.Reload += Reload;
     frm.WindowState = FormWindowState.Maximized;
     frm.ShowDialog();
 }
Example #2
0
        private void bbiSua_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            var arg = gbList.GetFocusedRowCellValue(colMa_Chung_Tu);
            if (arg == null)
                return;

            var frm = new PhieuCamDo(arg.ToString());
            frm.Reload += Reload;
            frm.WindowState = FormWindowState.Maximized;
            frm.ShowDialog();
        }
Example #3
0
        private void bbiSua_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            var ma_chung_tu = gbList.GetFocusedRowCellValue(colMa_Chung_Tu);
            if (ma_chung_tu == null)
                return;

            //if (!KiemTraPhieuDaChuoc(ma_chung_tu.ToString()))
            //{
            //    return;
            //}

            var frm = new PhieuCamDo(ma_chung_tu.ToString());
            frm.Reload += (s_) =>
            {
                bbiXem_ItemClick(this, null);
            };
            frm.WindowState = FormWindowState.Maximized;
            frm.ShowDialog();
        }
Example #4
0
        private void bbiLapGiayMoi_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            bbiChuocDo_ItemClick(this, null);

            var machungtucamdo = gbList.GetFocusedRowCellValue(colMa_Chung_Tu);
            if (machungtucamdo == null)
                return;

            PhieuCamDo frm = new PhieuCamDo();
            frm.Reload += (e_) =>
            {
                bbiXem_ItemClick(this, null);
            };
            frm.WindowState = FormWindowState.Maximized;
            frm.Lap_Giay_Moi(machungtucamdo.ToString());
            frm.ShowDialog();
        }