本文整理汇总了C#中Entry.ToString方法的典型用法代码示例。如果您正苦于以下问题:C# Entry.ToString方法的具体用法?C# Entry.ToString怎么用?C# Entry.ToString使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Entry
的用法示例。
在下文中一共展示了Entry.ToString方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: GetAccumulatedDeservedCredit
/// <summary>
/// 累計應得學分
/// </summary>
/// <param name="pStudentID">學生系統編號</param>
/// <param name="pSchoolYear">學年度</param>
/// <param name="pSemester">學期</param>
/// <param name="pRequired">必/選修</param>
/// <param name="pRequiredBy">校/部訂</param>
/// <param name="pSubjectType">分項類別(學業、體育、實習科目、國防通識、健康與護理、專業科目),不依據此項目統計時,傳入 null</param>
/// <returns>學分數</returns>
public decimal GetAccumulatedDeservedCredit(string pStudentID, List<int> pSchoolYear, List<int> pSemester, bool pRequired, RequiredBy pRequiredBy, Entry pEntry)
{
decimal? credit = 0;
foreach(int schoolYear in pSchoolYear)
{
foreach(int semester in pSemester)
{
string key = pStudentID + "_" + pSchoolYear.ToString() + "_" + pSemester;
foreach (SHSubjectSemesterScoreInfo shsssi in _PersonalSemesterSubjectScoreInfo[key])
{
//if (shsssi.NotIncludedInCredit)
// continue;
if (shsssi.Entry != pEntry.ToString())
continue;
if (shsssi.RequiredBy != pRequiredBy.ToString())
continue;
if (shsssi.Required != pRequired)
continue;
credit += ((shsssi.Credit.HasValue) ? shsssi.Credit.Value : 0);
}
}
}
return ((credit.HasValue) ? credit.Value : 0);
}
开发者ID:ischool-desktop,项目名称:OfficialStudentRecordReport2010,代码行数:38,代码来源:SHSemesterSubjectScoreInfo.cs