This commit is contained in:
2026-06-15 10:58:37 +08:00
parent 7f14011663
commit ce9b6cff82
5 changed files with 60 additions and 71 deletions
@@ -2,7 +2,7 @@
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> <Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup> <PropertyGroup>
<UseIISExpress>true</UseIISExpress> <UseIISExpress>true</UseIISExpress>
<LastActiveSolutionConfig>Debug|Any CPU</LastActiveSolutionConfig> <LastActiveSolutionConfig>Release|Any CPU</LastActiveSolutionConfig>
<Use64BitIISExpress /> <Use64BitIISExpress />
<IISExpressSSLPort /> <IISExpressSSLPort />
<IISExpressAnonymousAuthentication /> <IISExpressAnonymousAuthentication />
@@ -65,7 +65,7 @@
OnRowDoubleClick="Grid1_RowDoubleClick" OnRowDoubleClick="Grid1_RowDoubleClick"
EnableTextSelection="True" EnableRowDoubleClickEvent="true" AllowColumnLocking="true"> EnableTextSelection="True" EnableRowDoubleClickEvent="true" AllowColumnLocking="true">
<Columns> <Columns>
<f:RowNumberField EnablePagingNumber="true" HeaderText="序号" Width="60px" HeaderTextAlign="Center" TextAlign="Center"/> <f:RowNumberField EnablePagingNumber="true" HeaderText="序号" ColumnID="SortIndex" Width="60px" HeaderTextAlign="Center" TextAlign="Center"/>
<f:RenderField Width="70px" HeaderText="管线号" ColumnID="pipe_no" DataField="pipe_no" <f:RenderField Width="70px" HeaderText="管线号" ColumnID="pipe_no" DataField="pipe_no"
FieldType="String" HeaderTextAlign="Center" TextAlign="Center"> FieldType="String" HeaderTextAlign="Center" TextAlign="Center">
</f:RenderField> </f:RenderField>
@@ -114,7 +114,7 @@
runat="server" BoxFlex="1" DataKeyNames="id" EnableColumnLines="true" DataIDField="id" runat="server" BoxFlex="1" DataKeyNames="id" EnableColumnLines="true" DataIDField="id"
EnableTextSelection="True" AllowColumnLocking="true"> EnableTextSelection="True" AllowColumnLocking="true">
<Columns> <Columns>
<f:RowNumberField EnablePagingNumber="true" HeaderText="序号" Width="60px" HeaderTextAlign="Center" TextAlign="Center"/> <f:RowNumberField EnablePagingNumber="true" HeaderText="序号" ColumnID="SortIndex" Width="60px" HeaderTextAlign="Center" TextAlign="Center"/>
<f:RenderField Width="100px" HeaderText="图号" ColumnID="drawing_number" DataField="drawing_number" <f:RenderField Width="100px" HeaderText="图号" ColumnID="drawing_number" DataField="drawing_number"
FieldType="String" HeaderTextAlign="Center" TextAlign="Center"> FieldType="String" HeaderTextAlign="Center" TextAlign="Center">
@@ -164,7 +164,7 @@
runat="server" BoxFlex="1" DataKeyNames="id" EnableColumnLines="true" DataIDField="id" runat="server" BoxFlex="1" DataKeyNames="id" EnableColumnLines="true" DataIDField="id"
EnableTextSelection="True" AllowColumnLocking="true"> EnableTextSelection="True" AllowColumnLocking="true">
<Columns> <Columns>
<f:RowNumberField EnablePagingNumber="true" HeaderText="序号" Width="60px" HeaderTextAlign="Center" TextAlign="Center"/> <f:RowNumberField EnablePagingNumber="true" ColumnID="SortIndex" HeaderText="序号" Width="60px" HeaderTextAlign="Center" TextAlign="Center"/>
<f:RenderField Width="100px" HeaderText="管线号" ColumnID="pipe_no" DataField="pipe_no" <f:RenderField Width="100px" HeaderText="管线号" ColumnID="pipe_no" DataField="pipe_no"
FieldType="String" HeaderTextAlign="Center" TextAlign="Center"> FieldType="String" HeaderTextAlign="Center" TextAlign="Center">
</f:RenderField> </f:RenderField>
@@ -217,7 +217,7 @@
runat="server" BoxFlex="1" DataKeyNames="id" EnableColumnLines="true" DataIDField="id" runat="server" BoxFlex="1" DataKeyNames="id" EnableColumnLines="true" DataIDField="id"
EnableTextSelection="True" AllowColumnLocking="true"> EnableTextSelection="True" AllowColumnLocking="true">
<Columns> <Columns>
<f:RowNumberField EnablePagingNumber="true" HeaderText="序号" Width="60px" HeaderTextAlign="Center" TextAlign="Center"/> <f:RowNumberField EnablePagingNumber="true" ColumnID="SortIndex" HeaderText="序号" Width="60px" HeaderTextAlign="Center" TextAlign="Center"/>
<f:RenderField Width="100px" HeaderText="类型" ColumnID="category" DataField="category" <f:RenderField Width="100px" HeaderText="类型" ColumnID="category" DataField="category"
FieldType="String" HeaderTextAlign="Center" TextAlign="Center"> FieldType="String" HeaderTextAlign="Center" TextAlign="Center">
</f:RenderField> </f:RenderField>
@@ -711,13 +711,22 @@ namespace FineUIPro.Web.HJGL.DataIn
sb.AppendFormat("<td>{0}</td>", column.HeaderText); sb.AppendFormat("<td>{0}</td>", column.HeaderText);
} }
sb.Append("</tr>"); sb.Append("</tr>");
int i = 0;
foreach (GridRow row in grid.Rows) foreach (GridRow row in grid.Rows)
{ {
sb.Append("<tr>"); sb.Append("<tr>");
i++;
foreach (GridColumn column in grid.Columns) foreach (GridColumn column in grid.Columns)
{ {
string html = row.Values[column.ColumnIndex].ToString(); if (column.ColumnID == "SortIndex")
sb.AppendFormat("<td>{0}</td>", html); {
sb.AppendFormat("<td>{0}</td>", i.ToString());
}
else
{
string html = row.Values[column.ColumnIndex].ToString();
sb.AppendFormat("<td>{0}</td>", html);
}
} }
sb.Append("</tr>"); sb.Append("</tr>");
} }
@@ -7,12 +7,10 @@
// </自动生成> // </自动生成>
//------------------------------------------------------------------------------ //------------------------------------------------------------------------------
namespace FineUIPro.Web.HJGL.DataIn namespace FineUIPro.Web.HJGL.DataIn {
{
public partial class DrawingRecognitionContent public partial class DrawingRecognitionContent {
{
/// <summary> /// <summary>
/// form1 控件。 /// form1 控件。
@@ -258,13 +256,13 @@ namespace FineUIPro.Web.HJGL.DataIn
protected global::FineUIPro.Toolbar Toolbar5; protected global::FineUIPro.Toolbar Toolbar5;
/// <summary> /// <summary>
/// Button1 控件。 /// btnOut4 控件。
/// </summary> /// </summary>
/// <remarks> /// <remarks>
/// 自动生成的字段。 /// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks> /// </remarks>
protected global::FineUIPro.Button Button1; protected global::FineUIPro.Button btnOut4;
/// <summary> /// <summary>
/// Region5 控件。 /// Region5 控件。
@@ -275,24 +273,6 @@ namespace FineUIPro.Web.HJGL.DataIn
/// </remarks> /// </remarks>
protected global::FineUIPro.Region Region5; protected global::FineUIPro.Region Region5;
/// <summary>
/// Toolbar6 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Toolbar Toolbar6;
/// <summary>
/// btnOut4 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Button btnOut4;
/// <summary> /// <summary>
/// Grid4 控件。 /// Grid4 控件。
/// </summary> /// </summary>
+1 -1
View File
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> <Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup> <PropertyGroup>
<LastActiveSolutionConfig>Debug|Any CPU</LastActiveSolutionConfig> <LastActiveSolutionConfig>Release|Any CPU</LastActiveSolutionConfig>
<NameOfLastUsedPublishProfile>FolderProfile</NameOfLastUsedPublishProfile> <NameOfLastUsedPublishProfile>FolderProfile</NameOfLastUsedPublishProfile>
<UseIISExpress>true</UseIISExpress> <UseIISExpress>true</UseIISExpress>
<Use64BitIISExpress /> <Use64BitIISExpress />