public void DisplayCtlPlan(PartData partData, CTL_PLAN ctlPlan) { DisplayPart(partData); pnlCtlPlanHdr.Visible = true; lblPlanName_out.Text = ctlPlan.CTLPLAN_NAME; lblPlanVersion_out.Text = ctlPlan.VERSION; lblPlanDesc_out.Text = ctlPlan.CTLPLAN_DESC; lblPlanType_out.Text = WebSiteCommon.GetXlatValueLong("planType", ctlPlan.CTLPLAN_TYPE); lblPlanRef_out.Text = ctlPlan.RTE_REF; lblPlanResponsible_out.Text = ctlPlan.RESPONSIBILITY; lblEffDate_out.Text = ctlPlan.EFF_DATE.ToString(); }
public void gvOnProfileRowDataBound(object sender, System.Web.UI.WebControls.GridViewRowEventArgs e) { if ((!e.Row.RowType.ToString().Trim().Equals(System.Web.UI.WebControls.ListItemType.Header.ToString())) & (!e.Row.RowType.ToString().Trim().Equals(System.Web.UI.WebControls.ListItemType.Footer.ToString()))) { try { Image img = (Image)e.Row.Cells[0].FindControl("imgHazardType"); HiddenField hf = (HiddenField)e.Row.Cells[0].FindControl("hfMetricCategory"); if (hf.Value == "EUTL") { e.Row.Cells[0].CssClass = e.Row.Cells[1].CssClass = "energyColor"; img.ImageUrl = "~/images/status/energy.png"; } else if (hf.Value == "PROD") { img.ImageUrl = "~/images/status/inputs.png"; img.ToolTip = WebSiteCommon.GetXlatValueLong("measureCategoryEHS", hf.Value); } else { e.Row.Cells[0].CssClass = e.Row.Cells[1].CssClass = "wasteColor"; hf = (HiddenField)e.Row.Cells[0].FindControl("hfMetricRegStatus"); if (hf.Value == "HZ") { img.ImageUrl = "~/images/status/hazardous.png"; } else { img.ImageUrl = "~/images/status/waste.png"; } img.ToolTip = WebSiteCommon.GetXlatValueLong("regulatoryStatus", hf.Value); hf = (HiddenField)e.Row.Cells[0].FindControl("hfDisposalCode"); if (!string.IsNullOrEmpty(hf.Value)) { img.ToolTip += (". " + disposalList.FirstOrDefault(l => l.UN_CODE == hf.Value).DESCRIPTION); } } // e.Row.Cells[0].Attributes.Add("Style", "background: wheat;"); LinkButton lnk = (LinkButton)e.Row.Cells[0].FindControl("lnkMetricCD"); LinkButton lnk2 = (LinkButton)e.Row.Cells[0].FindControl("lnkMetricName"); lnk.ToolTip = lnk2.ToolTip = WebSiteCommon.GetXlatValue("measureCategoryEHS", hf.Value); } catch { } } }
private void SetupPage() { PART part = (PART)SessionManager.Part; ctlPlan = CtlPlanMgr.LookupControlPlan(SessionManager.Part.PART_ID); if (ctlPlan != null) { // part summary area SetFindControlValue("lblCompany_out", hfBase, SessionManager.SessionContext.ActiveCompany().COMPANY_NAME); SetFindControlValue("lblPartNumFull_out", hfBase, SQMModelMgr.GetFullPartNumber(part)); SetFindControlValue("lblPartName_out", hfBase, part.PART_NAME); SetFindControlValue("lblPlanName_out", hfBase, ctlPlan.CTLPLAN_NAME); SetFindControlValue("lblPlanVersion_out", hfBase, ctlPlan.VERSION); SetFindControlValue("lblPlanDesc_out", hfBase, ctlPlan.CTLPLAN_DESC); SetFindControlValue("lblPlanType_out", hfBase, WebSiteCommon.GetXlatValueLong("planType", ctlPlan.CTLPLAN_TYPE)); SetFindControlValue("lblPlanRef_out", hfBase, ctlPlan.RTE_REF); SetFindControlValue("lblPlanResponsible_out", hfBase, ctlPlan.RESPONSIBILITY); SetFindControlValue("lblEffDate_out", hfBase, ctlPlan.EFF_DATE.ToString()); DoCtlPlanSteps(); } }
public void gvIssueList_OnRowDataBound(object sender, System.Web.UI.WebControls.GridViewRowEventArgs e) { if ((!e.Row.RowType.ToString().Trim().Equals(System.Web.UI.WebControls.ListItemType.Header.ToString())) & (!e.Row.RowType.ToString().Trim().Equals(System.Web.UI.WebControls.ListItemType.Footer.ToString()))) { try { Label lbl; HiddenField hf = (HiddenField)e.Row.Cells[0].FindControl("hfIssueID"); LinkButton lnk = (LinkButton)e.Row.Cells[0].FindControl("lnkViewIssue_out"); lnk.Text = WebSiteCommon.FormatID(Convert.ToInt32(hf.Value), 6); lbl = (Label)e.Row.Cells[0].FindControl("lblDisposition_Out"); string tempDisposition = lbl.Text; lbl.Text = WebSiteCommon.GetXlatValue("NCDisposition", lbl.Text); lnk = (LinkButton)e.Row.Cells[0].FindControl("lnkIssueDate_Out"); lnk.Text = WebSiteCommon.LocalTime(Convert.ToDateTime(lnk.Text), SessionManager.UserContext.TimeZoneID).ToShortDateString(); lnk = (LinkButton)e.Row.Cells[0].FindControl("lnkIssueTask_out"); lnk.Text = WebSiteCommon.GetXlatValueLong("taskType", lnk.Text); TASK_STATUS task = new TASK_STATUS(); hf = (HiddenField)e.Row.Cells[0].FindControl("hfTaskStatus"); task.TASK_ID = Convert.ToDecimal(hf.Value); hf = (HiddenField)e.Row.Cells[0].FindControl("hfTaskDueDate"); task.DUE_DT = WebSiteCommon.LocalTime(Convert.ToDateTime(hf.Value), SessionManager.UserContext.TimeZoneID); Image img = (Image)e.Row.Cells[0].FindControl("imgTaskStatus"); TaskStatus status = TaskMgr.CalculateTaskStatus(task); img.ImageUrl = TaskMgr.TaskStatusImage(status); img.ToolTip = status.ToString(); } catch { } } }
public PROB_DEFINE UpdateProblemDefinition(PROB_DEFINE prDefine) { foreach (INCIDENT incident in this.IncidentList) { if (this.ProbCase.PROBCASE_TYPE == "QI") { QualityIssue qualityIssue = new QualityIssue().Load(incident.INCIDENT_ID); string str = ""; // who reported the problem str = incident.CREATE_BY; if (incident.CREATE_PERSON != null && incident.CREATE_PERSON > 0) { PERSON person = SQMModelMgr.LookupPerson((decimal)incident.CREATE_PERSON, ""); COMPANY company = SQMModelMgr.LookupCompany(person.COMPANY_ID); str += " (" + company.COMPANY_NAME + ")"; } if (string.IsNullOrEmpty(prDefine.WHO_IS) || !prDefine.WHO_IS.Contains(str)) { if (!string.IsNullOrEmpty(prDefine.WHO_IS)) { prDefine.WHO_IS += ", "; } prDefine.WHO_IS += str; } // where did the problem occur str = qualityIssue.DetectedLocation.Company.COMPANY_NAME; if (incident.DETECT_BUS_ORG_ID != null && incident.DETECT_BUS_ORG_ID > 0) { str += (" / " + qualityIssue.DetectedLocation.BusinessOrg.ORG_NAME); } if (incident.DETECT_PLANT_ID != null && incident.DETECT_PLANT_ID > 0) { str += (" / " + qualityIssue.DetectedLocation.Plant.PLANT_NAME); } if (string.IsNullOrEmpty(prDefine.WHERE_IS) || !prDefine.WHERE_IS.Contains(str)) { if (!string.IsNullOrEmpty(prDefine.WHERE_IS)) { prDefine.WHERE_IS += ", "; } prDefine.WHERE_IS += str; } // where detected str = WebSiteCommon.GetXlatValueLong("issueResponsible", qualityIssue.IssueOccur.SOURCE); if (string.IsNullOrEmpty(prDefine.DETECTED_IS) || !prDefine.DETECTED_IS.Contains(str)) { if (!string.IsNullOrEmpty(prDefine.DETECTED_IS)) { prDefine.DETECTED_IS += ", "; } prDefine.DETECTED_IS += str; } // who or where is impacted if (!string.IsNullOrEmpty(prDefine.IMPACT_IS)) { prDefine.IMPACT_IS += ", "; } prDefine.IMPACT_IS += WebSiteCommon.GetXlatValueLong("issueResponsible", qualityIssue.IssueOccur.SOURCE); // when did the problem occur str = WebSiteCommon.FormatDateString(WebSiteCommon.LocalTime(incident.INCIDENT_DT, SessionManager.UserContext.TimeZoneID), false); if (string.IsNullOrEmpty(prDefine.WHEN_IS) || !prDefine.WHEN_IS.Contains(str)) { if (!string.IsNullOrEmpty(prDefine.WHEN_IS)) { prDefine.WHEN_IS += ", "; } prDefine.WHEN_IS += str; } // what is the problem if (!string.IsNullOrEmpty(prDefine.WHAT_IS)) { prDefine.WHAT_IS += ", "; } prDefine.WHAT_IS += (" " + qualityIssue.Partdata.Part.PART_NUM + "(" + qualityIssue.Partdata.Part.PART_NAME + ")"); // how many how often detected double qty = 0; if (!string.IsNullOrEmpty(prDefine.HOW_MANY)) { qty = double.Parse(prDefine.HOW_MANY); } foreach (QI_OCCUR_ITEM item in qualityIssue.IssueOccur.QI_OCCUR_ITEM) { qty += Convert.ToDouble(item.INSPECT_NC_QTY); foreach (QI_OCCUR_NC sample in item.QI_OCCUR_NC) { if (!string.IsNullOrEmpty(prDefine.NC_IS)) { prDefine.NC_IS += ", "; } NONCONFORMANCE nc = SQMResourcesMgr.LookupNonconf(this.Entities, (decimal)sample.NONCONF_ID, ""); if (nc != null) { prDefine.NC_IS += (qualityIssue.IssueOccur.OCCUR_DESC + ": " + nc.NONCONF_DESC); } } } prDefine.HOW_MANY = qty.ToString(); str = qualityIssue.IssueOccur.OCCUR_DESC; if (string.IsNullOrEmpty(prDefine.WHY_IS) || !prDefine.WHY_IS.Contains(str)) { if (!string.IsNullOrEmpty(prDefine.WHY_IS)) { prDefine.WHY_IS += ", "; } prDefine.WHY_IS += str; } prDefine.URGENT_IS = prDefine.MEASURE_IS = prDefine.OFTEN_IS = "TBD"; } } return(prDefine); }
public void gvCtlPlan_OnRowDataBound(object sender, System.Web.UI.WebControls.GridViewRowEventArgs e) { if ((!e.Row.RowType.ToString().Trim().Equals(System.Web.UI.WebControls.ListItemType.Header.ToString())) & (!e.Row.RowType.ToString().Trim().Equals(System.Web.UI.WebControls.ListItemType.Footer.ToString()))) { try { HiddenField hf = (HiddenField)e.Row.Cells[0].FindControl("hfSampleRate"); DropDownList ddl = (DropDownList)e.Row.Cells[0].FindControl("ddlSampleRate"); ddl.Items.AddRange(WebSiteCommon.PopulateDropDownListItems("sampleRate")); if (!String.IsNullOrEmpty(hf.Value)) { ddl.SelectedValue = hf.Value; } hf = (HiddenField)e.Row.Cells[0].FindControl("hfSampleUnit"); ddl = (DropDownList)e.Row.Cells[0].FindControl("ddlSampleUnit"); ddl.Items.AddRange(WebSiteCommon.PopulateDropDownListItems("sampleUnit")); if (!String.IsNullOrEmpty(hf.Value)) { ddl.SelectedValue = hf.Value; } Label lbl; hf = (HiddenField)e.Row.Cells[0].FindControl("hfStepInstructions"); Image img = (Image)e.Row.Cells[0].FindControl("imgStepType"); img.ToolTip = hf.Value; hf = (HiddenField)e.Row.Cells[0].FindControl("hfPlanStepLocation"); if (!string.IsNullOrEmpty(hf.Value)) { decimal plantID = Convert.ToDecimal(hf.Value); PLANT plant = SQMModelMgr.LookupPlant(entities, plantID, ""); if (plant != null) { img = (Image)e.Row.Cells[0].FindControl("imgPlanStepLocation"); if (plant.COMPANY_ID == SessionManager.SessionContext.ActiveCompany().COMPANY_ID) { img.ImageUrl = "~/images/icon_customer2.gif"; img.ToolTip = ""; // mt - todo: remove constant } else { img.ImageUrl = "~/images/icon_supplier2.gif"; img.ToolTip = "Supplier"; // mt - todo: remove constant } } } lbl = (Label)e.Row.Cells[0].FindControl("lblSampleUnit_out"); lbl.Text = WebSiteCommon.GetXlatValueLong("sampleUnit", lbl.Text); lbl = (Label)e.Row.Cells[0].FindControl("lblSampleRate_out"); lbl.Text = WebSiteCommon.GetXlatValueLong("sampleRate", lbl.Text); lbl = (Label)e.Row.Cells[0].FindControl("lblPlanStepID"); GridView gv = (GridView)e.Row.Cells[0].FindControl("gvMeasureGrid"); CTL_PLAN_STEP step = ctlPlanMgr.CtlPlan.CTL_PLAN_STEP.First(s => s.CTLPLANSTEP_ID == Convert.ToInt32(lbl.Text)); gv.DataSource = step.CTL_PLAN_MEASURE; gv.DataBind(); gv = (GridView)e.Row.Cells[0].FindControl("gvMethodGrid"); gv.DataSource = step.CTL_PLAN_MEASURE; gv.DataBind(); } catch { } } }
public void gvOnProfileRowDataBound(object sender, System.Web.UI.WebControls.GridViewRowEventArgs e) { if ((!e.Row.RowType.ToString().Trim().Equals(System.Web.UI.WebControls.ListItemType.Header.ToString())) & (!e.Row.RowType.ToString().Trim().Equals(System.Web.UI.WebControls.ListItemType.Footer.ToString()))) { try { CheckBox cb; Label lbl; Image img = (Image)e.Row.Cells[0].FindControl("imgHazardType"); HiddenField hf = (HiddenField)e.Row.Cells[0].FindControl("hfMetricPrompt"); if (!string.IsNullOrEmpty(hf.Value)) { lbl = (Label)e.Row.Cells[0].FindControl("lblMetricPrompt"); lbl.Visible = true; lbl.Text = "<br>" + hf.Value; } hf = (HiddenField)e.Row.Cells[0].FindControl("hfMetricCategory"); if (hf.Value == "ENGY" || hf.Value == "EUTL") { e.Row.Cells[0].CssClass = e.Row.Cells[1].CssClass = "energyColor"; img.ImageUrl = "~/images/status/energy.png"; } else if (hf.Value == "PROD" || hf.Value == "SAFE" || hf.Value == "FACT") { img.ImageUrl = "~/images/status/inputs.png"; img.ToolTip = WebSiteCommon.GetXlatValueLong("measureCategoryEHS", hf.Value); } else { e.Row.Cells[0].CssClass = e.Row.Cells[1].CssClass = "wasteColor"; hf = (HiddenField)e.Row.Cells[0].FindControl("hfMetricRegStatus"); if (hf.Value == "HZ") { img.ImageUrl = "~/images/status/hazardous.png"; } else { img.ImageUrl = "~/images/status/waste.png"; } img.ToolTip = WebSiteCommon.GetXlatValueLong("regulatoryStatus", hf.Value); hf = (HiddenField)e.Row.Cells[0].FindControl("hfDisposalCode"); if (!string.IsNullOrEmpty(hf.Value)) { img.ToolTip += (". " + SessionManager.DisposalCodeList.FirstOrDefault(l => l.UN_CODE == hf.Value).DESCRIPTION); } } // e.Row.Cells[0].Attributes.Add("Style", "background: wheat;"); hf = (HiddenField)e.Row.Cells[0].FindControl("hfMetricStatus"); if (hf.Value == "I") { img = (Image)e.Row.Cells[0].FindControl("imgStatus"); img.ImageUrl = "/images/defaulticon/16x16/no.png"; img.Visible = true; cb = (CheckBox)e.Row.Cells[0].FindControl("cbMetricRequired"); cb.Visible = false; } LinkButton lnk = (LinkButton)e.Row.Cells[0].FindControl("lnkMetricCD"); LinkButton lnk2 = (LinkButton)e.Row.Cells[0].FindControl("lnkMetricName"); lnk.ToolTip = lnk2.ToolTip = WebSiteCommon.GetXlatValue("measureCategoryEHS", hf.Value); cb = (CheckBox)e.Row.Cells[0].FindControl("cbMetricRequired"); hf = (HiddenField)e.Row.Cells[0].FindControl("hfMetricRequired"); if (!string.IsNullOrEmpty(hf.Value)) { try { cb.Checked = Convert.ToBoolean(hf.Value); } catch { } } lbl = (Label)e.Row.Cells[0].FindControl("lblInvoiceType"); hf = (HiddenField)e.Row.Cells[0].FindControl("hfMetricCategory"); if (hf.Value == "SAFE" || hf.Value == "PROD" || hf.Value == "FACT") { lbl.Text = ""; } else { if (lbl.Text == "True") { lbl.Text = WebSiteCommon.GetXlatValue("costType", "CREDIT", "short"); } else { lbl.Text = WebSiteCommon.GetXlatValue("costType", "COST", "short"); } } lbl = (Label)e.Row.Cells[0].FindControl("lblInvoiceUOM"); if (!string.IsNullOrEmpty(lbl.Text)) { decimal uomID = Convert.ToDecimal(lbl.Text); lbl.Text = SessionManager.UOMList.Where(l => l.UOM_ID == uomID).Select(u => u.UOM_NAME).FirstOrDefault().ToString(); } } catch { } } }
public void rptProfilePeriod_OnItemDataBound(object sender, RepeaterItemEventArgs e) { if (e.Item.ItemType == ListItemType.AlternatingItem || e.Item.ItemType == ListItemType.Item) { try { EHS_PROFILE_MEASURE metric = (EHS_PROFILE_MEASURE)e.Item.DataItem; Label lbl; LinkButton lnk; TextBox tb; //bool enabled = LocalProfile().InputPeriod.IsPeriodInputClosed(metric.PRMR_ID) == true ? false : true; bool enabled = true; if (string.IsNullOrEmpty(metric.MEASURE_PROMPT)) { lbl = (Label)e.Item.FindControl("lblMetricName"); lbl.Text = metric.EHS_MEASURE.MEASURE_NAME.Trim(); } ImageButton ib = (ImageButton)e.Item.FindControl("ibAddInput"); ib.Enabled = enabled; if (enabled) { ib.ImageUrl = "~/images/plus.png"; } else { ib.ImageUrl = "~/images/status/checked.png"; } Image img = (Image)e.Item.FindControl("imgHazardType"); System.Web.UI.HtmlControls.HtmlTableCell cell1 = (System.Web.UI.HtmlControls.HtmlTableCell)e.Item.FindControl("tdMetricName"); if (metric.EHS_MEASURE.MEASURE_CATEGORY == "ENGY" || metric.EHS_MEASURE.MEASURE_CATEGORY == "EUTL") { cell1.Attributes.Add("Class", "rptInputTable energyColor"); img.ImageUrl = "~/images/status/energy.png"; } else if (metric.EHS_MEASURE.MEASURE_CATEGORY == "PROD" || metric.EHS_MEASURE.MEASURE_CATEGORY == "SAFE" || metric.EHS_MEASURE.MEASURE_CATEGORY == "FACT") { img.ImageUrl = "~/images/status/inputs.png"; img.ToolTip = WebSiteCommon.GetXlatValueLong("measureCategoryEHS", metric.EHS_MEASURE.MEASURE_CATEGORY); ib = (ImageButton)e.Item.FindControl("ibAddInput"); ib.Visible = false; } else { cell1.Attributes.Add("Class", "rptInputTable wasteColor"); if (metric.REG_STATUS == "HZ") { img.ImageUrl = "~/images/status/hazardous.png"; } else { img.ImageUrl = "~/images/status/waste.png"; } img.ToolTip = WebSiteCommon.GetXlatValueLong("regulatoryStatus", metric.REG_STATUS); if (!string.IsNullOrEmpty(metric.UN_CODE)) { img.ToolTip += (". " + SessionManager.DisposalCodeList.FirstOrDefault(l => l.UN_CODE == metric.UN_CODE).DESCRIPTION); } } cell1 = (System.Web.UI.HtmlControls.HtmlTableCell)e.Item.FindControl("tdMetricReqd"); if ((bool)metric.IS_REQUIRED) { cell1.Attributes.Add("Class", "rptInputTable required"); } if (LocalProfile().InputPeriod.CountPeriodInputList(metric.PRMR_ID) == 0) { LocalProfile().CreatePeriodInput(LocalProfile().InputPeriod, metric, false); } Repeater rpt = (Repeater)e.Item.FindControl("rptProfileInput"); rpt.DataSource = LocalProfile().InputPeriod.GetPeriodInputList(metric.PRMR_ID); rpt.DataBind(); } catch { } } }
protected void btnVerify_Click(object sender, EventArgs e) { // retrieve the email from SQM_ACCESS lblForgotInvalidEmail.Visible = false; lblForgotNotSent.Visible = false; lblForgotNotUpdated.Visible = false; string strength = SQMSettings.SelectSettingByCode(new PSsqmEntities(), "COMPANY", "TASK", "PasswordComplexity").VALUE; string strEmailCompanyName = SQMSettings.SelectSettingByCode(new PSsqmEntities(), "MAIL", "TASK", "MailFromSystem").VALUE; int msg = WebSiteCommon.RecoverPassword(tbEmail.Text.ToString(), "", strEmailCompanyName + " " + lblForgotPasswordEmailSubject.Text.ToString(), lblForgotPasswordEmailBody1a.Text.ToString() + strEmailCompanyName + lblForgotPasswordEmailBody1b.Text.ToString(), lblForgotPasswordEmailBody2.Text.ToString(), "<br><br>" + WebSiteCommon.GetXlatValueLong("passwordComplexity", strength) + "<br><br>" + lblForgotPasswordEmailBody3.Text.ToString()); switch (msg) { case 10: tbEmail.Focus(); lblForgotInvalidEmail.Visible = true; BindPwdForgot(); break; case 20: tbEmail.Focus(); lblForgotNotSent.Visible = true; BindPwdForgot(); break; case 30: tbEmail.Focus(); lblForgotNotUpdated.Visible = true; BindPwdForgot(); break; default: ScriptManager.RegisterStartupScript(this, GetType(), "showalert", "AlertPostback('" + hfForgotPasswordSent.Value + "','login');", true); break; } }
public void gvNotifyList_OnRowDataBound(object sender, System.Web.UI.WebControls.GridViewRowEventArgs e) { if ((!e.Row.RowType.ToString().Trim().Equals(System.Web.UI.WebControls.ListItemType.Header.ToString())) & (!e.Row.RowType.ToString().Trim().Equals(System.Web.UI.WebControls.ListItemType.Footer.ToString()))) { RadComboBox rdl1, rdl2; System.Web.UI.WebControls.HiddenField hfField = new HiddenField(); try { HiddenField hf = (HiddenField)e.Row.Cells[0].FindControl("hfScope"); Label lbl = (Label)e.Row.Cells[0].FindControl("lblScope"); lbl.Text = WebSiteCommon.GetXlatValue("taskRecordType", hf.Value); lbl = (Label)e.Row.Cells[0].FindControl("lblScopeDesc"); lbl.Text = WebSiteCommon.GetXlatValueLong("taskRecordType", hf.Value); TaskRecordType scope = (TaskRecordType)Enum.Parse(typeof(TaskRecordType), hf.Value, true); if (scope == TaskRecordType.InternalQualityIncident || scope == TaskRecordType.CustomerQualityIncident || scope == TaskRecordType.SupplierQualityIncident || scope == TaskRecordType.HealthSafetyIncident || scope == TaskRecordType.PreventativeAction) { rdl1 = (RadComboBox)e.Row.Cells[0].FindControl("ddlNotify1"); hf = (HiddenField)e.Row.Cells[0].FindControl("hfNotify1"); if (scope == TaskRecordType.HealthSafetyIncident || scope == TaskRecordType.PreventativeAction) { SQMBasePage.SetPersonList(rdl1, SQMModelMgr.FilterPersonListByAppContext(staticPersonList, "EHS"), "", 20); } else { SQMBasePage.SetPersonList(rdl1, SQMModelMgr.FilterPersonListByAppContext(staticPersonList, "SQM"), "", 20); } SQMBasePage.DisplayControlValue(rdl1, hf.Value, PageUseMode.EditEnabled, ""); rdl1.Visible = true; rdl2 = (RadComboBox)e.Row.Cells[0].FindControl("ddlNotify2"); hf = (HiddenField)e.Row.Cells[0].FindControl("hfNotify2"); if (scope == TaskRecordType.HealthSafetyIncident || scope == TaskRecordType.PreventativeAction) { SQMBasePage.SetPersonList(rdl2, SQMModelMgr.FilterPersonListByAppContext(staticPersonList, "EHS"), "", 20); } else { SQMBasePage.SetPersonList(rdl2, SQMModelMgr.FilterPersonListByAppContext(staticPersonList, "SQM"), "", 20); } SQMBasePage.DisplayControlValue(rdl2, hf.Value, PageUseMode.EditEnabled, ""); rdl2.Visible = true; } if (scope == TaskRecordType.ProfileInput || scope == TaskRecordType.ProfileInputApproval || scope == TaskRecordType.HealthSafetyIncident || scope == TaskRecordType.PreventativeAction || scope == TaskRecordType.ProblemCase) { SETTINGS sets = SQMSettings.GetSetting("COMPANY", "ESCALATEANYUSER"); rdl1 = (RadComboBox)e.Row.Cells[0].FindControl("ddlEscalate1"); hf = (HiddenField)e.Row.Cells[0].FindControl("hfEscalate1"); SQMBasePage.SetPersonList(rdl1, staticPersonList.Where(l => l.RCV_ESCALATION == true || (sets != null && sets.VALUE.ToUpper() == "Y")).ToList(), "", 20); SQMBasePage.DisplayControlValue(rdl1, hf.Value, PageUseMode.EditEnabled, ""); rdl1.Visible = true; rdl2 = (RadComboBox)e.Row.Cells[0].FindControl("ddlEscalate2"); hf = (HiddenField)e.Row.Cells[0].FindControl("hfEscalate2"); SQMBasePage.SetPersonList(rdl2, staticPersonList.Where(l => l.RCV_ESCALATION == true || (sets != null && sets.VALUE.ToUpper() == "Y")).ToList(), "", 20); SQMBasePage.DisplayControlValue(rdl2, hf.Value, PageUseMode.EditEnabled, ""); rdl2.Visible = true; rdl1 = (RadComboBox)e.Row.Cells[0].FindControl("ddlEscalateDays1"); hf = (HiddenField)e.Row.Cells[0].FindControl("hfEscalateDays1"); rdl1.Items.Add(new RadComboBoxItem("", "")); rdl1.Items.AddRange(WebSiteCommon.PopulateComboBoxListNums(1, 14, rdl1.EmptyMessage)); SQMBasePage.DisplayControlValue(rdl1, hf.Value, PageUseMode.EditEnabled, ""); rdl1.Visible = true; rdl2 = (RadComboBox)e.Row.Cells[0].FindControl("ddlEscalateDays2"); hf = (HiddenField)e.Row.Cells[0].FindControl("hfEscalateDays2"); rdl2.Items.Add(new RadComboBoxItem("", "")); rdl2.Items.AddRange(WebSiteCommon.PopulateComboBoxListNums(1, 14, rdl2.EmptyMessage)); SQMBasePage.DisplayControlValue(rdl2, hf.Value, PageUseMode.EditEnabled, ""); rdl2.Visible = true; } } catch { } } }