public string GetObjectName(string exAttribute, string inputType) { string ret = ""; string InputValue = CXmlPara.CreatePara(new CPara[] { }, exAttribute); switch (inputType) { case "1": ServiceREF.CustomerService.CustomerService cus_service = new ServiceREF.CustomerService.CustomerService(); ServiceREF.CustomerService.CCustomer cus = cus_service.GetCustomer(InputValue); ret = CJson.SerializeObject(cus); break; case "2": ServiceREF.VendorService.VendorService ven_service = new ServiceREF.VendorService.VendorService(); ServiceREF.VendorService.CVendor ven = ven_service.GetVendor(InputValue); ret = CJson.SerializeObject(ven); break; case "3": ServiceREF.GeneralLedgerService.CEmployee emp = gl_service.GetEmployee(InputValue); ret = CJson.SerializeObject(emp); break; } return(ret); }
public string GetEmployee(string InputValue) { string strInputValue = CreatePara(InputValue); StringBuilder ret = new StringBuilder(); CEmployee vendor = service.GetEmployee(strInputValue); return(GetItem(vendor)); }