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.

69 lines
1.7 KiB
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web.Mvc;
using DSWeb.Areas.TruckMng.Models.Comm;
using DSWeb.Areas.CommMng.DAL;
using DSWeb.Areas.Import.DAL.XXH;
using DSWeb.Areas.Import.Models.XXH;
using DSWeb.TruckMng.Comm.Cookie;
using DSWeb.TruckMng.Helper;
using DSWeb.TruckMng.Helper.Repository;
using HcUtility.Comm;
using HcUtility.Core;
namespace DSWeb.Areas.Import.Controllers
{
[JsonRequestBehavior]
public class CWSettlementController : 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 int Settlement(int newStatus, string GId)
{
var _count = 0;
// _count = XXHDAL.Settlement(newStatus, GId);
return _count;
}
#region 参照部分
#endregion
}
}