Ejemplo n.º 1
0
        public ActionResult EseGrade(EseGradeModels model)
        {
            //권한 체크===================================================
            if (!chk.chkPermission("EseGrade", "PER_SELECT"))
            {
                return(RedirectToAction("Index", "Home", new { msg = chk.alertStr }));
            }
            //===========================================================

            //삭제일 경우
            if (model.act_type == "del")
            {
                //권한 체크===================================================
                if (!chk.chkPermission("EseGrade", "PER_DELETE"))
                {
                    return(RedirectToAction("EseGrade", new { msg = chk.alertStr }));
                }
                //===========================================================


                TempData["PublicMsg"] = act.DelEseGrade(model.act_key);                 //삭제
                model.act_type        = "list";
                model.act_key         = 0;
                return(RedirectToAction("EseGrade", model));
            }

            model = act.GetEseGradeList(model);             //리스트 가져오기

            return(View(model));
        }
Ejemplo n.º 2
0
        // GET: Ese 계정 등급 관리
        public ActionResult EseGrade(string msg)
        {
            //권한 체크===================================================
            if (!chk.chkPermission("EseGrade", "PER_SELECT"))
            {
                return(RedirectToAction("Index", "Home", new { msg = chk.alertStr }));
            }
            //===========================================================

            TempData["PublicMsg"] = null;
            if (!string.IsNullOrEmpty(msg))
            {
                TempData["PublicMsg"] = msg;
            }


            EseGradeModels model = new EseGradeModels();

            model.Item.ESE_CODE = (string)Session["ESE_CODE"];

            model = act.GetEseGradeList(model);


            return(View(model));
        }
Ejemplo n.º 3
0
        //WEB_ESE 계정 관리 => 계정 등급 관리
        public EseGradeModels GetEseGradeList(EseGradeModels model)
        {
            string errorStr  = "";
            string listQuery = " SELECT GROUP_ID , GROUP_NAME FROM ese_group WHERE ESE_CODE = '" + model.Item.ESE_CODE + "' order by GROUP_ID ";

            DataTable listDt = getQueryResult(listQuery, out errorStr);


            if (listDt != null && listDt.Rows.Count != 0)
            {
                for (int i = 0; i < listDt.Rows.Count; i++)
                {
                    EseGroup temp = new EseGroup();
                    temp.GROUP_ID   = int.Parse(listDt.Rows[i]["GROUP_ID"].ToString().Trim());
                    temp.GROUP_NAME = listDt.Rows[i]["GROUP_NAME"].ToString().Trim();
                    model.Items.Add(temp);
                    model.chkCnt = i;
                }
            }

            return(model);
        }
Ejemplo n.º 4
0
        //계정 등급 관리 ====================================================================================================
        // GET: Ese ESE STATION Ese 정보 관리 -> 계정 등급 관리
        public ActionResult EseIframeGrade(string msg, string eseCode)
        {
            //권한 체크===================================================
            if (!chk.chkPermission("EseInfo", "PER_SELECT"))
            {
                return(RedirectToAction("Index", "Home", new { msg = chk.alertStr }));
            }
            //===========================================================

            TempData["PublicMsg"] = null;
            if (!string.IsNullOrEmpty(msg))
            {
                TempData["PublicMsg"] = msg;
            }

            EseGradeModels model = new EseGradeModels();

            model.viewEseCode = eseCode;
            model             = act.GetEseGradeList(model, eseCode);

            return(View(model));
        }