Пример #1
0
 public static string GetColumnNameList(int aoid)
 {
     Assessment ass = new Assessment();
     string col = ass.GetColumnNameList(aoid);
     string JsonCol = "";
     string[] colArray = col.Split(',');
     foreach (string str in colArray)
     {
         JsonCol = JsonCol + "\"" + str + "\"" + ":" + str + ",";
     }
     JsonCol = JsonCol.Substring(0, JsonCol.Length - 1);
     return ass.GetColumnNameList(aoid);
 }
Пример #2
0
 public static string GetColumnNameList(int aoid)
 {
     Assessment ass = new Assessment();
     return ass.GetColumnNameList(aoid);
 }
Пример #3
0
    public string GetColumnNamesJSON(int aoid)
    {
        Assessment ass = new Assessment();
        JQGridResults result = new JQGridResults();
        List<JQGridRow> rows = new List<JQGridRow>();

        string col = ass.GetColumnNameList(aoid);
        string staticCol = col + ",hidden,FullTimeOrPartTimeIndicator,CumulativeGPA,CreditsAttempted,CreditsEarned,LatestCompassPrealgebraTestScore,LatestCompassAlgebraTestScore,LatestCompassWritingTestScore,LatestCompassReadingTestScore,LatestACTEnglishAssessmentScore,LatestACTMathAssessmentScore,LatestACTReadingAssessmentScore,LatestACTScienceAssessmentScore,LatestTestingDate,HighSchoolName,HighSchoolGraduationDate,HomeTelephoneNumber,MailingAddressLineOne,MailingAddressLineTwo,MailingAddressLineThree,City,StateName,ZipCode,EmailAddress";
        return staticCol;
    }
Пример #4
0
    public string GetColumnNameListJSON(int aoid)
    {
        Assessment ass = new Assessment();
         JQGridResults result = new JQGridResults();
            List<JQGridRow> rows = new List<JQGridRow>();

        string col = ass.GetColumnNameList(aoid);
        string staticCol= col+ ",hidden,FullTimeOrPartTimeIndicator,CumulativeGPA,CreditsAttempted,CreditsEarned,LatestCompassPrealgebraTestScore,LatestCompassAlgebraTestScore,LatestCompassWritingTestScore,LatestCompassReadingTestScore,LatestACTEnglishAssessmentScore,LatestACTMathAssessmentScore,LatestACTReadingAssessmentScore,LatestACTScienceAssessmentScore,LatestTestingDate,HighSchoolName,HighSchoolGraduationDate,HomeTelephoneNumber,MailingAddressLineOne,MailingAddressLineTwo,MailingAddressLineThree,City,StateName,ZipCode,EmailAddress";
        string JsonCol = "";
        string[] colArray = staticCol.Split(',');
        JQGridRow row = new JQGridRow();
        int i = 0;
        row.cell = new string[colArray.Length];
        foreach (string str in colArray)
        {

             row.cell[i++] = str;

        }
           rows.Add(row);

            result.rows = rows.ToArray();
            result.page = 0;
            result.total = 0;
            result.records = 0;

        return new JavaScriptSerializer().Serialize(result);
    }