/// <summary> /// 设置单个货位的逻辑区域 /// </summary> /// <param name="houseName"></param> /// <param name="gsName"></param> /// <returns></returns> public bool SetSingleGsArea(string houseName, string gsName, string logicAreaName) { string reStr = ""; StoreHouseModel house = bllStoreHouse.GetModelByName(houseName); if (null == house) { return(false); } StoreHouseLogicAreaModel logicArea = bllLogicArea.GetModelByName(logicAreaName); if (logicArea == null) { return(false); } bool status = bllGs.SetSingleGsArea(house.StoreHouseID, logicArea.StoreHouseLogicAreaID, gsName); if (status == true) { string[] rcl = gsName.Split('-'); this.iStorageManage.AddGSOperRecord(houseName, new CellCoordModel(int.Parse(rcl[0]), int.Parse(rcl[1]), int.Parse(rcl[2])) , EnumGSOperateType.库存区域设置, "手动单货位库存区域设置:货位" + gsName + "为:" + logicArea.StoreHouseAreaName, ref reStr); RefreshPos(this.currHouseName, currRowth); return(true); } else { return(false); } }