Example #1
0
        private void SimpleButton1_Click(object sender, EventArgs e)
        {
            Hoadonthutratien hoadonthutratien = laythongtinhoadonchi();

            tratienBUS.themhoadonchi(hoadonthutratien);
            CThoadonchi();
            if (checkin.Checked == true)
            {
                Inhoadonthuchi dsnguoidung = new Inhoadonthuchi();
                dsnguoidung.DataSource = luoithutratiens;
                ReportPrintTool report = new ReportPrintTool(dsnguoidung);
                dsnguoidung.txtmahoadon.Text    = txtmahoadonchi.Text;
                dsnguoidung.txtname.Text        = cbbNcc.Text;
                dsnguoidung.txtngay.Text        = txtngaylap.Text;
                dsnguoidung.txtsodienthoai.Text = txtsodienthoai.Text;
                dsnguoidung.txttienconno.Text   = tongTienno().ToString();
                dsnguoidung.txttongtientra.Text = tongTientra().ToString();
                dsnguoidung.lbltieude.Text      = "Hóa đơn trả tiền";
                dsnguoidung.lblthutratien.Text  = "Người thanh toán";
                dsnguoidung.txttienctytra.Text  = "Tiền công ty trả trước:";
                dsnguoidung.txtctyconno.Text    = "Tiền công ty trả còn nợ";
                dsnguoidung.lblbt3.Text         = "Nhà cung cấp";
                dsnguoidung.lblname.Text        = "Nhà cung cấp:";
                report.ShowPreview();
            }
        }
Example #2
0
        private void SimpleButton1_Click(object sender, EventArgs e)
        {
            Hoadonthutratien hoadonthutratien = laythongtinhoadonthu();

            thutienBUS.themhoadonthu(hoadonthutratien);
            CThoadonthu();
            if (checkin.Checked == true)
            {
                Inhoadonthuchi dsnguoidung = new Inhoadonthuchi();
                dsnguoidung.DataSource = luoithutratiens;
                ReportPrintTool report = new ReportPrintTool(dsnguoidung);
                dsnguoidung.txtmahoadon.Text    = txtmahoadonthu.Text;
                dsnguoidung.txtname.Text        = cbbkhachhang.Text;
                dsnguoidung.txtngay.Text        = txtngaylap.Text;
                dsnguoidung.txtsodienthoai.Text = txtsodienthoai.Text;
                dsnguoidung.txttienconno.Text   = tongTienno().ToString();
                dsnguoidung.txttongtientra.Text = tongTientra().ToString();
                report.ShowPreview();
            }
        }