コード例 #1
0
        public void ModifyGsStatus(List <GsPosModel> gsList, string gsStatus, string gsTaskStatus)
        {
            string reStr = "";

            for (int i = 0; i < gsList.Count; i++)
            {
                StoreHouseModel house = bllStoreHouse.GetModelByName(gsList[i].HouseName);
                if (null == house)
                {
                    return;
                }
                GoodsSiteModel oldgsm = bllGs.GetModelByRCL(house.StoreHouseID, gsList[i].Rowth, gsList[i].Colth, gsList[i].Layerth);
                if (oldgsm == null)
                {
                    return;
                }
                if (oldgsm.GsEnabled == false)
                {
                    this.view.AddLog("库存列表", "被禁用的货位不允许修改状态!", LogInterface.EnumLoglevel.提示);
                    return;
                }
                bllGs.UpdateGSStatusByRCL(gsList[i].HouseName, gsList[i].Rowth, gsList[i].Colth, gsList[i].Layerth, (EnumCellStatus)Enum.Parse(typeof(EnumCellStatus), gsStatus));
                bllGs.UpdateGsTaskStatusByRCL(gsList[i].HouseName, gsList[i].Rowth, gsList[i].Colth, gsList[i].Layerth, (EnumGSTaskStatus)Enum.Parse(typeof(EnumGSTaskStatus), gsTaskStatus));
                string operteDetail = "[" + oldgsm.GoodsSiteName + "]货位状态由《" + oldgsm.GoodsSiteStatus + "》变更为《" + gsStatus + "》;" + "货位任务状态由《" + oldgsm.GoodsSiteTaskStatus + "》变更为《" + gsTaskStatus + "》";

                this.iStorageManager.AddGSOperRecord(gsList[i].HouseName, new CellCoordModel(gsList[i].Rowth, gsList[i].Colth, gsList[i].Layerth), EnumGSOperateType.手动修改状态, operteDetail, ref reStr);


                QueryStock(this.currHouseName, this.currHouseArea, this.currRowth, this.currColth, this.currLayerth, this.gsStatus, this.gsTaskSta, this.currProBatch);
                this.view.AddLog("库存管理", operteDetail, LogInterface.EnumLoglevel.提示);
            }
        }
コード例 #2
0
        public void ModifyGsStatus(string houseName, long gsID, string gsStatus, string gsTaskStatus)
        {
            string          reStr = "";
            StoreHouseModel house = bllStoreHouse.GetModelByName(houseName);

            if (null == house)
            {
                return;
            }
            GoodsSiteModel oldgsm = bllGs.GetModel(gsID);

            if (oldgsm == null)
            {
                return;
            }
            if (oldgsm.GsEnabled == false)
            {
                this.view.AddLog("库存看板", "被禁用的货位不允许修改状态!", LogInterface.EnumLoglevel.提示);
                return;
            }
            bllGs.UpdateGSStatusByRCL(houseName, oldgsm.GoodsSiteRow, oldgsm.GoodsSiteColumn, oldgsm.GoodsSiteLayer, (EnumCellStatus)Enum.Parse(typeof(EnumCellStatus), gsStatus));
            bllGs.UpdateGsTaskStatusByRCL(houseName, oldgsm.GoodsSiteRow, oldgsm.GoodsSiteColumn, oldgsm.GoodsSiteLayer, (EnumGSTaskStatus)Enum.Parse(typeof(EnumGSTaskStatus), gsTaskStatus));
            string operteDetail = "[" + oldgsm.GoodsSiteName + "]货位状态由《" + oldgsm.GoodsSiteStatus + "》变更为《" + gsStatus + "》;" + "货位任务状态由《" + oldgsm.GoodsSiteTaskStatus + "》变更为《" + gsTaskStatus + "》";

            this.iStorageManage.AddGSOperRecord(houseName, new CellCoordModel(oldgsm.GoodsSiteRow, oldgsm.GoodsSiteColumn, oldgsm.GoodsSiteLayer), EnumGSOperateType.手动修改状态, operteDetail, ref reStr);

            this.view.AddLog("库存看板", operteDetail, LogInterface.EnumLoglevel.提示);

            RefreshPos(houseName, oldgsm.GoodsSiteRow);
        }
コード例 #3
0
ファイル: StorageManager.cs プロジェクト: wjggwm/JCJ-WCS
        /// <summary>
        /// 更新货位任务状态,货位申请、出库、入库等改变货位状态后需要调用
        /// </summary>
        /// <param name="houseName">库房名称</param>
        /// <param name="cellCoord">货位位置</param>
        /// <param name="taskStatus">货位任务状态</param>
        /// <param name="reStr">执行状态描述</param>
        /// <returns>执行结果</returns>
        public bool UpdateGsTaskStatus(string houseName, CellCoordModel cellCoord, EnumGSTaskStatus taskStatus, ref string reStr)
        {
            bool updateStatus = bllGoodsSite.UpdateGsTaskStatusByRCL(houseName, cellCoord.Row, cellCoord.Col, cellCoord.Layer, taskStatus);

            if (updateStatus == true)
            {
                OnUpdateGsStatus();

                //string operateStr = "库房:" + houseName + ",货位:" + cellCoord.Row + "排" + cellCoord.Col + "列" + cellCoord.Layer + "层," + "货位任务状态更改为:" + taskStatus.ToString();
                //AddGSOperRecord(houseName, cellCoord, EnumGSOperateType.系统修改状态, operateStr, ref reStr);
                reStr = "货位更新成功!";
                return(true);
            }
            else
            {
                reStr = "货位更新失败!";
                return(false);
            }
        }