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);
 }
Example #2
0
        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;
        }
Example #3
0
 public DataTable GetNewClientsInvoiceAutocomplete(int icompany, string sclient, int icontabiliza)
 {
     CustomerDAL ClientDAL = new CustomerDAL();
     return ClientDAL.GetNewClientsInvoiceAutocomplete(icompany, sclient, icontabiliza);
 }
Example #4
0
 public DataTable GetClientsInvoiceAutocomplete(int icompany, string sclient, DateTime? fechainicio, DateTime? fechafin)
 {
     CustomerDAL ClientDAL = new CustomerDAL();
     return ClientDAL.GetClientsInvoiceAutocomplete(icompany, sclient, fechainicio, fechafin);
 }
Example #5
0
 public DataTable GetNewClientsNoteAutocomplete(int icompany, string sclient)
 {
     CustomerDAL ClientDAL = new CustomerDAL();
     return ClientDAL.GetNewClientsNoteAutocomplete(icompany, sclient);
 }
Example #6
0
 public DataTable GetCurrencyCreditClient(int icompany, int iclient)
 {
     CustomerDAL ContactDAL = new CustomerDAL();
     return ContactDAL.GetCurrencyCreditClient(icompany, iclient);
 }
Example #7
0
 public DataTable GetMultipleClientesAutocomplete(int icompany, string sclient)
 {
     CustomerDAL ClientDAL = new CustomerDAL();
     return ClientDAL.GetMultipleClientesAutocomplete(icompany, sclient);
 }
Example #8
0
 public DataTable GetCreditClient(int icompany, int iclient, int ifamily)
 {
     CustomerDAL ContactDAL = new CustomerDAL();
     return ContactDAL.GetCreditClient(icompany, iclient, ifamily);
 }
Example #9
0
 public DataTable GetQuoteClient(int icompany, int iclient)
 {
     CustomerDAL ContactDAL = new CustomerDAL();
     return ContactDAL.GetQuoteClient(icompany, iclient);
 }
Example #10
0
 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);
 }
Example #11
0
        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;
        }
Example #12
0
        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;
        }