protected void gvDenoChange_SelectedIndexChanged(object sender, EventArgs e) { hdID.Value = gvDenoChange.SelectedRow.Cells[0].Text; hdProject.Value = gvDenoChange.SelectedRow.Cells[1].Text; string id = hdID.Value.ToString(); ProjectDenominators business = new ProjectDenominators(); 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.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.txtMonth.Text = GeneralUtility.ConvertDisplayMonthStringFormat(entity.DenoMonth); } divProbes.Attributes.Add("style", ""); divPricing.Attributes.Add("style", ""); divMask.Attributes.Add("style", ""); divRepricing.Attributes.Add("style", ""); divSceneRecog.Attributes.Add("style", ""); divScene.Attributes.Add("style", ""); divExpert.Attributes.Add("style", ""); ddlPROJECT.Enabled = false; btnSubmit.Text = "Update"; }
private void DisplayData() { var rateInfoEntity = new ProbesRate().FindRate(); if (rateInfoEntity != null) { this.txtRate1.Text = rateInfoEntity.Rate1.ToString(); this.txtRate2.Text = rateInfoEntity.Rate2.ToString(); this.txtRate3.Text = rateInfoEntity.Rate3.ToString(); this.txtMonth.Text = GeneralUtility.ConvertDisplayMonthStringFormat(rateInfoEntity.RatedYear); } }
private void DisplayData() { var rateInfoEntity = new AccuracyPercentRate().FindRate(); if (rateInfoEntity != null) { this.txtAccPercentRate1.Text = rateInfoEntity.AccPerRate1.ToString(); this.txtAccPercentRate2.Text = rateInfoEntity.AccPerRate2.ToString(); this.txtAccPercentRate3.Text = rateInfoEntity.AccPerRate3.ToString(); this.txtAccPerMonth.Text = GeneralUtility.ConvertDisplayMonthStringFormat(rateInfoEntity.AccPerRatedYear); } }
protected void gvAccPerRate_SelectedIndexChanged(object sender, EventArgs e) { hdID.Value = gvAccPerRate.SelectedRow.Cells[0].Text; string id = hdID.Value.ToString(); AccuracyPercentRate business = new AccuracyPercentRate(); var entity = business.FindDataByID(id); if (entity != null) { this.txtAccPercentRate1.Text = entity.AccPerRate1.ToString(); this.txtAccPercentRate2.Text = entity.AccPerRate2.ToString(); this.txtAccPercentRate3.Text = entity.AccPerRate3.ToString(); this.txtAccPerMonth.Text = GeneralUtility.ConvertDisplayMonthStringFormat(entity.AccPerRatedYear); } btnSubmit.Text = "Update"; }
protected void gvProbesRate_SelectedIndexChanged(object sender, EventArgs e) { hdID.Value = gvProbesRate.SelectedRow.Cells[0].Text; string id = hdID.Value.ToString(); ProbesRate business = new ProbesRate(); var entity = business.FindDataByID(id); if (entity != null) { this.txtRate1.Text = entity.Rate1.ToString(); this.txtRate2.Text = entity.Rate2.ToString(); this.txtRate3.Text = entity.Rate3.ToString(); this.txtMonth.Text = GeneralUtility.ConvertDisplayMonthStringFormat(entity.RatedYear); lblRange1.Text = business.getRangeLabel(1); lblRange2.Text = business.getRangeLabel(2); lblRange3.Text = business.getRangeLabel(3); } btnSubmit.Text = "Update"; }
protected void gvRecheckAcc_SelectedIndexChanged(object sender, EventArgs e) { hdID.Value = gvRecheckAcc.SelectedRow.Cells[0].Text; hdQAT.Value = gvRecheckAcc.SelectedRow.Cells[1].Text; hdCenter.Value = gvRecheckAcc.SelectedRow.Cells[4].Text; string id = hdID.Value.ToString(); AccuracyPercentage business = new AccuracyPercentage(); var entity = business.FindDataByID(id); if (entity != null) { this.ddlQAT.SelectedValue = entity.QAT; this.ddlCenterName.SelectedValue = entity.Center; this.txtAccuracy.Text = entity.AccuracyPercent.ToString(); this.txtMonth.Text = GeneralUtility.ConvertDisplayMonthStringFormat(entity.AccMonth); } divAccuracy.Attributes.Add("style", ""); ddlQAT.Enabled = false; ddlCenterName.Enabled = false; // divAccuracy.Style = ""; btnSubmit.Text = "Update"; }
private void BindGrid() { gvRecheckAcc.Columns[0].Visible = true; AccuracyPercentage Pbusiness = new AccuracyPercentage(); var list = Pbusiness.Finds(); string month = GeneralUtility.ConvertMonthYearStringFormat(txtMonth.Text.Trim()); //string currentMonth=month.Substring(0, 6); list = list.Where(x => x.AccMonth == month && x.QAT == ddlQAT.SelectedValue).ToList(); var reslist = from data in list select new { data.ID, data.QAT, data.AccuracyPercent, data.Center, AccMonth = GeneralUtility.ConvertDisplayMonthStringFormat(data.AccMonth), CreatedDate = GeneralUtility.ConvertDisplayDateStringFormat(data.CreatedDate), data.Createdby }; gvRecheckAcc.DataSource = reslist.ToList(); gvRecheckAcc.DataBind(); gvRecheckAcc.Columns[0].Visible = false; //gvRecheckAcc.Columns[4].Visible = false; gvRecheckAcc.Columns[5].Visible = false; gvRecheckAcc.Columns[6].Visible = false; }
private void BindGrid() { gvProbesRate.Columns[0].Visible = true; ProbesRate Pbusiness = new ProbesRate(); var list = Pbusiness.Find(); var reslist = from data in list select new { data.ID, data.Rate1, data.Rate2, data.Rate3, RatedYear = GeneralUtility.ConvertDisplayMonthStringFormat(data.RatedYear), CreatedDate = GeneralUtility.ConvertDisplayDateStringFormat(data.CreatedDate), data.Createdby }; gvProbesRate.DataSource = reslist.ToList(); gvProbesRate.Columns[1].HeaderText = Pbusiness.getRangeLabel(1); gvProbesRate.Columns[2].HeaderText = Pbusiness.getRangeLabel(2); gvProbesRate.Columns[3].HeaderText = Pbusiness.getRangeLabel(3); gvProbesRate.DataBind(); gvProbesRate.Columns[0].Visible = false; gvProbesRate.Columns[5].Visible = false; gvProbesRate.Columns[6].Visible = false; }
private void BindGrid() { gvDenoChange.Columns[0].Visible = true; ProjectDenominators Pbusiness = new ProjectDenominators(); var list = Pbusiness.Find(); string month = GeneralUtility.ConvertMonthYearStringFormat(txtMonth.Text.Trim()); if (ddlPROJECT.SelectedValue != "All") { list = list.Where(x => x.DenoMonth == month && x.PROJECT == ddlPROJECT.SelectedValue).ToList(); } else { list = list.Where(x => x.DenoMonth == month).ToList(); } var reslist = from data in list select new { data.ID, data.PROJECT, data.Probes, data.Pricingprobes, data.Masks, data.Repricing, data.SceneRecog, data.ProbesperScene, data.Expert, DenoMonth = GeneralUtility.ConvertDisplayMonthStringFormat(data.DenoMonth), CreatedDate = GeneralUtility.ConvertDisplayDateStringFormat(data.CreatedDate), data.Createdby }; gvDenoChange.DataSource = reslist.ToList(); gvDenoChange.DataBind(); gvDenoChange.Columns[0].Visible = false; gvDenoChange.Columns[10].Visible = false; gvDenoChange.Columns[11].Visible = false; }
private void BindGrid() { gvAccPerRate.Columns[0].Visible = true; AccuracyPercentRate Pbusiness = new AccuracyPercentRate(); var list = Pbusiness.Find(); var reslist = from data in list select new { data.ID, data.AccPerRate1, data.AccPerRate2, data.AccPerRate3, AccPerRatedYear = GeneralUtility.ConvertDisplayMonthStringFormat(data.AccPerRatedYear), CreatedDate = GeneralUtility.ConvertDisplayDateStringFormat(data.CreatedDate), data.Createdby }; gvAccPerRate.DataSource = reslist.ToList(); gvAccPerRate.DataBind(); gvAccPerRate.Columns[0].Visible = false; gvAccPerRate.Columns[5].Visible = false; gvAccPerRate.Columns[6].Visible = false; }