Ejemplo n.º 1
0
        /// <summary>
        /// Bind list of managers who assigned the tasks
        /// </summary>


        /// <summary>
        /// Fill tasks drop down for searching
        /// </summary>



        /// <summary>
        /// Fill Employee to select for those who have admin Right
        /// </summary>
        protected void fillemployee()
        {
            objuser.action    = "select";
            objuser.companyid = Session["companyid"].ToString();
            objuser.id        = "";
            ds = objuser.ManageEmployee();
            if (ds.Tables[0].Rows.Count > 0)
            {
                objgen.fillActiveInactiveCheck(ds.Tables[0], dropemployee, "username", "nid");
            }
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Bind list of managers who assigned the tasks
        /// </summary>


        /// <summary>
        /// Fill tasks drop down for searching
        /// </summary>



        /// <summary>
        /// Fill Employee to select for those who have admin Right
        /// </summary>
        protected void fillemployee()
        {
            if (ViewState["add"] == null || ViewState["add"].ToString() == "")
            {
                ListItem li = new ListItem(Session["username"].ToString(), Session["userid"].ToString());
                dropemployee.Items.Insert(0, li);
                dropemployee.SelectedIndex = 0;
                hidsemployeeid.Value       = Session["userid"].ToString() + ",";
            }
            else
            {
                objuser.action    = "select";
                objuser.companyid = Session["companyid"].ToString();
                objuser.id        = "";
                ds = objuser.ManageEmployee();
                if (ds.Tables[0].Rows.Count > 0)
                {
                    objgen.fillActiveInactiveCheck(ds.Tables[0], dropemployee, "username", "nid");
                }

                //ListItem li = new ListItem("--All Employees--", "");
                //dropemployee.Items.Insert(0, li);
                //dropemployee.SelectedIndex = 0;
            }
        }
Ejemplo n.º 3
0
        /// <summary>
        /// Bind list of managers who assigned the tasks
        /// </summary>


        /// <summary>
        /// Fill tasks drop down for searching
        /// </summary>



        /// <summary>
        /// Fill Employee to select for those who have admin Right
        /// </summary>
        protected void fillemployee()
        {
            objuser.action    = "selectbymanagerwith";
            objuser.companyid = Session["companyid"].ToString();
            objuser.managerid = Session["userid"].ToString();
            objuser.id        = "";
            ds = objuser.ManageEmployee();
            if (ds.Tables[0].Rows.Count > 0)
            {
                objgen.fillActiveInactiveCheck(ds.Tables[0], dropemployee, "username", "nid");
            }
            if (ds.Tables[0].Rows.Count == 1)
            {
                dropemployee.Items[0].Selected = true;
                divemp.Visible = false;
            }
        }
Ejemplo n.º 4
0
        /// <summary>
        /// Bind list of managers who assigned the tasks
        /// </summary>


        /// <summary>
        /// Fill tasks drop down for searching
        /// </summary>



        /// <summary>
        /// Fill Employee to select for those who have admin Right
        /// </summary>
        protected void fillemployee()
        {
            objuser.loginid      = "";
            objuser.name         = "";
            objuser.companyid    = Session["companyid"].ToString();
            objuser.action       = "select";
            objuser.activestatus = "";
            ds = objuser.ManageEmployee();

            if (ds.Tables[0].Rows.Count > 0)
            {
                objgen.fillActiveInactiveCheck(ds.Tables[0], dropemployee, "username", "nid");
            }

            //ListItem li = new ListItem("--All Employees--", "");
            //dropemployee.Items.Insert(0, li);
            //dropemployee.SelectedIndex = 0;
        }