You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
using NFine.Application.WMS;using System;using System.Collections.Generic;using System.Data;using System.IO;using System.Linq;using System.Web;using System.Web.Mvc;using NFine.Code;using System.Data.SqlClient;using NFine.Data.Extensions;using System.Data.OleDb;using System.Configuration;using ICS.Application.Entity;
namespace NFine.Web.Areas.WMS.Controllers{ public class DeciliterController : ControllerBase {
DeciliterApp App = new DeciliterApp(); // GET: WMS/Deciliter
public ActionResult ICSDeciliter() { return View(); }
public ActionResult LotNoSplit() { return View(); } public ActionResult LotNoCombine() { return View(); }
public ActionResult LotNoPackingSplit() { return View(); }
[HttpGet] [HandlerAjaxOnly] public ActionResult GetNewLotNo(string LotNO) { string ListData = App.GetNewLotNo(LotNO); var data = new { rows = ListData, }; return Content(data.ToJson()); }
[HttpGet] [HandlerAjaxOnly] public ActionResult GetNewLotNoByPacking(string LotNO) { string ListData = App.GetNewLotNoByPacking(LotNO); var data = new { rows = ListData, }; return Content(data.ToJson()); }
[HttpPost] [HandlerAjaxOnly] public ActionResult Split(string Parameter) {
string msg = App.Split(Parameter); if (!string.IsNullOrEmpty(msg)) { return Error(msg); } else { return Success("添加成功!"); } }
//根据ID获取条码
public ActionResult GetLotNoByID(string ID) { DataTable dt = App.GetLotNoByID(ID); return Content(dt.ToJson()); }
//合批
public ActionResult Combine(string LotNo,string ID) { string msg = App.Combine(LotNo,ID); if (string.IsNullOrEmpty(msg)) { return Success("操作成功!"); } else { return Error("" + msg + ""); } }
}}
|