Example #1
0
 public TinhGiaForm(int tinhTrangForm)
 {
     InitializeComponent();
     this.TinhTrangForm = tinhTrangForm;
     tinhGiaPres        = new TinhGiaPresenter(this);
     tinhGiaPres.NoiDungBanDau();
 }
 public TinhGiaForm()
 {
     InitializeComponent();
     _baiInS     = new List <BaiIn>();//Chứa bài in
     _cauHinhSPS = new List <CauHinhSanPham>();
     tinhGiaPres = new TinhGiaPresenter(this);
 }
Example #3
0
        public TinhGiaForm(ThongTinBanDauChoTinhGia thongTinBanDau)
        {
            InitializeComponent();
            this.TinhTrangForm = thongTinBanDau.TinhTrangForm;
            this.TenNhanVien   = thongTinBanDau.TenNguoiDung;
            this.TieuDeTinhGia = "Tính giá";
            //Rồi mới tiếp tục
            tinhGiaPres = new TinhGiaPresenter(this);
            tinhGiaPres.NoiDungBanDau();
            LoadHangKhachHang();
            cboHangKH.SelectedIndex = 0;

            //event
            this.FormClosing += new FormClosingEventHandler(Forms_FormClosing);

            lvwBaiIn.SelectedIndexChanged     += new EventHandler(ListView_SelectedIndexChanged);
            lvwDanhThiep.SelectedIndexChanged += new EventHandler(ListView_SelectedIndexChanged);
            lvwCuon.SelectedIndexChanged      += new EventHandler(ListView_SelectedIndexChanged);
            lvwTheNhua.SelectedIndexChanged   += new EventHandler(ListView_SelectedIndexChanged);

            txtTieuDeTinhGia.TextChanged += new EventHandler(TextBoxe_TextChanged);
            txtTenNV.TextChanged         += new EventHandler(TextBoxe_TextChanged);
            txtTenKhachHang.TextChanged  += new EventHandler(TextBoxe_TextChanged);
            dtpNgay.ValueChanged         += new EventHandler(TextBoxe_TextChanged);
            //
        }
 public TinhGiaForm(int tinhTrangForm)
 {
     InitializeComponent();
     this.TinhTrangForm = tinhTrangForm;
     tinhGiaPres        = new TinhGiaPresenter(this);
     tinhGiaPres.NoiDungBanDau();
     //event
     this.FormClosing += new FormClosingEventHandler(Forms_FormClosing);
 }
Example #5
0
        public TinhGiaForm()
        {
            InitializeComponent();
            _baiInS     = new List <BaiIn>();        //Chứa bài in
            _cauHinhSPS = new List <CauHinhSanPham>();
            _giayDeInS  = new List <GiayDeIn>();     //Thùng chứa
            _giaInS     = new List <GiaIn>();        //Thùng chứa
            _thanhPhamS = new List <MucThanhPham>(); //Thufng chuaw

            tinhGiaPres = new TinhGiaPresenter(this);
        }
 public TinhGiaForm(int tinhTrangForm)
 {
     InitializeComponent();
     this.TinhTrangForm = tinhTrangForm;
     tinhGiaPres        = new TinhGiaPresenter(this);
     tinhGiaPres.NoiDungBanDau();
     LoadHangKhachHang();
     cboHangKH.SelectedIndex = 0;
     //event
     this.FormClosing += new FormClosingEventHandler(Forms_FormClosing);
 }