From bb7674ae832876c2e247fe6658b32456515ef827 Mon Sep 17 00:00:00 2001
From: chenhaozhe <gaozhechen26@gmail.com>
Date: 星期一, 04 八月 2025 22:11:11 +0800
Subject: [PATCH] 恢复误修改的文件
---
WebAPI/Controllers/SCGL/日计划管理/Xs_SendGoodsPlanBillController.cs | 54 ++++++++++--------------------------------------------
1 files changed, 10 insertions(+), 44 deletions(-)
diff --git "a/WebAPI/Controllers/SCGL/\346\227\245\350\256\241\345\210\222\347\256\241\347\220\206/Xs_SendGoodsPlanBillController.cs" "b/WebAPI/Controllers/SCGL/\346\227\245\350\256\241\345\210\222\347\256\241\347\220\206/Xs_SendGoodsPlanBillController.cs"
index 506f243..53ec03c 100644
--- "a/WebAPI/Controllers/SCGL/\346\227\245\350\256\241\345\210\222\347\256\241\347\220\206/Xs_SendGoodsPlanBillController.cs"
+++ "b/WebAPI/Controllers/SCGL/\346\227\245\350\256\241\345\210\222\347\256\241\347\220\206/Xs_SendGoodsPlanBillController.cs"
@@ -132,7 +132,7 @@
var dt = oCN.RunProcReturn($"select * from Xs_SendGoodsPlanBillMain where HSeOrderInterID in({ds.Tables[0].Rows[0]["FID"].ToString()}) and HSeOrderEntryID in({ds.Tables[0].Rows[0]["FENTRYID"].ToString()})", "Xs_SendGoodsPlanBillMain");
if (dt.Tables[0].Rows.Count > 0)
{
- tb2.Rows[i]["hmainid"] = dt.Tables[0].Rows[0]["hmainid"].ToString();
+ tb2.Rows[i]["hmainid"] = dt.Tables[0].Rows[0]["HInterID"].ToString();
}
}
@@ -332,6 +332,14 @@
}
oCN.Commit();//缁撴潫浜嬪姟
}
+ else
+ {
+ objJsonResult.code = "0";
+ objJsonResult.count = 0;
+ objJsonResult.Message = "褰撳墠鍗曟嵁涓嶅瓨鍦�,鏃犳硶鍒犻櫎锛�";
+ objJsonResult.data = null;
+ return objJsonResult;
+ }
}
objJsonResult.code = "1";
objJsonResult.count = 1;
@@ -339,50 +347,8 @@
objJsonResult.data = null;
return objJsonResult;
- //else if (DataType == 2)
- //{
- // var NumData = HInterID.Split(',');
- // //鑾峰彇绯荤粺鍙傛暟
- // string sReturn = "";
- // oSystemParameter.ShowBill(ref sReturn);
-
- // for (int i = 0; i < NumData.Length; i++)
- // {
-
- // ds = oCN.RunProcReturn("select * from h_v_JIT_Sc_WorkBillSortBillList_Left where 1=1 and hmainid=" + NumData[i], "h_v_JIT_Sc_WorkBillSortBillList");
-
- // if (ds.Tables[0].Rows.Count > 0)
- // {
- // if (ds.Tables[0].Rows[0]["鍗曟嵁鐘舵��"].ToString() != "1")
- // {
- // objJsonResult.code = "0";
- // objJsonResult.count = 0;
- // objJsonResult.Message = "褰撳墠鍗曟嵁涓嶈兘鍒犻櫎锛�";
- // objJsonResult.data = null;
- // return objJsonResult;
- // }
-
- // oCN.BeginTran();//寮�鍚簨鍔�
-
- // oCN.RunProc($"delete from Sc_WorkBillSortBillMain where HInterID={ NumData[i]}");
-
- // oCN.Commit();//缁撴潫浜嬪姟
- // }
-
- // }
- // objJsonResult.code = "1";
- // objJsonResult.count = 1;
- // objJsonResult.Message = "鍒犻櫎鎴愬姛锛�";
- // objJsonResult.data = null;
- // return objJsonResult;
- //}
-
- objJsonResult.code = "0";
- objJsonResult.count = 0;
- objJsonResult.Message = "褰撳墠鍗曟嵁涓嶅瓨鍦�,鏃犳硶鍒犻櫎锛�";
- objJsonResult.data = null;
- return objJsonResult;
+
}
catch (Exception e)
{
--
Gitblit v1.9.1