Esempio n. 1
0
        // To Get the Defects according to the Login Id  ie., User

        public void AllProjectUsers()
        {
            objProj.EmployeeId = Convert.ToInt32(Session["UserAccountID"]);
            DataSet dsReport = objProj.AssignedEmpProjects();

            if (dsReport.Tables[0].Rows.Count > 0)
            {
                GVProjectEmployees.DataSource = dsReport.Tables[0];
                GVProjectEmployees.DataBind();
            }
        }
Esempio n. 2
0
        protected void ProjectName(object sender, EventArgs e)
        {
            objProj.ProjectId = Convert.ToInt32(ddlProjectName.SelectedItem.Value);
            DataSet dsReport = objProj.GetUsersPerProject();

            if (dsReport.Tables[0].Rows.Count > 0)
            {
                GVProjectEmployees.DataSource = dsReport.Tables[0];
                GVProjectEmployees.DataBind();
            }
            else
            {
                Page.ClientScript.RegisterClientScriptBlock(typeof(Page), "myscript", "alert('No Users allocated for this Application')", true);
            }
        }
Esempio n. 3
0
        protected void GVProjectEmployees_RowDeleting(object sender, GridViewDeleteEventArgs e)
        {
            //int x  = Convert.ToInt32(GVProjectEmployees.Rows[e.RowIndex].FindControl("ID").ToString());
            int index = Convert.ToInt32(e.RowIndex);

            objProj.DeleteSelectedAppEmpDetails(index);

            objProj.ProjectId = Convert.ToInt32(ddlProjectName.SelectedItem.Value);
            DataSet dsReport = objProj.GetUsersPerProject();

            if (dsReport.Tables[0].Rows.Count > 0)
            {
                GVProjectEmployees.DataSource = dsReport.Tables[0];
                GVProjectEmployees.DataBind();
            }
        }
Esempio n. 4
0
        protected void btnNew_Click(object sender, EventArgs e)
        {
            objProj.EmployeeId    = Convert.ToInt32(ddlEmployeeName.SelectedItem.Value);
            objProj.ProjectId     = Convert.ToInt32(ddlProjectName.SelectedItem.Value);
            objProj.WorkStartDate = GMWorkStartDate.DateString;
            objProj.WorkEndDate   = GMWorkEndDate.DateString;
            objProj.UserAccountId = Convert.ToInt32(Session["UserAccountID"]);
            objProj.UpdateUserPerProject();

            //objProj.ProjectId = Convert.ToInt32(ddlProjectName.SelectedItem.Value);
            DataSet dsReport = objProj.GetUsersPerProject();

            if (dsReport.Tables[0].Rows.Count > 0)
            {
                GVProjectEmployees.DataSource = dsReport.Tables[0];
                GVProjectEmployees.DataBind();
            }
        }