diff --git a/ds-wms-service/DS.WMS.MainApi/Controllers/ClientCommonController.cs b/ds-wms-service/DS.WMS.MainApi/Controllers/ClientCommonController.cs index 3151273f..a27e38de 100644 --- a/ds-wms-service/DS.WMS.MainApi/Controllers/ClientCommonController.cs +++ b/ds-wms-service/DS.WMS.MainApi/Controllers/ClientCommonController.cs @@ -45,13 +45,13 @@ public class ClientCommonController : ApiController /// /// 获取商品下拉列表-客户端 /// - /// 商品代码 + /// 商品代码 /// [HttpGet] [Route("GetClientGoodsList")] - public async Task>> GetClientGoodsList([FromQuery] string code) + public async Task>> GetClientGoodsList([FromQuery] string queryKey) { - var res = await _invokeService.GetClientGoodsList(code); + var res = await _invokeService.GetClientGoodsList(queryKey); return res; } /// @@ -574,9 +574,9 @@ public class ClientCommonController : ApiController /// [HttpGet] [Route("GetVesselSelectList")] - public DataResult> GetVesselSelectList() + public DataResult> GetVesselSelectList([FromQuery] string queryKey = "") { - var res = _invokeService.GetVesselSelectList(); + var res = _invokeService.GetVesselSelectList(queryKey); return res; } @@ -586,9 +586,9 @@ public class ClientCommonController : ApiController /// [HttpGet] [Route("GetVoynoSelectList")] - public DataResult> GetVoynoSelectList() + public DataResult> GetVoynoSelectList([FromQuery] string queryKey = "") { - var res = _invokeService.GetVoynoSelectList(); + var res = _invokeService.GetVoynoSelectList(queryKey); return res; } diff --git a/ds-wms-service/DS.WMS.PrintApi/Service/OpenPrintService.cs b/ds-wms-service/DS.WMS.PrintApi/Service/OpenPrintService.cs index 0e0b930e..34235e72 100644 --- a/ds-wms-service/DS.WMS.PrintApi/Service/OpenPrintService.cs +++ b/ds-wms-service/DS.WMS.PrintApi/Service/OpenPrintService.cs @@ -312,6 +312,8 @@ namespace DS.WMS.PrintApi.Service var printFileName = $"{fileName}.frx"; var printFile = Path.Combine(savePath, printFileName); + + //写入CRX文件 using (FileStream fs = new FileStream(printFile, FileMode.Create)) { @@ -331,13 +333,14 @@ namespace DS.WMS.PrintApi.Service report.Dictionary.Connections.Add(new JsonDataSourceConnection() { ConnectionString = str.ConnectionString, - Name = "Connection", + Name = "Connection", }); } - else { - var dataSource = report.Dictionary.Connections[0] as JsonDataSourceConnection; - dataSource.ConnectionString = str.ConnectionString; - } + //else { + // var dataSource = report.Dictionary.Connections[0] as JsonDataSourceConnection; + // dataSource.ConnectionString = str.ConnectionString; + //} + //var dataSource = report.Dictionary.Connections[0] as JsonDataSourceConnection; //var str = new FastReport.Data.JsonConnection.JsonDataSourceConnectionStringBuilder(); //str.Json = JsonConvert.SerializeObject(data);