焊接任务单修改
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user