提交代码
This commit is contained in:
parent
3aeb7e47de
commit
3798809740
|
|
@ -307,6 +307,7 @@
|
||||||
<Content Include="common\mainMenu_DigitalSite.aspx" />
|
<Content Include="common\mainMenu_DigitalSite.aspx" />
|
||||||
<Content Include="common\mainMenu_HJGL.aspx" />
|
<Content Include="common\mainMenu_HJGL.aspx" />
|
||||||
<Content Include="common\mainMenu_HJGL2.aspx" />
|
<Content Include="common\mainMenu_HJGL2.aspx" />
|
||||||
|
<Content Include="common\mainMenu_HJGL3.aspx" />
|
||||||
<Content Include="common\mainMenu_HJGL_AVEVA.aspx" />
|
<Content Include="common\mainMenu_HJGL_AVEVA.aspx" />
|
||||||
<Content Include="common\mainMenu_HSSE2.aspx" />
|
<Content Include="common\mainMenu_HSSE2.aspx" />
|
||||||
<Content Include="common\mainMenu_PDigData.aspx" />
|
<Content Include="common\mainMenu_PDigData.aspx" />
|
||||||
|
|
@ -6281,6 +6282,13 @@
|
||||||
<Compile Include="common\mainMenu_HJGL2.aspx.designer.cs">
|
<Compile Include="common\mainMenu_HJGL2.aspx.designer.cs">
|
||||||
<DependentUpon>mainMenu_HJGL2.aspx</DependentUpon>
|
<DependentUpon>mainMenu_HJGL2.aspx</DependentUpon>
|
||||||
</Compile>
|
</Compile>
|
||||||
|
<Compile Include="common\mainMenu_HJGL3.aspx.cs">
|
||||||
|
<DependentUpon>mainMenu_HJGL3.aspx</DependentUpon>
|
||||||
|
<SubType>ASPXCodeBehind</SubType>
|
||||||
|
</Compile>
|
||||||
|
<Compile Include="common\mainMenu_HJGL3.aspx.designer.cs">
|
||||||
|
<DependentUpon>mainMenu_HJGL3.aspx</DependentUpon>
|
||||||
|
</Compile>
|
||||||
<Compile Include="common\mainMenu_HJGL_AVEVA.aspx.cs">
|
<Compile Include="common\mainMenu_HJGL_AVEVA.aspx.cs">
|
||||||
<DependentUpon>mainMenu_HJGL_AVEVA.aspx</DependentUpon>
|
<DependentUpon>mainMenu_HJGL_AVEVA.aspx</DependentUpon>
|
||||||
<SubType>ASPXCodeBehind</SubType>
|
<SubType>ASPXCodeBehind</SubType>
|
||||||
|
|
|
||||||
|
|
@ -1055,6 +1055,8 @@ namespace FineUIPro.Web.HJGL.WeldingManage
|
||||||
temp.IsHotProess
|
temp.IsHotProess
|
||||||
}).ToList();
|
}).ToList();
|
||||||
|
|
||||||
|
var weldJointCodes =weldJoints.Select(x=>x.WeldJointCode).Distinct().ToList();
|
||||||
|
var pipelineCodes = weldJoints.Select(x => x.PipelineCode).Distinct().ToList();
|
||||||
for (int i = 0; i < weldJoints.Count(); i++)
|
for (int i = 0; i < weldJoints.Count(); i++)
|
||||||
{
|
{
|
||||||
Model.HJGL_WeldJoint weldJoint = new Model.HJGL_WeldJoint();
|
Model.HJGL_WeldJoint weldJoint = new Model.HJGL_WeldJoint();
|
||||||
|
|
@ -1093,6 +1095,16 @@ namespace FineUIPro.Web.HJGL.WeldingManage
|
||||||
BLL.WeldJointService.AddBulkWeldJoint(weldJoints_add);
|
BLL.WeldJointService.AddBulkWeldJoint(weldJoints_add);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Model.SGGLDB db = Funs.DB;
|
||||||
|
var q = from x in db.HJGL_WeldJoint
|
||||||
|
join y in db.HJGL_Pipeline on x.PipelineId equals y.PipelineId
|
||||||
|
where y.UnitWorkId == Request.Params["UnitWorkId"] && pipelineCodes.Contains(x.PipelineCode) && !weldJointCodes.Contains(x.WeldJointCode)
|
||||||
|
select x;
|
||||||
|
if (q.Count() > 0)
|
||||||
|
{
|
||||||
|
db.HJGL_WeldJoint.DeleteAllOnSubmit(q);
|
||||||
|
db.SubmitChanges();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
//public void AddView_HJGL_WeldJoint(List<Model.View_HJGL_WeldJoint> PipelineList)
|
//public void AddView_HJGL_WeldJoint(List<Model.View_HJGL_WeldJoint> PipelineList)
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,117 @@
|
||||||
|
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="mainMenu_HJGL3.aspx.cs" Inherits="FineUIPro.Web.common.mainMenu_HJGL3" %>
|
||||||
|
|
||||||
|
<!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" />
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<form id="form1" runat="server">
|
||||||
|
<f:PageManager ID="PageManager1" AutoSizePanelID="Panel1" runat="server" />
|
||||||
|
<f:Panel ID="Panel1" runat="server" ShowBorder="false" ShowHeader="false" Layout="Region">
|
||||||
|
<Items>
|
||||||
|
<f:Panel runat="server" ID="panelLeftRegion" RegionPosition="Left" RegionSplit="true"
|
||||||
|
EnableCollapse="true" Width="300px" Title="WBS目录"
|
||||||
|
ShowBorder="true" Layout="VBox" ShowHeader="true" AutoScroll="true" BodyPadding="5px"
|
||||||
|
IconFont="ArrowCircleLeft">
|
||||||
|
<Items>
|
||||||
|
<f:Tree ID="tvControlItem" ShowHeader="false" Height="560px" Title="装置区域"
|
||||||
|
OnNodeCommand="tvControlItem_NodeCommand" runat="server" ShowBorder="false" EnableCollapse="true"
|
||||||
|
EnableSingleClickExpand="true" AutoLeafIdentification="true" EnableSingleExpand="true"
|
||||||
|
EnableTextSelection="true">
|
||||||
|
</f:Tree>
|
||||||
|
</Items>
|
||||||
|
</f:Panel>
|
||||||
|
|
||||||
|
<f:Panel ID="Panel2" runat="server" Margin="5px" BodyPadding="5px" ShowBorder="false"
|
||||||
|
ShowHeader="false" Layout="Region" BoxConfigAlign="Stretch">
|
||||||
|
<Items>
|
||||||
|
<f:Panel runat="server" ID="panel3" RegionPosition="Top" RegionSplit="true" EnableCollapse="true" ShowBorder="true"
|
||||||
|
Layout="Fit" ShowHeader="true" RegionSplitWidth="20px" BodyPadding="1px" Height="300px" Title="项目进度统计"
|
||||||
|
TitleToolTip="项目进度统计" AutoScroll="true" RegionPercent="30%">
|
||||||
|
<Items>
|
||||||
|
<f:Grid ID="Grid1" ShowBorder="true" ShowHeader="false" Title="项目进度统计"
|
||||||
|
EnableCollapse="true" runat="server" BoxFlex="1" DataKeyNames="ProjectId"
|
||||||
|
EnableColumnLines="true" DataIDField="ProjectId"
|
||||||
|
AllowSorting="true" SortField="ProjectId" SortDirection="ASC"
|
||||||
|
PageSize="15">
|
||||||
|
<Columns>
|
||||||
|
<f:RenderField HeaderText="总达因数" ColumnID="TotalDin"
|
||||||
|
DataField="TotalDin" SortField="TotalDin" FieldType="Double" HeaderTextAlign="Center"
|
||||||
|
TextAlign="Center" Width="300px">
|
||||||
|
</f:RenderField>
|
||||||
|
<f:RenderField HeaderText="已完成达因数" ColumnID="FinishSize"
|
||||||
|
DataField="FinishSize" SortField="FinishSize" FieldType="Double" HeaderTextAlign="Center"
|
||||||
|
TextAlign="Center" Width="300px">
|
||||||
|
</f:RenderField>
|
||||||
|
<f:RenderField HeaderText="完成进度" ColumnID="Rate"
|
||||||
|
DataField="Rate" SortField="Rate" FieldType="String" HeaderTextAlign="Center"
|
||||||
|
TextAlign="Center" Width="300px">
|
||||||
|
</f:RenderField>
|
||||||
|
</Columns>
|
||||||
|
</f:Grid>
|
||||||
|
</Items>
|
||||||
|
</f:Panel>
|
||||||
|
<f:Panel runat="server" ID="panelCenterRegion" RegionPosition="Center" RegionSplit="true" EnableCollapse="true" ShowBorder="true"
|
||||||
|
Layout="Fit" ShowHeader="true" RegionSplitWidth="20px" BodyPadding="1px" Height="300px" Title="单位工程进度统计"
|
||||||
|
TitleToolTip="单位工程进度统计" AutoScroll="true" RegionPercent="30%">
|
||||||
|
<Items>
|
||||||
|
<f:Grid ID="Grid2" ShowBorder="true" ShowHeader="false" Title="单位工程进度统计"
|
||||||
|
EnableCollapse="true" runat="server" BoxFlex="1" DataKeyNames="UnitWorkId"
|
||||||
|
EnableColumnLines="true" DataIDField="UnitWorkId"
|
||||||
|
AllowSorting="true" SortField="UnitWorkId" SortDirection="ASC"
|
||||||
|
PageSize="15">
|
||||||
|
<Columns>
|
||||||
|
<f:RenderField HeaderText="总达因数" ColumnID="TotalDin"
|
||||||
|
DataField="TotalDin" SortField="TotalDin" FieldType="Double" HeaderTextAlign="Center"
|
||||||
|
TextAlign="Center" Width="300px">
|
||||||
|
</f:RenderField>
|
||||||
|
<f:RenderField HeaderText="已完成达因数" ColumnID="FinishSize"
|
||||||
|
DataField="FinishSize" SortField="FinishSize" FieldType="Double" HeaderTextAlign="Center"
|
||||||
|
TextAlign="Center" Width="300px">
|
||||||
|
</f:RenderField>
|
||||||
|
<f:RenderField HeaderText="完成进度" ColumnID="Rate"
|
||||||
|
DataField="Rate" SortField="Rate" FieldType="String" HeaderTextAlign="Center"
|
||||||
|
TextAlign="Center" Width="300px">
|
||||||
|
</f:RenderField>
|
||||||
|
</Columns>
|
||||||
|
</f:Grid>
|
||||||
|
</Items>
|
||||||
|
</f:Panel>
|
||||||
|
<f:Panel runat="server" ID="panel4" RegionPosition="Bottom" RegionSplit="true" EnableCollapse="true" ShowBorder="true"
|
||||||
|
Layout="Fit" ShowHeader="true" RegionSplitWidth="20px" BodyPadding="1px" Height="200px" Title="单位工程进度预测"
|
||||||
|
TitleToolTip="单位工程进度预测" AutoScroll="true" RegionPercent="30%">
|
||||||
|
<Items>
|
||||||
|
<f:Form ID="Form2" ShowBorder="false" ShowHeader="false" AutoScroll="true"
|
||||||
|
BodyPadding="10px" runat="server" RedStarPosition="BeforeText" LabelAlign="Right" LabelWidth="110px">
|
||||||
|
<Rows>
|
||||||
|
<f:FormRow ColumnWidths="23% 23% 23% 23% 8%">
|
||||||
|
<Items>
|
||||||
|
<f:Label runat="server" ID="lbNotCompleteDin" Label="未完成达因"></f:Label>
|
||||||
|
<f:NumberBox runat="server" ID="txtLeaveDay" Label="剩余工期(天)" LabelWidth="120px" NoNegative="true" NoDecimal="true"></f:NumberBox>
|
||||||
|
<f:NumberBox runat="server" ID="txtWorkEfficiency" Label="日工效" NoNegative="true" NoDecimal="false" ></f:NumberBox>
|
||||||
|
<f:Label runat="server" ID="lbNeedWelderNum" Label="每日所需焊工数" LabelWidth="120px" LabelAlign="Right"></f:Label>
|
||||||
|
<f:Button ID="btnQuery" ToolTip="查询" Icon="SystemSearch" Text="查询"
|
||||||
|
EnablePostBack="true" OnClick="btnQuery_Click" runat="server">
|
||||||
|
</f:Button>
|
||||||
|
</Items>
|
||||||
|
</f:FormRow>
|
||||||
|
</Rows>
|
||||||
|
</f:Form>
|
||||||
|
</Items>
|
||||||
|
</f:Panel>
|
||||||
|
</Items>
|
||||||
|
</f:Panel>
|
||||||
|
</Items>
|
||||||
|
</f:Panel>
|
||||||
|
</form>
|
||||||
|
<script type="text/javascript">
|
||||||
|
|
||||||
|
function reloadGrid() {
|
||||||
|
__doPostBack(null, 'reloadGrid');
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
|
|
@ -0,0 +1,224 @@
|
||||||
|
using BLL;
|
||||||
|
using MiniExcelLibs;
|
||||||
|
using Model;
|
||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Data;
|
||||||
|
using System.Data.SqlClient;
|
||||||
|
using System.IO;
|
||||||
|
using System.Linq;
|
||||||
|
|
||||||
|
namespace FineUIPro.Web.common
|
||||||
|
{
|
||||||
|
public partial class mainMenu_HJGL3 : PageBase
|
||||||
|
{
|
||||||
|
protected void Page_Load(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
if (!IsPostBack)
|
||||||
|
{
|
||||||
|
this.InitTreeMenu();//加载树
|
||||||
|
BindGrid1();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
#region 加载树装置-单位-工作区
|
||||||
|
/// <summary>
|
||||||
|
/// 加载树
|
||||||
|
/// </summary>
|
||||||
|
private void InitTreeMenu()
|
||||||
|
{
|
||||||
|
this.tvControlItem.Nodes.Clear();
|
||||||
|
|
||||||
|
TreeNode rootNode1 = new TreeNode();
|
||||||
|
rootNode1.NodeID = "1";
|
||||||
|
rootNode1.Text = "建筑工程";
|
||||||
|
rootNode1.CommandName = "建筑工程";
|
||||||
|
rootNode1.Selectable = false;
|
||||||
|
this.tvControlItem.Nodes.Add(rootNode1);
|
||||||
|
|
||||||
|
TreeNode rootNode2 = new TreeNode();
|
||||||
|
rootNode2.NodeID = "2";
|
||||||
|
rootNode2.Text = "安装工程";
|
||||||
|
rootNode2.CommandName = "安装工程";
|
||||||
|
rootNode2.Expanded = true;
|
||||||
|
this.tvControlItem.Nodes.Add(rootNode2);
|
||||||
|
|
||||||
|
var pUnits = (from x in Funs.DB.Project_ProjectUnit where x.ProjectId == this.CurrUser.LoginProjectId select x).ToList();
|
||||||
|
// 获取当前用户所在单位
|
||||||
|
var currUnit = pUnits.FirstOrDefault(x => x.UnitId == this.CurrUser.UnitId);
|
||||||
|
|
||||||
|
var unitWorkList = (from x in Funs.DB.WBS_UnitWork
|
||||||
|
where x.ProjectId == this.CurrUser.LoginProjectId
|
||||||
|
&& x.SuperUnitWork == null && x.UnitId != null && x.ProjectType != null
|
||||||
|
select x).ToList();
|
||||||
|
|
||||||
|
List<Model.WBS_UnitWork> unitWork1 = null;
|
||||||
|
List<Model.WBS_UnitWork> unitWork2 = null;
|
||||||
|
|
||||||
|
//// 当前为施工单位,只能操作本单位的数据
|
||||||
|
//if (currUnit != null && currUnit.UnitType == Const.ProjectUnitType_2)
|
||||||
|
//{
|
||||||
|
// unitWork1 = (from x in unitWorkList
|
||||||
|
// where x.UnitId == this.CurrUser.UnitId && x.ProjectType == "1"
|
||||||
|
// select x).ToList();
|
||||||
|
// unitWork2 = (from x in unitWorkList
|
||||||
|
// where x.UnitId == this.CurrUser.UnitId && x.ProjectType == "2"
|
||||||
|
// select x).ToList();
|
||||||
|
//}
|
||||||
|
//else
|
||||||
|
//{
|
||||||
|
unitWork1 = (from x in unitWorkList where x.ProjectType == "1" select x).ToList();
|
||||||
|
unitWork2 = (from x in unitWorkList where x.ProjectType == "2" select x).ToList();
|
||||||
|
//}
|
||||||
|
|
||||||
|
if (unitWork1.Count() > 0)
|
||||||
|
{
|
||||||
|
foreach (var q in unitWork1)
|
||||||
|
{
|
||||||
|
int a = (from x in Funs.DB.HJGL_Pipeline where x.ProjectId == this.CurrUser.LoginProjectId && x.UnitWorkId == q.UnitWorkId select x).Count();
|
||||||
|
var unitNamesUnitIds = BLL.UnitService.getUnitNamesUnitIds(q.UnitId);
|
||||||
|
TreeNode tn1 = new TreeNode();
|
||||||
|
tn1.NodeID = q.UnitWorkId;
|
||||||
|
tn1.Text = q.UnitWorkName + "【" + a.ToString() + "】" + "管线";
|
||||||
|
tn1.ToolTip = "施工单位:" + unitNamesUnitIds;
|
||||||
|
tn1.EnableClickEvent = true;
|
||||||
|
rootNode1.Nodes.Add(tn1);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (unitWork2.Count() > 0)
|
||||||
|
{
|
||||||
|
foreach (var q in unitWork2)
|
||||||
|
{
|
||||||
|
int a = (from x in Funs.DB.HJGL_Pipeline where x.ProjectId == this.CurrUser.LoginProjectId && x.UnitWorkId == q.UnitWorkId select x).Count();
|
||||||
|
var unitNamesUnitIds = BLL.UnitService.getUnitNamesUnitIds(q.UnitId);
|
||||||
|
TreeNode tn2 = new TreeNode();
|
||||||
|
tn2.NodeID = q.UnitWorkId;
|
||||||
|
tn2.Text = q.UnitWorkName + "【" + a.ToString() + "】" + "管线";
|
||||||
|
tn2.ToolTip = "施工单位:" + unitNamesUnitIds;
|
||||||
|
tn2.EnableClickEvent = true;
|
||||||
|
rootNode2.Nodes.Add(tn2);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#endregion
|
||||||
|
|
||||||
|
#region 点击TreeView
|
||||||
|
/// <summary>
|
||||||
|
/// 点击TreeView
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="sender"></param>
|
||||||
|
/// <param name="e"></param>
|
||||||
|
protected void tvControlItem_NodeCommand(object sender, TreeCommandEventArgs e)
|
||||||
|
{
|
||||||
|
if (this.tvControlItem.SelectedNodeID.Length > 1)
|
||||||
|
{
|
||||||
|
this.BindGrid2(this.tvControlItem.SelectedNodeID);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#endregion
|
||||||
|
|
||||||
|
#region 数据绑定
|
||||||
|
/// <summary>
|
||||||
|
/// 数据绑定
|
||||||
|
/// </summary>
|
||||||
|
private void BindGrid1()
|
||||||
|
{
|
||||||
|
string strSql = @"select ProjectId,TotalDin,FinishSize,CONVERT(NVARCHAR(10),(CAST((CASE ISNULL(TotalDin,0) WHEN 0 THEN 0
|
||||||
|
ELSE 100.0 * ISNULL(FinishSize,0)/(1.0 * TotalDin) END) AS DECIMAL(8,2))))+'%'
|
||||||
|
AS Rate from
|
||||||
|
(select ProjectId,CAST((SELECT SUM(ISNULL(Size,0)) FROM dbo.HJGL_WeldJoint WHERE ProjectId=b.ProjectId) AS DECIMAL(12,3)) AS TotalDin,
|
||||||
|
CAST((SELECT ISNULL(SUM(ISNULL(jot.Size,0)),0) FROM dbo.HJGL_WeldJoint jot WHERE ProjectId=b.ProjectId AND jot.WeldingDailyId IS NOT NULL) AS DECIMAL(12,3)) AS FinishSize
|
||||||
|
from Base_Project b) v where ProjectId=@ProjectId ";
|
||||||
|
|
||||||
|
List<SqlParameter> listStr = new List<SqlParameter>();
|
||||||
|
listStr.Add(new SqlParameter("@ProjectId", (CurrUser != null) ? CurrUser.LoginProjectId : ""));
|
||||||
|
SqlParameter[] parameter = listStr.ToArray();
|
||||||
|
DataTable tb = SQLHelper.GetDataTableRunText(strSql, parameter);
|
||||||
|
Grid1.RecordCount = tb.Rows.Count;
|
||||||
|
tb = GetFilteredTable(Grid1.FilteredData, tb);
|
||||||
|
var table = GetPagedDataTable(Grid1, tb);
|
||||||
|
Grid1.DataSource = table;
|
||||||
|
Grid1.DataBind();
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 数据绑定
|
||||||
|
/// </summary>
|
||||||
|
private void BindGrid2(string unitWorkId)
|
||||||
|
{
|
||||||
|
string strSql = @"select UnitWorkId,TotalDin,FinishSize,CONVERT(NVARCHAR(10),(CAST((CASE ISNULL(TotalDin,0) WHEN 0 THEN 0
|
||||||
|
ELSE 100.0 * ISNULL(FinishSize,0)/(1.0 * TotalDin) END) AS DECIMAL(8,2))))+'%'
|
||||||
|
AS Rate from
|
||||||
|
(select UnitWorkId,CAST((SELECT SUM(ISNULL(Size,0)) FROM dbo.HJGL_WeldJoint jot left join dbo.HJGL_Pipeline pipeline on jot.PipelineId=pipeline.PipelineId WHERE pipeline.UnitWorkId=b.UnitWorkId) AS DECIMAL(12,3)) AS TotalDin,
|
||||||
|
CAST((SELECT ISNULL(SUM(ISNULL(jot.Size,0)),0) FROM dbo.HJGL_WeldJoint jot left join dbo.HJGL_Pipeline pipeline on jot.PipelineId=pipeline.PipelineId WHERE pipeline.UnitWorkId=b.UnitWorkId AND jot.WeldingDailyId IS NOT NULL) AS DECIMAL(12,3)) AS FinishSize
|
||||||
|
from WBS_UnitWork b) v where UnitWorkId=@UnitWorkId ";
|
||||||
|
|
||||||
|
List<SqlParameter> listStr = new List<SqlParameter>();
|
||||||
|
listStr.Add(new SqlParameter("@UnitWorkId", unitWorkId));
|
||||||
|
SqlParameter[] parameter = listStr.ToArray();
|
||||||
|
DataTable tb = SQLHelper.GetDataTableRunText(strSql, parameter);
|
||||||
|
Grid2.RecordCount = tb.Rows.Count;
|
||||||
|
tb = GetFilteredTable(Grid2.FilteredData, tb);
|
||||||
|
var table = GetPagedDataTable(Grid2, tb);
|
||||||
|
Grid2.DataSource = table;
|
||||||
|
Grid2.DataBind();
|
||||||
|
decimal totalDin = Funs.GetNewDecimalOrZero(this.Grid2.Rows[0].Values[0].ToString());
|
||||||
|
decimal finishSize = Funs.GetNewDecimalOrZero(this.Grid2.Rows[0].Values[1].ToString());
|
||||||
|
decimal notCompleteDin = totalDin - finishSize;
|
||||||
|
this.lbNotCompleteDin.Text = notCompleteDin.ToString();
|
||||||
|
}
|
||||||
|
#endregion
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 查询
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="sender"></param>
|
||||||
|
/// <param name="e"></param>
|
||||||
|
protected void btnQuery_Click(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
if (this.tvControlItem.SelectedNodeID.Length > 1)
|
||||||
|
{
|
||||||
|
if (string.IsNullOrEmpty(this.txtLeaveDay.Text.Trim()))
|
||||||
|
{
|
||||||
|
ShowNotify("请输入剩余工期(天)!", MessageBoxIcon.Warning);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
if (string.IsNullOrEmpty(this.txtWorkEfficiency.Text.Trim()))
|
||||||
|
{
|
||||||
|
ShowNotify("请输入日工效!", MessageBoxIcon.Warning);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
decimal totalDin = Funs.GetNewDecimalOrZero(this.Grid2.Rows[0].Values[0].ToString());
|
||||||
|
decimal finishSize = Funs.GetNewDecimalOrZero(this.Grid2.Rows[0].Values[1].ToString());
|
||||||
|
decimal notCompleteDin = totalDin - finishSize;
|
||||||
|
this.lbNotCompleteDin.Text = notCompleteDin.ToString();
|
||||||
|
decimal leaveDay = Funs.GetNewDecimalOrZero(this.txtLeaveDay.Text.Trim());
|
||||||
|
decimal workEfficiency = Funs.GetNewDecimalOrZero(this.txtWorkEfficiency.Text.Trim());
|
||||||
|
if (notCompleteDin > 0)
|
||||||
|
{
|
||||||
|
if (leaveDay == 0)
|
||||||
|
{
|
||||||
|
ShowNotify("剩余工期(天)为0!", MessageBoxIcon.Warning);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
if (workEfficiency == 0)
|
||||||
|
{
|
||||||
|
ShowNotify("日工效为0!", MessageBoxIcon.Warning);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
this.lbNeedWelderNum.Text = Convert.ToInt32(Math.Ceiling(notCompleteDin / leaveDay / workEfficiency)).ToString();
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
ShowNotify("未完成达因为0!", MessageBoxIcon.Warning);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
ShowNotify("请选择单位工程", MessageBoxIcon.Warning);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,168 @@
|
||||||
|
//------------------------------------------------------------------------------
|
||||||
|
// <自动生成>
|
||||||
|
// 此代码由工具生成。
|
||||||
|
//
|
||||||
|
// 对此文件的更改可能导致不正确的行为,如果
|
||||||
|
// 重新生成代码,则所做更改将丢失。
|
||||||
|
// </自动生成>
|
||||||
|
//------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
namespace FineUIPro.Web.common {
|
||||||
|
|
||||||
|
|
||||||
|
public partial class mainMenu_HJGL3 {
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// form1 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::System.Web.UI.HtmlControls.HtmlForm form1;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// PageManager1 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::FineUIPro.PageManager PageManager1;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Panel1 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::FineUIPro.Panel Panel1;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// panelLeftRegion 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::FineUIPro.Panel panelLeftRegion;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// tvControlItem 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::FineUIPro.Tree tvControlItem;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Panel2 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::FineUIPro.Panel Panel2;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// panel3 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::FineUIPro.Panel panel3;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Grid1 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::FineUIPro.Grid Grid1;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// panelCenterRegion 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::FineUIPro.Panel panelCenterRegion;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Grid2 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::FineUIPro.Grid Grid2;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// panel4 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::FineUIPro.Panel panel4;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Form2 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::FineUIPro.Form Form2;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// lbNotCompleteDin 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::FineUIPro.Label lbNotCompleteDin;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// txtLeaveDay 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::FineUIPro.NumberBox txtLeaveDay;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// txtWorkEfficiency 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::FineUIPro.NumberBox txtWorkEfficiency;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// lbNeedWelderNum 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::FineUIPro.Label lbNeedWelderNum;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// btnQuery 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::FineUIPro.Button btnQuery;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -618,7 +618,7 @@ namespace FineUIPro.Web
|
||||||
}
|
}
|
||||||
else if (type == Const.Menu_HJGL)
|
else if (type == Const.Menu_HJGL)
|
||||||
{
|
{
|
||||||
this.Tab1.IFrameUrl = "~/common/mainMenu_HJGL_AVEVA.aspx";
|
this.Tab1.IFrameUrl = "~/common/mainMenu_HJGL3.aspx";
|
||||||
}
|
}
|
||||||
else if (type == Const.Menu_PZHGL)
|
else if (type == Const.Menu_PZHGL)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue