protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { BindPROJECT(); if (!IsPostBack) { BindGrid(); } string sPROJECT = Request.QueryString["PROJECT"]; if (!string.IsNullOrEmpty(sPROJECT)) { hdID.Value = sPROJECT; string id = hdID.Value.ToString(); DenoChange business = new DenoChange(); var entity = business.FindDataByID(id); if (entity != null) { this.ddlPROJECT.SelectedValue = entity.PROJECT; this.txtProbes.Text = entity.Probes.ToString(); this.txtPricingProbes.Text = entity.Pricingprobes.ToString(); this.txtVotes.Text = entity.Votes.ToString(); this.txtMasks.Text = entity.Masks.ToString(); this.txtRepricing.Text = entity.Repricing.ToString(); this.txtScenes.Text = entity.ProbesperScene.ToString(); this.txtSceneRecog.Text = entity.SceneRecog.ToString(); this.txtCategoryExpert.Text = entity.Expert.ToString(); this.txtExpertVoting.Text = entity.ExpertVoting.ToString(); this.txtDcDate.Text = GeneralUtility.ConvertDisplayDateStringFormat(entity.DCDate); this.txtDcDateTo.Text = GeneralUtility.ConvertDisplayDateStringFormat(entity.DCDate); } btnSubmit.Text = "Update"; } } }
protected void gvDenoChange_SelectedIndexChanged(object sender, EventArgs e) { hdID.Value = gvDenoChange.SelectedRow.Cells[0].Text; string id = hdID.Value.ToString(); DenoChange business = new DenoChange(); var entity = business.FindDataByID(id); if (entity != null) { Response.Redirect("ProjectDenominatorsChanges.aspx?PROJECT=" + id); } }
protected void gvDenoChange_SelectedIndexChanged(object sender, EventArgs e) { hdID.Value = gvDenoChange.SelectedRow.Cells[0].Text; string id = hdID.Value.ToString(); DenoChange business = new DenoChange(); var entity = business.FindDataByID(id); if (entity != null) { this.ddlPROJECT.SelectedValue = entity.PROJECT; this.txtProbes.Text = entity.Probes.ToString(); this.txtPricingProbes.Text = entity.Pricingprobes.ToString(); this.txtVotes.Text = entity.Votes.ToString(); this.txtMasks.Text = entity.Masks.ToString(); this.txtRepricing.Text = entity.Repricing.ToString(); this.txtScenes.Text = entity.ProbesperScene.ToString(); this.txtSceneRecog.Text = entity.SceneRecog.ToString(); this.txtCategoryExpert.Text = entity.Expert.ToString(); this.txtExpertVoting.Text = entity.ExpertVoting.ToString(); this.txtDcDate.Text = GeneralUtility.ConvertDisplayDateStringFormat(entity.DCDate); this.txtDcDateTo.Text = GeneralUtility.ConvertDisplayDateStringFormat(entity.DCDate); } btnSubmit.Text = "Update"; }