Exemple #1
0
        /// <summary>
        /// 编辑冷藏载体信息
        /// storageID不为0时表示编辑或删除
        /// storageID为0时表示添加
        /// </summary>
        /// <param name="coldstorageInfo">冷藏载体信息</param>
        /// <param name="pdaId">绑定的PDAId</param>
        /// <param name="isDeleteStorage">True:storageID不为0时执行删除操作;False:storageID为0时不删除执行添加操作</param>
        /// <param name="defaultDevice">0不是默认,1是默认</param>
        /// <returns></returns>
        public ResultModel <Model_ColdStorage> EditColdstorage(Model_ColdStorage coldstorageInfo, int defaultDevice, int storageDeviceId = 0, int pdaId = 0, bool isDeleteStorage = false)
        {
            ResultModel <Model_ColdStorage> result = new ResultModel <Model_ColdStorage>();

            try
            {
                result.Data = ColdstorageServer.EditColdstorages(coldstorageInfo, defaultDevice, storageDeviceId, pdaId, isDeleteStorage);
            }
            catch (Exception ex)
            {
                result.Code    = 1;
                result.Message = ex.Message;
            }
            return(result);
        }
Exemple #2
0
        /// <summary>
        /// 获取指定类型的冷链载体
        /// </summary>
        /// <param name="storageId">可选参数[指定冷库载体的ID,为0则默认在所有冷库载体筛选后续条件]</param>
        /// <param name="storageType">可选参数[冷链载体类型(1:冷库;2:车载)]</param>
        /// <param name="pageIndexAndCount">可选参数[分页参数,格式为"页索引.每页数量".例如:1.50,表示每页显示50条,当前查询第1页]</param>
        /// <returns></returns>
        public ResultModel <List <Model_ColdstoragePDA> > GetColdstoragePDAList(int storageId = 0, int storageType = 0, string pageIndexAndCount = null)
        {
            ResultModel <List <Model_ColdstoragePDA> > result = new ResultModel <List <Model_ColdstoragePDA> >();

            try
            {
                result.Data = ColdstorageServer.GetColdStorages(storageId, storageType, pageIndexAndCount);
            }
            catch (Exception ex)
            {
                result.Code    = 1;
                result.Message = ex.Message;
            }
            return(result);
        }