public ActionResult EseManagerView(EseManagerModels model) { if (model.act_type == "ins") { //권한 체크=================================================== if (!chk.chkPermission("EseManager", "PER_INSERT")) { return(RedirectToAction("EseMangerView", new { msg = chk.alertStr })); } //=========================================================== if (model.Item.PASSWD != model.Item.PASSWD_CHK) { ViewBag.TempMsg = "비밀번호가 일치 하지 않습니다."; return(View(model)); } } if (model.act_type == "updt") { //권한 체크=================================================== if (!chk.chkPermission("EseManager", "PER_UPDATE")) { return(RedirectToAction("EseMangerView", new { msg = chk.alertStr })); } //=========================================================== } string chkDupl = act.ChkUpdtEseManager(model); if (chkDupl != "") { return(RedirectToAction("EseManagerView", new { msg = chkDupl })); } //라디오버튼 쓰기 model.Item.STATUS = 1; if (model.RadioBoxPop == false) { model.Item.STATUS = 0; } model.Item.GROUP_ID = model.GroupId; //SELECT BOX ARRAY 데이터 설정 model.GroupIdArray = comF.GroupIdSelectBox(); string PublicPopupMsg = act.SetEseManager(model); return(RedirectToAction("EseManagerView", new { seqNo = model.act_key, Msg = PublicPopupMsg })); }
public ActionResult EsmAccountView(string seqNo, string Msg) { //권한 체크=================================================== if (!chk.chkPermission("EsmAccount", "PER_SELECT")) { return(RedirectToAction("Index", "Home", new { msg = chk.alertStr })); } //=========================================================== EsmAccountModels model = new EsmAccountModels(); int pSeqNo = 0; if (int.TryParse(seqNo, out pSeqNo)) { model.act_type = "updt"; model.act_key = pSeqNo; } else { model.act_type = "ins"; model.Item.GROUP_ID = 0; } if (!String.IsNullOrEmpty(Msg)) { ViewBag.PublicPopupMsg = Msg; } model.Item = act.GetEsmAccountView(model); model.RadioBoxPop = false; if (model.Item.STATUS == 1) { model.RadioBoxPop = true; } //SELECT BOX ARRAY 데이터 설정 comF에 그룹 id 추가해야한다. model.GroupIdArray = comF.GroupIdSelectBox(); return(View(model)); }