From b0688c1efd606284fd5bc31f2d60a1fec9aef968 Mon Sep 17 00:00:00 2001
From: yangle <admin@YINMOU>
Date: 星期二, 08 四月 2025 11:20:50 +0800
Subject: [PATCH] 自定义菜单优化
---
WebAPI/Controllers/人事管理/异常反馈单/OA_ErrMsgBackBillController.cs | 29 ++++++++++++++---------------
1 files changed, 14 insertions(+), 15 deletions(-)
diff --git "a/WebAPI/Controllers/\344\272\272\344\272\213\347\256\241\347\220\206/\345\274\202\345\270\270\345\217\215\351\246\210\345\215\225/OA_ErrMsgBackBillController.cs" "b/WebAPI/Controllers/\344\272\272\344\272\213\347\256\241\347\220\206/\345\274\202\345\270\270\345\217\215\351\246\210\345\215\225/OA_ErrMsgBackBillController.cs"
index 8f864cf..51eca57 100644
--- "a/WebAPI/Controllers/\344\272\272\344\272\213\347\256\241\347\220\206/\345\274\202\345\270\270\345\217\215\351\246\210\345\215\225/OA_ErrMsgBackBillController.cs"
+++ "b/WebAPI/Controllers/\344\272\272\344\272\213\347\256\241\347\220\206/\345\274\202\345\270\270\345\217\215\351\246\210\345\215\225/OA_ErrMsgBackBillController.cs"
@@ -105,7 +105,8 @@
BillOld.omodel.HYear = int.Parse(BillOld.omodel.HDate.ToString("yyyy-MM-dd").Split('-')[0]);
BillOld.omodel.HPeriod = int.Parse(BillOld.omodel.HDate.ToString("yyyy-MM-dd").Split('-')[1]);
//鍗曟嵁瀛愯〃2鏁版嵁璧嬪��
- string[] HCopyManList = mainList[0].HCopyMan.ToString().Split(new string[] { "銆�" }, StringSplitOptions.RemoveEmptyEntries);
+ string HSub2List = mainList[0].HCopyMan.ToString() + "銆�" + mainList[0].HSendMan.ToString() + "銆�" + mainList[0].HReceiveMan;
+ string[] HCopyManList = HSub2List.Split(new string[] { "銆�" }, StringSplitOptions.RemoveEmptyEntries);
for(int i = 0; i < HCopyManList.Length; i++)
{
Model.ClsOA_ErrMsgBackBillSub2 oSub = new Model.ClsOA_ErrMsgBackBillSub2();
@@ -113,14 +114,12 @@
oSub.HEntryID = i+1;
oSub.HReceiveMan = HCopyManList[i];
oSub.HReadFlag = false;
+ if(oSub.HReceiveMan == mainList[0].HSendMan)
+ {
+ oSub.HReadFlag = true;
+ }
subList2.Add(oSub);
}
- Model.ClsOA_ErrMsgBackBillSub2 oSub1 = new Model.ClsOA_ErrMsgBackBillSub2();
- oSub1.HInterID = mainList[0].HInterID;
- oSub1.HEntryID = subList2.Count + 1;
- oSub1.HReceiveMan = mainList[0].HReceiveMan;
- oSub1.HReadFlag = false;
- subList2.Add(oSub1);
BillOld.DetailColl2 = subList2;
if (!BillOld.AddBill(ref DBUtility.ClsPub.sExeReturnInfo))
@@ -158,14 +157,14 @@
{
List<object> columnNameList = new List<object>();
//鏌ョ湅鏉冮檺
- //if (!DBUtility.ClsPub.Security_Log("Gy_ProjectStage_Query", 1, false, user))
- //{
- // objJsonResult.code = "0";
- // objJsonResult.count = 0;
- // objJsonResult.Message = "鏃犳煡鐪嬫潈闄愶紒";
- // objJsonResult.data = null;
- // return objJsonResult;
- //}
+ if (!DBUtility.ClsPub.Security_Log("OA_ErrMsgBackBill_Query", 1, false, user))
+ {
+ objJsonResult.code = "0";
+ objJsonResult.count = 0;
+ objJsonResult.Message = "鏃犳煡鐪嬫潈闄愶紒";
+ objJsonResult.data = null;
+ return objJsonResult;
+ }
if (sWhere == null || sWhere.Equals(""))
{
--
Gitblit v1.9.1