|
|
@ -131,7 +131,7 @@ namespace ICSSoft.FromERP |
|
|
|
cBatch PRDT_BTCH_NO, |
|
|
|
'BOH' STCK_TYPE_CD, |
|
|
|
a.iQuantity STCK_QTY, |
|
|
|
a.iQuantity * ABS(ISNULL(d.STCK_VALUE_CNW,0)) STCK_VALUE_CNW, |
|
|
|
a.iQuantity * ABS(ISNULL(d.STCK_VALUE_CNW,0)) STCK_VALUE_CNY, |
|
|
|
(case when cInvStd is null then null else (CASE WHEN ISNUMERIC(left(cinvstd,3)) = 1 THEN REPLACE(SUBSTRING(cinvstd, 1, CHARINDEX('/', cinvstd) - 1),left(cinvstd,3),'') ELSE (CASE WHEN ISNUMERIC(left(cinvstd,2)) = 1 |
|
|
|
THEN REPLACE(SUBSTRING(cinvstd, 1, CHARINDEX('/', cinvstd) - 1),left(cinvstd,2),'') ELSE (CASE WHEN ISNUMERIC(left(cinvstd,1)) = 1 |
|
|
|
THEN REPLACE(SUBSTRING(cinvstd, 1, CHARINDEX('/', cinvstd) - 1),left(cinvstd,1),'') ELSE '' END) END) END) end) STCK_UOM, |
|
|
@ -157,7 +157,7 @@ namespace ICSSoft.FromERP |
|
|
|
soapRequestData.Append("<soapenv:Header/>"); |
|
|
|
soapRequestData.Append("<soapenv:Body>"); |
|
|
|
soapRequestData.Append("<yerp:YERP_010_OA1_MT>"); |
|
|
|
//循环数据 STCK_STD_DATE STCK_TYPE_CD STCK_VALUE_CNW
|
|
|
|
//循环数据
|
|
|
|
foreach (DataRow itemRow in vbsdt.Rows) |
|
|
|
{ |
|
|
|
soapRequestData.Append("<!--Zero or more repetitions: -->"); |
|
|
@ -169,7 +169,7 @@ namespace ICSSoft.FromERP |
|
|
|
soapRequestData.Append(itemRow["PRDT_BTCH_NO"] != null ? "<PRDT_BTCH_NO>" + itemRow["PRDT_BTCH_NO"].ToString() + "</PRDT_BTCH_NO>" : "<PRDT_BTCH_NO>" + "</PRDT_BTCH_NO>"); |
|
|
|
soapRequestData.Append(itemRow["STCK_TYPE_CD"] != null ? "<STCK_TYPE_CD>" + itemRow["STCK_TYPE_CD"].ToString() + "</STCK_TYPE_CD>" : "<STCK_TYPE_CD>" + "</STCK_TYPE_CD>"); |
|
|
|
soapRequestData.Append(itemRow["STCK_QTY"] != null ? "<STCK_QTY>" + itemRow["STCK_QTY"].ToString() + "</STCK_QTY>" : "<STCK_QTY>" + "</STCK_QTY>"); |
|
|
|
soapRequestData.Append(itemRow["STCK_VALUE_CNW"] != null ? "<STCK_VALUE_CNW>" + itemRow["STCK_VALUE_CNW"].ToString() + "</STCK_VALUE_CNW>" : "<STCK_VALUE_CNW>" + "</STCK_VALUE_CNW>"); |
|
|
|
soapRequestData.Append(itemRow["STCK_VALUE_CNY"] != null ? "<STCK_VALUE_CNY>" + itemRow["STCK_VALUE_CNY"].ToString() + "</STCK_VALUE_CNY>" : "<STCK_VALUE_CNY>" + "</STCK_VALUE_CNY>"); |
|
|
|
soapRequestData.Append(itemRow["STCK_UOM"] != null ? "<STCK_UOM>" + itemRow["STCK_UOM"].ToString() + "</STCK_UOM>" : "<STCK_UOM>" + "</STCK_UOM>"); |
|
|
|
soapRequestData.Append("<!--Optional:-->"); |
|
|
|
soapRequestData.Append(itemRow["PACK_MIN_QTY"] != null ? "<PACK_MIN_QTY>" + Regex.Replace(itemRow["PACK_MIN_QTY"].ToString(), @"[^0-9]+", "") + "</PACK_MIN_QTY>" : "<PACK_MIN_QTY>" + "</PACK_MIN_QTY>"); |
|
|
|