HN.UI/Controllers/SaleSettleController.cs

(开头部分) 6KB

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

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

namespace HN.UI.Controllers
{
    public class SaleSettleController : Controller
    {
        //
        // GET: /销售结算/
        Settlement settlebll = new Settlement();
        Settlements settleblls = new Settlements();

        #region View-销售结算单 Index()
        [GlobalFilter("menu")]
        public ActionResult Index()
        {
            return View();
        }
        #endregion

        #region Method-获取数据列表 GetList(string billNo, string startDate, string endDate, string auditStatus, int rows, int page)
        [HttpPost]
        public string GetList(string billNo, string startDate, string endDate, string auditStatus, int rows, int page)
        {
            DataTable dt = settlebll.GetSaleSettleList(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", "/TransferBill/Index")]
        public ActionResult Edit(string id)
        {
            SettlementInfo model = new SettlementInfo();
            decimal avaMoney = 0;  //可用余额
            string custName = "";  //客户名称
            if (!string.IsNullOrEmpty(id))
            {
                model = settlebll.GetModelByStID(null, Convert.ToInt32(id));
                avaMoney =model.Moeny_B+new Balance().GetAvaMoney(SessionInfo.OrgID,model.CustID.ToString(), null);
                custName = new Customer().GetModel(null, model.CustID).CustName;
            }
            else
            {
                model.BillDate = DateTime.Now;
                model.CreateID = Convert.ToInt32(SessionInfo.UserID);
                model.CreateName = SessionInfo.UserName;
                model.OrgID = SessionInfo.OrgID;
            }
            ViewBag.PayTypeList = new SelectList(new DictValue().GetListByKey("收款类型", false, ""), "Remark", "ValName");
            ViewBag.BankList = new SelectList(new BankAccount().GetListByOrgID(model.OrgID), "BkID", "AccountName");
            ViewBag.AvaMoney = avaMoney;
后面还有 110 行代码,购买后查看完整代码

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

AI 解读

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

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