Exemplo n.º 1
0
 private void cmdPrintInvoice_Click(object sender, EventArgs e)
 {
     try
     {
         frm_Print_RedInvoice oForm = new frm_Print_RedInvoice();
         oForm.payment_ID = 61;
         oForm.dtList = dtList;
         oForm.ShowDialog();
     }
     catch (Exception ex)
     {
         Utility.ShowMsg(ex.Message);
     }
 }
Exemplo n.º 2
0
 private void cmdPrintInvoice_Click(object sender, EventArgs e)
 {
     try
     {
         frm_Print_RedInvoice oForm = new frm_Print_RedInvoice();
         oForm.payment_ID = 61;
         oForm.dtList     = dtList;
         oForm.ShowDialog();
     }
     catch (Exception ex)
     {
         Utility.ShowMsg(ex.Message);
     }
 }
Exemplo n.º 3
0
        /// <summary>
        /// hàm thực hiện in phiếu cho bệnh nhân
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void cmdPrint_Click(object sender, EventArgs e)
        {
            try
            {
                frm_Print_RedInvoice frm = new frm_Print_RedInvoice();
                frm.payment_ID = Utility.Int32Dbnull(txtPayment_ID.Text, -1);
                frm.ShowDialog();
            }
            catch (Exception)
            {
                Utility.ShowMsg("Có lỗi trong quá trình xử lý thông tin hóa đơn");

            }
            //actionResult = new PreExtendExamPayment().UpdateDataPhieuThu(CreatePhieuThu());
            //switch (actionResult)
            //{
            //    case ActionResult.Success:
            //        SqlQuery q = new Select().From(TPhieuthu.Schema)
            //            .Where(TPhieuthu.Columns.MaPthu).IsEqualTo(Utility.sDbnull(txtMA_PTHU.Text, "")).And(
            //                TPhieuthu.Columns.PaymentId).IsEqualTo(Utility.Int32Dbnull(txtPayment_ID.Text, -1));
            //        m_dtReportPhieuThu = q.ExecuteDataSet().Tables[0];
            //        if (m_dtReportPhieuThu.Rows.Count <= 0)
            //        {
            //            Utility.ShowMsg("Không tìm thấy bản ghi ", "Thông báo");
            //            return;
            //        }
            //        InPhieuDichVu();
            //        break;
            //    case ActionResult.Error:
            //        Utility.ShowMsg("Lỗi trong quá trình lập phiếu thu", "Thông báo lỗi", MessageBoxIcon.Warning);
            //        break;
            //}
        }