示例#1
0
 public bool CheckIfInferAvail( )
 {
     if (info == null)
     {
         this.info = new Group_attribs(this.group_id);
     }
     return(info.InfAvail());
 }
示例#2
0
        public static Worker GetRightObgById(int id, ApplicationContext db)
        {
            Worker        worker = new Worker(id, db);
            Group_attribs info   = new Group_attribs(worker.group_id);

            if (info.InfAvail() == false)
            {
                return(new WorkerWithoutInf(worker, info));
            }
            else
            {
                return(new WorkerWithInf(worker, info));
            }
        }