-
Notifications
You must be signed in to change notification settings - Fork 0
/
pliromi_opliti.aspx
185 lines (163 loc) · 14.9 KB
/
pliromi_opliti.aspx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
<%@ Page Title="Πληρωμή Οπλίτη" Language="C#" MasterPageFile="~/Misthodosia.Master" MaintainScrollPositionOnPostback="true" AutoEventWireup="true" CodeBehind="pliromi_opliti.aspx.cs" Inherits="Web_Misthodosia_Opliton.WebForm1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder" runat="server">
<div class="container">
<h2>Πληρωμή Οπλίτη</h2>
<form id="form1" runat="server" class="form-inline form-group-sm">
<h3 style="text-align: center">Συνολικός Πίνακας Οπλιτών</h3>
<h4>
<asp:Label ID="error" runat="server" CssClass="alert-danger" Visible="false"></asp:Label></h4>
<div class="container">
<asp:GridView ID="TotalOplitis" CssClass="table table-hover" AutoGenerateColumns="false" DataKeyNames="op_id" runat="server" OnRowDataBound="TotalOplitis_RowDataBound" OnRowCommand="TotalOplitis_RowCommand" CellPadding="4" ForeColor="#333333" GridLines="None">
<AlternatingRowStyle BackColor="White" ForeColor="#284775"></AlternatingRowStyle>
<Columns>
<asp:CommandField ShowSelectButton="True" ButtonType="Button" ControlStyle-CssClass="btn btn-info btn-sm"></asp:CommandField>
<asp:BoundField DataField="r_perigrafi" HeaderText="ΒΑΘΜΟΣ" SortExpression="r_perigrafi">
<HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle"></HeaderStyle>
</asp:BoundField>
<asp:BoundField DataField="op_eponymo" HeaderText="ΕΠΩΝΥΜΟ" SortExpression="op_eponymo">
<HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle"></HeaderStyle>
</asp:BoundField>
<asp:BoundField DataField="op_onoma" HeaderText="ΟΝΟΜΑ" SortExpression="op_onoma">
<HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle"></HeaderStyle>
</asp:BoundField>
<asp:BoundField DataField="op_asm" HeaderText="ΑΣΜ" SortExpression="op_asm">
<HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle"></HeaderStyle>
</asp:BoundField>
<asp:BoundField DataField="op_loxos" HeaderText="ΛΟΧΟΣ" SortExpression="op_loxos">
<HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle"></HeaderStyle>
</asp:BoundField>
<asp:BoundField DataField="kat_name" HeaderText="ΚΑΤΗΓΟΡΙΑ" SortExpression="kat_name">
<HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle"></HeaderStyle>
</asp:BoundField>
<asp:BoundField DataField="op_eggrafi" HeaderText="ΗΜ/ΝΙΑ ΕΓΓΡΑΦΗΣ" SortExpression="op_eggrafi">
<HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle"></HeaderStyle>
</asp:BoundField>
<asp:BoundField DataField="op_paratiriseis" HeaderText="ΠΑΡΑΤΗΡΗΣΕΙΣ" SortExpression="op_paratiriseis">
<HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle"></HeaderStyle>
</asp:BoundField>
<asp:BoundField DataField="op_id" SortExpression="op_id" Visible="false">
<HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle"></HeaderStyle>
</asp:BoundField>
</Columns>
<EditRowStyle BackColor="#999999"></EditRowStyle>
<FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White"></FooterStyle>
<HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White"></HeaderStyle>
<PagerStyle HorizontalAlign="Center" BackColor="#284775" ForeColor="White"></PagerStyle>
<RowStyle BackColor="#F7F6F3" ForeColor="#333333"></RowStyle>
<SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333"></SelectedRowStyle>
<SortedAscendingCellStyle BackColor="#E9E7E2"></SortedAscendingCellStyle>
<SortedAscendingHeaderStyle BackColor="#506C8C"></SortedAscendingHeaderStyle>
<SortedDescendingCellStyle BackColor="#FFFDF8"></SortedDescendingCellStyle>
<SortedDescendingHeaderStyle BackColor="#6F8DAE"></SortedDescendingHeaderStyle>
</asp:GridView>
</div>
<div>
<h3>Αναζήτηση Οπλίτη</h3>
<div>
ΑΣΜ: <asp:TextBox ID="asma" runat="server" Width="110px" Height="30px" CssClass="form-control input-sm" TextMode="Search"></asp:TextBox>
Επώνυμο: <asp:TextBox runat="server" ID="lname" Width="150px" Height="30px" CssClass="form-control input-sm" TextMode="Search"></asp:TextBox>
<asp:Button ID="search" runat="server" Text="Αναζήτηση" CssClass="btn btn-primary btn-md" OnClick="search_Click" /><asp:Label ID="aa" runat="server" Visible="false"></asp:Label>
</div>
</div>
<div class="container">
<asp:Panel ID="lastPaymentsPanel" runat="server" Visible="false">
<h3 style="text-align: center">Προηγούμενες Πληρωμές Οπλίτη</h3>
<asp:GridView ID="LastPayments" CssClass="table table-hover" runat="server" AutoGenerateColumns="false" DataKeyNames="p_id" CellPadding="4" OnRowCommand="LastPayments_RowCommand" ForeColor="#333333" GridLines="None">
<AlternatingRowStyle BackColor="White" ForeColor="#284775"></AlternatingRowStyle>
<Columns>
<asp:ButtonField CommandName="Select" Text="Επιλογή" ButtonType="Button" ControlStyle-CssClass="btn btn-info btn-sm"></asp:ButtonField>
<asp:BoundField DataField="r_perigrafi" SortExpression="r_perigrafi" HeaderText="ΒΑΘΜΟΣ"></asp:BoundField>
<asp:BoundField DataField="op_eponymo" HeaderText="ΕΠΩΝΥΜΟ" SortExpression="op_eponymo"></asp:BoundField>
<asp:BoundField DataField="op_onoma" HeaderText="ΟΝΟΜΑ" SortExpression="op_onoma"></asp:BoundField>
<asp:BoundField DataField="p_id" HeaderText="Α/Α ΠΛΗΡΩΜΗΣ" SortExpression="p_id"></asp:BoundField>
<asp:BoundField DataField="p_date" HeaderText="ΗΜ/ΝΙΑ ΠΛΗΡΩΜΗΣ" SortExpression="p_date"></asp:BoundField>
<asp:BoundField DataField="m_perigrafi" HeaderText="ΤΥΠΟΣ ΠΛΗΡΩΜΗΣ" SortExpression="m_perigrafi"></asp:BoundField>
<asp:BoundField DataField="p_posoPliromis" HeaderText="ΠΟΣΟ ΣΕ ΕΥΡΩ" SortExpression="p_posoPliromis"></asp:BoundField>
<asp:BoundField DataField="p_id" SortExpression="p_id" Visible="False"></asp:BoundField>
</Columns>
<EditRowStyle BackColor="#999999"></EditRowStyle>
<FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White"></FooterStyle>
<HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White"></HeaderStyle>
<PagerStyle HorizontalAlign="Center" BackColor="#284775" ForeColor="White"></PagerStyle>
<RowStyle BackColor="#F7F6F3" ForeColor="#333333"></RowStyle>
<SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333"></SelectedRowStyle>
<SortedAscendingCellStyle BackColor="#E9E7E2"></SortedAscendingCellStyle>
<SortedAscendingHeaderStyle BackColor="#506C8C"></SortedAscendingHeaderStyle>
<SortedDescendingCellStyle BackColor="#FFFDF8"></SortedDescendingCellStyle>
<SortedDescendingHeaderStyle BackColor="#6F8DAE"></SortedDescendingHeaderStyle>
</asp:GridView>
<asp:Button ID="anaforaPliromis" runat="server" Text="Αναλυτικά Στοιχεία Πληρωμής" CssClass="btn btn-primary btn-md" OnClick="anaforaPliromis_Click" OnClientClick="form1.target =('_blank';)" /><asp:Label ID="aaPliromis" runat="server" Visible="false"></asp:Label>
</asp:Panel>
</div>
<br />
<p>
<strong>Κατηγορία:</strong> <asp:TextBox runat="server" ID="katigoria" Width="450px" CssClass="form-control input-sm" ReadOnly="True"></asp:TextBox>
</p>
<p>
<strong>Καταλογιστέο:</strong> <asp:TextBox runat="server" ID="katalogisteo" Width="60px" CssClass="form-control input-sm" ReadOnly="True"></asp:TextBox> €
<strong>Κρατήσεις:</strong> <asp:TextBox runat="server" ID="kratiseis" Width="60px" CssClass="form-control input-sm" ReadOnly="True"></asp:TextBox> €
<strong>Πληρωτέο:</strong> <asp:TextBox runat="server" ID="pliroteo" Width="60px" CssClass="form-control input-sm" ReadOnly="True"></asp:TextBox> €
<strong>Δώρο Χριστουγέννων:</strong> <asp:TextBox runat="server" ID="dx" Width="60px" CssClass="form-control input-sm" ReadOnly="True"></asp:TextBox> €
<strong>Δώρο Πάσχα:</strong> <asp:TextBox runat="server" ID="dp" Width="60px" CssClass="form-control input-sm" ReadOnly="True"></asp:TextBox> €
</p>
<p>
<strong>Δικαιολογητικά:</strong> <asp:BulletedList ID="BulletedListDik" runat="server" DataTextField="d_perigrafi"></asp:BulletedList>
</p>
<p>
<strong>Τύπος Πληρωμής:</strong>
<asp:RadioButtonList ID="RadioButtonListMisthodType" CssClass="radio-inline" runat="server" DataTextField="m_perigrafi" DataValueField="m_id" OnSelectedIndexChanged="RadioButtonListMisthodType_SelectedIndexChanged" AutoPostBack="True" Enabled="false"></asp:RadioButtonList>
</p>
<div class="container">
<asp:Panel ID="PanelAnadromika" runat="server" Visible="false">
<h3>Υπολογισμός Αναδρομικών</h3>
<p>
<asp:RadioButtonList ID="logosAnadromikon" runat="server" AutoPostBack="true" OnSelectedIndexChanged="logosAnadromikon_SelectedIndexChanged" RepeatDirection="Horizontal">
<asp:ListItem>Λόγω αλλαγής κατηγορίας </asp:ListItem>
<asp:ListItem>Λόγω απουσίας</asp:ListItem>
</asp:RadioButtonList>
</p>
<asp:Panel ID="panelAllagiKatigorias" runat="server" Visible="false">
<asp:Label ID="error2" runat="server" ForeColor="#cc0000" Visible="false"></asp:Label>
<p>Προηγούμενη Κατηγορία: <asp:TextBox ID="oldKatigoria" runat="server" Width="450px" CssClass="form-control input-sm" ReadOnly="True"></asp:TextBox> </p>
<p>Τρέχουσα Κατηγορία: <asp:TextBox ID="currentKatigoria" runat="server" Width="450px" CssClass="form-control input-sm" ReadOnly="True"></asp:TextBox></p>
<p>Ισχύς Μεταβολής από: <asp:TextBox ID="isxysKatigorias" runat="server" CssClass="form-control input-sm" TextMode="Date" ReadOnly="true"></asp:TextBox> Ημερομηνία Μεταβολής: <asp:TextBox ID="metaboliDate" runat="server" CssClass="form-control input-sm" TextMode="Date" ReadOnly="true"></asp:TextBox></p>
</asp:Panel>
<asp:Panel ID="panelApousias" runat="server" Visible="false">
<asp:Label ID="error3" runat="server" Visible="false" ForeColor="#cc0000"></asp:Label>
<p>Ημ/νία Τελ. Πληρωμής: <asp:TextBox ID="lastPliromiDate" runat="server" CssClass="form-control input-sm" TextMode="Date" ReadOnly="true"></asp:TextBox> Τρέχουσα Ημ/νία Πληρωμής: <asp:TextBox ID="currentDate" runat="server" CssClass="form-control input-sm" TextMode="Date" ReadOnly="true"></asp:TextBox> </p>
</asp:Panel>
<p>
<asp:Button ID="anadromikaCalculate" runat="server" Text="Υπολογισμός Αναδρομικών" CssClass="btn btn-primary btn-md" OnClick="anadromikaCalculate_Click" /> Ωφειλούμενα Αναδρομικά: <asp:TextBox ID="anadromika" runat="server" CssClass="form-control input-sm" TextMode="Date" ReadOnly="true"></asp:TextBox>
€
</p>
</asp:Panel>
</div>
<br />
<p><strong>Ποσό προς πληρωμή:</strong> <asp:TextBox runat="server" ID="posoPliromis" Width="60px" CssClass="form-control input-sm" ReadOnly="True" Enabled="false"></asp:TextBox> €</p>
<p><strong>Ημερομηνία Πληρωμής:</strong> <asp:TextBox ID="priromiDate" runat="server" CssClass="form-control input-sm" TextMode="Date"></asp:TextBox></p>
<div>
<asp:Button ID="cancelButton" runat="server" Text="Άκυρο" CssClass="btn btn-primary btn-md" OnClick="cancelButton_Click" />
<asp:Button ID="pliromiButton" runat="server" Text="Πληρωμή" CssClass="btn btn-primary btn-md" OnClick="saveButton_Click" />
</div>
</form>
<script src="js/jquery.min.js" type="text/javascript"></script>
<script src="js/datepicker.js" type="text/javascript"></script>
<script type="text/javascript">
$(document).ready(function () {
var dp = $('#<%=priromiDate.ClientID%>');
dp.datepicker({
changeMonth: true,
changeYear: true,
format: "dd/mm/yyyy",
language: "gr"
}).on('changeDate', function (ev) {
$(this).blur();
$(this).datepicker('hide');
});
});
</script>
</div>
<br />
<strong></strong>
</asp:Content>