Commit ed8edbdb authored by 黄奎's avatar 黄奎

页面修改

parent eba46316
......@@ -260,13 +260,13 @@ namespace Edu.Model.ViewModel.Contract
/// <summary>
/// 总课时数
/// </summary>
public int TotalClassHours
public decimal TotalClassHours
{
get
{
Int32.TryParse(this.FirstClassHours.ToString(), out int FirstClassHours);
Int32.TryParse(this.SecondClassHours.ToString(), out int SecondClassHours);
Int32.TryParse(this.ThirdClassHours.ToString(), out int ThirdClassHours);
decimal.TryParse(this.FirstClassHours.ToString(), out decimal FirstClassHours);
decimal.TryParse(this.SecondClassHours.ToString(), out decimal SecondClassHours);
decimal.TryParse(this.ThirdClassHours.ToString(), out decimal 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