2022-10-15 焊接修改
This commit is contained in:
@@ -4,11 +4,35 @@ using System.Collections.Generic;
|
||||
using System.Data;
|
||||
using System.Data.SqlClient;
|
||||
using System.Linq;
|
||||
using System.Web.UI.DataVisualization.Charting;
|
||||
|
||||
namespace FineUIPro.Web.HJGL.PreDesign
|
||||
{
|
||||
|
||||
public partial class PipelingDivide : PageBase
|
||||
{
|
||||
public decimal PipelineComplete
|
||||
{
|
||||
get
|
||||
{
|
||||
return (decimal)ViewState["PipelineComplete"];
|
||||
}
|
||||
set
|
||||
{
|
||||
ViewState["PipelineComplete"] = value;
|
||||
}
|
||||
}
|
||||
public decimal PipelineNOComplete
|
||||
{
|
||||
get
|
||||
{
|
||||
return (decimal)ViewState["PipelineNOComplete"];
|
||||
}
|
||||
set
|
||||
{
|
||||
ViewState["PipelineNOComplete"] = value;
|
||||
}
|
||||
}
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
ctlAuditFlow.Url = BLL.Project_SysSetService.GetAvevaNetUrl(this.CurrUser.LoginProjectId);
|
||||
@@ -17,6 +41,8 @@ namespace FineUIPro.Web.HJGL.PreDesign
|
||||
{
|
||||
this.ddlPageSize.SelectedValue = this.Grid1.PageSize.ToString();
|
||||
this.InitTreeMenu();//加载树
|
||||
PipelineComplete = 0;
|
||||
PipelineNOComplete = 0;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -120,7 +146,7 @@ namespace FineUIPro.Web.HJGL.PreDesign
|
||||
colorModel = BLL.Project_SysSetService.GetColorModel(this.CurrUser.LoginProjectId);
|
||||
parameter3D.ColorModel = colorModel;
|
||||
parameter3D.TagNum = "";
|
||||
parameter3D.ButtonType = "0,4";
|
||||
parameter3D.ButtonType = "0,1";
|
||||
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);
|
||||
@@ -168,7 +194,10 @@ namespace FineUIPro.Web.HJGL.PreDesign
|
||||
}
|
||||
SqlParameter[] parameter = listStr.ToArray();
|
||||
DataTable tb = SQLHelper.GetDataTableRunText(strSql, parameter);
|
||||
|
||||
var q = tb.AsEnumerable().Where(x => x["PipeArea"].ToString() == "工厂预制");
|
||||
var q2 = tb.AsEnumerable().Where(x => x["PipeArea"].ToString() == "现场施工");
|
||||
PipelineComplete = q.Count();
|
||||
PipelineNOComplete = q2.Count();
|
||||
// 2.获取当前分页数据
|
||||
//var table = this.GetPagedDataTable(Grid1, tb1);
|
||||
Grid1.RecordCount = tb.Rows.Count;
|
||||
@@ -240,14 +269,20 @@ namespace FineUIPro.Web.HJGL.PreDesign
|
||||
}
|
||||
protected void Grid1_RowClick(object sender, GridRowClickEventArgs e)
|
||||
{
|
||||
var q = PipelineService.GetPipelineByPipelineId(Grid1.SelectedRowID);
|
||||
var pipecode = "/" + q.PipelineCode;
|
||||
var Id =Grid1.SelectedRowIDArray;
|
||||
List<string > listpipecode=new List<string> () ;
|
||||
foreach (var item in Id)
|
||||
{
|
||||
var q = PipelineService.GetPipelineByPipelineId(item);
|
||||
listpipecode.Add("/" + q.PipelineCode);
|
||||
}
|
||||
var pipecode = string.Join(",", listpipecode);
|
||||
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,4";
|
||||
parameter3D.ButtonType = "0,1";
|
||||
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;
|
||||
@@ -288,36 +323,11 @@ namespace FineUIPro.Web.HJGL.PreDesign
|
||||
}
|
||||
#endregion
|
||||
|
||||
protected string ConvertDetectionType(object detectionType)
|
||||
{
|
||||
string detectionName = string.Empty;
|
||||
if (detectionType != null)
|
||||
{
|
||||
string[] types = detectionType.ToString().Split('|');
|
||||
foreach (string t in types)
|
||||
{
|
||||
var type = BLL.Base_DetectionTypeService.GetDetectionTypeByDetectionTypeId(t);
|
||||
if (type != null)
|
||||
{
|
||||
detectionName += type.DetectionTypeCode + ",";
|
||||
}
|
||||
}
|
||||
}
|
||||
if (detectionName != string.Empty)
|
||||
{
|
||||
return detectionName.Substring(0, detectionName.Length - 1);
|
||||
}
|
||||
else
|
||||
{
|
||||
return "";
|
||||
}
|
||||
}
|
||||
|
||||
#region 按钮事件
|
||||
protected void btnGetChart_Click(object sender, EventArgs e)
|
||||
{
|
||||
decimal PipelineComplete = 0;
|
||||
decimal PipelineNoComplete = 0;
|
||||
PageContext.RegisterStartupScript(Window2.GetShowReference(String.Format("PipelingDivideChart.aspx?PipelineComplete={0}&&PipelineNOComplete={1}", PipelineComplete, PipelineNoComplete, "编辑 - ")));
|
||||
|
||||
PageContext.RegisterStartupScript(Window2.GetShowReference(String.Format("PipelingDivideChart.aspx?PipelineComplete={0}&&PipelineNOComplete={1}", PipelineComplete, PipelineNOComplete, "编辑 - ")));
|
||||
|
||||
}
|
||||
|
||||
@@ -351,5 +361,33 @@ namespace FineUIPro.Web.HJGL.PreDesign
|
||||
txtMaterialCode.Text = String.Empty;
|
||||
BindGrid();
|
||||
}
|
||||
|
||||
#endregion
|
||||
protected string ConvertDetectionType(object detectionType)
|
||||
{
|
||||
string detectionName = string.Empty;
|
||||
if (detectionType != null)
|
||||
{
|
||||
string[] types = detectionType.ToString().Split('|');
|
||||
foreach (string t in types)
|
||||
{
|
||||
var type = BLL.Base_DetectionTypeService.GetDetectionTypeByDetectionTypeId(t);
|
||||
if (type != null)
|
||||
{
|
||||
detectionName += type.DetectionTypeCode + ",";
|
||||
}
|
||||
}
|
||||
}
|
||||
if (detectionName != string.Empty)
|
||||
{
|
||||
return detectionName.Substring(0, detectionName.Length - 1);
|
||||
}
|
||||
else
|
||||
{
|
||||
return "";
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user