This commit is contained in:
2025-02-14 16:48:50 +08:00
parent 86b1e8b3da
commit 6d4a7e82a7
51 changed files with 1888 additions and 339 deletions
@@ -16,7 +16,7 @@
Title="中间面板" ShowBorder="false" ShowHeader="false" Layout="VBox">
<Items>
<f:Grid ID="Grid1" ShowBorder="true" ShowHeader="false" EnableCollapse="false" runat="server"
BoxFlex="1" DataKeyNames="ID" AllowCellEditing="true" DataIDField="ProjectId"
BoxFlex="1" DataKeyNames="ID" DataIDField="ProjectId"
AllowSorting="true" SortField="ProjectId" SortDirection="DESC" OnSort="Grid1_Sort"
AllowPaging="true" IsDatabasePaging="true" PageSize="15" OnPageIndexChange="Grid1_PageIndexChange"
EnableRowSelectEvent="true" EnableRowClickEvent="true"
@@ -72,8 +72,8 @@
Title="底部面板" ShowBorder="false" ShowHeader="false" Layout="Fit">
<Items>
<f:Grid ID="Grid2" CssClass="blockpanel" ShowBorder="true" ShowHeader="true" EnableCollapse="false" runat="server"
DataKeyNames="ISO_ID" AllowSorting="true" SortField="ISO_ID"
SortDirection="ASC" EnableCheckBoxSelect="true">
DataKeyNames="ISO_ID" AllowSorting="true" SortField="Record_PrintDate"
SortDirection="DESC" OnSort="Grid2_Sort" EnableCheckBoxSelect="true">
<Toolbars>
<f:Toolbar ID="Toolbar3" Position="Top" runat="server">
<Items>
@@ -67,11 +67,21 @@ namespace FineUIPro.Web.ContinuousPrint
}
}
string strSql = @"select a.CH_RepairID,a.TrustItemID,a.Record_PrintDate,a.CH_RepairNo,a.CH_PrintDate,b.ProjectCode,b.ProjectName,b.ShortName,b.StartDate,b.EndDate from HJGL_CH_Repair as a inner join Base_Project as b on a.ProjectId=b.ProjectId where a.ProjectId= @ProjectId" + str;
string strSql = @"select a.CH_RepairID,a.TrustItemID,a.Record_PrintDate,a.CH_RepairNo,a.CH_PrintDate,b.ProjectCode,b.ProjectName,b.ShortName,b.StartDate,b.EndDate
from HJGL_CH_Repair as a
inner join Base_Project as b on a.ProjectId=b.ProjectId
where a.ProjectId= @ProjectId" + str;
List<SqlParameter> listStr = new List<SqlParameter>();
listStr.Add(new SqlParameter("@ProjectId", ProjectId));
SqlParameter[] parameter = listStr.ToArray();
Grid2.DataSource = SQLHelper.GetDataTableRunText(strSql, parameter);
DataTable dt = SQLHelper.GetDataTableRunText(strSql, parameter);
DataView view = dt.DefaultView;
if (!string.IsNullOrEmpty(Grid2.SortField) && view.Count > 0)
{
view.Sort = String.Format("{0} {1}", Grid2.SortField, Grid2.SortDirection);
}
DataTable table = view.ToTable();
Grid2.DataSource = table;
Grid2.DataBind();
Grid2.SelectAllRows();
}
@@ -107,10 +117,12 @@ namespace FineUIPro.Web.ContinuousPrint
/// <param name="e"></param>
protected void Grid1_Sort(object sender, FineUIPro.GridSortEventArgs e)
{
Grid1.SortDirection = e.SortDirection;
Grid1.SortField = e.SortField;
BindGrid();
}
protected void Grid2_Sort(object sender, FineUIPro.GridSortEventArgs e)
{
BindGrid1(this.Grid1.SelectedRowID);
}
#endregion
#region
@@ -16,7 +16,7 @@
Title="中间面板" ShowBorder="false" ShowHeader="false" Layout="VBox">
<Items>
<f:Grid ID="Grid1" ShowBorder="true" ShowHeader="false" EnableCollapse="false" runat="server"
BoxFlex="1" DataKeyNames="ID" AllowCellEditing="true" DataIDField="ProjectId"
BoxFlex="1" DataKeyNames="ID" DataIDField="ProjectId"
AllowSorting="true" SortField="ProjectId" SortDirection="DESC" OnSort="Grid1_Sort"
AllowPaging="true" IsDatabasePaging="true" PageSize="15" OnPageIndexChange="Grid1_PageIndexChange"
EnableRowSelectEvent="true" EnableRowClickEvent="true"
@@ -73,7 +73,7 @@
<Items>
<f:Grid ID="Grid2" CssClass="blockpanel" ShowBorder="true" ShowHeader="true" EnableCollapse="false" runat="server"
DataKeyNames="HardTestReportId" AllowSorting="true" SortField="HardTestReportId"
SortDirection="ASC" EnableCheckBoxSelect="true">
SortDirection="ASC" OnSort="Grid2_Sort" EnableCheckBoxSelect="true">
<Toolbars>
<f:Toolbar ID="Toolbar3" Position="Top" runat="server">
<Items>
@@ -57,7 +57,14 @@ namespace FineUIPro.Web.ContinuousPrint
List<SqlParameter> listStr = new List<SqlParameter>();
listStr.Add(new SqlParameter("@ProjectId", ProjectId));
SqlParameter[] parameter = listStr.ToArray();
Grid2.DataSource = SQLHelper.GetDataTableRunText(strSql, parameter);
DataTable dt = SQLHelper.GetDataTableRunText(strSql, parameter);
DataView view = dt.DefaultView;
if (!string.IsNullOrEmpty(Grid2.SortField) && view.Count > 0)
{
view.Sort = String.Format("{0} {1}", Grid2.SortField, Grid2.SortDirection);
}
DataTable table = view.ToTable();
Grid2.DataSource = table;
Grid2.DataBind();
Grid2.SelectAllRows();
}
@@ -93,10 +100,13 @@ namespace FineUIPro.Web.ContinuousPrint
/// <param name="e"></param>
protected void Grid1_Sort(object sender, FineUIPro.GridSortEventArgs e)
{
Grid1.SortDirection = e.SortDirection;
Grid1.SortField = e.SortField;
BindGrid();
}
protected void Grid2_Sort(object sender, FineUIPro.GridSortEventArgs e)
{
BindGrid1(this.Grid1.SelectedRowID);
}
#endregion
#region
@@ -16,7 +16,7 @@
Title="中间面板" ShowBorder="false" ShowHeader="false" Layout="VBox">
<Items>
<f:Grid ID="Grid1" ShowBorder="true" ShowHeader="false" EnableCollapse="false" runat="server"
BoxFlex="1" DataKeyNames="ID" AllowCellEditing="true" DataIDField="ProjectId"
BoxFlex="1" DataKeyNames="ID" DataIDField="ProjectId"
AllowSorting="true" SortField="ProjectId" SortDirection="DESC" OnSort="Grid1_Sort"
AllowPaging="true" IsDatabasePaging="true" PageSize="15" OnPageIndexChange="Grid1_PageIndexChange"
EnableRowSelectEvent="true" EnableRowClickEvent="true"
@@ -76,7 +76,7 @@
<Items>
<f:Grid ID="Grid2" CssClass="blockpanel" ShowBorder="true" ShowHeader="true" EnableCollapse="false" runat="server"
DataKeyNames="ISO_ID" AllowSorting="true" SortField="ISO_ID"
SortDirection="ASC" EnableCheckBoxSelect="true">
SortDirection="ASC" OnSort="Grid2_Sort" EnableCheckBoxSelect="true">
<Toolbars>
<f:Toolbar ID="Toolbar3" Position="Top" runat="server">
<Items>
@@ -58,7 +58,14 @@ namespace FineUIPro.Web.ContinuousPrint
List<SqlParameter> listStr = new List<SqlParameter>();
listStr.Add(new SqlParameter("@ProjectId", ProjectId));
SqlParameter[] parameter = listStr.ToArray();
Grid2.DataSource = SQLHelper.GetDataTableRunText(strSql, parameter);
DataTable dt = SQLHelper.GetDataTableRunText(strSql, parameter);
DataView view = dt.DefaultView;
if (!string.IsNullOrEmpty(Grid2.SortField) && view.Count > 0)
{
view.Sort = String.Format("{0} {1}", Grid2.SortField, Grid2.SortDirection);
}
DataTable table = view.ToTable();
Grid2.DataSource = table;
Grid2.DataBind();
Grid2.SelectAllRows();
}
@@ -94,10 +101,14 @@ namespace FineUIPro.Web.ContinuousPrint
/// <param name="e"></param>
protected void Grid1_Sort(object sender, FineUIPro.GridSortEventArgs e)
{
Grid1.SortDirection = e.SortDirection;
Grid1.SortField = e.SortField;
BindGrid();
}
protected void Grid2_Sort(object sender, FineUIPro.GridSortEventArgs e)
{
BindGrid1(this.Grid1.SelectedRowID);
}
#endregion
#region
@@ -16,7 +16,7 @@
Title="中间面板" ShowBorder="false" ShowHeader="false" Layout="VBox">
<Items>
<f:Grid ID="Grid1" ShowBorder="true" ShowHeader="false" EnableCollapse="false" runat="server"
BoxFlex="1" DataKeyNames="ID" AllowCellEditing="true" DataIDField="ProjectId"
BoxFlex="1" DataKeyNames="ID" DataIDField="ProjectId"
AllowSorting="true" SortField="ProjectId" SortDirection="DESC" OnSort="Grid1_Sort"
AllowPaging="true" IsDatabasePaging="true" PageSize="15" OnPageIndexChange="Grid1_PageIndexChange"
EnableRowSelectEvent="true" EnableRowClickEvent="true"
@@ -73,7 +73,7 @@
<Items>
<f:Grid ID="Grid2" CssClass="blockpanel" ShowBorder="true" ShowHeader="true" EnableCollapse="false" runat="server"
DataKeyNames="ISO_ID" AllowSorting="true" SortField="ISO_ID"
SortDirection="ASC" EnableCheckBoxSelect="true">
SortDirection="ASC" OnSort="Grid2_Sort" EnableCheckBoxSelect="true">
<Toolbars>
<f:Toolbar ID="Toolbar3" Position="Top" runat="server">
<Items>
@@ -57,7 +57,14 @@ namespace FineUIPro.Web.ContinuousPrint
List<SqlParameter> listStr = new List<SqlParameter>();
listStr.Add(new SqlParameter("@ProjectId", ProjectId));
SqlParameter[] parameter = listStr.ToArray();
Grid2.DataSource = SQLHelper.GetDataTableRunText(strSql, parameter);
DataTable dt = SQLHelper.GetDataTableRunText(strSql, parameter);
DataView view = dt.DefaultView;
if (!string.IsNullOrEmpty(Grid2.SortField) && view.Count > 0)
{
view.Sort = String.Format("{0} {1}", Grid2.SortField, Grid2.SortDirection);
}
DataTable table = view.ToTable();
Grid2.DataSource = table;
Grid2.DataBind();
Grid2.SelectAllRows();
}
@@ -93,10 +100,13 @@ namespace FineUIPro.Web.ContinuousPrint
/// <param name="e"></param>
protected void Grid1_Sort(object sender, FineUIPro.GridSortEventArgs e)
{
Grid1.SortDirection = e.SortDirection;
Grid1.SortField = e.SortField;
BindGrid();
}
protected void Grid2_Sort(object sender, FineUIPro.GridSortEventArgs e)
{
BindGrid1(this.Grid1.SelectedRowID);
}
#endregion
#region
@@ -16,7 +16,7 @@
Title="中间面板" ShowBorder="false" ShowHeader="false" Layout="VBox">
<Items>
<f:Grid ID="Grid1" ShowBorder="true" ShowHeader="false" EnableCollapse="false" runat="server"
BoxFlex="1" DataKeyNames="ID" AllowCellEditing="true" DataIDField="ProjectId"
BoxFlex="1" DataKeyNames="ID" DataIDField="ProjectId"
AllowSorting="true" SortField="ProjectId" SortDirection="DESC" OnSort="Grid1_Sort"
AllowPaging="true" IsDatabasePaging="true" PageSize="15" OnPageIndexChange="Grid1_PageIndexChange"
EnableRowSelectEvent="true" EnableRowClickEvent="true"
@@ -2,6 +2,7 @@
using NPOI.OpenXmlFormats.Wordprocessing;
using NPOI.SS.UserModel;
using NPOI.SS.Util;
using NPOI.Util;
using NPOI.XSSF.UserModel;
using System;
using System.Collections.Generic;
@@ -69,7 +70,7 @@ namespace FineUIPro.Web.ContinuousPrint
}
}
str += " ORDER BY a.CH_TrustDate DESC";
//str += " ORDER BY a.CH_TrustDate DESC";
string strSql = @"select a.CH_TrustID,a.CH_TrustCode,a.CH_TrustDate,a.CH_Printer,
a.CH_PrintDate,b.ProjectCode,b.ProjectName,b.ShortName,b.StartDate,b.EndDate
@@ -79,7 +80,14 @@ namespace FineUIPro.Web.ContinuousPrint
List<SqlParameter> listStr = new List<SqlParameter>();
listStr.Add(new SqlParameter("@ProjectId", ProjectId));
SqlParameter[] parameter = listStr.ToArray();
Grid2.DataSource = SQLHelper.GetDataTableRunText(strSql, parameter);
DataTable dt = SQLHelper.GetDataTableRunText(strSql, parameter);
DataView view = dt.DefaultView;
if (!string.IsNullOrEmpty(Grid2.SortField) && view.Count > 0)
{
view.Sort = String.Format("{0} {1}", Grid2.SortField, Grid2.SortDirection);
}
DataTable table = view.ToTable();
Grid2.DataSource = table;
Grid2.DataBind();
Grid2.SelectAllRows();
}
@@ -115,8 +123,6 @@ namespace FineUIPro.Web.ContinuousPrint
/// <param name="e"></param>
protected void Grid1_Sort(object sender, FineUIPro.GridSortEventArgs e)
{
Grid1.SortDirection = e.SortDirection;
Grid1.SortField = e.SortField;
BindGrid();
}
@@ -16,7 +16,7 @@
Title="中间面板" ShowBorder="false" ShowHeader="false" Layout="VBox">
<Items>
<f:Grid ID="Grid1" ShowBorder="true" ShowHeader="false" EnableCollapse="false" runat="server"
BoxFlex="1" DataKeyNames="ID" AllowCellEditing="true" DataIDField="ProjectId"
BoxFlex="1" DataKeyNames="ID" DataIDField="ProjectId"
AllowSorting="true" SortField="ProjectId" SortDirection="DESC" OnSort="Grid1_Sort"
AllowPaging="true" IsDatabasePaging="true" PageSize="15" OnPageIndexChange="Grid1_PageIndexChange"
EnableRowSelectEvent="true" EnableRowClickEvent="true"
@@ -73,7 +73,7 @@
<Items>
<f:Grid ID="Grid2" CssClass="blockpanel" ShowBorder="true" ShowHeader="true" EnableCollapse="false" runat="server"
DataKeyNames="ISO_ID" AllowSorting="true" SortField="ISO_ID"
SortDirection="ASC" EnableCheckBoxSelect="true">
SortDirection="ASC" OnSort="Grid2_Sort" EnableCheckBoxSelect="true">
<Toolbars>
<f:Toolbar ID="Toolbar3" Position="Top" runat="server">
<Items>
@@ -112,22 +112,22 @@
FieldType="Date" Renderer="Date" HeaderTextAlign="Center" TextAlign="Left" Width="90px">
</f:RenderField>
<f:RenderField HeaderText="管线号" ColumnID="ISO_IsoNo" DataField="ISO_IsoNo"
FieldType="String" HeaderTextAlign="Center" TextAlign="Left" Width="100px">
SortField="ISO_IsoNo" FieldType="String" HeaderTextAlign="Center" TextAlign="Left" Width="100px">
</f:RenderField>
<f:RenderField HeaderText="焊口号" ColumnID="JOT_JointNo" DataField="JOT_JointNo"
FieldType="String" HeaderTextAlign="Center" TextAlign="Left" Width="150px">
SortField="JOT_JointNo" FieldType="String" HeaderTextAlign="Center" TextAlign="Left" Width="150px">
</f:RenderField>
<f:RenderField HeaderText="焊口规格" ColumnID="JOT_JointDesc" DataField="JOT_JointDesc"
FieldType="String" HeaderTextAlign="Center" TextAlign="Left" Width="100px">
SortField="JOT_JointDesc" FieldType="String" HeaderTextAlign="Center" TextAlign="Left" Width="100px">
</f:RenderField>
<f:RenderField HeaderText="检测方法" ColumnID="NDT_Code" DataField="NDT_Code"
FieldType="String" HeaderTextAlign="Center" TextAlign="Left" Width="80px">
SortField="NDT_Code" FieldType="String" HeaderTextAlign="Center" TextAlign="Left" Width="80px">
</f:RenderField>
<f:RenderField HeaderText="打印人" ColumnID="Record_Printer" DataField="Record_Printer"
FieldType="String" HeaderTextAlign="Center" TextAlign="Left" Width="80px">
SortField="Record_Printer" FieldType="String" HeaderTextAlign="Center" TextAlign="Left" Width="80px">
</f:RenderField>
<f:RenderField HeaderText="打印时间" ColumnID="Record_PrintDate" DataField="Record_PrintDate"
FieldType="String" HeaderTextAlign="Center" TextAlign="Left" Width="90px">
SortField="Record_PrintDate" FieldType="String" HeaderTextAlign="Center" TextAlign="Left" Width="90px">
</f:RenderField>
</Columns>
</f:Grid>
@@ -130,7 +130,14 @@ namespace FineUIPro.Web.ContinuousPrint
LEFT JOIN HJGL_BS_NDTType AS ndt ON ndt.NDT_ID = v.CH_NDTMethod
LEFT JOIN Base_Project AS project ON project.ProjectId = v.ProjectId";
SqlParameter[] parameter = listStr.ToArray();
Grid2.DataSource = SQLHelper.GetDataTableRunText(strSql, parameter);
DataTable dt = SQLHelper.GetDataTableRunText(strSql, parameter);
DataView view = dt.DefaultView;
if (!string.IsNullOrEmpty(Grid2.SortField) && view.Count > 0)
{
view.Sort = String.Format("{0} {1}", Grid2.SortField, Grid2.SortDirection);
}
DataTable table = view.ToTable();
Grid2.DataSource = table;
Grid2.DataBind();
Grid2.SelectAllRows();
}
@@ -166,10 +173,13 @@ namespace FineUIPro.Web.ContinuousPrint
/// <param name="e"></param>
protected void Grid1_Sort(object sender, FineUIPro.GridSortEventArgs e)
{
Grid1.SortDirection = e.SortDirection;
Grid1.SortField = e.SortField;
BindGrid();
}
protected void Grid2_Sort(object sender, FineUIPro.GridSortEventArgs e)
{
BindGrid1(this.Grid1.SelectedRowID);
}
#endregion
#region
@@ -16,7 +16,7 @@
Title="中间面板" ShowBorder="false" ShowHeader="false" Layout="VBox">
<Items>
<f:Grid ID="Grid1" ShowBorder="true" ShowHeader="false" EnableCollapse="false" runat="server"
BoxFlex="1" DataKeyNames="ID" AllowCellEditing="true" DataIDField="ProjectId"
BoxFlex="1" DataKeyNames="ID" DataIDField="ProjectId"
AllowSorting="true" SortField="ProjectId" SortDirection="DESC" OnSort="Grid1_Sort"
AllowPaging="true" IsDatabasePaging="true" PageSize="15" OnPageIndexChange="Grid1_PageIndexChange"
EnableRowSelectEvent="true" EnableRowClickEvent="true"
@@ -72,8 +72,8 @@
Title="底部面板" ShowBorder="false" ShowHeader="false" Layout="Fit">
<Items>
<f:Grid ID="Grid2" CssClass="blockpanel" ShowBorder="true" ShowHeader="true" EnableCollapse="false" runat="server"
DataKeyNames="ISO_ID" AllowSorting="true" SortField="ISO_ID"
SortDirection="ASC" EnableCheckBoxSelect="true">
AllowSorting="true" SortField="VICheckDate"
SortDirection="ASC" OnSort="Grid2_Sort" EnableCheckBoxSelect="true">
<Toolbars>
<f:Toolbar ID="Toolbar3" Position="Top" runat="server">
<Items>
@@ -66,7 +66,14 @@ namespace FineUIPro.Web.ContinuousPrint
List<SqlParameter> listStr = new List<SqlParameter>();
listStr.Add(new SqlParameter("@ProjectId", ProjectId));
SqlParameter[] parameter = listStr.ToArray();
Grid2.DataSource = SQLHelper.GetDataTableRunText(strSql, parameter);
DataTable dt = SQLHelper.GetDataTableRunText(strSql, parameter);
DataView view = dt.DefaultView;
if (!string.IsNullOrEmpty(Grid2.SortField) && view.Count > 0)
{
view.Sort = String.Format("{0} {1}", Grid2.SortField, Grid2.SortDirection);
}
DataTable table = view.ToTable();
Grid2.DataSource = table;
Grid2.DataBind();
Grid2.SelectAllRows();
}
@@ -102,10 +109,12 @@ namespace FineUIPro.Web.ContinuousPrint
/// <param name="e"></param>
protected void Grid1_Sort(object sender, FineUIPro.GridSortEventArgs e)
{
Grid1.SortDirection = e.SortDirection;
Grid1.SortField = e.SortField;
BindGrid();
}
protected void Grid2_Sort(object sender, FineUIPro.GridSortEventArgs e)
{
BindGrid1(this.Grid1.SelectedRowID);
}
#endregion
#region
@@ -16,7 +16,7 @@
Title="中间面板" ShowBorder="false" ShowHeader="false" Layout="VBox">
<Items>
<f:Grid ID="Grid1" ShowBorder="true" ShowHeader="false" EnableCollapse="false" runat="server"
BoxFlex="1" DataKeyNames="ID" AllowCellEditing="true" DataIDField="ProjectId"
BoxFlex="1" DataKeyNames="ID" DataIDField="ProjectId"
AllowSorting="true" SortField="ProjectId" SortDirection="DESC" OnSort="Grid1_Sort"
AllowPaging="true" IsDatabasePaging="true" PageSize="15" OnPageIndexChange="Grid1_PageIndexChange"
EnableRowSelectEvent="true" EnableRowClickEvent="true"
@@ -73,7 +73,7 @@
<Items>
<f:Grid ID="Grid2" CssClass="blockpanel" ShowBorder="true" ShowHeader="true" EnableCollapse="false" runat="server"
DataKeyNames="ISO_ID" AllowSorting="true" SortField="ISO_ID"
SortDirection="ASC" EnableCheckBoxSelect="true">
SortDirection="ASC" OnSort="Grid2_Sort" EnableCheckBoxSelect="true">
<Toolbars>
<f:Toolbar ID="Toolbar3" Position="Top" runat="server">
<Items>
@@ -51,7 +51,14 @@ namespace FineUIPro.Web.ContinuousPrint
List<SqlParameter> listStr = new List<SqlParameter>();
listStr.Add(new SqlParameter("@ProjectId", ProjectId));
SqlParameter[] parameter = listStr.ToArray();
Grid2.DataSource = SQLHelper.GetDataTableRunText(strSql, parameter);
DataTable dt = SQLHelper.GetDataTableRunText(strSql, parameter);
DataView view = dt.DefaultView;
if (!string.IsNullOrEmpty(Grid2.SortField) && view.Count > 0)
{
view.Sort = String.Format("{0} {1}", Grid2.SortField, Grid2.SortDirection);
}
DataTable table = view.ToTable();
Grid2.DataSource = table;
Grid2.DataBind();
Grid2.SelectAllRows();
@@ -88,10 +95,12 @@ namespace FineUIPro.Web.ContinuousPrint
/// <param name="e"></param>
protected void Grid1_Sort(object sender, FineUIPro.GridSortEventArgs e)
{
Grid1.SortDirection = e.SortDirection;
Grid1.SortField = e.SortField;
BindGrid();
}
protected void Grid2_Sort(object sender, FineUIPro.GridSortEventArgs e)
{
BindGrid1(this.Grid1.SelectedRowID);
}
#endregion
#region