隐患整改导出

This commit is contained in:
geh
2025-04-21 09:33:45 +08:00
parent 226efdacc2
commit df2f29c5c4
18 changed files with 1242 additions and 67 deletions
@@ -25,7 +25,7 @@
<f:Button ID="btnSubmit" OnClick="btnSubmit_Click" Icon="SystemSaveNew" runat="server" Text="提交" ToolTip="提交"
ValidateForms="SimpleForm1">
</f:Button>
</Items>
</f:Toolbar>
</Toolbars>
@@ -67,7 +67,7 @@
</f:FormRow>
<f:FormRow>
<Items>
<f:Grid ID="Grid1" ShowBorder="true" ShowHeader="false" AllowCellEditing="true" Title="安全隐患及整改要求"
<f:Grid ID="Grid1" ShowBorder="true" ShowHeader="false" AllowCellEditing="true" Title="安全隐患及整改要求" EnableCollapse="true"
runat="server" BoxFlex="1" DataKeyNames="RectifyNoticesItemId" DataIDField="RectifyNoticesItemId" EnableColumnLines="true"
AllowSorting="true" SortField="RectifyNoticesItemId" SortDirection="ASC" EnableTextSelection="True" MinHeight="240px"
EnableRowDoubleClickEvent="true" OnRowCommand="Grid1_RowCommand" PageSize="500" >
@@ -116,6 +116,9 @@
<f:LinkButtonField ID="del" ColumnID="del" HeaderText="删除" Width="60px" HeaderTextAlign="Center"
CommandName="delete" Icon="Delete" />
</Columns>
<Listeners>
<f:Listener Event="beforerowcontextmenu" Handler="onRowContextMenu"/>
</Listeners>
</f:Grid>
</Items>
</f:FormRow>
@@ -165,6 +168,22 @@
Target="Parent" EnableResize="false" runat="server" IsModal="true" Width="700px"
Height="500px">
</f:Window>
<f:Menu ID="Menu1" runat="server">
<Items>
<f:MenuButton ID="btnPrinter" EnablePostBack="true" runat="server"
Text="导出" Icon="Printer" OnClick="btnPrinter_Click" EnableAjax="false" DisableControlBeforePostBack="false">
</f:MenuButton>
</Items>
</f:Menu>
</form>
<script type="text/javascript">
var menuID = '<%= Menu1.ClientID %>';
// 返回false,来阻止浏览器右键菜单
function onRowContextMenu(event, rowId) {
F(menuID).show(); //showAt(event.pageX, event.pageY);
return false;
}
</script>
</body>
</html>