BN089-BS开发框架MVC4版/source20131023/Zephyr.Web/Generator/Project/ProjectController.cs
(开头部分) 3KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Http;
using System.Web.Mvc;
using Zephyr.Core;
using Zephyr.Models;
using Zephyr.Web.Areas.Mms.Common;
namespace Zephyr.Areas.Mms.Controllers
{
public class ProjectController : Controller
{
public ActionResult Index()
{
var code = new sys_codeService();
var model = new
{
dataSource = new{
dsPricing = code.GetValueTextListByType("Pricing")
},
urls = new{
query = "/api/mms/Project",
newkey = "/api/mms/Project/getnewkey",
edit = "/api/mms/Project/edit"
},
resx = new{
noneSelect = "请先选择一条数据!",
editSuccess = "保存成功!",
auditSuccess = "单据已审核!"
},
form = new{
ParentCode = "" ,
ShortName = "" ,
ProjectName = "" ,
OwnerUnit = "" ,
DesignUnit = "" ,
ConstructionUnit = ""
},
defaultRow = new {
},
setting = new{
idField = "ProjectCode",
postListFields = new string[] { "ParentCode" ,"DesignUnit" ,"SupervisionUnit" ,"ContractMoney" ,"OwnerUnit" ,"ShortName" ,"ProjectName" ,"ConstructionUnit" ,"ChargePerson" ,"ContractBeginDate" ,"ActualBeginDate" }
};
};
return View(model);
}
}
public class ProjectApiController : ApiController
{
public dynamic Get(RequestWrapper query)
{
query.LoadSettingXmlString(@"
后面还有 40 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。