示例#1
0
        /// <summary>
        /// Khởi tạo để thêm CCGT
        /// </summary>
        public FormEditCCGT()
        {
            InitializeComponent();

            this.coCauGiaiThuongBUS       = new CoCauGiaiThuongBUS();
            this.giaiThuongBUS            = new GiaiThuongBUS();
            this.listMaGiaiThuongToDelete = new List <string>();
        }
示例#2
0
        public FormGhiNhanKQXS()
        {
            InitializeComponent();

            this.chiTietKetQuaXoSoBUS = new ChiTietKetQuaXoSoBUS();
            this.giaiThuongBUS        = new GiaiThuongBUS();
            this.ketQuaXoSoBUS        = new KetQuaXoSoBUS();
            this.loaiVeBUS            = new LoaiVeBUS();
        }
示例#3
0
        /// <summary>
        /// Khởi tạo để cập nhật CCGT
        /// </summary>
        public FormEditCCGT(string maCoCauGiaiThuong)
        {
            InitializeComponent();

            this.coCauGiaiThuongBUS       = new CoCauGiaiThuongBUS();
            this.giaiThuongBUS            = new GiaiThuongBUS();
            this.listMaGiaiThuongToDelete = new List <string>();

            try
            {
                this.coCauGiaiThuong = this.coCauGiaiThuongBUS.GetCoCauGiaiThuongByMaCoCauGiaiThuong(maCoCauGiaiThuong);
            }
            catch (Exception ex)
            {
                this.DialogResult = DialogResult.Abort;

                XtraMessageBox.Show(ex.Message, @"Lỗi", MessageBoxButtons.OK, MessageBoxIcon.Error);
            }
        }