@ -156,6 +156,30 @@ namespace FactorySystemApi.Controllers
}
} , apiResult , Request , inParam ) ;
}
/// <summary>
/// 根据试验号获取物料
/// </summary>
/// <param name="inParam"></param>
/// <returns></returns>
[HttpPost]
public ApiResult GetMaterialListByFTestCode ( Dictionary < string , object > inParam )
{
ApiResult apiResult = new ApiResult ( ) ;
return ExceptionHelper . TryReturnException ( ( ) = >
{
if ( inParam = = null )
{
apiResult . Error ( "未接收到参数" ) ;
}
else
{
if ( inParam . ContainsKey ( "FTestCode" ) )
{
apiResult . Data = MaterialBll . GetMaterialListByFTestCode ( inParam [ "FTestCode" ] . ToString ( ) ) ;
}
}
} , apiResult , Request , inParam ) ;
}
/// <summary>
/// ( 对接) MDM获取物料PLM码
@ -223,7 +247,7 @@ namespace FactorySystemApi.Controllers
/// 导出视图
/// </summary>
/// <returns></returns>
public ApiResult DownMateialView ( Dictionary < string , object > inParam )
public ApiResult DownMateialView ( Dictionary < string , object > inParam )
{
ApiResult apiResult = new ApiResult ( ) ;
return ExceptionHelper . TryReturnException ( ( ) = >
@ -359,7 +383,7 @@ namespace FactorySystemApi.Controllers
MaterialBll . CreateExeclFileALL ( inParam [ "FType" ] . ToString ( ) , savePath ) ;
}
string url = Request . RequestUri . AbsoluteUri . Replace ( Request . RequestUri . AbsolutePath , "" ) + savePath . Replace ( basePath , "" ) . Replace ( "\\" , "/" ) . Replace ( ".xlsx" , str + ".xlsx" ) ;
string url = Request . RequestUri . AbsoluteUri . Replace ( Request . RequestUri . AbsolutePath , "" ) + savePath . Replace ( basePath , "" ) . Replace ( "\\" , "/" ) . Replace ( ".xlsx" , str + ".xlsx" ) ;
apiResult . Data = url ;
} , apiResult , Request , inParam ) ;
}
@ -389,7 +413,7 @@ namespace FactorySystemApi.Controllers
else
{
int tempId = int . Parse ( inParam [ "tempId" ] . ToString ( ) ) ;
int taskId = int . Parse ( inParam [ "taskId" ] . ToString ( ) ) ;
int taskId = int . Parse ( inParam [ "taskId" ] . ToString ( ) ) ;
inParam . Remove ( "tempId" ) ;
inParam . Remove ( "taskId" ) ;
@ -401,7 +425,7 @@ namespace FactorySystemApi.Controllers
if ( result . Where ( m = > m . FSuccedaneumID = = 0 ) . Count ( ) = = 0 )
{
BaseBll . UpdateTeamProcess ( tempId , ( int ) Constant . ProcessType . 替 代 品 确 认 , 2 , 2 ) ;
int count = MaterialBll . ExecSql ( BaseBll . GetTaskSql ( taskId , 2 , tempId , ( int ) Constant . TaskType . 替 代 料 确 认 ) ) ;
int count = MaterialBll . ExecSql ( BaseBll . GetTaskSql ( taskId , 2 , tempId , ( int ) Constant . TaskType . 替 代 料 确 认 ) ) ;
}
}