Ejemplo n.º 1
0
    //查看固定审批流
    protected void Button2_Click(object sender, EventArgs e)
    {
        Button2.Enabled = false;
        ApprovalTable.Clear();
        if (!ApprovalTable.Columns.Contains("步骤"))
        {
            ApprovalTable.Columns.Add(new DataColumn("步骤", typeof(string)));
        }
        if (!ApprovalTable.Columns.Contains("审批人"))
        {
            ApprovalTable.Columns.Add(new DataColumn("审批人", typeof(string)));
        }
        if (!ApprovalTable.Columns.Contains("帐号"))
        {
            ApprovalTable.Columns.Add(new DataColumn("帐号", typeof(string)));
        }

        for (int i = 1; i <= int.Parse(ReadApprovalUserList(1, "totalstep")); i++)
        {
            DataRow dr = ApprovalTable.NewRow();
            dr[0] = i.ToString();
            dr[1] = GetUserName(ReadApprovalUserList(1, "stepuser" + i.ToString()));
            dr[2] = ReadApprovalUserList(1, "stepuser" + i.ToString());
            ApprovalTable.Rows.Add(dr);
        }
        BindGrid();
    }
Ejemplo n.º 2
0
    //添加确定审批人员
    protected void Button1_Click(object sender, EventArgs e)
    {
        DataRow dr = ApprovalTable.NewRow();

        //dr.ItemArray = new object[] { lableStepNum.Text, textApprovalUserNameList.Value };
        dr[0] = lableStepNum.Text;
        dr[1] = textApprovalUserNameList.Value.Split('(')[0];
        dr[2] = textApprovalUserNameList.Value.Trim().Remove(textApprovalUserNameList.Value.Trim().Length - 1).Split('(')[1];
        ApprovalTable.Rows.Add(dr);
        BindGrid();
    }