2022-10-12 组件二维码导入修改,三维界面修改。
This commit is contained in:
@@ -83,7 +83,7 @@
|
||||
</f:Toolbar>
|
||||
</Toolbars>
|
||||
<Items>
|
||||
<f:Grid ID="Grid1" ShowBorder="true" ShowHeader="false" Title="管线信息"
|
||||
<f:Grid ID="Grid1" ShowBorder="true" ShowHeader="false" Title="管线信息" OnRowClick="Grid1_RowClick" EnableRowClickEvent="true"
|
||||
EnableCollapse="true" runat="server" BoxFlex="1" DataKeyNames="PipelineId"
|
||||
AllowColumnLocking="true" EnableColumnLines="true" DataIDField="PipelineId"
|
||||
AllowSorting="true" SortField="PipelineCode" SortDirection="ASC" OnSort="Grid1_Sort"
|
||||
|
||||
@@ -115,10 +115,10 @@ namespace FineUIPro.Web.HJGL.InfoQuery
|
||||
Model.ColorModel colorModel = new Model.ColorModel();
|
||||
colorModel = BLL.Project_SysSetService.GetColorModel(this.CurrUser.LoginProjectId);
|
||||
parameter3D.ColorModel = colorModel;
|
||||
parameter3D.TagNum = "/E-9001,/E-9002";
|
||||
parameter3D.TagNum = "";
|
||||
parameter3D.ButtonType = "0,2";
|
||||
|
||||
ctlAuditFlow.Url_item = BLL.Project_SysSetService.GetAvevaNetUrl(this.CurrUser.LoginProjectId) + "item/IPE%7CVPD%7CArea-15A";
|
||||
ctlAuditFlow.Url_item = BLL.Project_SysSetService.GetAvevaNetUrl(this.CurrUser.LoginProjectId) + "item/IPE%7CVPD%7C"+HJGL_DataImportService.Getlatest3DModelNameByUnitWorkId(tvControlItem.SelectedNodeID);
|
||||
ctlAuditFlow.data = parameter3D;
|
||||
ctlAuditFlow.BindData();
|
||||
|
||||
@@ -359,5 +359,21 @@ namespace FineUIPro.Web.HJGL.InfoQuery
|
||||
|
||||
|
||||
}
|
||||
|
||||
protected void Grid1_RowClick(object sender, GridRowClickEventArgs e)
|
||||
{
|
||||
var q = PipelineService.GetPipelineByPipelineId(Grid1.SelectedRowID);
|
||||
var pipecode ="/"+ q.PipelineCode;
|
||||
Model.Parameter3D parameter3D = new Model.Parameter3D();
|
||||
Model.ColorModel colorModel = new Model.ColorModel();
|
||||
colorModel = BLL.Project_SysSetService.GetColorModel(this.CurrUser.LoginProjectId);
|
||||
parameter3D.ColorModel = colorModel;
|
||||
parameter3D.TagNum = pipecode;
|
||||
parameter3D.ButtonType = "0,2";
|
||||
parameter3D.ModelName = HJGL_DataImportService.Getlatest3DModelNameByUnitWorkId(tvControlItem.SelectedNodeID);
|
||||
ctlAuditFlow.Url_item = BLL.Project_SysSetService.GetAvevaNetUrl(this.CurrUser.LoginProjectId) + "item/IPE%7CVPD%7C" + HJGL_DataImportService.Getlatest3DModelNameByUnitWorkId(tvControlItem.SelectedNodeID);
|
||||
ctlAuditFlow.data = parameter3D;
|
||||
ctlAuditFlow.BindData();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -72,10 +72,10 @@
|
||||
FieldType="String" HeaderText="二维码信息" HeaderTextAlign="Center"
|
||||
TextAlign="Left">
|
||||
</f:RenderField>
|
||||
<f:RenderField Width="200px" ColumnID="DrawingName" DataField="DrawingName" SortField="DrawingName"
|
||||
<%-- <f:RenderField Width="200px" ColumnID="DrawingName" DataField="DrawingName" SortField="DrawingName"
|
||||
FieldType="String" HeaderText="预制图纸名称" HeaderTextAlign="Center"
|
||||
TextAlign="Left">
|
||||
</f:RenderField>
|
||||
</f:RenderField>--%>
|
||||
|
||||
</Columns>
|
||||
<PageItems>
|
||||
|
||||
@@ -169,17 +169,17 @@ namespace FineUIPro.Web.HJGL.PreDesign
|
||||
Model.HJGL_Pipeline pipeline = new Model.HJGL_Pipeline();
|
||||
Model.HJGL_Pipeline_Component hJGL_Pipeline_Component = new Model.HJGL_Pipeline_Component();
|
||||
|
||||
string pioelinecode = pds.Rows[i]["管线号"].ToString();
|
||||
string pipelinecode = pds.Rows[i]["管线号"].ToString();
|
||||
string PipelineComponentCode = pds.Rows[i]["预制组件"].ToString();
|
||||
string QRCode = pds.Rows[i]["二维码信息"].ToString();
|
||||
|
||||
if (string.IsNullOrEmpty(pioelinecode))
|
||||
if (string.IsNullOrEmpty(pipelinecode))
|
||||
{
|
||||
result += "第" + (i + 2).ToString() + "行," + "管线号" + "," + "此项为必填项!" + "|";
|
||||
}
|
||||
else
|
||||
{
|
||||
pipeline = getPipeline.FirstOrDefault(x => x.PipelineCode == pioelinecode);
|
||||
pipeline = getPipeline.FirstOrDefault(x => x.PipelineCode == pipelinecode);
|
||||
if (pipeline == null)
|
||||
{
|
||||
result += "第" + (i + 2).ToString() + "行," + "不存在此管线号" + "|";
|
||||
@@ -194,9 +194,9 @@ namespace FineUIPro.Web.HJGL.PreDesign
|
||||
else
|
||||
{
|
||||
hJGL_Pipeline_Component = HJGL_PipelineComponentService.GetPipelineComponentByCodeandpipelineId(PipelineComponentCode, pipeline.PipelineId);
|
||||
if (pipeline == null)
|
||||
if (hJGL_Pipeline_Component == null)
|
||||
{
|
||||
result += "第" + (i + 2).ToString() + "行," + "不存在此预制组件" + "|";
|
||||
result += "第" + (i + 2).ToString() + "行," + "不存在此预制组件 " + PipelineComponentCode + " |";
|
||||
|
||||
continue;
|
||||
}
|
||||
@@ -222,32 +222,35 @@ namespace FineUIPro.Web.HJGL.PreDesign
|
||||
.GroupBy(x => new {
|
||||
pipelinecode = x.Field<string>("管线号"),
|
||||
PipelineComponentCode = x.Field<string>("预制组件"),
|
||||
DrawingName = x.Field<string>("预制图纸名称"),
|
||||
// DrawingName = x.Field<string>("预制图纸名称"),
|
||||
})
|
||||
.Select(x => new
|
||||
{
|
||||
pipelinecode = x.Key.pipelinecode,
|
||||
PipelineComponentCode = x.Key.PipelineComponentCode,
|
||||
DrawingName = x.Key.DrawingName,
|
||||
// DrawingName = x.Key.DrawingName,
|
||||
QRCode = String.Join("&", x.Select(z => z.Field<string>("二维码信息")))
|
||||
});
|
||||
foreach (var item in dt)
|
||||
{
|
||||
var pipeline = PipelineService.GetPipelineByPipelineCode(item.pipelinecode.Replace("\n", "").Replace(" ", "").Replace("\t", "").Replace("\r", ""));
|
||||
var hJGL_Pipeline_Component = HJGL_PipelineComponentService.GetPipelineComponentByCodeandpipelineId(item.PipelineComponentCode.Replace("\n", "").Replace(" ", "").Replace("\t", "").Replace("\r", ""), pipeline.PipelineId);
|
||||
|
||||
model.Pipeline_ComponentQRCodeRootName rootName = new model.Pipeline_ComponentQRCodeRootName();
|
||||
rootName.QRCode = new List<model.Pipeline_ComponentQRCodeQRCodeItem>();
|
||||
var elementlist = item.QRCode.Split('&');
|
||||
foreach (var element in elementlist)
|
||||
if (hJGL_Pipeline_Component!=null)
|
||||
{
|
||||
model.Pipeline_ComponentQRCodeQRCodeItem qRCodeQRCodeItem = new model.Pipeline_ComponentQRCodeQRCodeItem();
|
||||
qRCodeQRCodeItem.element = element;
|
||||
rootName.QRCode.Add(qRCodeQRCodeItem);
|
||||
model.Pipeline_ComponentQRCodeRootName rootName = new model.Pipeline_ComponentQRCodeRootName();
|
||||
rootName.QRCode = new List<model.Pipeline_ComponentQRCodeQRCodeItem>();
|
||||
var elementlist = item.QRCode.Split('&');
|
||||
foreach (var element in elementlist)
|
||||
{
|
||||
model.Pipeline_ComponentQRCodeQRCodeItem qRCodeQRCodeItem = new model.Pipeline_ComponentQRCodeQRCodeItem();
|
||||
qRCodeQRCodeItem.element = element;
|
||||
rootName.QRCode.Add(qRCodeQRCodeItem);
|
||||
}
|
||||
hJGL_Pipeline_Component.QRCode = JsonConvert.SerializeObject(rootName);
|
||||
//hJGL_Pipeline_Component.DrawingName = item.DrawingName;
|
||||
Pipeline_ComponentList.Add(hJGL_Pipeline_Component);
|
||||
}
|
||||
hJGL_Pipeline_Component.QRCode = JsonConvert.SerializeObject(rootName);
|
||||
hJGL_Pipeline_Component.DrawingName = item.DrawingName;
|
||||
Pipeline_ComponentList.Add(hJGL_Pipeline_Component);
|
||||
|
||||
}
|
||||
errorInfos = string.Empty;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user