|
@@ -66,7 +66,6 @@ namespace SiteCore.Handler
|
|
|
|
|
|
|
|
DataStruct dStruct = GetPostStruct();
|
|
DataStruct dStruct = GetPostStruct();
|
|
|
//string a = SecurityHelper.DecryptSymmetric("BnK3+504SQ8=");
|
|
//string a = SecurityHelper.DecryptSymmetric("BnK3+504SQ8=");
|
|
|
- //jiemiUtils.ossFileDecrypt("C:\\Users\\231010\\Downloads\\修筠评价12单\\早哥不吃羊\\新建文本文档.txt");
|
|
|
|
|
//apiHelper.Api_SyncOrderByTime("598825");
|
|
//apiHelper.Api_SyncOrderByTime("598825");
|
|
|
//apiHelper.API_GetWaybill("ZTO-CAINIAO-TZJK", "4233447147588233939");
|
|
//apiHelper.API_GetWaybill("ZTO-CAINIAO-TZJK", "4233447147588233939");
|
|
|
//apiHelper.Api_SyacOrder("2460143282114312263", "yujia");
|
|
//apiHelper.Api_SyacOrder("2460143282114312263", "yujia");
|
|
@@ -12771,7 +12770,7 @@ namespace SiteCore.Handler
|
|
|
DataTable afterSaleData = DbHelper.DbConn.ExecuteDataset(sql).Tables[0];
|
|
DataTable afterSaleData = DbHelper.DbConn.ExecuteDataset(sql).Tables[0];
|
|
|
data.Merge(afterSaleData);
|
|
data.Merge(afterSaleData);
|
|
|
|
|
|
|
|
- sql = string.Format("SELECT SupplierId, ProductId, seller_memo, ProductCount, ProductName, payment, SupplierName, UnusualTime, FinishPlaceTime, OrderState, FinishDeliveryTime, AfterSaleState=0,AfterSaleReason = '',delivery=1 FROM view_ErpTradeCell WHERE orderstate = 6 AND IsSample = 0 AND SupplierId > 0 AND FinishPlaceTime > '2025-11-01 00:00:31.000' AND IsRefund <= 1 AND status = 'NOT_SHIPPED' AND LEN( ProductName ) > 0 AND SupplierId not in (86,10,105)", startMonthDate, endMonthDate);
|
|
|
|
|
|
|
+ sql = string.Format("SELECT SupplierId, ProductId, seller_memo, ProductCount, ProductName, payment, SupplierName, UnusualTime, FinishPlaceTime, OrderState, FinishDeliveryTime, AfterSaleState=0,AfterSaleReason = '',delivery=1 FROM view_ErpTradeCell WHERE orderstate = 6 AND IsSample = 0 AND SupplierId > 0 AND FinishPlaceTime > '2025-11-01 00:00:31.000' AND IsRefund <= 1 AND status = 'NOT_SHIPPED' AND LEN( ProductName ) > 0 AND SupplierId not in (86,10,105,86)", startMonthDate, endMonthDate);
|
|
|
DataTable deliveryData = DbHelper.DbConn.ExecuteDataset(sql).Tables[0];
|
|
DataTable deliveryData = DbHelper.DbConn.ExecuteDataset(sql).Tables[0];
|
|
|
data.Merge(deliveryData);
|
|
data.Merge(deliveryData);
|
|
|
//不干胶-----1,卡片-----29
|
|
//不干胶-----1,卡片-----29
|
|
@@ -13938,8 +13937,11 @@ namespace SiteCore.Handler
|
|
|
DataStruct dStruct = GetPostStruct();
|
|
DataStruct dStruct = GetPostStruct();
|
|
|
List<string> lw = new List<string>();
|
|
List<string> lw = new List<string>();
|
|
|
|
|
|
|
|
- string supplier = GetPostString("supplier");
|
|
|
|
|
- if (supplier.Length > 0) lw.Add(string.Format("supplierName = '{0}'", supplier));
|
|
|
|
|
|
|
+ string txtKey = GetPostString("txtKey");
|
|
|
|
|
+ if (txtKey.Length > 0)
|
|
|
|
|
+ {
|
|
|
|
|
+ lw.Add(string.Format("(supplierName = '{0}' or productName like '%{0}%')", txtKey));
|
|
|
|
|
+ }
|
|
|
|
|
|
|
|
|
|
|
|
|
string posTag = CurrentUser.UserPost.Post.Code;
|
|
string posTag = CurrentUser.UserPost.Post.Code;
|
|
@@ -14239,6 +14241,34 @@ namespace SiteCore.Handler
|
|
|
}
|
|
}
|
|
|
returnErrorMsg("缺少必要的参数");
|
|
returnErrorMsg("缺少必要的参数");
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
|
|
+ public void setCellTeampId()
|
|
|
|
|
+ {
|
|
|
|
|
+ string ctid = GetPostString("ctid");
|
|
|
|
|
+ string tempId = GetPostString("tempId");
|
|
|
|
|
+ if (!string.IsNullOrEmpty(ctid))
|
|
|
|
|
+ {
|
|
|
|
|
+ CeErpTradeCellExtend ceErpTradeCellExtend = CeErpTradeCellExtend.getByTid(ctid);
|
|
|
|
|
+ if (ceErpTradeCellExtend == null)
|
|
|
|
|
+ {
|
|
|
|
|
+ ceErpTradeCellExtend = new CeErpTradeCellExtend();
|
|
|
|
|
+ ceErpTradeCellExtend.ctid = ctid;
|
|
|
|
|
+ }
|
|
|
|
|
+ ceErpTradeCellExtend.tempId = tempId;
|
|
|
|
|
+ if (ceErpTradeCellExtend.ID > 0)
|
|
|
|
|
+ {
|
|
|
|
|
+ ceErpTradeCellExtend.Update();
|
|
|
|
|
+ }
|
|
|
|
|
+ else
|
|
|
|
|
+ {
|
|
|
|
|
+ ceErpTradeCellExtend.Create();
|
|
|
|
|
+ }
|
|
|
|
|
+ LogHelper.addLog(ceErpTradeCellExtend.ctid, CurrentUser.UserID, "修改模板id" + tempId, 6);
|
|
|
|
|
+ returnSuccessMsg("保存成功");
|
|
|
|
|
+ return;
|
|
|
|
|
+ }
|
|
|
|
|
+ returnErrorMsg("缺少必要的参数");
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
}
|
|
}
|