using System; using System.Collections.Generic; using System.Linq; using System.Text; using Muchinfo.MTPClient.IService; using Muchinfo.MTPClient.Service.Utilities; using Muchinfo.MTPClient.Resources; using Muchinfo.MTPClient.Data.Model.DBTableMsg; using Muchinfo.MTPClient.Infrastructure.Cache; namespace Muchinfo.MTPClient.Service { /// /// 数据库表信息通用服务 /// public class DBTableMsgService : IDBTableMsgService { /// /// 查询合约单位 /// /// QueryAllGoodsUnit /// 查询参数 /// 成功执行 /// 失败执行 public void SearchAllGoodsUnit(string statement, List queryCommonParams, Action> successAction, Action errorAction) { QueryCommonHelper.QueryCommon(statement, queryCommonParams, new Action>((goodsUnit) => { if (successAction != null) { successAction(goodsUnit); } }), (error) => { if (errorAction != null) { //RequestFunc = 查询合约单位 error.RequestFunc = Client_Resource.Resources_Service_SearchAllGoodsUnit; errorAction(error); } }); } } }