diff --git a/Base/Controller/ACommon.cs b/Base/Controller/ACommon.cs index 6564336..6cc0d85 100644 --- a/Base/Controller/ACommon.cs +++ b/Base/Controller/ACommon.cs @@ -34,26 +34,53 @@ namespace NP.Base.Controllers filterContext.Result = new RedirectResult("/Account/Error?_code=" + NP.Base.ENUM.JSONCode.Error + "&_msg=알수없는오류"); } } + /// + /// 권한설정 + /// + /// + /// [HttpPost] public JsonResult SaveUserAuth(String authname) { return JsonOK(Dao.Save("sys.userauth.save", new Hashtable() { { "authname",authname} ,{"uno",SUserInfo.UserNo },{ "uip",GetUserIP()} })); } + /// + /// 권한이름저장 + /// + /// + /// + /// [HttpPost] public JsonResult SaveAuthName(String authname,int usertype) { return JsonOK(Dao.Save("sys.authname.save", new Hashtable() { { "authname", authname }, { "usertype",usertype},{ "uno", SUserInfo.UserNo }, { "uip", GetUserIP() } })); } + /// + /// 권한삭제 + /// + /// + /// + /// [HttpPost] public JsonResult DelUserAuth(int usertype,String authname) { return JsonOK(Dao.Save("sys.userauth.del", new Hashtable() {{ "usertype", usertype },{ "authname",authname}, { "uno", SUserInfo.UserNo }, { "uip", GetUserIP() } })); } + /// + /// 관리자메뉴 불러오기 + /// + /// + /// [HttpPost] public JsonResult GetMenu(int mno) { return JsonBack(Dao.Get("sys.menu", new Hashtable() { { "menuno", mno } }).FirstOrDefault()); } + /// + /// 관리자메뉴 저장 + /// + /// + /// [HttpPost] public JsonResult SaveMenu(VMSystem vm) { @@ -62,6 +89,7 @@ namespace NP.Base.Controllers var sd = vm.savedata.Split(':'); vm.menu = new Menu() { menuno = Convert.ToInt32(sd[0]), pmenuno = Convert.ToInt32(sd[1]), menuorder = Convert.ToInt32(sd[2]), uip = GetUserIP(), uno = SUserInfo.UserNo }; int rtn = Dao.Save("sys.menu.chageposition", vm.menu); + //메뉴저장후 관리자 static 메뉴 초기화 if (rtn > 0) { ResetMenuBase(); @@ -77,6 +105,7 @@ namespace NP.Base.Controllers int rtn = Dao.Save("sys.menu.update", vm.menu); if (rtn > 0) { + //메뉴저장후 관리자 static 메뉴 초기화 ResetMenuBase(); } return JsonOK(rtn, false); @@ -85,6 +114,11 @@ namespace NP.Base.Controllers } return JsonNoAuth(); } + /// + /// 메뉴 삭제 + /// + /// + /// [HttpPost] public JsonResult DeleteMenu(VMSystem vm) { @@ -100,6 +134,11 @@ namespace NP.Base.Controllers } return JsonNoAuth(); } + /// + /// 메뉴권한 저장 + /// + /// + /// [HttpPost] public JsonResult SaveMenuAuth(VMSystem vm) { @@ -121,11 +160,22 @@ namespace NP.Base.Controllers } return JsonNoAuth(); } + /// + /// 권한메뉴 가져오기 + /// + /// + /// + /// [HttpPost] public JsonResult GetAuthMenu(int ano, String aName) { return JsonBackList(Dao.Get("sys.authmenu", ano)); } + /// + /// 메뉴초기화 + /// + /// + /// public JsonResult MENURESET(String ddd) { if (SUserInfo.IsAdmin || "rhksflwkfhrmdls999".Equals(ddd)) @@ -135,7 +185,13 @@ namespace NP.Base.Controllers } return JsonOK(1, true); } - + /// + /// 파일 다운로드 + /// + /// + /// + /// + /// public void DownFile(Int64 fno, int getdel = 0, String loginfo = "", int issubject=0) { Dao.Save("sys.file.down", fno); @@ -165,6 +221,15 @@ namespace NP.Base.Controllers Response.Flush(); Response.End(); } + /// + /// 파일 삭제 + /// + /// + /// + /// + /// + /// + /// [HttpPost] public JsonResult DeleteFile(Int64 key = 0, String fName = "", Int64 fgno = 0, int isSingleFile = 0, String log = "") { @@ -183,6 +248,11 @@ namespace NP.Base.Controllers return JsonOK(1, false); } } + /// + /// 문제 삭제 + /// + /// + /// [HttpPost] public JsonResult DeleteQuestionItem(Int64 qino) { @@ -194,6 +264,11 @@ namespace NP.Base.Controllers } return JsonOK(0, false); } + /// + /// 에디터 파일 첨부 + /// + /// + /// [HttpPost] public JsonResult UploadEditorImageUrl(String fd) { @@ -203,6 +278,12 @@ namespace NP.Base.Controllers } return JsonNoApply(); } + /// + /// YNP잔재 + /// + /// + /// + /// [HttpPost] public ActionResult GetUserList(int ut, int cno) { @@ -302,14 +383,25 @@ namespace NP.Base.Controllers UserNo = (UserNo ?? 0) < 1 ? (Int64?)null : UserNo; return JsonOK(Dao.Get("users.emailcheck", new Hashtable() { { "UserNo", UserNo }, { "Email", email }, { islogin? "IsLoginUser": "IsResumeUser", 1 } }).First(), true); } - + /// + /// 공통코드 + /// + /// + /// + /// [HttpPost] public JsonResult ComCode(String cg, String cn) { return JsonBack(new JsonRtn() { code = 1000, obj = Dao.Get("sys.comcode.list", new Hashtable() { { "cgroup", cg }, { "cnamelike", cn},{ "orderby", "a.cname"} }) }); } - + /// + /// 쪽지삭제 + /// + /// + /// + /// + /// [HttpPost] public JsonResult DelMemo(String sendrcv, String mnos = "0", bool isall = false) { @@ -331,6 +423,11 @@ namespace NP.Base.Controllers return JsonOK(Dao.Save("common.memo.delete" + sendrcv, mm)); } } + /// + /// 메모발송 + /// + /// + /// [HttpPost] public JsonResult SaveMemo(Memo m) { @@ -355,7 +452,11 @@ namespace NP.Base.Controllers m.uip = GetUserIP(); return JsonOK(Dao.Save("common.memo.insertmulti", m)); } - + /// + /// 문자발송 + /// + /// + /// [HttpPost] public JsonResult SaveSms(Memo m) { @@ -407,7 +508,14 @@ namespace NP.Base.Controllers } return JsonOK(0); } - + /// + /// 공통코드 + /// + /// + /// + /// + /// + /// [HttpPost] public JsonResult GetComCode(String gcode, int? ccode, int? pcode, int? isuse) { @@ -421,21 +529,57 @@ namespace NP.Base.Controllers } return JsonBackList(Dao.Get("sys.comcode.list", new Hashtable() { { "cgroup", gcode }, { "ccode", ccode }, { isuse == null ? "all" : "isuse", isuse == null ? 1 : isuse } })); } + /// + /// 공통코드(그룹) 수정 + /// + /// + /// + /// [HttpPost] public JsonResult UpdateCgroup(String cgroup, String cgroupname) { return JsonOK(Dao.Save("mm.comcode.groupupdate", new Hashtable() { { "cgroup", cgroup }, { "cgroupname", cgroupname } }), false); } + /// + /// 공통코드 신규저장 + /// + /// + /// + /// + /// + /// [HttpPost] public JsonResult SaveNewcCode(String cg, string cn, int co = 0, int iu = 1) { return JsonOK(Dao.Save("mm.comcode.insert", new ComCode() { cname = cn, cgroup = cg, isuse = iu, corder = co, uno = SUserInfo.UserNo, uip = GetUserIP() })); } + /// + /// 공통코드 수정 + /// + /// + /// + /// + /// + /// [HttpPost] public JsonResult SaveCCode(int cc, string cn, int? co = null, int? iu = null) { return JsonOK(Dao.Save("mm.comcode.update", new ComCode() { ccode = cc, cname = cn, corder = co??-1, isuse = iu??-1, uno = SUserInfo.UserNo, uip = GetUserIP()})); } + /// + /// 팝업 저장 + /// + /// + /// + /// + /// + /// + /// + /// + /// + /// + /// + /// [HttpPost] [ValidateInput(false)] public JsonResult SavePopup(int pno, String ptitle, int leftpx, int toppx, int zindex, int pwidth, int pheight, int isopen, String purl, String pcontents) @@ -447,6 +591,11 @@ namespace NP.Base.Controllers } return JsonOK(0); } + /// + /// 고객사배너저장 + /// + /// + /// [HttpPost] public JsonResult SaveBanner(Banner b) { @@ -467,16 +616,31 @@ namespace NP.Base.Controllers } return JsonOK(0); } + /// + /// 팝업 가져오기 + /// + /// + /// [HttpPost] public JsonResult Popup(int pno) { return JsonBack(Dao.Get("mm.popups", new System.Collections.Hashtable() { { "pno", pno } }).First()); } + /// + /// 고객사배너 가져오기 + /// + /// + /// [HttpPost] public JsonResult Banner(int bno) { return JsonBack(Dao.Get("mm.banners", new System.Collections.Hashtable() { { "bno", bno } }).First()); } + /// + /// 메뉴페이지 저장 + /// + /// + /// [HttpPost] [ValidateInput(false)] public JsonResult SaveMenuPage(MenuPage m) @@ -490,11 +654,21 @@ namespace NP.Base.Controllers } return JsonOK(0); } + /// + /// 메뉴페이지 가져오기 + /// + /// + /// [HttpPost] public JsonResult MenuPage(int pno) { return JsonBack(Dao.Get("mm.pages", new System.Collections.Hashtable() { { "pno", pno } }).First()); } + /// + /// 이메일 발송 + /// + /// + /// [HttpPost] [ValidateInput(false)] public JsonResult EmailSend(VMCC vm) @@ -587,6 +761,11 @@ namespace NP.Base.Controllers } return JsonBack(new JsonRtn() { code = 1000, obj = okcount, msg = string.Format("
전체대상: {0}
발송성공: {1}
수신거부/이메일주소오류: {2}", data.Count(), okcount, bancount) }); } + /// + /// 학습독려용 이메일 발송 + /// + /// + /// [HttpPost] [ValidateInput(false)] public JsonResult EmailSendForEncourage(VMLect vm) @@ -659,11 +838,22 @@ namespace NP.Base.Controllers } return JsonBack(new JsonRtn() { code = 1000, obj = okcount, msg = string.Format("
전체대상: {0}
발송성공: {1}
수신거부/이메일주소오류: {2}", data.Count(), okcount, bancount) }); } + /// + /// 이메일 가져오기 + /// + /// + /// + /// [HttpPost] public JsonResult GetEmail(Int64 no, string type="") { return JsonBack(Dao.Get("common.emailsend.get" + type, no).First()); } + /// + /// 좌측메뉴바 토글 + /// + /// + /// [HttpPost] public JsonResult LeftMenuToggle(bool b) { @@ -677,7 +867,12 @@ namespace NP.Base.Controllers } return JsonOK(1); } - + /// + /// YNP잔재 + /// + /// + /// + /// [HttpPost] public JsonResult SendPW(Int64 uno, String mno) { @@ -690,7 +885,15 @@ namespace NP.Base.Controllers } return JsonOK(0); } - + /// + /// 엑셀업로드 + /// + /// + /// + /// + /// + /// + /// [HttpPost] public JsonResult UploadExcel(String uploadjob, String p, HttpPostedFileBase uploadfile, int intval = -1, int intval2 = -1) { @@ -700,6 +903,7 @@ namespace NP.Base.Controllers { switch (uploadjob) { + //시험인원등록 case "examuserregbatch": { var data = new Lib.ExcelToEntity(uploadfile).Read(2, 1).ToList(); @@ -759,6 +963,7 @@ namespace NP.Base.Controllers } return JsonOK(Dao.Save("exam.examuser.regbatch", reu)); } + //시험인원결과등록 case "examuserbatch": { var data = new Lib.ExcelToEntity(uploadfile).Read(2, 1).ToList(); @@ -809,6 +1014,7 @@ namespace NP.Base.Controllers } return JsonBack(new JsonRtn() { code = 1000, obj = data }); } + //교육생등록 case "lectbatch": { var data = new Lib.ExcelToEntity(uploadfile).Read(2, 1).ToList(); @@ -975,6 +1181,7 @@ namespace NP.Base.Controllers } return JsonBack(new JsonRtn() { code = 1000, obj = data }); } + //ncs4등록(현재안씀) case "ncs4batch": { var data = new Lib.ExcelToEntity(uploadfile).Read(2, 1).ToList(); @@ -1045,6 +1252,7 @@ namespace NP.Base.Controllers } return JsonBack(new JsonRtn() { code = 1000, obj = data }); } + //수강생 등록 case "userbatch": { var data = new Lib.ExcelToEntity(uploadfile).Read(2, 1).ToList(); @@ -1107,6 +1315,7 @@ namespace NP.Base.Controllers var muser = new Users() { Us = data, uno = SUserInfo.UserNo, uip = GetUserIP() }; return JsonOK(Dao.Save("users.batch", muser), false); } + //강좌회차 등록 case "cminningbatch": { //수강신청이 존재하는지 확인한다. @@ -1191,6 +1400,7 @@ namespace NP.Base.Controllers } return JsonOK(Dao.Save("cm.cminning.batch", cmi)); } + //문제등록 case "questionbatch": { var seq = 1; @@ -1310,6 +1520,7 @@ namespace NP.Base.Controllers return JsonOK(Dao.SaveQuestionBatch(data, SUserInfo.UserNo, GetUserIP()), false); } } + //컨텐츠 등록 case "contentsbatch": { var data = new Lib.ExcelToEntity(uploadfile).Read(2, 1).ToList(); @@ -1431,6 +1642,7 @@ namespace NP.Base.Controllers return JsonOK(Dao.SaveContentsBatch(cts), false); } } + //증빙서류 일괄등록 case "documentbatch": { var data = new Lib.ExcelToEntity(uploadfile).Read(2, 1).ToList(); @@ -1506,11 +1718,17 @@ namespace NP.Base.Controllers } return JsonBack(new JsonRtn() { code = 1, msg = "엑셀파일을 확인하세요.", obj = "" }); } + //sms발송 조회 [HttpPost] public JsonResult GetSms(Int64 mno) { return JsonBack(Dao.Get("common.smssend.get", mno)); } + /// + /// KFCF 잔재 + /// + /// + /// [HttpPost] public JsonResult NCSSave(NCS n) { @@ -1626,6 +1844,14 @@ namespace NP.Base.Controllers } return JsonOK(Dao.Save("cm.ncs4.in.batch", ncs.inquery.Substring(1))); } + /// + /// KFCF 잔재 + /// + /// + /// + /// + /// + /// public JsonResult SEM(int type, String usernos,String title, String msg) { var m = new Memo() { mcontents = msg, uno = SUserInfo.UserNo, uip = GetUserIP(), Users = new List() { } }; @@ -1870,6 +2096,12 @@ namespace NP.Base.Controllers } return JsonOK(0); } + /// + /// 관리자 - 사용자 인증키 + /// + /// + /// + /// [HttpPost] public JsonResult AuthKey(int authtype, String jobkey) { @@ -1877,17 +2109,34 @@ namespace NP.Base.Controllers var randkey = r.Next(10000000, 99999999); return JsonOK(Dao.Save("common.authkey.save", new Hashtable() { { "authtype", authtype },{ "userno", SUserInfo.UserNo },{ "jobkey", jobkey },{ "randkey", randkey } }) > 0 ? randkey : 0); } + /// + /// 관리자 - 사용자 인증키 부여 + /// + /// + /// [HttpPost] public JsonResult SetAuthKey(Data d) { d.intval30 = GetRand(); return JsonOK(Dao.Save("common.authkey.set", d) > 0 ? d.intval30 : 0); } + /// + /// 기간일수 + /// + /// + /// + /// [HttpPost] public JsonResult DayTerm(DateTime s, DateTime e) { return JsonBack(new JsonRtn() { code = 1000, obj = (e - s).TotalDays }); } + /// + /// KFCF잔재 + /// + /// + /// + /// [HttpPost] public JsonResult NCSDelCheck(int ndepth, int ncsno) { diff --git a/Base/Controller/ACommonCC.cs b/Base/Controller/ACommonCC.cs index 1bd02e3..120cdf5 100644 --- a/Base/Controller/ACommonCC.cs +++ b/Base/Controller/ACommonCC.cs @@ -12,6 +12,11 @@ namespace NP.Base.Controllers { public partial class ACommonController : NP.Base.BaseController { + /// + /// 게시판Master저장 + /// + /// + /// [HttpPost] public JsonResult BoardMasterSave(VMCC vm) { @@ -60,16 +65,32 @@ namespace NP.Base.Controllers } return JsonOK(vm.BM.bmno); } + /// + /// 게시판말머리 가져오기 + /// + /// + /// [HttpPost] public JsonResult BoardMasterOpeningGet(int bmno) { return JsonBack(Dao.Get("board.bmos", bmno)); } + /// + /// 게시판 설정 가져오기 + /// + /// + /// + /// [HttpPost] public JsonResult BoardMasterGet(int? asno, int bmposition) { return JsonBack(Dao.Get("board.bms", new System.Collections.Hashtable() { { "asno", asno }, { "bmposition", bmposition }, { "isdefaults", asno==null ? "0,2" : "3" } })); } + /// + /// 게시글 저장 + /// + /// + /// [HttpPost] [ValidateInput(false)] public JsonResult BoardSave(VMCC vm) @@ -101,12 +122,21 @@ namespace NP.Base.Controllers return JsonOK(Dao.Save("board.up", vm.Board)); } } - + /// + /// 게시글 삭제 + /// + /// + /// [HttpPost] public JsonResult BoardDel(Int64 bno) { return JsonOK(Dao.Save("board.del", new Hashtable() { { "bno", bno }, { "uno", SUserInfo.UserNo }, { "uip", GetUserIP() } })); } + /// + /// 게시글 댓글 저장 + /// + /// + /// [HttpPost] public JsonResult BoardCMTSave(BoardCMT bc) { diff --git a/Base/Controller/ACommonCM.cs b/Base/Controller/ACommonCM.cs index 757019f..de85e09 100644 --- a/Base/Controller/ACommonCM.cs +++ b/Base/Controller/ACommonCM.cs @@ -12,6 +12,11 @@ namespace NP.Base.Controllers { public partial class ACommonController : NP.Base.BaseController { + /// + /// 기수저장 + /// + /// + /// [HttpPost] public JsonResult TermSave(VMCM vm) { @@ -23,6 +28,11 @@ namespace NP.Base.Controllers vm.Term.uip = GetUserIP(); return JsonOK(Dao.Save("cm.term."+ GetIU(vm.Term.tmno), vm.Term)); } + /// + /// 과정분류저장 + /// + /// + /// [HttpPost] public JsonResult CGSave(CG cg) { @@ -40,6 +50,12 @@ namespace NP.Base.Controllers } return JsonOK(Dao.Save("cm.cg." + GetIU(cg.cgno), cg)); } + /// + /// 과정분류 가져오기 + /// + /// + /// + /// [HttpPost] public JsonResult CGGet(int cgno = 0, int pcgno = 0) { @@ -53,16 +69,42 @@ namespace NP.Base.Controllers } return JsonNoData(); } + /// + /// 과정을 통해 강좌 생성 + /// + /// + /// [HttpPost] public JsonResult CMCreateByCMMaster(int cgno) { return JsonBackList(Dao.Get("cm.datacreatecmbycmmaster", cgno)); } + /// + /// 과정,강좌 가져오기 + /// + /// + /// + /// + /// + /// + /// + /// + /// + /// + /// + /// + /// + /// [HttpPost] public JsonResult CMGet(int? ismaster,int? iscurrent,String orderby, int? cgno, String cname, String notcmnos, int? notcmno, int? pno, int? cshape, int? tmno, String cshapes, int? isall) { return JsonBackList(Dao.Get("cm.cms", new Hashtable { { "tmno", tmno }, { "cshape", cshape },{ "cgno", cgno }, { "isuse"+(isall==1?"x":""), 1 }, { "ismaster" + ((ismaster??0) == 91?"02":""), ismaster},{ "listcolumn",1 }, { "cname", cname },{ "notcmnos", notcmnos==""?null:notcmnos }, { "notcmno", (notcmno ?? 0) < 1 ? (int?)null : notcmno }, { "pagenum", pno }, { "pagerowsize", 10 },{ "cshapes", cshapes }, { "iscurrent", iscurrent }, { "orderby", orderby } })); } + /// + /// KFCF잔재 + /// + /// + /// [HttpPost] public JsonResult BookFind(String bkname) { @@ -105,6 +147,11 @@ namespace NP.Base.Controllers { return JsonOK(Dao.Save("cm.bookdel", new Hashtable() { {"bkno",bkno } })); } + /// + /// 강좌 저장 + /// + /// + /// [HttpPost] [ValidateInput(false)] public JsonResult CMSave(VMCM vm) @@ -164,6 +211,11 @@ namespace NP.Base.Controllers } return JsonOK(vm.CM.cmno); } + /// + /// KFCF잔재 + /// + /// + /// [HttpPost] public JsonResult CMPCSave(VMCM vm) { @@ -235,6 +287,11 @@ namespace NP.Base.Controllers Dao.Save("cm.cmpccm.save", vm.CM); return JsonOK(vm.CM.cmno); } + /// + /// 강좌 삭제 + /// + /// + /// [HttpPost] public JsonResult CMDel(int cmno) { @@ -245,31 +302,66 @@ namespace NP.Base.Controllers } return JsonOK(Dao.Save("cm.del", new Hashtable() { { "cmno", cmno },{"uno",SUserInfo.UserNo },{"uip",GetUserIP() } })); } + /// + /// 강좌회차삭제 + /// + /// + /// + /// [HttpPost] public JsonResult CMInningDel(int im, Int64 cmino) { return JsonOK(Dao.Save("cm.cminning.del" + (im==1?"2":""), cmino)); } + /// + /// 교육장교육회차 삭제 + /// + /// + /// + /// [HttpPost] public JsonResult CMInningByScdDel(int im, Int64 cmino) { return JsonOK(Dao.Save("cm.cminning.del3" + (im == 1 ? "2" : ""), cmino)); } + /// + /// 교육일정삭제 + /// + /// + /// + /// [HttpPost] public JsonResult CMInningScdDel(int im, Int64 cmisno) { return JsonOK(Dao.Save("cm.cminningscd.del" + (im == 1 ? "2" : ""), cmisno)); } + /// + /// 강좌 순차학습 저장(0:임의학습,1:순차학습) + /// + /// + /// + /// [HttpPost] public JsonResult CMSeqSave(int cmno, int isseq) { return JsonOK(Dao.Save("cm.cmseqsave", new Hashtable() { { "cmno", cmno },{ "isseq", isseq }, { "uno", SUserInfo.UserNo }, { "uip", GetUserIP() } })); } + /// + /// 강좌회차 가져오기 + /// + /// + /// [HttpPost] public JsonResult CMInningGet(Int64 cmino) { return JsonBack(Dao.Get("cm.cminnings", new Hashtable() { { "cmino", cmino } }).First()); } + /// + /// 교육일정 가져오기 + /// + /// + /// + /// [HttpPost] public JsonResult CMInningScdGet(Int64 cmino ,Int64 cmisno) { @@ -278,6 +370,11 @@ namespace NP.Base.Controllers data.eend2 = data.eend.ToString("yyyy-MM-dd HH:mm"); return JsonBack(data); } + /// + /// 강좌회차저장 + /// + /// + /// [HttpPost] public JsonResult CMInningSave(CMInning cmi) { @@ -308,6 +405,11 @@ namespace NP.Base.Controllers } return JsonOK(rtn, true); } + /// + /// 강좌교육일정 저장 + /// + /// + /// [HttpPost] public JsonResult CMInningScdSave(CMinningscd cmis) { @@ -330,18 +432,34 @@ namespace NP.Base.Controllers } return JsonOK(rtn, true); } - + /// + /// 컨텐츠 검색 + /// + /// + /// + /// + /// [HttpPost] public JsonResult ContentFind(int? cmno, String ctname, int pno) { return JsonBackList(Dao.Get("cm.contents", new Hashtable() { { "cmno", cmno }, { "ctname", ctname }, { "pagenum", pno }, { "pagerowsize", 10 },{"isuse",1 } })); } + /// + /// 강좌평가정보 + /// + /// + /// [HttpPost] public JsonResult CMEVSave(CMEV cmev) { cmev.uno = SUserInfo.UserNo; cmev.uip = GetUserIP(); return JsonOK(Dao.Save("cm.cmevsave", cmev)); } + /// + /// 강좌 시험 저장 + /// + /// + /// [HttpPost] public JsonResult CMEXSave(VMCM vm) { @@ -402,16 +520,32 @@ namespace NP.Base.Controllers else if (extype == 31 || extype == 32){ if (RSSaveValid(no) == "") { return JsonOK(Dao.Save("cm.cmrs.del", no)); } } return JsonOK(0); } + /// + /// 문제 삭제 + /// + /// + /// [HttpPost] public JsonResult QuestionDel(String qnos) { return JsonOK(Dao.Save("cm.question.del", new Hashtable() { { "qnos", qnos } }), true); } + /// + /// 문제사용여부변경 + /// + /// + /// + /// [HttpPost] public JsonResult QuestionChangeUYN(String qnos, int flag) { return JsonOK(Dao.Save("cm.question.isusechange", new Hashtable() { { "qnos", qnos }, { "isuse", flag == 8 ? 1 : 0 } }), true); } + /// + /// 문제저장 + /// + /// + /// [HttpPost] [ValidateInput(false)] public JsonResult QuestionSave(VMCM vm) @@ -440,6 +574,11 @@ namespace NP.Base.Controllers } return JsonOK(Dao.SaveQuestion(vm.Question, 1), false); } + /// + /// 강좌과제저장 + /// + /// + /// [HttpPost] public JsonResult CMSDSave(VMCM vm) { @@ -459,6 +598,11 @@ namespace NP.Base.Controllers } return JsonOK(Dao.Save("cm.cmsd.uplock", vm.CMSD)); } + /// + /// 강좌설문저장 + /// + /// + /// [HttpPost] public JsonResult CMRSSave(VMCM vm) { @@ -483,6 +627,11 @@ namespace NP.Base.Controllers } return JsonOK(Dao.Save("cm.cmrs.uplock", vm.CMRS)); } + /// + /// 강좌메뉴권한 저장 + /// + /// + /// [HttpPost] public JsonResult CMMenuSave(VMCM vm) { @@ -490,6 +639,11 @@ namespace NP.Base.Controllers vm.CMMenu.bmnos = vm.CMMenu.bmnos == "" ? null : vm.CMMenu.bmnos; return JsonOK(Dao.Save("cm.cmmenu.up", vm.CMMenu)); } + /// + /// 설문저장 + /// + /// + /// [HttpPost] public JsonResult RSCSave(VMCM vm) { @@ -529,7 +683,14 @@ namespace NP.Base.Controllers } return Json(0); } - + /// + /// 강좌복제(저장) + /// + /// + /// + /// + /// + /// [HttpPost] public JsonResult CMCopy(int cmno, String cname, int? tmno = null, bool nomaster = false) { @@ -609,6 +770,12 @@ namespace NP.Base.Controllers } return JsonOK(Dao.CMCopy(cmno,uno,uip,datas, tmno == null?1:0, tmno, cname)); } + /// + /// KFCF잔재 + /// + /// + /// + /// [HttpPost] public JsonResult CMCheck(int cmno, String check) { @@ -627,11 +794,22 @@ namespace NP.Base.Controllers } return JsonOK(0); } + /// + /// 컨텐츠페이지 삭제 + /// + /// + /// + /// [HttpPost] public JsonResult CTPDel(int ctno, int cpno) { return JsonOK(Dao.Save("cm.ctpdel", new Hashtable() { { "ctno", ctno }, { "cpno", cpno }, { "uno", SUserInfo.UserNo}, {"uip", GetUserIP() } })); } + /// + /// 컨텐츠 저장 + /// + /// + /// [HttpPost] [ValidateInput(false)] public JsonResult CTSave(VMCM vm) @@ -775,6 +953,12 @@ namespace NP.Base.Controllers } } } + /// + /// 컨텐츠 삭제 + /// + /// + /// + /// [HttpPost] public JsonResult CTDel(int ctno = 0, String ctnos = "") { @@ -787,6 +971,11 @@ namespace NP.Base.Controllers return JsonOK(Dao.Save("cm.ct.del2", new Hashtable() { { "ctnos", ctnos }, { "uno", SUserInfo.UserNo }, { "uip", GetUserIP() } })); } } + /// + /// 강의실게시판 강좌목록 + /// + /// + /// [HttpPost] public JsonResult CMGetForBoard(int tmno) { @@ -796,12 +985,22 @@ namespace NP.Base.Controllers } return JsonBack(Dao.Get("cm.cms", new System.Collections.Hashtable() { { "tmno", tmno }, { "ismaster", 0 }, { "orderby", "d.cname,d.classno" } })); } + /// + /// 게시판목록 + /// + /// + /// [HttpPost] public JsonResult BMGetForBoard(int cmno) { CMMenu cmmenu = Dao.Get("cm.cmmenus", new System.Collections.Hashtable() { { "cmno", cmno } }).First(); return JsonBack(Dao.Get("board.bms", new System.Collections.Hashtable() { { "bmposition", 1 },{"bmnos",cmmenu.bmnos } })); } + /// + /// KFCF잔재 + /// + /// + /// [HttpPost] public JsonResult CMCalc(String data) { @@ -832,12 +1031,21 @@ namespace NP.Base.Controllers { return JsonBack(new JsonRtn() { code = 1000 ,obj = Dao.Get("cm.cmcalc.print", cmno)}); } + /// + /// 강좌패키지 가져오기 + /// + /// + /// [HttpPost] public JsonResult CMPCGet(int pcno) { return JsonBack(Dao.Get("cm.pcms", new System.Collections.Hashtable() { { "pcno", pcno } })); } - + /// + /// 문제가져오기 + /// + /// + /// [HttpPost] public JsonResult QuestionGet(int qno) { diff --git a/Base/Controller/ACommonCRoom.cs b/Base/Controller/ACommonCRoom.cs index 08f214a..bd44e4d 100644 --- a/Base/Controller/ACommonCRoom.cs +++ b/Base/Controller/ACommonCRoom.cs @@ -17,12 +17,27 @@ namespace NP.Base.Controllers { public partial class ACommonController : NP.Base.BaseController { + /// + /// 시험로그확인 + /// + /// + /// + /// [HttpPost] public JsonResult LogSetExam(int exno, int userno) { LogSet(new ActLog() { logtype = 80, logtarget = 21, logdata = "시험번호: " + exno, userno = userno, uno = SUserInfo.UserNo, uip = GetUserIP() }); return JsonOK(1); } + /// + /// 수강기간변경 + /// + /// + /// + /// + /// + /// + /// [HttpPost] public JsonResult LectSEDateChange(Int64 lectno, string sdate, string edate, int pstatus, int rstatus) { @@ -32,6 +47,13 @@ namespace NP.Base.Controllers } return JsonOK(Dao.Save("lect.sedate.change", new Hashtable() { { "lectno", lectno }, { "sdate", sdate }, { "edate", edate + " 23:59:59" }, { "uno", SUserInfo.UserNo }, { "uip", GetUserIP() } })); } + /// + /// 수강상태변경 + /// + /// + /// + /// + /// [HttpPost] public JsonResult LectStatus(Int64 lectno, int status,int pstatus) { @@ -41,6 +63,13 @@ namespace NP.Base.Controllers } return JsonOK(Dao.Save("lect.status", new Hashtable() { { "lectno", lectno }, { "status", status }, { "uno", SUserInfo.UserNo }, { "uip", GetUserIP() } })); } + /// + /// 수강승인상태변경 + /// + /// + /// + /// + /// [HttpPost] public JsonResult LectStatus3(Int64 lectno, int status, int pstatus) { @@ -50,6 +79,14 @@ namespace NP.Base.Controllers } return JsonOK(Dao.Save("lect.status3", new Hashtable() { { "lectno", lectno }, { "status", status }, { "uno", SUserInfo.UserNo }, { "uip", GetUserIP() } })); } + /// + /// 수강승인상태변경 + /// + /// + /// + /// + /// + /// [HttpPost] public JsonResult LectStatus2(string lectnos, int status, string cname, string emailinfos) { @@ -72,16 +109,34 @@ namespace NP.Base.Controllers return JsonOK(rtn); } + /// + /// 변경가능한 강좌목록 + /// + /// + /// [HttpPost] public JsonResult CMForChange(int cmno) { return JsonBack(Dao.Get("lect.cmforchange", cmno)); } + /// + /// 수강강좌 변경 + /// + /// + /// + /// [HttpPost] public JsonResult LectChange(Int64 lectno, int cmno) { return JsonOK(Dao.Save("lect.lectchange", new Hashtable() { { "lectno", lectno }, { "cmno", cmno }, { "uno", SUserInfo.UserNo }, { "uip", GetUserIP() } })); } + /// + /// 교육생등록 + /// + /// + /// + /// + /// [HttpPost] public JsonResult LECTReg(int ptype, int payamt, PPLog pplog) { @@ -205,6 +260,11 @@ namespace NP.Base.Controllers } return JsonOK(Dao.SavePay(pay, true, true)); } + /// + /// 교육생 일괄등록 검증 + /// + /// + /// [HttpPost] public JsonResult LectBatch(String datas) { @@ -232,6 +292,11 @@ namespace NP.Base.Controllers //패키지강좌 교육생별 등록 return JsonOK(Dao.SavePayBatch(lectdatas.Substring(1), SUserInfo.UserNo, GetUserIP())); } + /// + /// 학습독려설정 + /// + /// + /// [HttpPost] public JsonResult SCDLectSave(String sd) { @@ -288,6 +353,12 @@ namespace NP.Base.Controllers examuser.uno = SUserInfo.UserNo; examuser.uip = GetUserIP(); examuser.status = 1; examuser.pstatus = 4; examuser.avrg = 0; return JsonOK(Dao.Save("exam.examuser.save", examuser)); } + /// + /// 자격검정 응시대상자 삭제 + /// + /// + /// + /// [HttpPost] public JsonResult ExamUserDel(String usernos, int exno) { @@ -299,6 +370,12 @@ namespace NP.Base.Controllers //return JsonOK(Dao.Save("exam.examuserdel", new Hashtable() { { "exno", exno }, { "userno", eunos } })); return JsonOK(Dao.Save("exam.examuser.del", new Hashtable() { { "exno", exno }, { "usernos", usernos } })); } + /// + /// KFCF잔재 + /// + /// + /// + /// [HttpPost] public JsonResult PayDVRSave(Int64 payno, String dvrcode) { @@ -328,6 +405,13 @@ namespace NP.Base.Controllers } return JsonOK(m.Users.Where(w => w.isok == 1).Count()); } + /// + /// 오프라인 출결 현황 + /// + /// + /// + /// + /// [HttpPost] public JsonResult AttOff(Int64 cmino, bool isEnter, Int64 lectno) { @@ -347,6 +431,12 @@ namespace NP.Base.Controllers } return JsonOK(-2); } + /// + /// KFCF잔재 + /// + /// + /// + /// [HttpPost] public JsonResult EUserGet(int pstatus = 0, int exno = 0) { @@ -438,6 +528,13 @@ namespace NP.Base.Controllers } return JsonBack(new JsonRtn() { code = 1000, msg = "OK", obj = new { cancelcount } }); } + /// + /// 교육일정목록 + /// + /// + /// + /// + /// [HttpPost] public JsonResult CMInningGetForOff(Int64? cmino,Int64? cmisno,Int64? lectno) { @@ -446,6 +543,14 @@ namespace NP.Base.Controllers rtn.Add("li", Dao.Get("lect.lectinnings.bycmino", new Hashtable() { { "cmino", cmino }, { "cmisno", cmisno },{"lectno",lectno } })); return JsonBack(rtn); } + /// + /// 오프라인강좌 출결현황 저장 + /// + /// + /// + /// + /// + /// [HttpPost] public JsonResult OffAttSave(Int64 cmino, String lis, Int64? fgno,Int64? fgnooff) { @@ -475,6 +580,12 @@ namespace NP.Base.Controllers } return JsonOK(Dao.Save("att.off.save", cmi)); } + /// + /// 교육일정 오프라인 출결현황 저장 + /// + /// + /// + /// [HttpPost] public JsonResult offattscdsave(int istatus,String userinfos) { @@ -495,21 +606,63 @@ namespace NP.Base.Controllers } return JsonOK(Dao.Save("att.scd.save", cmi)); } + /// + /// 강제출석처리 + /// + /// + /// + /// + /// [HttpPost] public JsonResult AttABS(Int64 lectno, Int64 cmino, String reason) { return JsonOK(Dao.Save("att.abs", new Hashtable() { { "lectno", lectno }, { "cmino", cmino }, { "statusreason", reason }, { "uno", SUserInfo.UserNo }, { "uip", GetUserIP() } }) == 2 ? 1 : 0); } + /// + /// 수강페이지로그 + /// + /// + /// + /// + /// + /// [HttpPost] public JsonResult PageLogs(int userno, String start, String end, int logsite) { return JsonBack(Dao.Get("lect.pagelogs", new System.Collections.Hashtable() { { "start", start }, { "end", end + " 23:59:59" }, { "userno", userno }, { "logsite", logsite } })); } + /// + /// 시험응시목록 + /// + /// + /// + /// + /// + /// [HttpPost] public JsonResult LectEXes(int cmno, int exno, int? isrebate = null, int? estate = null) { return JsonBack(Dao.Get("lect.lectexes", new System.Collections.Hashtable() { { "cmno", cmno }, { "exno", exno }, { "isrebate", isrebate }, { "estate", estate } })); } + /// + /// 시험응시목록(전체) + /// + /// + /// + /// + /// + /// + /// + /// + /// + /// + /// + /// + /// + /// + /// + /// + /// public JsonResult LectAllEXes(int pagenum, int pagerowcount,int extype, String edate, String cname, String cnamestr, String searchtype, String searchtext,String sdateall,String edateall,String asname, int? studyplace = null, int? iscomplete = null, int? cshape = null, int? sdstate = null) { pagenum = pagenum < 1 ? 1 : pagenum; @@ -517,16 +670,34 @@ namespace NP.Base.Controllers return JsonBack(Dao.Get("lect.lectexes.all", new System.Collections.Hashtable() { {"extype",extype },{ "estate", sdstate }, { "pagenum", pagenum }, { "pagerowsize", pagerowcount }, { "edate", edate },{"sdateall",sdateall },{"edateall",edateall }, { "cshape", cshape }, { "cname", cname }, { "cnamestr", cnamestr }, { "iscomplete", iscomplete }, { "studyplace", studyplace }, { "searchtype", searchtype }, { "searchtext", searchtext },{"asname",asname } })); } + /// + /// 재응시처리 + /// + /// + /// + /// [HttpPost] public JsonResult ReExam(int exno, Int64 lectno) { return JsonOK(Dao.Save("lect.reexam", new Hashtable() { { "exno", exno }, { "lectno", lectno }, { "uno", SUserInfo.UserNo }, { "uip", GetUserIP() } }) > 1 ? 1 : 0); } + /// + /// 재응시처리로그 + /// + /// + /// + /// [HttpPost] public JsonResult ReExamLog(int exno, Int64 lectno) { return JsonBack(Dao.Get("lect.reexam.log", new System.Collections.Hashtable() { { "exno", exno }, { "lectno", lectno } })); } + /// + /// 시험응시 정보 목록 + /// + /// + /// + /// [HttpPost] public JsonResult LectEX(Int64 lectno, int exno) { @@ -540,6 +711,14 @@ namespace NP.Base.Controllers rtn.Add("qis", Dao.Get("cm.questionitems", new Hashtable() { { "qnos", string.Join(",", lectexq.Select(s => s.qno)) } })); return JsonBack(rtn); } + /// + /// 응시점수 변경 + /// + /// + /// + /// + /// + /// [HttpPost] public JsonResult LectEXQPoint(int exno, Int64 lectno, int eqno, int cpoint) { @@ -564,6 +743,12 @@ namespace NP.Base.Controllers } return JsonOK(Dao.Save("lect.lectexq.point", new Hashtable() { { "lectno", lectno }, { "exno", exno }, { "eqno", eqno },{"iscorrect"+(iscorrect == null ? "x" : ""),iscorrect }, { "cpoint", cpoint }, { "uno", SUserInfo.UserNo }, { "uip", GetUserIP() } })); } + /// + /// KFCF잔재 + /// + /// + /// + /// public JsonResult ExamUserBatch(int intval, String datas) { var eu = new ExamUser() { exno = intval, Ds = new List() { }, uno = SUserInfo.UserNo, uip = GetUserIP() }; @@ -590,11 +775,38 @@ namespace NP.Base.Controllers { return JsonOK(Dao.Save("exam.examopen", new Hashtable() { { "exno", intval }, { "isresultopen", isresultopen }, { "uno", SUserInfo.UserNo }, { "uip", GetUserIP() } })); } + /// + /// 과제제출이력 + /// + /// + /// + /// + /// + /// [HttpPost] public JsonResult LectSDs(int cmno, int sdno, int? isrebate = null, int? sdstate = null) { return JsonBack(Dao.Get("lect.lectsds", new System.Collections.Hashtable() { { "cmno", cmno }, { "sdno", sdno }, { "isrebate", isrebate }, { "estate", sdstate },{"isproduct"+ (GetConfig("isstaging") == "1" ? "x" : ""), 1 } })); } + /// + /// 과제제출이력(전체) + /// + /// + /// + /// + /// + /// + /// + /// + /// + /// + /// + /// + /// + /// + /// + /// + /// [HttpPost] public JsonResult LectAllSDs(int pagenum,int pagerowcount,String edate,String cname,String cnamestr,String searchtype,String searchtext,String sdateall,String edateall,String asname, int? studyplace = null, int? iscomplete = null, int? cshape = null, int? sdstate = null,int? sdtype = 0) { @@ -603,11 +815,22 @@ namespace NP.Base.Controllers return JsonBack(Dao.Get("lect.lectsds.all", new System.Collections.Hashtable() { { "estate", sdstate }, { "pagenum", pagenum }, { "pagerowsize", pagerowcount }, { "edate", edate },{"sdateall",sdateall },{"edateall",edateall }, { "cshape", cshape }, { "cname", cname }, { "cnamestr", cnamestr }, { "iscomplete", iscomplete }, { "studyplace", studyplace }, { "searchtype", searchtype }, {"searchtext",searchtext } ,{"sdtype",sdtype },{"asname",asname }, { "isproduct" + (GetConfig("isstaging") == "1" ? "x" : ""), 1 }, })); } + /// + /// 과제제출상세정보 + /// + /// + /// + /// [HttpPost] public JsonResult LectSD(Int64 lectno, int sdno) { return JsonBack(Dao.Get("lect.lectsd", new Hashtable() { { "lectno", lectno }, { "sdno", sdno }, { "isproduct" + (GetConfig("isstaging") == "1" ? "x" : ""), 1 } }).First()); } + /// + /// 과제제출평가 + /// + /// + /// [HttpPost] public JsonResult LectSDSave(LectSD d) { @@ -615,6 +838,14 @@ namespace NP.Base.Controllers d.isproduct = GetConfig("isstaging") == "1" ? (int?)null : 1; return JsonOK(Dao.Save("lect.lectsd"+(d.ccount == 1 ? "2" : "")+".save" + (string.IsNullOrEmpty(d.lectnos) ? "" : "batch"), d)); } + /// + /// 과제이력 일괄다운로드 + /// + /// + /// + /// + /// + /// [HttpGet] public JsonResult LectSDZip(VMLect vm, int cmno, int classno, int sdno) { @@ -660,6 +891,14 @@ namespace NP.Base.Controllers } return null; } + /// + /// 토론 + /// + /// + /// + /// + /// + /// [HttpPost] public JsonResult LectDiscusses(int cmno, int sdno, int? isrebate = null, int? dcount = null) { @@ -675,6 +914,12 @@ namespace NP.Base.Controllers return JsonBack(Dao.Get("lect.lectdiscusses", _ht)); } + /// + /// 토론상세 + /// + /// + /// + /// [HttpPost] public JsonResult LectDiscuss(Int64 lectno, int sdno) { @@ -684,6 +929,15 @@ namespace NP.Base.Controllers rtn["ds"] =Dao.Get("lect.lectsdboards", new Hashtable() { { "lectno", lectno }, { "sdno", sdno } }); return JsonBack(rtn); } + /// + /// KFCF잔재 + /// + /// + /// + /// + /// + /// + /// [HttpPost] public JsonResult ExamUserChange(int exno, int userno, DateTime certdate,DateTime certindate,string renewreason) { @@ -741,7 +995,14 @@ namespace NP.Base.Controllers d.rstatus = 4; return JsonOK(Dao.Save("pay.payrfdcancel.up", d)); } - + /// + /// 결제환불 + /// + /// + /// + /// + /// + /// [HttpPost] public JsonResult PayRefund(Int64 payno, String sd, int isrefunddvr,bool iscancel) { @@ -905,6 +1166,11 @@ namespace NP.Base.Controllers } return JsonOK(0); } + /// + /// 환불결과저장 + /// + /// + /// [HttpPost] public JsonResult PayRefundInfoSave(PayItem d) { @@ -912,6 +1178,11 @@ namespace NP.Base.Controllers return JsonOK(Dao.Save("cr.payrefundinfo.up", d)); } + /// + /// 세금계산서 저장 + /// + /// + /// [HttpPost] public JsonResult PayTaxSave(PayTax d) { @@ -1229,6 +1500,13 @@ namespace NP.Base.Controllers } return JsonBack(new JsonRtn() { code = 1000, obj = Datas, msg = "관리자에게 문의해주세요." }); } + /// + /// 알림톡테스트 + /// + /// + /// + /// + /// [HttpPost] public JsonResult TalkTest(int scdno, String mobile, String email) { @@ -1357,32 +1635,67 @@ namespace NP.Base.Controllers } return JsonOK(1); } + /// + /// 가상계좌 미수입금처리 + /// + /// + /// [HttpPost] public JsonResult PayUnPay(Int64 payno) { return JsonOK(Dao.Save("pay.unpay", new Hashtable() { { "payno", payno }, { "uno", SUserInfo.UserNo }, { "uip", GetUserIP() } })); } + /// + /// 가상계좌 입금처리 + /// + /// + /// + /// [HttpPost] public JsonResult PayABSPay(Int64 payno, int ptype) { return JsonOK(Dao.Save("pay.abspay", new Hashtable() { { "payno", payno }, { "ptype", ptype}, { "uno", SUserInfo.UserNo }, { "uip", GetUserIP() } })); } + /// + /// 수강취소 + /// + /// + /// + /// [HttpPost] public JsonResult PayCancelPay(Int64 payno, int userno) { return JsonOK(Dao.Save("pay.paycancel", new Hashtable() { { "payno", payno }, { "userno", userno }, { "uno", SUserInfo.UserNo }, { "uip", GetUserIP() } })); } + /// + /// 미수입금처리 + /// + /// + /// + /// [HttpPost] public JsonResult PayUnPayMoney(Int64 payno, DateTime payoktime) { return JsonOK(Dao.Save("pay.unpaymoney", new Hashtable() { { "payno", payno },{ "payoktime", payoktime}, { "uno", SUserInfo.UserNo }, { "uip", GetUserIP() } })); } + /// + /// 수료일자 변경 + /// + /// + /// + /// + /// [HttpPost] public JsonResult LectTimeChange(Int64 lectno, DateTime? completetime, Int64 cshape) { return JsonOK(Dao.Save("lect.completetime.change", new Hashtable() { { "lectno", lectno }, { "completetime", completetime }, { "uno", SUserInfo.UserNo }, { "uip", GetUserIP() } })); } - + /// + /// 교육일정목록 + /// + /// + /// + /// [HttpPost] public JsonResult GetScdForMixEdu(int cmno, int iscmlects = 0) { @@ -1399,7 +1712,11 @@ namespace NP.Base.Controllers return JsonBack(result); } - + /// + /// 교육일정회차목록 + /// + /// + /// [HttpPost] public JsonResult GetCmiForMixEdu(int cmno) { @@ -1408,24 +1725,46 @@ namespace NP.Base.Controllers rtn.Add("cmis", Dao.Get("cm.cminningscds", new System.Collections.Hashtable() { { "cmno", cmno } })); return JsonBack(rtn); } - + /// + /// 수강정보 교육일정 변경 + /// + /// + /// + /// [HttpPost] public JsonResult LectScdChange(Int64 lectno, Int64 cmisno) { return JsonOK(Dao.Save("lect.cmisno.up", new Hashtable() { { "lectno", lectno }, { "cmisno" , cmisno} })); } - + /// + /// 결제신청정보변경 + /// + /// + /// + /// + /// + /// + /// [HttpPost] public JsonResult PPlogTypeChange(Int64 pplno, string typeman, string typejob, string typeedu, string typegrade) { return JsonOK(Dao.Save("pay.pplogtype.up", new Hashtable() { { "pplno", pplno }, { "typeman", typeman }, { "typejob", typejob }, { "typeedu", typeedu }, { "typegrade", typegrade } })); } + /// + /// 과거신청이력 + /// + /// + /// [HttpPost] public JsonResult DocumnetsPast(Int64 no) { return JsonBack(Dao.Get("cr.documnetspast", new Hashtable() { { "no", no } }).First()); } - + /// + /// 과거신청이력 수정 + /// + /// + /// [HttpPost] public JsonResult DocumnetsPastUpdate(Document document) { @@ -1434,6 +1773,11 @@ namespace NP.Base.Controllers document.uip = GetUserIP(); return JsonOK(Dao.Save("cr.documnetspast.up", document)); } + /// + /// 수료현황 + /// + /// + /// [HttpPost] public JsonResult Completion(Int64 lectno) { @@ -1446,6 +1790,11 @@ namespace NP.Base.Controllers completion.studyplaceName = comCodes.Where(w => w.ccode == completion.studyplace).FirstOrDefault()?.cname; return JsonBack(completion); } + /// + /// 수료현황변경 + /// + /// + /// [HttpPost] public JsonResult CompletionUpdate(Completion completion) { @@ -1503,11 +1852,23 @@ namespace NP.Base.Controllers } return JsonOK(Dao.Save("cr.completion.up", completion)); } + /// + /// 현금영수증 취소 + /// + /// + /// [HttpPost] public JsonResult UnTax(Int64 payno) { return JsonOK(Dao.Save("pay.untax", new Hashtable() { { "payno", payno }, { "uno", SUserInfo.UserNo }, { "uip", GetUserIP() } })); } + /// + /// 세금계산서 확인 여부 변경 + /// + /// + /// + /// + /// [HttpPost] public JsonResult taxcheck(String taxnos,int ischeck,int? taxno) { @@ -1521,6 +1882,12 @@ namespace NP.Base.Controllers } return JsonOK(Dao.Save("pay.taxcheck", new Hashtable() { { "taxnos", taxnos }, { "taxno", taxno }, {"ischeck",ischeck }, { "uno", SUserInfo.UserNo }, { "uip", GetUserIP() } })); } + /// + /// 세금계산서 발행 취소 + /// + /// + /// + /// [HttpPost] public JsonResult taxcancel(String taxnos, int? taxno) {