/
ivan
/
ModMas
Обзор
Документация
Войти
/
ivan
/
ModMas
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
ModuleMaster/mach/machdetails.aspx
205 строк
9 KB
i.krivokon
Initial commit
13 мар 2026, 13:49
13 мар 2026, 13:49
00d9fb6
Код
Авторство
О чём код?
<%@ Page Language="VB" AutoEventWireup="false" CodeFile="machDetails.aspx.vb" Inherits="mach_machDetails" %> <!DOCTYPE html> <html xmlns="http://www.w3.org/1999/xhtml"> <head runat="server"> <title>MACH Project details</title> <link href="../Styles/editableGrid1.css" rel="stylesheet" /> <link href="../Styles/page.css" rel="stylesheet" /> <script src="../Scripts/jquery-1.9.1.min.js"></script> <style type="text/css"> #projectDetails { width: 800px; border: 1px solid gray; border-collapse: collapse; } #projectDetails td { border: 1px solid gray; border-collapse: collapse; padding-bottom: 8px; padding-top: 8px; padding-left: 5px; } .padding{ padding-bottom: 8px; padding-top: 8px; padding-left: 5px; } .image{ max-width: 750px; } a:link { color: #787878; text-decoration: none; } .auto-style2 { font-size: larger; font-weight: bold; text-align: center; background-color: #CCCCCC; } .auto-style3 { width: 479px; height: 57px; } .auto-style4 { background-color: #CCCCCC; } </style> </head> <body> <form id="form1" runat="server"> <div> <asp:GridView ID="approvalLine" runat="server" CellPadding="4" ForeColor="#333333" CssClass="centerAlign "> <AlternatingRowStyle BackColor="White" ForeColor="#284775" /> <EditRowStyle BackColor="#999999" /> <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" /> <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" /> <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" /> <RowStyle BackColor="#F7F6F3" ForeColor="#333333" /> <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" /> <SortedAscendingCellStyle BackColor="#E9E7E2" /> <SortedAscendingHeaderStyle BackColor="#506C8C" /> <SortedDescendingCellStyle BackColor="#FFFDF8" /> <SortedDescendingHeaderStyle BackColor="#6F8DAE" /> </asp:GridView> <hr /> <table id="projectDetails" class="centerAlign" runat="server"> <tr> <td colspan="4" class="center "> <asp:Image ID="imgHeader" runat="server" /> </td> </tr> <tr> <td class="auto-style2" colspan="4">Project <asp:Label ID="lblProcessType" runat="server" Text="start"></asp:Label> approval request </td> </tr> <tr> <td class="auto-style4">Project Name</td> <td colspan="3"> <asp:Label ID="lblProjectName" runat="server" Text="-"></asp:Label> </td> </tr> <tr> <td class="auto-style4">SERK Group</td> <td> <asp:Label ID="lblSerkGroup" runat="server" Text="-"></asp:Label> </td> <td class="auto-style4">Department</td> <td> <asp:Label ID="lblDepartment" runat="server" Text="-"></asp:Label> </td> </tr> <tr> <td class="auto-style4">Project Leader</td> <td> <asp:Label ID="lblProjectLeader" runat="server" Text="-"></asp:Label> </td> <td class="auto-style4">Project team</td> <td> <asp:Label ID="lblProjectTeam" runat="server" Text="-"></asp:Label> </td> </tr> <tr> <td class="auto-style4">MACH Category</td> <td> <asp:Label ID="lblMachCategory" runat="server" Text="M"></asp:Label> </td> <td class="auto-style4">Finance</td> <td> <asp:Label ID="lblFinance" runat="server" Text="Y"></asp:Label> </td> </tr> <tr> <td class="auto-style4">Cost type</td> <td> <asp:Label ID="lblCostType" runat="server" Text="O/H"></asp:Label> </td> <td class="auto-style4">Amount / K$</td> <td> <asp:Label ID="lblAmount" runat="server" Text="-"></asp:Label> </td> </tr> <tr> <td class="auto-style4">Calculation formula</td> <td colspan="3"> <asp:Label ID="lblFormula" runat="server" Text="-"></asp:Label> </td> </tr> <tr> <td class="auto-style4">Start</td> <td> <asp:Label ID="lblStart" runat="server" Text="-"></asp:Label> </td> <td class="auto-style4">End</td> <td> <asp:Label ID="lblEnd" runat="server" Text="-"></asp:Label> </td> </tr> <tr> <td class="auto-style4">AS-IS</td> <td> <asp:Label ID="lblasis" runat="server" Text="-"></asp:Label> </td> <td class="auto-style4">TO-BE</td> <td> <asp:Label ID="lbltobe" runat="server" Text="-"></asp:Label> </td> </tr> <tr> <td colspan="4" class="center"> <asp:Image ID="imgPicture" runat="server" CssClass="image" /> </td> </tr> <tr> <td style="background-color: #CCCCCC">Attached files</td> <td colspan="3"> <asp:HyperLink ID="hlFiles" runat="server">-</asp:HyperLink> </td> </tr> </table> </div> <div class ="center"> <asp:Label ID="lblDeleted" Visible="false" CssClass ="centerAlign " runat="server" Text="Project was deleted" Font-Size="40pt"></asp:Label> </div> <asp:PlaceHolder ID="phConfirmation" Visible ="false" runat="server"> <div id="confirmation" style="width: 300px; border: 1px solid gray;" class="popup hidden"> <div class="center padding">Please put your comments and confirm action</div> <div> <asp:RadioButtonList ID="rbDecicion" runat="server" RepeatLayout ="Flow" RepeatDirection ="Horizontal" > <asp:ListItem Text ="Approve" Value ="approve" Selected ="true"></asp:ListItem> <asp:ListItem Text="Reject" Value="reject"></asp:ListItem> </asp:RadioButtonList></div> <div class="center padding"> <asp:TextBox ID="txtApprovalComments" runat="server" TextMode ="MultiLine" Height="100px" Width="95%"></asp:TextBox> </div> <div class="left padding"> <asp:Button ID="btnSave" runat="server" Text="Save" /> <asp:Button ID="btnCancel" runat="server" Text="Cancel" /> </div> <asp:HiddenField ID="approval_id" runat ="server" /> </div> <script> 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; } $("#decide").click(function () { $("#approval_id").val($(this).attr("approval_id")) $("#confirmation").removeClass("hidden"); $("#confirmation").center(); }) </script> </asp:PlaceHolder> </form> </body> </html>