Exemplo n.º 1
0
        /// <summary>
        /// 获取车间派工列表
        /// </summary>
        /// <param name="workShopDispatchListRequest"></param>
        /// <returns></returns>
        public QiXiuListResponse <WorkShopDispatchEntity> GetWorkShopDispatchList(WorkShopDispatchListRequest workShopDispatchListRequest)
        {
            QiXiuHttpPost <QiXiuListResponse <WorkShopDispatchEntity> > getWorkShopDispatchListResponse = new QiXiuHttpPost <QiXiuListResponse <WorkShopDispatchEntity> >();
            var result = getWorkShopDispatchListResponse.Execute(workShopDispatchListRequest, QiXiuApiUrl.GetWorkShopDispatchList);

            return(result);
        }
        /// <summary>
        /// 获取车间派工列表
        /// </summary>
        /// <param name="workShopDispatchListRequest"></param>
        /// <returns></returns>
        public QiXiuListResponse <WorkShopDispatchEntity> GetWorkShopDispatchList(WorkShopDispatchListRequest workShopDispatchListRequest)
        {
            QiXiuListResponse <WorkShopDispatchEntity> WorkShopDispatchListResponse = new QiXiuListResponse <WorkShopDispatchEntity>();
            List <WorkShopDispatchEntity> WorkShopDispatchList = _iWorkShopDispatchLogic.GetWorkShopDispatchList(workShopDispatchListRequest);

            WorkShopDispatchListResponse.QiXiuResponseList = WorkShopDispatchList;
            if (WorkShopDispatchList != null && WorkShopDispatchList.Any())
            {
                WorkShopDispatchListResponse.TotalCount = WorkShopDispatchList.FirstOrDefault().TotalCount;
            }
            return(WorkShopDispatchListResponse);
        }
        /// <summary>
        /// 获取仓库列表
        /// </summary>
        /// <param name="clientWorkShopDispatchInfoListRequest"></param>
        /// <returns></returns>
        public QiXiuListResponse <WorkShopDispatchEntity> GetWorkShopDispatchList(ClientWorkShopDispatchListRequest clientWorkShopDispatchListRequest)
        {
            QiXiuListResponse <WorkShopDispatchEntity> WorkShopDispatchList;

            if (clientWorkShopDispatchListRequest == null)
            {
                WorkShopDispatchList = new QiXiuListResponse <WorkShopDispatchEntity>();
            }
            var WorkShopDispatchListRequest = new WorkShopDispatchListRequest()
            {
                StartRowID          = clientWorkShopDispatchListRequest.StartRowID,
                EndRowID            = clientWorkShopDispatchListRequest.EndRowID,
                ServiceShopId       = clientWorkShopDispatchListRequest.ServiceShopId,
                WorkShopDispatchIds = clientWorkShopDispatchListRequest.WorkShopDispatchIds
            };

            return(_iWorkShopDispatchProcess.GetWorkShopDispatchList(WorkShopDispatchListRequest));
        }
 /// <summary>
 /// 获取车间派工列表
 /// </summary>
 /// <param name="workShopDispatchListRequest"></param>
 /// <returns></returns>
 public List <WorkShopDispatchEntity> GetWorkShopDispatchList(WorkShopDispatchListRequest workShopDispatchListRequest)
 {
     return(QiXiuDataProcesser.WorkShopDispatch.GetWorkShopDispatchList(workShopDispatchListRequest));
 }