/// <summary> /// 検索アクション /// </summary> /// <param name="userKanriDataGridView1"></param> /// <param name="userKanri"></param> /// <param name="isDoneRegist"></param> private void searchAction(ref DataGridView userKanriDataGridView1, UserKanri userKanri, bool isDoneRegist) { errorProvider1.SetError(userKanri.empId, ""); errorProvider1.SetError(userKanri.userName, ""); errorProvider1.SetError(userKanri.kengen, ""); if (!isDoneRegist && !this.searchPreCheck(userKanriDataGridView1)) { return; } UserKanriSearchServiceInBo userSearchServiceInBo = new UserKanriSearchServiceInBo(); UserKanriSearchService userSearchService = new UserKanriSearchService(); userSearchServiceInBo.empId = userKanri.empId.Text; userSearchServiceInBo.userName = userKanri.userName.Text; userSearchServiceInBo.kengenSelectedIndex = userKanri.kengen.SelectedIndex; userSearchService.setInBo(userSearchServiceInBo); UserKanriSearchServiceOutBo userSearchServiceOutBo = userSearchService.execute(); userKanriDataGridView1.DataSource = userSearchServiceOutBo.usersList; this.kensu.Text = userSearchServiceOutBo.usersList.Count.ToString(); this.userKanriViewSetthing(ref userKanriDataGridView1); }
/// <summary> /// 検索アクション /// </summary> /// <param name="userKanriDataGridView1"></param> /// <param name="userKanri"></param> /// <param name="isDoneRegist"></param> private void searchAction(ref DataGridView userKanriDataGridView1, UserKanri userKanri, bool isDoneRegist) { errorProvider1.SetError(userKanri.empId, ""); errorProvider1.SetError(userKanri.userName, ""); errorProvider1.SetError(userKanri.kengen, ""); if (!isDoneRegist && !this.searchPreCheck(userKanriDataGridView1)) { return; } UserKanriSearchServiceInBo userSearchServiceInBo = new UserKanriSearchServiceInBo(); UserKanriSearchService userSearchService = new UserKanriSearchService(); userSearchServiceInBo.empId = userKanri.empId.Text; userSearchServiceInBo.userName = userKanri.userName.Text; userSearchServiceInBo.kengenSelectedIndex = userKanri.kengen.SelectedIndex; userSearchService.setInBo(userSearchServiceInBo); UserKanriSearchServiceOutBo userSearchServiceOutBo = userSearchService.execute(); userKanriDataGridView1.DataSource = userSearchServiceOutBo.usersList; this.kensu.Text = userSearchServiceOutBo.usersList.Count.ToString(); this.userKanriViewSetthing(ref userKanriDataGridView1); }
private void searchAction(ref DataGridView userKanriDataGridView1, UserKanri userKanri) { errorProvider1.SetError(userKanri.empId, ""); errorProvider1.SetError(userKanri.userName, ""); errorProvider1.SetError(userKanri.kengen, ""); UserKanriSearchServiceInBo userSearchServiceInBo = new UserKanriSearchServiceInBo(); UserKanriSearchService userSearchService = new UserKanriSearchService(); userSearchServiceInBo.empId = userKanri.empId.Text; userSearchServiceInBo.userName = userKanri.userName.Text; userSearchServiceInBo.kengenSelectedIndex = userKanri.kengen.SelectedIndex; userSearchService.setInBo(userSearchServiceInBo); UserKanriSearchServiceOutBo userSearchServiceOutBo = userSearchService.execute(); userKanriDataGridView1.DataSource = userSearchServiceOutBo.usersList; this.userKanriViewSetthing(ref userKanriDataGridView1); }