Ejemplo n.º 1
0
        public static AppCustomer ConvertServiceCustomerToAppCustomer(ApplicationService.customer serviceCustomer)
        {
            AppCustomer tempcustomer = new AppCustomer();

            tempcustomer.id         = serviceCustomer.customerid;
            tempcustomer.name       = serviceCustomer.name;
            tempcustomer.email      = serviceCustomer.email;
            tempcustomer.companyid  = serviceCustomer.companyid;
            tempcustomer.status     = serviceCustomer.status;
            tempcustomer.data       = serviceCustomer.data;
            tempcustomer.objectid   = serviceCustomer.objectid;
            tempcustomer.createdby  = serviceCustomer.createdby;
            tempcustomer.createdon  = serviceCustomer.createddate;
            tempcustomer.modifiedby = serviceCustomer.modifiedby;
            tempcustomer.modifiedon = serviceCustomer.modifieddate;

            return(tempcustomer);
        }
Ejemplo n.º 2
0
        public static List <AppCustomer> ConvertServiceCustomerToAppCustomer(List <ApplicationService.customer> servicecustomers)
        {
            List <AppCustomer> tempcustomers = new List <AppCustomer>();

            foreach (ApplicationService.customer item in servicecustomers)
            {
                AppCustomer tempcustomer = new AppCustomer();

                tempcustomer.id         = item.customerid;
                tempcustomer.name       = item.name;
                tempcustomer.email      = item.email;
                tempcustomer.companyid  = item.companyid;
                tempcustomer.status     = item.status;
                tempcustomer.data       = item.data;
                tempcustomer.objectid   = item.objectid;
                tempcustomer.createdby  = item.createdby;
                tempcustomer.createdon  = item.createddate;
                tempcustomer.modifiedby = item.modifiedby;
                tempcustomer.modifiedon = item.modifieddate;
                tempcustomers.Add(tempcustomer);
            }

            return(tempcustomers);
        }
        public static AppCustomer ConvertServiceCustomerToAppCustomer(ApplicationService.customer serviceCustomer)
        {
            AppCustomer tempcustomer = new AppCustomer();

            tempcustomer.id = serviceCustomer.customerid;
            tempcustomer.name = serviceCustomer.name;
            tempcustomer.email = serviceCustomer.email;
            tempcustomer.companyid = serviceCustomer.companyid;
            tempcustomer.status = serviceCustomer.status;
            tempcustomer.data = serviceCustomer.data;
            tempcustomer.objectid = serviceCustomer.objectid;
            tempcustomer.createdby = serviceCustomer.createdby;
            tempcustomer.createdon = serviceCustomer.createddate;
            tempcustomer.modifiedby = serviceCustomer.modifiedby;
            tempcustomer.modifiedon = serviceCustomer.modifieddate;

            return tempcustomer;
        }
        public static List<AppCustomer> ConvertServiceCustomerToAppCustomer(List<ApplicationService.customer> servicecustomers)
        {
            List<AppCustomer> tempcustomers = new List<AppCustomer>();

            foreach (ApplicationService.customer item in servicecustomers)
            {
                AppCustomer tempcustomer = new AppCustomer();

                tempcustomer.id = item.customerid;
                tempcustomer.name = item.name;
                tempcustomer.email = item.email;
                tempcustomer.companyid = item.companyid;
                tempcustomer.status = item.status;
                tempcustomer.data = item.data;
                tempcustomer.objectid = item.objectid;
                tempcustomer.createdby = item.createdby;
                tempcustomer.createdon = item.createddate;
                tempcustomer.modifiedby = item.modifiedby;
                tempcustomer.modifiedon = item.modifieddate;
                tempcustomers.Add(tempcustomer);
            }

            return tempcustomers;
        }
Ejemplo n.º 5
0
 public AppCustomer[] GetAllCustomers(string companyid)
 {
     ApplicationService.customer[] customers = appclient.GetAllCustomer(companyid, "", "");
     return(AppCustomer.ConvertServiceCustomerToAppCustomer(customers.ToList()).ToArray());
 }
Ejemplo n.º 6
0
 public AppCustomer GetCustomer(string customerid, string companyid, string objectid)
 {
     ApplicationService.customer customer = appclient.GetCustomer(companyid, customerid, objectid);
     return(AppCustomer.ConvertServiceCustomerToAppCustomer(customer));
 }