Esempio n. 1
0
        public static System_Setting getTransac_CheckPoint()
        {
            Clustering_Users_DAO dao = null;
            System_Setting transac_check_point = new System_Setting();
            try
            {
                dao = new Clustering_Users_DAO();
                dao.beginTransaction();
                List<System_Setting> listSystemSetting = dao.getListSystemSetting();
                foreach (var item in listSystemSetting)
                {
                    if (item.Key.Equals(ConstantValues.SST_TRANSAC_CP))
                    {
                        item.Values = dao.getListSystemSettingValue(ConstantValues.SST_TRANSAC_CP);
                        return item;
                    }
                }

                dao.commitTransaction();
            }
            catch (Exception ex)
            {
                dao.rollbackTransaction();
                throw ex;
            }
            return transac_check_point;
        }