| 123456789101112131415161718192021222324252627282930313233343536373839404142434445 |
- 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
- {
- /// <summary>
- /// 数据库表信息通用服务
- /// </summary>
- public class DBTableMsgService : IDBTableMsgService
- {
- /// <summary>
- /// 查询合约单位
- /// </summary>
- /// <param name="statement">QueryAllGoodsUnit</param>
- /// <param name="queryCommonParams">查询参数</param>
- /// <param name="successAction">成功执行</param>
- /// <param name="errorAction">失败执行</param>
- public void SearchAllGoodsUnit(string statement, List<Data.QueryCommonParam> queryCommonParams, Action<List<GoodsUnit>> successAction, Action<Data.ErrorEntity> errorAction)
- {
- QueryCommonHelper.QueryCommon(statement, queryCommonParams, new Action<List<GoodsUnit>>((goodsUnit) =>
- {
-
- if (successAction != null)
- {
- successAction(goodsUnit);
- }
- }), (error) =>
- {
- if (errorAction != null)
- {
- //RequestFunc = 查询合约单位
- error.RequestFunc = Client_Resource.Resources_Service_SearchAllGoodsUnit;
- errorAction(error);
- }
- });
- }
- }
- }
|