Beispiel #1
0
        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>");
            }
        }
Beispiel #2
0
        public string GetAccountRegularRepaymentListByIntroducer(string InstallationID, string soapusername, string soappassword,
                                                                 string IntroducerID, string FacilityNo, string AccountNo)
        {
            try
            {
                OriginatorBiz oBiz = new OriginatorBiz(InstallationID, soapusername, soappassword, IntroducerID, FacilityNo, AccountNo);

                FacilityDAL fdal      = new FacilityDAL();
                DataSet     myDataSet = fdal.GetAccountRegularRepaymentListByIntroducer(
                    oBiz.InstallationID, oBiz.LWIntroducerID, oBiz.AccountFacilityID.Value, oBiz.AccountID.Value);

                return(myDataSet.GetXml());
            }
            catch (Exception ex)
            {
                return("<error>" + LWTSafeTypes.SafeXml(ex.Message.ToString()) + "</error>");
            }
        }
Beispiel #3
0
        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>");
            }
        }
Beispiel #4
0
        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>");
            }
        }
Beispiel #5
0
        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>");
            }
        }
Beispiel #6
0
        public string SaveFacilityAccountOnceOffPaymentByIntroducer(string InstallationID, string soapusername, string soappassword,
                                                                    string IntroducerID, string FacilityNo, string AccountNo, string PaymentDate, string PaymentAmount)
        {
            try
            {
                OriginatorBiz oBiz = new OriginatorBiz(InstallationID, soapusername, soappassword, IntroducerID, FacilityNo, AccountNo);

                DateTime    paymentDate   = Convert.ToDateTime(PaymentDate);
                Decimal     paymentamount = Convert.ToDecimal(PaymentAmount);
                FacilityDAL fdal          = new FacilityDAL();
                fdal.SaveFacilityAccountOnceOffPaymentByIntroducer(
                    oBiz.InstallationID, oBiz.LWIntroducerID, oBiz.AccountFacilityID.Value, oBiz.AccountID.Value, paymentDate, paymentamount);

                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>");
            }
        }