public bool DeleteByCode(string strCode) { bool result = false; IKhflbService service = CreateSubClient(); ICommunicationObject comm = service as ICommunicationObject; comm.Using(client => { result = service.DeleteByCode(strCode); }); return(result); }
///// <summary> ///// 根据名称查找对象(自定义接口使用范例) ///// </summary> //public List<KhflbInfo> FindByName(string name) //{ // List<KhflbInfo> result = new List<KhflbInfo>(); // IKhflbService service = CreateSubClient(); // ICommunicationObject comm = service as ICommunicationObject; // comm.Using(client => // { // result = service.FindByName(name); // }); // return result; //} public List <KhflbInfo> GetAllTree(string nodeType) { List <KhflbInfo> result = new List <KhflbInfo>(); IKhflbService service = CreateSubClient(); ICommunicationObject comm = service as ICommunicationObject; comm.Using(client => { result = service.GetAllTree(nodeType); }); return(result); }
public List <KhflbInfo> GetKhflbByID(string parentcode) { List <KhflbInfo> result = new List <KhflbInfo>(); IKhflbService service = CreateSubClient(); ICommunicationObject comm = service as ICommunicationObject; comm.Using(client => { result = service.GetKhflbByID(parentcode); }); return(result); }
public bool SaveExcelData(List <KhflbInfo> list) { bool result = false; IKhflbService service = CreateSubClient(); ICommunicationObject comm = service as ICommunicationObject; comm.Using(client => { result = service.SaveExcelData(list); }); return(result); }