|
|
@@ -334,7 +334,7 @@ namespace UAS_MES_NEW.PublicMethod
|
|
|
{
|
|
|
static DataHelper dh = new DataHelper();
|
|
|
public static int SN_SERVICE_PORT = 21610;
|
|
|
- public static int MAX_BUF_SIZE = 8192;
|
|
|
+ public static int MAX_BUF_SIZE = 16392;
|
|
|
static string ComputeSha256Hash(string input)
|
|
|
{
|
|
|
using (SHA256 sha256 = SHA256.Create())
|
|
|
@@ -457,10 +457,10 @@ namespace UAS_MES_NEW.PublicMethod
|
|
|
{
|
|
|
dynamic obj = new ExpandoObject();
|
|
|
var expandoDict = obj as IDictionary<string, object>;
|
|
|
- DataTable dt = (DataTable)dh.ExecuteSql("select NOTYPE,po_sn,ma_custpo,pd_barcode,pd_makecode,ZD_DEV_EN_NO from packagedetail left join ZTEDATA on zd_makecode=pd_makecode and pd_barcode=ZD_DEV_EN_NO left join make on ma_code=pd_makecode left join ZTE_ORDER on ma_custpo=BATCH_NO where pd_outboxcode='" + iBox + "' and RESERVE9='" + User.UserLineCode + "'", "select");
|
|
|
+ DataTable dt = (DataTable)dh.ExecuteSql("select nvl(NOTYPE,0)NOTYPE,po_sn,ma_custpo,pd_barcode,pd_makecode,ZD_DEV_EN_NO from packagedetail left join ZTEDATA on zd_makecode=pd_makecode and pd_barcode=ZD_DEV_EN_NO left join make on ma_code=pd_makecode left join ZTE_ORDER on ma_custpo=BATCH_NO where pd_outboxcode='" + iBox + "' and RESERVE9='" + User.UserLineCode + "'", "select");
|
|
|
string makecode = "";
|
|
|
string po = "";
|
|
|
- string notype = "";
|
|
|
+ int notype = 0;
|
|
|
for (int i = 0; i < dt.Rows.Count; i++)
|
|
|
{
|
|
|
string enNoKey = $"en_no{i}";
|
|
|
@@ -468,7 +468,7 @@ namespace UAS_MES_NEW.PublicMethod
|
|
|
expandoDict[enNoKey] = enNoValue;
|
|
|
makecode = dt.Rows[i]["pd_makecode"].ToString();
|
|
|
po = dt.Rows[i]["po_sn"].ToString();
|
|
|
- notype = dt.Rows[i]["NOTYPE"].ToString();
|
|
|
+ notype = int.Parse(dt.Rows[i]["NOTYPE"].ToString());
|
|
|
}
|
|
|
obj.request = "Q_wai_xiang";
|
|
|
obj.packing_num = dt.Rows.Count;
|