Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 67ec6200

Von Rolf Fluehmann vor etwa 6 Jahren hinzugefügt

  • ID 67ec6200bc5a69059591f5db41b4335eb7d19095
  • Vorgänger 4ee71121
  • Nachfolger 6b349b9d

new view for production piece management

Unterschiede anzeigen:

templates/webpages/piece/_basic_data.html
1
[% USE T8 %]
2
[% USE HTML %]
3
[% USE LxERP %]
4
[% USE L %]
5

  
6
<table id="basic_data_table" width="50%">
7
  <tr valign="top">
8
    <td>
9
      <table id="piece1">
10
        <tr>
11
          <th align="left">* [% 'Producer' | $T8 %]</th>
12
          <td>[% L.customer_vendor_picker('piece.producer_id', SELF.piece.producer_id, type='vendor', fat_set_item=1, style='width: 300px', class="initial_focus") %]</td>
13
        </tr>
14
        <tr>
15
          <th align="left">* [% 'Part' | $T8 %]</th>
16
          <td>[% L.part_picker('piece.part_id', SELF.piece.part_id, part_type='part,assembly', fat_set_item=1, style='width: 300px') %]</td>
17
        </tr>
18
        <tr>
19
          <th align="left">[% 'Batch' | $T8 %]</th>
20
          <td>[% L.select_tag('piece.batch_id', SELF.all_batches, default=SELF.piece.batch_id, title_key='displayable_name', style='width: 300px') %]</td>
21
        </tr>
22
        <tr>
23
          <th align="left">* [% 'Serial Number' | $T8 %]</th>
24
          <td>[% L.input_tag("piece.serialnumber", SELF.piece.serialnumber, style='width: 300px') %]</td>
25
        </tr>
26
        <tr>
27
          <th align="left">[% 'Weight' | $T8 %]</th>
28
          <td>[% L.input_tag("piece.weight", SELF.piece.weight, style='width: 300px') %]</td>
29
        </tr>
30
        <tr>
31
          <th align="left">[% 'Incoming Delivery Order' | $T8 %]</th>
32
          <td>[% L.select_tag('piece.delivery_in_id', SELF.all_deliveries, default=SELF.piece.delivery_in_id, title_key='donumber', style='width: 300px') %]</td>
33
        </tr>
34
        <tr>
35
          <th align="left">[% 'Bin' | $T8 %]</th>
36
          <td>[% L.select_tag('piece.bin_id', SELF.all_bins, default=(SELF.piece.bin_id), title_key='full_description', style='width: 300px') %]</td>
37
        </tr>
38
        <tr>
39
          <th align="left">[% 'Outgoing Delivery Order' | $T8 %]</th>
40
          <td>[% L.select_tag('piece.delivery_out_id', SELF.all_deliveries, default=SELF.piece.delivery_out_id, title_key='donumber', style='width: 300px') %]</td>
41
        </tr>
42
        <tr>
43
          <th align="left" valign="top">[% 'Notes' | $T8 %]</th>
44
          <td>[% L.textarea_tag('piece.notes', SELF.piece.notes, wrap="soft", style="width: 300px; height: 150px", class="texteditor") %]</td>
45
        </tr>
46
      </table>
47
    </td>
48
    <td>
49
      <table id="piece2">
50
        <tr>
51
          <th align="left">[% 'Insert Date' | $T8 %]</th>
52
          <td>[% SELF.piece.itime_as_date %]</td>
53
        </tr>
54
        <tr>
55
          <th align="left">[% 'Updated' | $T8 %]</th>
56
          <td>[% SELF.piece.mtime_as_date %]</td>
57
        </tr>
58
        <tr>
59
          <th align="left">[% 'Employee' | $T8 %]</th>
60
            <td>[% L.select_tag('piece.employee_id', SELF.all_employees, default=(SELF.piece.employee_id ? SELF.piece.employee_id : SELF.current_employee_id), title_key='safe_name') %]</td>
61
        </tr>
62
      </table>
63
    </td>
64
  </tr>
65
</table>
templates/webpages/piece/form.html
1
[% USE T8 %]
2
[% USE HTML %]
3
[% USE LxERP %]
4
[% USE L %]
5

  
6
<h1>[% FORM.title %] [% IF SELF.piece.id %]: [% HTML.escape(SELF.piece.displayable_name) %][% END %]</h1>
7

  
8
[% INCLUDE 'common/flash.html' %]
9

  
10
<form method="post" id="piece_form" name="piece_form" action="controller.pl">
11
  [% L.hidden_tag('callback'         , FORM.callback) %]
12
  [% L.hidden_tag('id'               , SELF.piece.id) %]
13
  [% L.hidden_tag('filter_columns'   , SELF.filter_columns) %]
14
  [% L.hidden_tag('filter_rows'      , SELF.filter_rows) %]
15
  [% L.hidden_tag('sort_column'      , SELF.sort_column) %]
16
  <div id="piece_tabs" class="tabwidget">
17
    <ul>
18
      <li><a href="#basic_data">[% 'Basic Data' | $T8 %]</a></li>
19
    </ul>
20
    <div id="basic_data">
21
      [% PROCESS 'piece/_basic_data.html' %]
22
    </div>
23
  </div>
24
</form>
25

  
templates/webpages/piece/list.html
1
[% USE HTML %]
2
[% USE T8 %]
3
[% USE LxERP %]
4
[% USE L %]
5

  
6
[% SET style='width: 300px' %]
7

  
8
<h1>[% HTML.escape(title) %]</h1>
9

  
10
[% INCLUDE 'common/flash.html' %]
11

  
12
<form method="post" id="piece_list" name="piece_list" action="controller.pl">
13
  [% L.hidden_tag('callback'      , FORM.callback) %]
14
  [% L.hidden_tag('filter_columns', SELF.filter_columns) %]
15
  [% L.hidden_tag('filter_rows'   , SELF.filter_rows) %]
16
  [% L.hidden_tag('sort_column'   , SELF.sort_column) %]
17

  
18
  <p style="padding:0 1em 0 1em">
19
    [% 'all' | $T8 %]<br>
20
    [% IF SELF.filter_rows.producer_id %][% 'Producer' | $T8 %]: [% SELF.vendor.displayable_name %]<br>[% END %]
21
    [% IF SELF.filter_rows.part_id %][% 'Part' | $T8 %]: [% SELF.part.displayable_name %]<br>[% END %]
22
    [% IF SELF.filter_rows.batch_id %][% 'Batch' | $T8 %]: [% SELF.batch.batchnumber %]<br>[% END %]
23
    [% IF SELF.filter_rows.serialnumber %][% 'Serial Number' | $T8 %]: [% SELF.filter_rows.serialnumber %]<br>[% END %]
24
    [% IF SELF.filter_rows.weight_from %][% 'Weight' | $T8 %]: [% 'From' | $T8 %] SELF.filter_rows.weight_from %]<br>
25
      [% IF SELF.filter_rows.weight_to %] [% 'Until' | $T8 %] [% SELF.filter_rows.weight_to %][% END %]<br>
26
    [% ELSE %]
27
      [% IF SELF.filter_rows.weight_to %] [% 'Until' | $T8 %] [% SELF.filter_rows.weight_to %]<br>[% END %]
28
    [% END %]
29
    [% IF SELF.filter_rows.delivery_in_id %][% 'Incoming Delivery Order' | $T8 %]: [% SELF.delivery_in.donumber %]<br>[% END %]
30
    [% IF SELF.filter_rows.bin_id %][% 'Bin' | $T8 %]: [% SELF.bin.full_description %]<br>[% END %]
31
    [% IF SELF.filter_rows.delivery_out_id %][% 'Outgoing Delivery Order' | $T8 %]: [% SELF.delivery_out.donumber %]<br>[% END %]
32
    [% IF SELF.filter_rows.insertdate_from %][% 'Insert Date' | $T8 %]: [% 'From' | $T8 %] [% SELF.filter_rows.insertdate_from %]
33
      [% IF SELF.filter_rows.insertdate_to %] [% 'Until' | $T8 %] [% SELF.filter_rows.insertdate_to %][% END %]<br>
34
    [% ELSE %]
35
      [% IF SELF.filter_rows.insertdate_to %] [% 'Until' | $T8 %] [% SELF.filter_rows.insertdate_to %]<br>[% END %]
36
    [% END %]
37
    [% IF SELF.filter_rows.changedate_from %][% 'Update' | $T8 %]: [% 'From' | $T8 %] [% SELF.filter_rows.changedate_from %]
38
      [% IF SELF.filter_rows.changedate_to %] [% 'Until' | $T8 %] [% SELF.filter_rows.changedate_to %][% END %]<br>
39
    [% ELSE %]
40
      [% IF SELF.filter_rows.changedate_to %] [% 'Until' | $T8 %] [% SELF.filter_rows.changedate_to %]<br>[% END %]
41
    [% END %]
42
    [% IF SELF.filter_rows.employee_id %] [% 'Employee' | $T8 %]: [% SELF.employee.safe_name %]<br>[% END %]
43

  
44
  </p>
45
  </table>
46
  <table id="list_table">
47
    <style id="list_table">tr:nth-child(even){background-color:#fffdb0}td,th{padding:0.2em 1em 0.2em 1em}</style>
48
    <thead>
49
      <tr bgcolor="#e3e3e3">
50
        <th align="left">[% 'ID' | $T8 %]</th>
51
          [% FOREACH column = SELF.columns %]
52
            [% SET key = column.key %]
53
            [% SET label = column.label %]
54
            [% IF SELF.filter_columns.$key %]
55
              <th align="left">
56
                <a href="controller.pl?action=Piece/list&callback=[% SELF.callback %]&sort_column=[% key %]&[% SELF.filter %]"
57
                >[% label | $T8 %]</a>
58
              </th>
59
            [% END %]
60
        [% END %]
61
      </tr>
62
    </thead>
63
    <tbody>
64
      [% FOREACH piece = SELF.all_pieces %]
65
        <tr>
66
          <td align="left"><a href="controller.pl?action=Piece/edit&db=pieces&id=[% piece.id %]&callback=[% SELF.callback %]&sort_column=[% SELF.sort_column %]&[% SELF.filter %]">[% piece.id %]</a></td>
67
          [% IF SELF.filter_columns.producer %]<td align="left">[% piece.producer.displayable_name %]</td>[% END %]
68
          [% IF SELF.filter_columns.part %]<td align="left">[% piece.part.displayable_name %]</td>[% END %]
69
          [% IF SELF.filter_columns.batch %]<td align="left">[% piece.batch.batchnumber %]</td>[% END %]
70
          [% IF SELF.filter_columns.serialnumber %]<td align="left">[% piece.serialnumber %]</td>[% END %]
71
          [% IF SELF.filter_columns.weight %]<td align="left">[% piece.weight %]</td>[% END %]
72
          [% IF SELF.filter_columns.delivery_in %]<td align="left">[% piece.delivery.donumber %]</td>[% END %]
73
          [% IF SELF.filter_columns.bin %]<td align="left">[% piece.bin.full_description %]</td>[% END %]
74
          [% IF SELF.filter_columns.delivery_out %]<td align="left">[% piece.delivery.donumber %]</td>[% END %]
75
          [% IF SELF.filter_columns.insertdate %]<td align="left">[% piece.itime_as_date %]</td>[% END %]
76
          [% IF SELF.filter_columns.changedate %]<td align="left">[% piece.mtime_as_date %]</td>[% END %]
77
          [% IF SELF.filter_columns.employee %]<td align="left">[% piece.employee.safe_name %]</td>[% END %]
78
        </tr>
79
      [% END %]
80
    </tbody>
81
    <tfoot>
82
    </tfoot>
83
  </table>
84
  <hr size="3" noshade>
85
</form>
templates/webpages/piece/search.html
1
[% USE T8 %]
2
[% USE HTML %]
3
[% USE LxERP %]
4
[% USE L %]
5

  
6
[% SET style='width: 300px' %]
7

  
8
<h1>[% HTML.escape(title) %]</h1>
9

  
10
<form method="post" id="piece_search" name="piece_search" action="controller.pl">
11

  
12
<table id="search_table" width="50%">
13
  <tr valign="top">
14
    <td align="right"><input id="filter_columns.producer" name="filter_columns.producer" class="checkbox" type="checkbox" value="1" checked></td>
15
    <th align="left">[% 'Producer' | $T8 %]</th>
16
    <td align="left">[% L.customer_vendor_picker('filter_rows.producer_id', SELF.filter_rows.producer_id, type='vendor', fat_set_item=1, style=style, class='initiacheck.focus') %]</td>
17
  </tr>
18
  <tr>
19
    <td align="right"><input id="filter_columns.part" name="filter_columns.part" class="checkbox" type="checkbox" value="1" checked></td>
20
    <th align="left">[% 'Part' | $T8 %]</th>
21
    <td>[% L.part_picker('filter_rows.part_id', SELF.filter_rows.part_id, part_type='part,assembly', fat_set_item=1, style=style) %]</td>
22
  </tr>
23
  <tr>
24
    <td align="right"><input id="filter_columns.batch" name="filter_columns.batch" class="checkbox" type="checkbox" value="1" checked></td>
25
    <th align="left">[% 'Batch' | $T8 %]</th>
26
    <td>[% L.select_tag('filter_rows.batch_id', SELF.all_batches, title_key='batchnumber', with_empty=1, style=style) %]</td>
27
  </tr>
28
  <tr>
29
    <td align="right"><input id="filter_columns.serialnumber" name="filter_columns.serialnumber" class="checkbox" type="checkbox" value="1" checked></td>
30
    <th align="left">[% 'Serial Number' | $T8 %]</th>
31
    <td>[% L.input_tag("filter_rows.serialnumber", SELF.filter_rows.serialnumber, style=style) %]</td>
32
  </tr>
33
    <td align="right"><input id="filter_columns.weight" name="filter_columns.weight" class="checkbox" type="checkbox" value="1"></td>
34
    <th align="left">[% 'Weight' | $T8 %]</th>
35
    <td>
36
      <table width="300">
37
        <tr>
38
          <td align="left">[% L.input_tag('filter_rows.weight_from', SELF.filter_rows.weight_from, style='width: 75px') %]</td>
39
          <td>[% 'Bis' | $T8 %]</td>
40
          <td align="right">[% L.input_tag('filter_rows.weight_to', SELF.filter_rows.weight_to, style='width: 75px') %]</td>
41
        </tr>
42
      </table>
43
    </td>
44
  <tr>
45
    <td align="right"><input id="filter_columns.delivery_in" name="filter_columns.delivery_in" class="checkbox" type="checkbox" value="1" checked></td>
46
    <th align="left">[% 'Incoming Delivery Order' | $T8 %]</th>
47
    <td>[% L.select_tag('filter_rows.delivery_in_id', SELF.all_deliveries, title_key='donumber', with_empty=1, style=style) %]</td>
48
  </tr>
49
  <tr>
50
    <td align="right"><input id="filter_columns.bin" name="filter_columns.bin" class="checkbox" type="checkbox" value="1" checked></td>
51
    <th align="left">[% 'Bin' | $T8 %]</th>
52
    <td>[% L.select_tag('filter_rows.bin_id', SELF.all_bins, title_key='full_description', with_empty=1, style=style) %]</td>
53
  </tr>
54
  <tr>
55
    <td align="right"><input id="filter_columns.delivery_out" name="filter_columns.delivery_out" class="checkbox" type="checkbox" value="1" checked></td>
56
    <th align="left">[% 'Delivery Order' | $T8 %]</th>
57
    <td>[% L.select_tag('filter_rows.delivery_out_id', SELF.all_deliveries, title_key='donumber', with_empty=1, style=style) %]</td>
58
  </tr>
59
  <tr>
60
    <td align="right"><input id="filter_columns.insertdate" name="filter_columns.insertdate" class="checkbox" type="checkbox" value="1"></td>
61
    <th align="left">[% 'Insert Date' | $T8 %]</th>
62
    <td>
63
      <table width="300">
64
        <tr>
65
          <td align="left">[% L.date_tag('filter_rows.insertdate_from', SELF.filter_rows.insertdate_from, style='width: 75px') %]</td>
66
          <td>[% 'Bis' | $T8 %]</td>
67
          <td align="right">[% L.date_tag('filter_rows.insertdate_to', SELF.filter_rows.insertdate_to, style='width: 75px') %]</td>
68
        </tr>
69
      </table>
70
    </td>
71
  </tr>
72
  <tr>
73
    <td align="right"><input id="filter_columns.changedate" name="filter_columns.changedate" class="checkbox" type="checkbox" value="1"></td>
74
    <th align="left">[% 'Updated' | $T8 %]</th>
75
    <td>
76
      <table width="300">
77
        <tr>
78
          <td align="left">[% L.date_tag('filter_rows.changedate_from', SELF.filter_rows.changedate_from, style='width: 75px') %]</td>
79
          <td>[% 'Bis' | $T8 %]</td>
80
          <td align="right">[% L.date_tag('filter_rows.changedate_to', SELF.filter_rows.changedate_to, style='width: 75px') %]</td>
81
        </tr>
82
      </table>
83
    </td>
84
  </tr>
85
  <tr>
86
    <td align="right"><input id="filter_columns.employee" name="filter_columns.employee" class="checkbox" type="checkbox" value="1"></td>
87
    <th align="left">[% 'Employee' | $T8 %]</th>
88
    <td>[% L.select_tag('filter_rows.employee_id', SELF.all_employees, title_key='safe_name', with_empty=1, style=style) %]</td>
89
  </tr>
90
</table>
91

  
92
</form>

Auch abrufbar als: Unified diff