| | |
| | | } |
| | | string HSendEmp = ds.Tables[0].Rows[0]["æ´¾å人"].ToString();//æ´¾å人 |
| | | string HCopyEmp = ds.Tables[0].Rows[0]["æé人"].ToString();//æé人 |
| | | string HPlanTimes = ds.Tables[0].Rows[0]["è¯ä¼°å·¥æ¶"].ToString();//è¯ä¼°å·¥æ¶ |
| | | string HWorkTaskDate = DateTime.Parse(ds.Tables[0].Rows[0]["æ¥æ"].ToString()).ToString("yyyy-MM-dd");//å·¥ä½ä»»å¡åæ®æ¶é´ |
| | | string HSelfTimes = ds.Tables[0].Rows[0]["èªè¯å·¥æ¶"].ToString();//èªè¯å·¥æ¶ |
| | | string HProjectName = ds.Tables[0].Rows[0]["项ç®åç§°"].ToString();//项ç®åç§° |
| | | string HTaskDescription = ds.Tables[0].Rows[0]["ä»»å¡æè¿°"].ToString(); |
| | | //æå
¥å表sql |
| | | string sql = "insert into PM_WorkTaskReportBillSub" + |
| | | "(HInterID,HBillNo_bak,HEntryID,HRemark,HProjectID,HProNumber,HProjectStageID,HName,HTaskNote,HType,HRelTimes,HReportNote,HAdv,HSourceInterID,HSourceEntryID,HSourceBillType,HSourceBillNo,HFinishFlag) " + |
| | |
| | | "'," + DBUtility.ClsPub.BoolToString(HFinishFlag) + |
| | | ")"; |
| | | oCN.RunProc(sql); |
| | | string messageContext = "æ¥æ= " + DateTime.Now + ",æ±æ¥äºº=" + reportMan + ",æ±æ¥å
容=" + HReportNote + ",è¯ä¼°å·¥æ¶=" + HPlanTimes + "å°æ¶,èªè¯å·¥æ¶=" + HSelfTimes + "å°æ¶,èç¨å·¥æ¶=" + HRelTimes + "å°æ¶,ä»»å¡åç§°=" + HName + ",项ç®åç§°=" + HProjectName; ; |
| | | string messageContext = "åæ®æ¥æ= " + HWorkTaskDate + ",æ±æ¥äºº=" + reportMan + ",æ±æ¥å
容=" + HReportNote +",ä»»å¡æè¿° ="+ HTaskDescription +",宿æ è®°="+ (HFinishFlag?"æ¯":"å¦") + ",èªè¯å·¥æ¶=" + HSelfTimes + "å°æ¶,èç¨å·¥æ¶=" + HRelTimes + "å°æ¶,ä»»å¡åç§°=" + HName + ",项ç®åç§°=" + HProjectName; ; |
| | | _ = SendDingDingAsync(HSendEmp, messageContext, HCopyEmp); |
| | | } |
| | | |
| | |
| | | return response; |
| | | } |
| | | #endregion |
| | | |
| | | |
| | | |
| | | //#region èªå¨å 载页é¢è¡¨å¤´ |
| | | ///// <summary> |
| | | ///// è¿å项ç®é¶æ®µå表 |
| | | /////åæ°ï¼string sqlã |
| | | /////è¿åå¼ï¼objectã |
| | | ///// </summary> |
| | | //[Route("Xt_DefineBillMainSet/getDefineBillMainSet")] |
| | | //[HttpGet] |
| | | //public object getDefineBillMainSet(string HModName, string user) |
| | | //{ |
| | | // try |
| | | // { |
| | | // string sql = "select * from h_v_Xt_DefineBillMainSet_AutoLoadList where HModName ='" + HModName + "' and HUser ='" + user + "' order by HArrangeOrder,HArrangeOrderSub"; |
| | | // ds = oCN.RunProcReturn(sql, "Xt_DefineBillMainSet"); |
| | | |
| | | // if(ds!=null && ds.Tables[0].Rows.Count == 0) |
| | | // { |
| | | // sql = "select * from h_v_Xt_DefineBillMainSet_AutoLoadList where HModName ='" + HModName + "' and HUser ='admin' order by HArrangeOrder,HArrangeOrderSub"; |
| | | // ds = oCN.RunProcReturn(sql, "h_v_Xt_DefineBillMainSet_AutoLoadList"); |
| | | // } |
| | | |
| | | // objJsonResult.code = "1"; |
| | | // objJsonResult.count = 1; |
| | | // objJsonResult.Message = "Sucessï¼"; |
| | | // objJsonResult.data = ds.Tables[0]; |
| | | // return objJsonResult; |
| | | // } |
| | | // catch (Exception e) |
| | | // { |
| | | // objJsonResult.code = "0"; |
| | | // objJsonResult.count = 0; |
| | | // objJsonResult.Message = "Exceptionï¼" + e.ToString(); |
| | | // objJsonResult.data = null; |
| | | // return objJsonResult; |
| | | // } |
| | | //} |
| | | //#endregion |
| | | } |
| | | } |