Example #1
0
        /// <summary>
        /// method to fetch userdetails based on roleid
        /// </summary>
        /// <param name="roleID"></param>
        public void getUserByRoleID(int roleID)
        {
            WorkFlowBO   objWorkFlow     = new WorkFlowBO();
            WorkFlowBLL  WorkFlowBLLobj  = new WorkFlowBLL();
            WorkFlowList objWorkFlowList = new WorkFlowList();
            int          projectID       = Convert.ToInt32(Session["PROJECT_ID"].ToString());

            //int roleID_ = roleID;

            objWorkFlowList = WorkFlowBLLobj.getApprovalRoleUserID(projectID, roleID);

            ListItem lstItem = ApproverNameDropDownList.Items[0];

            ApproverNameDropDownList.Items.Clear();

            ApproverNameDropDownList.DataSource     = objWorkFlowList;//dt.Tables[0];
            ApproverNameDropDownList.DataTextField  = "ApproverUserName";
            ApproverNameDropDownList.DataValueField = "ApproverUserID";
            ApproverNameDropDownList.DataBind();
            ApproverNameDropDownList.Items.Insert(0, lstItem);
        }