|
|
@@ -14115,6 +14115,10 @@ namespace SiteCore.Handler
|
|
|
string del = GetPostString("del");
|
|
|
if (Enum.TryParse(type, out TradeCellFile tradeCellFile))
|
|
|
{
|
|
|
+ if (tradeCellFile == TradeCellFile.AUTH_FILE)
|
|
|
+ {
|
|
|
+ ctid = tid;
|
|
|
+ }
|
|
|
if ("1".Equals(del))
|
|
|
{
|
|
|
CeErpTradeCellFile.delByCtid(tid, ctid, tradeCellFile.ToString());
|
|
|
@@ -14142,6 +14146,10 @@ namespace SiteCore.Handler
|
|
|
string type = GetPostString("type");
|
|
|
if (Enum.TryParse(type, out TradeCellFile tradeCellFile))
|
|
|
{
|
|
|
+ if (tradeCellFile == TradeCellFile.AUTH_FILE)
|
|
|
+ {
|
|
|
+ ctid = tid;
|
|
|
+ }
|
|
|
string sql = string.Format("SELECT * FROM [dbo].[CE_ErpTradeCellFile] WHERE isDel=0 and tid='{0}' and ctid='{1}' and type='{2}';", tid, ctid, tradeCellFile);
|
|
|
DataTable dt = DbHelper.DbConn.ExecuteDataset(sql).Tables[0];
|
|
|
ReturnSuccess(Utils.Serialization.JsonString.DataTable2MiniAjaxJson(dt));
|