private void getData() { BLL.dt_active_user bll = new BLL.dt_active_user(); List <Model.dt_active_user> modeList = new List <Model.dt_active_user>(); string strWhere = "a.activityId = " + activeID; listActive_user = bll.GetModelListExt(strWhere); }
private void ReadCardEnd() { Model.dt_active_user ac_usr = listActive_user.Where(x => x.address == _Card).SingleOrDefault(); if (ac_usr != null) { ac_usr.joinDate = DateTime.Now; BLL.dt_active_user bll = new BLL.dt_active_user(); bll.Update(ac_usr); getData(); bind_dgv(); } _Card = string.Empty; }