/// <summary> /// 懲戒資料,是否有已銷過記錄 /// </summary> /// <returns></returns> public bool IsCleadDmmerit() { //return DemeritList.TrueForAll(x => x.Cleared == "是"); return(DemeritList.Exists(x => x.Cleared == "是")); //foreach (DemeritRecord each in DemeritList) //{ // if (each.Cleared == "是") // { // return true; // } //} //return false; }
/// <summary> /// 懲戒資料,是否有已銷過記錄 /// </summary> /// <returns></returns> public bool IsCleadDmmerit() { return(DemeritList.Exists(x => x.Cleared == "是")); }