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