| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364 | namespace Comal.Classes{}//public interface IJobLevel//{//    String Code { get; set; }//    String Description { get; set; }//}//[UserTracking(typeof(Job))]//public class JobLevel : Entity, IJobLevel, IRemotable, IPersistent, IOneToMany<Job>, IStringAutoIncrement<JobLevel>//{//    public Expression<Func<JobLevel, String>> AutoIncrementField() => x => x.Code;//    public Filter<JobLevel> AutoIncrementFilter() => null;//    public string AutoIncrementFormat() => "{0:D4}";//    [CodeEditor(Editable = Editable.Enabled)]//    public string Code { get; set; }//    [TextBoxEditor]//    public string Description { get; set; }//    [NullEditor]//    public JobLink Job { get; set; }//    protected override void Init()//    {//        base.Init();//        Job = new JobLink();//    }//}//public class JobLevelLookups : ILookupDefinition<JobLevel>, ILookupDefinition<JobLevel, ManufacturingPacket>//{//    public Columns<JobLevel> DefineColumns()//    {//        return new Columns<JobLevel>(//            x => x.ID,//            x => x.Code,//            x => x.Description//        );//    }//    public Filter<JobLevel> DefineFilter()//    {//        return new Filter<JobLevel>(x => x.ID).IsEqualTo(Guid.Empty).And(x => x.ID).IsNotEqualTo(Guid.Empty);//    }//    public Filter<JobLevel> DefineFilter(ManufacturingPacket[] items)//    {//        if (items.Length == 1)//            return new Filter<JobLevel>(x => x.Job.ID).IsEqualTo(items.First().SetoutLink.JobLink.ID);//        return DefineFilter();//    }//    public SortOrder<JobLevel> DefineSortOrder()//    {//        return new SortOrder<JobLevel>(x => x.Description);//    }//}
 |