public bool SaveExcelData(List <YdjxkhzbInfo> list) { bool result = false; IYdjxkhzbService service = CreateSubClient(); ICommunicationObject comm = service as ICommunicationObject; comm.Using(client => { result = service.SaveExcelData(list); }); return(result); }
public DataTable GetDataTable(string strYear, string strMonth, string strResKS_ID, string strCheckKS_ID) { DataTable result = new DataTable(); IYdjxkhzbService service = CreateSubClient(); ICommunicationObject comm = service as ICommunicationObject; comm.Using(client => { result = service.GetDataTable(strYear, strMonth, strResKS_ID, strCheckKS_ID); }); return(result); }
///// <summary> ///// 根据名称查找对象(自定义接口使用范例) ///// </summary> //public List<YdjxkhzbInfo> FindByName(string name) //{ // List<YdjxkhzbInfo> result = new List<YdjxkhzbInfo>(); // IYdjxkhzbService service = CreateSubClient(); // ICommunicationObject comm = service as ICommunicationObject; // comm.Using(client => // { // result = service.FindByName(name); // }); // return result; //} public bool SaveScore(string Mid, string Ids) { bool result = false; IYdjxkhzbService service = CreateSubClient(); ICommunicationObject comm = service as ICommunicationObject; comm.Using(client => { result = service.SaveScore(Mid, Ids); }); return(result); }