1,来料检添加‘往期检验履历’,‘最大抽检数量’两个字段 2,一致性核对添加图片是否上传校验
| | |
| | | /// </summary> |
| | | [SugarColumn(ColumnName = "EXTEND_N01")] |
| | | public string? ExtendNo1 { get; set; } |
| | | /// <summary> |
| | | /// 往期检验履历 |
| | | /// </summary> |
| | | [SugarColumn(ColumnName = "LVLI")] |
| | | public string? LVLI { get; set; } |
| | | /// <summary> |
| | | /// 最大抽检数量 |
| | | /// </summary> |
| | | [SugarColumn(ColumnName = "CHECK_QYT")] |
| | | public string? MaxCheckQyt { get; set; } |
| | | |
| | | [SugarColumn(IsIgnore = true)] public string? UserName { get; set; } |
| | | |
| | |
| | | SQLHelper.ExecuteQuery(sql2); |
| | | |
| | | } |
| | | |
| | | public string[] YzxImgVerify(string id) |
| | | { |
| | | string[] msgStr = new string[2]; |
| | | |
| | | OracleSQLHelper SQLHelper = new(); |
| | | //修改结果 |
| | | var sql2 = string.Format(@"select A.ITEMNAME from ( select 888||min(id) id,ITEMNAME from MES_IQC_CONSISTENCY_CK where pid='"+ id + "' group by ITEMNAME) A " + |
| | | "left join MES_QS_IMAGE b on a.id=b.fid where B.id is null order by ITEMNAME"); |
| | | DataTable db= SQLHelper.ExecuteQuery(sql2); |
| | | if (db.Rows.Count > 0) |
| | | { |
| | | msgStr[1] = "元器件:"; |
| | | for (int i = 0; i < db.Rows.Count; i++) |
| | | { |
| | | msgStr[1] += db.Rows[i]["ITEMNAME"]+ ","; |
| | | } |
| | | msgStr[1] += "未完成图片上传,请上传!"; |
| | | msgStr[0] = "1"; |
| | | } |
| | | else |
| | | { |
| | | msgStr[0] = "0"; |
| | | msgStr[1] = "ok"; |
| | | } |
| | | |
| | | return msgStr; |
| | | } |
| | | |
| | | public int UpdateQSItemDetail(MesQaItemsDetectDetail12 detail) |
| | | { |
| | | var withOracle = SqlSugarHelper.UseTransactionWithOracle(db => |
| | |
| | | using MES.Service.Dto.service; |
| | | using Masuit.Tools; |
| | | using MES.Service.Dto.service; |
| | | using MES.Service.Modes; |
| | | using MES.Service.service.QC; |
| | | using MES.Service.util; |
| | |
| | | try |
| | | { |
| | | new LljService().saveYzxBDlist(id, dt); |
| | | string[] msg=new LljService().YzxImgVerify(id); |
| | | |
| | | return new ResponseResult |
| | | { |
| | | status = 0, |
| | | message = "OK", |
| | | data = "ok" |
| | | status = int.Parse( msg[0]), |
| | | message = msg[1], |
| | | data = "" |
| | | }; |
| | | } |
| | | catch (Exception ex) |