Explorar o código

复检统计表

姜永辉 hai 5 meses
pai
achega
2c4df2a26a
Modificáronse 2 ficheiros con 2 adicións e 0 borrados
  1. 1 0
      wwwroot/mes/rpt/rpt041/rpt.ashx
  2. 1 0
      wwwroot/mes/rpt/rpt041/rpt_index.html

+ 1 - 0
wwwroot/mes/rpt/rpt041/rpt.ashx

@@ -45,6 +45,7 @@ CASE
 				TO_NCHAR( COUNT( * ) ) ELSE pd.username 
 				TO_NCHAR( COUNT( * ) ) ELSE pd.username 
 			END AS PDUSERNAME,
 			END AS PDUSERNAME,
 			pd.BARCODE 
 			pd.BARCODE 
+            ,(select count(1) from tp_pm_productiondata_semicheck semc where semc.barcode =  pd.barcode group by semc.barcode) semiCount
 		FROM
 		FROM
 			(
 			(
 			SELECT
 			SELECT

+ 1 - 0
wwwroot/mes/rpt/rpt041/rpt_index.html

@@ -71,6 +71,7 @@
 					<th data-options="field:'PDUSERCODE',title:'复检工号',width:220,align:'center',sortable:false"></th>
 					<th data-options="field:'PDUSERCODE',title:'复检工号',width:220,align:'center',sortable:false"></th>
 					<th data-options="field:'PDUSERNAME',title:'复检姓名',width:220,align:'center',sortable:false"></th>
 					<th data-options="field:'PDUSERNAME',title:'复检姓名',width:220,align:'center',sortable:false"></th>
 					<th data-options="field:'BARCODE',title:'产品条码',width:220,align:'center',sortable:false"></th>
 					<th data-options="field:'BARCODE',title:'产品条码',width:220,align:'center',sortable:false"></th>
+					<th data-options="field:'SEMICOUNT',title:'复检次数',width:130,align:'center',sortable:false"></th>
 				</tr>
 				</tr>
 			</thead>
 			</thead>
 		</table>
 		</table>