public string CancelRedrawByCustomer(string InstallationID, string soapusername, string soappassword, string CustomerID, string FacilityNo, string AccountNo, string PaymentID) { try { CustomerBiz oBiz = new CustomerBiz(InstallationID, soapusername, soappassword, CustomerID, FacilityNo, AccountNo); FacilityByCustomerDAL fdal = new FacilityByCustomerDAL(); fdal.CancelRedrawByCustomer( oBiz.InstallationID, oBiz.CustomerID, oBiz.AccountFacilityID.Value, oBiz.AccountID.Value, Convert.ToInt64(PaymentID)); 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>"); } }
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>"); } }