public CRMService() { TaskDAL taskdal = new TaskDAL(); UserDAL userdal = new UserDAL(); CustomerDAL customerdal = new CustomerDAL(); container.RegisterInstance<TaskDAL>(taskdal); container.RegisterInstance<UserDAL>(userdal); container.RegisterInstance<CustomerDAL>(customerdal); }
public DataTable GetPersonData(int company, int client)// trae datos de la tabla persona { CustomerDAL Customer = new CustomerDAL(); DataTable CustomerTable; using (CustomerTable = Customer.GetPersonData(company, client)) { if (CustomerTable != null && CustomerTable.Rows.Count > 0) { return CustomerTable; } } return null; }
public DataTable GetNewClientsInvoiceAutocomplete(int icompany, string sclient, int icontabiliza) { CustomerDAL ClientDAL = new CustomerDAL(); return ClientDAL.GetNewClientsInvoiceAutocomplete(icompany, sclient, icontabiliza); }
public DataTable GetClientsInvoiceAutocomplete(int icompany, string sclient, DateTime? fechainicio, DateTime? fechafin) { CustomerDAL ClientDAL = new CustomerDAL(); return ClientDAL.GetClientsInvoiceAutocomplete(icompany, sclient, fechainicio, fechafin); }
public DataTable GetNewClientsNoteAutocomplete(int icompany, string sclient) { CustomerDAL ClientDAL = new CustomerDAL(); return ClientDAL.GetNewClientsNoteAutocomplete(icompany, sclient); }
public DataTable GetCurrencyCreditClient(int icompany, int iclient) { CustomerDAL ContactDAL = new CustomerDAL(); return ContactDAL.GetCurrencyCreditClient(icompany, iclient); }
public DataTable GetMultipleClientesAutocomplete(int icompany, string sclient) { CustomerDAL ClientDAL = new CustomerDAL(); return ClientDAL.GetMultipleClientesAutocomplete(icompany, sclient); }
public DataTable GetCreditClient(int icompany, int iclient, int ifamily) { CustomerDAL ContactDAL = new CustomerDAL(); return ContactDAL.GetCreditClient(icompany, iclient, ifamily); }
public DataTable GetQuoteClient(int icompany, int iclient) { CustomerDAL ContactDAL = new CustomerDAL(); return ContactDAL.GetQuoteClient(icompany, iclient); }
public int Person(int _moviment) { CustomerDAL Customer = new CustomerDAL(); return Customer.ManagePerson(_moviment, _company, _number, _fullname, _father, _mother, _name, _shortname, _rfc, _curp, _phonenumber, _fax, _cellphone, _email, _legal, _general, _recorddate); }
public DataTable GetCustomerDataFromCustomerName(int company, string customername) { CustomerDAL Customer = new CustomerDAL(); DataTable CustomerTable; using (CustomerTable = Customer.GetCustomerDataFromCustomerName(company, customername)) { if (CustomerTable != null && CustomerTable.Rows.Count > 0) { return CustomerTable; } } return null; }
public DataTable GetCustomerTable(int company, int client) { CustomerDAL Customer = new CustomerDAL(); DataTable CustomerTable; using (CustomerTable = Customer.GetCustomerTable(company, client)) { if (CustomerTable != null && CustomerTable.Rows.Count > 0) { return CustomerTable; } } return null; }