From e7965a19a7c7cfb8fdb28ed6cc922d523c7d4aeb Mon Sep 17 00:00:00 2001 From: wtt <1985833171@qq.com> Date: 星期五, 25 十月 2024 16:42:03 +0800 Subject: [PATCH] Merge branch 'master' of http://101.37.171.70:10101/r/MES-WEB-API --- WebAPI/Controllers/工资管理/Pay_SingleBalBillController.cs | 59 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 59 insertions(+), 0 deletions(-) diff --git "a/WebAPI/Controllers/\345\267\245\350\265\204\347\256\241\347\220\206/Pay_SingleBalBillController.cs" "b/WebAPI/Controllers/\345\267\245\350\265\204\347\256\241\347\220\206/Pay_SingleBalBillController.cs" index 8d48546..935c1b3 100644 --- "a/WebAPI/Controllers/\345\267\245\350\265\204\347\256\241\347\220\206/Pay_SingleBalBillController.cs" +++ "b/WebAPI/Controllers/\345\267\245\350\265\204\347\256\241\347\220\206/Pay_SingleBalBillController.cs" @@ -427,6 +427,65 @@ } #endregion + #region 宸ヨ祫缁撶畻鍗�(涓汉) 鎵归噺瀹℃牳 + /// <summary> + /// 瀹℃牳/鍙嶅鏍稿伐璧勭粨绠楀崟(涓汉) + /// </summary> + /// <param name="HInterID">鍗曟嵁ID</param> + /// <param name="Type">瀹℃牳(1),鍙嶅鏍�(2)</param> + /// <param name="HMaker">瀹℃牳浜�</param> + /// <returns></returns> + [Route("Pay_SingleBalBillController/CheckAll")] + [HttpGet] + public object CheckAll(string ids, int Type, string HMaker) + { + try + { + //澶勭悊瀛楃涓� + if (!string.IsNullOrEmpty(ids)) + { + long[] idArray = Array.ConvertAll(ids.Split(','), long.Parse); + // 澶勭悊idArray... + oCn.BeginTran(); + for (int i = 0; i < idArray.Length; i++) + { + objJsonResult = (json)GetPay_SingleBalBill_Check_Json(idArray[i], Type, HMaker);//瀹℃牳鎵ц + if (objJsonResult.count == 0) + { + oCn.RollBack(); + objJsonResult.Message += "绗�" + (i + 1) + "琛屽嚭鐜伴棶棰樻棤娉曠户缁畬鎴�"; + return objJsonResult; + } + } + oCn.Commit(); + } + else + { + objJsonResult.code = "0"; + objJsonResult.count = 0; + objJsonResult.Message = "璇烽�夋嫨姝g‘琛�"; + objJsonResult.data = null; + return objJsonResult; + } + + objJsonResult.code = CodeConstant.SUCCEED; + objJsonResult.count = CountConstant.SUCCEED; + objJsonResult.Message = "鎵ц鎴愬姛锛�"; + objJsonResult.data = null; + return objJsonResult; + } + catch (Exception e) + { + oCn.RollBack(); + objJsonResult.code = "0"; + objJsonResult.count = 0; + objJsonResult.Message = "瀹℃牳鎴栧弽瀹℃牳宸ヨ祫缁撶畻鍗�(涓汉)澶辫触锛�" + e.ToString(); + objJsonResult.data = null; + return objJsonResult; + } + } + #endregion + #region 宸ヨ祫缁撶畻鍗�(涓汉) 鍏抽棴/鍙嶅叧闂� /// <summary> /// 鍏抽棴/鍙嶅叧闂伐璧勭粨绠楀崟(涓汉) -- Gitblit v1.9.1