/// <summary> /// Default sort by work_day,part_no,prom_date,ordid,dop,dop_lin all not null /// </summary> /// <param name="other"></param> /// <returns></returns> public int CompareTo([AllowNull] Acc_material_ord other) { if (other == null) { return(1); } else { int result = Work_day.Date.CompareTo(other.Date_entered.Date); if (result == 0) { result = Part_no.CompareTo(other.Part_no); if (result == 0) { result = Prom_date.Date.CompareTo(other.Prom_date.Date); if (result == 0) { result = OrdId.CompareTo(other.OrdId); if (result == 0) { result = Dop.CompareTo(other.Dop); if (result == 0) { result = Dop_lin.CompareTo(other.Dop_lin); } } } } } return(result); } }
/// <summary> /// Equatable by Work_day,Part_no,OrdId,Dop,Dop_lin /// </summary> /// <param name="other"></param> /// <returns></returns> public bool Equals([AllowNull] Acc_material_ord other) { if (other == null) { return(false); } return(Work_day.Date.Equals(other.Work_day.Date) && Part_no.Equals(other.Part_no) && OrdId.Equals(other.OrdId) && Dop.Equals(other.Dop) && Dop_lin.Equals(other.Dop_lin)); }
/// <summary> /// Default sort work_day,part_no /// </summary> /// <param name="other"></param> /// <returns></returns> public int CompareTo([AllowNull] Acc_balance other) { int result = Work_day.CompareTo(other.Work_day); if (result == 0) { result = Part_no.CompareTo(other.Part_no); } return(result); }
/// <summary> /// Equtable by Work_day,part_no /// </summary> /// <param name="other"></param> /// <returns></returns> public bool Equals([AllowNull] Acc_balance other) { return(Work_day.Equals(other.Work_day) && Part_no.Equals(other.Part_no)); }