private void KiemKho_Staff_Load(object sender, EventArgs e)
 {
     this.dgvCT.AutoGenerateColumns = false;
     //
     Helper_GUI.Set_CurrencyVN_Grid(dgvCT, "tbxDongia");
     Helper_GUI.Set_CurrencyVN_Grid(dgvCT, "tbxThanhtien");
 }
 private void FastViewBill_Load(object sender, EventArgs e)
 {
     this.Size = this.MinimumSize;
     this.dgv.AutoGenerateColumns = false;
     Helper_GUI.Set_CurrencyVN_Grid(dgv, "dongia");
     Helper_GUI.Set_CurrencyVN_Grid(dgv, "thanhtien");
     Load_HoaDon();
 }
        private void Bill_Staff_Load(object sender, EventArgs e)
        {
            this.dgvBill_HD.AutoGenerateColumns = false;
            this.dgvBill_GH.AutoGenerateColumns = false;
            Helper_GUI.Set_CurrencyVN_Grid(dgvBill_HD, "tongtien_HD");
            Helper_GUI.Set_CurrencyVN_Grid(dgvBill_GH, "tongtien_GH");

            load_Data();
        }
Beispiel #4
0
        private void Provider_Staff_Load(object sender, EventArgs e)
        {
            //default set
            dgvSP.AutoGenerateColumns      = false;
            dgvRequest.AutoGenerateColumns = false;
            Helper_GUI.Set_CurrencyVN_Grid(dgvSP, "giagoc");

            //load info
            Reload();
            Load_Filter();

            //load data
            lSanpham = SanPhamBUL.Instance.Retrieve();
            dgvSanPham_Load(lSanpham);

            //binding
            lRequest      = new List <CTyeucau_DTO>();
            requestSource = new BindingSource()
            {
                DataSource = lRequest
            };
            dgvRequest.DataSource = requestSource;
        }
Beispiel #5
0
        private void Payment_Admin_Load(object sender, EventArgs e)
        {
            //default
            tbxSotien_tt.Enabled           = false;
            this.dgvPN.AutoGenerateColumns = false;
            Helper_GUI.Set_CurrencyVN_Grid(dgvPN, "tbxTienno");
            this.dgvCT.AutoGenerateColumns = false;
            Helper_GUI.Set_CurrencyVN_Grid(dgvCT, "dongia");
            Helper_GUI.Set_CurrencyVN_Grid(dgvCT, "thanhtien");
            this.dgvTrans.AutoGenerateColumns = false;
            Helper_GUI.Set_CurrencyVN_Grid(dgvTrans, "colSotien");

            //bul
            List <CungCap_DTO> temp1 = CungCapBUL.Instance.Retrieve();

            temp1.Add(new CungCap_DTO()
            {
                Id  = 0,
                Ten = "Xem tất cả"
            });
            cbxNCC.DataSource    = temp1;
            cbxNCC.DisplayMember = "ten";
            cbxNCC.ValueMember   = "id";
        }
        private void ViewBill_Load(object sender, EventArgs e)
        {
            //get data from parent form
            lChitiet = parent.lChitiet;
            sale     = Convert.ToInt32(parent.tbxSale.Text);

            hoadon = new HoaDon_DTO()
            {
                Id       = HoaDonBUL.Instance.Get_NewId(),
                Checkin  = DateTime.Now,
                Giamgia  = sale,
                Tongtien = lChitiet.Sum(s => s.Thanhtien),
            };

            tbxTime.Text            = hoadon.Checkin.ToString("dd-MM-yyyy hh:mm:ss tt");
            tbxSale.Text            = parent.tbxSale.Text + " %";
            rdbTructiep.Checked     = true;
            dgv.AutoGenerateColumns = false;
            Helper_GUI.Set_CurrencyVN_Grid(dgv, "dongia");
            Helper_GUI.Set_CurrencyVN_Grid(dgv, "thanhtien");

            Load_HoaDon();
            Load_ListChitiet();
        }