| 
									
										
										
										
											2025-08-27 11:12:41 +08:00
										 |  |  |  | <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="UnitCleanupMerge.aspx.cs" Inherits="FineUIPro.Web.SysManage.UnitCleanupMerge" %> | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | 
					
						
							|  |  |  |  | <html xmlns="http://www.w3.org/1999/xhtml"> | 
					
						
							|  |  |  |  | <head runat="server"> | 
					
						
							|  |  |  |  |     <title>单位清理合并</title> | 
					
						
							|  |  |  |  |     <link href="../res/css/common.css" rel="stylesheet" type="text/css" /> | 
					
						
							| 
									
										
										
										
											2025-09-02 10:48:28 +08:00
										 |  |  |  |     <style type="text/css"> | 
					
						
							|  |  |  |  |         .customlabel span { | 
					
						
							|  |  |  |  |             margin-left: 140px; | 
					
						
							|  |  |  |  |             color: red; | 
					
						
							|  |  |  |  |             font-weight: bold; | 
					
						
							|  |  |  |  |         } | 
					
						
							|  |  |  |  |     </style> | 
					
						
							| 
									
										
										
										
											2025-08-27 11:12:41 +08:00
										 |  |  |  | </head> | 
					
						
							|  |  |  |  | <body> | 
					
						
							|  |  |  |  |     <form id="form1" runat="server"> | 
					
						
							|  |  |  |  |         <f:PageManager ID="PageManager1" AutoSizePanelID="SimpleForm1" runat="server" /> | 
					
						
							|  |  |  |  |         <f:Form ID="SimpleForm1" ShowBorder="false" ShowHeader="false" AutoScroll="true" LabelWidth="140px" | 
					
						
							|  |  |  |  |             BodyPadding="10px" runat="server" RedStarPosition="BeforeText" LabelAlign="Right"> | 
					
						
							|  |  |  |  |             <Rows> | 
					
						
							|  |  |  |  |                 <f:FormRow> | 
					
						
							|  |  |  |  |                     <Items> | 
					
						
							| 
									
										
										
										
											2025-09-02 10:48:28 +08:00
										 |  |  |  |                         <f:DropDownBox runat="server" ID="drpUnitBox" AutoPostBack="true" OnTextChanged="TextBox_TextChanged" Label="合并后的单位" EmptyText="请从下拉表格中选择合并后的单位" DataControlID="Grid1" | 
					
						
							|  |  |  |  |                             EnableMultiSelect="false" MatchFieldWidth="false" Required="true" ShowRedStar="true"> | 
					
						
							|  |  |  |  |                             <PopPanel> | 
					
						
							|  |  |  |  |                                 <f:Panel ID="Panel1" runat="server" BodyPadding="10px" Width="820px" Height="420px" Hidden="true" | 
					
						
							|  |  |  |  |                                     ShowBorder="true" ShowHeader="false" Layout="VBox" BoxConfigAlign="Stretch"> | 
					
						
							|  |  |  |  |                                     <Items> | 
					
						
							|  |  |  |  |                                         <f:Form ID="Form2" ShowBorder="False" ShowHeader="False" runat="server"> | 
					
						
							|  |  |  |  |                                             <Rows> | 
					
						
							|  |  |  |  |                                                 <f:FormRow> | 
					
						
							|  |  |  |  |                                                     <Items> | 
					
						
							|  |  |  |  |                                                         <f:TwinTriggerBox Width="200px" runat="server" EmptyText="按单位代码、名称查找" ShowLabel="false" ID="ttbUnitNameCodeSearch" | 
					
						
							|  |  |  |  |                                                           AutoPostBack="true" OnTextChanged="TextBox_TextChanged"   ShowTrigger1="false" OnTrigger1Click="ttbUnitNameCodeSearch_Trigger1Click" OnTrigger2Click="ttbUnitNameCodeSearch_Trigger2Click" Trigger1Icon="Clear" Trigger2Icon="Search"> | 
					
						
							|  |  |  |  |                                                         </f:TwinTriggerBox> | 
					
						
							|  |  |  |  |                                                     </Items> | 
					
						
							|  |  |  |  |                                                 </f:FormRow> | 
					
						
							|  |  |  |  |                                             </Rows> | 
					
						
							|  |  |  |  |                                         </f:Form> | 
					
						
							|  |  |  |  |                                         <f:Grid ID="Grid1" BoxFlex="1" DataKeyNames="UnitId" | 
					
						
							|  |  |  |  |                                             DataIDField="UnitId" DataTextField="UnitName" EnableMultiSelect="false" | 
					
						
							|  |  |  |  |                                             PageSize="50" ShowBorder="true" ShowHeader="false" | 
					
						
							|  |  |  |  |                                             AllowPaging="true" IsDatabasePaging="true" OnPageIndexChange="Grid1_PageIndexChange" runat="server" EnableCheckBoxSelect="true" | 
					
						
							|  |  |  |  |                                             AllowSorting="false" SortField="UnitName" SortDirection="ASC" | 
					
						
							|  |  |  |  |                                             OnSort="Grid1_Sort"> | 
					
						
							|  |  |  |  |                                             <Columns> | 
					
						
							|  |  |  |  |                                                 <f:TemplateField ColumnID="tfPageIndex" Width="50px" HeaderText="序号" HeaderTextAlign="Center" TextAlign="Center" | 
					
						
							|  |  |  |  |                                                     EnableLock="true" Locked="true"> | 
					
						
							|  |  |  |  |                                                     <ItemTemplate> | 
					
						
							|  |  |  |  |                                                         <asp:Label ID="Label1" runat="server" Text='<%# Grid1.PageIndex * Grid1.PageSize + Container.DataItemIndex + 1 %>'></asp:Label> | 
					
						
							|  |  |  |  |                                                     </ItemTemplate> | 
					
						
							|  |  |  |  |                                                 </f:TemplateField> | 
					
						
							|  |  |  |  |                                                 <f:BoundField ExpandUnusedSpace="true" Width="120px" DataField="UnitCode" HeaderText="单位代码" /> | 
					
						
							|  |  |  |  |                                                 <f:BoundField ExpandUnusedSpace="true" Width="280px" DataField="UnitName" HeaderText="单位名称" /> | 
					
						
							|  |  |  |  |                                                 <f:BoundField ExpandUnusedSpace="true" Width="180px" DataField="ShortUnitName" HeaderText="单位简称" /> | 
					
						
							|  |  |  |  |                                                 <f:BoundField ExpandUnusedSpace="true" Width="120px" DataField="UnitTypeName" HeaderText="类型" /> | 
					
						
							|  |  |  |  |                                             </Columns> | 
					
						
							|  |  |  |  |                                         </f:Grid> | 
					
						
							|  |  |  |  |                                     </Items> | 
					
						
							|  |  |  |  |                                 </f:Panel> | 
					
						
							|  |  |  |  |                             </PopPanel> | 
					
						
							|  |  |  |  |                         </f:DropDownBox> | 
					
						
							| 
									
										
										
										
											2025-08-27 11:12:41 +08:00
										 |  |  |  |                     </Items> | 
					
						
							|  |  |  |  |                 </f:FormRow> | 
					
						
							|  |  |  |  |                 <f:FormRow> | 
					
						
							|  |  |  |  |                     <Items> | 
					
						
							| 
									
										
										
										
											2025-09-02 10:48:28 +08:00
										 |  |  |  |                         <f:DropDownBox runat="server" ID="drpMergeUnitBox" Label="需要合并的单位" EmptyText="请从下拉表格中选择需要合并的单位" DataControlID="Grid2" | 
					
						
							|  |  |  |  |                             EnableMultiSelect="true" MatchFieldWidth="false" Required="true" ShowRedStar="true"> | 
					
						
							| 
									
										
										
										
											2025-08-27 11:12:41 +08:00
										 |  |  |  |                             <PopPanel> | 
					
						
							| 
									
										
										
										
											2025-09-02 10:48:28 +08:00
										 |  |  |  |                                 <f:Panel ID="Panel2" runat="server" BodyPadding="10px" Width="820px" Height="420px" Hidden="true" | 
					
						
							| 
									
										
										
										
											2025-08-27 11:12:41 +08:00
										 |  |  |  |                                     ShowBorder="true" ShowHeader="false" Layout="VBox" BoxConfigAlign="Stretch"> | 
					
						
							|  |  |  |  |                                     <Items> | 
					
						
							| 
									
										
										
										
											2025-09-02 10:48:28 +08:00
										 |  |  |  |                                         <f:Form ID="Form3" ShowBorder="False" ShowHeader="False" runat="server"> | 
					
						
							| 
									
										
										
										
											2025-08-27 11:12:41 +08:00
										 |  |  |  |                                             <Rows> | 
					
						
							|  |  |  |  |                                                 <f:FormRow> | 
					
						
							|  |  |  |  |                                                     <Items> | 
					
						
							| 
									
										
										
										
											2025-09-02 10:48:28 +08:00
										 |  |  |  |                                                         <f:TwinTriggerBox Width="200px" runat="server" EmptyText="按单位编码、名称查找" ShowLabel="false" ID="ttbMergeUnitNameCodeSearch" | 
					
						
							|  |  |  |  |                                                          AutoPostBack="true" OnTextChanged="MergeTextBox_TextChanged"    ShowTrigger1="false" OnTrigger1Click="ttbMergeUnitNameCodeSearch_Trigger1Click" OnTrigger2Click="ttbMergeUnitNameCodeSearch_Trigger2Click" Trigger1Icon="Clear" Trigger2Icon="Search"> | 
					
						
							| 
									
										
										
										
											2025-08-27 11:12:41 +08:00
										 |  |  |  |                                                         </f:TwinTriggerBox> | 
					
						
							|  |  |  |  |                                                     </Items> | 
					
						
							|  |  |  |  |                                                 </f:FormRow> | 
					
						
							|  |  |  |  |                                             </Rows> | 
					
						
							|  |  |  |  |                                         </f:Form> | 
					
						
							| 
									
										
										
										
											2025-09-02 10:48:28 +08:00
										 |  |  |  |                                         <f:Grid ID="Grid2" BoxFlex="1" DataKeyNames="UnitId" | 
					
						
							|  |  |  |  |                                             DataIDField="UnitId" DataTextField="UnitName" EnableMultiSelect="true" | 
					
						
							| 
									
										
										
										
											2025-08-27 11:12:41 +08:00
										 |  |  |  |                                             PageSize="50" ShowBorder="true" ShowHeader="false" | 
					
						
							|  |  |  |  |                                             AllowPaging="true" IsDatabasePaging="true" OnPageIndexChange="Grid2_PageIndexChange" runat="server" EnableCheckBoxSelect="true" | 
					
						
							| 
									
										
										
										
											2025-09-02 10:48:28 +08:00
										 |  |  |  |                                             AllowSorting="false" SortField="UnitName" SortDirection="ASC" | 
					
						
							| 
									
										
										
										
											2025-08-27 11:12:41 +08:00
										 |  |  |  |                                             OnSort="Grid2_Sort"> | 
					
						
							|  |  |  |  |                                             <Columns> | 
					
						
							|  |  |  |  |                                                 <f:TemplateField ColumnID="tfPageIndex" Width="50px" HeaderText="序号" HeaderTextAlign="Center" TextAlign="Center" | 
					
						
							|  |  |  |  |                                                     EnableLock="true" Locked="true"> | 
					
						
							|  |  |  |  |                                                     <ItemTemplate> | 
					
						
							|  |  |  |  |                                                         <asp:Label ID="lblPageIndex" runat="server" Text='<%# Grid2.PageIndex * Grid2.PageSize + Container.DataItemIndex + 1 %>'></asp:Label> | 
					
						
							|  |  |  |  |                                                     </ItemTemplate> | 
					
						
							|  |  |  |  |                                                 </f:TemplateField> | 
					
						
							| 
									
										
										
										
											2025-09-02 10:48:28 +08:00
										 |  |  |  |                                                 <f:BoundField ExpandUnusedSpace="true" Width="120px" DataField="UnitCode" HeaderText="单位编码" /> | 
					
						
							|  |  |  |  |                                                 <f:BoundField ExpandUnusedSpace="true" Width="280px" DataField="UnitName" HeaderText="单位名称" /> | 
					
						
							|  |  |  |  |                                                 <f:BoundField ExpandUnusedSpace="true" Width="180px" DataField="ShortUnitName" HeaderText="单位简称" /> | 
					
						
							|  |  |  |  |                                                 <f:BoundField ExpandUnusedSpace="true" Width="120px" DataField="UnitTypeName" HeaderText="类型" /> | 
					
						
							| 
									
										
										
										
											2025-08-27 11:12:41 +08:00
										 |  |  |  |                                             </Columns> | 
					
						
							|  |  |  |  |                                         </f:Grid> | 
					
						
							|  |  |  |  |                                     </Items> | 
					
						
							|  |  |  |  |                                 </f:Panel> | 
					
						
							|  |  |  |  |                             </PopPanel> | 
					
						
							|  |  |  |  |                         </f:DropDownBox> | 
					
						
							| 
									
										
										
										
											2025-09-02 10:48:28 +08:00
										 |  |  |  |                     </Items> | 
					
						
							| 
									
										
										
										
											2025-08-27 11:12:41 +08:00
										 |  |  |  |                 </f:FormRow> | 
					
						
							|  |  |  |  |                 <f:FormRow> | 
					
						
							|  |  |  |  |                     <Items> | 
					
						
							|  |  |  |  |                         <f:TextArea ID="txtRemark" runat="server" Label="备注说明" Height="120px" EmptyText="100字内"> | 
					
						
							|  |  |  |  |                         </f:TextArea> | 
					
						
							|  |  |  |  |                     </Items> | 
					
						
							|  |  |  |  |                 </f:FormRow> | 
					
						
							|  |  |  |  |                 <f:FormRow> | 
					
						
							|  |  |  |  |                     <Items> | 
					
						
							| 
									
										
										
										
											2025-09-02 10:48:28 +08:00
										 |  |  |  |                         <f:Label ID="Label2" runat="server" Text="注:" CssClass="customlabel"></f:Label> | 
					
						
							|  |  |  |  |                     </Items> | 
					
						
							|  |  |  |  |                 </f:FormRow> | 
					
						
							|  |  |  |  |                 <f:FormRow> | 
					
						
							|  |  |  |  |                     <Items> | 
					
						
							|  |  |  |  |                         <f:Label ID="Label3" runat="server" Text="1、请谨慎操作,合并后数据无法恢复;" CssClass="customlabel"></f:Label> | 
					
						
							|  |  |  |  |                     </Items> | 
					
						
							|  |  |  |  |                 </f:FormRow> | 
					
						
							|  |  |  |  |                 <f:FormRow> | 
					
						
							|  |  |  |  |                     <Items> | 
					
						
							|  |  |  |  |                         <f:Label ID="Label4" runat="server" Text="2、建议在系统使用低峰时期合并项目单位数据;" CssClass="customlabel"></f:Label> | 
					
						
							|  |  |  |  |                     </Items> | 
					
						
							|  |  |  |  |                 </f:FormRow> | 
					
						
							|  |  |  |  |                 <f:FormRow> | 
					
						
							|  |  |  |  |                     <Items> | 
					
						
							|  |  |  |  |                         <f:Label ID="Label5" runat="server" Text="3、数据合并过程缓慢,请勿关闭此界面,请耐心等待。" CssClass="customlabel"></f:Label> | 
					
						
							| 
									
										
										
										
											2025-08-27 11:12:41 +08:00
										 |  |  |  |                     </Items> | 
					
						
							|  |  |  |  |                 </f:FormRow> | 
					
						
							|  |  |  |  |             </Rows> | 
					
						
							|  |  |  |  |             <Toolbars> | 
					
						
							|  |  |  |  |                 <f:Toolbar ID="Toolbar1" Position="Bottom" ToolbarAlign="Right" runat="server"> | 
					
						
							|  |  |  |  |                     <Items> | 
					
						
							|  |  |  |  |                         <f:Button ID="btnSave" Icon="SystemSave" runat="server" ValidateForms="SimpleForm1" Hidden="true" | 
					
						
							|  |  |  |  |                             OnClick="btnSave_Click" ToolTip="开始清理"> | 
					
						
							|  |  |  |  |                         </f:Button> | 
					
						
							|  |  |  |  |                         <f:Button ID="btnClose" EnablePostBack="false" ToolTip="关闭" runat="server" Icon="SystemClose"> | 
					
						
							|  |  |  |  |                         </f:Button> | 
					
						
							|  |  |  |  |                     </Items> | 
					
						
							|  |  |  |  |                 </f:Toolbar> | 
					
						
							|  |  |  |  |             </Toolbars> | 
					
						
							|  |  |  |  |         </f:Form> | 
					
						
							|  |  |  |  |     </form> | 
					
						
							|  |  |  |  | </body> | 
					
						
							|  |  |  |  | </html> |