| | |
| | | break; |
| | | } |
| | | |
| | | if (string.IsNullOrEmpty(LEV)) throw new Exception(item.QsCode+"下的检验水平维护的不正确"); |
| | | if (string.IsNullOrEmpty(LEV)) |
| | | throw new Exception(item.QsCode + "下的检验水平维护的不正确"); |
| | | |
| | | var sql = |
| | | "SELECT " + LEV + |
| | |
| | | var maxBillNo = db.Ado.SqlQuerySingle<string>(sql); |
| | | |
| | | if (string.IsNullOrEmpty(maxBillNo)) |
| | | throw new Exception(item.QsCode+"下没有" + quantity + "这个范围的抽样基准"); |
| | | throw new Exception( |
| | | item.QsCode + "下没有" + quantity + "这个范围的抽样基准"); |
| | | |
| | | var result = ExtractSubstring(item.FacLevel, '(', ')'); |
| | | |
| | | if (string.IsNullOrEmpty(result)) |
| | | throw new Exception(item.QsCode+"维护的接收水平不正确,应该是0.010---(AQL_0_0010)这样"); |
| | | throw new Exception(item.QsCode + |
| | | "维护的接收水平不正确,应该是0.010---(AQL_0_0010)这样"); |
| | | |
| | | sql = "SELECT FSAMPLE_SIZE_WORD, " + result + |
| | | " Result FROM MES_QM_AQL1 A LEFT JOIN MES_QM_AQL3 C ON C.AQL1_ID=A.ID WHERE A.SAMPLE_SIZE_NO= '" + |
| | |
| | | |
| | | var totalCount = 0; |
| | | |
| | | string[]? lineNo = null; |
| | | |
| | | if (StringUtil.IsNotNullOrEmpty(queryObj.createUser)) |
| | | lineNo = _baseService.getUserLineNo(queryObj.createUser); |
| | | |
| | | var qsItemOqcReqs = db |
| | | .Queryable<QsItemOqcReq, MesItems, MesInvItemIns, MesInvTransaction, |
| | | RKJDaa001, Womdaa>( |
| | |
| | | JoinType.Left, c.Id == m.ItemInId && a.ItemNo == m.ItemNo, |
| | | JoinType.Left, da.Daa001 == c.RbillNo |
| | | )) |
| | | // .WhereIF(lineNo != null && lineNo.Length > 0, |
| | | // (a, b, c, ca, m, da) => lineNo.Contains(da.Daa015)) |
| | | .Where((a, b, c, ca, m, da) => lineNo.Contains(da.Daa015)) |
| | | .WhereIF(!string.IsNullOrEmpty(queryObj.id), |
| | | (a, b, c, ca, m, da) => a.Id.ToString() == queryObj.id) |
| | | .WhereIF( |