Example #1
0
        private void ThemTheNhua()
        {
            var thongTinBanDau = new ThongTinBanDauChoDanhThiep
            {
                IdHangKhachHang = this.IdHangKhachHang(),
                TinhTrangForm   = FormStateS.New
            };
            var baiInTheNhua = new BaiInTheNhua(0, "", "", 10, 2);

            baiInTheNhua.TieuDe     = "In thẻ VIP";
            baiInTheNhua.KichThuoc  = "8 x 5.5cm";
            baiInTheNhua.SoLuongThe = 10;


            var frm = new GiaInTheNhuaForm(thongTinBanDau, baiInTheNhua);

            frm.Text          = "Tính giá Thẻ nhựa";
            frm.MinimizeBox   = false;
            frm.MaximizeBox   = false;
            frm.StartPosition = FormStartPosition.CenterParent;

            frm.ShowDialog();
            if (frm.DialogResult == System.Windows.Forms.DialogResult.OK)
            {
                XuLyNutOKTrenFormTheNhua(frm);
                //MessageBox.Show(this.BaiInS.Count().ToString());
                LoadDanhThiepListView();
            }
        }
Example #2
0
        private void XuLyNutOKTrenFormTheNhua(GiaInTheNhuaForm frm)
        {
            switch (frm.TinhTrangForm)
            {
            case FormStateS.Edit:

            case FormStateS.New:
                tinhGiaPres.Them_TheNhua(frm.DocBaiInDanhThiep());
                break;
            }
            LoadTheNhuaListView();
        }