Пример #1
0
    protected void imgBtnSaveBilling_Click(object sender, ImageClickEventArgs e)
    {
        objNLog.Info("Function Started...");
           try
           {
               string userID = (string)Session["User"];

               PatientBilling objPatBill = new PatientBilling();
               PatientInfoDAL objPatInfo = new PatientInfoDAL();

               objPatBill.PatID = int.Parse(hidPatID.Value);

               objPatBill.TransactionDate = DateTime.Now.ToString("MM/dd/yyyy hh:mm:ss");

               if(rbtnPAPFilling.Checked==true)
                    objPatBill.TransactionType= 'P';
               else
                   objPatBill.TransactionType='S';

               if(chkTimeBilling.Checked==true)
                    objPatBill.TransactionMode='Y';
               else
                   objPatBill.TransactionMode = 'N';

               objPatBill.TransactionAmount=txtTransAmt.Text;

               objPatBill.TransactionDetails=txtTransDetails.Text;

               objPatBill.User = userID;

               if (chkRx30Patient.Checked)
                   objPatBill.TransSysFlag = "P";
               else
                   objPatBill.TransSysFlag = "R";

               objPatInfo.SetPatientBillingInfo(objPatBill);

               FillPatientBillingGrid();

               ClearBillingPanel();

           }
           catch (Exception ex)
           {
               objNLog.Error("Error : " + ex.Message);
           }
           objNLog.Info("Function completed...");
    }