| | |
| | | locationInfo = BaseDal.QueryData(x => x.EnableStatus == (int)EnableStatusEnum.Normal && x.LocationStatus == (int)LocationStatusEnum.Free).OrderBy(x => x.Column).OrderBy(x => x.Layer).First(); |
| | | } |
| | | //é£ååºåé
|
| | | else if(k == 2) |
| | | else if (k == 2) |
| | | { |
| | | locationInfo = BaseDal.QueryData(x => x.EnableStatus == (int)EnableStatusEnum.Normal && x.LocationStatus == (int)LocationStatusEnum.Free && x.LocationType == (int)LocationTypeEnum.Food).OrderBy(x=>x.Column).OrderBy(x => x.Layer).First(); |
| | | locationInfo = BaseDal.QueryData(x => x.EnableStatus == (int)EnableStatusEnum.Normal && x.LocationStatus == (int)LocationStatusEnum.Free && x.LocationType == (int)LocationTypeEnum.Food).OrderBy(x => x.Column).OrderBy(x => x.Layer).First(); |
| | | } |
| | | //å·¥ä¸åºåé
|
| | | else if(k == 3){ |
| | | locationInfo = BaseDal.QueryData(x => x.EnableStatus == (int)EnableStatusEnum.Normal && x.LocationStatus == (int)LocationStatusEnum.Free && x.LocationType == (int)LocationTypeEnum.Industry).OrderBy(x=>x.Column).OrderBy(x => x.Layer).First(); |
| | | else if (k == 3) |
| | | { |
| | | locationInfo = BaseDal.QueryData(x => x.EnableStatus == (int)EnableStatusEnum.Normal && x.LocationStatus == (int)LocationStatusEnum.Free && x.LocationType == (int)LocationTypeEnum.Industry).OrderBy(x => x.Column).OrderBy(x => x.Layer).First(); |
| | | } |
| | | return locationInfo; |
| | | } |
| | |
| | | { |
| | | locationInfo = BaseDal.QueryFirst(x => x.EnableStatus == (int)EnableStatusEnum.Normal && x.LocationStatus == (int)LocationStatusEnum.EmptyBarrel); |
| | | } |
| | | else if(k == 2) |
| | | else if (k == 2) |
| | | { |
| | | |
| | | } |
| | |
| | | { |
| | | List<Dt_LocationInfo> locationInfos = new List<Dt_LocationInfo>(); |
| | | int k = StockInfo.Count() - 1; |
| | | for(int i = 0; i <= k; i++) |
| | | for (int i = 0; i <= k; i++) |
| | | { |
| | | Dt_LocationInfo locationInfo = BaseDal.QueryFirst(x => x.LocationCode == StockInfo[i].LocationCode); |
| | | locationInfo.LocationStatus = (int)LocationStatusEnum.Lock; |
| | |
| | | WebResponseContent content = new WebResponseContent(); |
| | | List<Dt_LocationInfo> location = BaseDal.QueryData(x => x.Column == k); |
| | | int s = 0; |
| | | |
| | | foreach (var item in location) |
| | | { |
| | | if (item.LocationStatus == (int)LocationStatusEnum.InStock || item.LocationStatus == (int)LocationStatusEnum.Lock) |
| | | { |
| | | content.Message = "ä¿®æ¹çè´§ä½ä¸å¾æéå®åæè´§"; |
| | | return content; |
| | | } |
| | | } |
| | | if (location[0].LocationType == (int)LocationTypeEnum.Food) |
| | | { |
| | | s = (int)LocationTypeEnum.Industry; |
| | | } |
| | | else if(location[0].LocationType == (int)LocationTypeEnum.Industry) |
| | | else if (location[0].LocationType == (int)LocationTypeEnum.Industry) |
| | | { |
| | | s = (int)LocationTypeEnum.Food; |
| | | } |