BN089-BS开发框架MVC4版/source20131023/Zephyr.Web/Generator/Liy/LiyController.cs
(开头部分) 2KB这里只显示每个文件的开头 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;
namespace Zephyr.Areas.Mms.Controllers
{
public class LiyController : Controller
{
public ActionResult Index()
{
var code = new sys_codeService();
var model = new
{
dataSource = new{
dsPricing = code.GetValueTextListByType("Pricing")
},
urls = new{
query = "/api/Mms/Liy",
newkey = "/api/Mms/Liy/getnewkey",
edit = "/api/Mms/Liy/edit"
},
resx = new{
noneSelect = "请先选择一条数据!",
editSuccess = "保存成功!",
auditSuccess = "单据已审核!"
},
form = new{
DepartmentID = "" ,
IsValid = "" ,
ApproveState = "" ,
Remark = "" ,
OutDateTime = ""
},
defaultRow = new {
},
setting = new{
idField = "ID",
postListFields = new string[] { "ID" ,"DepartmentID" ,"IsValid" ,"OutDateTime" ,"ApproveState" ,"ApprovePerson" ,"ApproveDate" ,"ApproveRemark" ,"Remark" }
}
};
return View(model);
}
}
public class LiyApiController : ApiController
{
public dynamic Get(RequestWrapper query)
{
query.LoadSettingXmlString(@"
<settings defaultOrderBy='ID'>
<select>*</select>
<from>test_liy</from>
后面还有 36 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。
