BN089-BS开发框架MVC4版/source20131023/Zephyr.Web/Generator/Code/CodeController.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;
using Zephyr.Web.Areas.Mms.Common;
namespace Zephyr.Areas.Mms.Controllers
{
public class CodeController : Controller
{
public ActionResult Index()
{
var code = new sys_codeService();
var model = new
{
dataSource = new{
dsPricing = code.GetValueTextListByType("Pricing")
},
urls = new{
query = "/api/mms/Code",
newkey = "/api/mms/Code/getnewkey",
edit = "/api/mms/Code/edit"
},
resx = new{
noneSelect = "请先选择一条数据!",
editSuccess = "保存成功!",
auditSuccess = "单据已审核!"
},
form = new{
Code = "" ,
Text = ""
},
defaultRow = new {
},
setting = new{
postListFields = new string[] { "Value" ,"Text" ,"Seq" }
};
return View(model);
}
}
public class CodeApiController : ApiController
{
public dynamic Get(RequestWrapper query)
{
query.LoadSettingXmlString(@"
<settings defaultOrderBy='ID'>
<select>*</select>
<from>sys_code</from>
<where defaultForAll='true' defaultCp='equal' defaultIgnoreEmpty='true' >
<field name='Code' cp='equal'></field>
<field name='Text' cp='equal'></field>
后面还有 30 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。
