private string[] GetNextUser(string nextName) { IList <IntegratedConfig> icEnts = IntegratedConfig.FindAll(); string[] userInfo = new string[] { }; switch (nextName) { case "院办主任核稿": case "提交院办主任": case "院办主任": userInfo = new string[] { icEnts[0].YuanBanZhuRenId, icEnts[0].YuanBanZhuRenName }; break; case "提交院办文书": userInfo = new string[] { icEnts[0].YuanBanWenShuId, icEnts[0].YuanBanWenShuName }; break; case "提交院长审批": userInfo = new string[] { icEnts[0].YuanZhangId, icEnts[0].YuanZhangName }; break; case "打字员": userInfo = new string[] { icEnts[0].TypistId, icEnts[0].TypistName }; break; case "提交": userInfo = new string[] { ent.ApproveLeaderIds, ent.ApproveLeaderNames }; break; } return(userInfo); }
private void DoSelect() { IList <IntegratedConfig> scEnts = IntegratedConfig.FindAll(); if (scEnts.Count > 0) { SetFormData(scEnts[0]); } string sql = @"SELECT A.*,B.Email,B.Phone FROM BJKY_IntegratedManage..InstituteLeader as A left join BJKY_Portal..SysUser as B on A.UserId=B.UserId ORDER BY A.SortIndex"; PageState.Add("DataList", DataHelper.QueryDictList(sql)); }
private string[] GetNextUser(string nextName) { IList <IntegratedConfig> icEnts = IntegratedConfig.FindAll(); string[] userInfo = new string[] { }; switch (nextName) { case "提交院办负责人": case "院办负责人": case "同意": userInfo = new string[] { icEnts[0].YuanBanZhuRenId, icEnts[0].YuanBanZhuRenName }; break; case "提交院长": userInfo = new string[] { icEnts[0].FirstYuanZhangId, icEnts[0].FirstYuanZhangName }; break; } return(userInfo); }
private string[] GetNextUser(string nextName) { IList <IntegratedConfig> icEnts = IntegratedConfig.FindAll(); string[] userInfo = new string[] { }; switch (nextName) { case "提交主管院长": userInfo = new string[] { ent.YuanZhangId, ent.YuanZhangName }; break; case "打回院办主任": userInfo = new string[] { icEnts[0].YuanBanZhuRenId, icEnts[0].YuanBanZhuRenName }; break; case "提交院办文书": userInfo = new string[] { ent.CreateId, ent.CreateName }; break; } return(userInfo); }
private void StartFlow() { ArrayList array = new ArrayList(); string state = RequestData.Get <string>("state"); string formUrl = "/DocumentManage/ReceiveDocumentEdit.aspx?op=v&&id=" + id; Guid guid = new Guid(); if (ent.ApprovalNodeName == "院办主任") { guid = WorkFlow.StartWorkFlow(id, formUrl, "收文审批", "ReceiveDocumentI", UserInfo.UserID, UserInfo.Name); IList <IntegratedConfig> icEnts = IntegratedConfig.FindAll(); array.Add(guid + "#" + icEnts[0].YuanBanZhuRenId + "$" + icEnts[0].YuanBanZhuRenName); } else { guid = WorkFlow.StartWorkFlow(id, formUrl, "收文审批", "ReceiveDocumentII", UserInfo.UserID, UserInfo.Name); array.Add(guid + "#" + ent.YuanZhangId + "$" + ent.YuanZhangName); } PageState.Add("WorkFlowInfo", array); ent.WorkFlowState = state; ent.DoUpdate(); }
protected void Page_Load(object sender, EventArgs e) { id = RequestData.Get <string>("id"); switch (RequestActionString) { case "update": ent = GetMergedData <IntegratedConfig>(); ent.DoUpdate(); break; case "create": ent = GetPostedData <IntegratedConfig>(); ent.DoCreate(); break; case "AddLeader": IList <string> userIds = RequestData.GetList <string>("UserIds"); IList <InstituteLeader> ilEnts = new List <InstituteLeader>(); foreach (string userId in userIds) { ilEnt = new InstituteLeader(); ilEnt.UserId = userId; ilEnt.UserName = SysUser.Find(userId).Name; string sql = @"select top 1 case [Type] when 3 then ParentDeptName when 2 then ChildDeptName end as DeptName, case [Type] when 3 then ParentId when 2 then DeptId end as DeptId from View_SysUserGroup where UserId='{0}'"; sql = string.Format(sql, userId); IList <EasyDictionary> deptDics = DataHelper.QueryDictList(sql); if (deptDics.Count > 0) { ilEnt.DeptId = deptDics[0].Get <string>("DeptId"); ilEnt.DeptName = deptDics[0].Get <string>("DeptName"); } ilEnt.DoCreate(); ilEnts.Add(ilEnt); } PageState.Add("ilEnts", ilEnts); break; case "UpdateSortIndex": ilEnt = InstituteLeader.Find(RequestData.Get <string>("InstituteLeaderId")); ilEnt.SortIndex = RequestData.Get <int>("SortIndex"); ilEnt.DoUpdate(); break; case "UpdateUser": suEnt = SysUser.Find(RequestData.Get <string>("UserId")); suEnt.Email = RequestData.Get <string>("Email"); suEnt.Phone = RequestData.Get <string>("Phone"); suEnt.DoUpdate(); break; case "delete": IList <string> instituteLeaderIds = RequestData.GetList <string>("InstituteLeaderIds"); foreach (string instituteLeaderId in instituteLeaderIds) { ilEnt = InstituteLeader.Find(instituteLeaderId); ilEnt.DoDelete(); } break; default: DoSelect(); break; } }