public List<Sys_UserAndRoleGeneral_Info> SearchUserAndRole(Sys_UserAndRoleGeneral_Info query) { try { return this._userPurviewDA.SearchUserAndRole(query); } catch (Exception Ex) { throw Ex; } }
private void tbxSearch_TextChanged(object sender, EventArgs e) { Sys_UserAndRoleGeneral_Info qeruyInfo = new Sys_UserAndRoleGeneral_Info(); qeruyInfo.searchKey = tbxSearch.Text.Trim(); try { List<Sys_UserAndRoleGeneral_Info> returnList = this._IUserPurviewBL.SearchUserAndRole(qeruyInfo); if (returnList != null) { lvUserAndRole.SetDataSource(returnList); this._seachUserAndRoleList = returnList; } } catch (Exception Ex) { ShowErrorMessage(Ex.Message); } }
public ReturnValueInfo SavePruview(List<Sys_UserPurview_usp_Info> userAndRoleInfo, string objID, Sys_UserAndRoleGeneral_Info.accountType typeID) { try { foreach (Sys_UserPurview_usp_Info item in userAndRoleInfo) { item.usp_dAddDate = DateTime.Now; item.usp_dLastDate = DateTime.Now; } return this._userPurviewDA.SavePruview(userAndRoleInfo, objID, typeID); } catch (Exception Ex) { throw Ex; } }