|
|
|
@ -56,7 +56,9 @@ |
|
|
|
END as itemResultDesc, |
|
|
|
CASE WHEN b.value_type_db = 'T' THEN b.text_value |
|
|
|
WHEN b.value_type_db = 'N' THEN CONVERT(varchar, b.number_value, 126) |
|
|
|
END as textValue |
|
|
|
END as textValue, |
|
|
|
isnull(dbo.joint_name (a.site, a.bu_no, a.inspection_no, 'coordination'), '') AS operatorName, |
|
|
|
isnull(dbo.joint_id (a.site, a.bu_no, a.inspection_no, 'supplier'), '') AS responsiblePerson |
|
|
|
FROM qc_iqc_record as a |
|
|
|
LEFT JOIN qc_iqc_detailed_record b ON a.site = b.site AND a.bu_no = b.bu_no AND a.inspection_no = b.inspection_no |
|
|
|
left join part as d on a.site = d.site and a.part_no = d.PartNo |
|
|
|
@ -198,7 +200,9 @@ |
|
|
|
END as itemResultDesc, |
|
|
|
CASE WHEN b.value_type_db = 'T' THEN b.text_value |
|
|
|
WHEN b.value_type_db = 'N' THEN CONVERT(varchar, b.number_value, 126) |
|
|
|
END as textValue |
|
|
|
END as textValue, |
|
|
|
isnull(dbo.joint_name (a.site, a.bu_no, a.inspection_no, 'coordination'), '') AS operatorName, |
|
|
|
isnull(dbo.joint_id (a.site, a.bu_no, a.inspection_no, 'supplier'), '') AS responsiblePerson |
|
|
|
FROM qc_ipqc_record as a |
|
|
|
LEFT JOIN qc_ipqc_detailed_record b ON a.site = b.site AND a.bu_no = b.bu_no AND a.inspection_no = b.inspection_no |
|
|
|
left join WorkCenterResource as r on a.site = r.site and a.resource_id = r.resourceID |
|
|
|
@ -322,7 +326,9 @@ |
|
|
|
END as itemResultDesc, |
|
|
|
CASE WHEN b.value_type_db = 'T' THEN b.text_value |
|
|
|
WHEN b.value_type_db = 'N' THEN CONVERT(varchar, b.number_value, 126) |
|
|
|
END as textValue |
|
|
|
END as textValue, |
|
|
|
isnull(dbo.joint_name (a.site, a.bu_no, a.inspection_no, 'coordination'), '') AS operatorName, |
|
|
|
isnull(dbo.joint_id (a.site, a.bu_no, a.inspection_no, 'supplier'), '') AS responsiblePerson |
|
|
|
FROM qc_stock_record as a |
|
|
|
LEFT JOIN qc_stock_detailed_record b ON a.site = b.site AND a.bu_no = b.bu_no AND a.inspection_no = b.inspection_no |
|
|
|
left join part as d on a.site = d.site and a.part_no = d.PartNo |
|
|
|
@ -447,7 +453,9 @@ |
|
|
|
END as itemResultDesc, |
|
|
|
CASE WHEN b.value_type_db = 'T' THEN b.text_value |
|
|
|
WHEN b.value_type_db = 'N' THEN CONVERT(varchar, b.number_value, 126) |
|
|
|
END as textValue |
|
|
|
END as textValue, |
|
|
|
isnull(dbo.joint_name (a.site, a.bu_no, a.inspection_no, 'coordination'), '') AS operatorName, |
|
|
|
isnull(dbo.joint_id (a.site, a.bu_no, a.inspection_no, 'supplier'), '') AS responsiblePerson |
|
|
|
FROM qc_stock_record as a |
|
|
|
LEFT JOIN qc_stock_detailed_record b ON a.site = b.site AND a.bu_no = b.bu_no AND a.inspection_no = b.inspection_no |
|
|
|
left join part as d on a.site = d.site and a.part_no = d.PartNo |
|
|
|
@ -662,7 +670,9 @@ |
|
|
|
END as itemResultDesc, |
|
|
|
CASE WHEN b.value_type_db = 'T' THEN b.text_value |
|
|
|
WHEN b.value_type_db = 'N' THEN CONVERT(varchar, b.number_value, 126) |
|
|
|
END as textValue |
|
|
|
END as textValue, |
|
|
|
isnull(dbo.joint_name (a.site, a.bu_no, a.inspection_no, 'coordination'), '') AS operatorName, |
|
|
|
isnull(dbo.joint_id (a.site, a.bu_no, a.inspection_no, 'supplier'), '') AS responsiblePerson |
|
|
|
FROM qc_iqc_record as a |
|
|
|
LEFT JOIN qc_iqc_detailed_record b ON a.site = b.site AND a.bu_no = b.bu_no AND a.inspection_no = b.inspection_no |
|
|
|
left join part as d on a.site = d.site and a.part_no = d.PartNo |
|
|
|
@ -867,7 +877,9 @@ |
|
|
|
END as itemResultDesc, |
|
|
|
CASE WHEN b.value_type_db = 'T' THEN b.text_value |
|
|
|
WHEN b.value_type_db = 'N' THEN CONVERT(varchar, b.number_value, 126) |
|
|
|
END as textValue |
|
|
|
END as textValue, |
|
|
|
isnull(dbo.joint_name (a.site, a.bu_no, a.inspection_no, 'coordination'), '') AS operatorName, |
|
|
|
isnull(dbo.joint_id (a.site, a.bu_no, a.inspection_no, 'supplier'), '') AS responsiblePerson |
|
|
|
FROM qc_ipqc_record as a |
|
|
|
LEFT JOIN qc_ipqc_detailed_record b ON a.site = b.site AND a.bu_no = b.bu_no AND a.inspection_no = b.inspection_no |
|
|
|
left join WorkCenterResource as r on a.site = r.site and a.resource_id = r.resourceID |
|
|
|
@ -1060,7 +1072,9 @@ |
|
|
|
END as itemResultDesc, |
|
|
|
CASE WHEN b.value_type_db = 'T' THEN b.text_value |
|
|
|
WHEN b.value_type_db = 'N' THEN CONVERT(varchar, b.number_value, 126) |
|
|
|
END as textValue |
|
|
|
END as textValue, |
|
|
|
isnull(dbo.joint_name (a.site, a.bu_no, a.inspection_no, 'coordination'), '') AS operatorName, |
|
|
|
isnull(dbo.joint_id (a.site, a.bu_no, a.inspection_no, 'supplier'), '') AS responsiblePerson |
|
|
|
FROM qc_stock_record as a |
|
|
|
LEFT JOIN qc_stock_detailed_record b ON a.site = b.site AND a.bu_no = b.bu_no AND a.inspection_no = b.inspection_no |
|
|
|
left join part as d on a.site = d.site and a.part_no = d.PartNo |
|
|
|
@ -1257,7 +1271,9 @@ |
|
|
|
END as itemResultDesc, |
|
|
|
CASE WHEN b.value_type_db = 'T' THEN b.text_value |
|
|
|
WHEN b.value_type_db = 'N' THEN CONVERT(varchar, b.number_value, 126) |
|
|
|
END as textValue |
|
|
|
END as textValue, |
|
|
|
isnull(dbo.joint_name (a.site, a.bu_no, a.inspection_no, 'coordination'), '') AS operatorName, |
|
|
|
isnull(dbo.joint_id (a.site, a.bu_no, a.inspection_no, 'supplier'), '') AS responsiblePerson |
|
|
|
FROM qc_stock_record as a |
|
|
|
LEFT JOIN qc_stock_detailed_record b ON a.site = b.site AND a.bu_no = b.bu_no AND a.inspection_no = b.inspection_no |
|
|
|
left join part as d on a.site = d.site and a.part_no = d.PartNo |
|
|
|
|