protected override void OnLoad(EventArgs e) { string information = string.Empty; if (base.CurrentJNPID > 0) { string space = " "; string series = string.Format("{0} | {1}", CurrentJNP.SeriesID, CurrentJNP.SeriesName).Trim(); string highestgrade = CurrentJNP.HighestAdvertisedGradeName; int lowestgrade = CurrentJNP.LowestAdvertisedGrade; string orgcode = CurrentJNP.OrganizationName; long copiedfromJNP = CurrentJNP.CopyFromJNPID; eJNPOptionType jnpTypeID = CurrentJNP.JNPOptionTypeID; enumJNPType jnpTypeId = CurrentJNP.JNPTypeID; information = "Series: " + series + " Grade: " + (jnpTypeId == enumJNPType.TwoGrade ? highestgrade + "/" + lowestgrade : highestgrade) + (jnpTypeID == eJNPOptionType.CreateFromExisting ? "\nCopied From JAX ID: " + copiedfromJNP.ToString() : ""); //+ "<br/>" + //"Current Status: " + EnumHelper<enumJNPWorkflowStatus>.GetEnumDescription(base.CurrentJNPWS.ToString()).ToString(); space = Server.HtmlDecode(space); information = information.Replace(" ", space); this.literalInfo.Text = information; } base.OnLoad(e); }
protected virtual void FillObjectFromRowData(DataRow returnRow) { DataColumnCollection columns = returnRow.Table.Columns; if (returnRow["JNPID"] != DBNull.Value) { this._JNPID = (long)returnRow["JNPID"]; } if (returnRow["JNPTypeID"] != DBNull.Value) { int tempValue = (int)returnRow["JNPTypeID"]; if (Enum.IsDefined(typeof(enumJNPType), tempValue)) { this._JNPTypeID = (enumJNPType)tempValue; } } if (returnRow["JNPOptionTypeID"] != DBNull.Value) { int tempValue = (int)returnRow["JNPOptionTypeID"]; if (Enum.IsDefined(typeof(eJNPOptionType), tempValue)) { this._JNPOptionTypeID = (eJNPOptionType)tempValue; } } if (returnRow["IsStandardJNP"] != DBNull.Value) { this._isStandardJNP = (bool)returnRow["IsStandardJNP"]; } if (returnRow["IsDEU"] != DBNull.Value) { this._isDEU = (bool)returnRow["IsDEU"]; } if (returnRow["IsMP"] != DBNull.Value) { this._isMP = (bool)returnRow["IsMP"]; } if (returnRow["IsExceptedService"] != DBNull.Value) { this._isExceptedService = (bool)returnRow["IsExceptedService"]; } if (returnRow["PayPlanID"] != DBNull.Value) { this._payPlanID = (int)returnRow["PayPlanID"]; } if (returnRow["PayPlanTitle"] != DBNull.Value) { this._payPlanTitle = returnRow["PayPlanTitle"].ToString(); } if (returnRow["SeriesID"] != DBNull.Value) { this._seriesID = (int)returnRow["SeriesID"]; } if (returnRow["SeriesName"] != DBNull.Value) { this._seriesName = returnRow["SeriesName"].ToString(); } if (returnRow["IsInterdisciplinary"] != DBNull.Value) { this._isInterdisciplinary = (bool)returnRow["IsInterdisciplinary"]; } if (returnRow["AdditionalSeriesID"] != DBNull.Value) { this._additionalSeriesID = (int)returnRow["AdditionalSeriesID"]; } if (returnRow["AdditionalSeriesName"] != DBNull.Value) { this._additionalSeriesName = returnRow["AdditionalSeriesName"].ToString(); } if (returnRow["LowestAdvertisedGrade"] != DBNull.Value) { this._lowestAdvertisedGrade = (int)returnRow["LowestAdvertisedGrade"]; } if (returnRow["HighestAdvertisedGrade"] != DBNull.Value) { this._highestAdvertisedGrade = (int)returnRow["HighestAdvertisedGrade"]; } if (returnRow["HighestAdvertisedGradeName"] != DBNull.Value) { this._highestAdvertisedGradeName = returnRow["HighestAdvertisedGradeName"].ToString(); } if (returnRow["RegionID"] != DBNull.Value) { this._regionID = (int)returnRow["RegionID"]; } if (returnRow["RegionName"] != DBNull.Value) { this._regionName = returnRow["RegionName"].ToString(); } if (returnRow["OrganizationCodeID"] != DBNull.Value) { this._organizationCodeID = (int)returnRow["OrganizationCodeID"]; } if (columns.Contains("OrganizationCode")) { if (returnRow["OrganizationCode"] != DBNull.Value) { this._organizationCode = returnRow["OrganizationCode"].ToString(); } } if (columns.Contains("OrganizationName")) { if (returnRow["OrganizationName"] != DBNull.Value) { this._organizationName = returnRow["OrganizationName"].ToString(); } } if (returnRow["JNPTitle"] != DBNull.Value) { this._JNPTitle = returnRow["JNPTitle"].ToString(); } if (returnRow["DutyLocation"] != DBNull.Value) { this._dutyLocation = returnRow["DutyLocation"].ToString(); } if (returnRow["VacancyID"] != DBNull.Value) { this._vacancyID = returnRow["VacancyID"].ToString(); } if (returnRow["FullPDID"] != DBNull.Value) { this._fullPDID = (long)returnRow["FullPDID"]; } if (returnRow["FullPDName"] != DBNull.Value) { this._fullPDName = returnRow["FullPDName"].ToString(); } if (returnRow["AdditionalPDID"] != DBNull.Value) { this._additionalPDID = (long)returnRow["AdditionalPDID"]; } if (returnRow["AdditionalPDName"] != DBNull.Value) { this._additionalPDName = returnRow["AdditionalPDName"].ToString(); } if (returnRow["JAID"] != DBNull.Value) { this._JAID = (long)returnRow["JAID"]; } if (returnRow["CRID"] != DBNull.Value) { this._CRID = (long)returnRow["CRID"]; } if (returnRow["JQID"] != DBNull.Value) { this._JQID = (long)returnRow["JQID"]; } if (returnRow["FPPSPDID"] != DBNull.Value) { this._FPPSPDID = returnRow["FPPSPDID"].ToString(); } if (returnRow["CreatedByID"] != DBNull.Value) { this._createdByID = (int)returnRow["CreatedByID"]; } if (returnRow["CreateDate"] != DBNull.Value) { this._createDate = (DateTime)returnRow["CreateDate"]; } if (returnRow["UpdatedByID"] != DBNull.Value) { this._updatedByID = (int)returnRow["UpdatedByID"]; } if (returnRow["UpdateDate"] != DBNull.Value) { this._updateDate = (DateTime)returnRow["UpdateDate"]; } if (returnRow["ResultedInSuccessfulHiring"] != DBNull.Value) { this._resultedInSuccessfulHiring = (bool)returnRow["ResultedInSuccessfulHiring"]; } if (returnRow["CopyFromJNPID"] != DBNull.Value) { this._copyFromJNPID = (long)returnRow["CopyFromJNPID"]; } JNPApproval jnpApproval = GetJNPApprovalInfo(this._JNPID); if (jnpApproval.SupervisorSignDate != null) { this._IsJNPSignedBySupervisor = true; } if (jnpApproval.HRPersonnelSignDate != null) { this._IsJNPSignedByHR = true; } }