|
|
@@ -57,7 +57,7 @@ namespace SiteCore.Handler
|
|
|
|
|
|
string poscode = CurrentUser.UserPost.Post.Code;
|
|
|
DataStruct dStruct = GetPostStruct();
|
|
|
- //jiemiUtils.ossFileDecrypt("C:\\Users\\231010\\Downloads\\产品价格表.xlsx");
|
|
|
+ //jiemiUtils.ossFileDecrypt("C:\\Users\\231010\\Downloads\\扇子.xls");
|
|
|
//apiHelper.Api_SyncOrderByTime("598825");
|
|
|
//apiHelper.API_GetWaybill("ZTO-CAINIAO-TZJK", "4233447147588233939");
|
|
|
//apiHelper.Api_SyacOrder("2460143282114312263", "yujia");
|
|
|
@@ -5125,7 +5125,7 @@ namespace SiteCore.Handler
|
|
|
commonHelper.UpdateRelationOrder(entity.ctid);
|
|
|
commonHelper.insertToBuchaForDelivery(mainEn.tid, mainEn.posCode, dcomcode, outSid);
|
|
|
CeErpSukuraData.createInfo(entity.ctid, 4);
|
|
|
- if (entity.SupplierId == 64)
|
|
|
+ if (entity.SupplierId == 64 || entity.SupplierId == 80)
|
|
|
{
|
|
|
commonHelper.sendCytExpress(exinfo);
|
|
|
}
|
|
|
@@ -6136,7 +6136,7 @@ namespace SiteCore.Handler
|
|
|
commonHelper.UpdateRelationOrder(entity.ctid);
|
|
|
CeErpSukuraData.createInfo(ctid, 4);
|
|
|
commonHelper.insertToBuchaForDelivery(mainEn.tid, mainEn.posCode, cpCode, curUseWayBillCode);
|
|
|
- if (entity.SupplierId == 64)
|
|
|
+ if (entity.SupplierId == 64 || entity.SupplierId == 80)
|
|
|
{
|
|
|
commonHelper.sendCytExpress(exinfo);
|
|
|
}
|
|
|
@@ -6176,7 +6176,7 @@ namespace SiteCore.Handler
|
|
|
exinfo.Create();
|
|
|
commonHelper.UpdateRelationOrder(entity.ctid);
|
|
|
CeErpSukuraData.createInfo(entity.ctid, 4);
|
|
|
- if (entity.SupplierId == 64)
|
|
|
+ if (entity.SupplierId == 64 || entity.SupplierId == 80)
|
|
|
{
|
|
|
commonHelper.sendCytExpress(exinfo);
|
|
|
}
|
|
|
@@ -6287,7 +6287,7 @@ namespace SiteCore.Handler
|
|
|
commonHelper.UpdateRelationOrder(ceErpTradeCell.ctid);
|
|
|
CeErpSukuraData.createInfo(ctid, 4);
|
|
|
commonHelper.insertToBuchaForDelivery(ceErpTrade.tid, ceErpTrade.posCode, cpCode, curUseWayBillCode);
|
|
|
- if (ceErpTradeCell.SupplierId == 64)
|
|
|
+ if (ceErpTradeCell.SupplierId == 64 || ceErpTradeCell.SupplierId == 80)
|
|
|
{
|
|
|
commonHelper.sendCytExpress(exinfo);
|
|
|
}
|
|
|
@@ -6395,7 +6395,7 @@ namespace SiteCore.Handler
|
|
|
exinfo.print_time = DateTime.Now;
|
|
|
exinfo.printUser = CurrentUser.UserName;
|
|
|
exinfo.Create();
|
|
|
- if (entity.SupplierId == 64)
|
|
|
+ if (entity.SupplierId == 64 || entity.SupplierId == 80)
|
|
|
{
|
|
|
commonHelper.sendCytExpress(exinfo);
|
|
|
}
|
|
|
@@ -7192,7 +7192,7 @@ namespace SiteCore.Handler
|
|
|
if (dwfinish.Length > 0) lw.Add(dwfinish);
|
|
|
|
|
|
string supplier = GetPostString("supplier");
|
|
|
- if (supplier.Length > 0) lw.Add(string.Format("SupplierName like '%{0}%'", supplier));
|
|
|
+ if (supplier.Length > 0) lw.Add(string.Format("SupplierName = '{0}'", supplier));
|
|
|
string responsible = GetPostString("responsibleman");
|
|
|
if (responsible.Length > 0) lw.Add(string.Format("AfterSaleResponsible like '%{0}%'", responsible));
|
|
|
|
|
|
@@ -11927,7 +11927,7 @@ namespace SiteCore.Handler
|
|
|
CeErpTradeResponsible.DelById(dr["ID"], 1);
|
|
|
isEnd = true;
|
|
|
}
|
|
|
- if (!Convert.IsDBNull(dr["type"]) && Convert.ToInt32(dr["type"]) == 1 && Convert.ToInt32(dr["UserId"]) == 64)
|
|
|
+ if (!Convert.IsDBNull(dr["type"]) && Convert.ToInt32(dr["type"]) == 1 && (Convert.ToInt32(dr["UserId"]) == 64 || Convert.ToInt32(dr["UserId"]) == 80))
|
|
|
{
|
|
|
needCyt = true;
|
|
|
}
|
|
|
@@ -11968,7 +11968,7 @@ namespace SiteCore.Handler
|
|
|
continue;
|
|
|
}
|
|
|
}
|
|
|
- if (!Convert.IsDBNull(dr["type"]) && Convert.ToInt32(dr["type"]) == 1 && Convert.ToInt32(dr["UserId"]) == 64)
|
|
|
+ if (!Convert.IsDBNull(dr["type"]) && Convert.ToInt32(dr["type"]) == 1 && (Convert.ToInt32(dr["UserId"]) == 64 || Convert.ToInt32(dr["UserId"]) == 80))
|
|
|
{
|
|
|
needCyt = true;
|
|
|
}
|
|
|
@@ -13532,6 +13532,29 @@ namespace SiteCore.Handler
|
|
|
writeGridDataTableJson(dStruct.TotalCount, dt);
|
|
|
}
|
|
|
|
|
|
+ public void get_pack_order_list()
|
|
|
+ {
|
|
|
+
|
|
|
+ string packId = GetPostString("packId");
|
|
|
+ if (string.IsNullOrEmpty(packId))
|
|
|
+ {
|
|
|
+ returnErrorMsg("缺少必要的参数");
|
|
|
+ return;
|
|
|
+ }
|
|
|
+
|
|
|
+ StringBuilder sql = new StringBuilder();
|
|
|
+ sql.AppendFormat("select c.ctid,c.seller_memo,i.message from CE_ErpPackDataItem i left join CE_ErpTradeCell c on i.ctid=c.ctid where i.packId = {0}", packId);
|
|
|
+ DataTable dt = DbHelper.DbConn.ExecuteDataset(sql.ToString()).Tables[0];
|
|
|
+ if (dt == null || dt.Rows.Count == 0)
|
|
|
+ {
|
|
|
+ ReturnSuccess("{" + string.Format("\"data\":{0}", Utils.Serialization.JsonString.DataTable2MiniAjaxJson(new DataTable())) + "}");
|
|
|
+ return;
|
|
|
+ }
|
|
|
+
|
|
|
+ ReturnSuccess("{" + string.Format("\"data\":{0}", Utils.Serialization.JsonString.DataTable2MiniAjaxJson(dt)) + "}");
|
|
|
+ return;
|
|
|
+ }
|
|
|
+
|
|
|
public void get_supplier_product_time_list()
|
|
|
{
|
|
|
DataStruct dStruct = GetPostStruct();
|