public string CreateStatementByIntroducer(string InstallationID, string soapusername, string soappassword, string IntroducerID, string FacilityNo, string AccountNo, string StartDate, string EndDate) { try { DateTime startDate, endDate; if (StartDate == "" || EndDate == "") { throw new Exception("Missing Date range"); } OriginatorBiz oBiz = new OriginatorBiz(InstallationID, soapusername, soappassword, IntroducerID, FacilityNo, AccountNo); startDate = Convert.ToDateTime(StartDate); endDate = Convert.ToDateTime(EndDate); GenerateStatementBiz generateStatement = new GenerateStatementBiz(); Int64 AccountTemplateDocumentID = generateStatement.GenerateStatement( Convert.ToInt64(InstallationID), Convert.ToInt64(FacilityNo), Convert.ToInt64(AccountNo), 0, startDate, endDate); return("<accountdocumentid>" + LWTSafeTypes.SafeString(AccountTemplateDocumentID) + "</accountdocumentid>"); //DataSet myDataSet = (new FacilityDAL()).GetStatementByIntroducer( // oBiz.InstallationID, oBiz.LWIntroducerID, oBiz.AccountFacilityID.Value, oBiz.AccountID.Value, startDate, endDate); //return myDataSet.GetXml(); } catch (Exception ex) { return("<error>" + ex.Message.ToString() + "</error>"); } }
public string ApplyAccountNewRepaymentByIntroducer(string InstallationID, string soapusername, string soappassword, string IntroducerID, string FacilityNo, string AccountNo, string Newrepaymentdate, string NewRepaymentfrequency, string NewMinPaymentAmount, string NewNominateAmount, string NewAdditionalAmount) { try { OriginatorBiz oBiz = new OriginatorBiz(InstallationID, soapusername, soappassword, IntroducerID, FacilityNo, AccountNo); DateTime newrepaymentdate = Convert.ToDateTime(Newrepaymentdate); Decimal newMinPaymentAmount = Convert.ToDecimal(NewMinPaymentAmount); Decimal? newNominateAmount = null; if (NewNominateAmount != "") { newNominateAmount = Convert.ToDecimal(NewNominateAmount); } Decimal newAdditionalAmount = Convert.ToDecimal(NewAdditionalAmount); FacilityDAL fdal = new FacilityDAL(); DataSet myDataSet = fdal.ApplyAccountNewRepaymentByIntroducer( oBiz.InstallationID, oBiz.LWIntroducerID, oBiz.AccountFacilityID.Value, oBiz.AccountID.Value, newrepaymentdate, NewRepaymentfrequency, newMinPaymentAmount, newNominateAmount, newAdditionalAmount); return(myDataSet.GetXml()); } catch (Exception ex) { return("<error>" + LWTSafeTypes.SafeXml(ex.Message.ToString()) + "</error>"); } }
public string GetAccountStatementListByIntroducer(string InstallationID, string soapusername, string soappassword, string IntroducerID, string FacilityNo, string AccountNo, string StartDate, string EndDate) { try { DateTime startDate, endDate; if (StartDate == "" || EndDate == "") { throw new Exception("Missing Date range"); } OriginatorBiz oBiz = new OriginatorBiz(InstallationID, soapusername, soappassword, IntroducerID, FacilityNo, AccountNo); startDate = Convert.ToDateTime(StartDate); endDate = Convert.ToDateTime(EndDate); DataSet myDataSet = (new FacilityDAL()).GetAccountStatementListByIntroducer( oBiz.InstallationID, oBiz.LWIntroducerID, oBiz.AccountFacilityID.Value, oBiz.AccountID.Value, startDate, endDate); return(myDataSet.GetXml()); } catch (Exception ex) { return("<error>" + ex.Message.ToString() + "</error>"); } }
public string GetAccountTransactionsByIntroducer(string InstallationID, string soapusername, string soappassword, string IntroducerID, string FacilityNo, string AccountNo) { try { OriginatorBiz oBiz = new OriginatorBiz(InstallationID, soapusername, soappassword, IntroducerID, FacilityNo, AccountNo); DataSet myDataSet = (new FacilityDAL()).GetAccountTransactionsByIntroducer( oBiz.InstallationID, oBiz.LWIntroducerID, oBiz.AccountFacilityID.Value, oBiz.AccountID.Value); return(myDataSet.GetXml()); } catch (Exception ex) { return("<error>" + LWTSafeTypes.SafeXml(ex.ToString()) + "</error>"); } }
public string GetFacilityAccountListByIntroducer(string InstallationID, string soapusername, string soappassword, string IntroducerID, string FacilityNo, string AccountNo, string borrowerFirstName, string borrowerLastName, string companyTrustName, string streetNo, string streetName, string suburb, string state, string postcode) { try { OriginatorBiz oBiz = new OriginatorBiz(InstallationID, soapusername, soappassword, IntroducerID, FacilityNo, AccountNo); DataSet myDataSet = (new FacilityDAL()).GetFacilityAccountListByIntroducer( oBiz.InstallationID, oBiz.LWIntroducerID, oBiz.AccountFacilityID, oBiz.AccountID, borrowerFirstName, borrowerLastName, companyTrustName, streetNo, streetName, suburb, state, postcode); return(myDataSet.GetXml()); } catch (Exception ex) { return("<error>" + LWTSafeTypes.SafeXml(ex.Message.ToString()) + "</error>"); } }
public string AccountUpdateDDRByIntroducer(string InstallationID, string soapusername, string soappassword, string IntroducerID, string FacilityNo, string AccountNo, string DDRBSB, string DDRAccountNumber, string DDRAccountName, string DDRInstitution) { try { OriginatorBiz oBiz = new OriginatorBiz(InstallationID, soapusername, soappassword, IntroducerID, FacilityNo, AccountNo); FacilityDAL fdal = new FacilityDAL(); DataSet myDataSet = fdal.AccountUpdateDDRByIntroducer( oBiz.InstallationID, oBiz.LWIntroducerID, oBiz.AccountFacilityID.Value, oBiz.AccountID.Value, DDRBSB, DDRAccountNumber, DDRAccountName, DDRInstitution); return(myDataSet.GetXml()); } catch (Exception ex) { return("<error>" + LWTSafeTypes.SafeXml(ex.Message.ToString()) + "</error>"); } }
public string CalculateAccountNewRepaymentByIntroducer(string InstallationID, string soapusername, string soappassword, string IntroducerID, string FacilityNo, string AccountNo, string Newrepaymentdate, string NewRepaymentfrequency) { try { OriginatorBiz oBiz = new OriginatorBiz(InstallationID, soapusername, soappassword, IntroducerID, FacilityNo, AccountNo); DateTime newrepaymentdate = Convert.ToDateTime(Newrepaymentdate); FacilityDAL fdal = new FacilityDAL(); DataSet myDataSet = fdal.CalculateAccountNewRepaymentByIntroducer( oBiz.InstallationID, oBiz.LWIntroducerID, oBiz.AccountFacilityID.Value, oBiz.AccountID.Value, newrepaymentdate, NewRepaymentfrequency); return(myDataSet.GetXml()); } catch (Exception ex) { return("<error>" + LWTSafeTypes.SafeXml(ex.Message.ToString()) + "</error>"); } }
public string AccountTransferProcessTransferByIntroducer(string InstallationID, string soapusername, string soappassword, string IntroducerID, string FacilityNo, string FromAccountNo, string ToAccountNo, string TransferAmount) { try { OriginatorBiz oBiz = new OriginatorBiz(InstallationID, soapusername, soappassword, IntroducerID, FacilityNo, FromAccountNo); Int64 toAccountNo = Convert.ToInt64(ToAccountNo); Decimal transferAmount = Convert.ToDecimal(TransferAmount); FacilityDAL fdal = new FacilityDAL(); DataSet myDataSet = fdal.AccountTransferProcessTransferByIntroducer( oBiz.InstallationID, oBiz.LWIntroducerID, oBiz.AccountFacilityID.Value, oBiz.AccountID.Value, toAccountNo, transferAmount); return(myDataSet.GetXml()); } catch (Exception ex) { return("<error>" + LWTSafeTypes.SafeXml(ex.Message.ToString()) + "</error>"); } }
public string CancelFacilityAccountOnceOffPaymentByIntroducer(string InstallationID, string soapusername, string soappassword, string IntroducerID, string FacilityNo, string AccountNo, string PaymentID) { try { OriginatorBiz oBiz = new OriginatorBiz(InstallationID, soapusername, soappassword, IntroducerID, FacilityNo, AccountNo); FacilityDAL fdal = new FacilityDAL(); fdal.CancelFacilityAccountOnceOffPaymentByIntroducer( oBiz.InstallationID, oBiz.LWIntroducerID, oBiz.AccountFacilityID.Value, oBiz.AccountID.Value, Convert.ToInt64(PaymentID)); DataSet myDataSet = fdal.GetFacilityAccountOnceOffPaymentListByIntroducer( oBiz.InstallationID, oBiz.LWIntroducerID, oBiz.AccountFacilityID.Value, oBiz.AccountID.Value); return(myDataSet.GetXml()); } catch (Exception ex) { return("<error>" + LWTSafeTypes.SafeXml(ex.Message.ToString()) + "</error>"); } }