Exemple #1
0
 private void btnIn_Click(object sender, EventArgs e)
 {
     if (txtSoHDN.Text == "")
     {
         MessageBox.Show("Chưa Có Thông Tin Hóa Đơn", "Thông Báo", MessageBoxButtons.OK, MessageBoxIcon.Information);
         return;
     }
     else if (B_HDNhap.GetBillNhap(txtSoHDN.Text).Rows.Count == 0)
     {
         MessageBox.Show("Chưa Có Thông Tin Hóa Đơn", "Thông Báo", MessageBoxButtons.OK, MessageBoxIcon.Information);
         return;
     }
     else
     {
         ExcelAutomate.automateHD
             (B_HDNhap.GetBillNhap(txtSoHDN.Text), B_HDNhap.XuatMatHangHDN(txtSoHDN.Text)
             , "HÓA ĐƠN NHẬP", "Nhà Cung Cấp");
     }
 }
Exemple #2
0
 private void btnIn_Click(object sender, EventArgs e)
 {
     if (txtSoHDB.Text == "")
     {
         MessageBox.Show("Chưa Có Thông Tin Hóa Đơn", "Thông Báo", MessageBoxButtons.OK, MessageBoxIcon.Information);
         return;
     }
     else if (B_HDBan.GetBillBan(txtSoHDB.Text).Rows.Count == 0)
     {
         MessageBox.Show("Chưa Có Thông Tin Hóa Đơn", "Thông Báo", MessageBoxButtons.OK, MessageBoxIcon.Information);
         return;
     }
     else
     {
         ExcelAutomate.automateHD
             (B_HDBan.GetBillBan(txtSoHDB.Text), B_HDBan.XuatMatHangHDB(txtSoHDB.Text)
             , "HÓA ĐƠN BÁN", "Khách Hàng");
     }
 }