using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using System.Collections;
using Estsh.Web.Service;
using Estsh.Web.Util;
using Estsh.Web.Models;
using System.Threading;
using System.Text;
using System.IO;
/***************************************************************************************************
*
* 作者:贾文涛
* 创建时间:2015.09.08
* 描述:SAP指令导入模块控制类
* 修改日志:
*
* *************************************************************************************************/
namespace Estsh.Core.Web.Controllers
{
///
/// SAP指令导入模块控制类
///
public class PredictionOrderImportController : Controller
{
private PredictionOrderImportService service = new PredictionOrderImportService();
public ActionResult Index()
{
return View();
}
#region 指令导入
///
/// 指令导入
///
///
public ActionResult importOrderInfo(int orderType)
{
Hashtable result = new Hashtable();
HttpPostedFileBase userDataFile = Request.Files[0];
UserInfo user = (UserInfo)Session["loginedUser"];
if (userDataFile == null)
{
return null;
}
result = service.ReadExcelFile(userDataFile.InputStream,orderType,user);
return Json(result);
}
#endregion
}
}