public void InitializeUpdateModule(AbstractModule module)
 {
     EnvironmentalMonitor.Support.Module.Manage.User sessionUser = this.Session[Constant.SESSION_KEY_USER] as EnvironmentalMonitor.Support.Module.Manage.User;
     DateTime now = DateTime.Now;
     module.UpdateUserId = sessionUser.Guid;
     module.UpdateTime = now;
 }
 public void InitializeInsertModule(AbstractModule module)
 {
     EnvironmentalMonitor.Support.Module.Manage.User sessionUser = this.Session[Constant.SESSION_KEY_USER] as EnvironmentalMonitor.Support.Module.Manage.User;
     DateTime now = DateTime.Now;
     module.Guid = null;
     module.InsertUserId = sessionUser.Guid;
     module.InsertTime = now;
     module.UpdateUserId = sessionUser.Guid;
     module.UpdateTime = now;
     module.Remark = string.Empty;
     module.Validity = true;
 }
        /// <summary>
        /// 模型类
        /// </summary>
        /// <param name="module">模型值</param>
        /// <param name="values">值集合</param>
        /// <returns>模型值</returns>
        public static AbstractModule ParseModule(AbstractModule module, object[] values)
        {
            AbstractModule result = module;

            result.Guid = DatabaseHibernate.ParseString(values[0]);
            result.InsertUserId = DatabaseHibernate.ParseString(values[1]);
            result.InsertTime = DatabaseHibernate.ParseDateTime(values[2]);
            result.UpdateUserId = DatabaseHibernate.ParseString(values[3]);
            result.UpdateTime = DatabaseHibernate.ParseDateTime(values[4]);
            result.Remark = DatabaseHibernate.ParseString(values[5]);
            result.Validity = DatabaseHibernate.ParseBoolean(values[6]);

            return result;
        }