You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
82 lines
2.3 KiB
C#
82 lines
2.3 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Web.Mvc;
|
|
using DSWeb.Areas.OA.Models.Comm;
|
|
using DSWeb.Areas.CommMng.DAL;
|
|
using DSWeb.Areas.Import.DAL.XXH;
|
|
using DSWeb.Areas.Import.Models.XXH;
|
|
using DSWeb.Areas.OA.DAL.FeeInput;
|
|
using DSWeb.TruckMng.Comm.Cookie;
|
|
using DSWeb.TruckMng.Helper;
|
|
using DSWeb.TruckMng.Helper.Repository;
|
|
using DSWeb.Areas.Import.DAL.Comm; //引用chfee的module
|
|
using HcUtility.Comm;
|
|
using HcUtility.Core;
|
|
using DSWeb.SoftMng.Filter;
|
|
|
|
namespace DSWeb.Areas.OA.Controllers
|
|
{
|
|
[JsonRequestBehavior]
|
|
public class FeeInputController : Controller
|
|
{
|
|
//
|
|
// GET: /Import/create
|
|
public ActionResult Index()
|
|
{
|
|
return View();
|
|
}
|
|
|
|
//
|
|
// GET: /Import/create/Edit
|
|
public ActionResult Edit()
|
|
{
|
|
return View();
|
|
}
|
|
/*
|
|
public ContentResult Save(string chfeebody)
|
|
{
|
|
var chfeeBodyList = JsonConvert.Deserialize<List<MsChFee>>(chfeebody);
|
|
|
|
var modb = new ModelObjectRepository();
|
|
DBResult result = modb.Save(
|
|
ModelObjectConvert<MsChFee>.ToModelObjectList(chfeeBodyList)
|
|
);
|
|
|
|
//刷新父窗口上的父节点
|
|
var jsonRespose = new JsonResponse
|
|
{
|
|
Success = result.Success,
|
|
Message = result.Message,
|
|
//Data = XXHDAL.GetData("M.ContractNo='" + head.ContractNo + "'")
|
|
};
|
|
|
|
return new ContentResult() { Content = JsonConvert.Serialize(jsonRespose) };
|
|
}*/
|
|
/*
|
|
public ContentResult Delete(string Feeid)
|
|
{
|
|
|
|
|
|
return new ContentResult() { Content = JsonConvert.Serialize(jsonRespose) };
|
|
}*/
|
|
[SqlKeyWordsFilter(Type = "Action")]//sql 防注入过滤器
|
|
public ContentResult GetVWSettlement(int start, int limit, string sort, string condition)
|
|
{
|
|
var dataList = FeeInputDAL.GetVWSettlement(condition, sort);
|
|
|
|
var list = dataList.Skip(start).Take(limit);
|
|
|
|
var json = JsonConvert.Serialize(new { Success = true, Message = "查询成功", totalCount = dataList.Count, data = list.ToList() });
|
|
return new ContentResult() { Content = json };
|
|
}
|
|
|
|
|
|
#region 参照部分
|
|
|
|
|
|
#endregion
|
|
|
|
}
|
|
}
|