Beispiel #1
0
 public void ClosedDoTaskFromID(string strModelCode, string fromID)
 {
     if (!string.IsNullOrEmpty(strModelCode) && !string.IsNullOrEmpty(fromID))
     {
         try
         {
             EngineServicesDAL dal = new EngineServicesDAL();
             //刷新缓存用户是否有新的待办
             DataTable dt = dal.SelectTaskReceiveID(strModelCode, fromID);
             if (dt != null && dt.Rows.Count > 0)
             {
                 foreach (DataRow dr in dt.Rows)
                 {
                     TaskCache.TaskCacheReflesh(dr["RECEIVEUSERID"].ToString());
                     dal.ClosedDoTaskOrderID(fromID, strModelCode, dr["RECEIVEUSERID"].ToString());
                 }
             }
         }
         catch (Exception e)
         {
             string cMessage = "Message=[" + e.Message + "]" + "<消息引擎>Source=[" + e.Source + "]<消息引擎>StackTrace=[" + e.StackTrace + "]<消息引擎>TargetSite=[" + e.TargetSite + "]" + "\r\n";
             Tracer.Debug("ClosedDoTaskFromID():" + cMessage);
         }
     }
 }