提交代码
This commit is contained in:
@@ -318,25 +318,25 @@ namespace FineUIPro.Web.HJGL.WeldingManage
|
||||
|
||||
var toDoMatterList = (from x in Funs.DB.View_HJGL_NoWeldJointFind
|
||||
where x.PipelineId == pipelineId && x.WeldingDailyId == null && x.JointAttribute == drpJointAttribute.SelectedValue
|
||||
&& (string.IsNullOrEmpty(drpWeldTypeCode.SelectedValue) || x.WeldTypeCode.Contains(drpWeldTypeCode.SelectedValue))
|
||||
&& (string.IsNullOrEmpty(drpWeldTypeCode.SelectedValue) || x.WeldTypeCode.Contains(drpWeldTypeCode.SelectedValue)) && x.WeldTaskId == null
|
||||
select x).ToList();
|
||||
|
||||
//去除任务表已存在的焊口
|
||||
if (!string.IsNullOrEmpty(TaskDate))
|
||||
{
|
||||
var task = from x in Funs.DB.HJGL_WeldTask where x.UnitWorkId == UnitWorkId && x.TaskDate.Value.Date.ToString() == Convert.ToDateTime(txtTaskDate.Text.Trim()).ToString("yyyy-MM-dd") select x;
|
||||
if (task.Count() > 0)
|
||||
{
|
||||
foreach (var item in task)
|
||||
{
|
||||
Model.View_HJGL_NoWeldJointFind jot = toDoMatterList.FirstOrDefault(e => e.WeldJointId == item.WeldJointId);
|
||||
if (jot != null)
|
||||
{
|
||||
toDoMatterList.Remove(jot);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
//if (!string.IsNullOrEmpty(TaskDate))
|
||||
//{
|
||||
// var task = from x in Funs.DB.HJGL_WeldTask where x.UnitWorkId == UnitWorkId && x.TaskDate.Value.Date.ToString() == Convert.ToDateTime(txtTaskDate.Text.Trim()).ToString("yyyy-MM-dd") select x;
|
||||
// if (task.Count() > 0)
|
||||
// {
|
||||
// foreach (var item in task)
|
||||
// {
|
||||
// Model.View_HJGL_NoWeldJointFind jot = toDoMatterList.FirstOrDefault(e => e.WeldJointId == item.WeldJointId);
|
||||
// if (jot != null)
|
||||
// {
|
||||
// toDoMatterList.Remove(jot);
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
//}
|
||||
|
||||
DataTable tb = this.LINQToDataTable(toDoMatterList);
|
||||
// 2.获取当前分页数据
|
||||
@@ -508,7 +508,7 @@ namespace FineUIPro.Web.HJGL.WeldingManage
|
||||
var oldWeldTask = BLL.WeldTaskService.GetWeldTaskByWeldJointId(NewTask.WeldJointId);
|
||||
if (oldWeldTask != null)
|
||||
{
|
||||
ShowNotify("所选焊口已存在任务单,无法保存!", MessageBoxIcon.Success);
|
||||
ShowNotify("所选焊口已存在任务单,无法保存!", MessageBoxIcon.Warning);
|
||||
return;
|
||||
}
|
||||
Model.HJGL_WeldJoint weldJoint = BLL.WeldJointService.GetWeldJointByWeldJointId(NewTask.WeldJointId);
|
||||
|
||||
Reference in New Issue
Block a user