/// <summary> /// 转签 /// </summary> /// <param name="vallist"></param> /// <param name="befortodoID"></param> /// <param name="operationUserCode"></param> /// <param name="operationType"></param> /// <param name="common"></param> /// <param name="flowcontent"></param> /// <param name="node"></param> /// <param name="toNodeKey"></param> private void Redirect(Dictionary <string, string> vallist, int befortodoID, string operationUserCode, Operation operationType, string common, FlowContent flowcontent, FlowNode node, string todoUserCode) { ToDoHandle.DealTodo((int)operationType, operationUserCode, befortodoID); FlowVar var = new FlowVar(flowcontent.TmpKey, flowcontent.CurrentInstanceID); var.UpdateVal(vallist, this.CurrenUserCode); //获取当前待办人的编号 List <string> newtodis = new List <string>(); List <string> newnodekey = new List <string>(); int todoid = ToDoHandle.InsertTodo(todoUserCode.Trim(), flowcontent.CurrentInstanceID, (int)TodoIsShow.Show, befortodoID, flowcontent.TaskName, (int)TodoType.Redirect, node, node.NodeKey, CurrenUserCode); newtodis.Add(todoid.ToString()); flowcontent.CurrentTodoID = string.Join(", ", newtodis); flowcontent.CurrentNodeKey = node.NodeKey; operationbll.Insert(flowcontent.CurrentInstanceID, befortodoID, CurrenUserCode, (int)operationType, common); //插入转签历史记录 WF_Transfer trans = new WF_Transfer(); trans.AfterToDoID = todoid; trans.beforeToDoID = befortodoID; trans.IsDelete = (int)IsDelete.UnDelete; trans.State = (int)State.Enable; trans.OperationTime = DateTime.Now; trans.OperationUserCode = operationUserCode; Employee emp = empbll.getbyUserCode(operationUserCode); if (emp != null) { trans.OperationUserName = emp.UserName; } tranbll.save(trans); }
public bool update(WF_Transfer entity) { using (IDbConnection conn = new SqlConnection(ConfigurationManager.ConnectionStrings["wfdb"].ToString())) { conn.Open(); return(conn.Update <WF_Transfer>(entity)); } }
public int save(WF_Transfer entity) { using (IDbConnection conn = new SqlConnection(ConfigurationManager.ConnectionStrings["wfdb"].ToString())) { conn.Open(); object id = conn.Insert <WF_Transfer>(entity); return((int)id); } }
public bool del(int id) { using (IDbConnection conn = new SqlConnection(ConfigurationManager.ConnectionStrings["wfdb"].ToString())) { conn.Open(); WF_Transfer todo = conn.Get <WF_Transfer>(id); todo.IsDelete = 1; return(conn.Update <WF_Transfer>(todo)); } }
public bool update(WF_Transfer entity) { return(dao.update(entity)); }
public int save(WF_Transfer entity) { return(dao.save(entity)); }