private void LoadUIFields() { if (this.CurrentJQID > 0) { JobQuestionnaire jq = manager.GetJobQuestionnaire(this.CurrentJQID); //payPlanField.Text = jq.JQPayPlanID.ToString(); payPlanField.Text = jq.PayPlanName; //seriesField.Text = jq.JQSeriesID.ToString(); seriesField.Text = string.Format("{0} | {1}", jq.JQSeriesID.ToString(), jq.SeriesName); isStandardField.Text = (jq.IsStandardJQ) ? "Yes" : "No"; isInterDisciplinaryField.Text = (jq.IsInterdisciplinary) ? "Yes" : "No"; if (jq.AdditionalJQSeriesID > 0) { addtlSeriesField.Text = string.Format("{0} | {1}", jq.AdditionalJQSeriesID.ToString(), jq.AdditionalSeriesName); } else { addtlSeriesField.Text = string.Empty; } lowestAdvGradeField.Text = jq.LowestAdvertisedGrade.ToString(); highestAdvGradeField.Text = jq.HighestAdvertisedGrade.ToString(); jqPositionTitleField.Text = jq.JQPositionTitle; } else { base.PrintErrorMessage(GetGlobalResourceObject("JNPMessages", "JQNotAvailable").ToString(), false); } }
public void BuildPage() { try { if (base.CurrentJQID == -1) { base.PrintErrorMessage(GetGlobalResourceObject("JNPMessages", "JQNotAvailable").ToString(), false); } else { JQManager jm = new JQManager(); JobQuestionnaire jqDoc = jm.GetJobQuestionnaire(base.CurrentJQID); if (jqDoc == null || jqDoc.JQID == -1) { // Non-existent JQ base.PrintSystemMessage(GetLocalResourceObject("JQIDNotFoundMessage").ToString(), false); } else { // load Factors JQFactorCollection listFactors = jm.GetJQFactorCollectionByJQID(base.CurrentJQID); this.Factors = listFactors; //Added this because factor numbers are not aligned properly. SaveOrder(false); //this method will be called from SaveOrder() //bindData(listFactors); SetControls(); } } } catch (Exception ex) { base.HandleException(ex); } }