Ejemplo n.º 1
0
        public string ApplyAccountNewRepaymentByCustomer(string InstallationID, string soapusername, string soappassword,
                                                         string CustomerID, string FacilityNo, string AccountNo,
                                                         string Newrepaymentdate, string NewRepaymentfrequency, string NewMinPaymentAmount, string NewNominateAmount, string NewAdditionalAmount)
        {
            try
            {
                CustomerBiz oBiz = new CustomerBiz(InstallationID, soapusername, soappassword, CustomerID, 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);

                FacilityByCustomerDAL fdal = new FacilityByCustomerDAL();
                DataSet myDataSet          = fdal.ApplyAccountNewRepaymentByCustomer(
                    oBiz.InstallationID, oBiz.CustomerID, 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>");
            }
        }
Ejemplo n.º 2
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>");
            }
        }
Ejemplo n.º 3
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>");
            }
        }
Ejemplo n.º 4
0
        public string CalculateAccountNewRepaymentByCustomer(string InstallationID, string soapusername, string soappassword,
                                                             string CustomerID, string FacilityNo, string AccountNo, string Newrepaymentdate, string NewRepaymentfrequency)
        {
            try
            {
                CustomerBiz oBiz = new CustomerBiz(InstallationID, soapusername, soappassword, CustomerID, FacilityNo, AccountNo);

                DateTime newrepaymentdate = Convert.ToDateTime(Newrepaymentdate);

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

                return(myDataSet.GetXml());
            }
            catch (Exception ex)
            {
                return("<error>" + LWTSafeTypes.SafeXml(ex.Message.ToString()) + "</error>");
            }
        }
Ejemplo n.º 5
0
        public string AccountTransferProcessTransferByCustomer(string InstallationID, string soapusername, string soappassword,
                                                               string CustomerID, string FacilityNo, string FromAccountNo, string ToAccountNo, string TransferAmount)
        {
            try
            {
                CustomerBiz oBiz           = new CustomerBiz(InstallationID, soapusername, soappassword, CustomerID, FacilityNo, FromAccountNo);
                Int64       toAccountNo    = Convert.ToInt64(ToAccountNo);
                Decimal     transferAmount = Convert.ToDecimal(TransferAmount);

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

                return(myDataSet.GetXml());
            }
            catch (Exception ex)
            {
                return("<error>" + LWTSafeTypes.SafeXml(ex.Message.ToString()) + "</error>");
            }
        }
Ejemplo n.º 6
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>");
            }
        }