提交代码
This commit is contained in:
@@ -14379,7 +14379,7 @@
|
|||||||
<AutoAssignPort>True</AutoAssignPort>
|
<AutoAssignPort>True</AutoAssignPort>
|
||||||
<DevelopmentServerPort>0</DevelopmentServerPort>
|
<DevelopmentServerPort>0</DevelopmentServerPort>
|
||||||
<DevelopmentServerVPath>/</DevelopmentServerVPath>
|
<DevelopmentServerVPath>/</DevelopmentServerVPath>
|
||||||
<IISUrl>http://localhost:8733/</IISUrl>
|
<IISUrl>http://localhost:8736/</IISUrl>
|
||||||
<NTLMAuthentication>False</NTLMAuthentication>
|
<NTLMAuthentication>False</NTLMAuthentication>
|
||||||
<UseCustomServer>False</UseCustomServer>
|
<UseCustomServer>False</UseCustomServer>
|
||||||
<CustomServerUrl>
|
<CustomServerUrl>
|
||||||
|
|||||||
@@ -24,15 +24,16 @@
|
|||||||
<Items>
|
<Items>
|
||||||
<f:Grid ID="Grid1" ShowBorder="true" ShowHeader="false" Title="项目情况" BoxFlex="1" AllowColumnLocking="true"
|
<f:Grid ID="Grid1" ShowBorder="true" ShowHeader="false" Title="项目情况" BoxFlex="1" AllowColumnLocking="true"
|
||||||
runat="server" EnableCollapse="true" DataKeyNames="Id,Name,ShowId" EnableTree="true" EnableColumnLines="true" ClicksToEdit="1" AllowCellEditing="true"
|
runat="server" EnableCollapse="true" DataKeyNames="Id,Name,ShowId" EnableTree="true" EnableColumnLines="true" ClicksToEdit="1" AllowCellEditing="true"
|
||||||
TreeColumn="Name" DataIDField="Id" DataParentIDField="SupId" ExpandAllTreeNodes="true">
|
TreeColumn="Name" DataIDField="Id" DataParentIDField="SupId" ExpandAllTreeNodes="true" SortField="Code" SortDirection="ASC"
|
||||||
|
AllowPaging="true" IsDatabasePaging="true" PageSize="20" OnPageIndexChange="Grid1_PageIndexChange">
|
||||||
<Toolbars>
|
<Toolbars>
|
||||||
<f:Toolbar ID="Toolbar2" Position="Top" runat="server">
|
<f:Toolbar ID="Toolbar2" Position="Top" runat="server">
|
||||||
<Items>
|
<Items>
|
||||||
<f:TextBox runat="server" ID="hdId" Hidden="true"></f:TextBox>
|
<f:TextBox runat="server" ID="hdId" Hidden="true"></f:TextBox>
|
||||||
<f:ToolbarFill runat="server"></f:ToolbarFill>
|
<f:ToolbarFill runat="server"></f:ToolbarFill>
|
||||||
<f:Button ID="btnShow" Icon="ChartPie" runat="server" ToolTip="统计" Text="统计"
|
<%--<f:Button ID="btnShow" Icon="ChartPie" runat="server" ToolTip="统计" Text="统计"
|
||||||
OnClick="btnShow_Click">
|
OnClick="btnShow_Click">
|
||||||
</f:Button>
|
</f:Button>--%>
|
||||||
<f:Button ID="btnSave" Icon="SystemSave" runat="server" ToolTip="保存" Text="保存"
|
<f:Button ID="btnSave" Icon="SystemSave" runat="server" ToolTip="保存" Text="保存"
|
||||||
OnClick="btnSave_Click">
|
OnClick="btnSave_Click">
|
||||||
</f:Button>
|
</f:Button>
|
||||||
|
|||||||
@@ -132,14 +132,21 @@ namespace FineUIPro.Web.JDGL.Check
|
|||||||
{
|
{
|
||||||
errorInfos = string.Empty;
|
errorInfos = string.Empty;
|
||||||
string Id = Request.Params["Id"];
|
string Id = Request.Params["Id"];
|
||||||
|
BindGrid();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
protected void btnShow_Click(object sender, EventArgs e)
|
protected void Grid1_PageIndexChange(object sender, GridPageEventArgs e)
|
||||||
|
{
|
||||||
|
BindGrid();
|
||||||
|
}
|
||||||
|
|
||||||
|
private void BindGrid()
|
||||||
{
|
{
|
||||||
DataTable table = BLL.WorkPackageService.GetAllTreeDataTable(this.CurrUser.LoginProjectId, string.Empty, null, null, "0");
|
DataTable table = BLL.WorkPackageService.GetAllTreeDataTable(this.CurrUser.LoginProjectId, string.Empty, null, null, "0");
|
||||||
Grid1.DataSource = table;
|
Grid1.RecordCount = table.Rows.Count;
|
||||||
|
var table2 = this.GetPagedDataTable(Grid1, table);
|
||||||
|
Grid1.DataSource = table2;
|
||||||
Grid1.DataBind();
|
Grid1.DataBind();
|
||||||
for (int i = 0; i < this.Grid1.Rows.Count; i++)
|
for (int i = 0; i < this.Grid1.Rows.Count; i++)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -66,15 +66,6 @@ namespace FineUIPro.Web.JDGL.Check {
|
|||||||
/// </remarks>
|
/// </remarks>
|
||||||
protected global::FineUIPro.TextBox hdId;
|
protected global::FineUIPro.TextBox hdId;
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// btnShow 控件。
|
|
||||||
/// </summary>
|
|
||||||
/// <remarks>
|
|
||||||
/// 自动生成的字段。
|
|
||||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
|
||||||
/// </remarks>
|
|
||||||
protected global::FineUIPro.Button btnShow;
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// btnSave 控件。
|
/// btnSave 控件。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|||||||
@@ -28,7 +28,8 @@
|
|||||||
<Items>
|
<Items>
|
||||||
<f:Grid ID="Grid1" ShowBorder="true" ShowHeader="false" Title="项目情况" BoxFlex="1" AllowColumnLocking="true" ForceFit="true"
|
<f:Grid ID="Grid1" ShowBorder="true" ShowHeader="false" Title="项目情况" BoxFlex="1" AllowColumnLocking="true" ForceFit="true"
|
||||||
runat="server" EnableCollapse="true" DataKeyNames="Id,Name,ShowId" EnableTree="true" EnableColumnLines="true" ClicksToEdit="1" AllowCellEditing="true"
|
runat="server" EnableCollapse="true" DataKeyNames="Id,Name,ShowId" EnableTree="true" EnableColumnLines="true" ClicksToEdit="1" AllowCellEditing="true"
|
||||||
TreeColumn="Name" DataIDField="Id" DataParentIDField="SupId" ExpandAllTreeNodes="true">
|
TreeColumn="Name" DataIDField="Id" DataParentIDField="SupId" ExpandAllTreeNodes="true" SortField="Code" SortDirection="ASC"
|
||||||
|
AllowPaging="true" IsDatabasePaging="true" PageSize="20" OnPageIndexChange="Grid1_PageIndexChange">
|
||||||
<Toolbars>
|
<Toolbars>
|
||||||
<f:Toolbar ID="Toolbar2" Position="Top" runat="server">
|
<f:Toolbar ID="Toolbar2" Position="Top" runat="server">
|
||||||
<Items>
|
<Items>
|
||||||
|
|||||||
@@ -29,7 +29,9 @@ namespace FineUIPro.Web.JDGL.Check
|
|||||||
private void BindGrid()
|
private void BindGrid()
|
||||||
{
|
{
|
||||||
var table = BLL.WorkPackageService.GetAllTreeDataTable2(this.CurrUser.LoginProjectId, string.Empty,this.txtStartTime.Text.Trim(),this.txtEndTime.Text.Trim(),this.rblIsOK.SelectedValue);
|
var table = BLL.WorkPackageService.GetAllTreeDataTable2(this.CurrUser.LoginProjectId, string.Empty,this.txtStartTime.Text.Trim(),this.txtEndTime.Text.Trim(),this.rblIsOK.SelectedValue);
|
||||||
Grid1.DataSource = table;
|
Grid1.RecordCount = table.Count;
|
||||||
|
var table2 = this.GetPagedDataTable(Grid1, table);
|
||||||
|
Grid1.DataSource = table2;
|
||||||
Grid1.DataBind();
|
Grid1.DataBind();
|
||||||
for (int i = 0; i < this.Grid1.Rows.Count; i++)
|
for (int i = 0; i < this.Grid1.Rows.Count; i++)
|
||||||
{
|
{
|
||||||
@@ -66,6 +68,11 @@ namespace FineUIPro.Web.JDGL.Check
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
protected void Grid1_PageIndexChange(object sender, GridPageEventArgs e)
|
||||||
|
{
|
||||||
|
BindGrid();
|
||||||
|
}
|
||||||
|
|
||||||
#region 保存
|
#region 保存
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 保存按钮
|
/// 保存按钮
|
||||||
|
|||||||
Reference in New Issue
Block a user