油漆实验室添加产品描述
This commit is contained in:
@@ -91,12 +91,12 @@ namespace ZR.Admin.WebApi.Controllers.mes.qc.FQC
|
|||||||
/// <param name="isShowDetail">是否展示细节,展示细节则根据三行,两行合并规则</param>
|
/// <param name="isShowDetail">是否展示细节,展示细节则根据三行,两行合并规则</param>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
[HttpGet("downloadStatisticsTableExcel")]
|
[HttpGet("downloadStatisticsTableExcel")]
|
||||||
public IActionResult DownloadStatisticsTableExcel(DateTime starttime, DateTime endTime, string workorderid, string partnumber, string product_description, string team, int pageNum, int pageSize, int type, bool isShowDetail)
|
public IActionResult DownloadStatisticsTableExcel(DateTime starttime, DateTime endTime, string workorderid, string partnumber, string product_description, string team, int pageNum, int pageSize, int type, bool isShowDetail,int sortType)
|
||||||
{
|
{
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
string fileName = @"导出统计报表-" + DateTime.Now.ToString("yyyyMMddHHmmss") + "-" + Guid.NewGuid() + ".xlsx";
|
string fileName = @"导出统计报表-" + DateTime.Now.ToString("yyyyMMddHHmmss") + "-" + Guid.NewGuid() + ".xlsx";
|
||||||
List<QcQualityStatisticsFirstDto> excelDataList = qcStatistics.DownloadStatisticsTableExcel(starttime, endTime, workorderid, partnumber, product_description, team, pageNum, pageSize, type);
|
List<QcQualityStatisticsFirstDto> excelDataList = qcStatistics.DownloadStatisticsTableExcel(starttime, endTime, workorderid, partnumber, product_description, team, pageNum, pageSize, type, sortType);
|
||||||
XSSFWorkbook workbook = new XSSFWorkbook();
|
XSSFWorkbook workbook = new XSSFWorkbook();
|
||||||
var sheet = workbook.CreateSheet();
|
var sheet = workbook.CreateSheet();
|
||||||
// 单元格样式
|
// 单元格样式
|
||||||
|
|||||||
@@ -21,17 +21,18 @@ namespace ZR.Admin.WebApi.Controllers.mes.ql
|
|||||||
/// <param name="starttime"></param>
|
/// <param name="starttime"></param>
|
||||||
/// <param name="endTime"></param>
|
/// <param name="endTime"></param>
|
||||||
/// <param name="workorderid">颜色代码</param>
|
/// <param name="workorderid">颜色代码</param>
|
||||||
|
/// <param name="description">产品描述</param>
|
||||||
/// <param name="pageNum"></param>
|
/// <param name="pageNum"></param>
|
||||||
/// <param name="pageSize"></param>
|
/// <param name="pageSize"></param>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
[HttpGet("gettestlist")]
|
[HttpGet("gettestlist")]
|
||||||
public IActionResult GetTestlist(DateTime starttime, DateTime endTime, string workorderid, int pageNum, int pageSize)
|
public IActionResult GetTestlist(DateTime starttime, DateTime endTime, string workorderid, string description, int pageNum, int pageSize)
|
||||||
{
|
{
|
||||||
//starttime = starttime.AddHours(8);
|
//starttime = starttime.AddHours(8);
|
||||||
//endTime = endTime.AddHours(8);
|
//endTime = endTime.AddHours(8);
|
||||||
|
|
||||||
// 时间要增加,8个小时
|
// 时间要增加,8个小时
|
||||||
(List<PLTest>, int) lst = plTestService.GetPLTestTable(starttime, endTime, workorderid, pageNum, pageSize);
|
(List<PLTest>, int) lst = plTestService.GetPLTestTable(starttime, endTime, workorderid, description, pageNum, pageSize);
|
||||||
|
|
||||||
return ToResponse(new ApiResult(200, "success", lst));
|
return ToResponse(new ApiResult(200, "success", lst));
|
||||||
}
|
}
|
||||||
@@ -89,6 +90,7 @@ namespace ZR.Admin.WebApi.Controllers.mes.ql
|
|||||||
PLTest pLTest = new PLTest();
|
PLTest pLTest = new PLTest();
|
||||||
pLTest.Id = pLTestDto.Id;
|
pLTest.Id = pLTestDto.Id;
|
||||||
pLTest.IdGroup = pLTestDto.plIdGroup;
|
pLTest.IdGroup = pLTestDto.plIdGroup;
|
||||||
|
pLTest.Description = pLTestDto.Description;
|
||||||
pLTest.Code = pLTestDto.plCode;
|
pLTest.Code = pLTestDto.plCode;
|
||||||
pLTest.Dt = pLTestDto.plDt;
|
pLTest.Dt = pLTestDto.plDt;
|
||||||
pLTest.Value01 = pLTestDto.plValue01;
|
pLTest.Value01 = pLTestDto.plValue01;
|
||||||
|
|||||||
@@ -25,13 +25,13 @@ namespace ZR.Admin.WebApi.Controllers.mes.ql
|
|||||||
/// <param name="pageSize"></param>
|
/// <param name="pageSize"></param>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
[HttpGet("getbatchlist")]
|
[HttpGet("getbatchlist")]
|
||||||
public IActionResult GetBatchlist(DateTime starttime, DateTime endTime, string workorderid, int pageNum, int pageSize)
|
public IActionResult GetBatchlist(DateTime starttime, DateTime endTime, string workorderid, string description, int pageNum, int pageSize)
|
||||||
{
|
{
|
||||||
|
|
||||||
//starttime = starttime.AddHours(8);
|
//starttime = starttime.AddHours(8);
|
||||||
//endTime = endTime.AddHours(8);
|
//endTime = endTime.AddHours(8);
|
||||||
// 时间要增加,8个小时
|
// 时间要增加,8个小时
|
||||||
(List<PLBatch>, int) lst = plBatchService.GetPLBatchTable(starttime, endTime, workorderid, pageNum, pageSize);
|
(List<PLBatch>, int) lst = plBatchService.GetPLBatchTable(starttime, endTime, workorderid, description, pageNum, pageSize);
|
||||||
|
|
||||||
return ToResponse(new ApiResult(200, "success", lst));
|
return ToResponse(new ApiResult(200, "success", lst));
|
||||||
}
|
}
|
||||||
@@ -89,6 +89,7 @@ namespace ZR.Admin.WebApi.Controllers.mes.ql
|
|||||||
PLBatch pLBatch = new PLBatch();
|
PLBatch pLBatch = new PLBatch();
|
||||||
pLBatch.Id = pLBatchDto.Id;
|
pLBatch.Id = pLBatchDto.Id;
|
||||||
pLBatch.IdGroup = pLBatchDto.plIdGroup;
|
pLBatch.IdGroup = pLBatchDto.plIdGroup;
|
||||||
|
pLBatch.Description = pLBatchDto.Description;
|
||||||
pLBatch.Code = pLBatchDto.plCode;
|
pLBatch.Code = pLBatchDto.plCode;
|
||||||
pLBatch.Dt = pLBatchDto.plDt;
|
pLBatch.Dt = pLBatchDto.plDt;
|
||||||
pLBatch.Value01 = pLBatchDto.plValue01;
|
pLBatch.Value01 = pLBatchDto.plValue01;
|
||||||
|
|||||||
@@ -41,13 +41,13 @@ namespace ZR.Admin.WebApi.Controllers.mes.ql
|
|||||||
/// <param name="pageSize">页大小</param>
|
/// <param name="pageSize">页大小</param>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
[HttpGet("getrawmateriallist")]
|
[HttpGet("getrawmateriallist")]
|
||||||
public IActionResult GetRawMateriallist(DateTime starttime, DateTime endTime, string workorderid,string partnumber,int pageNum, int pageSize)
|
public IActionResult GetRawMateriallist(DateTime starttime, DateTime endTime, string workorderid,string partnumber,string description, int pageNum, int pageSize)
|
||||||
{
|
{
|
||||||
//starttime = starttime.AddHours(8);
|
//starttime = starttime.AddHours(8);
|
||||||
//endTime = endTime.AddHours(8);
|
//endTime = endTime.AddHours(8);
|
||||||
|
|
||||||
// 时间要增加,8个小时
|
// 时间要增加,8个小时
|
||||||
(List<PLRawMaterial>, int) lst = plRawMaterialService.GetRawMaterialTable(starttime, endTime, workorderid, partnumber,pageNum, pageSize);
|
(List<PLRawMaterial>, int) lst = plRawMaterialService.GetRawMaterialTable(starttime, endTime, workorderid, partnumber, description, pageNum, pageSize);
|
||||||
|
|
||||||
return ToResponse(new ApiResult(200, "success", lst));
|
return ToResponse(new ApiResult(200, "success", lst));
|
||||||
}
|
}
|
||||||
@@ -105,6 +105,7 @@ namespace ZR.Admin.WebApi.Controllers.mes.ql
|
|||||||
PLRawMaterial pLRawMaterial = new PLRawMaterial();
|
PLRawMaterial pLRawMaterial = new PLRawMaterial();
|
||||||
pLRawMaterial.Id = pLRawMaterialDto.Id;
|
pLRawMaterial.Id = pLRawMaterialDto.Id;
|
||||||
pLRawMaterial.IdGroup = pLRawMaterialDto.plIdGroup;
|
pLRawMaterial.IdGroup = pLRawMaterialDto.plIdGroup;
|
||||||
|
pLRawMaterial.Description = pLRawMaterialDto.Description;
|
||||||
pLRawMaterial.Code = pLRawMaterialDto.plCode;
|
pLRawMaterial.Code = pLRawMaterialDto.plCode;
|
||||||
pLRawMaterial.Pci = pLRawMaterialDto.plPci;
|
pLRawMaterial.Pci = pLRawMaterialDto.plPci;
|
||||||
pLRawMaterial.Value01 = pLRawMaterialDto.plValue01;
|
pLRawMaterial.Value01 = pLRawMaterialDto.plValue01;
|
||||||
|
|||||||
@@ -16,6 +16,11 @@
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
public string plIdGroup { get; set; }
|
public string plIdGroup { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 产品描述
|
||||||
|
/// </summary>
|
||||||
|
public string Description { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 颜色/代号
|
/// 颜色/代号
|
||||||
///</summary>
|
///</summary>
|
||||||
|
|||||||
@@ -16,6 +16,11 @@
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
public string plIdGroup { get; set; }
|
public string plIdGroup { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 产品描述
|
||||||
|
/// </summary>
|
||||||
|
public string Description { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 颜色/代号
|
/// 颜色/代号
|
||||||
///</summary>
|
///</summary>
|
||||||
|
|||||||
@@ -16,6 +16,11 @@
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
public string plIdGroup { get; set; }
|
public string plIdGroup { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 产品描述
|
||||||
|
/// </summary>
|
||||||
|
public string Description { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 颜色/代号
|
/// 颜色/代号
|
||||||
///</summary>
|
///</summary>
|
||||||
|
|||||||
@@ -19,6 +19,13 @@
|
|||||||
[SugarColumn(ColumnName = "id_group")]
|
[SugarColumn(ColumnName = "id_group")]
|
||||||
public string IdGroup { get; set; }
|
public string IdGroup { get; set; }
|
||||||
|
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 产品描述
|
||||||
|
/// </summary>
|
||||||
|
[SugarColumn(ColumnName = "description")]
|
||||||
|
public string Description { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 日期
|
/// 日期
|
||||||
///</summary>
|
///</summary>
|
||||||
|
|||||||
@@ -19,6 +19,12 @@
|
|||||||
[SugarColumn(ColumnName = "id_group")]
|
[SugarColumn(ColumnName = "id_group")]
|
||||||
public string IdGroup { get; set; }
|
public string IdGroup { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 产品描述
|
||||||
|
/// </summary>
|
||||||
|
[SugarColumn(ColumnName = "description")]
|
||||||
|
public string Description { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 颜色/代号
|
/// 颜色/代号
|
||||||
///</summary>
|
///</summary>
|
||||||
|
|||||||
@@ -19,6 +19,12 @@
|
|||||||
[SugarColumn(ColumnName = "id_group")]
|
[SugarColumn(ColumnName = "id_group")]
|
||||||
public string IdGroup { get; set; }
|
public string IdGroup { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 产品描述
|
||||||
|
/// </summary>
|
||||||
|
[SugarColumn(ColumnName = "description")]
|
||||||
|
public string Description { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 日期
|
/// 日期
|
||||||
///</summary>
|
///</summary>
|
||||||
|
|||||||
@@ -82,6 +82,7 @@ namespace ZR.Service.mes.qc.IService
|
|||||||
/// <param name="pageNum"></param>
|
/// <param name="pageNum"></param>
|
||||||
/// <param name="pageSize"></param>
|
/// <param name="pageSize"></param>
|
||||||
/// <param name="type"></param>
|
/// <param name="type"></param>
|
||||||
|
/// <param name="sortType">排序描述</param>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
List<QcQualityStatisticsFirstDto> DownloadStatisticsTableExcel(
|
List<QcQualityStatisticsFirstDto> DownloadStatisticsTableExcel(
|
||||||
DateTime starttime,
|
DateTime starttime,
|
||||||
@@ -92,7 +93,8 @@ namespace ZR.Service.mes.qc.IService
|
|||||||
string team,
|
string team,
|
||||||
int pageNum,
|
int pageNum,
|
||||||
int pageSize,
|
int pageSize,
|
||||||
int type
|
int type,
|
||||||
|
int sortType
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -395,7 +395,8 @@ namespace ZR.Service.mes.qc
|
|||||||
string team,
|
string team,
|
||||||
int pageNum,
|
int pageNum,
|
||||||
int pageSize,
|
int pageSize,
|
||||||
int type
|
int type,
|
||||||
|
int sortType = 0
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
try
|
try
|
||||||
@@ -414,7 +415,8 @@ namespace ZR.Service.mes.qc
|
|||||||
product_description,
|
product_description,
|
||||||
team,
|
team,
|
||||||
pageNum,
|
pageNum,
|
||||||
pageSize
|
pageSize,
|
||||||
|
sortType
|
||||||
),
|
),
|
||||||
// 抛光
|
// 抛光
|
||||||
2
|
2
|
||||||
@@ -426,7 +428,8 @@ namespace ZR.Service.mes.qc
|
|||||||
product_description,
|
product_description,
|
||||||
team,
|
team,
|
||||||
pageNum,
|
pageNum,
|
||||||
pageSize
|
pageSize,
|
||||||
|
sortType
|
||||||
),
|
),
|
||||||
// 包装
|
// 包装
|
||||||
3
|
3
|
||||||
@@ -438,7 +441,8 @@ namespace ZR.Service.mes.qc
|
|||||||
product_description,
|
product_description,
|
||||||
team,
|
team,
|
||||||
pageNum,
|
pageNum,
|
||||||
pageSize
|
pageSize,
|
||||||
|
sortType
|
||||||
),
|
),
|
||||||
// 总表
|
// 总表
|
||||||
4
|
4
|
||||||
@@ -450,7 +454,8 @@ namespace ZR.Service.mes.qc
|
|||||||
product_description,
|
product_description,
|
||||||
team,
|
team,
|
||||||
pageNum,
|
pageNum,
|
||||||
pageSize
|
pageSize,
|
||||||
|
sortType
|
||||||
),
|
),
|
||||||
_ => throw new Exception("获取的报表类型错误!" + type),
|
_ => throw new Exception("获取的报表类型错误!" + type),
|
||||||
};
|
};
|
||||||
@@ -469,7 +474,8 @@ namespace ZR.Service.mes.qc
|
|||||||
string product_description,
|
string product_description,
|
||||||
string team,
|
string team,
|
||||||
int pageNum,
|
int pageNum,
|
||||||
int pageSize
|
int pageSize,
|
||||||
|
int sortType
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
List<QcQualityStatisticsFirst> list = GetQualityStatisticsTable_first(
|
List<QcQualityStatisticsFirst> list = GetQualityStatisticsTable_first(
|
||||||
@@ -480,7 +486,8 @@ namespace ZR.Service.mes.qc
|
|||||||
product_description,
|
product_description,
|
||||||
team,
|
team,
|
||||||
pageNum,
|
pageNum,
|
||||||
pageSize
|
pageSize,
|
||||||
|
sortType
|
||||||
).Item1;
|
).Item1;
|
||||||
List<QcQualityStatisticsFirstDto> newList = list.Select(
|
List<QcQualityStatisticsFirstDto> newList = list.Select(
|
||||||
item => new QcQualityStatisticsFirstDto()
|
item => new QcQualityStatisticsFirstDto()
|
||||||
@@ -548,7 +555,8 @@ namespace ZR.Service.mes.qc
|
|||||||
string product_description,
|
string product_description,
|
||||||
string team,
|
string team,
|
||||||
int pageNum,
|
int pageNum,
|
||||||
int pageSize
|
int pageSize,
|
||||||
|
int sortType
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
List<QcQualityStatisticsAgain> list = GetQualityStatisticsTable_again(
|
List<QcQualityStatisticsAgain> list = GetQualityStatisticsTable_again(
|
||||||
@@ -559,7 +567,8 @@ namespace ZR.Service.mes.qc
|
|||||||
product_description,
|
product_description,
|
||||||
team,
|
team,
|
||||||
pageNum,
|
pageNum,
|
||||||
pageSize
|
pageSize,
|
||||||
|
sortType
|
||||||
).Item1;
|
).Item1;
|
||||||
List<QcQualityStatisticsFirstDto> newList = list.Select(
|
List<QcQualityStatisticsFirstDto> newList = list.Select(
|
||||||
item => new QcQualityStatisticsFirstDto()
|
item => new QcQualityStatisticsFirstDto()
|
||||||
@@ -627,7 +636,8 @@ namespace ZR.Service.mes.qc
|
|||||||
string product_description,
|
string product_description,
|
||||||
string team,
|
string team,
|
||||||
int pageNum,
|
int pageNum,
|
||||||
int pageSize
|
int pageSize,
|
||||||
|
int sortType
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
List<QcQualityStatisticsFinal> list = GetQualityStatisticsTable_final(
|
List<QcQualityStatisticsFinal> list = GetQualityStatisticsTable_final(
|
||||||
@@ -638,7 +648,8 @@ namespace ZR.Service.mes.qc
|
|||||||
product_description,
|
product_description,
|
||||||
team,
|
team,
|
||||||
pageNum,
|
pageNum,
|
||||||
pageSize
|
pageSize,
|
||||||
|
sortType
|
||||||
).Item1;
|
).Item1;
|
||||||
List<QcQualityStatisticsFirstDto> newList = list.Select(
|
List<QcQualityStatisticsFirstDto> newList = list.Select(
|
||||||
item => new QcQualityStatisticsFirstDto()
|
item => new QcQualityStatisticsFirstDto()
|
||||||
@@ -706,7 +717,8 @@ namespace ZR.Service.mes.qc
|
|||||||
string product_description,
|
string product_description,
|
||||||
string team,
|
string team,
|
||||||
int pageNum,
|
int pageNum,
|
||||||
int pageSize
|
int pageSize,
|
||||||
|
int sortType
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
List<QcQualityStatisticsTotal> list = GetQualityStatisticsTable_total(
|
List<QcQualityStatisticsTotal> list = GetQualityStatisticsTable_total(
|
||||||
@@ -717,7 +729,8 @@ namespace ZR.Service.mes.qc
|
|||||||
product_description,
|
product_description,
|
||||||
team,
|
team,
|
||||||
pageNum,
|
pageNum,
|
||||||
pageSize
|
pageSize,
|
||||||
|
sortType
|
||||||
).Item1;
|
).Item1;
|
||||||
List<QcQualityStatisticsFirstDto> newList = list.Select(
|
List<QcQualityStatisticsFirstDto> newList = list.Select(
|
||||||
item => new QcQualityStatisticsFirstDto()
|
item => new QcQualityStatisticsFirstDto()
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ namespace ZR.Service.mes.ql.IService
|
|||||||
public interface IPLBatchService
|
public interface IPLBatchService
|
||||||
{
|
{
|
||||||
|
|
||||||
public (List<PLBatch>, int) GetPLBatchTable(DateTime starttime, DateTime endTime, string code, int pageNum, int pageSize);
|
public (List<PLBatch>, int) GetPLBatchTable(DateTime starttime, DateTime endTime, string code,string description, int pageNum, int pageSize);
|
||||||
|
|
||||||
public int AddPLBatchRecords(int num, int size);
|
public int AddPLBatchRecords(int num, int size);
|
||||||
|
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ namespace ZR.Service.mes.ql.IService
|
|||||||
public interface IPLRawMaterialService
|
public interface IPLRawMaterialService
|
||||||
{
|
{
|
||||||
|
|
||||||
public (List<PLRawMaterial>, int) GetRawMaterialTable(DateTime starttime, DateTime endTime, string pci, string colorCode, int pageNum, int pageSize);
|
public (List<PLRawMaterial>, int) GetRawMaterialTable(DateTime starttime, DateTime endTime, string pci, string colorCode,string description, int pageNum, int pageSize);
|
||||||
|
|
||||||
public int AddRawMaterialRecords(int num, int size);
|
public int AddRawMaterialRecords(int num, int size);
|
||||||
|
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ namespace ZR.Service.mes.ql.IService
|
|||||||
public interface IPLTestService
|
public interface IPLTestService
|
||||||
{
|
{
|
||||||
|
|
||||||
public (List<PLTest>, int) GetPLTestTable(DateTime starttime, DateTime endTime, string code, int pageNum, int pageSize);
|
public (List<PLTest>, int) GetPLTestTable(DateTime starttime, DateTime endTime, string code,string description, int pageNum, int pageSize);
|
||||||
|
|
||||||
public int AddPLTestRecords(int num, int size);
|
public int AddPLTestRecords(int num, int size);
|
||||||
|
|
||||||
|
|||||||
@@ -66,7 +66,7 @@ namespace ZR.Service.mes.ql
|
|||||||
/// <param name="pageSize"></param>
|
/// <param name="pageSize"></param>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
/// <exception cref="NotImplementedException"></exception>
|
/// <exception cref="NotImplementedException"></exception>
|
||||||
public (List<PLBatch>, int) GetPLBatchTable(DateTime starttime, DateTime endTime, string code, int pageNum, int pageSize)
|
public (List<PLBatch>, int) GetPLBatchTable(DateTime starttime, DateTime endTime, string code,string description, int pageNum, int pageSize)
|
||||||
{
|
{
|
||||||
starttime = starttime.ToLocalTime();
|
starttime = starttime.ToLocalTime();
|
||||||
endTime = endTime.ToLocalTime();
|
endTime = endTime.ToLocalTime();
|
||||||
@@ -75,6 +75,7 @@ namespace ZR.Service.mes.ql
|
|||||||
.AndIF(starttime > new DateTime(2023, 1, 1, 0, 0, 0), it => it.CreatedTime >= starttime.ToLocalTime())
|
.AndIF(starttime > new DateTime(2023, 1, 1, 0, 0, 0), it => it.CreatedTime >= starttime.ToLocalTime())
|
||||||
.AndIF(endTime > new DateTime(2023, 1, 1, 0, 0, 0), it => it.CreatedTime <= endTime.ToLocalTime())
|
.AndIF(endTime > new DateTime(2023, 1, 1, 0, 0, 0), it => it.CreatedTime <= endTime.ToLocalTime())
|
||||||
.AndIF(!string.IsNullOrEmpty(code), it => it.Code.Contains(code))
|
.AndIF(!string.IsNullOrEmpty(code), it => it.Code.Contains(code))
|
||||||
|
.AndIF(!string.IsNullOrEmpty(description), it => it.Description.Contains(description))
|
||||||
.ToExpression();
|
.ToExpression();
|
||||||
|
|
||||||
//int totalNum = 0;
|
//int totalNum = 0;
|
||||||
@@ -103,6 +104,7 @@ namespace ZR.Service.mes.ql
|
|||||||
{
|
{
|
||||||
Id = 0,
|
Id = 0,
|
||||||
IdGroup = DateTime.Now.ToString("yyyyMMddHHmmssfff"),
|
IdGroup = DateTime.Now.ToString("yyyyMMddHHmmssfff"),
|
||||||
|
Description = "",
|
||||||
Dt = "",
|
Dt = "",
|
||||||
Code = "",
|
Code = "",
|
||||||
Value01 = "",
|
Value01 = "",
|
||||||
|
|||||||
@@ -58,7 +58,7 @@ namespace ZR.Service.mes.ql
|
|||||||
/// 查询数据记录,要改成分页查询
|
/// 查询数据记录,要改成分页查询
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
public (List<PLRawMaterial>, int) GetRawMaterialTable(DateTime starttime, DateTime endTime, string pci, string colorCode, int pageNum, int pageSize)
|
public (List<PLRawMaterial>, int) GetRawMaterialTable(DateTime starttime, DateTime endTime, string pci, string colorCode,string description, int pageNum, int pageSize)
|
||||||
{
|
{
|
||||||
starttime = starttime.ToLocalTime();
|
starttime = starttime.ToLocalTime();
|
||||||
endTime = endTime.ToLocalTime();
|
endTime = endTime.ToLocalTime();
|
||||||
@@ -68,6 +68,7 @@ namespace ZR.Service.mes.ql
|
|||||||
.AndIF(endTime > new DateTime(2023, 1, 1, 0, 0, 0), it => it.CreatedTime <= endTime.ToLocalTime())
|
.AndIF(endTime > new DateTime(2023, 1, 1, 0, 0, 0), it => it.CreatedTime <= endTime.ToLocalTime())
|
||||||
.AndIF(!string.IsNullOrEmpty(pci), it => it.Pci.Contains(pci))
|
.AndIF(!string.IsNullOrEmpty(pci), it => it.Pci.Contains(pci))
|
||||||
.AndIF(!string.IsNullOrEmpty(colorCode), it => it.Pci.Contains(colorCode))
|
.AndIF(!string.IsNullOrEmpty(colorCode), it => it.Pci.Contains(colorCode))
|
||||||
|
.AndIF(!string.IsNullOrEmpty(description), it => it.Description.Contains(description))
|
||||||
.ToExpression();
|
.ToExpression();
|
||||||
|
|
||||||
|
|
||||||
@@ -113,6 +114,7 @@ namespace ZR.Service.mes.ql
|
|||||||
{
|
{
|
||||||
Id = 0,
|
Id = 0,
|
||||||
IdGroup = DateTime.Now.ToString("yyyyMMddHHmmssfff"),
|
IdGroup = DateTime.Now.ToString("yyyyMMddHHmmssfff"),
|
||||||
|
Description = "",
|
||||||
Code = "",
|
Code = "",
|
||||||
Pci = "",
|
Pci = "",
|
||||||
Value01 = "",
|
Value01 = "",
|
||||||
|
|||||||
@@ -66,7 +66,7 @@ namespace ZR.Service.mes.ql
|
|||||||
/// <param name="pageSize"></param>
|
/// <param name="pageSize"></param>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
/// <exception cref="NotImplementedException"></exception>
|
/// <exception cref="NotImplementedException"></exception>
|
||||||
public (List<PLTest>, int) GetPLTestTable(DateTime starttime, DateTime endTime, string code, int pageNum, int pageSize)
|
public (List<PLTest>, int) GetPLTestTable(DateTime starttime, DateTime endTime, string code,string description, int pageNum, int pageSize)
|
||||||
{
|
{
|
||||||
starttime = starttime.ToLocalTime();
|
starttime = starttime.ToLocalTime();
|
||||||
endTime = endTime.ToLocalTime();
|
endTime = endTime.ToLocalTime();
|
||||||
@@ -75,6 +75,7 @@ namespace ZR.Service.mes.ql
|
|||||||
.AndIF(starttime > new DateTime(2023, 1, 1, 0, 0, 0), it => it.CreatedTime >= starttime.ToLocalTime())
|
.AndIF(starttime > new DateTime(2023, 1, 1, 0, 0, 0), it => it.CreatedTime >= starttime.ToLocalTime())
|
||||||
.AndIF(endTime > new DateTime(2023, 1, 1, 0, 0, 0), it => it.CreatedTime <= endTime.ToLocalTime())
|
.AndIF(endTime > new DateTime(2023, 1, 1, 0, 0, 0), it => it.CreatedTime <= endTime.ToLocalTime())
|
||||||
.AndIF(!string.IsNullOrEmpty(code), it => it.Code.Contains(code))
|
.AndIF(!string.IsNullOrEmpty(code), it => it.Code.Contains(code))
|
||||||
|
.AndIF(!string.IsNullOrEmpty(description), it => it.Description.Contains(description))
|
||||||
.ToExpression();
|
.ToExpression();
|
||||||
|
|
||||||
//int totalNum = 0;
|
//int totalNum = 0;
|
||||||
@@ -103,6 +104,7 @@ namespace ZR.Service.mes.ql
|
|||||||
{
|
{
|
||||||
Id = 0,
|
Id = 0,
|
||||||
IdGroup = DateTime.Now.ToString("yyyyMMddHHmmssfff"),
|
IdGroup = DateTime.Now.ToString("yyyyMMddHHmmssfff"),
|
||||||
|
Description = "",
|
||||||
Dt = "",
|
Dt = "",
|
||||||
Code = "",
|
Code = "",
|
||||||
Value01 = "",
|
Value01 = "",
|
||||||
|
|||||||
Reference in New Issue
Block a user