예제 #1
0
 public CowInfo(Cow cow)
 {
     myCow            = cow;
     this.earNum      = cow.EarNum;
     this.calvingList = CowInfo.GetCowCalvingRecords(this.earNum);
     this.dryMilkList = CowInfo.GetDryMilkRecords(this.earNum);
     this.parity      = this.calvingList.Count;
 }
예제 #2
0
        public CowInfo(int earNum)
        {
            CowBLL cb = new CowBLL();

            this.earNum      = earNum;
            myCow            = cb.GetCowInfo(earNum);
            this.calvingList = CowInfo.GetCowCalvingRecords(earNum);
            this.dryMilkList = CowInfo.GetDryMilkRecords(earNum);
            this.parity      = this.calvingList.Count;
        }