BN089-BS开发框架MVC4版/source20131023/Zephyr.Web/Generator/Staff1/StaffController.cs
(开头部分) 5KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Collections.Generic;
using System.Dynamic;
using System.Net.Http;
using System.Web.Http;
using System.Web.Mvc;
using Newtonsoft.Json.Linq;
using Zephyr.Core;
using Zephyr.Models;
namespace Zephyr.Areas.Mms.Controllers
{
public class StaffController : Controller
{
public ActionResult Edit(string id = "")
{
var model = new
{
urls = new {
getdata = "/api/Mms/Staff/GetPageData/", //获取主表数据及数据滚动数据api
edit = "/api/Mms/Staff/edit/", //数据保存api
audit = "/api/Mms/Staff/audit/", //审核api
newkey = "/api/Mms/Staff/GetNewRowId/" //获取新的明细数据的主键(日语叫采番)
},
resx = new {
rejected = "已撤消修改!",
editSuccess = "保存成功!",
auditPassed ="单据已通过审核!",
auditReject = "单据已取消审核!"
},
dataSource = new{
pageData=new StaffApiController().GetPageData(id)
//payKinds = codeService.GetValueTextListByType("PayType")
},
form = new{
defaults = new REMP_Staff().Extend(new { EMPSID = "",DEPTID = "",UserName = "",EmployeeName = "",DisplayName = "",RealNameSpell = "",UserType = "",EmployeeCode = "",Gender = "",Birthday = "",Nationality = ""}),
primaryKeys = new string[]{"EMPSID"}
},
tabs = new object[]{
new{
type = "grid",
defaults = new {CHANID = "",EMPSID = "",changedate = "",changetype = "",createtime = ""},
postFields = new string[] { "CHANID","EMPSID","changedate","changetype","createtime"}
},
new{
type = "form",
defaults = new {Folk = "",Native = "",VoucherName = "",UserIndentity = "",Register = "",OfficeAddress = ""},
primaryKeys = new string[]{"EMPSID"}
},
new{
type = "form",
defaults = new {HomeAddress = "",HomeZipCode = "",OfficeFax = "",IsStaff = "",InDutyDate = "",TryDutyEndDate = "",Duty = "",OutDuty = "",DutyLevel = ""},
primaryKeys = new string[]{"EMPSID"}
}
}
};
return View(model);
}
后面还有 94 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。