コード例 #1
0
 public void Initialzation()
 {
     try
     {
         if (null != GlobalEnvironment.WorkStationInfo)
         {
             var tempPark = EngineContext.Current.Resolve <IPBA_PARKING_ORGANIZATION_INFO>();
             List <OragnizationBase> list = new List <OragnizationBase>();
             GlobalEnvironment.ListOragnization            = tempPark.GetOragnizationInfo();
             GlobalEnvironment.CurrWorkStationOragnization = CommHelper.GetCurrentWorkStationOrgs(GlobalEnvironment.WorkStationInfo.WORKSTATION_ID);
             var tempOwner = EngineContext.Current.Resolve <IPBA_OWNER_ORGANIZATION>();
             GlobalEnvironment.OwnerList = tempOwner.GetModelList(string.Empty);
             //加载车牌识别率统计
             var tempCorrect = EngineContext.Current.Resolve <ICR_LICENSE_CORRECT_RECORD>();
             tempCorrect.InitRecognitioInfo();
         }
         else
         {
             new G5MessageBox("请先配置工作站IP地址").ShowDialog();
         }
     }
     catch (Exception ex) { LogHelper.Log.Error(ex.Message); }
 }