| | |
| | | } |
| | | #endregion |
| | | |
| | | var Stations = stationinfoRepository.Find(x => x.area == Pipeline.area_code(name)).OrderBy(x => x.lastUpdateTime).ToList(); |
| | | |
| | | #region 䏿使¯å¦ä¸ºç©ºç¶æåæ¥ç»æ¡æ¶ |
| | | foreach (var station in Stations) |
| | | { |
| | | client.WriteByOrder(station.stationCode, station.location_state != LocationStateEnum.Stroge.ToString(), name); |
| | | } |
| | | #endregion |
| | | |
| | | if (finished && !updatefinished) |
| | | { |
| | |
| | | #endregion |
| | | |
| | | var AreaNr = (Int16)DBExtension.Read(details.Where(x => x.plcdetail_name == "W_AreaNr").First(), client); |
| | | if (AreaNr == 0) |
| | | { |
| | | client.WriteByOrder("W_Storage_update", true, name);//è´§ä½ç¶ææ´æ° |
| | | continue; |
| | | } |
| | | //if (AreaNr == 0) |
| | | //{ |
| | | // client.WriteByOrder("W_Storage_update", true, name);//è´§ä½ç¶ææ´æ° |
| | | // continue; |
| | | //} |
| | | |
| | | #region 夿åºåå·æ¯å¦ä¸è´ |
| | | var area = client.ReadByOrder<Int16>("place_prog", name);//æ¾æå®æçåºåå· |
| | |
| | | throw new Exception($"{station.stationCode}å·²åå¨è½¦è½®SNå·ï¼{Wheel_SN}"); |
| | | } |
| | | |
| | | station.bindSN = string.IsNullOrEmpty(station.bindSN) ? Wheel_SN : station.bindSN + "," + Wheel_SN; |
| | | station.billetID = string.IsNullOrEmpty(station.billetID) ? Mes_Work.billetID.ToString() : station.billetID + "," + Mes_Work.billetID; |
| | | station.quantity++; |
| | | if (station.quantity == 1) |
| | | { |
| | | station.stationType = Mes_Work.drawingNo; |
| | | station.Number = Mes_Work.workOrder; |
| | | station.heatNumber = Mes_Work.heatID; |
| | | station.tray_status = "StrogeTray"; |
| | | } |
| | | |
| | | var count = stationinfoRepository.Update(station, true); |
| | | if (count < 1) |
| | | throw new Exception($"䏿ä½ä¿¡æ¯æ´æ°å¤±è´¥ï¼ä¸æä½ç¼å·ï¼{station.stationCode}"); |
| | | |
| | | #region æ¸
ç©ºç»æ¡æ¶çä¸æä¿¡æ¯ |
| | | client.WriteByOrder("W_IndexNr", (Int16)0, name);//æçä¸ç第å 个车轮 |
| | | client.WriteByOrder("W_Storage_Type", (Int16)0, name);//æçç±»å1-横æ¾;2-ç«æ¾(ææ¶åªææ¨ªæ¾æç) |
| | |
| | | // $"å¤çåå
¥æ¡æ¶ä¿¡æ¯ï¼\nW_AreaNrï¼{0}\nW_IndexNrï¼{0}\nW_Storage_Typeï¼{0}\n\n" + |
| | | // $"åå
¥æ¡æ¶ä¿¡æ¯ï¼\nW_Storage_updateï¼{true}\nW_Enabl_Loadï¼{false}", "PCS"); |
| | | #endregion |
| | | |
| | | #region è´§ä½ç¶ææ´æ° |
| | | station.bindSN = string.IsNullOrEmpty(station.bindSN) ? Wheel_SN : station.bindSN + "," + Wheel_SN; |
| | | station.billetID = string.IsNullOrEmpty(station.billetID) ? Mes_Work.billetID.ToString() : station.billetID + "," + Mes_Work.billetID; |
| | | station.quantity++; |
| | | if (station.quantity == 1) |
| | | { |
| | | station.stationType = Mes_Work.drawingNo; |
| | | station.Number = Mes_Work.workOrder; |
| | | station.heatNumber = Mes_Work.heatID; |
| | | station.tray_status = "StrogeTray"; |
| | | } |
| | | |
| | | var count = stationinfoRepository.Update(station, true); |
| | | if (count < 1) |
| | | throw new Exception($"䏿ä½ä¿¡æ¯æ´æ°å¤±è´¥ï¼ä¸æä½ç¼å·ï¼{station.stationCode}"); |
| | | #endregion |
| | | |
| | | |
| | | #region ä¿®æ¹å·¥åç¶æ |
| | | var Detail = mes_DetailRepository.FindFirst(x => x.jobID == Mes_Work.jobID && x.SN == Mes_Work.SN); |
| | |
| | | } |
| | | } |
| | | |
| | | var Stations = stationinfoRepository.Find(x => x.area == Pipeline.area_code(name)).OrderBy(x => x.lastUpdateTime).ToList(); |
| | | |
| | | #region 䏿使¯å¦ä¸ºç©ºç¶æåæ¥ç»æ¡æ¶ |
| | | foreach (var station in Stations) |
| | | { |
| | | client.WriteByOrder(station.stationCode, station.location_state != LocationStateEnum.Stroge.ToString(), name); |
| | | } |
| | | #endregion |
| | | |
| | | var Request = (bool)DBExtension.Read(details.Where(x => x.plcdetail_name == "R_Request_Load").First(), client); |
| | | if (!Request) continue; |
| | | |