private void ShowInfo(int id) { PManageDepartBB manageDepartBB = new PManageDepartBB(); vPManageDepartData model = new vPManageDepartData(); try { model = manageDepartBB.GetVModel(id); this.empNm.Text = model.empNm.ToString(); this.roleName.Text = model.roleName; this.departNm.Text = model.departNm.ToString(); } finally { manageDepartBB.Dispose(); } }
private void ShowInfo(int id) { PManageDepartBB manageDepartBB = new PManageDepartBB(); vPManageDepartData model = new vPManageDepartData(); try { model = manageDepartBB.GetVModel(id); this.empId.Value = model.empId.ToString(); this.empNm.Value = model.empNm; if (this.roleId.Items.FindByValue(model.roleId.ToString()) != null) { this.roleId.SelectedValue = model.roleId.ToString(); } this.departId.Value = model.departId.ToString(); this.departNm.Value = model.departNm; } finally { manageDepartBB.Dispose(); } }