HN.UI/Controllers/VoucherController.cs
(开头部分) 4KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using HN.Model;
using HN.BLL;
using Newtonsoft.Json;
namespace HN.UI.Controllers
{
public class VoucherController : Controller
{
//
// GET: /记账凭证/
Voucher voubll = new Voucher();
Vouchers vousbll = new Vouchers();
#region View-记账凭证 Index()
[GlobalFilter("menu")]
public ActionResult Index()
{
return View();
}
#endregion
#region Method-获取记账凭证列表 GetPayList(string billNo, string startDate, string endDate, string auditStatus,string Type, int rows, int page)
[HttpPost]
public string GetList(string billNo, string startDate, string endDate, string auditStatus, string Type, int rows, int page)
{
DataTable dt = voubll.GetVoucherList(billNo, SessionInfo.OrgID.ToString(), startDate, endDate, auditStatus, rows, page);
int totalCount = Convert.ToInt32(dt.DataSet.Tables["Page_TotalCount"].Rows[0][0].ToString());
return JsonConvert.SerializeObject(new { rows = dt, total = totalCount });
}
#endregion
#region View-添加/编辑记账凭证 Edit(string id)
[GlobalFilter("btn", "/Voucher/Index")]
public ActionResult Edit(string id)
{
VoucherInfo model = new VoucherInfo();
if (!string.IsNullOrEmpty(id))
{
model = voubll.GetModel(null, Convert.ToInt64(id));
}
else
{
model.CreateID = Convert.ToInt32(SessionInfo.UserID);
model.CreateName = SessionInfo.UserName;
model.VoDate = DateTime.Now;
}
return View(model);
}
#endregion
#region Method-添加/编辑记账凭证 Edit(PositionInfo model)
[HttpPost]
[GlobalFilter("btn", "/Voucher/Index")]
public string Edit(VoucherInfo model, string bills)
后面还有 67 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
