/// <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 Add(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.Add, 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_Sign sign = new WF_Sign(); sign.AfterToDoID = todoid; sign.beforeToDoID = befortodoID; sign.IsDelete = (int)IsDelete.UnDelete; sign.State = (int)State.Enable; sign.OperationTime = DateTime.Now; sign.OperationUserCode = operationUserCode; Employee emp = empbll.getbyUserCode(operationUserCode); if (emp != null) { sign.OperationUserName = emp.UserName; } signbll.save(sign); }
public bool update(WF_Sign entity) { using (IDbConnection conn = new SqlConnection(ConfigurationManager.ConnectionStrings["wfdb"].ToString())) { conn.Open(); return(conn.Update <WF_Sign>(entity)); } }
public int save(WF_Sign entity) { using (IDbConnection conn = new SqlConnection(ConfigurationManager.ConnectionStrings["wfdb"].ToString())) { conn.Open(); object id = conn.Insert <WF_Sign>(entity); return((int)id); } }
public bool del(int id) { using (IDbConnection conn = new SqlConnection(ConfigurationManager.ConnectionStrings["wfdb"].ToString())) { conn.Open(); WF_Sign todo = conn.Get <WF_Sign>(id); todo.IsDelete = 1; return(conn.Update <WF_Sign>(todo)); } }
public bool update(WF_Sign entity) { return(dao.update(entity)); }
public int save(WF_Sign entity) { return(dao.save(entity)); }