提交代码
This commit is contained in:
@@ -106,6 +106,35 @@
|
||||
</f:Panel>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:Panel runat="server" ID="panel2" RegionPosition="Center" RegionSplit="true" EnableCollapse="true" ShowBorder="true"
|
||||
Layout="Fit" ShowHeader="true" RegionSplitWidth="20px" BodyPadding="1px" Height="215px" Title="施工单位进度统计"
|
||||
TitleToolTip="施工单位进度统计" AutoScroll="true">
|
||||
<Items>
|
||||
<f:Grid ID="Grid3" ShowBorder="true" ShowHeader="false" Title="施工单位进度统计"
|
||||
EnableCollapse="true" runat="server" BoxFlex="1" DataKeyNames="UnitName"
|
||||
EnableColumnLines="true" DataIDField="UnitName"
|
||||
PageSize="15">
|
||||
<Columns>
|
||||
<f:RenderField HeaderText="施工单位" ColumnID="UnitName" ExpandUnusedSpace="true"
|
||||
DataField="UnitName" SortField="UnitName" FieldType="String" HeaderTextAlign="Center"
|
||||
TextAlign="Center" Width="300px">
|
||||
</f:RenderField>
|
||||
<f:RenderField HeaderText="当日完成达因数" ColumnID="TodayFinishSize"
|
||||
DataField="TodayFinishSize" SortField="TodayFinishSize" FieldType="Double" HeaderTextAlign="Center"
|
||||
TextAlign="Center" Width="250px">
|
||||
</f:RenderField>
|
||||
<f:RenderField HeaderText="累计已完成达因数" ColumnID="FinishSize"
|
||||
DataField="FinishSize" SortField="FinishSize" FieldType="Double" HeaderTextAlign="Center"
|
||||
TextAlign="Center" Width="250px">
|
||||
</f:RenderField>
|
||||
</Columns>
|
||||
</f:Grid>
|
||||
</Items>
|
||||
</f:Panel>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:Panel runat="server" ID="panelCenterRegion" RegionPosition="Center" RegionSplit="true" EnableCollapse="true" ShowBorder="true"
|
||||
@@ -186,6 +215,7 @@
|
||||
</f:Panel>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
|
||||
</Rows>
|
||||
</f:Form>
|
||||
</Items>
|
||||
|
||||
@@ -19,6 +19,7 @@ namespace FineUIPro.Web.common
|
||||
this.InitTreeMenu();//加载树
|
||||
this.txtWeldingDate.Text = string.Format("{0:yyyy-MM-dd}", DateTime.Now);
|
||||
BindGrid1();
|
||||
BindGrid3();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -26,6 +27,7 @@ namespace FineUIPro.Web.common
|
||||
{
|
||||
BindGrid1();
|
||||
BindGrid2(this.tvControlItem.SelectedNodeID);
|
||||
BindGrid3();
|
||||
}
|
||||
|
||||
#region 加载树装置-单位-工作区
|
||||
@@ -197,6 +199,30 @@ select '现场施工' as PipeArea,UnitWorkId,TotalDin,TodayFinishSize,FinishSize
|
||||
this.lbNotCompleteDin2.Text = notCompleteDin2.ToString();
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 数据绑定
|
||||
/// </summary>
|
||||
private void BindGrid3()
|
||||
{
|
||||
string strSql = @"select distinct UnitName,
|
||||
CAST((SELECT ISNULL(SUM(ISNULL(jot.Size,0)),0) FROM dbo.HJGL_WeldJoint jot left join dbo.HJGL_WeldingDaily d on d.WeldingDailyId=jot.WeldingDailyId WHERE d.ProjectId=@ProjectId and d.UnitId=b.UnitId and jot.WeldingDailyId IS NOT NULL and d.WeldingDate=@WeldingDate) AS DECIMAL(12,3)) AS TodayFinishSize,
|
||||
CAST((SELECT ISNULL(SUM(ISNULL(jot.Size,0)),0) FROM dbo.HJGL_WeldJoint jot left join dbo.HJGL_WeldingDaily d on d.WeldingDailyId=jot.WeldingDailyId WHERE d.ProjectId=@ProjectId and d.UnitId=b.UnitId and jot.WeldingDailyId IS NOT NULL and d.WeldingDate<=@WeldingDate) AS DECIMAL(12,3)) AS FinishSize
|
||||
from HJGL_WeldingDaily b
|
||||
left join Base_Unit u on b.UnitId=u.UnitId
|
||||
where b.ProjectId=@ProjectId";
|
||||
|
||||
List<SqlParameter> listStr = new List<SqlParameter>();
|
||||
listStr.Add(new SqlParameter("@ProjectId", (CurrUser != null) ? CurrUser.LoginProjectId : ""));
|
||||
listStr.Add(new SqlParameter("@WeldingDate", this.txtWeldingDate.Text.Trim()));
|
||||
SqlParameter[] parameter = listStr.ToArray();
|
||||
DataTable tb = SQLHelper.GetDataTableRunText(strSql, parameter);
|
||||
Grid3.RecordCount = tb.Rows.Count;
|
||||
tb = GetFilteredTable(Grid3.FilteredData, tb);
|
||||
var table = GetPagedDataTable(Grid3, tb);
|
||||
Grid3.DataSource = table;
|
||||
Grid3.DataBind();
|
||||
}
|
||||
#endregion
|
||||
|
||||
/// <summary>
|
||||
|
||||
@@ -192,6 +192,24 @@ namespace FineUIPro.Web.common {
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Button btnQueryTotal;
|
||||
|
||||
/// <summary>
|
||||
/// panel2 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Panel panel2;
|
||||
|
||||
/// <summary>
|
||||
/// Grid3 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Grid Grid3;
|
||||
|
||||
/// <summary>
|
||||
/// panelCenterRegion 控件。
|
||||
/// </summary>
|
||||
|
||||
Reference in New Issue
Block a user