Ejemplo n.º 1
0
 /// <summary>
 /// 默认构造函数
 /// <summary>
 public Prj_Network() : base()
 {
     m_ID             = -1;
     m_Prj_Unit_List  = null;
     m_NetworkAddress = String.Empty;
     m_NetworkName    = String.Empty;
     m_Description    = String.Empty;
     m_Prj_Project_ID = -1;
     m_Prj_Project    = null;
 }
Ejemplo n.º 2
0
					/// <summary>
		/// 默认构造函数
		/// <summary>
		public Prj_Network():base(){
			m_ID = -1;
			m_Prj_Unit_List = null;
			m_NetworkAddress = String.Empty;
			m_NetworkName = String.Empty;
			m_Description = String.Empty;
			m_Prj_Project_ID = -1;
			m_Prj_Project = null;
			
		}
Ejemplo n.º 3
0
 /// <summary>
 /// 根据ID获得Cld_FCBlock
 /// </summary>
 /// <param name="condition">ID type:int</param>
 /// <returns></returns>
 public Prj_Project GetPrj_Project_By_ID(int condition)
 {
     using (ITransaction transaction = session.BeginTransaction()){
         try{
             Prj_Project result = this.session.Get <Prj_Project>(condition);
             transaction.Commit();
             return(result);
         }catch (Exception e) {
             transaction.Rollback();
             throw e;
         }
     }
 }
Ejemplo n.º 4
0
        /// <summary>
        /// 转换所有Control
        /// </summary>
        /// <param name="bll"></param>
        /// <param name="project"></param>
        public static void GenerateXinHuaControls(BllManager bll, Prj_Project project, string outPath)
        {
            // 新华系统中,每个Project仅包含一个Network,每个Network仅包含一个Unit
            IList<Prj_Network> networks = bll.manager.NetworkCRUD.GetPrj_Networks_By_Prj_Project_ID(project.ID);
            IList<Prj_Unit> units = networks.Count > 0 ? bll.manager.UnitCRUD.GetPrj_Units_By_Prj_Network_ID(networks[0].ID) : new List<Prj_Unit>();
            IList<Prj_Controller> controllers = units.Count > 0 ? bll.manager.ControllerCRUD.GetPrj_Controllers_By_Prj_Unit_ID(units[0].ID) : new List<Prj_Controller>();

            for (int i = 0; i < controllers.Count; i++)
            {
                GeneralXinHuaDocuments(bll, controllers[i], outPath);
            }
        }