Пример #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>");
            }
        }
Пример #2
0
 public string GetSecurityDetailByCustomer(string InstallationID, string soapusername, string soappassword, string CustomerID, string FacilityNo, string AccountNo)
 {
     try
     {
         CustomerBiz oBiz      = new CustomerBiz(InstallationID, soapusername, soappassword, CustomerID, FacilityNo, "");
         DataSet     myDataSet = (new FacilityByCustomerDAL()).GetSecurityDetailByCustomer(
             oBiz.InstallationID, oBiz.CustomerID, oBiz.AccountFacilityID.Value);
         return(myDataSet.GetXml());
     }
     catch (Exception ex)
     {
         return("<error>" + LWTSafeTypes.SafeXml(ex.Message.ToString()) + "</error>");
     }
 }
Пример #3
0
        public string GetCustomerDetails(string InstallationID, string soapusername, string soappassword, string CustomerID)
        {
            try
            {
                CustomerBiz oBiz      = new CustomerBiz(InstallationID, soapusername, soappassword, CustomerID, "", "");
                DataSet     myDataSet = (new FacilityByCustomerDAL()).GetCustomerDetails(oBiz.CustomerID);

                return(myDataSet.GetXml());
            }
            catch (Exception ex)
            {
                return("<error>" + LWTSafeTypes.SafeXml(ex.Message.ToString()) + "</error>");
            }
        }
Пример #4
0
        public string GetSecurityQuestionList(string InstallationID, string soapusername, string soappassword)
        {
            try
            {
                CustomerBiz oBiz = new CustomerBiz(soapusername, soappassword);

                DataSet myDataSet = oBiz.GetSecurityQuestionList(InstallationID);

                return(myDataSet.GetXml());
            }
            catch (Exception ex)
            {
                return("<error>" + LWTSafeTypes.SafeXml(ex.Message.ToString()) + "</error>");
            }
        }
Пример #5
0
 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>");
     }
 }
Пример #6
0
        public string ValidateCustomerPortalLogin(string InstallationID, string soapusername, string soappassword,
                                                  string CustomerLogin, string CustomerPassword)
        {
            try
            {
                CustomerBiz oBiz = new CustomerBiz(soapusername, soappassword);

                DataSet myDataSet = oBiz.ValidateCustomerPortalLogin(InstallationID, CustomerLogin, CustomerPassword);

                return(myDataSet.GetXml());
            }
            catch (Exception ex)
            {
                return("<error>" + LWTSafeTypes.SafeXml(ex.Message.ToString()) + "</error>");
            }
        }
Пример #7
0
        public string CustomerAcceptTermsAndConditions(string InstallationID, string soapusername, string soappassword,
                                                       string CustomerID)
        {
            try
            {
                CustomerBiz oBiz = new CustomerBiz(InstallationID, soapusername, soappassword, CustomerID, "", "");

                FacilityByCustomerDAL DAL = new FacilityByCustomerDAL();
                DAL.CustomerAcceptTermsAndConditions(oBiz.InstallationID, oBiz.CustomerID);

                return("");
            }
            catch (Exception ex)
            {
                return("<error>" + LWTSafeTypes.SafeXml(ex.Message.ToString()) + "</error>");
            }
        }
Пример #8
0
        public string GetAccountRegularRepaymentListByCustomer(string InstallationID, string soapusername, string soappassword,
                                                               string CustomerID, string FacilityNo, string AccountNo)
        {
            try
            {
                CustomerBiz oBiz = new CustomerBiz(InstallationID, soapusername, soappassword, CustomerID, FacilityNo, AccountNo);

                FacilityByCustomerDAL fdal = new FacilityByCustomerDAL();
                DataSet myDataSet          = fdal.GetAccountRegularRepaymentListByCustomer(
                    oBiz.InstallationID, oBiz.CustomerID, oBiz.AccountFacilityID.Value, oBiz.AccountID.Value);

                return(myDataSet.GetXml());
            }
            catch (Exception ex)
            {
                return("<error>" + LWTSafeTypes.SafeXml(ex.Message.ToString()) + "</error>");
            }
        }
Пример #9
0
        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>");
            }
        }
Пример #10
0
        public string GetEmailMobile(string InstallationID, string soapusername, string soappassword, string CustomerID, string CustomerDOB, string AccountFacilityID, string AccountNo)
        {
            try
            {
                DateTime    customerdob;
                CustomerBiz oBiz = new CustomerBiz(InstallationID, soapusername, soappassword, CustomerID, AccountFacilityID, AccountNo);

                //customerdob = Convert.ToDateTime(CustomerDOB);
                customerdob = Convert.ToDateTime(GetFormatDate(CustomerDOB));

                DataSet myDataSet = (new FacilityByCustomerDAL()).GetEmailMobile(oBiz.InstallationID, oBiz.CustomerID, customerdob, oBiz.AccountFacilityID.Value, oBiz.AccountID.Value);

                return(myDataSet.GetXml());
            }
            catch (Exception ex)
            {
                return("<error>" + LWTSafeTypes.SafeXml(ex.Message.ToString()) + "</error>");
            }
        }
Пример #11
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>");
            }
        }
Пример #12
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>");
            }
        }
Пример #13
0
        public string SubmitChangePassword(string InstallationID, string soapusername, string soappassword, string CustomerID, string OriginPage, string CustomerDOB, string AccountFacilityID, string AccountNo,
                                           string CurrentPassword, string NewPassword, string TranType)
        {
            try
            {
                DateTime    customerdob;
                CustomerBiz oBiz = new CustomerBiz(InstallationID, soapusername, soappassword, CustomerID, AccountFacilityID, AccountNo);

                //customerdob = Convert.ToDateTime(CustomerDOB);
                customerdob = Convert.ToDateTime(GetFormatDate(CustomerDOB));

                DataSet myDataSet = (new FacilityByCustomerDAL()).SubmitChangePassword(oBiz.InstallationID, oBiz.CustomerID, OriginPage, customerdob, oBiz.AccountFacilityID.Value, oBiz.AccountID.Value, CurrentPassword, NewPassword, TranType);

                return(myDataSet.GetXml());
            }
            catch (Exception ex)
            {
                return("<error>" + LWTSafeTypes.SafeXml(ex.Message.ToString()) + "</error>");
            }
        }
Пример #14
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>");
            }
        }
Пример #15
0
        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>");
            }
        }
Пример #16
0
        public string SaveRedrawByCustomer(string InstallationID, string soapusername, string soappassword,
                                           string CustomerID, string FacilityNo, string AccountNo, string RedrawtDate, string RedrawAmount)
        {
            try
            {
                CustomerBiz oBiz = new CustomerBiz(InstallationID, soapusername, soappassword, CustomerID, FacilityNo, AccountNo);

                DateTime redrawDate        = Convert.ToDateTime(RedrawtDate);
                Decimal  redrawamount      = Convert.ToDecimal(RedrawAmount);
                FacilityByCustomerDAL fdal = new FacilityByCustomerDAL();
                fdal.SaveFacilityRedrawByCustomer(
                    oBiz.InstallationID, oBiz.CustomerID, oBiz.AccountFacilityID.Value, oBiz.AccountID.Value, redrawDate, redrawamount);

                DataSet myDataSet = fdal.GetFacilityAccountRedrawByCustomer(
                    oBiz.InstallationID, oBiz.CustomerID, oBiz.AccountFacilityID.Value, oBiz.AccountID.Value);

                return(myDataSet.GetXml());
            }
            catch (Exception ex)
            {
                return("<error>" + LWTSafeTypes.SafeXml(ex.Message.ToString()) + "</error>");
            }
        }