Exemplo n.º 1
0
        public ActionResult Main(ManagerSearchT searchT)
        {
            // 권한Model : AuthT
            ViewBag.AuthT = AuthT;

            // 관리자정보 가져오기
            /*
            ManagerT managerT = new ManagerBiz().SelectAtManager(searchT.ManagerSn);
            if (managerT == null){
                new Exception("관리자가 존재하지 않습니다.");
            }
            */

            ViewBag.SearchT = searchT;          // 관리자검색 정보
            CmmnCodeT rankT = new CmmnCodeT();
            rankT.cdIndex = "AD_RANK";

            IList<CmmnCodeT> rankCodeList = new CommonBiz().SelectOptCodeList(rankT);   // 직급정보
            ViewBag.rankCodeList = rankCodeList;
            //ViewBag.ManagerT    = managerT;     // 관리자정보

            CmmnCodeT postT = new CmmnCodeT();
            postT.cdIndex = "AD_POST";
            IList<CmmnCodeT> postCodeList = new CommonBiz().SelectOptCodeList(postT);   // 부서정보
            ViewBag.postCodeList = postCodeList;

            CmmnCodeT telT = new CmmnCodeT();
            telT.cdIndex = "BAS_0001";
            IList<CmmnCodeT> telCodeList = new CommonBiz().SelectOptCodeList(telT);   // 전화국번정보
            ViewBag.telCodeList = telCodeList;

            CmmnCodeT celT = new CmmnCodeT();
            celT.cdIndex = "BAS_0002";
            IList<CmmnCodeT> celCodeList = new CommonBiz().SelectOptCodeList(celT);   // 휴대폰국번정보
            ViewBag.celCodeList = celCodeList;

            CmmnCodeT mailT = new CmmnCodeT();
            mailT.cdIndex = "BAS_0003";
            mailT.cdorder = "CDORDER";
            IList<CmmnCodeT> mailCodeList = new CommonBiz().SelectOptCodeList(mailT);   // Email정보
            ViewBag.mailCodeList = mailCodeList;

            GridModelT<ManagerT> gridModel = new GridModelT<ManagerT>();
            gridModel.PageSize = searchT.PageSize;
            gridModel.page = searchT.page;

            gridModel.GridData = new ManagerBiz().SelectAtManagerList(searchT);
            gridModel.TotalCount = 0;

            if (gridModel.GridData.Count > 0)
            {
                gridModel.TotalCount = (int)gridModel.GridData[0].TotalCount;
            }

            return View(gridModel);
        }
Exemplo n.º 2
0
 /// <summary>
 /// 관리자 정보 리스트
 /// </summary>
 /// <param name="search"></param>
 /// <returns></returns>
 public IList<ManagerT> SelectAtManagerList(ManagerSearchT searchT)
 {
     return new ManagerDac().SelectAtManagerList(searchT);
 }
Exemplo n.º 3
0
 /// <summary> 
 /// 관리자 목록 조회 
 /// </summary>
 /// <param name="ManagerSearchT"></param> 
 /// <returns></returns> 
 public IList<ManagerT> SelectAtManagerList(ManagerSearchT searchT)
 {
     return Js_Instance.QueryForList<ManagerT>("ManagerDac.SelectAtManagerList", searchT);
 }