| | |
| | | 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){ |
| | | 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; |
| | |
| | | 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; |