You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
107 lines
4.4 KiB
107 lines
4.4 KiB
using Common.Model.BenificiaryModel;
|
|
using Common.Model.CustomerModel;
|
|
using Common.Utility;
|
|
using Repository.DAO;
|
|
using Repository.Repository.OnlineCustomerDao;
|
|
using System;
|
|
using System.Data;
|
|
|
|
namespace Business.Customer
|
|
{
|
|
public class CustomerServices : ICustomerServices
|
|
{
|
|
private readonly ICustomerRepository _customerRepo;
|
|
public CustomerServices(ICustomerRepository customerRepo)
|
|
{
|
|
_customerRepo = customerRepo;
|
|
}
|
|
public DbResult AddCustomerSignature(string customerId, string user, string fileName, string signaturetype, string signatureId)
|
|
{
|
|
return _customerRepo.AddCustomerSignature(customerId, user, fileName, signaturetype, signatureId);
|
|
}
|
|
public DbResult AddCustomerPDFUpload(string customerId, string user, string fileName, string fileType, string rowIdField)
|
|
{
|
|
return _customerRepo.AddCustomerPDFUpload(customerId, user, fileName, fileType, rowIdField);
|
|
}
|
|
public string GetCustomerDetailsForFileUpload(string customerId)
|
|
{
|
|
return _customerRepo.GetCustomerDetailsForFileUpload(customerId);
|
|
}
|
|
|
|
public string GetCustomerDetailsForPDFSave(string membershipId, string rowIdField, string type)
|
|
{
|
|
return _customerRepo.GetCustomerDetailsForPDFSave(membershipId, rowIdField, type);
|
|
}
|
|
|
|
public DataTable GetAddressByZipCodeNew(string zipCode, string user, string rowId)
|
|
{
|
|
return _customerRepo.GetAddressByZipCodeNew(zipCode, user, rowId);
|
|
}
|
|
|
|
public DataRow GetCustomerDetails(string customerId, string user)
|
|
{
|
|
return _customerRepo.GetCustomerDetails(customerId, user);
|
|
}
|
|
|
|
public DataTable GetCustomerDetailsWitDT(string customerId, string user)
|
|
{
|
|
return _customerRepo.GetCustomerDetailsWitDT(customerId, user);
|
|
}
|
|
|
|
public DataSet GetCustomerInfoFromMembershiId(string user, string membershipId, string receiverId, string rowId)
|
|
{
|
|
|
|
return _customerRepo.GetCustomerInfoFromMembershiId(user, membershipId,receiverId,rowId);
|
|
}
|
|
|
|
public DataTable GetDetailsForEditCustomer(string customerId, string user)
|
|
{
|
|
return _customerRepo.GetDetailsForEditCustomer(customerId, user);
|
|
}
|
|
|
|
public DataTable GetDocumentByCustomerId(string customerId,string fileDescription,string sessionId)
|
|
{
|
|
return _customerRepo.GetDocumentByCustomerId(customerId, fileDescription, sessionId);
|
|
}
|
|
|
|
public DataRow GetRequiredCustomerDetails(string customerId, string user)
|
|
{
|
|
return _customerRepo.GetRequiredCustomerDetails(customerId, user);
|
|
}
|
|
|
|
public DataSet LoadCustomerDataNew(string user, string customerId, string flag, string sCountryId, string settlementAgent)
|
|
{
|
|
return _customerRepo.LoadCustomerDataNew(user, customerId, flag, sCountryId, settlementAgent);
|
|
}
|
|
|
|
public DataTable LoadDataPaymentModeDdl(string sCountryid, string pCountry, string collMode, string agentId, string flag, string user)
|
|
{
|
|
return _customerRepo.LoadDataPaymentModeDdl(sCountryid,pCountry,collMode,agentId,flag,user);
|
|
}
|
|
|
|
public DbResult RegisterCustomerAndReceiver(OnlineCustomerModel onlineCustomerModel, BenificiaryModel beniciaryModel)
|
|
{
|
|
return _customerRepo.RegisterCustomerAndReceiver(onlineCustomerModel, beniciaryModel);
|
|
}
|
|
|
|
public DbResult RegisterCustomerNew(OnlineCustomerModel onlineCustomerModel)
|
|
{
|
|
return _customerRepo.RegisterCustomerNew(onlineCustomerModel);
|
|
}
|
|
|
|
public DbResult UpdateBenificiarInformation(BenificiaryModel benificiar, string user)
|
|
{
|
|
return _customerRepo.UpdateBenificiarInformation(benificiar,user);
|
|
}
|
|
|
|
public DbResult UpdateCustomerDocument(string cdId, string customerId, string fileName, string fileDescription, string fileType, string documentType, string user)
|
|
{
|
|
return _customerRepo.UpdateCustomerDocument(cdId, customerId, fileName, fileDescription, fileType, documentType, user);
|
|
}
|
|
|
|
public DataSet GetCustomerAndReceiver(string customerId, string user)
|
|
{
|
|
return _customerRepo.GetCustomerAndReceiver(customerId, user);
|
|
}
|
|
}
|
|
}
|