Ejemplo n.º 1
0
    public override void SetParams()
    {
        base.SetParams();
        Countersign1.Submit();

        //FlowParams.SetParams("leaders", @"founder\zhangweixing,founder\zybpmadmin");//分管领导
        //return;
        string        counterSignDeptIds = Countersign1.Result;
        StringBuilder leaders            = new StringBuilder();

        if (!string.IsNullOrEmpty(counterSignDeptIds))
        {
            string[] deptIds = counterSignDeptIds.Split(',');
            foreach (var item in deptIds)
            {
                BFPmsUserRoleDepartment bfurd = new BFPmsUserRoleDepartment();
                DataTable dt = bfurd.GetSelectRoleUser(item, "主管领导");
                foreach (DataRow dr in dt.Rows)
                {
                    leaders.AppendFormat(@"Founder\{0},", dt.Rows[0]["LoginName"].ToString());
                }
            }
        }

        FlowParams.SetParams("leaders", leaders.ToString().Trim(','));//分管领导
    }
Ejemplo n.º 2
0
    public override void SetParams()
    {
        base.SetParams();

        FlowParams.SetParams("WFM", @"founder\tangsheng");                  //流程审核人
        FlowParams.SetParams("DeptManager", GetUserLoginName("部门负责人"));     //部门负责人
        FlowParams.SetParams("CEO", GetUserLoginName("CEO"));               //CEO
        FlowParams.SetParams("StartUser", _BPMContext.CurrentUser.LoginId); //发起人
        //FlowParams.SetParams("CounterSignUsers", @"founder\yanghechun,founder\zhangweixing");//会签部门


        ///提交前所有字段需传入
        Countersign1.Submit();
    }