HN.UI/Controllers/RetailOutWController.cs
(开头部分) 4KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using HN.BLL;
using HN.Model;
using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Mvc;
namespace HN.UI.Controllers
{
public class RetailOutWController : Controller
{
//
// GET: /销售无原单退货/
RetailOut robll = new RetailOut();
RetailOuts rosbll = new RetailOuts();
#region View-销售退货无原单 Index()
[GlobalFilter("menu")]
public ActionResult Index()
{
return View();
}
#endregion
#region Method-获取退货单列表 GetList(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 = robll.GetRetailOutlList(billNo, SessionInfo.OrgID.ToString(), startDate, endDate, auditStatus, "2", 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", "/RetailOutW/Index")]
public ActionResult Edit(string id)
{
RetailOutInfo model = new RetailOutInfo();
if (!string.IsNullOrEmpty(id))
{
model = robll.GetModel(null, Convert.ToInt64(id));
}
else
{
model.CreateID = Convert.ToInt32(SessionInfo.UserID);
model.CreateName = SessionInfo.UserName;
model.BillDate = DateTime.Now;
model.PayWay = 1;
model.OrgID = SessionInfo.OrgID;
}
ViewBag.WHouseList = new SelectList(new WareHouse().GetModelListByOrgID(SessionInfo.OrgID), "WhID", "WhName");
return View(model);
}
#endregion
后面还有 75 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
