protected void Page_Load(object sender, EventArgs e) { if (!Page.IsPostBack) { CalDate.Visible = false; CalDate1.Visible = false; DrpStatusFill(); if (!string.IsNullOrEmpty(Request.QueryString["PROJECTTASKID"])) { ENTVWPRJPROJECTTASK ptsk = DALProjectTask.GetValueTask(Guid.Parse(Request.QueryString["PROJECTTASKID"])); if (ptsk != null) { PROJECTTASKID = ptsk.ID; PROJECTID = ptsk.PROJECTID; //Project detaila dönmek icin projectıd degerini aldık. lblProjectName.Text = ptsk.PROJECTNAME.ToString(); txtCreateDate.Text = ptsk.CREATEDATE.ToString(); txtDueDate.Text = ptsk.DUEDATE.ToString(); drpStatus.SelectedValue = ptsk.TYPEPROJECTTASKSTATUSID.ToString(); txtTaskName.Text = ptsk.NAME; txtDescription.Text = ptsk.DESCRIPTION; } else { Response.Redirect("/Prj/PRJProjectTaskResourseDetail.aspx?ID=" + PROJECTTASKID); } } else { Response.Redirect("/Prj/PRJProjects.aspx"); } } }
protected void Page_Load(object sender, EventArgs e) { if (!Page.IsPostBack)//8) Verileri tabloya doldur. { FillProjectTaskResourse(); if (!string.IsNullOrEmpty(Request.QueryString["ID"])) { ENTVWPRJPROJECTTASK prjtsk = DALProjectTask.GetValueTask(Guid.Parse(Request.QueryString["ID"]));//VWPRJPROJECTTASK tabloma giderek ordaki verileri aldım ve labellara yazdırdım. if (prjtsk != null) { PROJECTTASKID = prjtsk.ID; PROJECTID = prjtsk.PROJECTID; lblProjectName.Text = prjtsk.PROJECTNAME; lblProjectTaskName.Text = prjtsk.NAME; lblProjectCreateDate.Text = prjtsk.CREATEDATE.ToString(); lblStatus.Text = prjtsk.TYPEPROJECTTASKSTATUSNAME; lblDescription.Text = prjtsk.DESCRIPTION; } else { Response.Redirect("/Prj/PRJProjectDetail.aspx?ID=" + PROJECTTASKID); } } else { Response.Redirect("/Prj/PRJProjectDetail.aspx?ID=" + PROJECTTASKID); } } }
protected void Page_Load(object sender, EventArgs e) { if (!Page.IsPostBack) { DrpFullNameFill(); DrpProjectTaskResourseStatusFill(); if (!string.IsNullOrEmpty(Request.QueryString["PROJECTTASKID"]))//PROJECTTASKID VE GÖREV ADINI GETİRDİM GETİRDİM . { ENTVWPRJPROJECTTASK ptsk = DALProjectTask.GetValueTask(Guid.Parse(Request.QueryString["PROJECTTASKID"])); if (ptsk != null) { PROJECTID = ptsk.PROJECTID; PROJECTTASKID = ptsk.ID; lblProjectTaskName.Text = ptsk.NAME; } else { Response.Redirect("/Prj/PRJProjectTaskResourseDetail.aspx?ID=" + PROJECTTASKID); } } else { Response.Redirect("/Prj/PRJProjects.aspx"); } } }
private void FillProjectTaskResourse() { ENTVWPRJPROJECTTASK prjtsk = DALProjectTask.GetValueTask(Guid.Parse(Request.QueryString["ID"])); if (prjtsk != null) { PROJECTTASKID = prjtsk.ID; rptProjectTaskResourceDetail.DataSource = DALProjectTaskResourse.GetAllListProjectsTaskResourse(PROJECTTASKID); rptProjectTaskResourceDetail.DataBind(); } else { Response.Redirect("/Prj/PRJProjectDetail.aspx?ID=" + PROJECTTASKID); } }