| | |
| | | { |
| | | return base.GetPageData(options); |
| | | } |
| | | |
| | | public override WebResponseContent UpdateData(SaveModel saveModel) |
| | | { |
| | | int id = saveModel.MainData["id"].ObjToInt(); |
| | | int locationStatus = saveModel.MainData["locationStatus"].ObjToInt(); |
| | | int enableStatus = saveModel.MainData["enableStatus"].ObjToInt(); |
| | | Dt_LocationInfo locationInfo = BaseDal.QueryFirst(x => x.Id == id); |
| | | locationInfo.LocationStatus = locationStatus; |
| | | locationInfo.EnableStatus = enableStatus; |
| | | return UpdateData(locationInfo); |
| | | //return base.UpdateData(saveModel); |
| | | } |
| | | public WebResponseContent GetLocationLayer() |
| | | { |
| | | WebResponseContent content = new WebResponseContent(); |
| | |
| | | return content = WebResponseContent.Instance.Error(ex.Message); |
| | | } |
| | | } |
| | | public WebResponseContent getlocation() |
| | | public WebResponseContent getlocation() |
| | | { |
| | | WebResponseContent content = new WebResponseContent(); |
| | | try |
| | |
| | | for (int g = 1; g < 3; g++) |
| | | { |
| | | Dt_LocationInfo location = new Dt_LocationInfo(); |
| | | location.LocationCode = i+"-"+a+"-"+g; |
| | | location.LocationName = i+ "è¡" + a + "å" + "å·¥ä½" + g; |
| | | location.LocationCode = i + "-" + a + "-" + g; |
| | | location.LocationName = i + "è¡" + a + "å" + "å·¥ä½" + g; |
| | | location.RoadwayNo = "TC1"; |
| | | location.Row = i; |
| | | location.Column = a; |
| | |
| | | location.Depth = g; |
| | | location.LocationType = (int)LocationTypeEnum.Flat; |
| | | location.LocationStatus = (int)LocationStatusEnum.Free; |
| | | location.EnableStatus=(int)EnableStatusEnum.Normal; |
| | | location.EnableStatus = (int)EnableStatusEnum.Normal; |
| | | location.CreateDate = DateTime.Now; |
| | | location.ModifyDate = DateTime.Now; |
| | | location.Creater = "WCS"; |
| | |
| | | Row = i + 1, |
| | | }; |
| | | |
| | | |
| | | |
| | | locationInfo.Depth = 1; |
| | | locationInfo.LocationCode = $"{locationInfo.Row.ToString().PadLeft(3, '0')}-{locationInfo.Column.ToString().PadLeft(3, '0')}-{locationInfo.Layer.ToString().PadLeft(3, '0')}"; |
| | | locationInfo.LocationName = $"{locationInfo.Row.ToString().PadLeft(3, '0')}è¡{locationInfo.Column.ToString().PadLeft(3, '0')}å{locationInfo.Layer.ToString().PadLeft(3, '0')}å±"; |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | locationInfos.Add(locationInfo); |
| | | } |