public DataTable ExaSumExport(string strYear, string strMonth, string strResKS_ID) { DataTable result = new DataTable(); IYdjxkhService service = CreateSubClient(); ICommunicationObject comm = service as ICommunicationObject; comm.Using(client => { result = service.ExaSumExport(strYear, strMonth, strResKS_ID); }); return(result); }
///// <summary> ///// 根据名称查找对象(自定义接口使用范例) ///// </summary> //public List<YdjxkhInfo> FindByName(string name) //{ // List<YdjxkhInfo> result = new List<YdjxkhInfo>(); // IYdjxkhService service = CreateSubClient(); // ICommunicationObject comm = service as ICommunicationObject; // comm.Using(client => // { // result = service.FindByName(name); // }); // return result; //} public bool InsertMainAndSub(string strYear, string strMonth, string strCreator) { bool result = false; IYdjxkhService service = CreateSubClient(); ICommunicationObject comm = service as ICommunicationObject; comm.Using(client => { result = service.InsertMainAndSub(strYear, strMonth, strCreator); }); return(result); }
public bool UpdateStateByID(string ID, string State, string strEditor) { bool result = false; IYdjxkhService service = CreateSubClient(); ICommunicationObject comm = service as ICommunicationObject; comm.Using(client => { result = service.UpdateStateByID(ID, State, strEditor); }); return(result); }
public DataTable GetDataTableByCheckKS(string strYear, string strMonth, string strCheckKS_ID) { DataTable result = new DataTable(); IYdjxkhService service = CreateSubClient(); ICommunicationObject comm = service as ICommunicationObject; comm.Using(client => { result = service.GetDataTableByCheckKS(strYear, strMonth, strCheckKS_ID); }); return(result); }