HN.UI/Controllers/PayMentController.cs

(开头部分) 4KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using HN.BLL;
using HN.Model;
using System.Data;
using Newtonsoft.Json;

namespace HN.UI.Controllers
{
    public class PayMentController : Controller
    {
        //
        // GET: /资金支出单/
        PayMent paymentbll = new PayMent();

        #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 GetPayList(string billNo, string startDate, string endDate, string auditStatus, string Type, int rows, int page)
        {
            DataTable dt = paymentbll.GetPayList(billNo, SessionInfo.OrgID, Type, 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", "/PayMent/Index")]
        public ActionResult Edit(string id)
        {
            PayMentInfo model = new PayMentInfo();
            string venName = "";  //客户名称
            if (!string.IsNullOrEmpty(id))
            {
                model = paymentbll.GetModel(null, Convert.ToInt32(id));
                if (model.VenID != null)
                {
                    venName = new Vendor().GetModel(null, (int)model.VenID).VenName;
                }
            }
            else
            {
                model.PayDate = DateTime.Now;
            }
            ViewBag.VenName = venName;
            ViewBag.PayTypeList = new SelectList(new DictValue().GetListByKey("付款类型", false, ""), "Remark", "ValName");
            ViewBag.BankList = new SelectList(new BankAccount().GetListByOrgID(SessionInfo.OrgID), "BkID", "AccountName");
            return View(model);
        }
        #endregion
后面还有 68 行代码,购买后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明

AI 解读

登录后可用,每次 10 积分,解读结果公开显示在下面。

还没有人解读过这个文件。