1
qinchulong
2025-03-03 c3b8825e0d0cc99aeb5cc380ace9259adbc69304
ÏîÄ¿´úÂë/WCS/WIDESEAWCS_Server/WIDESEAWCS_WMSPart/LocationInfoService.cs
@@ -32,7 +32,17 @@
        {
            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();
@@ -56,7 +66,7 @@
                return content = WebResponseContent.Instance.Error(ex.Message);
            }
        }
        public WebResponseContent getlocation()
        public WebResponseContent getlocation()
        {
            WebResponseContent content = new WebResponseContent();
            try
@@ -69,8 +79,8 @@
                        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;
@@ -78,7 +88,7 @@
                            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";
@@ -212,12 +222,12 @@
                                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);
                        }