| | |
| | | cnName: 'æºå 工车轮信æ¯', |
| | | name: 'baseinfo/dt_geometry_data', |
| | | url: "/dt_geometry_data/", |
| | | sortName: "ID" |
| | | sortName: "TypeId" |
| | | }); |
| | | const editFormFields = ref({"TypeId":"","Description":"","a":"","b":"","c":"","d":"","e":"","f":"","g":"","h":""}); |
| | | const editFormFields = ref({"TypeId":"","Description":"","a":"","b":"","c":"","d":"","e":"","f":"","g":"","h":"","stackNoRange":"","weight":""}); |
| | | const editFormOptions = ref([[{"title":"TypeId","required":true,"field":"TypeId","type":"text"}, |
| | | {"title":"å¾å·","required":true,"field":"Description","type":"text"}], |
| | | [{"title":"a","required":true,"field":"a","type":"text"}, |
| | |
| | | [{"title":"e","required":true,"field":"e","type":"text"}, |
| | | {"title":"f","required":true,"field":"f","type":"text"}], |
| | | [{"title":"g","required":true,"field":"g","type":"text"}, |
| | | {"title":"h","required":true,"field":"h","type":"text"}]]); |
| | | {"title":"h","required":true,"field":"h","type":"text"}], |
| | | [{"title":"æå
æ°é","required":true,"field":"stackNoRange","type":"text"}, |
| | | {"title":"éé","required":true,"field":"weight","type":"float"}]]); |
| | | const searchFormFields = ref({"TypeId":"","Description":""}); |
| | | const searchFormOptions = ref([[{"title":"å¾å·","field":"Description","type":"like"},{"title":"TypeId","field":"TypeId","type":"int"}]]); |
| | | const columns = ref([{field:'TypeId',title:'TypeId',type:'int',width:110,require:true,align:'left',sort:true}, |
| | |
| | | {field:'f',title:'f',type:'float',width:110,require:true,align:'left'}, |
| | | {field:'g',title:'g',type:'float',width:110,require:true,align:'left'}, |
| | | {field:'h',title:'h',type:'float',width:110,require:true,align:'left'}, |
| | | {field:'stackNoRange',title:'æå
æ°é',type:'int',width:110,require:true,align:'left',sort:true}, |
| | | {field:'weight',title:'éé',type:'float',width:110,require:true,align:'left'}, |
| | | {field:'ID',title:'ID',type:'int',sort:true,width:80,hidden:true,readonly:true,require:true,align:'left'}]); |
| | | const detail = ref({ |
| | | cnName: "#detailCnName", |
| | |
| | | [Required(AllowEmptyStrings=false)] |
| | | public int ID { get; set; } |
| | | |
| | | /// <summary> |
| | | /// æå
æ°é |
| | | /// </summary> |
| | | [Display(Name = "stackNoRange")] |
| | | [Column(TypeName = "int")] |
| | | //[Editable(true)] |
| | | //[Required(AllowEmptyStrings = false)] |
| | | public int stackNoRange { get; set; } |
| | | |
| | | /// <summary> |
| | | ///éé |
| | | /// </summary> |
| | | [Display(Name = "weight")] |
| | | [Column(TypeName = "float")] |
| | | //[Editable(true)] |
| | | //[Required(AllowEmptyStrings = false)] |
| | | public float? weight { get; set; } |
| | | } |
| | | } |
| | |
| | | Idt_geometry_dataRepository dataRepository = new dt_geometry_dataRepository(Context); |
| | | Idt_mes_detailRepository mes_DetailRepository = new dt_mes_detailRepository(Context); |
| | | Idt_mes_headRepository mes_HeadRepository = new dt_mes_headRepository(Context); |
| | | Idt_geometry_data_detectionlineRepository detectionlineRepository = new dt_geometry_data_detectionlineRepository(Context); |
| | | var plc = repository.FindFirst(x => x.plcinfo_name == client.PLCName); |
| | | List<string> names = new List<string>() { "1åå
è¾é䏿æ¥è¯¢è½¦è½®", "2åå
è¾é䏿æ¥è¯¢è½¦è½®", "3åå
è¾é䏿æ¥è¯¢è½¦è½®", "è¾é䏿æ¥è¯¢è½¦è½®" }; |
| | | foreach (string name in names) |
| | |
| | | client.WriteByOrder("W_i_status", (byte)2, name); |
| | | client.WriteByOrder("R_oi_on", (byte)0, name); |
| | | #region æ¥å¿è®°å½ |
| | | //WriteDBLog.Error(name, $"è¯»åæ¡æ¶ä¿¡æ¯ï¼\n车轮SNï¼{wp_id}\n\nåå
¥æ¡æ¶ä¿¡æ¯ï¼\nW_i_statusï¼2\nR_oi_onï¼0\n\næªæ¥è¯¢å°å·¥åä¿¡æ¯", "PCS"); |
| | | WriteLog.Write_Log(name, wp_id, "é误信æ¯ï¼", $"è¯»åæ¡æ¶ä¿¡æ¯ï¼\n车轮SNï¼{wp_id}\n\nåå
¥æ¡æ¶ä¿¡æ¯ï¼\nW_i_statusï¼2\nR_oi_onï¼0\n\næªæ¥è¯¢å°å·¥åä¿¡æ¯"); |
| | | #endregion |
| | | continue; |
| | | } |
| | | |
| | | #region MyRegion |
| | | //var mes_Detail = mes_DetailRepository.FindFirst(x => x.SN == wp_id); |
| | | //if (mes_Detail == null) |
| | | //{ |
| | | // client.WriteByOrder("W_i_status", (byte)2, name); |
| | | // client.WriteByOrder("R_oi_on", (byte)0, name); |
| | | // #region æ¥å¿è®°å½ |
| | | // WriteDBLog.Error(name, $"è¯»åæ¡æ¶ä¿¡æ¯ï¼\n车轮SNï¼{wp_id}\n\nåå
¥æ¡æ¶ä¿¡æ¯ï¼\nW_i_statusï¼2\nR_oi_onï¼0\n\næªæ¥è¯¢å°å·¥å详æ
", "PCS"); |
| | | // #endregion |
| | | // continue; |
| | | //} |
| | | //var mes_Head = mes_HeadRepository.FindFirst(x => x.jobID == mes_Detail.jobID); |
| | | //if (mes_Head == null) |
| | | //{ |
| | | // client.WriteByOrder("W_i_status", (byte)2, name); |
| | | // client.WriteByOrder("R_oi_on", (byte)0, name); |
| | | // #region æ¥å¿è®°å½ |
| | | // WriteDBLog.Error(name, $"è¯»åæ¡æ¶ä¿¡æ¯ï¼\n车轮SNï¼{wp_id}\n\nåå
¥æ¡æ¶ä¿¡æ¯ï¼\nW_i_statusï¼2\nR_oi_onï¼0\n\næªæ¥è¯¢å°å·¥å头表", "PCS"); |
| | | // #endregion |
| | | // continue; |
| | | //} |
| | | #endregion |
| | | |
| | | |
| | | if (name != "è¾é䏿æ¥è¯¢è½¦è½®") |
| | | var geometry = Pipeline.QueryMateriel(Mes_Work.drawingNo); |
| | | if (geometry == null) |
| | | { |
| | | //var geometry = dataRepository.FindFirst(x => x.TypeId == (Int32)wp_type); |
| | | var geometry = dataRepository.Find(x => x.Description == Mes_Work.drawingNo).FirstOrDefault(); |
| | | var geometry1 = detectionlineRepository.Find(x => x.Description == Mes_Work.drawingNo).FirstOrDefault(); |
| | | if (geometry == null && geometry1 == null) |
| | | { |
| | | //DBExtension.Write(details.Where(x => x.plcdetail_name == "W_i_status").First(), client, (Int16)2); |
| | | //1-æ¾å°æ°æ®ï¼2-æªæ¾å°å·¥ä»¶ç±»åæ°æ® |
| | | client.WriteByOrder("W_i_status", (byte)2, name); |
| | | client.WriteByOrder("R_oi_on", (byte)0, name); |
| | | #region æ¥å¿è®°å½ |
| | | //WriteDBLog.Error(name, $"è¯»åæ¡æ¶ä¿¡æ¯ï¼\nè½®åIDï¼{wp_type}\n\nåå
¥æ¡æ¶ä¿¡æ¯ï¼\nW_i_statusï¼2\nR_oi_onï¼0\n\næªæ¥è¯¢å°æºå 工车轮信æ¯", "PCS"); |
| | | WriteLog.Write_Log(name, wp_id, "é误信æ¯ï¼", $"è¯»åæ¡æ¶ä¿¡æ¯ï¼\nè½®åIDï¼{wp_type}\n\nåå
¥æ¡æ¶ä¿¡æ¯ï¼\nW_i_statusï¼2\nR_oi_onï¼0\n\næªæ¥è¯¢å°æºå 工车轮信æ¯"); |
| | | #endregion |
| | | } |
| | |
| | | { |
| | | //1-æ¾å°æ°æ®ï¼2-æªæ¾å°å·¥ä»¶ç±»åæ°æ® |
| | | client.WriteByOrder("W_i_status", (byte)1, name); |
| | | client.WriteByOrder("W_i_parameter_a", geometry == null ? (float)geometry1.a : (float)geometry.a, name); |
| | | client.WriteByOrder("W_i_parameter_b", geometry == null ? (float)geometry1.b : (float)geometry.b, name); |
| | | client.WriteByOrder("W_i_parameter_c", geometry == null ? (float)geometry1.c : (float)geometry.c, name); |
| | | client.WriteByOrder("W_i_parameter_d", geometry == null ? (float)geometry1.d : (float)geometry.d, name); |
| | | client.WriteByOrder("W_i_parameter_e", geometry == null ? (float)geometry1.e : (float)geometry.e, name); |
| | | client.WriteByOrder("W_i_parameter_f", geometry == null ? (float)geometry1.f : (float)geometry.f, name); |
| | | client.WriteByOrder("W_i_parameter_g", geometry == null ? (float)geometry1.g : (float)geometry.g, name); |
| | | client.WriteByOrder("W_i_parameter_h", geometry == null ? (float)geometry1.h : (float)geometry.h, name); |
| | | client.WriteByOrder("W_i_parameter_a", (float)geometry.a, name); |
| | | client.WriteByOrder("W_i_parameter_b", (float)geometry.b, name); |
| | | client.WriteByOrder("W_i_parameter_c", (float)geometry.c, name); |
| | | client.WriteByOrder("W_i_parameter_d", (float)geometry.d, name); |
| | | client.WriteByOrder("W_i_parameter_e", (float)geometry.e, name); |
| | | client.WriteByOrder("W_i_parameter_f", (float)geometry.f, name); |
| | | client.WriteByOrder("W_i_parameter_g", (float)geometry.g, name); |
| | | client.WriteByOrder("W_i_parameter_h", (float)geometry.h, name); |
| | | client.WriteByOrder("R_oi_on", (byte)0, name); |
| | | #region æ¥å¿è®°å½ |
| | | //WriteDBLog.Success(name, $"è¯»åæ¡æ¶ä¿¡æ¯ï¼\nè½®åIDï¼{wp_type}\n\nåå
¥æ¡æ¶ä¿¡æ¯ï¼\nW_i_statusï¼1" + $"\n" + |
| | | // $"aï¼{(geometry == null ? (float)geometry1.a : (float)geometry.a)}\n" + |
| | | // $"bï¼{(geometry == null ? (float)geometry1.b : (float)geometry.b)}\n" + |
| | | // $"cï¼{(geometry == null ? (float)geometry1.c : (float)geometry.c)}\n" + |
| | | // $"dï¼{(geometry == null ? (float)geometry1.d : (float)geometry.d)}\n" + |
| | | // $"eï¼{(geometry == null ? (float)geometry1.e : (float)geometry.e)}\n" + |
| | | // $"fï¼{(geometry == null ? (float)geometry1.f : (float)geometry.f)}\n" + |
| | | // $"gï¼{(geometry == null ? (float)geometry1.g : (float)geometry.g)}\n" + |
| | | // $"hï¼{(geometry == null ? (float)geometry1.h : (float)geometry.h)}\n" + |
| | | // $"R_oi_onï¼0", "PCS"); |
| | | WriteLog.Write_Log(name, wp_id, "åå
¥ä¿¡æ¯ï¼", $"è¯»åæ¡æ¶ä¿¡æ¯ï¼\nè½®åIDï¼{wp_type}\n\nåå
¥æ¡æ¶ä¿¡æ¯ï¼\nW_i_statusï¼1" + $"\n" + |
| | | $"aï¼{(geometry == null ? (float)geometry1.a : (float)geometry.a)}\n" + |
| | | $"bï¼{(geometry == null ? (float)geometry1.b : (float)geometry.b)}\n" + |
| | | $"cï¼{(geometry == null ? (float)geometry1.c : (float)geometry.c)}\n" + |
| | | $"dï¼{(geometry == null ? (float)geometry1.d : (float)geometry.d)}\n" + |
| | | $"eï¼{(geometry == null ? (float)geometry1.e : (float)geometry.e)}\n" + |
| | | $"fï¼{(geometry == null ? (float)geometry1.f : (float)geometry.f)}\n" + |
| | | $"gï¼{(geometry == null ? (float)geometry1.g : (float)geometry.g)}\n" + |
| | | $"hï¼{(geometry == null ? (float)geometry1.h : (float)geometry.h)}\n" + |
| | | $"aï¼{(float)geometry.a}\n" + |
| | | $"bï¼{(float)geometry.b}\n" + |
| | | $"cï¼{(float)geometry.c}\n" + |
| | | $"dï¼{(float)geometry.d}\n" + |
| | | $"eï¼{(float)geometry.e}\n" + |
| | | $"fï¼{(float)geometry.f}\n" + |
| | | $"gï¼{(float)geometry.g}\n" + |
| | | $"hï¼{(float)geometry.h}\n" + |
| | | $"R_oi_onï¼0"); |
| | | #endregion |
| | | } |
| | | } |
| | | else |
| | | { |
| | | var geometry = detectionlineRepository.Find(x => x.Description == Mes_Work.drawingNo).FirstOrDefault(); |
| | | var geometry1 = dataRepository.Find(x => x.Description == Mes_Work.drawingNo).FirstOrDefault(); |
| | | if (geometry == null && geometry1 == null) |
| | | { |
| | | client.WriteByOrder("W_i_status", (byte)2, name); |
| | | client.WriteByOrder("R_oi_on", (byte)0, name); |
| | | #region æ¥å¿è®°å½ |
| | | //WriteDBLog.Error(name, $"è¯»åæ¡æ¶ä¿¡æ¯ï¼\nè½®åIDï¼{wp_type}\n\nåå
¥æ¡æ¶ä¿¡æ¯ï¼\nW_i_statusï¼2\nR_oi_onï¼0\n\næªæ¥è¯¢å°æ£æµçº¿è½¦è½®ä¿¡æ¯", "PCS"); |
| | | WriteLog.Write_Log(name, wp_id, "é误信æ¯ï¼", $"è¯»åæ¡æ¶ä¿¡æ¯ï¼\nè½®åIDï¼{wp_type}\n\nåå
¥æ¡æ¶ä¿¡æ¯ï¼\nW_i_statusï¼2\nR_oi_onï¼0\n\næªæ¥è¯¢å°æ£æµçº¿è½¦è½®ä¿¡æ¯"); |
| | | #endregion |
| | | } |
| | | else |
| | | { |
| | | client.WriteByOrder("W_i_status", (byte)1, name); |
| | | client.WriteByOrder("W_i_parameter_a", geometry == null ? (float)geometry1.a : (float)geometry.a, name); |
| | | client.WriteByOrder("W_i_parameter_b", geometry == null ? (float)geometry1.b : (float)geometry.b, name); |
| | | client.WriteByOrder("W_i_parameter_c", geometry == null ? (float)geometry1.c : (float)geometry.c, name); |
| | | client.WriteByOrder("W_i_parameter_d", geometry == null ? (float)geometry1.d : (float)geometry.d, name); |
| | | client.WriteByOrder("W_i_parameter_e", geometry == null ? (float)geometry1.e : (float)geometry.e, name); |
| | | client.WriteByOrder("W_i_parameter_f", geometry == null ? (float)geometry1.f : (float)geometry.f, name); |
| | | client.WriteByOrder("W_i_parameter_g", geometry == null ? (float)geometry1.g : (float)geometry.g, name); |
| | | client.WriteByOrder("W_i_parameter_h", geometry == null ? (float)geometry1.h : (float)geometry.h, name); |
| | | client.WriteByOrder("R_oi_on", (byte)0, name); |
| | | #region æ¥å¿è®°å½ |
| | | //WriteDBLog.Success(name, $"è¯»åæ¡æ¶ä¿¡æ¯ï¼\nè½®åIDï¼{wp_type}\n\nåå
¥æ¡æ¶ä¿¡æ¯ï¼\nW_i_statusï¼1" + $"\n" + |
| | | // $"aï¼{(geometry == null ? (float)geometry1.a : (float)geometry.a)}\n" + |
| | | // $"bï¼{(geometry == null ? (float)geometry1.b : (float)geometry.b)}\n" + |
| | | // $"cï¼{(geometry == null ? (float)geometry1.c : (float)geometry.c)}\n" + |
| | | // $"dï¼{(geometry == null ? (float)geometry1.d : (float)geometry.d)}\n" + |
| | | // $"eï¼{(geometry == null ? (float)geometry1.e : (float)geometry.e)}\n" + |
| | | // $"fï¼{(geometry == null ? (float)geometry1.f : (float)geometry.f)}\n" + |
| | | // $"gï¼{(geometry == null ? (float)geometry1.g : (float)geometry.g)}\n" + |
| | | // $"hï¼{(geometry == null ? (float)geometry1.h : (float)geometry.h)}\n" + |
| | | // $"R_oi_onï¼0", "PCS"); |
| | | WriteLog.Write_Log(name, wp_id, "åå
¥ä¿¡æ¯ï¼", $"è¯»åæ¡æ¶ä¿¡æ¯ï¼\nè½®åIDï¼{wp_type}\n\nåå
¥æ¡æ¶ä¿¡æ¯ï¼\nW_i_statusï¼1" + $"\n" + |
| | | $"aï¼{(geometry == null ? (float)geometry1.a : (float)geometry.a)}\n" + |
| | | $"bï¼{(geometry == null ? (float)geometry1.b : (float)geometry.b)}\n" + |
| | | $"cï¼{(geometry == null ? (float)geometry1.c : (float)geometry.c)}\n" + |
| | | $"dï¼{(geometry == null ? (float)geometry1.d : (float)geometry.d)}\n" + |
| | | $"eï¼{(geometry == null ? (float)geometry1.e : (float)geometry.e)}\n" + |
| | | $"fï¼{(geometry == null ? (float)geometry1.f : (float)geometry.f)}\n" + |
| | | $"gï¼{(geometry == null ? (float)geometry1.g : (float)geometry.g)}\n" + |
| | | $"hï¼{(geometry == null ? (float)geometry1.h : (float)geometry.h)}\n" + |
| | | $"R_oi_onï¼0"); |
| | | #endregion |
| | | } |
| | | } |
| | | |
| | | } |
| | | } |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | //WriteDBLog.Error("æ¥è¯¢è½¦è½®æ°æ®", $"é误信æ¯ï¼{ex.Message}", "PCS"); |
| | | WriteLog.Write_Log("æ¥éæ¥å¿", namea, "é误信æ¯ï¼", $"é误信æ¯ï¼{ex.Message}"); |
| | | } |
| | | } |
| | |
| | | Idt_plcinfoheadRepository repository = new dt_plcinfoheadRepository(Context); |
| | | Idt_plcinfodetailRepository plcRepository = new dt_plcinfodetailRepository(Context); |
| | | Idt_geometry_dataRepository dataRepository = new dt_geometry_dataRepository(Context); |
| | | Idt_geometry_data_detectionlineRepository detectionlineRepository = new dt_geometry_data_detectionlineRepository(Context); |
| | | Idt_mes_detailRepository mes_DetailRepository = new dt_mes_detailRepository(Context); |
| | | IVV_Mes_WorkinfoRepository workinfoRepository = new VV_Mes_WorkinfoRepository(Context); |
| | | Idt_mes_headRepository mes_HeadRepository = new dt_mes_headRepository(Context); |
| | |
| | | client.WriteByOrder("W_i_status", (byte)2, name); |
| | | client.WriteByOrder("R_oi_on", (byte)0, name); |
| | | #region æ¥å¿è®°å½ |
| | | //WriteDBLog.Error(name, $"è¯»åæ¡æ¶ä¿¡æ¯ï¼\n车轮SNï¼{wp_id}\n\nåå
¥æ¡æ¶ä¿¡æ¯ï¼\nW_i_statusï¼2\nR_oi_onï¼0\n\næªæ¥è¯¢å°å·¥å详æ
", "PCS"); |
| | | WriteLog.Write_Log(name, wp_id, "é误信æ¯ï¼", $"è¯»åæ¡æ¶ä¿¡æ¯ï¼\n车轮SNï¼{wp_id}\n\nåå
¥æ¡æ¶ä¿¡æ¯ï¼\nW_i_statusï¼2\nR_oi_onï¼0\n\næªæ¥è¯¢å°å·¥å详æ
"); |
| | | #endregion |
| | | continue; |
| | | } |
| | | #region MyRegion |
| | | //var mes_Detail = mes_DetailRepository.FindFirst(x => x.SN == wp_id); |
| | | //if (mes_Detail == null) |
| | | //{ |
| | | // client.WriteByOrder("W_i_status", (byte)2, name); |
| | | // client.WriteByOrder("R_oi_on", (byte)0, name); |
| | | // #region æ¥å¿è®°å½ |
| | | // WriteDBLog.Error(name, $"è¯»åæ¡æ¶ä¿¡æ¯ï¼\n车轮SNï¼{wp_id}\n\nåå
¥æ¡æ¶ä¿¡æ¯ï¼\nW_i_statusï¼2\nR_oi_onï¼0\n\næªæ¥è¯¢å°å·¥å详æ
", "PCS"); |
| | | // #endregion |
| | | // continue; |
| | | //} |
| | | //var mes_Head = mes_HeadRepository.FindFirst(x => x.jobID == mes_Detail.jobID); |
| | | //if (mes_Head == null) |
| | | //{ |
| | | // client.WriteByOrder("W_i_status", (byte)2, name); |
| | | // client.WriteByOrder("R_oi_on", (byte)0, name); |
| | | // #region æ¥å¿è®°å½ |
| | | // WriteDBLog.Error(name, $"è¯»åæ¡æ¶ä¿¡æ¯ï¼\n车轮SNï¼{wp_id}\n\nåå
¥æ¡æ¶ä¿¡æ¯ï¼\nW_i_statusï¼2\nR_oi_onï¼0\n\næªæ¥è¯¢å°å·¥å头表", "PCS"); |
| | | // #endregion |
| | | // continue; |
| | | //} |
| | | #endregion |
| | | |
| | | var mes_Head = mes_HeadRepository.FindFirst(x => x.jobID == Mes_Work.jobID); |
| | | |
| | | if (name != "è¾é䏿æ¥è¯¢è®¢å") |
| | | { |
| | | //éæ·»å æ¥è¯¢è½¦è½®SNå·è®¢åé»è¾ éæ·»å å
¥åºæ¨¡å¼å¤æï¼æå¨å
¥åºæ¨¡å¼é人工添å å
¥åºåºåºï¼å¦åæ¥è¦ |
| | | var pattern = patternRepository.FindFirst(x => x.pattern_name == "å
¥åºæ¨¡å¼").pattern_state; |
| | | if (pattern != 1 && string.IsNullOrEmpty(mes_Head.area)) |
| | |
| | | client.WriteByOrder("W_i_status", (byte)4, name); |
| | | client.WriteByOrder("R_oi_on", (byte)0, name); |
| | | #region æ¥å¿è®°å½ |
| | | //WriteDBLog.Error(name, $"è¯»åæ¡æ¶ä¿¡æ¯ï¼\n车轮SNï¼{wp_id}\n\nåå
¥æ¡æ¶ä¿¡æ¯ï¼\nW_i_statusï¼4\nR_oi_onï¼0\n\næå¨å
¥åºæ¨¡å¼æªéæ©åºåº", "PCS"); |
| | | WriteLog.Write_Log(name, wp_id, "é误信æ¯ï¼", $"è¯»åæ¡æ¶ä¿¡æ¯ï¼\n车轮SNï¼{wp_id}\n\nåå
¥æ¡æ¶ä¿¡æ¯ï¼\nW_i_statusï¼4\nR_oi_onï¼0\n\næå¨å
¥åºæ¨¡å¼æªéæ©åºåº"); |
| | | #endregion |
| | | continue; |
| | | } |
| | | //var geometry = dataRepository.FindFirst(x => x.TypeId == (Int32)wp_type); |
| | | var geometry = dataRepository.Find(x => x.Description == mes_Head.drawingNo /*&& x.TypeId == (Int32)wp_type*/).FirstOrDefault(); |
| | | var geometry1 = detectionlineRepository.Find(x => x.Description == mes_Head.drawingNo).FirstOrDefault(); |
| | | if (geometry == null && geometry1 == null) |
| | | var geometry = Pipeline.QueryMateriel(Mes_Work.drawingNo); |
| | | if (geometry == null) |
| | | { |
| | | //1-好,å
许å å·¥ï¼2-ä¸å¨å表ä¸ï¼3-ä¸å 工车轮类åï¼4-æå¨å
¥åºæ¨¡å¼äººå·¥æªéæ©åºåº |
| | | client.WriteByOrder("W_i_status", (byte)2, name); |
| | | client.WriteByOrder("R_oi_on", (byte)0, name); |
| | | #region æ¥å¿è®°å½ |
| | | //WriteDBLog.Error(name, $"è¯»åæ¡æ¶ä¿¡æ¯ï¼\n车轮SNï¼{wp_id}\nè½®åIDï¼{wp_type}\n\nåå
¥æ¡æ¶ä¿¡æ¯ï¼\nW_i_statusï¼2\nR_oi_onï¼0\n\næªæ¥è¯¢å°æºå 工车轮信æ¯", "PCS"); |
| | | WriteLog.Write_Log(name, wp_id, "é误信æ¯ï¼", $"è¯»åæ¡æ¶ä¿¡æ¯ï¼\n车轮SNï¼{wp_id}\nè½®åIDï¼{wp_type}\n\nåå
¥æ¡æ¶ä¿¡æ¯ï¼\nW_i_statusï¼2\nR_oi_onï¼0\n\næªæ¥è¯¢å°æºå 工车轮信æ¯"); |
| | | #endregion |
| | | continue; |
| | |
| | | $"\nW_i_job_idï¼{Mes_Work.jobID}\nW_i_drawing_idï¼{Mes_Work.drawingNo}\nW_i_heat_idï¼{Mes_Work.heatID}\nW_i_batch_idï¼{Mes_Work.heatBatchID}" + |
| | | $"\nW_i_skip_op_SJ1ï¼{(name == "3åå
è¾é䏿æ¥è¯¢è®¢å" ? true : mes_Head.skip_op_1)}\nW_i_skip_op_SJ2ï¼{(name == "3åå
è¾é䏿æ¥è¯¢è®¢å" ? true : mes_Head.skip_op_2)}" + |
| | | $"\nW_i_skip_op_LTï¼{mes_Head.skip_op_3}\nR_oi_onï¼0"); |
| | | //WriteDBLog.Success(name, $"è¯»åæ¡æ¶ä¿¡æ¯ï¼\n车轮SNï¼{wp_id}\nè½®åIDï¼{wp_type}\n\nåå
¥æ¡æ¶ä¿¡æ¯ï¼\nW_i_statusï¼1" + |
| | | // $"\nW_i_job_idï¼{Mes_Work.jobID}\nW_i_drawing_idï¼{Mes_Work.drawingNo}\nW_i_heat_idï¼{Mes_Work.heatID}\nW_i_batch_idï¼{Mes_Work.heatBatchID}" + |
| | | // $"\nW_i_skip_op_SJ1ï¼{(name == "3åå
è¾é䏿æ¥è¯¢è®¢å" ? true : mes_Head.skip_op_1)}\nW_i_skip_op_SJ2ï¼{(name == "3åå
è¾é䏿æ¥è¯¢è®¢å" ? true : mes_Head.skip_op_2)}" + |
| | | // $"\nW_i_skip_op_LTï¼{mes_Head.skip_op_3}\nR_oi_onï¼0", "PCS"); |
| | | #endregion |
| | | } |
| | | } |
| | | else |
| | | { |
| | | var geometry = detectionlineRepository.Find(x => x.Description == mes_Head.drawingNo /*&& x.TypeId == (Int32)wp_type*/).FirstOrDefault(); |
| | | var geometry1 = dataRepository.Find(x => x.Description == mes_Head.drawingNo).FirstOrDefault(); |
| | | if (geometry == null && geometry1 == null) |
| | | { |
| | | //1-好,å
许å å·¥ï¼2-ä¸å¨å表ä¸ï¼3-ä¸å 工车轮类åï¼4-æå¨å
¥åºæ¨¡å¼äººå·¥æªéæ©åºåº |
| | | client.WriteByOrder("W_i_status", (byte)2, name); |
| | | client.WriteByOrder("R_oi_on", (byte)0, name); |
| | | #region æ¥å¿è®°å½ |
| | | //WriteDBLog.Error(name, $"è¯»åæ¡æ¶ä¿¡æ¯ï¼\n车轮SNï¼{wp_id}\nè½®åIDï¼{wp_type}\n\nåå
¥æ¡æ¶ä¿¡æ¯ï¼\nW_i_statusï¼2\nR_oi_onï¼0\n\næªæ¥è¯¢å°æ£æµçº¿è½¦è½®ä¿¡æ¯", "PCS"); |
| | | WriteLog.Write_Log(name, wp_id, "é误信æ¯ï¼", $"è¯»åæ¡æ¶ä¿¡æ¯ï¼\n车轮SNï¼{wp_id}\nè½®åIDï¼{wp_type}\n\nåå
¥æ¡æ¶ä¿¡æ¯ï¼\nW_i_statusï¼2\nR_oi_onï¼0\n\næªæ¥è¯¢å°æ£æµçº¿è½¦è½®ä¿¡æ¯"); |
| | | #endregion |
| | | continue; |
| | | } |
| | | else |
| | | { |
| | | //1-好,å
许å å·¥ï¼2-ä¸å¨å表ä¸ï¼3-ä¸å 工车轮类åï¼4-æå¨å
¥åºæ¨¡å¼äººå·¥æªéæ©åºåº |
| | | client.WriteByOrder("W_i_status", (byte)1, name); |
| | | client.WriteByOrder("W_i_job_id", Mes_Work.jobID, name); |
| | | client.WriteByOrder("W_i_drawing_id", Mes_Work.drawingNo, name); |
| | | client.WriteByOrder("W_i_heat_id", Mes_Work.heatID, name); |
| | | //client.WriteByOrder("W_i_sourceheat", "", name); |
| | | client.WriteByOrder("W_i_batch_id", Mes_Work.heatBatchID, name); |
| | | client.WriteByOrder("R_oi_on", (byte)0, name); |
| | | #region æ¥å¿è®°å½ |
| | | WriteLog.Write_Log(name, wp_id, "åå
¥ä¿¡æ¯ï¼", $"è¯»åæ¡æ¶ä¿¡æ¯ï¼\n车轮SNï¼{wp_id}\nè½®åIDï¼{wp_type}\n\nåå
¥æ¡æ¶ä¿¡æ¯ï¼\nW_i_statusï¼1" + $"\nW_i_job_idï¼{Mes_Work.jobID}" + |
| | | $"\nW_i_drawing_idï¼{mes_Head.drawingNo}\nW_i_heat_idï¼{Mes_Work.heatID}\nW_i_batch_idï¼{Mes_Work.heatBatchID}\nR_oi_onï¼0"); |
| | | //WriteDBLog.Success(name, $"è¯»åæ¡æ¶ä¿¡æ¯ï¼\n车轮SNï¼{wp_id}\nè½®åIDï¼{wp_type}\n\nåå
¥æ¡æ¶ä¿¡æ¯ï¼\nW_i_statusï¼1" + $"\nW_i_job_idï¼{Mes_Work.jobID}" + |
| | | // $"\nW_i_drawing_idï¼{mes_Head.drawingNo}\nW_i_heat_idï¼{Mes_Work.heatID}\nW_i_batch_idï¼{Mes_Work.heatBatchID}\nR_oi_onï¼0", "PCS"); |
| | | #endregion |
| | | } |
| | | } |
| | | } |
| | | } |
| | |
| | | Idt_plcinfodetailRepository plcRepository = new dt_plcinfodetailRepository(Context); |
| | | Idt_stationinfoRepository stationinfoRepository = new dt_stationinfoRepository(Context); |
| | | Idt_geometry_dataRepository dataRepository = new dt_geometry_dataRepository(Context); |
| | | Idt_geometry_data_detectionlineRepository detectionlineRepository = new dt_geometry_data_detectionlineRepository(Context); |
| | | Idt_mes_detailRepository mes_DetailRepository = new dt_mes_detailRepository(Context); |
| | | Idt_mes_headRepository mes_HeadRepository = new dt_mes_headRepository(Context); |
| | | IVV_Mes_WorkinfoRepository workinfoRepository = new VV_Mes_WorkinfoRepository(Context); |
| | |
| | | #endregion |
| | | continue; |
| | | } |
| | | |
| | | var geometry = Pipeline.QueryMateriel(Mes_Work.drawingNo); |
| | | #endregion |
| | | |
| | | var AreaNr = (Int16)DBExtension.Read(details.Where(x => x.plcdetail_name == "W_AreaNr").First(), client); |
| | |
| | | var station = stationinfoRepository.Find(x => x.area == areaCode && x.stationCode.Substring(x.stationCode.Length - 1, 1) == AreaNr.ToString()).FirstOrDefault(); |
| | | if (station != null) |
| | | { |
| | | if (station.quantity >= Mes_Work.stackNoRange) |
| | | if (station.quantity >= geometry.stackNoRange) |
| | | //if (station.quantity >= 5) |
| | | { |
| | | Pipeline_client.WriteByOrder("W_AlarmSignal", (Int16)2, name);//æ¥è¦ |
| | |
| | | #endregion |
| | | |
| | | var wheel = Pipeline.QueryMateriel(Work.drawingNo); |
| | | var wheel1 = Pipeline.QueryMateriel1(Work.drawingNo); |
| | | if (wheel == null && wheel1 == null) |
| | | //var wheel1 = Pipeline.QueryMateriel1(Work.drawingNo); |
| | | if (wheel == null /*&& wheel1 == null*/) |
| | | { |
| | | #region æ¥å¿è®°å½ |
| | | client.WriteByOrder("W_Enabl_Load", false, name);//ä¿¡å·ä¸ºfalseæ¡æ¶åæ¢è¿å
¥ |
| | |
| | | #region æçç±»åä¸ä¸è´éæ´æ¢æç |
| | | foreach (var Stationinfo in Stations) |
| | | { |
| | | if (Stationinfo.tray_type != "LargeTray" && (wheel == null ? wheel1.e : wheel.e) > 1100) |
| | | if (Stationinfo.tray_type != "LargeTray" && /*(wheel == null ? wheel1.e :)*/ wheel.e > 1100) |
| | | { |
| | | client.WriteByOrder("W_Enabl_Load", false, name);//ä¿¡å·ä¸ºfalseæ¡æ¶åæ¢è¿å
¥ |
| | | Stationinfo.location_state = LocationStateEnum.Trayswitching.ToString(); |
| | |
| | | .Where(x => x.enable |
| | | && x.stationCode != NGStation |
| | | && x.location_state == LocationStateEnum.Stroge.ToString() |
| | | && x.quantity < Work.stackNoRange |
| | | && x.quantity < wheel.stackNoRange |
| | | //&& x.quantity < 5 |
| | | && x.stationType == Work.drawingNo |
| | | && x.Number == Work.workOrder |
| | |
| | | .Where(x => x.enable |
| | | && x.stationCode != NGStation |
| | | && x.location_state == LocationStateEnum.Stroge.ToString() |
| | | && x.quantity < Work.stackNoRange |
| | | && x.quantity < wheel.stackNoRange |
| | | //&& x.quantity < 5 |
| | | && x.stationType == Work.drawingNo |
| | | && x.Number == Work.workOrder) |
| | |
| | | |
| | | #region æç车轮å å第å个æ¶ä¸åå¦å¤ä¸ä¸ªçå·çå
¥åºä»»å¡ |
| | | //if (Stationinfo.quantity + 1 >= 4) |
| | | if (Stationinfo.quantity + 1 >= Work.stackNoRange - 1) |
| | | if (Stationinfo.quantity + 1 >= wheel.stackNoRange - 1) |
| | | { |
| | | var stationinfo = Stations.Where(x => x.enable && x.stationCode != NGStation && x.stationCode != Stationinfo.stationCode && x.location_state == LocationStateEnum.Stroge.ToString() && x.quantity > 0).FirstOrDefault(); |
| | | if (stationinfo != null) |
| | |
| | | dt_stationinfo Stationinfo = Stations.Where(x => x.enable |
| | | && x.stationCode == NGStation |
| | | && x.location_state == LocationStateEnum.Stroge.ToString() |
| | | && x.quantity < Work.stackNoRange |
| | | && x.quantity < wheel.stackNoRange |
| | | //&& x.quantity < 5 |
| | | && x.stationType == Work.drawingNo).FirstOrDefault(); |
| | | |
| | |
| | | { |
| | | Station.location_state = LocationStateEnum.Abnormal.ToString(); |
| | | Station.remark = "车轮æ°éä¸SNå·æ°éä¸ä¸è´"; |
| | | stationinfoRepository.Update(Station, true); |
| | | stationinfoRepository.Update(Station, x => new { x.location_state, x.remark }, true); |
| | | Gantry_client.WriteByOrder("W_RequestUnload", false, number);//ä¿¡å·ä¸ºfalseæ¡æ¶åæ¢è¿å
¥ |
| | | #region æ¥å¿è®°å½ |
| | | WriteDBLog.Error("䏿åº", $"åå
¥æ¡æ¶ä¿¡æ¯ï¼\nW_RequestUnloadï¼false\n\n{Station.stationCode}车轮æ°éä¸SNå·æ°éä¸ä¸è´", "PCS"); |
| | | //WriteDBLog.Error("䏿åº", $"åå
¥æ¡æ¶ä¿¡æ¯ï¼\nW_RequestUnloadï¼false\n\n{Station.stationCode}车轮æ°éä¸SNå·æ°éä¸ä¸è´", "PCS"); |
| | | #endregion |
| | | return; |
| | | } |
| | |
| | | |
| | | if (PalletSignal == 1 && MaterialSignal == 1) |
| | | { |
| | | Gantry_client.WriteByOrder("W_Wheel_Type", (Int16)Convert.ToInt16(QueryMateriel(Station.stationType) == null ? QueryMateriel1(Station.stationType).TypeId : QueryMateriel(Station.stationType).TypeId), number);//车轮类å |
| | | var geometry = QueryMateriel(Station.stationType); |
| | | if (geometry == null) |
| | | { |
| | | Station.remark = "æªæ¾å°è½¦è½®ä¿¡æ¯"; |
| | | stationinfoRepository.Update(Station, x => new { x.remark }, true); |
| | | Gantry_client.WriteByOrder("W_RequestUnload", false, number);//ä¿¡å·ä¸ºfalseæ¡æ¶åæ¢è¿å
¥ |
| | | return; |
| | | } |
| | | Gantry_client.WriteByOrder("W_Wheel_Type", (Int16)Convert.ToInt16(geometry.TypeId), number);//车轮类å |
| | | var area = Convert.ToInt16(Station.stationCode.Substring(Station.stationCode.Length - 1, 1)); |
| | | Gantry_client.WriteByOrder("W_AreaNr", (Int16)area, number);//åºåè´§ä½å· |
| | | Gantry_client.WriteByOrder("W_IndexNr", (Int16)SNS.Length, number);//æçä¸ç第å 个车轮 |
| | |
| | | Gantry_client.WriteByOrder("W_RequestUnload", true, number); |
| | | #region æ¥å¿è®°å½ |
| | | WriteDBLog.Success("䏿åºç³è¯·", $"读åæçå
çµä¿¡å·ï¼{PalletSignal}\n读å第ä¸ä¸ªè½¦è½®å
çµä¿¡å·ï¼{MaterialSignal}\n\n" + |
| | | $"åå
¥æ¡æ¶ä¿¡æ¯ï¼\nåºåè´§ä½å·ï¼{area}\næçä¸ç第å 个车轮ï¼{SNS.Length}\næçç±»åï¼{1}\n车轮类åï¼{(QueryMateriel(Station.stationType) == null ? QueryMateriel1(Station.stationType).TypeId : QueryMateriel(Station.stationType).TypeId)}" + |
| | | $"åå
¥æ¡æ¶ä¿¡æ¯ï¼\nåºåè´§ä½å·ï¼{area}\næçä¸ç第å 个车轮ï¼{SNS.Length}\næçç±»åï¼{1}\n车轮类åï¼{geometry.TypeId}" + |
| | | $"\n车轮SNå·ï¼{SNS[SNS.Length - 1]}\nW_RequestUnloadï¼true", "PCS"); |
| | | #endregion |
| | | } |
| | |
| | | { |
| | | StationTask.CreateTask();//å
¥åº |
| | | OutboundTask.CreateOutboundTask();//åºåº |
| | | //ReplaceTray.ReplaceTrayTask();//æ´æ¢æç |
| | | RestockHCJ.HCJGetBarcode();//æ´æ°éå |
| | | EmptyTrayTask.CreateEmptyTrayTask();//å建补空æ |
| | | AutoUpdateWork.FinishMesWork();//å¤çå·¥å |
| | |
| | | { |
| | | item.remark = "触åå
¥åºä»»å¡,使ªæ¾å°å·¥åä¿¡æ¯ï¼"; |
| | | item.location_state = LocationStateEnum.Abnormal.ToString(); |
| | | stationinfoRepository.Update(item, true); |
| | | stationinfoRepository.Update(item, x => new { x.remark, x.location_state }, true); |
| | | continue; |
| | | } |
| | | var geometry = Pipeline.QueryMateriel(work.drawingNo); |
| | | if (geometry == null) |
| | | { |
| | | item.remark = "æªæ¾å°è½¦è½®ä¿¡æ¯ï¼"; |
| | | item.location_state = LocationStateEnum.Abnormal.ToString(); |
| | | stationinfoRepository.Update(item, x => new { x.remark, x.location_state }, true); |
| | | continue; |
| | | } |
| | | |
| | |
| | | string tasktype = ""; |
| | | |
| | | //if (item.quantity == 5) |
| | | if (item.quantity == work.stackNoRange) |
| | | if (item.quantity == geometry.stackNoRange) |
| | | { |
| | | if (!string.IsNullOrEmpty(work.area) || item.stationCode.Contains("3")) |
| | | tasktype = "TaskType_OutsourceInbound"; |
| | |
| | | |
| | | #region æ¥è¯¢å½åå·¥åçå¾å·ä¿¡æ¯æ¯å¦åå¨ |
| | | var dt_Geometry_Data = Pipeline.QueryMateriel(workInfo.drawingNo); |
| | | var dt_Geometry_Data1 = Pipeline.QueryMateriel1(workInfo.drawingNo); |
| | | if (dt_Geometry_Data == null && dt_Geometry_Data1 == null) |
| | | //var dt_Geometry_Data1 = Pipeline.QueryMateriel1(workInfo.drawingNo); |
| | | if (dt_Geometry_Data == null /*&& dt_Geometry_Data1 == null*/) |
| | | { |
| | | throw new Exception($"æªæ¾å°å¾å·ï¼{workInfo.drawingNo}ç车轮信æ¯ï¼å·¥åç¼å·ï¼{workInfo.jobID}"); |
| | | } |
| | |
| | | export default defineComponent({ |
| | | setup() { |
| | | const table = ref({ |
| | | key: 'TypeId', |
| | | key: 'ID', |
| | | footer: "Foots", |
| | | cnName: '车轮信æ¯', |
| | | name: 'baseinfo/dt_geometry_data', |
| | | url: "/dt_geometry_data/", |
| | | sortName: "TypeId" |
| | | }); |
| | | const editFormFields = ref({"TypeId":"","Description":"","a":"","b":"","c":"","d":"","e":"","f":"","g":"","h":""}); |
| | | const editFormOptions = ref([ |
| | | [{"title":"TypeId","required":true,"field":"TypeId","type":"text"}, |
| | | const editFormFields = ref({"TypeId":"","Description":"","a":"","b":"","c":"","d":"","e":"","f":"","g":"","h":"","stackNoRange":"","weight":""}); |
| | | const editFormOptions = ref([[{"title":"TypeId","required":true,"field":"TypeId","type":"text"}, |
| | | {"title":"å¾å·","required":true,"field":"Description","type":"text"}], |
| | | [{"title":"a","required":true,"field":"a","type":"text"}, |
| | | {"title":"b","required":true,"field":"b","type":"text"}], |
| | |
| | | [{"title":"e","required":true,"field":"e","type":"text"}, |
| | | {"title":"f","required":true,"field":"f","type":"text"}], |
| | | [{"title":"g","required":true,"field":"g","type":"text"}, |
| | | {"title":"h","required":true,"field":"h","type":"decimal"}]]); |
| | | const searchFormFields = ref({"Description":""}); |
| | | const searchFormOptions = ref([[{"title":"å¾å·","field":"Description","type":"like"}]]); |
| | | const columns = ref([{field:'TypeId',title:'TypeId',type:'int',width:110,readonly:true,require:true,align:'left'}, |
| | | {field:'Description',title:'å¾å·',type:'string',width:120,require:true,align:'left',sort:true}, |
| | | {"title":"h","required":true,"field":"h","type":"text"}], |
| | | [{"title":"æå
æ°é","required":true,"field":"stackNoRange","type":"text"}, |
| | | {"title":"éé","required":true,"field":"weight","type":"float"}]]); |
| | | const searchFormFields = ref({"TypeId":"","Description":""}); |
| | | const searchFormOptions = ref([[{"title":"å¾å·","field":"Description","type":"like"},{"title":"TypeId","field":"TypeId","type":"int"}]]); |
| | | const columns = ref([{field:'TypeId',title:'TypeId',type:'int',width:110,require:true,align:'left',sort:true}, |
| | | {field:'Description',title:'å¾å·',type:'string',width:120,require:true,align:'left'}, |
| | | {field:'a',title:'a',type:'float',width:110,require:true,align:'left'}, |
| | | {field:'b',title:'b',type:'float',width:110,require:true,align:'left'}, |
| | | {field:'c',title:'c',type:'float',width:110,require:true,align:'left'}, |
| | |
| | | {field:'e',title:'e',type:'float',width:110,require:true,align:'left'}, |
| | | {field:'f',title:'f',type:'float',width:110,require:true,align:'left'}, |
| | | {field:'g',title:'g',type:'float',width:110,require:true,align:'left'}, |
| | | {field:'h',title:'h',type:'float',width:110,require:true,align:'left'}]); |
| | | {field:'h',title:'h',type:'float',width:110,require:true,align:'left'}, |
| | | {field:'stackNoRange',title:'æå
æ°é',type:'int',width:110,require:true,align:'left',sort:true}, |
| | | {field:'weight',title:'éé',type:'float',width:110,require:true,align:'left'}, |
| | | {field:'ID',title:'ID',type:'int',sort:true,width:80,hidden:true,readonly:true,require:true,align:'left'}]); |
| | | const detail = ref({ |
| | | cnName: "#detailCnName", |
| | | table: "#detailTable", |
| | |
| | | /// <summary> |
| | | /// |
| | | /// </summary> |
| | | [Key] |
| | | [Display(Name ="TypeId")] |
| | | [Column(TypeName="int")] |
| | | [Editable(true)] |
| | |
| | | public string Description { get; set; } |
| | | |
| | | /// <summary> |
| | | /// |
| | | ///a |
| | | /// </summary> |
| | | [Display(Name ="a")] |
| | | [Column(TypeName="float")] |
| | |
| | | public float a { get; set; } |
| | | |
| | | /// <summary> |
| | | /// |
| | | ///b |
| | | /// </summary> |
| | | [Display(Name ="b")] |
| | | [Column(TypeName="float")] |
| | |
| | | public float b { get; set; } |
| | | |
| | | /// <summary> |
| | | /// |
| | | ///c |
| | | /// </summary> |
| | | [Display(Name ="c")] |
| | | [Column(TypeName="float")] |
| | |
| | | public float c { get; set; } |
| | | |
| | | /// <summary> |
| | | /// |
| | | ///d |
| | | /// </summary> |
| | | [Display(Name ="d")] |
| | | [Column(TypeName="float")] |
| | |
| | | public float d { get; set; } |
| | | |
| | | /// <summary> |
| | | /// |
| | | ///e |
| | | /// </summary> |
| | | [Display(Name ="e")] |
| | | [Column(TypeName="float")] |
| | |
| | | public float e { get; set; } |
| | | |
| | | /// <summary> |
| | | /// |
| | | ///f |
| | | /// </summary> |
| | | [Display(Name ="f")] |
| | | [Column(TypeName="float")] |
| | |
| | | public float f { get; set; } |
| | | |
| | | /// <summary> |
| | | /// |
| | | ///g |
| | | /// </summary> |
| | | [Display(Name ="g")] |
| | | [Column(TypeName="float")] |
| | |
| | | public float g { get; set; } |
| | | |
| | | /// <summary> |
| | | /// |
| | | ///h |
| | | /// </summary> |
| | | [Display(Name ="h")] |
| | | [Column(TypeName="float")] |
| | |
| | | [Required(AllowEmptyStrings=false)] |
| | | public float h { get; set; } |
| | | |
| | | /// <summary> |
| | | /// |
| | | /// </summary> |
| | | [Key] |
| | | [Display(Name ="ID")] |
| | | [Column(TypeName="int")] |
| | | [Required(AllowEmptyStrings=false)] |
| | | public int ID { get; set; } |
| | | |
| | | /// <summary> |
| | | /// æå
æ°é |
| | | /// </summary> |
| | | [Display(Name = "stackNoRange")] |
| | | [Column(TypeName = "int")] |
| | | //[Editable(true)] |
| | | //[Required(AllowEmptyStrings = false)] |
| | | public int stackNoRange { get; set; } |
| | | |
| | | /// <summary> |
| | | ///éé |
| | | /// </summary> |
| | | [Display(Name = "weight")] |
| | | [Column(TypeName = "float")] |
| | | //[Editable(true)] |
| | | //[Required(AllowEmptyStrings = false)] |
| | | public float? weight { get; set; } |
| | | } |
| | | } |
| | |
| | | agv_task.agv_toaddress = EmptyStation.stationCode; |
| | | agvtaskRepository.Update(agv_task, true); |
| | | EmptyStation.location_state = LocationStateEnum.Busy.ToString(); |
| | | EmptyStation.tray_status = TrayStateEnum.EmptyTray.ToString(); |
| | | stationinfoRepository.Update(EmptyStation, true); |
| | | WriteDBLog.Success("æ´æ°èªå¨å空æéåä»»å¡", $"ä»»å¡ç¼å·ï¼{agv_task.agv_tasknum}", "WMS"); |
| | | } |
| | |
| | | station1.quantity = station1.quantity - task.agv_qty; |
| | | station1.location_state = LocationStateEnum.Stroge.ToString(); |
| | | } |
| | | else if (station1.area == "10" || station1.area == "11" || (station1.stationCode.Contains("C") && task.agv_tasktype == "TaskType_EmptyPallet")) //åºåºç©ºæä»»å¡ |
| | | else if (station1.area == "10" || station1.area == "11" |
| | | || ((station1.stationCode.Contains("C") || station1.stationCode.Contains("B")) |
| | | && task.agv_tasktype == AGVTaskTypeEnum.TaskType_EmptyPallet.ToString())) //åºåºç©ºæä»»å¡ |
| | | { |
| | | station1.location_state = LocationStateEnum.Stroge.ToString(); |
| | | station1.quantity = station1.quantity - 1; |
| | |
| | | agv_task.agv_toaddress = EmptyStation.stationCode; |
| | | agvtaskRepository.Update(agv_task, true); |
| | | EmptyStation.location_state = LocationStateEnum.Busy.ToString(); |
| | | EmptyStation.tray_status = TrayStateEnum.EmptyTray.ToString(); |
| | | stationinfoRepository.Update(EmptyStation, true); |
| | | } |
| | | else |
| | |
| | | EmptyStation.location_state = LocationStateEnum.Busy.ToString(); |
| | | stationinfoRepository.Update(EmptyStation, true); |
| | | toEmptyStation.location_state = LocationStateEnum.Busy.ToString(); |
| | | toEmptyStation.tray_status = TrayStateEnum.EmptyTray.ToString(); |
| | | stationinfoRepository.Update(toEmptyStation, true); |
| | | WriteDBLog.Success("å建å çä½ç©ºæå
¥åºä»»å¡", $"ä»»å¡ç¼å·ï¼{agvtask.agv_tasknum}", "PCS"); |
| | | } |