| | |
| | | { |
| | | |
| | | bResult = oBill.AddBill(ref DBUtility.ClsPub.sExeReturnInfo); |
| | | _ = SendDingDingAsync(oBill.omodel.HSendMan, 1, oBill.omodel.HDescription, oBill.omodel.HReceiveMan); |
| | | _ = SendDingDingAsync(oBill.omodel.HSendMan, 2, oBill.omodel.HDescription, oBill.omodel.HReceiveMan); |
| | | } |
| | | else if (refSav == "Update") |
| | | { |
| | |
| | | |
| | | } |
| | | |
| | | if (HHandleEmpID==0) //异常反馈验收单保存 将消息 发送给 接收人,指派处理人,全部抄送人 |
| | | if (HHandleEmpID==0) // |
| | | { |
| | | string HReceiveMan = HSendMan; |
| | | string[] names = HCopyMan.Split(','); |
| | |
| | | |
| | | } |
| | | concatenatedNames = string.Join(",", HNames); |
| | | HDescription = HDescription + "--已验收"; |
| | | } |
| | | else if (HHandleEmpID==1)//异常反馈签到单,异常反馈处理单 将消息 发送给 发送人,接收人 |
| | | else if (HHandleEmpID==1)//异常反馈处理单 将消息 发送给 发送人,接收人 |
| | | { |
| | | //获取发送人 接收人 |
| | | string HReceiveMan = HCopyMan; |
| | | string sql1 = "select HDingDingUserID 钉钉id from Gy_Czygl where Czymc in ('" + HSendMan + "','" + HReceiveMan + "')"; |
| | | ds = oCN.RunProcReturn(sql1, "Gy_Czygl"); |
| | | ds = oCN.RunProcReturn(sql1, "Gy_Czygl"); |
| | | List<string> HNames = new List<string>(); |
| | | for (int i = 0; i < ds.Tables[0].Rows.Count; i++) |
| | | { |
| | |
| | | |
| | | } |
| | | concatenatedNames = string.Join(",", HNames); |
| | | HDescription = HDescription + "--已签到"; |
| | | } |
| | | else |
| | | else if (HHandleEmpID == 2)//异常反馈处理单 将消息 发送给 发送人,接收人 |
| | | { |
| | | //查询指派处理人 |
| | | string sql = "select HName from Gy_Employee where HItemID='" + HHandleEmpID + "'"; |
| | | ds = oCN.RunProcReturn(sql, "Gy_Employee"); |
| | | string HHandleEmpName = ds.Tables[0].Rows[0]["HName"].ToString(); |
| | | //获取指派处理人,发送人的钉钉id |
| | | string sql1 = "select HDingDingUserID 钉钉id from Gy_Czygl where Czymc in ('" + HSendMan + "','" + HHandleEmpName + "')"; |
| | | LogService.CustomWriteLog("10参数" + sql1, "异常罚款"); |
| | | //获取发送人 接收人 |
| | | string HReceiveMan = HCopyMan; |
| | | string sql1 = "select HDingDingUserID 钉钉id from Gy_Czygl where Czymc in ('" + HSendMan + "','" + HReceiveMan + "')"; |
| | | ds = oCN.RunProcReturn(sql1, "Gy_Czygl"); |
| | | List<string> HNames = new List<string>(); |
| | | for (int i = 0; i < ds.Tables[0].Rows.Count; i++) |
| | |
| | | |
| | | } |
| | | concatenatedNames = string.Join(",", HNames); |
| | | LogService.CustomWriteLog("9参数" + concatenatedNames, "异常罚款"); |
| | | HDescription = HDescription + "--已处理"; |
| | | } |
| | | else |
| | | { |
| | | //查询指派处理人 |
| | | string sql = "select HName from Gy_Employee where HItemID='" + HHandleEmpID + "'"; |
| | | ds = oCN.RunProcReturn(sql, "Gy_Employee"); |
| | | string HHandleEmpName = ds.Tables[0].Rows[0]["HName"].ToString(); |
| | | //获取指派处理人,发送人的钉钉id |
| | | string sql1 = "select HDingDingUserID 钉钉id from Gy_Czygl where Czymc in ('" + HSendMan + "','" + HHandleEmpName + "')"; |
| | | ds = oCN.RunProcReturn(sql1, "Gy_Czygl"); |
| | | List<string> HNames = new List<string>(); |
| | | for (int i = 0; i < ds.Tables[0].Rows.Count; i++) |
| | | { |
| | | string HName = ds.Tables[0].Rows[i]["钉钉id"].ToString(); |
| | | HNames.Add(HName); |
| | | |
| | | } |
| | | concatenatedNames = string.Join(",", HNames); |
| | | HDescription = HDescription + "--已接收"; |
| | | } |
| | | |
| | | //获取企业的access_token的值 |