Commit ed8edbdb authored by 黄奎's avatar 黄奎

页面修改

parent eba46316
...@@ -260,13 +260,13 @@ namespace Edu.Model.ViewModel.Contract ...@@ -260,13 +260,13 @@ namespace Edu.Model.ViewModel.Contract
/// <summary> /// <summary>
/// 总课时数 /// 总课时数
/// </summary> /// </summary>
public int TotalClassHours public decimal TotalClassHours
{ {
get get
{ {
Int32.TryParse(this.FirstClassHours.ToString(), out int FirstClassHours); decimal.TryParse(this.FirstClassHours.ToString(), out decimal FirstClassHours);
Int32.TryParse(this.SecondClassHours.ToString(), out int SecondClassHours); decimal.TryParse(this.SecondClassHours.ToString(), out decimal SecondClassHours);
Int32.TryParse(this.ThirdClassHours.ToString(), out int ThirdClassHours); decimal.TryParse(this.ThirdClassHours.ToString(), out decimal ThirdClassHours);
return FirstClassHours + SecondClassHours + ThirdClassHours; return FirstClassHours + SecondClassHours + ThirdClassHours;
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment