|
|
@@ -1015,18 +1015,6 @@ namespace Dongke.IBOSS.PRD.Service.PDAModuleLogic
|
|
|
DataTable returnDs = oracleConn.GetSqlResultToDt(procsql);
|
|
|
if (returnDs != null && returnDs.Rows.Count > 0)
|
|
|
{
|
|
|
- if (returnDs.Rows[0]["PROCEDUREID"].ToString() == "16" || returnDs.Rows[0]["PROCEDUREID"].ToString() == "28"
|
|
|
- || returnDs.Rows[0]["PROCEDUREID"].ToString() == "42" || returnDs.Rows[0]["PROCEDUREID"].ToString() == "60"
|
|
|
- || returnDs.Rows[0]["PROCEDUREID"].ToString() == "61")
|
|
|
- {
|
|
|
- procsql = $@"
|
|
|
- SELECT
|
|
|
- '' AS PRODUCTIONDATAID, '' AS PROCEDUREID
|
|
|
- FROM DUAL where 1=0
|
|
|
- ";
|
|
|
- }
|
|
|
- else
|
|
|
- {
|
|
|
procsql = $@"
|
|
|
SELECT * FROM (
|
|
|
SELECT
|
|
|
@@ -1045,7 +1033,7 @@ namespace Dongke.IBOSS.PRD.Service.PDAModuleLogic
|
|
|
WHERE
|
|
|
ROWNUM=1
|
|
|
";
|
|
|
- }
|
|
|
+
|
|
|
}
|
|
|
try
|
|
|
{
|
|
|
@@ -1093,6 +1081,8 @@ namespace Dongke.IBOSS.PRD.Service.PDAModuleLogic
|
|
|
TP_PM_ProductionDataIn.Goodsid as GoodsID,
|
|
|
TP_PM_ProductionDataIn.Goodscode as GoodsCode,
|
|
|
TP_PM_ProductionDataIn.Goodsname as GoodsName,
|
|
|
+ TP_PM_ProductionDataIn.PRODUCTIONDATAID,
|
|
|
+ TP_PM_ProductionDataIn.PROCEDUREID,
|
|
|
TP_PM_ProductionDataIn.GoodsLevelID as DefectFlagID,
|
|
|
TP_PM_ProductionDataIn.Reworkprocedureid as ReworkProcedureID,
|
|
|
TP_PM_ProductionDataIn.Remarks as Remarks,
|
|
|
@@ -1122,13 +1112,18 @@ namespace Dongke.IBOSS.PRD.Service.PDAModuleLogic
|
|
|
decode(TP_PM_ProductionDataIn.IsReFire,'6','是','0','否') as IsReFireName,
|
|
|
decode(gdd.LEAKFLAG1,'1','合格','0','不合格','未检测') as LEAKFLAG1Name,
|
|
|
decode(gdd.LEAKFLAG2,'1','合格','0','不合格','未检测') as LEAKFLAG2Name,
|
|
|
- decode(gdd.LEAKFLAG3,'1','合格','0','不合格','未检测') as LEAKFLAG3Name
|
|
|
+ decode(gdd.LEAKFLAG3,'1','合格','0','不合格','未检测') as LEAKFLAG3Name,
|
|
|
+ CASE when TP_PM_ProductionDataIn.PROCEDUREID in (40,6,31,16,28,60,61) THEN
|
|
|
+ TO_CHAR('已检验 '||chr(10)||' 产品编码:'||TP_PM_ProductionDataIn.Goodscode||chr(10)||' 产品名称:'||TP_PM_ProductionDataIn.Goodsname||chr(10)||' 工序:'||TP_PM_ProductionDataIn.PROCEDURENAME||chr(10)||' 产品等级:'||TP_SYS_GOODSLEVELTYPE.GOODSLEVELTYPENAME)
|
|
|
+ else null END AS detailsMessage,
|
|
|
+ CASE when TP_PM_ProductionDataIn.PROCEDUREID in (40,6,31,16,28,60,61) THEN 99 ELSE 0 END detailsFalg
|
|
|
+
|
|
|
from TP_PM_ProductionDataIn
|
|
|
- INNER JOIN TP_PM_GROUTINGDAILYDETAIL gdd
|
|
|
- on gdd.BARCODE = TP_PM_ProductionDataIn.BARCODE
|
|
|
+ INNER JOIN TP_PM_GROUTINGDAILYDETAIL gdd on gdd.BARCODE = TP_PM_ProductionDataIn.BARCODE
|
|
|
left join TP_MST_DATADICTIONARY dd on dd.DICTIONARYID = gdd.GLAZETYPEID
|
|
|
- left join TP_MST_Logo
|
|
|
- on gdd.logoid=TP_MST_Logo.logoid
|
|
|
+ LEFT JOIN TP_PM_INPRODUCTION ON TP_PM_INPRODUCTION.BARCODE=TP_PM_ProductionDataIn.BARCODE
|
|
|
+ LEFT JOIN TP_SYS_GOODSLEVELTYPE ON TP_SYS_GOODSLEVELTYPE.GOODSLEVELTYPEID=TP_PM_ProductionDataIn.GOODSLEVELTYPEID
|
|
|
+ left join TP_MST_Logo on gdd.logoid=TP_MST_Logo.logoid
|
|
|
where
|
|
|
TP_PM_ProductionDataIn.Productiondataid=:ProductionDataID
|
|
|
";
|