jianghaiqing 4 months ago
commit dd1d5646b5

@ -45,13 +45,13 @@ public class ClientCommonController : ApiController
/// <summary> /// <summary>
/// 获取商品下拉列表-客户端 /// 获取商品下拉列表-客户端
/// </summary> /// </summary>
/// <param name="code">商品代码</param> /// <param name="queryKey">商品代码</param>
/// <returns></returns> /// <returns></returns>
[HttpGet] [HttpGet]
[Route("GetClientGoodsList")] [Route("GetClientGoodsList")]
public async Task<DataResult<List<CodeGoodsSelectRes>>> GetClientGoodsList([FromQuery] string code) public async Task<DataResult<List<CodeGoodsSelectRes>>> GetClientGoodsList([FromQuery] string queryKey)
{ {
var res = await _invokeService.GetClientGoodsList(code); var res = await _invokeService.GetClientGoodsList(queryKey);
return res; return res;
} }
/// <summary> /// <summary>
@ -574,9 +574,9 @@ public class ClientCommonController : ApiController
/// <returns></returns> /// <returns></returns>
[HttpGet] [HttpGet]
[Route("GetVesselSelectList")] [Route("GetVesselSelectList")]
public DataResult<List<CodeVesselSelectRes>> GetVesselSelectList() public DataResult<List<CodeVesselSelectRes>> GetVesselSelectList([FromQuery] string queryKey = "")
{ {
var res = _invokeService.GetVesselSelectList(); var res = _invokeService.GetVesselSelectList(queryKey);
return res; return res;
} }
@ -586,9 +586,9 @@ public class ClientCommonController : ApiController
/// <returns></returns> /// <returns></returns>
[HttpGet] [HttpGet]
[Route("GetVoynoSelectList")] [Route("GetVoynoSelectList")]
public DataResult<List<CodeVoynoSelectRes>> GetVoynoSelectList() public DataResult<List<CodeVoynoSelectRes>> GetVoynoSelectList([FromQuery] string queryKey = "")
{ {
var res = _invokeService.GetVoynoSelectList(); var res = _invokeService.GetVoynoSelectList(queryKey);
return res; return res;
} }

@ -312,6 +312,8 @@ namespace DS.WMS.PrintApi.Service
var printFileName = $"{fileName}.frx"; var printFileName = $"{fileName}.frx";
var printFile = Path.Combine(savePath, printFileName); var printFile = Path.Combine(savePath, printFileName);
//写入CRX文件 //写入CRX文件
using (FileStream fs = new FileStream(printFile, FileMode.Create)) using (FileStream fs = new FileStream(printFile, FileMode.Create))
{ {
@ -331,13 +333,14 @@ namespace DS.WMS.PrintApi.Service
report.Dictionary.Connections.Add(new JsonDataSourceConnection() report.Dictionary.Connections.Add(new JsonDataSourceConnection()
{ {
ConnectionString = str.ConnectionString, ConnectionString = str.ConnectionString,
Name = "Connection", Name = "Connection",
}); });
} }
else { //else {
var dataSource = report.Dictionary.Connections[0] as JsonDataSourceConnection; // var dataSource = report.Dictionary.Connections[0] as JsonDataSourceConnection;
dataSource.ConnectionString = str.ConnectionString; // dataSource.ConnectionString = str.ConnectionString;
} //}
//var dataSource = report.Dictionary.Connections[0] as JsonDataSourceConnection; //var dataSource = report.Dictionary.Connections[0] as JsonDataSourceConnection;
//var str = new FastReport.Data.JsonConnection.JsonDataSourceConnectionStringBuilder(); //var str = new FastReport.Data.JsonConnection.JsonDataSourceConnectionStringBuilder();
//str.Json = JsonConvert.SerializeObject(data); //str.Json = JsonConvert.SerializeObject(data);

Loading…
Cancel
Save