예제 #1
0
 public ItemGroup(int PlaneID,int GroupID, string GroupName,ItemManager item_mgr)
   {
       this.PlaneID=PlaneID;
       this.GroupID = GroupID;
       this.GroupName = GroupName;
       this.item_mgr = item_mgr;
       FillItem();
   }
예제 #2
0
        public  SecureService()
        {


#if !R23
            nvr_mgr = new NVR.NVRManager();
#endif
        
            cctv_mgr = new CCTV.CCTVManager(this);
      
           card_mgr = new CardReaderManager(this);
         
           rtu_mgr = new RTU.RTUManager();
           try
           {
               item_mgr = new RTU.ItemManager();
           }
            catch(Exception ex)
                {
                    Console.WriteLine(ex.Message + "," + ex.StackTrace);
                    Environment.Exit(-1);
                }
           itemgrp_mgr = new RTU.ItemGroupManager();
           plane_mgr = new PlaneManager();
           pd_mgr = new PD.PDManager();

#if R23
            r23_pm_mgr = new Meter.PowerMeterManager();
            pwr_mgr = new RTU.PowerControlManager();
        
#endif
           //#if !R23     
          
           card_mgr.OnDoorEvent += card_mgr_OnDoorEvent;
           card_mgr.OnAlarmEvent += card_mgr_OnAlarmEvent;
           sch_mgr = new Schedule.ScheduleManager();
//#endif
           new System.Threading.Thread(CheckCardReaderConnectionTask).Start();
           new System.Threading.Thread(CheckCardDueStatusTask).Start();
           //ExactOneHourTmr = new ExactIntervalTimer(30);
           //ExactOneHourTmr.OnElapsed += ExactOneHourTmr_OnElapsed;
           
          // CheckCardDueTask();
         //BindingData.ItemBindingData [] datas=  item_mgr.GetAllItemBindingData(1);
         //foreach (ItemBindingData data in datas)
         //{
         //    Console.WriteLine(data.ItemID);
         //}
        }