Ejemplo n.º 1
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="to_add"></param>
 public virtual void Add(Cld_FCParameter to_add)
 {
     this.Cld_FCParameter_List.Add(to_add);
     to_add.Cld_FCBlock_ID    = this.ID;
     to_add.Prj_Controller_ID = this.Prj_Controller_ID;
     to_add.Prj_Document_ID   = this.Prj_Document_ID;
     to_add.Prj_Sheet_ID      = this.Prj_Sheet_ID;
 }
Ejemplo n.º 2
0
        /// <summary>
        /// ArrayList
        /// </summary>
        /// <returns></returns>
        public virtual Cld_FCParameter New_FCParameter()
        {
            Cld_FCParameter result = new Cld_FCParameter();

            result.Cld_FCBlock_ID    = this.ID;
            result.Prj_Controller_ID = this.Prj_Controller_ID;
            result.Prj_Document_ID   = this.Prj_Document_ID;
            result.Prj_Sheet_ID      = this.Prj_Sheet_ID;
            return(result);
        }
Ejemplo n.º 3
0
 /// <summary>
 /// 根据ID获得Cld_FCBlock
 /// </summary>
 /// <param name="condition">ID type:int</param>
 /// <returns></returns>
 public Cld_FCParameter GetCld_FCParameter_By_ID(int condition)
 {
     using (ITransaction transaction = session.BeginTransaction()){
         try{
             Cld_FCParameter result = this.session.Get <Cld_FCParameter>(condition);
             transaction.Commit();
             return(result);
         }catch (Exception e) {
             transaction.Rollback();
             throw e;
         }
     }
 }
        public virtual bool Compare(Cld_FCParameter p) {
            if (this.ID != p.ID) {
                throw new Exception("id should be equal");
            }
            if (this.Name != p.Name || this.PValue != p.PValue
                || this.Cld_FCBlock_ID != p.Cld_FCBlock_ID || this.Prj_Controller_ID != p.Prj_Controller_ID
                || this.Prj_Document_ID != p.Prj_Document_ID || this.Prj_Sheet_ID != p.Prj_Sheet_ID
                )
            {
                return false;
            }
            else {
                return true;
            }

        }
Ejemplo n.º 5
0
 public virtual bool Compare(Cld_FCParameter p)
 {
     if (this.ID != p.ID)
     {
         throw new Exception("id should be equal");
     }
     if (this.Name != p.Name || this.PValue != p.PValue ||
         this.Cld_FCBlock_ID != p.Cld_FCBlock_ID || this.Prj_Controller_ID != p.Prj_Controller_ID ||
         this.Prj_Document_ID != p.Prj_Document_ID || this.Prj_Sheet_ID != p.Prj_Sheet_ID
         )
     {
         return(false);
     }
     else
     {
         return(true);
     }
 }
Ejemplo n.º 6
0
 /// <summary>
 /// 
 /// </summary>
 /// <param name="to_add"></param>
 public virtual void Add(Cld_FCParameter to_add)
 {
     this.Cld_FCParameter_List.Add(to_add);
     to_add.Cld_FCBlock_ID = this.ID;
     to_add.Prj_Controller_ID = this.Prj_Controller_ID;
     to_add.Prj_Document_ID = this.Prj_Document_ID;
     to_add.Prj_Sheet_ID = this.Prj_Sheet_ID;
 }
Ejemplo n.º 7
0
 /// <summary>
 /// ArrayList
 /// </summary>
 /// <returns></returns>
 public virtual Cld_FCParameter New_FCParameter()
 {
     Cld_FCParameter result = new Cld_FCParameter();
     result.Cld_FCBlock_ID = this.ID;
     result.Prj_Controller_ID = this.Prj_Controller_ID;
     result.Prj_Document_ID = this.Prj_Document_ID;
     result.Prj_Sheet_ID = this.Prj_Sheet_ID;
     return result;
 }
Ejemplo n.º 8
0
 /// <summary>
 /// ArrayList
 /// </summary>
 /// <returns></returns>
 public virtual Cld_FCParameter New_FCParameter()
 {
     Cld_FCParameter result = new Cld_FCParameter();
     result.Cld_FCBlock_ID = this.ID;
     result.Cld_FCBlock = this;
     result.Prj_Controller_ID = this.Prj_Controller_ID;
     result.Prj_Controller = this.Prj_Controller;
     result.Prj_Document_ID = this.Prj_Document_ID;
     result.Prj_Document = this.Prj_Document;
     result.Prj_Sheet_ID = this.Prj_Sheet_ID;
     result.Prj_Sheet = this.Prj_Sheet;
     this.Cld_FCParameter_List.Add(result);
     return result;
 }