Esempio n. 1
0
    protected void btnSaveAdjBill_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 = lblTransAdjDate.Text;

               if (rbtnCredit.Checked == true)
                   objPatBill.TransactionType = 'C';
               else
                   objPatBill.TransactionType = 'D';

               objPatBill.TransactionFlag='A';

               objPatBill.TransactionAmount = txtAdjBillAmt.Text;

               objPatBill.TransactionDetails = txtAdjBillDetails.Text;

               objPatBill.User = userID;

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

               objPatInfo.SetPatientAdjustBillingInfo(objPatBill);

               FillPatientBillingGrid();

               ClearBillingAdjustmentPanel();

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