Ejemplo n.º 1
0
        public void getHisFilInfore()
        {
            DataFileUtils dFileUtils = new DataFileUtils();
            Object        obj        = null;

            dFileUtils.Deserialize(fileName3, ref obj);
            if (null == obj)
            {
                return;
            }
            hisFileDBeans = obj as List <HistoryFileDataBean>;
        }
Ejemplo n.º 2
0
        /// <summary>
        /// 获取tag资料
        /// </summary>
        /// <returns></returns>
        public Dictionary <string, Tag> getTagInforData(String pathName)
        {
            Dictionary <string, Tag> tags       = new Dictionary <string, Tag>();
            DataFileUtils            dFileUtils = new DataFileUtils();
            Object obj = null;

            dFileUtils.Deserialize(pathName, ref obj);
            if (null == obj)
            {
                return(null);
            }
            tags = obj as Dictionary <string, Tag>;
            return(tags);
        }
Ejemplo n.º 3
0
        public List <AdmissionExit> getAdmissionExit()
        {
            List <AdmissionExit> admissExits = new List <AdmissionExit>();
            DataFileUtils        dFileUtils  = new DataFileUtils();
            Object obj = null;

            dFileUtils.Deserialize("AdmissionExit.dat", ref obj);
            if (null == obj)
            {
                return(null);
            }
            admissExits = obj as List <AdmissionExit>;
            return(admissExits);
        }
Ejemplo n.º 4
0
        public RestartBean getRestartData()
        {
            DataFileUtils dFileUtils = new DataFileUtils();
            Object        obj        = null;

            dFileUtils.Deserialize(fileName5, ref obj);
            if (null == obj)
            {
                return(null);
            }
            RestartBean resBean = obj as RestartBean;

            return(resBean);
        }
Ejemplo n.º 5
0
        public List <CardUpDataBean> getHisFileData(string fileName)
        {
            DataFileUtils dFileUtils = new DataFileUtils();
            Object        obj        = null;

            dFileUtils.Deserialize(fileName4 + fileName, ref obj);
            if (null == obj)
            {
                return(null);
            }
            List <CardUpDataBean> cardData = obj as List <CardUpDataBean>;

            return(cardData);
        }
Ejemplo n.º 6
0
 public void getCFData()
 {
     lock (FileName2Lock)
     {
         DataFileUtils dFileUtils = new DataFileUtils();
         Object        obj        = null;
         dFileUtils.Deserialize(fileName2, ref obj);
         if (null == obj)
         {
             return;
         }
         chFlBean = obj as CacheFileBean;
         chFlBean.addCardValues(chFlBean.Cards.ToList());
     }
 }
Ejemplo n.º 7
0
 public void getData()
 {
     lock (FileNameLock)
     {
         DataFileUtils dFileUtils = new DataFileUtils();
         Object        obj        = null;
         dFileUtils.Deserialize(fileName, ref obj);
         if (null == obj)
         {
             return;
         }
         cenJiData = obj as List <CenJiBean>;
         if (getdata != null)
         {
             getdata(COUNTADD);
         }
     }
 }
Ejemplo n.º 8
0
        private void saveAdmissionExits(int aeCount)
        {
            saveAdExitCount = 0;
            lock (CommonCollection.admissionExits)
            {
                List <AdmissionExit> save       = CommonCollection.admissionExits.ToList();
                DataFileUtils        dFileUtils = new DataFileUtils();

                dFileUtils.SerializeCacheBean2(save, "AdmissionExit.dat");

                Object obj = null;
                dFileUtils.Deserialize("admissionExit.bat", ref obj);
            }
            if (saveAdExitCount > 0)
            {
                saveAdmissionExits(1);                      //saveAdExitCount>0 说明,数据已经更新,需要再次存储一下
            }
            else
            {
                isSaveAdExitCount = false;
            }
        }