| | |
| | | var qitaoReault = false; |
| | | using (WmsDBModel wmsDB = new WmsDBModel()) |
| | | { |
| | | //ä¸åæ¦æª |
| | | /* |
| | | //è¦æ¯æå·²ä¸åçä»»å¡ï¼å°±ä¸è¦æ§è¡ |
| | | var isValidate = TaskHandler.ValidateIssueTaskForRobotBuffer(wmsDB); |
| | | if (!isValidate) |
| | |
| | | SystemWarningMsg._lbl_alert_DataProcess_BZ39 = $"{rgvLocation.ToString()}-æâå·²ä¸åâçä»»å¡ï¼ä¸è½å¤ç,æ¤æ¬¡å¾ªç¯ç»æ"; |
| | | continue; |
| | | } |
| | | //*/ |
| | | var upiObj = wmsDB.mes_batchOrderUPI_new.Where(x => x.UPI == upiCode).FirstOrDefault(); |
| | | if (upiObj == null) |
| | | { |
| | |
| | | |
| | | using (StationServiceClient client = new StationServiceClient()) |
| | | { |
| | | //ä¸åæ¦æª |
| | | /* |
| | | //é¦å
å
æ¸
ç |
| | | var res = await client.InboundFinishConfirmAsync((int)EDevice.Station, false, rgvLocation); |
| | | if (!res.result) |
| | |
| | | { |
| | | Log4NetHelper.WriteInfoLog(logType, $"{rgvLocation.ToString()}-ä¸åå
¥åºä»»å¡ æå,InboundFinishConfirmAsyncï¼åæ°: ç«ç¹{rgvLocation}"); |
| | | } |
| | | //*/ |
| | | |
| | | res = await client.WriteInStoreTaskInfoAsync((int)EDevice.Station, rgvLocation, place.PlaceCode, |
| | | var res = await client.WriteInStoreTaskInfoAsync((int)EDevice.Station, rgvLocation, place.PlaceCode, |
| | | (short)upiObj.Length, |
| | | (short)upiObj.Width, (short)upiObj.Thk, Convert.ToInt32(task.TaskNo)); |
| | | if (!res.result) |
| | |
| | | InTime = DateTime.Now, |
| | | OperReason = "å
¥åº", |
| | | PackageCode = task.PackageCode, |
| | | Length = task.Length, |
| | | Width = task.Width, |
| | | Thk = task.Thk, |
| | | PlaceCode = task.PlaceCode, |
| | |
| | | var emptyStationList = edm.V_EmptyStation.ToList(); |
| | | |
| | | //ä¸éæºæåº |
| | | emptyStationList = emptyStationList.OrderByDescending(x => x.LaneNo).ThenByDescending(x => x.ColumnNo).ThenBy(x => x.LayerNo).ToList(); |
| | | emptyStationList = emptyStationList.OrderBy(x => x.LaneNo).ThenBy(x => x.LayerNo).ThenBy(x => x.ColumnNo).ToList(); |
| | | |
| | | |
| | | //å¢å 该åºä½æ¯å¦è¢«ä»»å¡å ç¨ççé [EditBy shaocx,2022-06-02] |
| | |
| | | var my_emptyStationList = emptyStationList.Where(x => usePlaceTypeList.Contains( x.PlaceType)).OrderBy(x=>x.PlaceType).ToList(); |
| | | if (my_emptyStationList?.Count() > 0) |
| | | { |
| | | wms_base_place toPlace = StationHandler.GetPlaceByPlaceId(emptyStationList.First().Id, edm); |
| | | wms_base_place toPlace = StationHandler.GetPlaceByPlaceId(my_emptyStationList.First().Id, edm); |
| | | return toPlace; |
| | | } |
| | | else |
| | |
| | | <section name="entityFramework" type="System.Data.Entity.Internal.ConfigFile.EntityFrameworkSection, EntityFramework, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false"/> |
| | | </configSections> |
| | | <connectionStrings> |
| | | <!--æ¬æº--> |
| | | <add name="DbModel" connectionString="data source=192.168.10.5;initial catalog=LA24030_LuLiPackageLine;persist security info=True;user id=sa;password=123abc.com;MultipleActiveResultSets=True;App=EntityFramework" providerName="System.Data.SqlClient"/> |
| | | <add name="WmsDBModel" connectionString="data source=localhost;initial catalog=LA24030_LuLiPackageLine;persist security info=True;user id=sa;password=123abc.com;MultipleActiveResultSets=True;App=EntityFramework" providerName="System.Data.SqlClient"/> |
| | | </connectionStrings> |
| | | <appSettings> |
| | | <!-- æ¯å¦æ¨¡æPLCï¼åå¸ä¸å®æ¯ FALSE --> |
| | |
| | | using iWareModel; |
| | | using iWareCC.Common.Helper; |
| | | using iWareSql.DBModel; |
| | | using iWareSql.WmsDBModel; |
| | | using System.Linq; |
| | | |
| | | namespace iWareUnitTest |
| | | { |
| | |
| | | public void Test() |
| | | { |
| | | var errMsg = ""; |
| | | using (DbModel context = new DbModel()) |
| | | using (WmsDBModel context = new WmsDBModel()) |
| | | { |
| | | var srmStore = MyExtendHelper.FindStoreForEmptySalverTo1014(context, ref errMsg); |
| | | var obj = context.mes_batchOrderUPI_new.Where(x => x.UPI == "LS101000901100090000").FirstOrDefault(); |
| | | |
| | | var place = StationHandlerV2.FindBestEmptyPlace(context, obj); |
| | | } |
| | | |
| | | } |
| | |
| | | [TestMethod] |
| | | public void TestAddInStoreTask() |
| | | { |
| | | SysUser user = new SysUser(); |
| | | |
| | | AddMainTaskPostParam param = new AddMainTaskPostParam(); |
| | | param.CargoNo = "ææ¯è´§ç©å·å2swfsaf"; |
| | | param.SalverCode = "ææ¯æçå·å2swfsaf"; |