|
@ -805,16 +805,16 @@ namespace Stone.WinBiz.JISAdmin |
|
|
public static string WriteASN_VDA(LocalDBService db ,DataSet dsData, string AsnNumber) |
|
|
public static string WriteASN_VDA(LocalDBService db ,DataSet dsData, string AsnNumber) |
|
|
{ |
|
|
{ |
|
|
DateTime dtNow = MyDateTime.GetServerDateTime(); |
|
|
DateTime dtNow = MyDateTime.GetServerDateTime(); |
|
|
|
|
|
|
|
|
string fileType = dsData.Tables[0].Rows[0]["fileType"].ToString(); |
|
|
string fileType = dsData.Tables[0].Rows[0]["fileType"].ToString(); |
|
|
DateTime Date = Convert.ToDateTime(dsData.Tables[0].Rows[0]["Date"]); |
|
|
DateTime Date = Convert.ToDateTime(dsData.Tables[0].Rows[0]["Date"]); |
|
|
|
|
|
|
|
|
string text = GetASNTemp_Standard(); |
|
|
string text = GetASNTemp_Standard(); |
|
|
|
|
|
|
|
|
string LocationCode = dsData.Tables[0].Rows[0]["LocationCode"].ToString(); |
|
|
// string LocationCode = dsData.Tables[0].Rows[0]["LocationCode"].ToString();
|
|
|
if (LocationCode == "") |
|
|
// if (LocationCode == "")
|
|
|
throw new Exception("卸货点代码不能为空"); |
|
|
// throw new Exception("卸货点代码不能为空");
|
|
|
|
|
|
|
|
|
text = text.Replace("{DATE}", dtNow.ToString("yyMMdd")); |
|
|
text = text.Replace("{DATE}", dtNow.ToString("yyMMdd")); |
|
|
text = text.Replace("{TIME}", dtNow.ToString("HHmm")); |
|
|
text = text.Replace("{TIME}", dtNow.ToString("HHmm")); |
|
|
text = text.Replace("{ASNNUMBER}", AsnNumber); |
|
|
text = text.Replace("{ASNNUMBER}", AsnNumber); |
|
@ -825,8 +825,8 @@ namespace Stone.WinBiz.JISAdmin |
|
|
text = text.Replace("{DATE2}", dtNow.ToString("yyMMdd:HHmm")); //发货时间
|
|
|
text = text.Replace("{DATE2}", dtNow.ToString("yyMMdd:HHmm")); //发货时间
|
|
|
text = text.Replace("{LINE}", dsData.Tables[0].Rows.Count.ToString()); |
|
|
text = text.Replace("{LINE}", dsData.Tables[0].Rows.Count.ToString()); |
|
|
text = text.Replace("{TOTAL}", dsData.Tables[0].Compute("SUM(Qty)", "1=1").ToString()); |
|
|
text = text.Replace("{TOTAL}", dsData.Tables[0].Compute("SUM(Qty)", "1=1").ToString()); |
|
|
text = text.Replace("{CUSTOMERCODE}", LocationCode); |
|
|
// text = text.Replace("{CUSTOMERCODE}", LocationCode);
|
|
|
|
|
|
|
|
|
string detail = ""; |
|
|
string detail = ""; |
|
|
foreach (DataRow drData in dsData.Tables[0].Rows) |
|
|
foreach (DataRow drData in dsData.Tables[0].Rows) |
|
|
{ |
|
|
{ |
|
@ -840,12 +840,12 @@ namespace Stone.WinBiz.JISAdmin |
|
|
obj[2] = drData["OrderNumber"].ToString(); |
|
|
obj[2] = drData["OrderNumber"].ToString(); |
|
|
obj[3] = drData["PackageNo"].ToString().Trim(); |
|
|
obj[3] = drData["PackageNo"].ToString().Trim(); |
|
|
line = string.Format(line, obj); |
|
|
line = string.Format(line, obj); |
|
|
|
|
|
|
|
|
detail += line; |
|
|
detail += line; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
text = text.Replace("{DETAIL}", detail); |
|
|
text = text.Replace("{DETAIL}", detail); |
|
|
|
|
|
|
|
|
List<string> lstName = WriteANSFile_Standard(text, fileType, AsnNumber); |
|
|
List<string> lstName = WriteANSFile_Standard(text, fileType, AsnNumber); |
|
|
FtpASN(lstName[0]); |
|
|
FtpASN(lstName[0]); |
|
|
|
|
|
|
|
@ -856,6 +856,7 @@ namespace Stone.WinBiz.JISAdmin |
|
|
#endregion
|
|
|
#endregion
|
|
|
|
|
|
|
|
|
return lstName[1]; |
|
|
return lstName[1]; |
|
|
|
|
|
// return "";
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
public static void WriteQAD_VDA(DataSet dsData, string AsnNumber) |
|
|
public static void WriteQAD_VDA(DataSet dsData, string AsnNumber) |
|
|