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.
This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.
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
{
/// <summary>
/// SAP指令导入模块控制类
/// </summary>
public class PredictionOrderImportController : Controller
{
private PredictionOrderImportService service = new PredictionOrderImportService ( ) ;
public ActionResult Index ( )
{
return View ( ) ;
}
#region 指令导入
/// <summary>
/// 指令导入
/// </summary>
/// <returns></returns>
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
}
}