-
Notifications
You must be signed in to change notification settings - Fork 2
/
bottle_transaction_op_GBOPE.xml
37 lines (37 loc) · 2.43 KB
/
bottle_transaction_op_GBOPE.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
<GroupBox cols="xs12 sm6 md4" Name="GBOPEbottle_transaction" Size="100,100"><Ctrls>
<Button sqlpkinsert="bottle_transactionid" Text="create" ToolTip="ttp_createbottle_transaction" Name="insertbottle_transaction" Size="50,20">
<OnClick>
<DbDetails mode="insert" fcsm="1">
<DbTable>his.bottle_transaction</DbTable>
<Required>%{dataRequired}</Required>
<Requireless>%{dataRequireless}</Requireless>
<Data>bottleid[bottleid],medicineid[medicineid],weight_cur,uses_flag,reftbl,refid</Data>
<DataEx>opera,uptime;'%{operaid}',now()</DataEx>
<queryFormat>insert into %{table} %{data}</queryFormat></DbDetails>
<submit namelist="DbDetails"/><if cond="!%{insertbottle_transaction[broke]}"><if cond="%{refreshAfterEdit}==1"><submit next="bottle_transactionLst" delay="1000"/><elseif cond="%{refreshAfterEdit}==2"/><if cond="1"><if cond="'%{frmwndctrl}'"><submit next="%{frmwndctrl}" delay="1000"/><else/><submit next="$parent.bottle_transaction_vLst" delay="1000"/></if></if></if></if>
</OnClick>
</Button><TAB/>
<Button Text="modify" ToolTip="ttp_modifybottle_transaction" Name="modifybottle_transaction" Size="50,20">
<OnClick>
<DbDetails mode="update" fcsm="1">
<DbTable>his.bottle_transaction</DbTable>
<Required>%{dataRequired}</Required>
<Requireless>%{dataRequireless}</Requireless>
<Data>bottleid[bottleid],medicineid[medicineid],weight_cur,uses_flag,reftbl,refid</Data>
<DataEx>uptime;now()</DataEx>
<Where>bottle_transactionid='%{bottle_transactionid}'</Where>
<queryFormat>update %{table} set %{data} where %{where}</queryFormat></DbDetails>
<submit namelist="DbDetails"/><if cond="!%{modifybottle_transaction[broke]}"><if cond="%{refreshAfterEdit}==1"><submit next="bottle_transactionLst" delay="1000"/><elseif cond="%{refreshAfterEdit}==2"/><if cond="'%{frmwndctrl}'"><submit next="%{frmwndctrl}" delay="1000"/><else/><submit next="$parent.bottle_transaction_vLst" delay="1000"/></if></if></if>
</OnClick>
</Button><TAB/>
<Button Text="reset" ToolTip="ttp_resetbottle_transaction" Name="resetbottle_transaction" Size="50,20">
<OnClick>
<submit next="GBDEDITbottle_transaction" function="reset"/>
</OnClick>
</Button><TAB/>
<Button Text="Search" ToolTip="ttp_gsearchbottle_transaction" Name="gsearchbottle_transaction" Size="50,20" visible="false">
<OnClick>
<search next="bottle_transactionLst" listed="0" prefixwhere="0" prefixand="0" inputed="1"/><submit next="GBDEDITbottle_transaction" namelist="search" function="search"/>
</OnClick>
</Button><TAB/>
</Ctrls></GroupBox>