代码无效引用清理,试压包资料界面看板修改
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
using BLL;
|
||||
using FineUIPro.Web.HJGL.HotProcessHard;
|
||||
using Newtonsoft.Json.Linq;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
@@ -235,14 +234,14 @@ namespace FineUIPro.Web.HJGL.WeldingManage
|
||||
where x.UnitWorkId == node.NodeID
|
||||
&& x.TaskDate < Convert.ToDateTime(this.txtTaskDateMonth.Text.Trim() + "-01").AddMonths(1)
|
||||
&& x.TaskDate >= Convert.ToDateTime(this.txtTaskDateMonth.Text.Trim() + "-01")
|
||||
select new { x.TaskDate.Value.Date, x.UnitId,x.SerialNumber }).Distinct().ToList().OrderBy(x => x.SerialNumber);
|
||||
select new { x.TaskDate.Value.Date, x.UnitId, x.SerialNumber }).Distinct().ToList().OrderBy(x => x.SerialNumber);
|
||||
if (p.Count() > 0)
|
||||
{
|
||||
foreach (var item in p)
|
||||
{
|
||||
TreeNode newNode = new TreeNode();
|
||||
newNode.CommandName = "Date";
|
||||
newNode.Text = string.Format("{0:yyyy-MM-dd}", item.Date)+"-"+ item.SerialNumber + "(" + BLL.UnitService.getUnitNamesUnitIds(item.UnitId) + ")";
|
||||
newNode.Text = string.Format("{0:yyyy-MM-dd}", item.Date) + "-" + item.SerialNumber + "(" + BLL.UnitService.getUnitNamesUnitIds(item.UnitId) + ")";
|
||||
newNode.NodeID = node.NodeID + "|" + item.UnitId + "|" + string.Format("{0:yyyy-MM-dd}", item.Date) + "|" + item.SerialNumber;
|
||||
newNode.EnableClickEvent = true;
|
||||
node.Nodes.Add(newNode);
|
||||
@@ -264,7 +263,7 @@ namespace FineUIPro.Web.HJGL.WeldingManage
|
||||
newNode.CommandName = "Date";
|
||||
// newNode.Text = string.Format("{0:yyyy-MM-dd}", item.Date) + "(" + BLL.UnitService.getUnitNamesUnitIds(item.UnitId) + ")";
|
||||
newNode.Text = string.Format("{0:yyyy-MM-dd}", item.Date) + "-" + item.SerialNumber + "(" + BLL.UnitService.getUnitNamesUnitIds(item.UnitId) + ")";
|
||||
newNode.NodeID = node.NodeID + "|" + item.UnitId + "|" + string.Format("{0:yyyy-MM-dd}", item.Date)+"|"+item.SerialNumber;
|
||||
newNode.NodeID = node.NodeID + "|" + item.UnitId + "|" + string.Format("{0:yyyy-MM-dd}", item.Date) + "|" + item.SerialNumber;
|
||||
newNode.EnableClickEvent = true;
|
||||
node.Nodes.Add(newNode);
|
||||
}
|
||||
@@ -282,7 +281,7 @@ namespace FineUIPro.Web.HJGL.WeldingManage
|
||||
{
|
||||
if (!string.IsNullOrEmpty(this.txtPipelineCode.Text.Trim()))
|
||||
{
|
||||
weldingTask = weldingTask.Where(e => e.PipelineCode.Contains(this.txtPipelineCode.Text.Trim())).OrderBy(x=>x.PipeLineSortIndex).ToList();
|
||||
weldingTask = weldingTask.Where(e => e.PipelineCode.Contains(this.txtPipelineCode.Text.Trim())).OrderBy(x => x.PipeLineSortIndex).ToList();
|
||||
}
|
||||
DataTable tb = this.LINQToDataTable(weldingTask);
|
||||
|
||||
@@ -619,13 +618,13 @@ namespace FineUIPro.Web.HJGL.WeldingManage
|
||||
|
||||
//GetCanWelderDropDownList(GetWeldingTaskList);
|
||||
}
|
||||
string unitWorkId = string.Empty, unitId2 = string.Empty; string taskdate = string.Empty;string serialNumber=string.Empty;
|
||||
string unitWorkId = string.Empty, unitId2 = string.Empty; string taskdate = string.Empty; string serialNumber = string.Empty;
|
||||
if (tvControlItem.SelectedNodeID.Contains("|"))
|
||||
{
|
||||
unitWorkId = tvControlItem.SelectedNodeID.Split('|')[0];
|
||||
unitId2 = tvControlItem.SelectedNodeID.Split('|')[1];
|
||||
taskdate = tvControlItem.SelectedNodeID.Split('|')[2];
|
||||
serialNumber= tvControlItem.SelectedNodeID.Split('|')[3];
|
||||
serialNumber = tvControlItem.SelectedNodeID.Split('|')[3];
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -1223,7 +1222,7 @@ namespace FineUIPro.Web.HJGL.WeldingManage
|
||||
DateTime? taskTime = Funs.GetNewDateTime(tvControlItem.SelectedNodeID.Split('|')[2]);
|
||||
if (taskTime != null)
|
||||
{
|
||||
var pipelines = BLL.WeldTaskService.GetWeldingTaskList(this.CurrUser.LoginProjectId, tvControlItem.SelectedNodeID.Split('|')[0], tvControlItem.SelectedNodeID.Split('|')[1], Convert.ToDateTime(taskTime), this.rbIsAudit.SelectedValue, tvControlItem.SelectedNodeID.Split('|')[3]).OrderBy(z=>z.PipeLineSortIndex).Select(x => x.PipelineId).Distinct().ToList();
|
||||
var pipelines = BLL.WeldTaskService.GetWeldingTaskList(this.CurrUser.LoginProjectId, tvControlItem.SelectedNodeID.Split('|')[0], tvControlItem.SelectedNodeID.Split('|')[1], Convert.ToDateTime(taskTime), this.rbIsAudit.SelectedValue, tvControlItem.SelectedNodeID.Split('|')[3]).OrderBy(z => z.PipeLineSortIndex).Select(x => x.PipelineId).Distinct().ToList();
|
||||
|
||||
if (pipelines.Any())
|
||||
{
|
||||
@@ -1304,7 +1303,7 @@ namespace FineUIPro.Web.HJGL.WeldingManage
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
protected void btnPrintJoint_Click(object sender, EventArgs e)
|
||||
{
|
||||
@@ -1326,7 +1325,7 @@ namespace FineUIPro.Web.HJGL.WeldingManage
|
||||
WeldJointId = x.WeldJointId,
|
||||
Spec = x.Specification,
|
||||
SortIndex = x.WeldJointCode.Replace(x.PipelineCode + "/", ""),
|
||||
}).OrderBy(x=> x.pipelineCode).ThenBy(x=> x.SortIndex).ToList();
|
||||
}).OrderBy(x => x.pipelineCode).ThenBy(x => x.SortIndex).ToList();
|
||||
var tb = LINQToDataTable(result);
|
||||
if (tb != null && tb.Rows.Count > 0)
|
||||
{
|
||||
@@ -1358,7 +1357,7 @@ namespace FineUIPro.Web.HJGL.WeldingManage
|
||||
if (taskTime != null)
|
||||
{
|
||||
var weldTaskList = BLL.WeldTaskService.GetWeldingTaskList(this.CurrUser.LoginProjectId, tvControlItem.SelectedNodeID.Split('|')[0], tvControlItem.SelectedNodeID.Split('|')[1], Convert.ToDateTime(taskTime), this.rbIsAudit.SelectedValue, tvControlItem.SelectedNodeID.Split('|')[3]);
|
||||
var pipelines = weldTaskList.OrderBy(x=>x.PipeLineSortIndex).Select(x => x.PipelineId).Distinct().ToList();
|
||||
var pipelines = weldTaskList.OrderBy(x => x.PipeLineSortIndex).Select(x => x.PipelineId).Distinct().ToList();
|
||||
|
||||
if (pipelines.Any())
|
||||
{
|
||||
@@ -1376,14 +1375,14 @@ namespace FineUIPro.Web.HJGL.WeldingManage
|
||||
where x.ProjectId == this.CurrUser.LoginProjectId &&
|
||||
x.UnitWorkId == tvControlItem.SelectedNodeID.Split('|')[0] &&
|
||||
x.UnitId == tvControlItem.SelectedNodeID.Split('|')[1]
|
||||
&& x.TaskDate.Value.Date == time.Date && x.AuditMan != null &&
|
||||
&& x.TaskDate.Value.Date == time.Date && x.AuditMan != null &&
|
||||
x.Tabler != null
|
||||
select x).FirstOrDefault();
|
||||
Model.Tw_PrintMaster printMaster = new Model.Tw_PrintMaster
|
||||
{
|
||||
|
||||
CreateManName = !string.IsNullOrEmpty(weldTask_CreateName?.Tabler) ? BLL.Person_PersonsService.getSignatureUrl(weldTask_CreateName.Tabler) : "",
|
||||
AuditManName = !string.IsNullOrEmpty(weldTask?.AuditMan) ? BLL.Person_PersonsService.getSignatureUrl(weldTask.AuditMan) : "",
|
||||
AuditManName = !string.IsNullOrEmpty(weldTask?.AuditMan) ? BLL.Person_PersonsService.getSignatureUrl(weldTask.AuditMan) : "",
|
||||
};
|
||||
tw_PrintMasters.Add(printMaster);
|
||||
DataTable Table1 = LINQToDataTable(tw_PrintMasters);
|
||||
@@ -1451,7 +1450,7 @@ namespace FineUIPro.Web.HJGL.WeldingManage
|
||||
{
|
||||
ShowNotify("请选择任务单", MessageBoxIcon.Question);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
protected void btnPassMaster_OnClick(object sender, EventArgs e)
|
||||
@@ -1465,9 +1464,9 @@ namespace FineUIPro.Web.HJGL.WeldingManage
|
||||
{
|
||||
var time = Convert.ToDateTime(taskTime);
|
||||
var weldTaskList = (from x in Funs.DB.HJGL_WeldTask
|
||||
where x.ProjectId == this.CurrUser.LoginProjectId && x.UnitWorkId == tvControlItem.SelectedNodeID.Split('|')[0] && x.UnitId == tvControlItem.SelectedNodeID.Split('|')[1]
|
||||
&& x.TaskDate.Value.Date == time.Date
|
||||
select x).ToList();
|
||||
where x.ProjectId == this.CurrUser.LoginProjectId && x.UnitWorkId == tvControlItem.SelectedNodeID.Split('|')[0] && x.UnitId == tvControlItem.SelectedNodeID.Split('|')[1]
|
||||
&& x.TaskDate.Value.Date == time.Date
|
||||
select x).ToList();
|
||||
|
||||
foreach (var weldTask in weldTaskList)
|
||||
{
|
||||
@@ -1482,7 +1481,7 @@ namespace FineUIPro.Web.HJGL.WeldingManage
|
||||
{
|
||||
ShowNotify("请选择任务单", MessageBoxIcon.Question);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
protected void btnPassMaster2_OnClick(object sender, EventArgs e)
|
||||
@@ -1496,9 +1495,9 @@ namespace FineUIPro.Web.HJGL.WeldingManage
|
||||
{
|
||||
var time = Convert.ToDateTime(taskTime);
|
||||
var weldTaskList = (from x in Funs.DB.HJGL_WeldTask
|
||||
where x.ProjectId == this.CurrUser.LoginProjectId && x.UnitWorkId == tvControlItem.SelectedNodeID.Split('|')[0] && x.UnitId == tvControlItem.SelectedNodeID.Split('|')[1]
|
||||
&& x.TaskDate.Value.Date == time.Date
|
||||
select x).ToList();
|
||||
where x.ProjectId == this.CurrUser.LoginProjectId && x.UnitWorkId == tvControlItem.SelectedNodeID.Split('|')[0] && x.UnitId == tvControlItem.SelectedNodeID.Split('|')[1]
|
||||
&& x.TaskDate.Value.Date == time.Date
|
||||
select x).ToList();
|
||||
|
||||
foreach (var weldTask in weldTaskList)
|
||||
{
|
||||
@@ -1513,7 +1512,7 @@ namespace FineUIPro.Web.HJGL.WeldingManage
|
||||
{
|
||||
ShowNotify("请选择任务单", MessageBoxIcon.Question);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user