Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision ed020148

Von Rolf Fluehmann vor mehr als 6 Jahren hinzugefügt

  • ID ed020148ca2e8b2b3a475a8e2089add1bc60dc14
  • Vorgänger 3e412ce7
  • Nachfolger 6fb83ee8

new view for production batch management

Unterschiede anzeigen:

templates/webpages/batch/_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="batch1">
10
        <tr>
11
          <th align="left">* [% 'Producer' | $T8 %]</th>
12
          <td>[% L.customer_vendor_picker('batch.producer_id', SELF.batch.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('batch.part_id', SELF.batch.part_id, part_type='part,assembly', fat_set_item=1, style='width: 300px') %]</td>
17
        </tr>
18
        <tr>
19
          <th align="left">* [% 'Batch Number' | $T8 %]</th>
20
          <td>[% L.input_tag("batch.batchnumber", SELF.batch.batchnumber, style='width: 300px') %]</td>
21
        </tr>
22
        <tr>
23
          <th align="left">* [% 'Batch Date' | $T8 %]</th>
24
          <td>[% L.date_tag('batch.batchdate', SELF.batch.batchdate, style='width: 300px') %]</td>
25
        </tr>
26
        <tr>
27
          <th align="left">[% 'Batch Location' | $T8 %]</th>
28
          <td>[% L.input_tag("batch.location", SELF.batch.location, style='width: 300px') %]</td>
29
        </tr>
30
        <tr>
31
          <th align="left">[% 'Batch Process' | $T8 %]</th>
32
          <td>[% L.input_tag("batch.process", SELF.batch.process, style='width: 300px') %]</td>
33
        </tr>
34
        <tr>
35
          <th align="left" valign="top">[% 'Notes' | $T8 %]</th>
36
          <td>[% L.textarea_tag('batch.notes', SELF.batch.notes, wrap="soft", style="width: 300px; height: 150px", class="texteditor") %]</td>
37
        </tr>
38
      </table>
39
    </td>
40
    <td>
41
      <table id="batch2">
42
        <tr>
43
          <th align="left">[% 'Insert Date' | $T8 %]</th>
44
          <td>[% SELF.batch.itime_as_date %]</td>
45
        </tr>
46
        <tr>
47
          <th align="left">[% 'Updated' | $T8 %]</th>
48
          <td>[% SELF.batch.mtime_as_date %]</td>
49
        </tr>
50
        <tr>
51
          <th align="left">[% 'Employee' | $T8 %]</th>
52
          <td>[% L.select_tag('batch.employee_id', SELF.all_employees,default=(SELF.batch.employee_id ? SELF.batch.employee_id : SELF.current_employee_id), title_key='safe_name') %]</td>
53
        </tr>
54
      </table>
55
    </td>
56
  </tr>
57
</table>
templates/webpages/batch/form.html
1
[% USE T8 %]
2
[% USE HTML %]
3
[% USE LxERP %]
4
[% USE L %]
5

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

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

  
10
<form method="post" id="batch_form" name="batch_form" action="controller.pl">
11
  [% L.hidden_tag('callback'         , FORM.callback) %]
12
  [% L.hidden_tag('id'               , SELF.batch.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="batch_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 'batch/_basic_data.html' %]
22
    </div>
23
  </div>
24
</form>
25

  
templates/webpages/batch/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="batch_list" name="batch_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.batchnumber %][% 'Batch Number' | $T8 %]: [% SELF.filter_rows.batchnumber %]<br>[% END %]
23
    [% IF SELF.filter_rows.batchdate_from %][% 'Batch Date' | $T8 %]: [% 'From' | $T8 %] [% SELF.filter_rows.batchdate_from %]
24
      [% IF SELF.filter_rows.batchdate_to %] [% 'Until' | $T8 %] [% SELF.filter_rows.batchdate_to %][% END %]<br>
25
    [% ELSE %]
26
      [% IF SELF.filter_rows.batchdate_to %] [% 'Until' | $T8 %] [% SELF.filter_rows.batchdate_to %]<br>[% END %]
27
    [% END %]
28
    [% IF SELF.filter_rows.location %] [% 'Batch Location' | $T8 %]: [% SELF.filter_rows.location %]<br>[% END %]
29
    [% IF SELF.filter_rows.process %] [% 'Batch Process' | $T8 %]: [% SELF.filter_rows.process %]<br>[% END %]
30
    [% IF SELF.filter_rows.insertdate_from %][% 'Insert Date' | $T8 %]: [% 'From' | $T8 %] [% SELF.filter_rows.insertdate_from %]
31
      [% IF SELF.filter_rows.insertdate_to %] [% 'Until' | $T8 %] [% SELF.filter_rows.insertdate_to %][% END %]<br>
32
    [% ELSE %]
33
      [% IF SELF.filter_rows.insertdate_to %] [% 'Until' | $T8 %] [% SELF.filter_rows.insertdate_to %]<br>[% END %]
34
    [% END %]
35
    [% IF SELF.filter_rows.changedate_from %][% 'Update' | $T8 %]: [% 'From' | $T8 %] [% SELF.filter_rows.changedate_from %]
36
      [% IF SELF.filter_rows.changedate_to %] [% 'Until' | $T8 %] [% SELF.filter_rows.changedate_to %][% END %]<br>
37
    [% ELSE %]
38
      [% IF SELF.filter_rows.changedate_to %] [% 'Until' | $T8 %] [% SELF.filter_rows.changedate_to %]<br>[% END %]
39
    [% END %]
40
    [% IF SELF.filter_rows.employee_id %] [% 'Employee' | $T8 %]: [% SELF.employee.safe_name %]<br>[% END %]
41
  </p>
42

  
43
  </table>
44
  <table id="list_table">
45
    <style id="list_table">tr:nth-child(even){background-color:#fffdb0}td,th{padding:0.2em 1em 0.2em 1em}</style>
46
    <thead>
47
      <tr bgcolor="#e3e3e3">
48
        <th align="left">[% 'ID' | $T8 %]</th>
49
          [% FOREACH column = SELF.columns %]
50
            [% SET key = column.key %]
51
            [% SET label = column.label %]
52
            [% IF SELF.filter_columns.$key %]
53
              <th align="left">
54
                <a href="controller.pl?action=Batch/list&callback=[% SELF.callback %]&sort_column=[% key %]&[% SELF.filter %]"
55
                >[% label | $T8 %]</a>
56
              </th>
57
            [% END %]
58
        [% END %]
59
      </tr>
60
    </thead>
61
    <tbody>
62
      [% FOREACH batch = SELF.all_batches %]
63
        <tr>
64
          <td align="left"><a href="controller.pl?action=Batch/edit&db=batches&id=[% batch.id %]&callback=[% SELF.callback %]&sort_column=[% SELF.sort_column %]&[% SELF.filter %]">[% batch.id %]</a></td>
65
          [% IF SELF.filter_columns.producer %]<td align="left">[% batch.producer.displayable_name %]</td>[% END %]
66
          [% IF SELF.filter_columns.part %]<td align="left">[% batch.part.displayable_name %]</td>[% END %]
67
          [% IF SELF.filter_columns.batchnumber %]<td align="left">[% batch.batchnumber %]</td>[% END %]
68
          [% IF SELF.filter_columns.batchdate %]<td align="left">[% batch.batchdate_as_date %]</td>[% END %]
69
          [% IF SELF.filter_columns.location %]<td align="left">[% batch.location %]</td>[% END %]
70
          [% IF SELF.filter_columns.process %]<td align="left">[% batch.process %]</td>[% END %]
71
          [% IF SELF.filter_columns.insertdate %]<td align="left">[% batch.itime_as_date %]</td>[% END %]
72
          [% IF SELF.filter_columns.changedate %]<td align="left">[% batch.mtime_as_date %]</td>[% END %]
73
          [% IF SELF.filter_columns.employee %]<td align="left">[% batch.employee.safe_name %]</td>[% END %]
74
        </tr>
75
      [% END %]
76
    </tbody>
77
    <tfoot>
78
    </tfoot>
79
  </table>
80
  <hr size="3" noshade>
81
</form>
templates/webpages/batch/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="batch_search" name="batch_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.batchnumber" name="filter_columns.batchnumber" class="checkbox" type="checkbox" value="1" checked></td>
25
    <th align="left">[% 'Batch Number' | $T8 %]</th>
26
    <td>[% L.input_tag("filter_rows.batchnumber", SELF.filter_rows.batchnumber, style=style) %]</td>
27
  </tr>
28
  <tr>
29
    <td align="right"><input id="filter_columns.batchdate" name="filter_columns.batchdate" class="checkbox" type="checkbox" value="1" checked></td>
30
    <th align="left">[% 'Batch Date' | $T8 %]</th>
31
    <td>
32
      <table width="300">
33
        <tr>
34
          <td align="left">[% L.date_tag('filter_rows.batchdate_from', SELF.filter_rows.batchdate_from, style='width: 75px') %]</td>
35
          <td>[% 'Bis' | $T8 %]</td>
36
          <td align="right">[% L.date_tag('filter_rows.batchdate_to', SELF.filter_rows.batchdate_to, style='width: 75px') %]</td>
37
        </tr>
38
      </table>
39
    </td>
40
  </tr>
41
  <tr>
42
    <td align="right"><input id="filter_columns.location" name="filter_columns.location" class="checkbox" type="checkbox" value="1" checked></td>
43
    <th align="left">[% 'Batch Location' | $T8 %]</th>
44
    <td>[% L.input_tag("filter_rows.location", SELF.filter_rows.location, style=style) %]</td>
45
  </tr>
46
  <tr>
47
    <td align="right"><input id="filter_columns.process" name="filter_columns.process" class="checkbox" type="checkbox" value="1" checked></td>
48
    <th align="left">[% 'Batch Process' | $T8 %]</th>
49
    <td>[% L.input_tag("filter_rows.process", SELF.filter_rows.process, style=style) %]</td>
50
  </tr>
51
  <tr>
52
    <td align="right"><input id="filter_columns.insertdate" name="filter_columns.insertdate" class="checkbox" type="checkbox" value="1"></td>
53
    <th align="left">[% 'Insert Date' | $T8 %]</th>
54
    <td>
55
      <table width="300">
56
        <tr>
57
          <td align="left">[% L.date_tag('filter_rows.insertdate_from', SELF.filter_rows.insertdate_from, style='width: 75px') %]</td>
58
          <td>[% 'Bis' | $T8 %]</td>
59
          <td align="right">[% L.date_tag('filter_rows.insertdate_to', SELF.filter_rows.insertdate_to, style='width: 75px') %]</td>
60
        </tr>
61
      </table>
62
    </td>
63
  </tr>
64
  <tr>
65
    <td align="right"><input id="filter_columns.changedate" name="filter_columns.changedate" class="checkbox" type="checkbox" value="1"></td>
66
    <th align="left">[% 'Updated' | $T8 %]</th>
67
    <td>
68
      <table width="300">
69
        <tr>
70
          <td align="left">[% L.date_tag('filter_rows.changedate_from', SELF.filter_rows.changedate_from, style='width: 75px') %]</td>
71
          <td>[% 'Bis' | $T8 %]</td>
72
          <td align="right">[% L.date_tag('filter_rows.changedate_to', SELF.filter_rows.changedate_to, style='width: 75px') %]</td>
73
        </tr>
74
      </table>
75
    </td>
76
  </tr>
77
  <tr>
78
    <td align="right"><input id="filter_columns.employee" name="filter_columns.employee" class="checkbox" type="checkbox" value="1"></td>
79
    <th align="left">[% 'Employee' | $T8 %]</th>
80
    <td>[% L.select_tag('filter_rows.employee_id', SELF.all_employees, title_key='safe_name', with_empty=1, style=style) %]</td>
81
  </tr>
82
</table>
83

  
84
</form>

Auch abrufbar als: Unified diff