提交代码
This commit is contained in:
parent
661499d5a4
commit
2c639499f3
|
@ -45,7 +45,8 @@
|
||||||
</f:Label>
|
</f:Label>
|
||||||
<f:ToolbarFill ID="ToolbarFill1" runat="server">
|
<f:ToolbarFill ID="ToolbarFill1" runat="server">
|
||||||
</f:ToolbarFill>
|
</f:ToolbarFill>
|
||||||
<f:Button ID="BtnAnalyse3" Text="按部门统计" Icon="ChartPie" runat="server" OnClick="BtnAnalyse3_Click"></f:Button>
|
<f:HiddenField runat="server" ID="hdType"></f:HiddenField>
|
||||||
|
<f:Button ID="BtnAnalyse3" Text="按部门统计" Icon="ChartPie" Hidden="true" runat="server" OnClick="BtnAnalyse3_Click"></f:Button>
|
||||||
<f:Button ID="BtnAnalyse2" Text="按焊工统计" Icon="ChartPie" runat="server" OnClick="BtnAnalyse2_Click"></f:Button>
|
<f:Button ID="BtnAnalyse2" Text="按焊工统计" Icon="ChartPie" runat="server" OnClick="BtnAnalyse2_Click"></f:Button>
|
||||||
<f:Button ID="BtnAnalyse" Text="按项目统计" Icon="ChartPie" runat="server" OnClick="BtnAnalyse_Click"></f:Button>
|
<f:Button ID="BtnAnalyse" Text="按项目统计" Icon="ChartPie" runat="server" OnClick="BtnAnalyse_Click"></f:Button>
|
||||||
<f:Button ID="btnOut" OnClick="btnOut_Click" runat="server" Text="导出" Icon="TableGo"
|
<f:Button ID="btnOut" OnClick="btnOut_Click" runat="server" Text="导出" Icon="TableGo"
|
||||||
|
|
|
@ -444,7 +444,18 @@
|
||||||
/// <param name="e"></param>
|
/// <param name="e"></param>
|
||||||
protected void Grid1_PageIndexChange(object sender, GridPageEventArgs e)
|
protected void Grid1_PageIndexChange(object sender, GridPageEventArgs e)
|
||||||
{
|
{
|
||||||
this.BindGrid();
|
if (this.hdType.Text == "1")
|
||||||
|
{
|
||||||
|
this.BindGrid();
|
||||||
|
}
|
||||||
|
else if (this.hdType.Text == "2")
|
||||||
|
{
|
||||||
|
this.BindGrid2();
|
||||||
|
}
|
||||||
|
else if (this.hdType.Text == "3")
|
||||||
|
{
|
||||||
|
this.BindGrid3();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
@ -455,7 +466,18 @@
|
||||||
protected void ddlPageSize_SelectedIndexChanged(object sender, EventArgs e)
|
protected void ddlPageSize_SelectedIndexChanged(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
this.Grid1.PageSize = Convert.ToInt32(this.ddlPageSize.SelectedValue);
|
this.Grid1.PageSize = Convert.ToInt32(this.ddlPageSize.SelectedValue);
|
||||||
this.BindGrid();
|
if (this.hdType.Text == "1")
|
||||||
|
{
|
||||||
|
this.BindGrid();
|
||||||
|
}
|
||||||
|
else if (this.hdType.Text == "2")
|
||||||
|
{
|
||||||
|
this.BindGrid2();
|
||||||
|
}
|
||||||
|
else if (this.hdType.Text == "3")
|
||||||
|
{
|
||||||
|
this.BindGrid3();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
@ -477,6 +499,7 @@
|
||||||
/// <param name="e"></param>
|
/// <param name="e"></param>
|
||||||
protected void BtnAnalyse_Click(object sender, EventArgs e)
|
protected void BtnAnalyse_Click(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
|
this.hdType.Text = "1";
|
||||||
this.Grid1.Columns[1].Hidden = false;
|
this.Grid1.Columns[1].Hidden = false;
|
||||||
BindGrid();
|
BindGrid();
|
||||||
OutputSummaryData();
|
OutputSummaryData();
|
||||||
|
@ -489,6 +512,7 @@
|
||||||
/// <param name="e"></param>
|
/// <param name="e"></param>
|
||||||
protected void BtnAnalyse2_Click(object sender, EventArgs e)
|
protected void BtnAnalyse2_Click(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
|
this.hdType.Text = "2";
|
||||||
this.Grid1.Columns[1].Hidden = true;
|
this.Grid1.Columns[1].Hidden = true;
|
||||||
BindGrid2();
|
BindGrid2();
|
||||||
this.Grid1.SummaryData = null;
|
this.Grid1.SummaryData = null;
|
||||||
|
@ -502,6 +526,7 @@
|
||||||
/// <param name="e"></param>
|
/// <param name="e"></param>
|
||||||
protected void BtnAnalyse3_Click(object sender, EventArgs e)
|
protected void BtnAnalyse3_Click(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
|
this.hdType.Text = "3";
|
||||||
this.Grid1.Columns[1].Hidden = true;
|
this.Grid1.Columns[1].Hidden = true;
|
||||||
BindGrid3();
|
BindGrid3();
|
||||||
this.Grid1.SummaryData = null;
|
this.Grid1.SummaryData = null;
|
||||||
|
|
|
@ -147,6 +147,15 @@ namespace FineUIPro.Web.HJGL.WeldingReport {
|
||||||
/// </remarks>
|
/// </remarks>
|
||||||
protected global::FineUIPro.ToolbarFill ToolbarFill1;
|
protected global::FineUIPro.ToolbarFill ToolbarFill1;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// hdType 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::FineUIPro.HiddenField hdType;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// BtnAnalyse3 控件。
|
/// BtnAnalyse3 控件。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|
Loading…
Reference in New Issue