|
@@ -57,12 +57,12 @@ public class AddFQCInspect_WCF : IHttpHandler, IReadOnlySessionState
|
|
|
if (saveTable != null && saveTable.Rows.Count > 0)
|
|
if (saveTable != null && saveTable.Rows.Count > 0)
|
|
|
{
|
|
{
|
|
|
string barcode = saveTable.Rows[0]["BARCODE"].ToString();
|
|
string barcode = saveTable.Rows[0]["BARCODE"].ToString();
|
|
|
- if (barcode.Length >= 73)
|
|
|
|
|
|
|
+ if (barcode.Length == 8)
|
|
|
{
|
|
{
|
|
|
DataTable procedurename = conn.ExecuteDatatable(@"
|
|
DataTable procedurename = conn.ExecuteDatatable(@"
|
|
|
SELECT BARCODE
|
|
SELECT BARCODE
|
|
|
FROM TP_PM_GROUTINGDAILYDETAIL
|
|
FROM TP_PM_GROUTINGDAILYDETAIL
|
|
|
- WHERE OUTLABELCODE = @OUTLABELCODE@",
|
|
|
|
|
|
|
+ WHERE SERVICECODE = @OUTLABELCODE@",
|
|
|
new CDAParameter("OUTLABELCODE", barcode.Substring(barcode.IndexOf('-')+1))
|
|
new CDAParameter("OUTLABELCODE", barcode.Substring(barcode.IndexOf('-')+1))
|
|
|
);
|
|
);
|
|
|
barcode = procedurename.Rows[0]["BARCODE"].ToString();
|
|
barcode = procedurename.Rows[0]["BARCODE"].ToString();
|