コード例 #1
0
        private string FormatTypeColumn(string FieldName, DataRow row, clsExtraStyle pObjES)
        {
            int type_id = -1;

            int.TryParse(row[FieldName].ToString(), out type_id);
            if (type_id > 0)
            {
                return(gLookUp.GetAssesmentTypeFromCache(type_id).Description);
            }

            return("");
        }
コード例 #2
0
 private void BindAssessment()
 {
     DataAccess.Assessment obj = gAssessment_br.GetAssessmentByIDFromCache(gAssessmentID);
     if (obj == null)
     {
         Set_Error_Message("Assessment could not be found!");
         return;
     }
     lblAssessmentName.Text    = obj.Name;
     lblAssessmentVersion.Text = obj.Version;
     lblIntroduction.Text      = obj.Introduction;
     lblAssessmentType.Text    = gLookUp.GetAssesmentTypeFromCache(obj.TypeID).Description;
 }