Esempio n. 1
0
        private void btnChonGiay_Click(object sender, EventArgs e)
        {
            var thongTinGiayChon = giayDeBoiPres.TenGiayDeIn();

            BangGiaGiayForm frm = new BangGiaGiayForm(FormStateS.Get, this.IdHangKH, thongTinGiayChon);

            frm.MaximizeBox = false;
            frm.MinimizeBox = false;
            frm.Text        = "Bảng giá giấy theo hạng KH ";
            frm.ShowDialog();
            if (frm.DialogResult == System.Windows.Forms.DialogResult.OK)
            {
                //Cập nhật IdGiay trước
                if (frm.GiayChon != null)
                {
                    this.IdGiay = frm.GiayChon.ID;
                }
                //Cập nhật tiếp các chi tiết


                giayDeBoiPres.CapNhatGiayDeBoi();
                CapNhatMotSoTong();
                CapNhatTriGiaVoLabels();
                //Bật tắt nút nhận
                BatTatNutNhanTheoDieuKien();
            }
        }
Esempio n. 2
0
        private void mnuBangGiaGiay_Click(object sender, EventArgs e)
        {
            BangGiaGiayForm frm = new BangGiaGiayForm(FormStateS.View);

            frm.MaximizeBox = false;
            frm.MinimizeBox = false;
            frm.Text        = "Bảng giá giấy theo hạng KH ";
            frm.ShowDialog();
        }
Esempio n. 3
0
        private void btnThongTinGiay_Click(object sender, EventArgs e)
        {
            var frm = new BangGiaGiayForm(FormStateS.View);

            frm.MinimizeBox   = false;
            frm.MaximizeBox   = false;
            frm.Text          = "Thông tin Giấy";
            frm.StartPosition = FormStartPosition.CenterParent;
            frm.ShowDialog();
        }
        private void btnChonGiay_Click(object sender, EventArgs e)
        {
            BangGiaGiayForm frm = new BangGiaGiayForm(FormStateS.Get, this.IdHangKH);

            frm.MaximizeBox = false;
            frm.MinimizeBox = false;
            frm.Text        = "Bảng giá giấy theo hạng KH ";
            frm.ShowDialog();
            if (frm.DialogResult == System.Windows.Forms.DialogResult.OK)
            {
                this.IdGiay = frm.GiayChon.ID;

                txtTenGiayIn.Text = giayDeInPres.TenGiayDeIn();

                CapNhatTriGiaVoLabels();
                //Bật tắt nút nhận
                BatTatNutOKTheoDieuKien();
            }
        }