示例#1
0
文件: Rollout.cs 项目: jhogan/qed
 public void AddUnrolled(Effort eff)
 {
     EffortRollout effRoll = new EffortRollout();
     effRoll.Effort = eff;
     _effortRollouts.Add(effRoll);
 }
示例#2
0
 public EffortRollout Add(EffortRollout obj)
 {
     obj.BusinessCollection = this;
     if (this.IsChildOfRollout){
         obj.Rollout = (Rollout)this.Parent;
     }
     if (this.IsChildOfEffort){
         obj.Effort = (Effort)this.Parent;
     }
     List.Add(obj); return obj;
 }
示例#3
0
 public bool Contains(EffortRollout obj)
 {
     foreach(EffortRollout child in List) {
         if (obj.Equals(child)){
             return true;
         }
     }
     return false;
 }
示例#4
0
 public EffortRollouts(Rollout parent)
 {
     EffortRollout obj;
     this.Parent = parent;
     using(MySqlConnection conn = Connections.Inst.item("QED_DB").MySqlConnection){
         using(MySqlDataReader dr = MySqlDBLayer.LoadWhereColumnIs(conn, _table, "rollId", parent.Id)){
             while(dr.Read()) {
                 obj = new EffortRollout(dr);
                 obj.BusinessCollection = this;
                 List.Add(obj);
             }
         }
     }
 }