Controllers/I2/I0207Controller.cs
(开头部分) 6KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Collections.Generic;
using System.Data;
using System.Data.Entity;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using OPMS.Models;
using System.Text;
using System.IO;
namespace OPMS.Controllers
{
public class I0207Controller : BaseController
{
private DBHelp db = new DBHelp();
//
// GET: /I0207/
public ActionResult Index()
{
return View(db.I0207.ToList());
}
//
// GET: /I0207/Details/5
public ActionResult Details(int id = 0)
{
I0207 i0207 = db.I0207.Find(id);
if (i0207 == null)
{
return HttpNotFound();
}
return View(i0207);
}
//
// GET: /I0207/Create
public ActionResult Create()
{
I0207 i0207 = new I0207();
i0207.Host = CurrentUserInfo.Name;
i0207.ApplyTime = Convert.ToDateTime(StringHelper.NowTime.ToString("yyyy-MM-dd HH:mm"));
i0207.Jb = 1;
i0207.Meeting = 60;
i0207.StartTime = Convert.ToDateTime(StringHelper.NowTime.AddDays(1).ToString("yyyy-MM-dd HH:00"));
return View(i0207);
}
//
// POST: /I0207/Create
[HttpPost]
public ActionResult Create(I0207 i0207)
{
#region 上传资料
HttpPostedFileBase imgfile = Request.Files["file2"];
后面还有 117 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
