Esempio n. 1
0
 /// <summary>
 /// 任务节点绑定表单
 /// </summary>
 /// <param name="userContrlsId">任务节点id</param>
 /// <param name="workflowid">workflowid</param>
 /// <param name="worktaskId">worktaskId</param>
 public static void SetTaskUserCtrls(string userCtrlId, string workflowid,string worktaskId)
 {
     try
     {
         WF_WorkTaskControls wt = new WF_WorkTaskControls();
         //WF_WorkTaskControls wt = MainHelper.PlatformSqlMap.GetOneByKey<WF_WorkTaskControls>(userCtrlId);
         //if (wt == null) return;
         wt.UserControlId= userCtrlId;
         wt.WorkflowId=workflowid;
         wt.WorktaskId = worktaskId;
         wt.ControlType = "表单";
        // if (MainHelper.PlatformSqlMap.GetOneByKey<WF_WorkTaskControls>(wt)==null)
         wt.taskControlId = wt.CreateID();
         Thread.Sleep(new TimeSpan(100000));//0.1毫秒
         MainHelper.PlatformSqlMap.Create<WF_WorkTaskControls>(wt);
         //else
         //MainHelper.PlatformSqlMap.Update <WF_WorkTaskControls>(wt);
         
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }