/
ivan
/
ModMas
Обзор
Документация
Войти
/
ivan
/
ModMas
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
ModuleMaster/sj_vend/freqcomp.aspx
103 строки
4 KB
i.krivokon
Initial commit
13 мар 2026, 13:49
13 мар 2026, 13:49
00d9fb6
Код
Авторство
О чём код?
<%@ Page Language="VB" AutoEventWireup="false" CodeFile="freqcomp.aspx.vb" Inherits="detail" EnableEventValidation="false" ValidateRequest="false" MaintainScrollPositionOnPostback="true" %> <%@ Register Src="~/UserControls/editableGrid.ascx" TagName="editableGrid" TagPrefix="uc1" %> <%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %> <%@ Register Src="~/UserControls/editableGridNew.ascx" TagPrefix="uc1" TagName="editableGridNew" %> <%@ Register Src="~/sj_vend/sjmenu.ascx" TagPrefix="uc1" TagName="sjmenu" %> <!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>Module Master Table Viever</title> </head> <body> <form id="form1" runat="server"> <div> <asp:ScriptManager ID="ScriptManager1" runat="server"> <Scripts> <asp:ScriptReference Path="~/Scripts/jquery-1.9.1.min.js" /> </Scripts> </asp:ScriptManager> <uc1:sjmenu runat="server" ID="sjmenu" /> <uc1:editableGridNew runat="server" ID="edTableToView" TableId ="998" /> </div> <div id="chooseProdDate" style="width: 150px; border: 1px solid gray;" class="popup hidden"> <div class="center padding">Please choose ASSY production date</div> <br /> <div class="center padding"> <input type="date" name="proddate" id="proddate" /> </div> <br /> <div class="center padding"> <asp:Image runat="server" ID="savedate" ImageUrl="~/images/buttons/set2/yes.png" CssClass="click" /> <asp:Image runat="server" ID="canceldate" ImageUrl="~/images/buttons/set2/no.png" CssClass="click" /> </div> </div> <script type="text/javascript"> jQuery.fn.center = function () { this.css("position", "absolute"); this.css("top", (($(window).height() - this.outerHeight()) / 2) + $(window).scrollTop() + "px"); this.css("left", (($(window).width() - this.outerWidth()) / 2) + $(window).scrollLeft() + "px"); return this; } $("#selectall").on("click", function () { $(".check").each(function () { $(this).children(0).prop("checked", $("#selectall").prop("checked") == true); }) }) var cmd; $("#savedate").click(function () { var paramstring = ''; $(".check").each(function () { if ($(this).children(0).prop("checked") == true) { if (paramstring != '') { paramstring = paramstring + ';' } paramstring = paramstring + $(this).children(0).attr("id"); //console.log($(this).children(0).attr("id")); } }) //console.log(command); //console.log(paramstring); if (paramstring != '') { if ($("#proddate").val() === '') { alert("You have to select PRODUCTION DATE!") } else { hidepopup(); window.open('prntl.aspx?ds=detail&form=' + cmd + '&proddate=' + $("#proddate").val() + '¶mstring=' + paramstring, '_blank'); } } else { alert('Select row to print'); } }) $("#canceldate").click(function () { hidepopup(); }) function hidepopup() { $("#chooseProdDate").addClass("hidden"); } function showDialog(command) { cmd = command; $("#chooseProdDate").removeClass("hidden"); $("#chooseProdDate").center(); var currentDate = new Date() var day = currentDate.getDate() var month = currentDate.getMonth() + 1 var year = currentDate.getFullYear() if (month < 10) { month = '0' + month; } $("#proddate").val(year + '-' + month + '-' + day) } </script> </form> </body> </html>