-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbom_line_GBDEDIT.xml
68 lines (68 loc) · 6.6 KB
/
bom_line_GBDEDIT.xml
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
<GroupBox Name="GBDEDITbom_line"><Ctrls>
<GroupBox cols="xs12 sm6 md4" Multiline="0" Name="GB_bom_sequence"><Ctrls>
<Label Align="Right" Text="bom_sequence" Name="lb_bom_sequence" Size="60,20"/>
<ComboBox Weight="170" Text="" ToolTip="ttp_bom_sequence" Items="1~50*10" Name="bom_sequence" Size="170,100"/>
</Ctrls></GroupBox>
<GroupBox cols="xs12 sm6 md4" Multiline="0" Name="GB_routing_sequence"><Ctrls>
<Label Align="Right" Text="routing_sequence" Name="lb_routing_sequence" Size="60,20"/>
<ComboBox Weight="170" Text="" ToolTip="ttp_routing_sequence" Name="routing_sequence" Size="170,100">
<DbDetails fcsm="true">
<Index>routing_sequence</Index>
<DbTable>mes_trace.bom_routing_line</DbTable>
<Data>routing_sequence,routing_seq_num,routing_sequence</Data>
<Where>bom_header_id='%{bom_header_id}'</Where>
<queryFormat/></DbDetails></ComboBox>
</Ctrls></GroupBox>
<GroupBox cols="xs12 sm6 md4" Multiline="0" overlap="pre" Name="GB_bom_header_id" Visible="false"><Ctrls>
<Label Align="Right" Text="bom_header_id" overlap="pre" Name="lb_bom_header_id" readonly="true" Size="60,20" Visible="false"/>
<TextBox Weight="170" Text="" ToolTip="ttp_bom_header_id" overlap="pre" Name="bom_header_id" readonly="true" Size="170,20" Visible="false"><OnEnChange><DbDetails fcsm="true"><DbTable>mes_trace.bom_routing_line brl JOIN mes_trace.bom_routing_header brh ON brl.bom_routing_header_id=brh.bom_routing_header_id JOIN mes_trace.bom_header bh ON bh.item_id_m=brh.item_id_m AND bh.org_id=brh.org_id JOIN mes_trace.bom_standard_operation bso ON brl.standard_operation_id=bso.bom_standard_operation_id</DbTable><Data>standard_operation,concat(routing_sequence,'-',routing_seq_num) rsrsn,routing_seq_num,routing_sequence</Data></DbDetails><submit next="routing_sequence" namelist="DbDetails"/></OnEnChange></TextBox>
</Ctrls></GroupBox>
<GroupBox cols="xs12 sm6 md4" Multiline="0" Name="GB_component_item_id_m"><Ctrls>
<Label Align="Right" Text="component_item_id_m" Name="lb_component_item_id_m" readonly="true" Size="60,20"/>
<TextBox Weight="150" Text="" ToolTip="ttp_component_item_id_m" Name="component_item_id_m" readonly="true" Size="150,20">
<DbDetails>
<Index>item_id_m</Index>
<DbTable>mes_trace.item</DbTable>
<Data>item_number,wip_supply_subinventory,wip_supply_locator,wip_supply_type,item_id_m</Data>
<Where>(item_type=106 or item_type=105) and org_id='%{orgid}'</Where>
<queryFormat/></DbDetails><OnEditChange><DbDetails><Where>and item_number like'%%{component_item_id_m[windowtext]}%'</Where></DbDetails><submit namelist="DbDetails"/></OnEditChange> <OnEnChange><if cond="!%{bom_lineLst[wip_supply_type]}"><assign name="wip_supply_type[option_line_id]" function="SetSel" expr="%{component_item_id_m[wip_supply_type]}"/></if><if cond="!%{bom_lineLst[supply_sub_inventory]}"><assign name="supply_sub_inventory[subinventory_id]" function="SetSel" expr="%{component_item_id_m[wip_supply_subinventory]}"/></if><if cond="!%{bom_lineLst[supply_locator]}"><assign name="supply_locator[locator_id]" function="SetSel" expr="%{component_item_id_m[wip_supply_locator]}"/></if></OnEnChange></TextBox>
<MagicCtrl Name="pickcomponent_item_id_m" Link="tip:Pick" images=",data/search.png" button="type:0" Size="20,20"><OnClick><assign name="$parent.item_pick.frmwndctrl" expr="bom_line.component_item_id_m"/><assign name="$parent.item_pick.org_id" expr="%{orgid}"/><assign name="$parent.item_pick.excond" expr="and item_type in (105,106)"/><submit next="$parent.item_pick.itemLst"/></OnClick></MagicCtrl>\r\n</Ctrls></GroupBox>
<BR AutoHeight="1"/><GroupBox cols="xs12 sm6 md4" Multiline="0" Name="GB_usage_basis"><Ctrls>
<Label Align="Right" Text="usage_basis" onload="init" Name="lb_usage_basis" Size="60,20" SelectedIndex="0"/>
<ComboBox Weight="170" Text="" ToolTip="ttp_usage_basis" onload="init" Name="usage_basis" Size="170,100" SelectedIndex="0">
<DbDetails>
<Index>option_line_id</Index>
<DbTable>mes_trace.option_line</DbTable>
<Data>option_line_value,option_line_id</Data>
<Where>option_header_id=138</Where>
<queryFormat/></DbDetails></ComboBox>
</Ctrls></GroupBox>
<GroupBox cols="xs12 sm6 md4" Multiline="0" Name="GB_usage_quantity"><Ctrls>
<Label Align="Right" Text="usage_quantity" Name="lb_usage_quantity" Size="60,20"/>
<TextBox Weight="170" Text="" ToolTip="ttp_usage_quantity" Name="usage_quantity" Size="170,20"/>
</Ctrls></GroupBox>
<GroupBox cols="xs12 sm6 md4" Multiline="0" Name="GB_yield"><Ctrls>
<Label Align="Right" Text="yield" Name="lb_yield" Size="60,20"/>
<TextBox Weight="170" Text="" ToolTip="ttp_yield" Name="yield" Size="170,20"/>
</Ctrls></GroupBox>
<GroupBox cols="xs12 sm6 md4" Multiline="0" overlap="pre" Name="GB_created_by" Visible="false"><Ctrls>
<Label Align="Right" Text="created_by" overlap="pre" Name="lb_created_by" Size="60,20" Visible="false"/>
<TextBox Weight="170" Text="" ToolTip="ttp_created_by" overlap="pre" Name="created_by" Size="170,20" Visible="false"/>
</Ctrls></GroupBox>
<GroupBox cols="xs12 sm6 md4" Multiline="0" overlap="pre" Name="GB_creation_date" Visible="false"><Ctrls>
<Label Align="Right" Text="creation_date" overlap="pre" Name="lb_creation_date" Size="60,20" Visible="false"/>
<DateTime Weight="170" Text="" ToolTip="ttp_creation_date" overlap="pre" Name="creation_date" Size="170,20" Visible="false" Format="yyyy-MM-dd HH:mm:ss"/>
</Ctrls></GroupBox>
<GroupBox cols="xs12 sm6 md4" Multiline="0" overlap="pre" Name="GB_last_update_by" Visible="false"><Ctrls>
<Label Align="Right" Text="last_update_by" overlap="pre" Name="lb_last_update_by" Size="60,20" Visible="false"/>
<TextBox Weight="170" Text="" ToolTip="ttp_last_update_by" overlap="pre" Name="last_update_by" Size="170,20" Visible="false"/>
</Ctrls></GroupBox>
<GroupBox cols="xs12 sm6 md4" Multiline="0" overlap="pre" Name="GB_last_update_date" Visible="false"><Ctrls>
<Label Align="Right" Text="last_update_date" overlap="pre" Name="lb_last_update_date" Size="60,20" Visible="false"/>
<DateTime Weight="170" Text="" ToolTip="ttp_last_update_date" overlap="pre" Name="last_update_date" Size="170,20" Visible="false" Format="yyyy-MM-dd HH:mm:ss"/>
</Ctrls></GroupBox>
<GroupBox cols="xs12 sm6 md4" Multiline="0" overlap="pre" Name="GB_bom_line_id" Visible="false"><Ctrls>
<Label Align="Right" Text="bom_line_id" overlap="pre" Name="lb_bom_line_id" readonly="true" Size="60,20" Visible="false"/>
<TextBox Weight="170" Text="" ToolTip="ttp_bom_line_id" overlap="pre" Name="bom_line_id" readonly="true" Size="170,20" Visible="false"><OnEnChange><if cond="'%{bom_line_id}'"><SetVisible name="insertbom_line" Visible="0"/><SetVisible name="modifybom_line" Visible="1"/><else/><SetVisible name="insertbom_line" Visible="1"/><SetVisible name="modifybom_line" Visible="0"/></if></OnEnChange></TextBox>
</Ctrls></GroupBox>
</Ctrls></GroupBox>