/// <summary>
 /// 更新日志状态
 /// </summary>
 /// <param name="id">日志ID</param>
 /// <param name="state">日志状态</param>
 void UpdateState(int id, OperationErrorLogStateEnum state)
 {
     using (DrisionDbContext context = new DrisionDbContext(GlobalObject.ConnString))
     {
         T_MobileOperationErrorLog log = context.T_MobileOperationErrorLog.FirstOrDefault(p => p.Id == id);
         if (log != null)
         {
             log.StateEnum = state;
             context.SaveChanges();
         }
     }
 }
        /// <summary>
        /// 加载数据
        /// </summary>
        void LoadData()
        {
            string id = Request.QueryString["id"];

            if (!string.IsNullOrEmpty(id))
            {
                int piid = int.Parse(id);
                using (DrisionDbContext context = new DrisionDbContext(GlobalObject.ConnString))
                {
                    T_MobileOperationErrorLog log = context.T_MobileOperationErrorLog.FirstOrDefault(p => p.Id == piid);
                    if (log != null)
                    {
                        lblCreateUserId.Text    = log.CreateUserId.HasValue?OrgManager.GetDisplayValue("T_User", log.CreateUserId.Value):string.Empty;
                        lblCreateTime.Text      = log.CreateTime.HasValue ? log.CreateTime.Value.ToString("yyyy-MM-dd HH:mm:ss") : string.Empty;
                        lblOperationRecord.Text = log.OperationRecord;
                        lblState.Text           = log.State.HasValue? EnumHelper.GetDescription(typeof(OperationErrorLogStateEnum), log.State.Value):string.Empty;
                    }
                }
            }
        }