Browse Source

1.修改NG_INFO的REASON_NO长度为10

2.修改NG_COMPONENT的NG_NO长度为10
3.修改NG_REPAIR的REPAIR_NO长度为10
4.修改分布图的WIP数小于0时显示为0
PTD
Marvin 3 years ago
parent
commit
2b0daf717e
  1. 7
      AMESCoreStudio.Web/Controllers/QRSController.cs
  2. 2
      AMESCoreStudio.WebApi/Models/AMES/NgComponent.cs
  3. 2
      AMESCoreStudio.WebApi/Models/AMES/NgInfo.cs
  4. 2
      AMESCoreStudio.WebApi/Models/AMES/NgRepair.cs

7
AMESCoreStudio.Web/Controllers/QRSController.cs

@ -235,7 +235,12 @@ namespace AMESCoreStudio.Web.Controllers
} }
} }
} }
stationWip = stationWip + "<td width='150' style='text-align:left'><a href=\"javascript:hg.open('在製條碼資料','/QRS/QRS009W/" + wip_id + "_" + station_list[j] + "',800,600);\">" + (okQty1 + ngQty1 - okQty2 - ngQty2) + "</a></td>"; int wip_qty = okQty1 + ngQty1 - okQty2 - ngQty2;
if (wip_qty < 0)
{
wip_qty = 0;
}
stationWip = stationWip + "<td width='150' style='text-align:left'><a href=\"javascript:hg.open('在製條碼資料','/QRS/QRS009W/" + wip_id + "_" + station_list[j] + "',800,600);\">" + wip_qty + "</a></td>";
} }
stationWip = stationWip + "</tr></table><br/>"; stationWip = stationWip + "</tr></table><br/>";

2
AMESCoreStudio.WebApi/Models/AMES/NgComponent.cs

@ -55,7 +55,7 @@ namespace AMESCoreStudio.WebApi.Models.AMES
/// </summary> /// </summary>
[Required] [Required]
[Column("NG_NO")] [Column("NG_NO")]
[StringLength(6)] [StringLength(10)]
[DataMember] [DataMember]
[Display(Name = "不良原因代碼")] [Display(Name = "不良原因代碼")]
public string NgNo { get; set; } public string NgNo { get; set; }

2
AMESCoreStudio.WebApi/Models/AMES/NgInfo.cs

@ -150,7 +150,7 @@ namespace AMESCoreStudio.WebApi.Models.AMES
/// </summary> /// </summary>
[Column("REASON_NO")] [Column("REASON_NO")]
[Display(Name = "不良現象原因代碼")] [Display(Name = "不良現象原因代碼")]
[StringLength(6)] [StringLength(10)]
[DataMember] [DataMember]
public string ReasonNo { get; set; } public string ReasonNo { get; set; }

2
AMESCoreStudio.WebApi/Models/AMES/NgRepair.cs

@ -53,7 +53,7 @@ namespace AMESCoreStudio.WebApi.Models.AMES
/// </summary> /// </summary>
[Required] [Required]
[Column("REPAIR_NO")] [Column("REPAIR_NO")]
[StringLength(6)] [StringLength(10)]
[DataMember] [DataMember]
[Display(Name = "維修代碼")] [Display(Name = "維修代碼")]
public string RepairNo { get; set; } = "N/A"; public string RepairNo { get; set; } = "N/A";

Loading…
Cancel
Save