|
|
|
|
@ -268,14 +268,14 @@ namespace FactorySystemApi.Controllers
|
|
|
|
|
if (hasFinish) savePath = savePath.Replace("\\File\\Temp\\", "\\File\\View\\");
|
|
|
|
|
if (!File.Exists(savePath) || !hasFinish)
|
|
|
|
|
{
|
|
|
|
|
MaterialBll.CreateExeclFile(inParam["FName"].ToString(), savePath, "", "", "", inParam["FID"].ToString(), "");
|
|
|
|
|
MaterialBll.CreateExeclFile(inParam["FName"].ToString() + "_全部视图", savePath, "", "", "", inParam["FID"].ToString(), "");
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
File.Delete(basePath + string.Format("\\File\\Temp\\{0}_{1}\\", inParam["FID"], "View"));
|
|
|
|
|
MaterialBll.CreateExeclFile(inParam["FName"].ToString(), savePath, "", "", "", inParam["FID"].ToString(), "");
|
|
|
|
|
File.Delete(basePath + string.Format("\\File\\Temp\\{0}_{1}\\", inParam["FID"], "全部视图"));
|
|
|
|
|
MaterialBll.CreateExeclFile(inParam["FName"].ToString() + "_全部视图", savePath, "", "", "", inParam["FID"].ToString(), "");
|
|
|
|
|
}
|
|
|
|
|
string url = Request.RequestUri.AbsoluteUri.Replace(Request.RequestUri.AbsolutePath, "") + savePath.Replace(basePath, "").Replace("\\", "/").Replace(".xlsx", inParam["FName"].ToString() + ".xlsx");
|
|
|
|
|
string url = Request.RequestUri.AbsoluteUri.Replace(Request.RequestUri.AbsolutePath, "") + savePath.Replace(basePath, "").Replace("\\", "/").Replace(".xlsx", inParam["FName"].ToString() + "_全部视图" + ".xlsx");
|
|
|
|
|
apiResult.Data = url;
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
@ -331,14 +331,14 @@ namespace FactorySystemApi.Controllers
|
|
|
|
|
if (hasFinish) savePath = savePath.Replace("\\File\\Temp\\", "\\File\\View\\");
|
|
|
|
|
if (!File.Exists(savePath) || !hasFinish)
|
|
|
|
|
{
|
|
|
|
|
MaterialBll.CreateExeclFileSAP(inParam["FName"].ToString(), savePath, "", "", "", inParam["FID"].ToString(), "");
|
|
|
|
|
MaterialBll.CreateExeclFileSAP(inParam["FName"].ToString() + "_SAP视图", savePath, "", "", "", inParam["FID"].ToString(), "");
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
File.Delete(basePath + string.Format("\\File\\Temp\\{0}_{1}\\", inParam["FID"], "SAP"));
|
|
|
|
|
MaterialBll.CreateExeclFileSAP(inParam["FName"].ToString(), savePath, "", "", "", inParam["FID"].ToString(), "");
|
|
|
|
|
File.Delete(basePath + string.Format("\\File\\Temp\\{0}_{1}\\", inParam["FID"], "SAP视图"));
|
|
|
|
|
MaterialBll.CreateExeclFileSAP(inParam["FName"].ToString() + "_SAP视图", savePath, "", "", "", inParam["FID"].ToString(), "");
|
|
|
|
|
}
|
|
|
|
|
string url = Request.RequestUri.AbsoluteUri.Replace(Request.RequestUri.AbsolutePath, "") + savePath.Replace(basePath, "").Replace("\\", "/").Replace(".xlsx", inParam["FName"].ToString() + ".xlsx");
|
|
|
|
|
string url = Request.RequestUri.AbsoluteUri.Replace(Request.RequestUri.AbsolutePath, "") + savePath.Replace(basePath, "").Replace("\\", "/").Replace(".xlsx", inParam["FName"].ToString() + "_SAP视图" + ".xlsx");
|
|
|
|
|
apiResult.Data = url;
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
@ -360,7 +360,7 @@ namespace FactorySystemApi.Controllers
|
|
|
|
|
ApiResult apiResult = new ApiResult();
|
|
|
|
|
return ExceptionHelper.TryReturnException(() =>
|
|
|
|
|
{
|
|
|
|
|
string str = inParam["FType"].ToString() == "1" ? "视图" : "物料视图";
|
|
|
|
|
string str = inParam["FType"].ToString() == "1" ? "全部视图" : "SAP视图";
|
|
|
|
|
inParam.TryGetValue("FViewType", out object objType);
|
|
|
|
|
//string FType = null == objType ? Constant.TeamViewType.物料视图.ToString() : objType.ToString();
|
|
|
|
|
//string selectSql = "", joinSql = "", whereSql = string.Format("TFS_FTeamwork.FID={0} ", inParam["FTeamID"]);
|
|
|
|
|
|