焊接任务单修改

This commit is contained in:
2024-12-26 17:59:07 +08:00
parent 66708a2b90
commit 91cbac3f0c
2 changed files with 67 additions and 1 deletions
@@ -93,12 +93,17 @@ namespace BLL
{
var q = from x in Funs.DB.View_HJGL_WeldingTask
where x.ProjectId == ProjectId && x.UnitWorkId == UnitWorkId
&& x.TaskDate.Value.Date == taskDate.Date && x.SerialNumber==serialNumber
&& x.TaskDate.Value.Date == taskDate.Date
select x;
if (!string.IsNullOrEmpty(unitId))
{
q = q.Where(x => x.UnitId == unitId);
}
if (!string.IsNullOrEmpty(serialNumber))
{
q = q.Where(x => x.SerialNumber == serialNumber);
}
if (canWelder == "0")
{
q = q.Where(x => x.CanWelderId == null);