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.
65 lines
2.1 KiB
C#
65 lines
2.1 KiB
C#
using System;
|
|
using System.Linq;
|
|
using System.Web.Mvc;
|
|
using System.Collections.Generic;
|
|
using HcUtility.Comm;
|
|
using HcUtility.Core;
|
|
using System.Web.Script.Serialization;
|
|
using DSWeb.EntityDA;
|
|
using System.Data;
|
|
using System.Text;
|
|
using DSWeb.Areas.MvcShipping.Models.JinKouSuYuan;
|
|
using DSWeb.Areas.MvcShipping.DAL.JinKouSuYuan;
|
|
using DSWeb.MvcShipping.Helper;
|
|
|
|
namespace DSWeb.MvcShipping.Controllers
|
|
{
|
|
public class JinKouSuYuan_ShiBieMaController : Controller
|
|
{
|
|
//
|
|
// GET:
|
|
public ActionResult Index ( )
|
|
{
|
|
return View();
|
|
}
|
|
//
|
|
// GET: /
|
|
public ActionResult Edit ( )
|
|
{
|
|
return View();
|
|
}
|
|
public ActionResult InEdit ( )
|
|
{
|
|
return View();
|
|
}
|
|
|
|
public ContentResult GetDataList_CODE(int start, int limit, string sort, string condition)
|
|
{
|
|
int count = 0;
|
|
var dataList = JinKouSuYuanShiBieMaDAL.GetDataList_Code(condition, start, limit, out count, sort);
|
|
var timeStamp = DateTime.Now.ToShortDateString();
|
|
var json = JsonConvert.Serialize(new { Success = true, Message = "查询成功", totalCount = count, data = dataList.ToList(), timeStamp = timeStamp });
|
|
return new ContentResult() { Content = json };
|
|
}
|
|
|
|
public ContentResult Delete(string opstatus, string data)
|
|
{
|
|
var head = JsonConvert.Deserialize<List<OP_GOOD_ID>>(data);
|
|
string msg = "";
|
|
bool result = JinKouSuYuanShiBieMaDAL.Delete_Code(head, out msg);
|
|
var json = JsonConvert.Serialize(new { Success = result, Message = msg });
|
|
return new ContentResult() { Content = json };
|
|
}
|
|
|
|
public ContentResult Recovery(string opstatus, string data)
|
|
{
|
|
var head = JsonConvert.Deserialize<List<OP_GOOD_ID>>(data);
|
|
string msg = "";
|
|
bool result = JinKouSuYuanShiBieMaDAL.Recovery_Code(head, out msg);
|
|
var json = JsonConvert.Serialize(new { Success = result, Message = msg });
|
|
return new ContentResult() { Content = json };
|
|
}
|
|
|
|
|
|
}
|
|
} |