|
|
@@ -19,7 +19,7 @@ public class GetCompleteProcedureIDPDANew_WCF : IHttpHandler, IRequiresSessionSt
|
|
|
DataTable dt = conn.ExecuteDatatable(@"
|
|
|
|
|
|
SELECT pd.productiondataid
|
|
|
- ,MAX(pmax.productiondataid) pmaxproductiondataid
|
|
|
+ ,pmax.productiondataid pmaxproductiondataid
|
|
|
,pmax.procedureid COMPLETEPROCEDUREID
|
|
|
,pmax.ProcedureID
|
|
|
,pmax.ProductionLineID
|
|
|
@@ -42,6 +42,8 @@ public class GetCompleteProcedureIDPDANew_WCF : IHttpHandler, IRequiresSessionSt
|
|
|
WHERE pd.barcode = @BARCODE@
|
|
|
AND pd.valueflag = 1
|
|
|
AND pd.procedureid = 15
|
|
|
+ order by pmax.productiondataid desc
|
|
|
+ /*
|
|
|
GROUP BY pd.productiondataid
|
|
|
,pmax.procedureid
|
|
|
,pmax.ProductionLineID
|
|
|
@@ -54,7 +56,9 @@ public class GetCompleteProcedureIDPDANew_WCF : IHttpHandler, IRequiresSessionSt
|
|
|
,pmax.OrganizationID
|
|
|
,pmax.GOODSID
|
|
|
,pmax.GOODSCODE
|
|
|
- ,pmax.GOODSNAME
|
|
|
+ ,pmax.GOODSNAME*/
|
|
|
+
|
|
|
+
|
|
|
",
|
|
|
new CDAParameter("BARCODE", context.Request["barcode"])
|
|
|
);
|