public DataTable GetFormatParameter()
 {
     using (PersistentManager pm = new PersistentManager())
     {
         SysSystemParameterDao parameterDao = new SysSystemParameterDao();
         return parameterDao.FindFormatParameter();
     }
 }
 public DataSet GetSystemParameterName()
 {
     
     using (PersistentManager persistentManager = new PersistentManager())
     {
         SysSystemParameterDao parameterDao = new SysSystemParameterDao();
         return parameterDao.FindSystemParameterName();
     }
 }
 public void SaveParameter(Dictionary<string, string> parameters)
 {
     using (PersistentManager pm = new PersistentManager())
     {
         try
         {
             SysSystemParameterDao parameterDao = new SysSystemParameterDao();
             pm.BeginTransaction();
             foreach (string key in parameters.Keys)
             {
                 parameterDao.UpdateEntity(key, parameters[key]);
             }
             pm.Commit();
         }
         catch
         {
             pm.Rollback();
         }
     }
 }