public TransecUI(string serviceid) { try { InitializeComponent(); canceledLable.Show(); var rr = WARPRO.Glob.Bookings_And_Payments.Glob_Transec.Get_Transec_Row(serviceid); totalrecievable = rr.REMAINING; recieved = rr.T_RECIEVED; ServiceIdLinkTxt.Text = rr.SERVICE_ID.ToString(); CustomerIdLinkTxt.Text = rr.CUSTOMER_ID.ToString(); RecievableTxt.Text = rr.ORIGNAL_RECIEVABLE.ToString(); RecievedTxt.Text = rr.T_RECIEVED.ToString(); RemainingTxt.Text = rr.REMAINING.ToString(); ServiceNameLinkTxt.Text = rr.SERVICE_NAME; StatusToggle.Checked = rr.STATUS; if (rr.STATUS == false) { canceledLable.Text = "CANCELLED/REFUNDED"; SAVE_Btn.Hide(); CurrentT_RecieveAmount.Hide(); recLable.Hide(); } if (rr.STATUS == true) { if (rr.REMAINING <= 0) { canceledLable.Text = "CLEARED"; canceledLable.ForeColor = Color.Green; CurrentT_RecieveAmount.Hide(); recLable.Hide(); SAVE_Btn.Hide(); } else if (rr.REMAINING > 0) { canceledLable.Text = "PENDING"; canceledLable.ForeColor = Color.DodgerBlue; } } } catch (Exception ex) { MessageBox.Show(ex.Message, "Message", MessageBoxButtons.OK, MessageBoxIcon.Information); } }
public BillRemainingPay(long Orignalbillid) { InitializeComponent(); var rr = WARPRO.Glob.Bookings_And_Payments.Glob_Bill_Payments.Select_Row_Bill_Payment(Orignalbillid); OrignalServiceBookingIDforTransec = rr.BOOKING_ID_NO.ToString(); OrignalCustomerIDForTransec = rr.REFERENCE_CODE.ToString(); RemainingVar = rr.REMAINING_AMOUNT; PaidVar = rr.PAID_AMOUNT; IspaidFullVar = rr.IsPAID_FULL; OrignalbilliDVar = rr.BILL_ID; this.Text = "BILL ID - " + rr.BILL_ID.ToString() + " : : BOOKING ID - " + rr.BOOKING_ID_NO.ToString(); orignalGrandTotal = rr.PAID_AMOUNT + rr.REMAINING_AMOUNT; Orignal_Total_Txt.Text = orignalGrandTotal.ToString(); Paid_Total_Txt.Text = rr.PAID_AMOUNT.ToString(); Remaining_Total_Txt.Text = rr.REMAINING_AMOUNT.ToString(); status_txt.Text = "PENDING BILL"; status_txt.ForeColor = Color.DodgerBlue; if (rr.IsPAID_FULL == true) { PayAmount_Txt.Hide(); SAVE_Btn.Hide(); status_txt.Text = "ALREADY CLEARED BILL"; status_txt.ForeColor = Color.Green; } if (rr.IsREFUNDED == true) { PayAmount_Txt.Hide(); SAVE_Btn.Hide(); status_txt.Text = "REFUNDED"; status_txt.ForeColor = Color.Red; } }
public PayablePayUI(long BookingiD) { InitializeComponent(); var rr = WARPRO.Glob.Bookings_And_Payments.Glob_Payable.Get_SelectPayableRow(BookingiD); RemainingVar = rr.REMAINING_AMOUNT; PaidVar = rr.PAID_AMOUNT; IspaidFullVar = rr.IsPAID_FULL; OrignalbookingiDVar = rr.BOOKING_ID; this.Text = "PAYABLE ID - " + rr.PAYABLE_ID.ToString() + " : : BOOKING ID - " + rr.BOOKING_ID.ToString(); Orignal_Total_Txt.Text = rr.PAYABLE_AMOUNT.ToString(); Paid_Total_Txt.Text = rr.PAID_AMOUNT.ToString(); Remaining_Total_Txt.Text = rr.REMAINING_AMOUNT.ToString(); status_txt.Text = "PENDING PAYABLE"; status_txt.ForeColor = Color.DodgerBlue; if (rr.IsPAID_FULL == true) { PayAmount_Txt.Hide(); SAVE_Btn.Hide(); status_txt.Text = "ALREADY CLEARED PAYABLE"; status_txt.ForeColor = Color.Green; } if (rr.DEAL_STATUS == false) { PayAmount_Txt.Hide(); SAVE_Btn.Hide(); status_txt.Text = "CANCELLED"; status_txt.ForeColor = Color.Red; } }