From 10cada58c5ea2aa95b8eaaa1731b543582d618dc Mon Sep 17 00:00:00 2001 From: username@email.com <yzy2002yzy@163.com> Date: 星期二, 20 五月 2025 08:43:55 +0800 Subject: [PATCH] 提交 --- CY_ECommercePlatform/CY.WebForm/Pages/work/Adm_tongxunluAdd.aspx | 45 ++++++++++++++++++++++++++++++++++++++++++--- 1 files changed, 42 insertions(+), 3 deletions(-) diff --git a/CY_ECommercePlatform/CY.WebForm/Pages/work/Adm_tongxunluAdd.aspx b/CY_ECommercePlatform/CY.WebForm/Pages/work/Adm_tongxunluAdd.aspx index 67faa7b..0f98352 100644 --- a/CY_ECommercePlatform/CY.WebForm/Pages/work/Adm_tongxunluAdd.aspx +++ b/CY_ECommercePlatform/CY.WebForm/Pages/work/Adm_tongxunluAdd.aspx @@ -6,7 +6,38 @@ <title>鏂板/淇敼閫氳褰曠鐞�</title> <uc:CMSHead ID="CMSHead1" runat="server" /> <script type="text/javascript"> - + //鎵归噺鍒犻櫎 + function onAllDelete() { + var deleteKeyIds = ""; + $("input[name='depart']").each( + function () { + if ($(this).is(":checked")) { + deleteKeyIds += $(this).val() + ","; + } + } + ) + if (deleteKeyIds == "") { + $("#deleteKeyIds").val(deleteKeyIds); + } + else { + deleteKeyIds = deleteKeyIds.substring(0, deleteKeyIds.length - 1); + $("#deleteKeyIds").val(deleteKeyIds); + } + } + + + function changedepartment(departid) { + + + if ($("#department" + departid).is(':checked')) { + $(".depart" + departid).show(); + $(".spann" + departid).show(); + } else { + $(".depart" + departid).hide(); + $(".spann" + departid).hide(); + $(".depart" + departid).attr('checked', false); + } + } </script> </head> <body> @@ -58,12 +89,20 @@ <asp:TextBox ID="txtBeuzhu" TextMode="MultiLine" runat="server" Width="690px" Height="60px" MaxLength="300"></asp:TextBox> </td> </tr> - + <tr> + <td class="ali03" valign="top"> + 鏌ョ湅鍛樺伐锛� + </td> + <td > + <%=staffs %> + <input type="hidden" id="deleteKeyIds" name="deleteKeyIds" runat="server" /> + </td> + </tr> <tr> <td colspan="2" style="text-align: center;"> - <asp:Button ID="btn_submit" runat="server" OnClick="btn_submit_form" Text="鎻愪氦" /> + <asp:Button ID="btn_submit" runat="server" OnClientClick="onAllDelete()" OnClick="btn_submit_form" Text="鎻愪氦" /> </td> </tr> </table> -- Gitblit v1.9.1