Exemplo n.º 1
0
    protected void gvFlowConfigure_RowDataBound(object sender, GridViewRowEventArgs e)
    {
        BusinessUseCaseTableAdapter BusinessUseCaseTA = new BusinessUseCaseTableAdapter();

        if (e.Row.RowType == DataControlRowType.DataRow)
        {
            Label FlowID = (Label)e.Row.FindControl("lblFlowParticipant");
            Label lblBusinessUseCaseName = (Label)e.Row.FindControl("lblBusinessUseCaseName");
            lblBusinessUseCaseName.Text = BusinessUseCaseTA.GetBusinessUseCaseName(int.Parse(lblBusinessUseCaseName.Text)).ToString();
            if (!string.IsNullOrEmpty(FlowID.Text.Trim()))
            {
                AuthorizationDS.FlowParticipantConfigureDetailDataTable dt = AuthorizationBLL.GetFlowParticipantConfigureDetailByID(FlowID.Text);
                if (dt.Rows.Count > 0)
                {
                    string User = string.Empty;
                    foreach (AuthorizationDS.FlowParticipantConfigureDetailRow dr in dt)
                    {
                        User += dr.UserName + ",";
                    }
                    FlowID.Text = User.TrimEnd(',');
                }
                else
                {
                    FlowID.Text = "所有人";
                }
            }
        }
    }
Exemplo n.º 2
0
    protected void gvFlowConfigure_RowDataBound(object sender, GridViewRowEventArgs e)
    {
        BusinessUseCaseTableAdapter BusinessUseCaseTA= new BusinessUseCaseTableAdapter();
        if (e.Row.RowType == DataControlRowType.DataRow) {
            Label FlowID = (Label)e.Row.FindControl("lblFlowParticipant");
            Label lblBusinessUseCaseName = (Label)e.Row.FindControl("lblBusinessUseCaseName");
            lblBusinessUseCaseName.Text = BusinessUseCaseTA.GetBusinessUseCaseName(int.Parse(lblBusinessUseCaseName.Text)).ToString();
            if (!string.IsNullOrEmpty(FlowID.Text.Trim())) {
                AuthorizationDS.FlowParticipantConfigureDetailDataTable dt = AuthorizationBLL.GetFlowParticipantConfigureDetailByID(FlowID.Text);
                if (dt.Rows.Count > 0) {
                    string User = string.Empty;
                    foreach (AuthorizationDS.FlowParticipantConfigureDetailRow dr in dt) {
                        User += dr.UserName + ",";
                    }
                    FlowID.Text = User.TrimEnd(',');
                } else {
                    FlowID.Text = "所有人";
                }
            }

        }
    }