WndTap Name="cases" Text="cases"> xi:include href="cases_lan.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/> Ctrls> GroupBox Name="GBcases" id="cases" Text="cases" Size="100,100">Ctrls> Label Name="lb_case_type" Size="60,20" Text="case_type" Align="Right"/> TextBox Name="case_type" Size="30,20" ToolTip="ttp_case_type"> OnEnChange>/OnEnChange> onEnterKey>/onEnterKey> /TextBox> Label Name="lb_case_status" Size="60,20" Text="case_status" Align="Right"/> TextBox Name="case_status" Size="30,20" ToolTip="ttp_case_status"> OnEnChange>/OnEnChange> onEnterKey>/onEnterKey> /TextBox> Label Name="lb_case_priority" Size="60,20" Text="case_priority" Align="Right"/> TextBox Name="case_priority" Size="30,20" ToolTip="ttp_case_priority"> OnEnChange>/OnEnChange> onEnterKey>/onEnterKey> /TextBox> Label Name="lb_case_title" Size="60,20" Text="case_title" Align="Right"/> TextBox Name="case_title" Size="250,20" ToolTip="ttp_case_title"> OnEnChange>/OnEnChange> onEnterKey>/onEnterKey> /TextBox> BR AutoHeight="1"/>Label Name="lb_case_desc" Size="60,20" Text="case_desc" Align="Right"/> TextBox Name="case_desc" Size="640,20" ToolTip="ttp_case_desc"> OnEnChange>/OnEnChange> onEnterKey>/onEnterKey> /TextBox> BR AutoHeight="1"/>Label Name="lb_case_sln" Size="60,20" Text="case_sln" Align="Right"/> TextBox Name="case_sln" Size="640,20" ToolTip="ttp_case_sln"> OnEnChange>/OnEnChange> onEnterKey>/onEnterKey> /TextBox> BR AutoHeight="1"/>Label Name="lb_case_remark" Size="60,20" Text="case_remark" Align="Right"/> TextBox Name="case_remark" Size="640,20" ToolTip="ttp_case_remark"> OnEnChange>/OnEnChange> onEnterKey>/onEnterKey> /TextBox> BR AutoHeight="1"/>Label Name="lb_contact_id" Size="60,20" Text="contact_id" Align="Right"/> TextBox Name="contact_id" Size="55,20" ToolTip="ttp_contact_id"> OnEnChange>/OnEnChange> onEnterKey>/onEnterKey> /TextBox> Label Name="lb_entered_at" Size="60,20" Text="entered_at" Align="Right"/> TextBox Name="entered_at" Size="50,20" ToolTip="ttp_entered_at"> OnEnChange>/OnEnChange> onEnterKey>/onEnterKey> /TextBox> Label Name="lb_entered_by" Size="60,20" Text="entered_by" Align="Right"/> TextBox Name="entered_by" Size="55,20" ToolTip="ttp_entered_by"> OnEnChange>/OnEnChange> onEnterKey>/onEnterKey> /TextBox> Label Name="lb_dep_resp" Size="60,20" Text="dep_resp" Align="Right"/> TextBox Name="dep_resp" Size="55,20" ToolTip="ttp_dep_resp"> OnEnChange>/OnEnChange> onEnterKey>/onEnterKey> /TextBox> Label Name="lb_owned_at" Size="60,20" Text="owned_at" Align="Right"/> TextBox Name="owned_at" Size="50,20" ToolTip="ttp_owned_at"> OnEnChange>/OnEnChange> onEnterKey>/onEnterKey> /TextBox> Label Name="lb_owned_by" Size="60,20" Text="owned_by" Align="Right"/> TextBox Name="owned_by" Size="55,20" ToolTip="ttp_owned_by"> OnEnChange>/OnEnChange> onEnterKey>/onEnterKey> /TextBox> BR AutoHeight="1"/>Label Name="lb_closed_at" Size="60,20" Text="closed_at" Align="Right"/> TextBox Name="closed_at" Size="50,20" ToolTip="ttp_closed_at"> OnEnChange>/OnEnChange> onEnterKey>/onEnterKey> /TextBox> Label Name="lb_closed_by" Size="60,20" Text="closed_by" Align="Right"/> TextBox Name="closed_by" Size="55,20" ToolTip="ttp_closed_by"> OnEnChange>/OnEnChange> onEnterKey>/onEnterKey> /TextBox> Label Name="lb_case_id" Size="60,20" Text="case_id" Align="Right"/> TextBox Name="case_id" Size="55,20" ToolTip="ttp_case_id"> OnEnChange>/OnEnChange> onEnterKey>/onEnterKey> /TextBox> BR AutoHeight="1"/>ListCtrl Name="casesLst" ToolTip="ttp_cases" Size="520,312" PageSize="10" loadedclick="0" Heading="case_type,30;case_status,30;case_priority,30;case_title,250;case_desc,640;case_sln,640;case_remark,640;contact_id,55;entered_at,50;entered_by,55;dep_resp,55;owned_at,50;owned_by,55;closed_at,50;closed_by,55;case_id,55;"> DbDetails fcsm="1">DbTable>i3uxml.cases/DbTable>Index>contact_id='%{casesLst[contact_id]}' and case_id='%{casesLst[case_id]}'/Index>Data>case_type,case_status,case_priority,case_title,case_desc,case_sln,case_remark,contact_id,entered_at,entered_by,dep_resp,owned_at,owned_by,closed_at,closed_by,case_id/Data>/DbDetails>/ListCtrl> TAB/>GroupBox Name="GBOPcases" Text="operation" Size="100,100">Ctrls> Button Name="insertcases" Size="50,20" Text="create" ToolTip="ttp_insertcases"> OnClick> DbDetails fcsm="1">DbTable>i3uxml.cases/DbTable>Data>case_type,case_status,case_priority,case_title,case_desc,case_sln,case_remark,contact_id,entered_at,entered_by,dep_resp,owned_at,owned_by,closed_at,closed_by,case_id/Data>queryFormat>insert into %{table} %{data}/queryFormat>/DbDetails> submit namelist="DbDetails"/>submit next="searchcases" function="click"/> /OnClick> /Button>TAB/> Button Name="modifycases" Size="50,20" Text="modify" ToolTip="ttp_modifycases"> OnClick> DbDetails fcsm="1">DbTable>i3uxml.cases/DbTable>Data>case_type,case_status,case_priority,case_title,case_desc,case_sln,case_remark,contact_id,entered_at,entered_by,dep_resp,owned_at,owned_by,closed_at,closed_by,case_id/Data>Where>contact_id='%{casesLst[contact_id]}' and case_id='%{casesLst[case_id]}'/Where>queryFormat>update %{table} set %{data} where %{where}/queryFormat>/DbDetails> submit namelist="DbDetails"/>submit next="searchcases" function="click"/> /OnClick> /Button>BR/> Button Name="deletecases" Size="50,20" Text="delete" ToolTip="ttp_deletecases"> OnClick> DbDetails fcsm="1">DbTable>i3uxml.cases/DbTable>Where>contact_id='%{casesLst[contact_id]}' and case_id='%{casesLst[case_id]}'/Where>queryFormat>delete from %{table} where %{where}/queryFormat>/DbDetails> submit namelist="DbDetails"/>submit next="searchcases" function="click"/> /OnClick> /Button>TAB/> Button Name="searchcases" Size="50,20" Text="refresh" ToolTip="ttp_refreshcases"> OnClick>submit next="casesLst"/>/OnClick> /Button> BR/>Button Name="FPcasesLst" Size="40,20" Text="firstpage" OnClick="(casesLst)GetPage(First)">/Button> Button Name="PREcasesLst" Size="40,20" Text="prepage" OnClick="(casesLst)GetPage(Pre)">/Button> Button Name="NPcasesLst" Size="40,20" Text="nextpage" OnClick="(casesLst)GetPage(Next)">/Button> /Ctrls>/GroupBox> /Ctrls>/GroupBox> /Ctrls> OnChanged>/OnChanged> OnActivate>/OnActivate> /WndTap> 语言包示例(将value值改成相应语言的文字即可,ttp_前缀的为tooltip显示文字): Language name="cases"> Lang name="cases" value="cases"/> Lang name="case_title" value=""/> Lang name="ttp_case_title" value=""/> Lang name="contact_id" value=""/> Lang name="ttp_contact_id" value=""/> Lang name="case_type" value=""/> Lang name="ttp_case_type" value=""/> Lang name="case_status" value=""/> Lang name="ttp_case_status" value=""/> Lang name="case_priority" value=""/> Lang name="ttp_case_priority" value=""/> Lang name="dep_resp" value=""/> Lang name="ttp_dep_resp" value="respsibility department"/> Lang name="case_desc" value=""/> Lang name="ttp_case_desc" value=""/> Lang name="case_sln" value=""/> Lang name="ttp_case_sln" value=""/> Lang name="case_remark" value=""/> Lang name="ttp_case_remark" value=""/> Lang name="entered_at" value=""/> Lang name="ttp_entered_at" value=""/> Lang name="entered_by" value=""/> Lang name="ttp_entered_by" value=""/> Lang name="owned_at" value=""/> Lang name="ttp_owned_at" value=""/> Lang name="owned_by" value=""/> Lang name="ttp_owned_by" value=""/> Lang name="closed_at" value=""/> Lang name="ttp_closed_at" value=""/> Lang name="closed_by" value=""/> Lang name="ttp_closed_by" value=""/> Lang name="case_id" value=""/> Lang name="ttp_case_id" value=""/> Lang name="ttp_operationcases" value="操作"/> Lang name="ttp_createcases" value="新增"/> Lang name="ttp_modifycases" value="修改"/> Lang name="ttp_deletecases" value="删除"/> Lang name="ttp_refreshcases" value="刷新"/> Lang name="operation" value="操作"/> Lang name="create" value="新增"/> Lang name="modify" value="修改"/> Lang name="delete" value="删除"/> Lang name="refresh" value="刷新"/> Lang name="firstpage" value="首页"/> Lang name="prepage" value="上页"/> Lang name="nextpage" value="下页"/> /Language> |