11
This commit is contained in:
@@ -401,12 +401,23 @@ namespace FineUIPro.Web.WeldingProcess.CheckManage
|
||||
if (batchItem != null)
|
||||
{
|
||||
batchItem.RepairDate = Convert.ToDateTime(this.txtRepairDate.Text);
|
||||
batchItem.RepairRecordId = repairRecordId;
|
||||
if (ckbIsCut.Checked)
|
||||
{
|
||||
batchItem.CutDate = DateTime.Now.Date;
|
||||
}
|
||||
db.SubmitChanges();
|
||||
}
|
||||
else
|
||||
{
|
||||
var updatebatchItem = db.Batch_PointBatchItem.FirstOrDefault(x => x.WeldJointId == repair.WeldJointId && x.RepairRecordId == repairRecordId);
|
||||
if (updatebatchItem != null)
|
||||
{
|
||||
updatebatchItem.RepairDate = Convert.ToDateTime(this.txtRepairDate.Text);
|
||||
db.SubmitChanges();
|
||||
}
|
||||
}
|
||||
db.SubmitChanges();
|
||||
|
||||
|
||||
var exp = BLL.RepairRecordService.GetExportItem(repairRecordId);
|
||||
if (exp != null)
|
||||
@@ -444,7 +455,7 @@ namespace FineUIPro.Web.WeldingProcess.CheckManage
|
||||
// 大于500的焊口扩透口是自身,这时要增加批明细
|
||||
else
|
||||
{
|
||||
Model.Batch_PointBatchItem pointItem = db.Batch_PointBatchItem.FirstOrDefault(x => x.RepairRecordId == repairRecordId);
|
||||
Model.Batch_PointBatchItem pointItem = db.Batch_PointBatchItem.FirstOrDefault(x => x.RepairRecordId == repairRecordId && x.PointState == "2");
|
||||
// 大于500的焊口扩透口是自身,保存后不能再次增加
|
||||
if (pointItem == null)
|
||||
{
|
||||
|
||||
@@ -0,0 +1,66 @@
|
||||
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="TrustBatchIn.aspx.cs" Inherits="FineUIPro.Web.WeldingProcess.TrustManage.TrustBatchIn" %>
|
||||
|
||||
<!DOCTYPE html>
|
||||
|
||||
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head runat="server">
|
||||
<title>委托单导入</title>
|
||||
<link href="../res/css/common.css" rel="stylesheet" type="text/css" />
|
||||
<style>
|
||||
.f-grid-row .f-grid-cell-inner
|
||||
{
|
||||
white-space: normal;
|
||||
word-break: break-all;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<form id="form1" runat="server">
|
||||
<f:PageManager ID="PageManager1" AutoSizePanelID="SimpleForm1" runat="server" OnCustomEvent="PageManager1_CustomEvent" />
|
||||
<f:Form ID="SimpleForm1" ShowBorder="false" ShowHeader="false" AutoScroll="true"
|
||||
BodyPadding="10px" runat="server" RedStarPosition="BeforeText" LabelAlign="Right">
|
||||
<Toolbars>
|
||||
<f:Toolbar ID="Toolbar2" Position="Top" ToolbarAlign="Right" runat="server">
|
||||
<Items>
|
||||
<f:Button ID="btnAudit" Icon="ApplicationEdit" Text="审核" runat="server" ToolTip="审核" ValidateForms="SimpleForm1"
|
||||
OnClick="btnAudit_Click">
|
||||
</f:Button>
|
||||
<f:Button ID="btnImport" Icon="ApplicationGet" Text="导入" runat="server" ToolTip="导入" ValidateForms="SimpleForm1"
|
||||
OnClick="btnImport_Click">
|
||||
</f:Button>
|
||||
<f:Button ID="btnDownLoad" runat="server" Text="下载模板" Icon="ApplicationGo" ToolTip="下载模板" OnClick="btnDownLoad_Click">
|
||||
</f:Button>
|
||||
<%--<f:Button ID="btnOut" Icon="Pencil" runat="server" Text="导出" ToolTip="导出错误列表" ValidateForms="SimpleForm1"
|
||||
OnClick="btnOut_Click" Hidden="true"></f:Button>--%>
|
||||
</Items>
|
||||
</f:Toolbar>
|
||||
</Toolbars>
|
||||
<Rows>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:FileUpload runat="server" ID="fuAttachUrl" EmptyText="选择要导入的文件" Label="选择要导入的文件"
|
||||
LabelWidth="150px">
|
||||
</f:FileUpload>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:HiddenField ID="hdFileName" runat="server">
|
||||
</f:HiddenField>
|
||||
<f:HiddenField ID="hdCheckResult" runat="server">
|
||||
</f:HiddenField>
|
||||
<f:Label ID="lbResult" runat="server" Label="审核结果"></f:Label>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<%--<f:Label ID="lblBottom" runat="server" Text="说明:规则是">
|
||||
</f:Label>--%>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
</Rows>
|
||||
</f:Form>
|
||||
</form>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,595 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Data;
|
||||
using System.Data.OleDb;
|
||||
using System.IO;
|
||||
using System.Linq;
|
||||
using System.Web.UI;
|
||||
using BLL;
|
||||
using FineUIPro.Web.common.ProjectSet;
|
||||
using FineUIPro.Web.Common.ProjectSet;
|
||||
|
||||
namespace FineUIPro.Web.WeldingProcess.TrustManage
|
||||
{
|
||||
public partial class TrustBatchIn : PageBase
|
||||
{
|
||||
#region 定义变量
|
||||
/// <summary>
|
||||
/// 上传预设的虚拟路径
|
||||
/// </summary>
|
||||
private string initPath = Const.ExcelUrl;
|
||||
|
||||
/// <summary>
|
||||
/// 错误集合
|
||||
/// </summary>
|
||||
public static string errorInfos = string.Empty;
|
||||
#endregion
|
||||
|
||||
#region 加载页面
|
||||
/// <summary>
|
||||
/// 加载页面
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
if (!IsPostBack)
|
||||
{
|
||||
this.hdFileName.Text = string.Empty;
|
||||
this.hdCheckResult.Text = string.Empty;
|
||||
errorInfos = string.Empty;
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region 审核
|
||||
/// <summary>
|
||||
/// 审核
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void btnAudit_Click(object sender, EventArgs e)
|
||||
{
|
||||
errorInfos = string.Empty;
|
||||
if (this.fuAttachUrl.HasFile == false)
|
||||
{
|
||||
ShowNotify("请选择Excel文件!", MessageBoxIcon.Warning);
|
||||
return;
|
||||
}
|
||||
string IsXls = Path.GetExtension(this.fuAttachUrl.FileName).ToString().Trim().ToLower();
|
||||
if (IsXls != ".xls" && IsXls != ".xlsx")
|
||||
{
|
||||
ShowNotify("只能选择Excel文件!", MessageBoxIcon.Warning);
|
||||
return;
|
||||
}
|
||||
|
||||
string rootPath = Server.MapPath("~/");
|
||||
string initFullPath = rootPath + initPath;
|
||||
if (!Directory.Exists(initFullPath))
|
||||
{
|
||||
Directory.CreateDirectory(initFullPath);
|
||||
}
|
||||
//指定上传文件名称
|
||||
this.hdFileName.Text = BLL.Funs.GetNewFileName() + IsXls;
|
||||
//上传文件路径
|
||||
string filePath = initFullPath + this.hdFileName.Text;
|
||||
//文件上传服务器
|
||||
this.fuAttachUrl.PostedFile.SaveAs(filePath);
|
||||
//文件上传服务器后的名称
|
||||
string fileName = rootPath + initPath + this.hdFileName.Text;
|
||||
//读取Excel
|
||||
DataSet ds = NPOIHelper.ExcelToDataSet(fileName, out errorInfos, true);
|
||||
//验证Excel读取是否有误
|
||||
if (!string.IsNullOrEmpty(errorInfos))
|
||||
{
|
||||
ShowNotify(errorInfos, MessageBoxIcon.Warning);
|
||||
return;
|
||||
}
|
||||
|
||||
if (ds.Tables.Count > 0)
|
||||
{
|
||||
string result = string.Empty;
|
||||
List<Model.Batch_BatchTrust> trustList= new List<Model.Batch_BatchTrust>();
|
||||
var units = from x in Funs.DB.Base_Unit select x;
|
||||
var area = from x in Funs.DB.Project_WorkArea where x.ProjectId == this.CurrUser.LoginProjectId select x;
|
||||
var installation = from x in Funs.DB.Project_Installation where x.ProjectId == this.CurrUser.LoginProjectId select x;
|
||||
var trustIn = from x in Funs.DB.View_TrustBathcIn where x.ProjectId == this.CurrUser.LoginProjectId select x;
|
||||
var pipeList = from x in Funs.DB.Pipeline_Pipeline where x.ProjectId == this.CurrUser.LoginProjectId select x;
|
||||
for (int i = 0; i < ds.Tables[0].Rows.Count; i++)
|
||||
{
|
||||
string col0 = ds.Tables[0].Rows[i][0].ToString().Trim();
|
||||
string col1 = ds.Tables[0].Rows[i][1].ToString().Trim();
|
||||
string col2 = ds.Tables[0].Rows[i][2].ToString().Trim();
|
||||
string col3 = ds.Tables[0].Rows[i][3].ToString().Trim();
|
||||
string col4 = ds.Tables[0].Rows[i][4].ToString().Trim();
|
||||
string col5 = ds.Tables[0].Rows[i][5].ToString().Trim();
|
||||
string col6 = ds.Tables[0].Rows[i][6].ToString().Trim();
|
||||
string col7 = ds.Tables[0].Rows[i][7].ToString().Trim();
|
||||
string col8 = ds.Tables[0].Rows[i][8].ToString().Trim();
|
||||
string col9 = ds.Tables[0].Rows[i][9].ToString().Trim();
|
||||
Model.Batch_BatchTrust t = new Model.Batch_BatchTrust();
|
||||
|
||||
if (string.IsNullOrEmpty(col0))
|
||||
{
|
||||
result += "第" + (i + 2).ToString() + "行," + "委托单号" + "," + "此项为必填项!" + "|";
|
||||
}
|
||||
else
|
||||
{
|
||||
var oldTrust = Funs.DB.Batch_BatchTrust.FirstOrDefault(x => x.TrustBatchCode == col0);
|
||||
if (oldTrust != null)
|
||||
{
|
||||
result += "第" + (i + 2).ToString() + "行," + "委托单号" + "," + "[" + col0 + "]已存在!" + "|";
|
||||
}
|
||||
else
|
||||
{
|
||||
t.TrustBatchCode = col0;
|
||||
}
|
||||
}
|
||||
|
||||
string installationId = string.Empty;
|
||||
if (!string.IsNullOrEmpty(col1))
|
||||
{
|
||||
Model.Project_Installation ins = installation.FirstOrDefault(x => x.InstallationCode == col1);
|
||||
if (ins == null)
|
||||
{
|
||||
result += "第" + (i + 2).ToString() + "行," + "装置编号" + "," + "[" + col1 + "]不存在!" + "|";
|
||||
}
|
||||
else
|
||||
{
|
||||
installationId = ins.InstallationId;
|
||||
t.InstallationId = installationId;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
result += "第" + (i + 2).ToString() + "行," + "装置编号" + "," + "此项为必填项!" + "|";
|
||||
}
|
||||
|
||||
string workAreaId = string.Empty;
|
||||
if (!string.IsNullOrEmpty(col2))
|
||||
{
|
||||
Model.Project_WorkArea workArea = area.FirstOrDefault(x => x.WorkAreaCode == col2 && x.InstallationId == installationId);
|
||||
if (workArea == null)
|
||||
{
|
||||
result += "第" + (i + 2).ToString() + "行," + "区域编号" + "," + "[" + col2 + "]不存在!" + "|";
|
||||
}
|
||||
else
|
||||
{
|
||||
workAreaId = workArea.WorkAreaId;
|
||||
t.WorkAreaId = workAreaId;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
result += "第" + (i + 2).ToString() + "行," + "区域编号" + "," + "此项为必填项!" + "|";
|
||||
}
|
||||
|
||||
string pipelineId = string.Empty;
|
||||
if (!string.IsNullOrEmpty(col3))
|
||||
{
|
||||
var pipe = pipeList.FirstOrDefault(x => x.PipelineCode == col3 && x.WorkAreaId == workAreaId);
|
||||
if (pipe == null)
|
||||
{
|
||||
result += "第" + (i + 2).ToString() + "行," + "该区域管线号" + "," + "[" + col3 + "]不存在!" + "|";
|
||||
}
|
||||
else
|
||||
{
|
||||
pipelineId = pipe.PipelineId;
|
||||
t.PipelineId = pipelineId;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
result += "第" + (i + 2).ToString() + "行," + "管线号" + "," + "此项为必填项!" + "|";
|
||||
}
|
||||
|
||||
string weldJointId = string.Empty;
|
||||
if (!string.IsNullOrEmpty(col4))
|
||||
{
|
||||
var weldJoint = from x in Funs.DB.Pipeline_WeldJoint where x.PipelineId == pipelineId && x.WeldJointCode == col4 select x;
|
||||
if (weldJoint.Count() == 0)
|
||||
{
|
||||
result += "第" + (i + 2).ToString() + "行," + "焊口号" + "," + "[" + col4 + "]不存在!" + "|";
|
||||
}
|
||||
|
||||
else if (weldJoint.Count() == 1)
|
||||
{
|
||||
weldJointId = weldJoint.First().WeldJointId;
|
||||
t.WeldingMethodId=weldJoint.First().WeldingMethodId;
|
||||
t.GrooveTypeId = weldJoint.First().GrooveTypeId;
|
||||
}
|
||||
else
|
||||
{
|
||||
result += "第" + (i + 2).ToString() + "行," + "焊口号" + "," + "[" + col4 + "]重复!" + "|";
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
result += "第" + (i + 2).ToString() + "行," + "焊口号" + "," + "此项为必填项!" + "|";
|
||||
}
|
||||
|
||||
string ndeId = string.Empty;
|
||||
if (!string.IsNullOrEmpty(col5))
|
||||
{
|
||||
var nde = Funs.DB.Base_DetectionType.FirstOrDefault(x => x.DetectionTypeCode == col5);
|
||||
if (nde == null)
|
||||
{
|
||||
result += "第" + (i + 2).ToString() + "行," + "探伤类型" + "," + "[" + col5 + "]错误!" + "|";
|
||||
}
|
||||
|
||||
else
|
||||
{
|
||||
ndeId = nde.DetectionTypeId;
|
||||
t.DetectionTypeId = nde.DetectionTypeId;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
result += "第" + (i + 2).ToString() + "行," + "探伤类型" + "," + "此项为必填项!" + "|";
|
||||
}
|
||||
|
||||
var pointBatchItem = trustIn.FirstOrDefault(x => x.InstallationId == installationId && x.WorkAreaId == workAreaId && x.PipelineId == pipelineId && x.WeldJointId == weldJointId && x.DetectionTypeId == ndeId);
|
||||
if (pointBatchItem == null)
|
||||
{
|
||||
result += "第" + (i + 2).ToString() + "行," + "检验批中不存在对应焊口信息" + "|";
|
||||
}
|
||||
else
|
||||
{
|
||||
if (pointBatchItem.TrustBatchItemId != null)
|
||||
{
|
||||
result += "第" + (i + 2).ToString() + "行," + "焊口已委托" + "|";
|
||||
}
|
||||
else
|
||||
{
|
||||
t.IsWelderFirst = pointBatchItem.IsWelderFirst;
|
||||
}
|
||||
}
|
||||
|
||||
if (!string.IsNullOrEmpty(col6))
|
||||
{
|
||||
try
|
||||
{
|
||||
DateTime d = Convert.ToDateTime(col6);
|
||||
t.TrustDate = d.Date;
|
||||
}
|
||||
catch (Exception)
|
||||
{
|
||||
result += "第" + (i + 2).ToString() + "行," + "委托日期" + "," + "[" + col6 + "]错误!" + "|";
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
result += "第" + (i + 2).ToString() + "行," + "委托日期" + "," + "此项为必填项!" + "|";
|
||||
}
|
||||
|
||||
if (!string.IsNullOrEmpty(col7))
|
||||
{
|
||||
Model.Base_Unit unit = Funs.DB.Base_Unit.FirstOrDefault(x => x.UnitCode == col7);
|
||||
if (unit == null)
|
||||
{
|
||||
result += "第" + (i + 2).ToString() + "行," + "检测单位编号" + "," + "[" + col7 + "]错误!" + "|";
|
||||
}
|
||||
else
|
||||
{
|
||||
t.NDEUuit = unit.UnitId;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
result += "第" + (i + 2).ToString() + "行," + "检测单位" + "," + "此项为必填项!" + "|";
|
||||
}
|
||||
|
||||
if (!string.IsNullOrEmpty(col8))
|
||||
{
|
||||
if (col8!= "打磨" && col8 != "机加工" && col8 != "喷砂" && col8 != "漆面")
|
||||
{
|
||||
result += "第" + (i + 2).ToString() + "行," + "表面检测需录入:打磨、机加工、喷砂、漆面" + "|";
|
||||
}
|
||||
}
|
||||
if (!string.IsNullOrEmpty(col9))
|
||||
{
|
||||
if (col9 != "焊后" && col9 != "打磨后" && col9 != "热处理后" && col9 != "坡口准备" && col9 != "清根后" && col9 != "压力试验后" && col9 != "其他")
|
||||
{
|
||||
result += "第" + (i + 2).ToString() + "行," + "检测时机需录入:焊后、打磨后、热处理后、坡口准备、清根后、压力试验后、其他" + "|";
|
||||
}
|
||||
}
|
||||
|
||||
trustList.Add(t);
|
||||
}
|
||||
|
||||
var trustCodeList=trustList.Select(p=>p.TrustBatchCode).Distinct();
|
||||
foreach (var trustCode in trustCodeList)
|
||||
{
|
||||
var t = from x in trustList where x.TrustBatchCode == trustCode select x;
|
||||
if (t.Select(x => x.InstallationId).Distinct().Count() > 1)
|
||||
{
|
||||
result += "委托单" + trustCode + "装置不一至" + "|";
|
||||
}
|
||||
if (t.Select(x => x.WorkAreaId).Distinct().Count() > 1)
|
||||
{
|
||||
result += "委托单" + trustCode + "区域不一至" + "|";
|
||||
}
|
||||
if (t.Select(x => x.PipelineId).Distinct().Count() > 1)
|
||||
{
|
||||
result += "委托单" + trustCode + "管线不一至" + "|";
|
||||
}
|
||||
if (t.Select(x => x.WeldingMethodId).Distinct().Count() > 1)
|
||||
{
|
||||
result += "委托单" + trustCode + "焊接方法不一至" + "|";
|
||||
}
|
||||
if (t.Select(x => x.GrooveTypeId).Distinct().Count() > 1)
|
||||
{
|
||||
result += "委托单" + trustCode + "坡口类型不一至" + "|";
|
||||
}
|
||||
if (t.Select(x => x.DetectionTypeId).Distinct().Count() > 1)
|
||||
{
|
||||
result += "委托单" + trustCode + "探伤类型不一至" + "|";
|
||||
}
|
||||
if (t.Select(x => x.TrustDate).Distinct().Count() > 1)
|
||||
{
|
||||
result += "委托单" + trustCode + "委托日期不一至" + "|";
|
||||
}
|
||||
}
|
||||
|
||||
if (!string.IsNullOrEmpty(result))
|
||||
{
|
||||
if (result.Contains("|"))
|
||||
{
|
||||
result = result.Substring(0, result.LastIndexOf("|"));
|
||||
}
|
||||
errorInfos = result;
|
||||
|
||||
lbResult.Text = result;
|
||||
}
|
||||
else
|
||||
{
|
||||
errorInfos = string.Empty;
|
||||
lbResult.Text = "审核数据正确,请点击导入!";
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region 导入
|
||||
/// <summary>
|
||||
/// 导入
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void btnImport_Click(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
if (!string.IsNullOrEmpty(this.hdFileName.Text))
|
||||
{
|
||||
if (errorInfos == string.Empty)
|
||||
{
|
||||
string IsXls = Path.GetExtension(this.fuAttachUrl.FileName).ToString().Trim().ToLower();
|
||||
if (IsXls != ".xls" && IsXls != ".xlsx")
|
||||
{
|
||||
ShowNotify("只能选择Excel文件!", MessageBoxIcon.Warning);
|
||||
return;
|
||||
}
|
||||
string rootPath = Server.MapPath("~/");
|
||||
string initFullPath = rootPath + initPath;
|
||||
if (!Directory.Exists(initFullPath))
|
||||
{
|
||||
Directory.CreateDirectory(initFullPath);
|
||||
}
|
||||
//指定上传文件名称
|
||||
this.hdFileName.Text = BLL.Funs.GetNewFileName() + IsXls;
|
||||
//上传文件路径
|
||||
string filePath = initFullPath + this.hdFileName.Text;
|
||||
//文件上传服务器
|
||||
this.fuAttachUrl.PostedFile.SaveAs(filePath);
|
||||
//文件上传服务器后的名称
|
||||
string fileName = rootPath + initPath + this.hdFileName.Text;
|
||||
//读取Excel
|
||||
DataSet ds = NPOIHelper.ExcelToDataSet(fileName, out errorInfos, true);
|
||||
|
||||
if (ds.Tables.Count > 0)
|
||||
{
|
||||
|
||||
string result = string.Empty;
|
||||
List<Model.Batch_BatchTrust> trustList = new List<Model.Batch_BatchTrust>();
|
||||
|
||||
var units = from x in Funs.DB.Base_Unit select x;
|
||||
var area = from x in Funs.DB.Project_WorkArea where x.ProjectId == this.CurrUser.LoginProjectId select x;
|
||||
var installation = from x in Funs.DB.Project_Installation where x.ProjectId == this.CurrUser.LoginProjectId select x;
|
||||
var trustIn = from x in Funs.DB.View_TrustBathcIn where x.ProjectId == this.CurrUser.LoginProjectId select x;
|
||||
var pipeList = from x in Funs.DB.Pipeline_Pipeline where x.ProjectId == this.CurrUser.LoginProjectId select x;
|
||||
for (int i = 0; i < ds.Tables[0].Rows.Count; i++)
|
||||
{
|
||||
string col0 = ds.Tables[0].Rows[i][0].ToString().Trim();
|
||||
string col1 = ds.Tables[0].Rows[i][1].ToString().Trim();
|
||||
string col2 = ds.Tables[0].Rows[i][2].ToString().Trim();
|
||||
string col3 = ds.Tables[0].Rows[i][3].ToString().Trim();
|
||||
string col4 = ds.Tables[0].Rows[i][4].ToString().Trim();
|
||||
string col5 = ds.Tables[0].Rows[i][5].ToString().Trim();
|
||||
string col6 = ds.Tables[0].Rows[i][6].ToString().Trim();
|
||||
string col7 = ds.Tables[0].Rows[i][7].ToString().Trim();
|
||||
string col8 = ds.Tables[0].Rows[i][8].ToString().Trim();
|
||||
string col9 = ds.Tables[0].Rows[i][9].ToString().Trim();
|
||||
|
||||
Model.Batch_BatchTrust t = new Model.Batch_BatchTrust();
|
||||
|
||||
t.TrustBatchCode = col0;
|
||||
Model.Project_Installation ins = installation.FirstOrDefault(x => x.InstallationCode == col1);
|
||||
t.InstallationId = ins.InstallationId;
|
||||
|
||||
Model.Project_WorkArea workArea = area.FirstOrDefault(x => x.WorkAreaCode == col2 && x.InstallationId == ins.InstallationId);
|
||||
t.WorkAreaId = workArea.WorkAreaId;
|
||||
|
||||
var pipe = pipeList.FirstOrDefault(x => x.PipelineCode == col3 && x.WorkAreaId == workArea.WorkAreaId);
|
||||
t.PipelineId = pipe.PipelineId;
|
||||
t.UnitId = pipe.UnitId;
|
||||
|
||||
var jot = Funs.DB.Pipeline_WeldJoint.FirstOrDefault(x => x.PipelineId == pipe.PipelineId && x.WeldJointCode == col4);
|
||||
t.QuaCertFile = jot.WeldJointId; // 作为焊口ID
|
||||
t.WeldingMethodId = jot.WeldingMethodId;
|
||||
t.GrooveTypeId = jot.GrooveTypeId;
|
||||
|
||||
var nde = Funs.DB.Base_DetectionType.FirstOrDefault(x => x.DetectionTypeCode == col5);
|
||||
t.DetectionTypeId = nde.DetectionTypeId;
|
||||
|
||||
var pointBatchItem = trustIn.FirstOrDefault(x => x.WorkAreaId == workArea.WorkAreaId && x.PipelineId == pipe.PipelineId && x.WeldJointId == jot.WeldJointId && x.DetectionTypeId == nde.DetectionTypeId);
|
||||
t.IsWelderFirst = pointBatchItem.IsWelderFirst;
|
||||
t.AcceptStandard = pointBatchItem.PointBatchItemId; // 作为点口明细ID
|
||||
t.TopointBatch = pointBatchItem.PointBatchId;
|
||||
|
||||
t.TrustDate = Convert.ToDateTime(col6).Date;
|
||||
|
||||
Model.Base_Unit unit = Funs.DB.Base_Unit.FirstOrDefault(x => x.UnitCode == col7);
|
||||
t.NDEUuit = unit.UnitId;
|
||||
|
||||
if (!string.IsNullOrEmpty(col8))
|
||||
{
|
||||
t.SurfaceState = col8;
|
||||
}
|
||||
else
|
||||
{
|
||||
t.SurfaceState = "打磨";
|
||||
}
|
||||
|
||||
if (!string.IsNullOrEmpty(col9))
|
||||
{
|
||||
t.DetectionTiming = col9;
|
||||
}
|
||||
else
|
||||
{
|
||||
t.DetectionTiming = "焊后";
|
||||
}
|
||||
|
||||
trustList.Add(t);
|
||||
|
||||
}
|
||||
|
||||
var trustCodeList = trustList.Select(p => p.TrustBatchCode).Distinct();
|
||||
foreach (var trustCode in trustCodeList)
|
||||
{
|
||||
var t = from x in trustList where x.TrustBatchCode == trustCode select x;
|
||||
Model.Batch_BatchTrust newBatchTrust = new Model.Batch_BatchTrust();
|
||||
string trustBatchId = SQLHelper.GetNewID(typeof(Model.Batch_BatchTrust));
|
||||
newBatchTrust.TrustBatchId = trustBatchId;
|
||||
newBatchTrust.TrustBatchCode = trustCode;
|
||||
newBatchTrust.TrustDate = t.First().TrustDate;
|
||||
newBatchTrust.ProjectId = CurrUser.LoginProjectId;
|
||||
newBatchTrust.UnitId = t.First().UnitId;
|
||||
newBatchTrust.InstallationId = t.First().InstallationId;
|
||||
newBatchTrust.WorkAreaId = t.First().WorkAreaId;
|
||||
newBatchTrust.WeldingMethodId = t.First().WeldingMethodId;
|
||||
newBatchTrust.GrooveTypeId = t.First().GrooveTypeId;
|
||||
newBatchTrust.IsWelderFirst = t.First().IsWelderFirst;
|
||||
newBatchTrust.DetectionTypeId = t.First().DetectionTypeId;
|
||||
newBatchTrust.PipelineId = t.First().PipelineId;
|
||||
newBatchTrust.TopointBatch = t.First().TopointBatch;
|
||||
BLL.Batch_BatchTrustService.AddBatchTrust(newBatchTrust); // 新增委托单
|
||||
|
||||
// 生成委托明细,并回写点口明细信息
|
||||
foreach (var p in t)
|
||||
{
|
||||
Model.Batch_BatchTrustItem trustItem = new Model.Batch_BatchTrustItem
|
||||
{
|
||||
TrustBatchItemId = SQLHelper.GetNewID(typeof(Model.Batch_BatchTrustItem)),
|
||||
TrustBatchId = trustBatchId,
|
||||
PointBatchItemId = p.AcceptStandard,
|
||||
WeldJointId = p.QuaCertFile,
|
||||
//FilmNum = fileNum,
|
||||
CreateDate = p.TrustDate
|
||||
};
|
||||
Batch_BatchTrustItemService.AddBatchTrustItem(trustItem);
|
||||
|
||||
var pointItem = BLL.Batch_PointBatchItemService.GetPointBatchItemByPointBatchItemId(p.AcceptStandard);
|
||||
pointItem.PointDate = p.TrustDate;
|
||||
pointItem.PointState = "1";
|
||||
pointItem.IsBuildTrust = true;
|
||||
pointItem.GLGSAudit = Const.GlyId; // 导入时默认为管理员
|
||||
pointItem.JLAudit = Const.GlyId;
|
||||
Funs.DB.SubmitChanges();
|
||||
}
|
||||
}
|
||||
|
||||
ShowNotify("导入成功!", MessageBoxIcon.Success);
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
ShowNotify("无记录!", MessageBoxIcon.Warning);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
ShowNotify("请修正错误数据后再导入!", MessageBoxIcon.Warning);
|
||||
}
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
ShowNotify("请先审核要导入的文件!", MessageBoxIcon.Warning);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region 导出错误提示
|
||||
/// <summary>
|
||||
/// 导出错误提示
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void btnOut_Click(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 重载VerifyRenderingInServerForm方法,否则运行的时候会出现如下错误提示:“类型“GridView”的控件“GridView1”必须放在具有 runat=server 的窗体标记内”
|
||||
/// </summary>
|
||||
/// <param name="control"></param>
|
||||
public override void VerifyRenderingInServerForm(Control control)
|
||||
{
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region 下载模板
|
||||
/// <summary>
|
||||
/// 下载模板按钮
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void btnDownLoad_Click(object sender, EventArgs e)
|
||||
{
|
||||
PageContext.RegisterStartupScript(Confirm.GetShowReference("确定下载导入模板吗?", String.Empty, MessageBoxIcon.Question, PageManager1.GetCustomEventReference(false, "Confirm_OK"), PageManager1.GetCustomEventReference("Confirm_Cancel")));
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 下载导入模板
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void PageManager1_CustomEvent(object sender, CustomEventArgs e)
|
||||
{
|
||||
if (e.EventArgument == "Confirm_OK")
|
||||
{
|
||||
string rootPath = Server.MapPath("~/");
|
||||
string uploadfilepath = rootPath + Const.HJGL_TrustInTemplateUrl;
|
||||
//string filePath = Const.HJGL_TrustInTemplateUrl;
|
||||
//string fileName = Path.GetFileName(filePath);
|
||||
FileInfo info = new FileInfo(uploadfilepath);
|
||||
long fileSize = info.Length;
|
||||
Response.ClearContent();
|
||||
Response.AddHeader("Content-Disposition", "attachment;filename=" + System.Web.HttpUtility.UrlEncode("委托单模板.xlsx", System.Text.Encoding.UTF8));
|
||||
Response.ContentType = "excel/plain";
|
||||
Response.ContentEncoding = System.Text.Encoding.UTF8;
|
||||
Response.AddHeader("Content-Length", fileSize.ToString().Trim());
|
||||
Response.TransmitFile(uploadfilepath, 0, fileSize);
|
||||
Response.End();
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
+116
@@ -0,0 +1,116 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <自动生成>
|
||||
// 此代码由工具生成。
|
||||
//
|
||||
// 对此文件的更改可能导致不正确的行为,如果
|
||||
// 重新生成代码,则所做更改将丢失。
|
||||
// </自动生成>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace FineUIPro.Web.WeldingProcess.TrustManage
|
||||
{
|
||||
|
||||
|
||||
public partial class TrustBatchIn
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// form1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.HtmlControls.HtmlForm form1;
|
||||
|
||||
/// <summary>
|
||||
/// PageManager1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.PageManager PageManager1;
|
||||
|
||||
/// <summary>
|
||||
/// SimpleForm1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Form SimpleForm1;
|
||||
|
||||
/// <summary>
|
||||
/// Toolbar2 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Toolbar Toolbar2;
|
||||
|
||||
/// <summary>
|
||||
/// btnAudit 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Button btnAudit;
|
||||
|
||||
/// <summary>
|
||||
/// btnImport 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Button btnImport;
|
||||
|
||||
/// <summary>
|
||||
/// btnDownLoad 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Button btnDownLoad;
|
||||
|
||||
/// <summary>
|
||||
/// fuAttachUrl 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.FileUpload fuAttachUrl;
|
||||
|
||||
/// <summary>
|
||||
/// hdFileName 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.HiddenField hdFileName;
|
||||
|
||||
/// <summary>
|
||||
/// hdCheckResult 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.HiddenField hdCheckResult;
|
||||
|
||||
/// <summary>
|
||||
/// lbResult 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Label lbResult;
|
||||
}
|
||||
}
|
||||
@@ -55,42 +55,54 @@
|
||||
<Toolbars>
|
||||
<f:Toolbar ID="Toolbar3" Position="Top" runat="server" ToolbarAlign="Right">
|
||||
<Items>
|
||||
|
||||
<f:TextBox ID="txtTrustCode" runat="server" EmptyText="录入要修改的委托单号" Width="200px"
|
||||
ShowRedStar="true" Required="true">
|
||||
</f:TextBox>
|
||||
<f:DropDownList ID="drpNDEUnit" EmptyText="请选择检测单位" runat="server"
|
||||
ShowRedStar="true" Required="true" EnableEdit="true" Width="210px">
|
||||
</f:DropDownList>
|
||||
<f:DatePicker ID="txtTrustDate" EmptyText="修改委托日期" runat="server" DateFormatString="yyyy-MM-dd"
|
||||
ShowRedStar="true" Required="true" Width="130px" LabelAlign="Right">
|
||||
</f:DatePicker>
|
||||
<f:DropDownList ID="drpSurfaceState" runat="server" EmptyText="请选择表面状态" Width="135px">
|
||||
<f:ListItem Value="打磨" Text="打磨" />
|
||||
<f:ListItem Value="机加工" Text="机加工" />
|
||||
<f:ListItem Value="喷砂" Text="喷砂" />
|
||||
<f:ListItem Value="漆面" Text="漆面" />
|
||||
</f:DropDownList>
|
||||
<f:DropDownList ID="drpDetectionTiming" runat="server" EmptyText="请选择检测时机" Width="135px">
|
||||
<f:ListItem Value="焊后" Text="焊后" />
|
||||
<f:ListItem Value="打磨后" Text="打磨后" />
|
||||
<f:ListItem Value="热处理后" Text="热处理后" />
|
||||
<f:ListItem Value="坡口准备" Text="坡口准备" />
|
||||
<f:ListItem Value="清根后" Text="清根后" />
|
||||
<f:ListItem Value="压力试验后" Text="压力试验后" />
|
||||
<f:ListItem Value="其他" Text="其他" />
|
||||
</f:DropDownList>
|
||||
|
||||
<f:Button ID="btnSave" Text="<%$ Resources:Lan,Save %>" ToolTip="<%$ Resources:Lan,Save %>" Icon="SystemSave" runat="server"
|
||||
OnClick="btnSave_Click">
|
||||
</f:Button>
|
||||
<f:ToolbarFill ID="ToolbarFill1" runat="server">
|
||||
</f:ToolbarFill>
|
||||
<f:TextBox ID="txtTrustCode" runat="server" EmptyText="录入要修改的委托单号" Width="200px"
|
||||
ShowRedStar="true" Required="true"></f:TextBox>
|
||||
<f:DropDownList ID="drpNDEUnit" EmptyText="请选择检测单位" runat="server"
|
||||
ShowRedStar="true" Required="true" EnableEdit="true" Width="210px" >
|
||||
</f:DropDownList>
|
||||
<f:DatePicker ID="txtTrustDate" EmptyText="修改委托日期" runat="server" DateFormatString="yyyy-MM-dd"
|
||||
ShowRedStar="true" Required="true" Width="130px" LabelAlign="Right">
|
||||
</f:DatePicker>
|
||||
<f:DropDownList ID="drpSurfaceState" runat="server" EmptyText="请选择表面状态" Hidden="true" Width="135px">
|
||||
<f:ListItem Value="打磨" Text="打磨"/>
|
||||
<f:ListItem Value="机加工" Text="机加工"/>
|
||||
<f:ListItem Value="喷砂" Text="喷砂"/>
|
||||
<f:ListItem Value="漆面" Text="漆面"/>
|
||||
</f:DropDownList>
|
||||
<f:DropDownList ID="drpDetectionTiming" runat="server" EmptyText="请选择检测时机" Hidden="true" Width="135px">
|
||||
<f:ListItem Value="焊后" Text="焊后"/>
|
||||
<f:ListItem Value="打磨后" Text="打磨后"/>
|
||||
<f:ListItem Value="热处理后" Text="热处理后"/>
|
||||
<f:ListItem Value="坡口准备" Text="坡口准备"/>
|
||||
<f:ListItem Value="清根后" Text="清根后"/>
|
||||
<f:ListItem Value="压力试验后" Text="压力试验后"/>
|
||||
<f:ListItem Value="其他" Text="其他"/>
|
||||
</f:DropDownList>
|
||||
<f:TextBox ID="txtQuaCertFile" runat="server" EmptyText="请录入质量证明文件编号" Width="180px" Hidden="true"></f:TextBox>
|
||||
<f:TextBox ID="txtAcceptStandard" runat="server" EmptyText="请录入制造/验收标准" Width="180px" Hidden="true"></f:TextBox>
|
||||
<f:Button ID="btnSave" Text="<%$ Resources:Lan,Save %>" ToolTip="<%$ Resources:Lan,Save %>" Icon="SystemSave" runat="server"
|
||||
OnClick="btnSave_Click">
|
||||
</Items>
|
||||
</f:Toolbar>
|
||||
<f:Toolbar Position="Top" runat="server" ToolbarAlign="Right">
|
||||
<Items>
|
||||
|
||||
<f:ToolbarFill ID="ToolbarFill2" runat="server">
|
||||
</f:ToolbarFill>
|
||||
|
||||
<f:Button ID="btnImport" Text="导入" ToolTip="导入" Icon="ApplicationGet" runat="server"
|
||||
OnClick="btnImport_Click">
|
||||
</f:Button>
|
||||
<f:Button ID="btnPrint" Text="<%$ Resources:Lan,Print %>" Icon="Printer" runat="server"
|
||||
OnClick="btnPrint_Click" Hidden="true">
|
||||
</f:Button>
|
||||
<f:Button ID="btnExport" Text="打印" ToolTip="导出" EnableAjax="false" DisableControlBeforePostBack="false" Icon="ApplicationGet" runat="server"
|
||||
OnClick="btnExport_Click">
|
||||
</f:Button>
|
||||
OnClick="btnExport_Click">
|
||||
</f:Button>
|
||||
<f:Button ID="btnDelete" Text="<%$ Resources:Lan,Delete %>" Icon="Delete" runat="server"
|
||||
OnClick="btnDelete_Click">
|
||||
</f:Button>
|
||||
@@ -213,6 +225,10 @@
|
||||
EnableMaximize="true" Target="Top" EnableResize="true" runat="server" OnClose="Window1_Close"
|
||||
IsModal="true" Width="720px" Height="400px">
|
||||
</f:Window>
|
||||
<f:Window ID="Window4" Title="委托单导入" Hidden="true" EnableIFrame="true"
|
||||
EnableMaximize="true" Target="Parent" EnableResize="true" runat="server" IsModal="false" OnClose="Window4_Close"
|
||||
CloseAction="HidePostBack" Width="1024px" Height="640px">
|
||||
</f:Window>
|
||||
<f:Menu ID="Menu1" runat="server">
|
||||
<f:MenuButton ID="btnMenuCancel" OnClick="btnMenuCancel_Click" EnablePostBack="true"
|
||||
ConfirmText="确定要取消此焊口的委托吗?" ConfirmTarget="Top" runat="server"
|
||||
|
||||
@@ -6,6 +6,7 @@ using System.IO;
|
||||
using System.Linq;
|
||||
using System.Web;
|
||||
using BLL;
|
||||
using Model;
|
||||
using NPOI.HSSF.Util;
|
||||
using NPOI.SS.UserModel;
|
||||
using NPOI.SS.Util;
|
||||
@@ -194,25 +195,8 @@ namespace FineUIPro.Web.WeldingProcess.TrustManage
|
||||
|
||||
protected void tvControlItem_TreeNodeExpanded(object sender, TreeNodeEventArgs e)
|
||||
{
|
||||
txtQuaCertFile.Hidden = true;
|
||||
txtAcceptStandard.Hidden = true;
|
||||
drpDetectionTiming.Hidden = true;
|
||||
drpSurfaceState.Hidden = true;
|
||||
|
||||
if (e.Node.ToolTip == "DetectionType")
|
||||
{
|
||||
if (e.Node.Text == "PMI")
|
||||
{
|
||||
txtQuaCertFile.Hidden = false;
|
||||
txtAcceptStandard.Hidden = false;
|
||||
}
|
||||
else
|
||||
{
|
||||
drpDetectionTiming.Hidden = false;
|
||||
drpSurfaceState.Hidden = false;
|
||||
}
|
||||
|
||||
|
||||
e.Node.Nodes.Clear();
|
||||
// 单号
|
||||
var trusts = from x in Funs.DB.Batch_BatchTrust
|
||||
@@ -268,22 +252,6 @@ namespace FineUIPro.Web.WeldingProcess.TrustManage
|
||||
/// <param name="e"></param>
|
||||
protected void tvControlItem_NodeCommand(object sender, TreeCommandEventArgs e)
|
||||
{
|
||||
txtQuaCertFile.Hidden = true;
|
||||
txtAcceptStandard.Hidden = true;
|
||||
drpDetectionTiming.Hidden = true;
|
||||
drpSurfaceState.Hidden = true;
|
||||
|
||||
if (e.Node.ParentNode.Text == "PMI")
|
||||
{
|
||||
txtQuaCertFile.Hidden = false;
|
||||
txtAcceptStandard.Hidden = false;
|
||||
}
|
||||
else
|
||||
{
|
||||
drpDetectionTiming.Hidden = false;
|
||||
drpSurfaceState.Hidden = false;
|
||||
}
|
||||
|
||||
Model.View_Batch_BatchTrust trust = BLL.Batch_BatchTrustService.GetBatchTrustViewById(this.tvControlItem.SelectedNodeID);
|
||||
if (trust != null)
|
||||
{
|
||||
@@ -319,8 +287,6 @@ namespace FineUIPro.Web.WeldingProcess.TrustManage
|
||||
this.txtDetectionTypeCode.Text = trust.DetectionTypeCode;
|
||||
drpNDEUnit.SelectedValue = trust.NDEUuit;
|
||||
txtTrustDate.Text = string.Format("{0:yyyy-MM-dd}", trust.TrustDate);
|
||||
txtAcceptStandard.Text = trust.AcceptStandard;
|
||||
txtQuaCertFile.Text = trust.QuaCertFile;
|
||||
if (!string.IsNullOrEmpty(trust.SurfaceState))
|
||||
{
|
||||
drpSurfaceState.SelectedValue = trust.SurfaceState;
|
||||
@@ -480,10 +446,8 @@ namespace FineUIPro.Web.WeldingProcess.TrustManage
|
||||
string trustCode = txtTrustCode.Text.Trim();
|
||||
string surfaceState = drpSurfaceState.SelectedValue;
|
||||
string detectionTiming = drpDetectionTiming.SelectedValue;
|
||||
string quaCertFile = txtQuaCertFile.Text.Trim();
|
||||
string acceptStandard = txtAcceptStandard.Text.Trim();
|
||||
DateTime? trustDate= Funs.GetNewDateTime(this.txtTrustDate.Text);
|
||||
BLL.Batch_BatchTrustService.BatchTrustNDEUnit(trustBatchId, ndtUnit, trustCode, surfaceState, detectionTiming,quaCertFile, acceptStandard, trustDate);
|
||||
BLL.Batch_BatchTrustService.BatchTrustNDEUnit(trustBatchId, ndtUnit, trustCode, surfaceState, detectionTiming, null, null, trustDate);
|
||||
txtTrustBatchCode.Text = trustCode;
|
||||
ShowNotify(Resources.Lan.SaveSuccessfully, MessageBoxIcon.Success);
|
||||
}
|
||||
@@ -712,6 +676,35 @@ namespace FineUIPro.Web.WeldingProcess.TrustManage
|
||||
}
|
||||
}
|
||||
|
||||
#region 导入
|
||||
/// <summary>
|
||||
/// 导入按钮
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void btnImport_Click(object sender, EventArgs e)
|
||||
{
|
||||
if (CommonService.GetAllButtonPowerList(this.CurrUser.LoginProjectId, this.CurrUser.UserId, Const.HJGL_CheckManageMenuId, Const.BtnAdd))
|
||||
{
|
||||
PageContext.RegisterStartupScript(Window4.GetShowReference(String.Format("TrustBatchIn.aspx", "导入 - ")));
|
||||
}
|
||||
else
|
||||
{
|
||||
ShowNotify(Resources.Lan.NoPrivilegePrompt, MessageBoxIcon.Warning);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 关闭导入弹出窗口
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void Window4_Close(object sender, WindowCloseEventArgs e)
|
||||
{
|
||||
InitTreeMenu();
|
||||
}
|
||||
#endregion
|
||||
|
||||
protected void btnExport_Click(object sender, EventArgs e)
|
||||
{
|
||||
if (CommonService.GetAllButtonPowerList(this.CurrUser.LoginProjectId, this.CurrUser.UserId, Const.HJGL_BatchTrustMenuId, Const.BtnOut))
|
||||
|
||||
+86
-75
@@ -7,11 +7,13 @@
|
||||
// </自动生成>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace FineUIPro.Web.WeldingProcess.TrustManage {
|
||||
|
||||
|
||||
public partial class TrustBatchManage {
|
||||
|
||||
namespace FineUIPro.Web.WeldingProcess.TrustManage
|
||||
{
|
||||
|
||||
|
||||
public partial class TrustBatchManage
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// form1 控件。
|
||||
/// </summary>
|
||||
@@ -20,7 +22,7 @@ namespace FineUIPro.Web.WeldingProcess.TrustManage {
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.HtmlControls.HtmlForm form1;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// PageManager1 控件。
|
||||
/// </summary>
|
||||
@@ -29,7 +31,7 @@ namespace FineUIPro.Web.WeldingProcess.TrustManage {
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.PageManager PageManager1;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Panel1 控件。
|
||||
/// </summary>
|
||||
@@ -38,7 +40,7 @@ namespace FineUIPro.Web.WeldingProcess.TrustManage {
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Panel Panel1;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// panelLeftRegion 控件。
|
||||
/// </summary>
|
||||
@@ -47,7 +49,7 @@ namespace FineUIPro.Web.WeldingProcess.TrustManage {
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Panel panelLeftRegion;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Toolbar1 控件。
|
||||
/// </summary>
|
||||
@@ -56,7 +58,7 @@ namespace FineUIPro.Web.WeldingProcess.TrustManage {
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Toolbar Toolbar1;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// txtTrustDateMonth 控件。
|
||||
/// </summary>
|
||||
@@ -65,7 +67,7 @@ namespace FineUIPro.Web.WeldingProcess.TrustManage {
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.DatePicker txtTrustDateMonth;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Toolbar6 控件。
|
||||
/// </summary>
|
||||
@@ -74,7 +76,7 @@ namespace FineUIPro.Web.WeldingProcess.TrustManage {
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Toolbar Toolbar6;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// txtPipeCode 控件。
|
||||
/// </summary>
|
||||
@@ -83,7 +85,7 @@ namespace FineUIPro.Web.WeldingProcess.TrustManage {
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtPipeCode;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Toolbar5 控件。
|
||||
/// </summary>
|
||||
@@ -92,7 +94,7 @@ namespace FineUIPro.Web.WeldingProcess.TrustManage {
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Toolbar Toolbar5;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// txtSearchCode 控件。
|
||||
/// </summary>
|
||||
@@ -101,7 +103,7 @@ namespace FineUIPro.Web.WeldingProcess.TrustManage {
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtSearchCode;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// tvControlItem 控件。
|
||||
/// </summary>
|
||||
@@ -110,7 +112,7 @@ namespace FineUIPro.Web.WeldingProcess.TrustManage {
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Tree tvControlItem;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// panelCenterRegion 控件。
|
||||
/// </summary>
|
||||
@@ -119,7 +121,7 @@ namespace FineUIPro.Web.WeldingProcess.TrustManage {
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Panel panelCenterRegion;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Toolbar3 控件。
|
||||
/// </summary>
|
||||
@@ -128,16 +130,7 @@ namespace FineUIPro.Web.WeldingProcess.TrustManage {
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Toolbar Toolbar3;
|
||||
|
||||
/// <summary>
|
||||
/// ToolbarFill1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.ToolbarFill ToolbarFill1;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// txtTrustCode 控件。
|
||||
/// </summary>
|
||||
@@ -146,7 +139,7 @@ namespace FineUIPro.Web.WeldingProcess.TrustManage {
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtTrustCode;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// drpNDEUnit 控件。
|
||||
/// </summary>
|
||||
@@ -155,7 +148,7 @@ namespace FineUIPro.Web.WeldingProcess.TrustManage {
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.DropDownList drpNDEUnit;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// txtTrustDate 控件。
|
||||
/// </summary>
|
||||
@@ -164,7 +157,7 @@ namespace FineUIPro.Web.WeldingProcess.TrustManage {
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.DatePicker txtTrustDate;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// drpSurfaceState 控件。
|
||||
/// </summary>
|
||||
@@ -173,7 +166,7 @@ namespace FineUIPro.Web.WeldingProcess.TrustManage {
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.DropDownList drpSurfaceState;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// drpDetectionTiming 控件。
|
||||
/// </summary>
|
||||
@@ -182,25 +175,7 @@ namespace FineUIPro.Web.WeldingProcess.TrustManage {
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.DropDownList drpDetectionTiming;
|
||||
|
||||
/// <summary>
|
||||
/// txtQuaCertFile 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtQuaCertFile;
|
||||
|
||||
/// <summary>
|
||||
/// txtAcceptStandard 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtAcceptStandard;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// btnSave 控件。
|
||||
/// </summary>
|
||||
@@ -209,7 +184,34 @@ namespace FineUIPro.Web.WeldingProcess.TrustManage {
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Button btnSave;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// ToolbarFill1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.ToolbarFill ToolbarFill1;
|
||||
|
||||
/// <summary>
|
||||
/// ToolbarFill2 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.ToolbarFill ToolbarFill2;
|
||||
|
||||
/// <summary>
|
||||
/// btnImport 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Button btnImport;
|
||||
|
||||
/// <summary>
|
||||
/// btnPrint 控件。
|
||||
/// </summary>
|
||||
@@ -218,7 +220,7 @@ namespace FineUIPro.Web.WeldingProcess.TrustManage {
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Button btnPrint;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// btnExport 控件。
|
||||
/// </summary>
|
||||
@@ -227,7 +229,7 @@ namespace FineUIPro.Web.WeldingProcess.TrustManage {
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Button btnExport;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// btnDelete 控件。
|
||||
/// </summary>
|
||||
@@ -236,7 +238,7 @@ namespace FineUIPro.Web.WeldingProcess.TrustManage {
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Button btnDelete;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// SimpleForm1 控件。
|
||||
/// </summary>
|
||||
@@ -245,7 +247,7 @@ namespace FineUIPro.Web.WeldingProcess.TrustManage {
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Form SimpleForm1;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// lbTrustUnit 控件。
|
||||
/// </summary>
|
||||
@@ -254,7 +256,7 @@ namespace FineUIPro.Web.WeldingProcess.TrustManage {
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Label lbTrustUnit;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// txtTrustBatchCode 控件。
|
||||
/// </summary>
|
||||
@@ -263,7 +265,7 @@ namespace FineUIPro.Web.WeldingProcess.TrustManage {
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Label txtTrustBatchCode;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// txtDetectionTypeCode 控件。
|
||||
/// </summary>
|
||||
@@ -272,7 +274,7 @@ namespace FineUIPro.Web.WeldingProcess.TrustManage {
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Label txtDetectionTypeCode;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// txtname 控件。
|
||||
/// </summary>
|
||||
@@ -281,7 +283,7 @@ namespace FineUIPro.Web.WeldingProcess.TrustManage {
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Label txtname;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// txtTestStandard 控件。
|
||||
/// </summary>
|
||||
@@ -290,7 +292,7 @@ namespace FineUIPro.Web.WeldingProcess.TrustManage {
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Label txtTestStandard;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// txtTestRate 控件。
|
||||
/// </summary>
|
||||
@@ -299,7 +301,7 @@ namespace FineUIPro.Web.WeldingProcess.TrustManage {
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Label txtTestRate;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// txtTechLevel 控件。
|
||||
/// </summary>
|
||||
@@ -308,7 +310,7 @@ namespace FineUIPro.Web.WeldingProcess.TrustManage {
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Label txtTechLevel;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// txtWeldMothed 控件。
|
||||
/// </summary>
|
||||
@@ -317,7 +319,7 @@ namespace FineUIPro.Web.WeldingProcess.TrustManage {
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Label txtWeldMothed;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// txtGrooveType 控件。
|
||||
/// </summary>
|
||||
@@ -326,7 +328,7 @@ namespace FineUIPro.Web.WeldingProcess.TrustManage {
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Label txtGrooveType;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// txtPipClass 控件。
|
||||
/// </summary>
|
||||
@@ -335,7 +337,7 @@ namespace FineUIPro.Web.WeldingProcess.TrustManage {
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Label txtPipClass;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Grid1 控件。
|
||||
/// </summary>
|
||||
@@ -344,7 +346,7 @@ namespace FineUIPro.Web.WeldingProcess.TrustManage {
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Grid Grid1;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// ToolbarSeparator1 控件。
|
||||
/// </summary>
|
||||
@@ -353,7 +355,7 @@ namespace FineUIPro.Web.WeldingProcess.TrustManage {
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.ToolbarSeparator ToolbarSeparator1;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// ToolbarText1 控件。
|
||||
/// </summary>
|
||||
@@ -362,7 +364,7 @@ namespace FineUIPro.Web.WeldingProcess.TrustManage {
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.ToolbarText ToolbarText1;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// ddlPageSize 控件。
|
||||
/// </summary>
|
||||
@@ -371,7 +373,7 @@ namespace FineUIPro.Web.WeldingProcess.TrustManage {
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.DropDownList ddlPageSize;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Window1 控件。
|
||||
/// </summary>
|
||||
@@ -380,7 +382,7 @@ namespace FineUIPro.Web.WeldingProcess.TrustManage {
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Window Window1;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Window2 控件。
|
||||
/// </summary>
|
||||
@@ -389,7 +391,7 @@ namespace FineUIPro.Web.WeldingProcess.TrustManage {
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Window Window2;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Window3 控件。
|
||||
/// </summary>
|
||||
@@ -398,7 +400,16 @@ namespace FineUIPro.Web.WeldingProcess.TrustManage {
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Window Window3;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Window4 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Window Window4;
|
||||
|
||||
/// <summary>
|
||||
/// Menu1 控件。
|
||||
/// </summary>
|
||||
@@ -407,7 +418,7 @@ namespace FineUIPro.Web.WeldingProcess.TrustManage {
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Menu Menu1;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// btnMenuCancel 控件。
|
||||
/// </summary>
|
||||
@@ -416,7 +427,7 @@ namespace FineUIPro.Web.WeldingProcess.TrustManage {
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.MenuButton btnMenuCancel;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// btnMenuReTrust 控件。
|
||||
/// </summary>
|
||||
@@ -425,7 +436,7 @@ namespace FineUIPro.Web.WeldingProcess.TrustManage {
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.MenuButton btnMenuReTrust;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// btnMenuRtReplace 控件。
|
||||
/// </summary>
|
||||
|
||||
@@ -593,7 +593,7 @@ namespace FineUIPro.Web.WeldingProcess.WeldingManage
|
||||
{
|
||||
var pipeline = from x in Funs.DB.Pipeline_Pipeline
|
||||
where x.ProjectId == this.CurrUser.LoginProjectId
|
||||
&& x.InstallationId == insId && x.PipelineCode == ds.Tables[0].Rows[i]["管线号"].ToString()
|
||||
&& x.InstallationId == insId && x.WorkAreaId==areaId && x.PipelineCode == ds.Tables[0].Rows[i]["管线号"].ToString()
|
||||
select x;
|
||||
|
||||
if (pipeline.Count() > 0)
|
||||
|
||||
Reference in New Issue
Block a user