Пример #1
0
        /// <summary>
        /// 회원가입 이메일 발송
        /// </summary>
        /// <param name="userId"></param>
        /// <param name="userSeCode"></param>
        /// <param name="userEmailAdres"></param>
        public void SendJoinMember(string userId, string userSeCode, string userEmailAdres)
        {
            try
            {
                string content = new CommonBiz().ReadEmailTemplete(EmailInfo.EmailTempletePath + "/joinMember.html");

                if (!String.IsNullOrEmpty(content))
                {
                    string userSeCodeNm = "";
                    if (userSeCode == "AC007001")
                    {
                        userSeCodeNm = "개인사용자";
                    }
                    else if (userSeCode == "AC007002")
                    {
                        userSeCodeNm = "기업사용자";
                    }
                    else if (userSeCode == "AC007003")
                    {
                        userSeCodeNm = "기관사용자";
                    }
                    content = content.Replace("$$HOST_URL$$", EmailInfo.EmailSiteUrl);
                    content = content.Replace("$$IMG_PATH$$", Images.PortalImagesPath);
                    content = content.Replace("$$USER_SE_CODE$$", userSeCodeNm);
                    content = content.Replace("$$USER_ID$$", userId);
                    content = content.Replace("$$EMAIL_ADRES$$", userEmailAdres);
                    content = content.Replace("$$JOIN_DATE$$", DateTime.Now.ToString("yyyy") + "년 " + DateTime.Now.ToString("MM") + "월" + DateTime.Now.ToString("dd") + "일");

                    string[] arrToMailAddress = new string[] { userEmailAdres };

                    //이메일 발송
                    new CommonBiz().SendMail(EmailInfo.SenderEmailAddress, arrToMailAddress, "계량종합관리시스템 회원가입 안내", content, true);
                }

            }
            catch (Exception ex)
            {
                //메일보내기 실패
            }
        }
Пример #2
0
        public ActionResult EntrprsMemberRegist(string companyNm, string bizrno, string existYn)
        {
            EntrprsT entrprsT = null;
            bizrno = bizrno.Replace("-", "");
            if (existYn == "Y")
            {
                entrprsT = new EntrprsBiz().SelectEntrprsOfBizrno(bizrno);
            }
            else
            {
                entrprsT = new EntrprsT();
                entrprsT.EntrprsNm = companyNm;
                entrprsT.Bizrno = bizrno;
            }

            //지역전화번호[AC016000] 공통코드 조회
            IList<CmmnCodeT> telnoList = new CommonBiz().SelectCmmnCodeList("AC016000");

            //핸드폰번호[AC017000] 공통코드 조회
            IList<CmmnCodeT> mbtlnumList = new CommonBiz().SelectCmmnCodeList("AC017000");

            //이메일종류[AC018000] 공통코드 조회
            IList<CmmnCodeT> emailList = new CommonBiz().SelectCmmnCodeList("AC018000");

            //기업주소구분코드[AC002000] 공통코드 조회
            IList<CmmnCodeT> entrprsAdresSeCodeList = new CommonBiz().SelectCmmnCodeList("AC002000");

            JoinMembPageT joinMembPageT = new JoinMembPageT();
            joinMembPageT.TelnoList = telnoList;
            joinMembPageT.MbtlnumList = mbtlnumList;
            joinMembPageT.EmailList = emailList;
            joinMembPageT.EntrprsAdresSeCodeList = entrprsAdresSeCodeList;
            joinMembPageT.EntrprsT = entrprsT;

            return View(joinMembPageT);
        }
Пример #3
0
        public ActionResult SearchIdPw()
        {
            //비밀번호힌트[AC024000] 공통코드 조회
            IList<CmmnCodeT> passwordHintSeCodeList = new CommonBiz().SelectCmmnCodeList("AC024000");

            ViewBag.PasswordHintSeCodeList = passwordHintSeCodeList;

            return View();
        }
Пример #4
0
        public ActionResult InsttMemberRegist(string companyNm, string bizrno)
        {
            InsttT insttT = new InsttT();
            insttT.InsttNm = companyNm;
            insttT.Bizrno = bizrno;

            //지역전화번호[AC016000] 공통코드 조회
            IList<CmmnCodeT> telnoList = new CommonBiz().SelectCmmnCodeList("AC016000");

            //핸드폰번호[AC017000] 공통코드 조회
            IList<CmmnCodeT> mbtlnumList = new CommonBiz().SelectCmmnCodeList("AC017000");

            //이메일종류[AC018000] 공통코드 조회
            IList<CmmnCodeT> emailList = new CommonBiz().SelectCmmnCodeList("AC018000");

            //기관구분코드[AC025000] 공통코드 조회
            IList<CmmnCodeT> insttSeCodeList = new CommonBiz().SelectCmmnCodeList("AC025000");

            JoinMembPageT joinMembPageT = new JoinMembPageT();
            joinMembPageT.TelnoList = telnoList;
            joinMembPageT.MbtlnumList = mbtlnumList;
            joinMembPageT.EmailList = emailList;
            joinMembPageT.InsttSeCodeList = insttSeCodeList;
            joinMembPageT.InsttT = insttT;

            return View(joinMembPageT);
        }
Пример #5
0
        public ActionResult IndvdMemberRegist(string userNm, string ipinInnb)
        {
            IndvdlUserT indvdlUserT = new IndvdlUserT();
            indvdlUserT.UserNm = userNm;
            indvdlUserT.IpinInnb = ipinInnb;

            //비밀번호힌트[AC024000] 공통코드 조회
            IList<CmmnCodeT> passwordHintSeCodeList = new CommonBiz().SelectCmmnCodeList("AC024000");

            //지역전화번호[AC016000] 공통코드 조회
            IList<CmmnCodeT> telnoList = new CommonBiz().SelectCmmnCodeList("AC016000");

            //핸드폰번호[AC017000] 공통코드 조회
            IList<CmmnCodeT> mbtlnumList = new CommonBiz().SelectCmmnCodeList("AC017000");

            //이메일종류[AC018000] 공통코드 조회
            IList<CmmnCodeT> emailList = new CommonBiz().SelectCmmnCodeList("AC018000");

            JoinMembPageT joinMembPageT = new JoinMembPageT();
            joinMembPageT.PasswordHintSeCodeList = passwordHintSeCodeList;
            joinMembPageT.TelnoList = telnoList;
            joinMembPageT.MbtlnumList = mbtlnumList;
            joinMembPageT.EmailList = emailList;
            joinMembPageT.IndvdlUserT = indvdlUserT;

            return View(joinMembPageT);
        }
Пример #6
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);
        }