public bool SaveAuthorityGroup(AuthorityGroupVO authorityGroupVO) { using (AuthorityDAC authorityDAC = new AuthorityDAC()) { return(authorityDAC.SaveAuthorityGroup(authorityGroupVO)); } }
private void btnConfirm_Click(object sender, EventArgs e) { try { if (this.HasEmptyTxt()) { return; } AuthorityGroupVO AuthorityGroupVO = new AuthorityGroupVO { Ath_grp_id = ath_grp_id, Ath_grp_name = txtAth_grp_name.Text.Trim(), Ath_grp_seq = (int)nudAth_grp_seq.Value, Ath_grp_expl = txtAth_grp_expl.Text.Trim(), Ath_grp_use = rdoAth_grp_useY.Checked ? "Y" : "N", Regist_employee = employeeVO.Employee_id }; if (authorityService.SaveAuthorityGroup(AuthorityGroupVO)) { MessageBox.Show("정상적으로 저장되었습니다."); this.DialogResult = DialogResult.OK; this.Close(); } } catch (Exception err) { MessageBox.Show(err.Message); } }
public AuthorityGroupPopupForm(EmployeeVO employeeVO, int ath_grp_id = 0) { try { InitializeComponent(); this.employeeVO = employeeVO; this.ath_grp_id = ath_grp_id; this.Text = ath_grp_id > 0 ? "권한그룹 수정" : "권한그룹 등록"; if (ath_grp_id > 0) { AuthorityGroupVO AuthorityGroupVO = authorityService.GetAuthorityGroup(ath_grp_id); txtAth_grp_name.Text = AuthorityGroupVO.Ath_grp_name; nudAth_grp_seq.Value = AuthorityGroupVO.Ath_grp_seq; txtAth_grp_expl.Text = AuthorityGroupVO.Ath_grp_expl; if (AuthorityGroupVO.Ath_grp_use == "Y") { rdoAth_grp_useY.Checked = true; } else { rdoAth_grp_useN.Checked = true; } } } catch (Exception err) { MessageBox.Show(err.Message); } }
public bool SaveAuthorityGroup(AuthorityGroupVO authorityGroupVO) { return(NotSelectSPJ <AuthorityGroupVO>("SP_SAVE_AUTHORITY_GROUP", authorityGroupVO, "Ath_grp_id", "Ath_grp_name", "Ath_grp_expl", "Ath_grp_seq", "Ath_grp_use", "Regist_employee")); }