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>(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>(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 }; } } }