/// <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>
        /// 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);
        }