756 lines
34 KiB
C#
756 lines
34 KiB
C#
|
|
using System;
|
|||
|
|
using System.Collections.Generic;
|
|||
|
|
using System.Linq;
|
|||
|
|
using System.Web;
|
|||
|
|
using System.Web.Mvc;
|
|||
|
|
|
|||
|
|
using NP.Model;
|
|||
|
|
using NP.Base;
|
|||
|
|
namespace NP.FO.Controllers
|
|||
|
|
{
|
|||
|
|
public class CourseController : FOOpenBaseController
|
|||
|
|
{
|
|||
|
|
public ActionResult PayCover(VMPay vm)
|
|||
|
|
{
|
|||
|
|
if (string.IsNullOrEmpty(vm.items))
|
|||
|
|
{
|
|||
|
|
return Redirect("/Course/Covers");
|
|||
|
|
}
|
|||
|
|
vm.viewname4 = vm.viewname4 ?? (GetConfig("fronturl") + "/Course/CoverPayReturn");
|
|||
|
|
vm.viewname6 = vm.viewname6 ?? (GetConfig("pginfomobile").Split('|')[0] + "/Course/CoverPayReturn");
|
|||
|
|
foreach (var d in vm.items.Split(';'))
|
|||
|
|
{
|
|||
|
|
var dd = d.Split(':');
|
|||
|
|
if (dd[0] == "0")
|
|||
|
|
{
|
|||
|
|
vm.previewname = "/CoverDetail?cmno=" + dd[1];
|
|||
|
|
break;
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
//vm.previewname = vm.previewname ?? "/Course/Ons";
|
|||
|
|
base.PayAll(vm);
|
|||
|
|
return View("Pay", vm);
|
|||
|
|
}
|
|||
|
|
public ActionResult BookPayReturn(VMPay vm)
|
|||
|
|
{
|
|||
|
|
return PayReturn(vm);
|
|||
|
|
}
|
|||
|
|
public ActionResult PayBook(VMPay vm)
|
|||
|
|
{
|
|||
|
|
if (string.IsNullOrEmpty(vm.items))
|
|||
|
|
{
|
|||
|
|
return Redirect("/Course/Books");
|
|||
|
|
}
|
|||
|
|
vm.viewname4 = vm.viewname4 ?? (GetConfig("fronturl") + "/Course/BookPayReturn");
|
|||
|
|
vm.viewname6 = vm.viewname6 ?? (GetConfig("pginfomobile").Split('|')[0] + "/Course/BookPayReturn");
|
|||
|
|
foreach (var d in vm.items.Split(';'))
|
|||
|
|
{
|
|||
|
|
var dd = d.Split(':');
|
|||
|
|
if (dd[0] == "2")
|
|||
|
|
{
|
|||
|
|
vm.previewname = "/Book?bkno=" + dd[1];
|
|||
|
|
break;
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
//vm.previewname = vm.previewname ?? "/Course/Offs";
|
|||
|
|
base.PayAll(vm);
|
|||
|
|
return View("Pay", vm);
|
|||
|
|
}
|
|||
|
|
public ActionResult BookBuy(VMCourse vm)
|
|||
|
|
{
|
|||
|
|
if (vm.bkno < 1) { return Redirect("/"); }
|
|||
|
|
vm.previewname = "/Course/Books";
|
|||
|
|
vm.Book = Dao.Get<Book>("cm.books", new System.Collections.Hashtable() { { "bkno", vm.bkno } }).First();
|
|||
|
|
return View(vm);
|
|||
|
|
}
|
|||
|
|
public ActionResult Book(int bkno)
|
|||
|
|
{
|
|||
|
|
var b = Dao.Get<Book>("cm.books", new System.Collections.Hashtable() { { "bkno", bkno }, { "isdetail", 1 } }).FirstOrDefault();
|
|||
|
|
if (b == null)
|
|||
|
|
{
|
|||
|
|
return Redirect("/Course/Books");
|
|||
|
|
}
|
|||
|
|
b.Files = new List<File>() { };
|
|||
|
|
if (b.fgno != null)
|
|||
|
|
{
|
|||
|
|
b.Files = GetFiles(b.fgno.Value);
|
|||
|
|
}
|
|||
|
|
ViewBag.Files = (new NP.Model.VMBase()).Files;
|
|||
|
|
return View(b);
|
|||
|
|
}
|
|||
|
|
public ActionResult Books(VMCourse vm)
|
|||
|
|
{
|
|||
|
|
var ht = SetHash(vm);
|
|||
|
|
ht.Add("isuse", 1);
|
|||
|
|
vm.Books = Dao.Get<Book>("cm.books", ht);
|
|||
|
|
vm.pagetotalcount = GetCount(vm.Books.FirstOrDefault());
|
|||
|
|
return View(vm);
|
|||
|
|
}
|
|||
|
|
public ActionResult Exam(VMCourse vm)
|
|||
|
|
{
|
|||
|
|
vm.Exam = Dao.Get<Exam>("exam.exams", new System.Collections.Hashtable() { { "userno", SUserInfo.UserNo }, { "exno", vm.exno } }).FirstOrDefault();
|
|||
|
|
if (vm.Exam == null) { return Redirect("/Course/Exams"); }
|
|||
|
|
vm.FileList = new List<File>();
|
|||
|
|
if (vm.Exam.fgno != null) {
|
|||
|
|
vm.FileList = GetFiles(vm.Exam.fgno.Value);
|
|||
|
|
}
|
|||
|
|
return View(vm);
|
|||
|
|
}
|
|||
|
|
public ActionResult Exams()
|
|||
|
|
{
|
|||
|
|
return View(Dao.Get<Exam>("exam.exams", new System.Collections.Hashtable() { { "userno", SUserInfo.UserNo },{"isopen",1 } }));
|
|||
|
|
}
|
|||
|
|
public ActionResult CertPayReturn(VMPay vm)
|
|||
|
|
{
|
|||
|
|
return View(Dao.Get<Lect>("pay.paylect.get", vm.Pay.payno).First());
|
|||
|
|
}
|
|||
|
|
public ActionResult CertDetail(VMCourse vm)
|
|||
|
|
{
|
|||
|
|
if (vm.cmno < 1)
|
|||
|
|
{
|
|||
|
|
return Redirect("/Course/Certs");
|
|||
|
|
}
|
|||
|
|
vm.previewname = vm.previewname ?? "/Course/Certs";
|
|||
|
|
vm.CM = Dao.Get<CM>("cm.cms.forbuy", new System.Collections.Hashtable() { { "cmno", vm.cmno }, { "userno", SUserInfo.UserNo }, { "contents", vm.Contents } }).First();
|
|||
|
|
vm.CMEV = Dao.Get<CMEV>("cm.cmev", new System.Collections.Hashtable() { { "cmno", vm.CM.cmno } }).First();
|
|||
|
|
vm.CMBooks = Dao.Get<Book>("cm.cmbooks", vm.cmno.ToString());
|
|||
|
|
vm.CMPRs = Dao.Get<CMPR>("cm.cmprs", new System.Collections.Hashtable() { { "cmno", vm.CM.cmno }, { "usertype", 11 } });
|
|||
|
|
if (vm.CM.fgnocm != null)
|
|||
|
|
{
|
|||
|
|
vm.FileList = GetFiles(vm.CM.fgnocm.Value);
|
|||
|
|
}
|
|||
|
|
return View("CertDetail", vm);
|
|||
|
|
}
|
|||
|
|
public ActionResult CertBuy(VMCourse vm)
|
|||
|
|
{
|
|||
|
|
if (vm.cmno < 1) { return Redirect("/"); }
|
|||
|
|
vm.CM = Dao.Get<CM>("cm.cms.forbuy", new System.Collections.Hashtable() { { "cmno", vm.cmno }, { "userno", SUserInfo.UserNo }, { "contents", vm.Contents } }).First();
|
|||
|
|
vm.CMBooks = Dao.Get<Book>("cm.cmbooks", vm.cmno.ToString());
|
|||
|
|
vm.User = Dao.Get<Users>("users.users", new System.Collections.Hashtable() { { "userno", SUserInfo.UserNo } }).First();
|
|||
|
|
vm.ComCodes = GetComCodes("jobposition,job", true);
|
|||
|
|
for (int i = vm.ComCodes.Count() - 1; i > -1; i--)
|
|||
|
|
{
|
|||
|
|
if (vm.ComCodes[i].isuse == 0 && (vm.ComCodes[i].cgroup != "jobposition" || (vm.ComCodes[i].cgroup == "jobposition" && vm.ComCodes[i].refcode != "9")))
|
|||
|
|
{
|
|||
|
|
vm.ComCodes.RemoveAt(i);
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
return View(vm);
|
|||
|
|
}
|
|||
|
|
public ActionResult Certs(VMCourse vm)
|
|||
|
|
{
|
|||
|
|
vm.cgcode = TestCode1;
|
|||
|
|
vm.pcgcode = vm.pcgcode ?? TestCode;
|
|||
|
|
vm.CMs = Dao.Get<CM>("cm.cms.forbuy", new System.Collections.Hashtable() { { "pcgcode", vm.pcgcode }, { "cgcode", vm.cgcode }, { "userno", SUserInfo.UserNo }, { "isrequestable", 1 }/*, { "year", DateTime.Now.Year }*/, { "orderby", "a.retime desc" }, { "contents", vm.Contents } });
|
|||
|
|
if (vm.CMs.Count() > 0)
|
|||
|
|
{
|
|||
|
|
vm.CMBooks = Dao.Get<Book>("cm.cmbooks", string.Join(",", vm.CMs.Select(s => s.cmno)));
|
|||
|
|
}
|
|||
|
|
return View(vm);
|
|||
|
|
}
|
|||
|
|
public ActionResult Covers(VMCourse vm)
|
|||
|
|
{
|
|||
|
|
vm.cgcode = TestCode3;
|
|||
|
|
vm.pcgcode = vm.pcgcode ?? TestCode;
|
|||
|
|
vm.CMs = Dao.Get<CM>("cm.cms.forbuy", new System.Collections.Hashtable() { { "pcgcode", vm.pcgcode }, { "cgcode", vm.cgcode }, { "userno", SUserInfo.UserNo }, { "isrequestable", 1 }/*, { "year", DateTime.Now.Year }*/, { "orderby", "a.retime desc" }, { "contents", vm.Contents } });
|
|||
|
|
if (vm.CMs.Count() > 0)
|
|||
|
|
{
|
|||
|
|
vm.CMBooks = Dao.Get<Book>("cm.cmbooks", string.Join(",", vm.CMs.Select(s => s.cmno)));
|
|||
|
|
}
|
|||
|
|
return View(vm);
|
|||
|
|
}
|
|||
|
|
public ActionResult CoverDetail(VMCourse vm)
|
|||
|
|
{
|
|||
|
|
if (vm.cmno < 1)
|
|||
|
|
{
|
|||
|
|
return Redirect("/Course/Covers");
|
|||
|
|
}
|
|||
|
|
vm.previewname = vm.previewname ?? "/Course/Covers";
|
|||
|
|
vm.CM = Dao.Get<CM>("cm.cms.forbuy", new System.Collections.Hashtable() { { "cmno", vm.cmno }, { "userno", SUserInfo.UserNo }, { "contents", vm.Contents } }).First();
|
|||
|
|
vm.CMEV = Dao.Get<CMEV>("cm.cmev", new System.Collections.Hashtable() { { "cmno", vm.CM.cmno } }).First();
|
|||
|
|
vm.CMBooks = Dao.Get<Book>("cm.cmbooks", vm.cmno.ToString());
|
|||
|
|
vm.CMPRs = Dao.Get<CMPR>("cm.cmprs", new System.Collections.Hashtable() { { "cmno", vm.CM.cmno }, { "usertype", 11 } });
|
|||
|
|
if (vm.CM.fgnocm != null)
|
|||
|
|
{
|
|||
|
|
vm.FileList = GetFiles(vm.CM.fgnocm.Value);
|
|||
|
|
}
|
|||
|
|
return View(vm);
|
|||
|
|
}
|
|||
|
|
public ActionResult CoverBuy(VMCourse vm)
|
|||
|
|
{
|
|||
|
|
if (vm.cmno < 1) { return Redirect("/"); }
|
|||
|
|
vm.CM = Dao.Get<CM>("cm.cms.forbuy", new System.Collections.Hashtable() { { "cmno", vm.cmno }, { "userno", SUserInfo.UserNo }, { "contents", vm.Contents } }).First();
|
|||
|
|
vm.CMBooks = Dao.Get<Book>("cm.cmbooks", vm.cmno.ToString());
|
|||
|
|
vm.User = Dao.Get<Users>("users.users", new System.Collections.Hashtable() { { "userno", SUserInfo.UserNo } }).First();
|
|||
|
|
vm.ComCodes = GetComCodes("jobposition,job", true);
|
|||
|
|
for (int i = vm.ComCodes.Count() - 1; i > -1; i--)
|
|||
|
|
{
|
|||
|
|
if (vm.ComCodes[i].isuse == 0 && (vm.ComCodes[i].cgroup != "jobposition" || (vm.ComCodes[i].cgroup == "jobposition" && vm.ComCodes[i].refcode != "9")))
|
|||
|
|
{
|
|||
|
|
vm.ComCodes.RemoveAt(i);
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
return View(vm);
|
|||
|
|
}
|
|||
|
|
public ActionResult PayOnBase(VMPay vm)
|
|||
|
|
{
|
|||
|
|
vm.viewname3 = "Base";
|
|||
|
|
vm.previewname = vm.previewname ?? "/Course/OnBases";
|
|||
|
|
vm.viewname4 = GetConfig("fronturl") + "/Course/OnBasePayReturn";
|
|||
|
|
base.PayAll(vm);
|
|||
|
|
return PayOn(vm);
|
|||
|
|
}
|
|||
|
|
public ActionResult PayOnCollege(VMPay vm)
|
|||
|
|
{
|
|||
|
|
vm.viewname3 = "College";
|
|||
|
|
vm.previewname = vm.previewname ?? "/Course/OnColleges";
|
|||
|
|
vm.viewname4 = GetConfig("fronturl") + "/Course/OnCollegePayReturn";
|
|||
|
|
base.PayAll(vm);
|
|||
|
|
return PayOn(vm);
|
|||
|
|
}
|
|||
|
|
public ActionResult PayOn(VMPay vm)
|
|||
|
|
{
|
|||
|
|
vm.viewname4 = vm.viewname4 ?? (GetConfig("fronturl") + "/Course/OnPayReturn");
|
|||
|
|
vm.viewname6 = vm.viewname6 ?? (GetConfig("pginfomobile").Split('|')[0] + "/Course/OnPayReturn");
|
|||
|
|
foreach (var d in vm.items.Split(';'))
|
|||
|
|
{
|
|||
|
|
var dd = d.Split(':');
|
|||
|
|
if (dd[0] == "0")
|
|||
|
|
{
|
|||
|
|
vm.previewname = "/OnDetail?cmno=" + dd[1];
|
|||
|
|
break;
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
//vm.previewname = vm.previewname ?? "/Course/Ons";
|
|||
|
|
base.PayAll(vm);
|
|||
|
|
return View("Pay", vm);
|
|||
|
|
}
|
|||
|
|
public ActionResult OnBuyCollege(VMCourse vm)
|
|||
|
|
{
|
|||
|
|
if (vm.cmno < 1) { return Redirect("/"); }
|
|||
|
|
vm.viewname3 = "College";
|
|||
|
|
vm.previewname = vm.previewname ?? "/Course/OnColleges";
|
|||
|
|
POnBuy(vm);
|
|||
|
|
return View("OnBuy", vm);
|
|||
|
|
}
|
|||
|
|
public ActionResult OnBuyBase(VMCourse vm)
|
|||
|
|
{
|
|||
|
|
if (vm.cmno < 1) { return Redirect("/"); }
|
|||
|
|
vm.viewname3 = "Base";
|
|||
|
|
vm.previewname = vm.previewname ?? "/Course/OnBases";
|
|||
|
|
POnBuy(vm);
|
|||
|
|
return View("OnBuy", vm);
|
|||
|
|
}
|
|||
|
|
public ActionResult OnBuy(VMCourse vm)
|
|||
|
|
{
|
|||
|
|
if (vm.cmno < 1) { return Redirect("/"); }
|
|||
|
|
POnBuy(vm);
|
|||
|
|
return View("OnBuy", vm);
|
|||
|
|
}
|
|||
|
|
private void POnBuy(VMCourse vm)
|
|||
|
|
{
|
|||
|
|
vm.viewname3 = vm.viewname3 ?? "";
|
|||
|
|
vm.previewname = "/Course/Ons";
|
|||
|
|
vm.CM = Dao.Get<CM>("cm.cms.forbuy", new System.Collections.Hashtable() { { "cmno", vm.cmno }, { "userno", SUserInfo.UserNo }, { "contents", vm.Contents } }).First();
|
|||
|
|
vm.CMBooks = Dao.Get<Book>("cm.cmbooks", vm.cmno.ToString());
|
|||
|
|
vm.User = Dao.Get<Users>("users.users", new System.Collections.Hashtable() { { "userno", SUserInfo.UserNo } }).First();
|
|||
|
|
vm.ComCodes = GetComCodes("jobposition,job", true);
|
|||
|
|
for (int i = vm.ComCodes.Count() - 1; i > -1; i--)
|
|||
|
|
{
|
|||
|
|
if (vm.ComCodes[i].isuse == 0 && (vm.ComCodes[i].cgroup != "jobposition" || (vm.ComCodes[i].cgroup == "jobposition" && vm.ComCodes[i].refcode != "9")))
|
|||
|
|
{
|
|||
|
|
vm.ComCodes.RemoveAt(i);
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
public ActionResult Offs(VMCourse vm)
|
|||
|
|
{
|
|||
|
|
vm.pcgcode = vm.pcgcode ?? OffCode;
|
|||
|
|
vm.CMs = Dao.Get<CM>("cm.cms.forbuy", new System.Collections.Hashtable() { { "pcgcode", vm.pcgcode }, { "cgcode", vm.cgcode }, { "userno", SUserInfo.UserNo }, { "year", DateTime.Now.Year }, { "contents", vm.Contents } });
|
|||
|
|
vm.viewname = vm.viewname ?? "OffList";
|
|||
|
|
vm.viewname2 = vm.viewname2 ?? "OffSearch";
|
|||
|
|
vm.viewname3 = "";
|
|||
|
|
vm.previewname = "/Course/Offs?cname=" + (vm.cname ?? "");
|
|||
|
|
return View("Offs", vm);
|
|||
|
|
}
|
|||
|
|
public ActionResult OffDetail(VMCourse vm)
|
|||
|
|
{
|
|||
|
|
if (vm.cmno < 1)
|
|||
|
|
{
|
|||
|
|
return Redirect("/Course/Offs");
|
|||
|
|
}
|
|||
|
|
//else if (Response.IsRequestBeingRedirected)
|
|||
|
|
//{
|
|||
|
|
// return RedirectToAction("OffDetail", new { cmno = vm.cmno });
|
|||
|
|
//}
|
|||
|
|
vm.viewname3 = vm.viewname3 ?? "";
|
|||
|
|
vm.previewname = vm.previewname ?? "/Course/Offs";
|
|||
|
|
vm.CM = Dao.Get<CM>("cm.cms.forbuy", new System.Collections.Hashtable() { { "cmno", vm.cmno }, { "userno", SUserInfo.UserNo }, { "contents", vm.Contents } }).First();
|
|||
|
|
vm.CMEV = Dao.Get<CMEV>("cm.cmev", new System.Collections.Hashtable() { { "cmno", vm.CM.cmno } }).First();
|
|||
|
|
vm.CMBooks = Dao.Get<Book>("cm.cmbooks", vm.cmno.ToString());
|
|||
|
|
vm.CMPRs = Dao.Get<CMPR>("cm.cmprs", new System.Collections.Hashtable() { { "cmno", vm.CM.cmno }, { "usertype", 11 } });
|
|||
|
|
if (vm.CM.fgnocm != null)
|
|||
|
|
{
|
|||
|
|
vm.FileList = GetFiles(vm.CM.fgnocm.Value);
|
|||
|
|
}
|
|||
|
|
return View("OffDetail", vm);
|
|||
|
|
}
|
|||
|
|
public ActionResult OffBuy(VMCourse vm)
|
|||
|
|
{
|
|||
|
|
if (vm.cmno < 1) { return Redirect("/"); }
|
|||
|
|
POffBuy(vm);
|
|||
|
|
return View("OffBuy", vm);
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
public ActionResult OnDetailCollege(VMCourse vm)
|
|||
|
|
{
|
|||
|
|
if (vm.cmno < 1) { return Redirect("/Course/OnColleges"); }
|
|||
|
|
vm.viewname3 = "College";
|
|||
|
|
vm.previewname = vm.previewname ?? "/Course/OnColleges";
|
|||
|
|
return OnDetail(vm);
|
|||
|
|
}
|
|||
|
|
public ActionResult OnDetailBase(VMCourse vm)
|
|||
|
|
{
|
|||
|
|
if (vm.cmno < 1){return Redirect("/Course/OnBases");}
|
|||
|
|
vm.viewname3 = "Base";
|
|||
|
|
vm.previewname = vm.previewname ?? "/Course/OnBases";
|
|||
|
|
return OnDetail(vm);
|
|||
|
|
}
|
|||
|
|
public ActionResult OnDetail(VMCourse vm)
|
|||
|
|
{
|
|||
|
|
if (vm.cmno < 1)
|
|||
|
|
{
|
|||
|
|
return Redirect("/Course/Ons");
|
|||
|
|
}
|
|||
|
|
vm.CM = Dao.Get<CM>("cm.cms.forbuy", new System.Collections.Hashtable() { { "cmno", vm.cmno }, { "userno", SUserInfo.UserNo }, {"contents", vm.Contents } }).FirstOrDefault();
|
|||
|
|
if (vm.CM == null)
|
|||
|
|
{
|
|||
|
|
return Redirect("/Course/Ons");
|
|||
|
|
}
|
|||
|
|
vm.CMEV = Dao.Get<CMEV>("cm.cmev", new System.Collections.Hashtable() { { "cmno", vm.CM.cmno } }).First();
|
|||
|
|
vm.CMBooks = Dao.Get<Book>("cm.cmbooks", vm.cmno.ToString());
|
|||
|
|
vm.CMPRs = Dao.Get<CMPR>("cm.cmprs", new System.Collections.Hashtable() { { "cmno", vm.CM.cmno }, { "usertype", 11 } });
|
|||
|
|
if (vm.CM.fgnocm != null)
|
|||
|
|
{
|
|||
|
|
vm.FileList = GetFiles(vm.CM.fgnocm.Value);
|
|||
|
|
}
|
|||
|
|
Thumbs(vm, true, true);
|
|||
|
|
return View("OnDetail", vm);
|
|||
|
|
}
|
|||
|
|
public ActionResult OnColleges(VMCourse vm)
|
|||
|
|
{
|
|||
|
|
vm.cgcode = OnCode1;
|
|||
|
|
vm.pcgcode = vm.pcgcode ?? OnCode;
|
|||
|
|
vm.CMs = Dao.Get<CM>("cm.cms.forbuy", new System.Collections.Hashtable() { { "pcgcode", vm.pcgcode }, { "cgcode", vm.cgcode }, { "cnamelike", vm.cname }, { "userno", SUserInfo.UserNo }, { "isrequestable", 1 }/*, { "year", DateTime.Now.Year }*/, { "orderby", "a.retime desc" }, { "contents", vm.Contents } });
|
|||
|
|
if (vm.CMs.Count() > 0)
|
|||
|
|
{
|
|||
|
|
vm.CMBooks = Dao.Get<Book>("cm.cmbooks", string.Join(",", vm.CMs.Select(s => s.cmno)));
|
|||
|
|
Thumbs(vm, false, true);
|
|||
|
|
}
|
|||
|
|
vm.viewname = "OnSearch";
|
|||
|
|
vm.viewname2 = "OnColleges";
|
|||
|
|
vm.viewname3 = "College";
|
|||
|
|
vm.previewname = "/Course/OnColleges?cname=" + (vm.cname ?? "");
|
|||
|
|
return View("Ons", vm);
|
|||
|
|
}
|
|||
|
|
public ActionResult OnBases(VMCourse vm)
|
|||
|
|
{
|
|||
|
|
vm.cgcode = OnCode2;
|
|||
|
|
vm.pcgcode = vm.pcgcode ?? OnCode;
|
|||
|
|
vm.CMs = Dao.Get<CM>("cm.cms.forbuy", new System.Collections.Hashtable() { { "pcgcode", vm.pcgcode }, { "cgcode", vm.cgcode }, { "cnamelike", vm.cname }, { "userno", SUserInfo.UserNo }, { "isrequestable", 1 }/*, { "year", DateTime.Now.Year }*/, { "orderby", "a.retime desc" }, { "contents", vm.Contents } });
|
|||
|
|
if (vm.CMs.Count() > 0)
|
|||
|
|
{
|
|||
|
|
vm.CMBooks = Dao.Get<Book>("cm.cmbooks", string.Join(",", vm.CMs.Select(s => s.cmno)));
|
|||
|
|
Thumbs(vm, false, true);
|
|||
|
|
}
|
|||
|
|
vm.viewname = "OnSearch";
|
|||
|
|
vm.viewname2 = "OnBases";
|
|||
|
|
vm.viewname3 = "Base";
|
|||
|
|
vm.previewname = "/Course/OnBases?cname=" + (vm.cname ?? "");
|
|||
|
|
return View("Ons", vm);
|
|||
|
|
}
|
|||
|
|
public ActionResult OnSearch(VMCourse vm)
|
|||
|
|
{
|
|||
|
|
vm.pcgcode = vm.pcgcode ?? OnCode;
|
|||
|
|
vm.CMs = Dao.Get<CM>("cm.cms.forbuy", new System.Collections.Hashtable() { { "pcgcode", vm.pcgcode }, { "cnamelike", vm.cname }, { "userno", SUserInfo.UserNo }, { "isrequestable", 1 }/*, { "year", DateTime.Now.Year }*/, { "orderby", "a.retime,a.cname" }, { "contents", vm.Contents } });
|
|||
|
|
if (vm.CMs.Count() > 0)
|
|||
|
|
{
|
|||
|
|
vm.CMBooks = Dao.Get<Book>("cm.cmbooks", string.Join(",", vm.CMs.Select(s => s.cmno)));
|
|||
|
|
Thumbs(vm, false, true);
|
|||
|
|
}
|
|||
|
|
vm.viewname = vm.viewname2 = "OnSearch";
|
|||
|
|
vm.previewname = "/Course/OnSearch?cname=" + (vm.cname ?? "");
|
|||
|
|
return View("Ons", vm);
|
|||
|
|
}
|
|||
|
|
public ActionResult Ons(VMCourse vm)
|
|||
|
|
{
|
|||
|
|
vm.viewname = vm.viewname ?? "OnList";
|
|||
|
|
vm.viewname2 = vm.viewname2 ?? "OnSearch";
|
|||
|
|
vm.pcgcode = vm.pcgcode ?? OnCode;
|
|||
|
|
vm.CMs = Dao.Get<CM>("cm.cms.forbuy", new System.Collections.Hashtable() { { "pcgcode", vm.pcgcode }, { "cgcode", vm.cgcode }, { "userno", SUserInfo.UserNo }/*, { "year", DateTime.Now.Year }*/,{ "orderby", "a.retime desc"},{ "isrequestable",1 }, { "contents", vm.Contents } });
|
|||
|
|
ViewBag.OnCode1 = OnCode1;
|
|||
|
|
Thumbs(vm);
|
|||
|
|
return View(vm);
|
|||
|
|
}
|
|||
|
|
private void Thumbs(VMCourse vm, bool iscm = false, bool isbig = false)
|
|||
|
|
{
|
|||
|
|
if (iscm)
|
|||
|
|
{
|
|||
|
|
vm.CM.isbig = isbig?1:0;
|
|||
|
|
}
|
|||
|
|
else
|
|||
|
|
{
|
|||
|
|
foreach(var d in vm.CMs)
|
|||
|
|
{
|
|||
|
|
d.isbig = isbig ? 1 : 0;
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
//if (iscm && !string.IsNullOrEmpty(vm.CM.tasteurl))
|
|||
|
|
//{
|
|||
|
|
// var d = vm.CM;
|
|||
|
|
// //Thumbnail 확인
|
|||
|
|
// if (!System.IO.File.Exists(Server.MapPath(vm.Thumbnails + "/" + d.cmno + ".jpg")))
|
|||
|
|
// {
|
|||
|
|
// if (!System.IO.Directory.Exists(Server.MapPath(vm.Files + vm.Thumbnails)))
|
|||
|
|
// {
|
|||
|
|
// System.IO.Directory.CreateDirectory(Server.MapPath(vm.Files + vm.Thumbnails + "/"));
|
|||
|
|
// }
|
|||
|
|
// String thumbargs = "-i " + Server.MapPath(vm.Contents + d.tasteurl) + " -vframes 1 -ss 00:00:07 -s 150x150 " + Server.MapPath(vm.Thumbnails + "/" + d.cmno + ".jpg");
|
|||
|
|
// System.Diagnostics.Process thumbproc = new System.Diagnostics.Process();
|
|||
|
|
// thumbproc = new System.Diagnostics.Process();
|
|||
|
|
// thumbproc.StartInfo.FileName = GetConfig("thumbnailexe");
|
|||
|
|
// thumbproc.StartInfo.Arguments = thumbargs;
|
|||
|
|
// thumbproc.StartInfo.UseShellExecute = false;
|
|||
|
|
// thumbproc.StartInfo.CreateNoWindow = false;
|
|||
|
|
// thumbproc.StartInfo.RedirectStandardOutput = false;
|
|||
|
|
// try
|
|||
|
|
// {
|
|||
|
|
// thumbproc.Start();
|
|||
|
|
// d.tasteurl = vm.Thumbnails + "/" + d.cmno + ".jpg";
|
|||
|
|
// }
|
|||
|
|
// catch (Exception ex)
|
|||
|
|
// {
|
|||
|
|
// SetError("ffmpeg: " + ex.Message);
|
|||
|
|
// d.tasteurl = isbig ? "/img/online/fair_sample01.jpg" : "/img/main/main_edu_thumb01.jpg";
|
|||
|
|
// }
|
|||
|
|
// thumbproc.WaitForExit();
|
|||
|
|
// thumbproc.Close();
|
|||
|
|
// //_repository.CreateUniqueFullPath(_path);
|
|||
|
|
// }
|
|||
|
|
// else
|
|||
|
|
// {
|
|||
|
|
// d.tasteurl = vm.Thumbnails + "/" + d.cmno + ".jpg";
|
|||
|
|
// }
|
|||
|
|
//}
|
|||
|
|
//else if (!iscm)
|
|||
|
|
//{
|
|||
|
|
// foreach (var d in vm.CMs.Where(w => !string.IsNullOrEmpty(w.tasteurl)))
|
|||
|
|
// {
|
|||
|
|
// //Thumbnail 확인
|
|||
|
|
// if (!System.IO.File.Exists(Server.MapPath(vm.Thumbnails + "/" + d.cmno + ".jpg")))
|
|||
|
|
// {
|
|||
|
|
// if (!System.IO.Directory.Exists(Server.MapPath(vm.Files + vm.Thumbnails)))
|
|||
|
|
// {
|
|||
|
|
// System.IO.Directory.CreateDirectory(Server.MapPath(vm.Files + vm.Thumbnails + "/"));
|
|||
|
|
// }
|
|||
|
|
// String thumbargs = "-i " + Server.MapPath(vm.Contents + d.tasteurl) + " -vframes 1 -ss 00:00:07 -s 150x150 " + Server.MapPath(vm.Thumbnails + "/" + d.cmno + ".jpg");
|
|||
|
|
// System.Diagnostics.Process thumbproc = new System.Diagnostics.Process();
|
|||
|
|
// thumbproc = new System.Diagnostics.Process();
|
|||
|
|
// thumbproc.StartInfo.FileName = GetConfig("thumbnailexe");
|
|||
|
|
// thumbproc.StartInfo.Arguments = thumbargs;
|
|||
|
|
// thumbproc.StartInfo.UseShellExecute = false;
|
|||
|
|
// thumbproc.StartInfo.CreateNoWindow = false;
|
|||
|
|
// thumbproc.StartInfo.RedirectStandardOutput = false;
|
|||
|
|
// try
|
|||
|
|
// {
|
|||
|
|
// thumbproc.Start();
|
|||
|
|
// d.tasteurl = vm.Thumbnails + "/" + d.cmno + ".jpg";
|
|||
|
|
// }
|
|||
|
|
// catch (Exception ex)
|
|||
|
|
// {
|
|||
|
|
// SetError("ffmpeg: " + ex.Message);
|
|||
|
|
// d.tasteurl = "/img/main/main_edu_thumb01.jpg";
|
|||
|
|
// }
|
|||
|
|
// thumbproc.WaitForExit();
|
|||
|
|
// thumbproc.Close();
|
|||
|
|
// //_repository.CreateUniqueFullPath(_path);
|
|||
|
|
// }
|
|||
|
|
// else
|
|||
|
|
// {
|
|||
|
|
// d.tasteurl = vm.Thumbnails + "/" + d.cmno + ".jpg";
|
|||
|
|
// }
|
|||
|
|
// }
|
|||
|
|
//}
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
|
|||
|
|
public ActionResult OffColleges(VMCourse vm)
|
|||
|
|
{
|
|||
|
|
vm.cgcode = OffCode1;
|
|||
|
|
vm.pcgcode = vm.pcgcode ?? OffCode;
|
|||
|
|
vm.CMs = Dao.Get<CM>("cm.cms.forbuy", new System.Collections.Hashtable() { { "pcgcode", vm.pcgcode }, { "cgcode", vm.cgcode }, { "cnamelike", vm.cname }, { "userno", SUserInfo.UserNo }, { "isrequestable", 1 }/*, { "year", DateTime.Now.Year }*/, { "orderby", "a.retime desc" }, { "contents", vm.Contents } });
|
|||
|
|
if (vm.CMs.Count() > 0)
|
|||
|
|
{
|
|||
|
|
vm.CMBooks = Dao.Get<Book>("cm.cmbooks", string.Join(",", vm.CMs.Select(s => s.cmno)));
|
|||
|
|
}
|
|||
|
|
vm.viewname = "OffSearch";
|
|||
|
|
vm.viewname2 = "OffColleges";
|
|||
|
|
vm.viewname3 = "College";
|
|||
|
|
vm.previewname = "/Course/OffColleges?cname=" + (vm.cname??"");
|
|||
|
|
return View("Offs", vm);
|
|||
|
|
}
|
|||
|
|
public ActionResult OffTotals(VMCourse vm)
|
|||
|
|
{
|
|||
|
|
vm.cgcode = OffCode2;
|
|||
|
|
vm.pcgcode = vm.pcgcode ?? OffCode;
|
|||
|
|
vm.CMs = Dao.Get<CM>("cm.cms.forbuy", new System.Collections.Hashtable() { { "pcgcode", vm.pcgcode }, { "cgcode", vm.cgcode }, { "cnamelike", vm.cname }, { "userno", SUserInfo.UserNo }, { "isrequestable", 1 }/*, { "year", DateTime.Now.Year }*/, { "orderby", "a.retime desc" }, { "contents", vm.Contents } });
|
|||
|
|
if (vm.CMs.Count() > 0)
|
|||
|
|
{
|
|||
|
|
vm.CMBooks = Dao.Get<Book>("cm.cmbooks", string.Join(",", vm.CMs.Select(s => s.cmno)));
|
|||
|
|
}
|
|||
|
|
vm.viewname = "OffSearch";
|
|||
|
|
vm.viewname2 = "OffTotals";
|
|||
|
|
vm.viewname3 = "Total";
|
|||
|
|
vm.previewname = "/Course/OffTotals?cname=" + (vm.cname ?? "");
|
|||
|
|
return View("Offs", vm);
|
|||
|
|
}
|
|||
|
|
public ActionResult OffSpecials(VMCourse vm)
|
|||
|
|
{
|
|||
|
|
vm.cgcode = OffCode3;
|
|||
|
|
vm.pcgcode = vm.pcgcode ?? OffCode;
|
|||
|
|
vm.CMs = Dao.Get<CM>("cm.cms.forbuy", new System.Collections.Hashtable() { { "pcgcode", vm.pcgcode }, { "cgcode", vm.cgcode }, { "cnamelike", vm.cname }, { "userno", SUserInfo.UserNo }, { "isrequestable", 1 }/*, { "year", DateTime.Now.Year }*/, { "orderby", "a.retime desc" }, { "contents", vm.Contents } });
|
|||
|
|
if (vm.CMs.Count() > 0)
|
|||
|
|
{
|
|||
|
|
vm.CMBooks = Dao.Get<Book>("cm.cmbooks", string.Join(",", vm.CMs.Select(s => s.cmno)));
|
|||
|
|
}
|
|||
|
|
vm.viewname = "OffSearch";
|
|||
|
|
vm.viewname2 = "OffSpecials";
|
|||
|
|
vm.viewname3 = "Special";
|
|||
|
|
vm.previewname = "/Course/OffSpecials?cname=" + (vm.cname ?? "");
|
|||
|
|
return View("Offs", vm);
|
|||
|
|
}
|
|||
|
|
public ActionResult OffSearch(VMCourse vm)
|
|||
|
|
{
|
|||
|
|
vm.pcgcode = vm.pcgcode ?? OffCode;
|
|||
|
|
vm.CMs = Dao.Get<CM>("cm.cms.forbuy", new System.Collections.Hashtable() { { "pcgcode", vm.pcgcode }, { "cnamelike", vm.cname },{"userno",SUserInfo.UserNo },{"isrequestable",1 }/*, { "year", DateTime.Now.Year }*/,{"orderby","a.retime,a.cname" }, { "contents", vm.Contents } });
|
|||
|
|
if (vm.CMs.Count() > 0)
|
|||
|
|
{
|
|||
|
|
vm.CMBooks = Dao.Get<Book>("cm.cmbooks", string.Join(",", vm.CMs.Select(s=>s.cmno)));
|
|||
|
|
}
|
|||
|
|
vm.viewname = vm.viewname2 = "OffSearch";
|
|||
|
|
vm.previewname = "/Course/OffSearch?cname=" + (vm.cname??"");
|
|||
|
|
return View("Offs", vm);
|
|||
|
|
}
|
|||
|
|
public ActionResult CCOn1(VMCourse vm)
|
|||
|
|
{
|
|||
|
|
vm.viewname = vm.viewname ?? "EduBOn1";
|
|||
|
|
return View(vm);
|
|||
|
|
}
|
|||
|
|
public ActionResult CC1(VMCourse vm)
|
|||
|
|
{
|
|||
|
|
vm.viewname = vm.viewname ?? "EduB1";
|
|||
|
|
return View(vm);
|
|||
|
|
}
|
|||
|
|
public ActionResult CC2(VMCourse vm)
|
|||
|
|
{
|
|||
|
|
vm.viewname = vm.viewname ?? "EduB2";
|
|||
|
|
return View(vm);
|
|||
|
|
}
|
|||
|
|
public ActionResult CC3(VMCourse vm)
|
|||
|
|
{
|
|||
|
|
vm.viewname = vm.viewname ?? "EduB3";
|
|||
|
|
return View(vm);
|
|||
|
|
}
|
|||
|
|
public ActionResult EduBOn1(VMCourse vm)
|
|||
|
|
{
|
|||
|
|
vm.EduB2B = new EduB2B() { etype = 1 };
|
|||
|
|
return EduB2B(vm);
|
|||
|
|
}
|
|||
|
|
public ActionResult EduB1(VMCourse vm)
|
|||
|
|
{
|
|||
|
|
vm.EduB2B = new EduB2B() { etype = 2 };
|
|||
|
|
return EduB2B(vm);
|
|||
|
|
}
|
|||
|
|
public ActionResult EduB2(VMCourse vm)
|
|||
|
|
{
|
|||
|
|
vm.EduB2B = new EduB2B() { etype = 0 };
|
|||
|
|
vm.FileList = new List<File>() { };
|
|||
|
|
return EduB2B(vm);
|
|||
|
|
}
|
|||
|
|
public ActionResult EduB3(VMCourse vm)
|
|||
|
|
{
|
|||
|
|
vm.EduB2B = new EduB2B() { etype = 3 };
|
|||
|
|
return EduB2B(vm);
|
|||
|
|
}
|
|||
|
|
public ActionResult EduB2B(VMCourse vm)
|
|||
|
|
{
|
|||
|
|
vm.User = Dao.Get<Users>("users.users", new System.Collections.Hashtable() { { "userno", SUserInfo.UserNo } }).First();
|
|||
|
|
if (vm.User.asno != null)
|
|||
|
|
{
|
|||
|
|
var am = Dao.Get<AssignMan>("users.assignmans", new System.Collections.Hashtable() { { "asno", vm.User.asno.Value } }).Where(w => w.mtype == 1).FirstOrDefault();
|
|||
|
|
if (am != null)
|
|||
|
|
{
|
|||
|
|
vm.User.asmanname = am.mname;
|
|||
|
|
vm.User.email = am.email;
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
return View("EduB2B", vm);
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
public ActionResult OffDetailCollege(VMCourse vm)
|
|||
|
|
{
|
|||
|
|
if (vm.cmno < 1)
|
|||
|
|
{
|
|||
|
|
return Redirect("/Course/OffColleges");
|
|||
|
|
}
|
|||
|
|
vm.viewname3 = "College";
|
|||
|
|
vm.previewname = vm.previewname ?? "/Course/OffColleges";
|
|||
|
|
return OffDetail(vm);
|
|||
|
|
}
|
|||
|
|
public ActionResult OffDetailTotal(VMCourse vm)
|
|||
|
|
{
|
|||
|
|
if (vm.cmno < 1)
|
|||
|
|
{
|
|||
|
|
return Redirect("/Course/OffTotals");
|
|||
|
|
}
|
|||
|
|
vm.viewname3 = "Total";
|
|||
|
|
vm.previewname = vm.previewname ?? "/Course/OffTotals";
|
|||
|
|
return OffDetail(vm);
|
|||
|
|
}
|
|||
|
|
public ActionResult OffDetailSpecial(VMCourse vm)
|
|||
|
|
{
|
|||
|
|
if (vm.cmno < 1)
|
|||
|
|
{
|
|||
|
|
return Redirect("/Course/OffSpecials");
|
|||
|
|
}
|
|||
|
|
vm.viewname3 = "Special";
|
|||
|
|
vm.previewname = vm.previewname ?? "/Course/OffSpecials";
|
|||
|
|
return OffDetail(vm);
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
public ActionResult OffBuyCollege(VMCourse vm)
|
|||
|
|
{
|
|||
|
|
if (vm.cmno < 1) { return Redirect("/"); }
|
|||
|
|
vm.viewname3 = "College";
|
|||
|
|
vm.previewname = vm.previewname ?? "/Course/OffColleges";
|
|||
|
|
POffBuy(vm);
|
|||
|
|
return View("OffBuy", vm);
|
|||
|
|
}
|
|||
|
|
public ActionResult OffBuyTotal(VMCourse vm)
|
|||
|
|
{
|
|||
|
|
if (vm.cmno < 1) { return Redirect("/"); }
|
|||
|
|
vm.viewname3 = "Total";
|
|||
|
|
vm.previewname = vm.previewname ?? "/Course/OffTotals";
|
|||
|
|
POffBuy(vm);
|
|||
|
|
return View("OffBuy", vm);
|
|||
|
|
}
|
|||
|
|
public ActionResult OffBuySpecial(VMCourse vm)
|
|||
|
|
{
|
|||
|
|
if (vm.cmno < 1) { return Redirect("/"); }
|
|||
|
|
vm.viewname3 = "Special";
|
|||
|
|
vm.previewname = vm.previewname ?? "/Course/OffSpecials";
|
|||
|
|
POffBuy(vm);
|
|||
|
|
return View("OffBuy", vm);
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
private void POffBuy(VMCourse vm)
|
|||
|
|
{
|
|||
|
|
vm.viewname3 = vm.viewname3 ?? "";
|
|||
|
|
vm.previewname = "/Course/Offs";
|
|||
|
|
vm.CM = Dao.Get<CM>("cm.cms.forbuy", new System.Collections.Hashtable() { { "cmno", vm.cmno }, { "userno", SUserInfo.UserNo }, { "contents", vm.Contents } }).First();
|
|||
|
|
vm.CMBooks = Dao.Get<Book>("cm.cmbooks", vm.cmno.ToString());
|
|||
|
|
vm.User = Dao.Get<Users>("users.users", new System.Collections.Hashtable() { { "userno", SUserInfo.UserNo } }).First();
|
|||
|
|
vm.ComCodes = GetComCodes("jobposition,job", true);
|
|||
|
|
for (int i = vm.ComCodes.Count() - 1; i > -1; i--)
|
|||
|
|
{
|
|||
|
|
if (vm.ComCodes[i].isuse == 0 && (vm.ComCodes[i].cgroup != "jobposition" || (vm.ComCodes[i].cgroup == "jobposition" && vm.ComCodes[i].refcode != "9")))
|
|||
|
|
{
|
|||
|
|
vm.ComCodes.RemoveAt(i);
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
public ActionResult PayOffCollege(VMPay vm)
|
|||
|
|
{
|
|||
|
|
vm.viewname3 = "College";
|
|||
|
|
vm.previewname = "/Course/OffColleges";
|
|||
|
|
vm.viewname4 = GetConfig("fronturl") + "/Course/OffCollegePayReturn";
|
|||
|
|
base.PayAll(vm);
|
|||
|
|
return PayOff(vm);
|
|||
|
|
}
|
|||
|
|
public ActionResult PayOffTotal(VMPay vm)
|
|||
|
|
{
|
|||
|
|
vm.viewname3 = "Total";
|
|||
|
|
vm.previewname = vm.previewname ?? "/Course/OffTotals";
|
|||
|
|
vm.viewname4 = GetConfig("fronturl") + "/Course/OffTotalPayReturn";
|
|||
|
|
base.PayAll(vm);
|
|||
|
|
return PayOff(vm);
|
|||
|
|
}
|
|||
|
|
public ActionResult PayOffSpecial(VMPay vm)
|
|||
|
|
{
|
|||
|
|
vm.viewname3 = "Special";
|
|||
|
|
vm.previewname = vm.previewname ?? "/Course/OffSpecials";
|
|||
|
|
vm.viewname4 = GetConfig("fronturl") + "/Course/OffDetailPayReturn";
|
|||
|
|
base.PayAll(vm);
|
|||
|
|
return PayOff(vm);
|
|||
|
|
}
|
|||
|
|
public ActionResult PayOff(VMPay vm)
|
|||
|
|
{
|
|||
|
|
if (string.IsNullOrEmpty(vm.items) && !vm.ispayexam && !(vm.ispaycert && vm.payno > 0) && !vm.ispaycart)
|
|||
|
|
{
|
|||
|
|
return Redirect("/Course/Offs");
|
|||
|
|
}
|
|||
|
|
vm.viewname4 = vm.viewname4 ?? (GetConfig("fronturl") + "/Course/OffPayReturn");
|
|||
|
|
vm.viewname6 = vm.viewname6 ?? (GetConfig("pginfomobile").Split('|')[0] + "/Course/OffPayReturn");
|
|||
|
|
foreach (var d in vm.items.Split(';'))
|
|||
|
|
{
|
|||
|
|
var dd = d.Split(':');
|
|||
|
|
if (dd[0] == "0")
|
|||
|
|
{
|
|||
|
|
vm.previewname = "/OffDetail?cmno=" + dd[1];
|
|||
|
|
break;
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
//vm.previewname = vm.previewname ?? "/Course/Offs";
|
|||
|
|
base.PayAll(vm);
|
|||
|
|
return View("Pay",vm);
|
|||
|
|
}
|
|||
|
|
public ActionResult OffPayReturn(VMPay vm)
|
|||
|
|
{
|
|||
|
|
return PayReturn(vm);
|
|||
|
|
}
|
|||
|
|
public ActionResult OffCollegePayReturn(VMPay vm)
|
|||
|
|
{
|
|||
|
|
return PayReturn(vm);
|
|||
|
|
}
|
|||
|
|
public ActionResult OffTotalPayReturn(VMPay vm)
|
|||
|
|
{
|
|||
|
|
return PayReturn(vm);
|
|||
|
|
}
|
|||
|
|
public ActionResult OffSpecialPayReturn(VMPay vm)
|
|||
|
|
{
|
|||
|
|
return PayReturn(vm);
|
|||
|
|
}
|
|||
|
|
public ActionResult PayClose(VMPay vm)
|
|||
|
|
{
|
|||
|
|
vm.pginfo = GetConfig("pginfo");
|
|||
|
|
return View(vm);
|
|||
|
|
}
|
|||
|
|
public ActionResult OnPayReturn(VMPay vm)
|
|||
|
|
{
|
|||
|
|
return PayReturn(vm);
|
|||
|
|
}
|
|||
|
|
public ActionResult OnCollegePayReturn(VMPay vm)
|
|||
|
|
{
|
|||
|
|
return PayReturn(vm);
|
|||
|
|
}
|
|||
|
|
public ActionResult OnBasePayReturn(VMPay vm)
|
|||
|
|
{
|
|||
|
|
return PayReturn(vm);
|
|||
|
|
}
|
|||
|
|
public ActionResult CoverPayReturn(VMPay vm)
|
|||
|
|
{
|
|||
|
|
return PayReturn(vm);
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|