Java 企业应用
不要温柔的走入那个良夜

图像 000

作业部门:使用LOOKUP + ALN域

Function:为作业部门选择添加值

图像 003

APP designer:

图像 002

APP XML: 绑定了一个lookup,valuelist为通用的lookup,适用于 具备value和description字段的域值列表显示,对于自定义或高级的字段可以自定义。

 <multiparttextbox dataattribute="CREWID" 
descdataattribute="CREWID.description" descinputmode="READONLY" id="1287484024453" label="作业部门" lookup="valuelist"/>
LOOKUPS:
<table id="valuelist" inputmode="readonly" selectmode="single">
        <tablebody displayrowsperpage="20" filterable="true" filterexpanded="true" id="valuelist_lookup_tablebody">
            <tablecol dataattribute="value" id="valuelist_lookup_tablebody_col_5" mxevent="selectrecord" mxevent_desc="转到 %1" sortable="true" type="link"/>
            <tablecol dataattribute="description" id="valuelist_lookup_tablebody_col_6" mxevent="selectrecord" mxevent_desc="转到 %1" sortable="true" type="link"/>
        </tablebody>
    </table>
Database configuration
首先是在“域”中进行绑定
图像 005
其次还要做“关系”
图像 004

工单作业模板: APP LINK + LIBRARY+ Menu

Function:1 选择模板值 2 跳到这个APP模块
图像 006
 
App Designer
图像 008
 
APP XML
<multiparttextbox applink="jobplan" dataattribute="jpnum"
descdataattribute="jobplan.DESCRIPTION" descinputmode="READONLY"
id="1298820766046" label="工单作业模板" 
lookup="wo_jobplan" 
menutype="normal"/>

Menu XML
<menu id="NORMAL">
        <menuitem event="selectvalue" id="normal0" image="menu_icon_find.gif" label="选择值"/>
        <menuitem event="applink" id="normal1" image="menu_icon_link.gif" label="转到"/>
    </menu>

Library: “选择值"  ---wo_jobplan  Note:在application designer 中指定的是 wo_jobplan ,其实到library中寻找的id是 lookup_wo_jobplan.     

<dialog beanclass="psdi.webclient.beans.workorder.JobPlanBean" icon="img_lookup.gif" id="lookup_wo_jobplan" label="选择值">
        <section border="true" datasrc="MAINRECORD" id="jobplan_grid1">
            <sectionrow id="jobplan_grid1_1">
                <sectioncol id="jobplan_grid1_1_1">
                    <section id="jobplan_grid1_1_1_grid2">
                        <checkbox dataattribute="jpassets" id="jobplan_grid1_1_1_grid2_1" label="只显示“工单的资产”和“位置”的“作业计划”"/>
                        <checkbox dataattribute="jpincludeclassless" id="jobplan_grid1_1_1_grid2_classless" label="显示未定义类的作业计划"/>
                        <combobox dataattribute="jpclass" id="jobplan_grid1_1_1_grid2_woclass" label="工单类" smartfilloff="true"/>
                    </section>
                </sectioncol>
            </sectionrow>
            <buttongroup id="jobplan_grid1_1_1_Tblbuttons2">
                <pushbutton id="jobplan_grid1_1_1_Tblbuttons2_1" label="刷新" mxevent="REFRESHLIST"/>
            </buttongroup>
        </section>
        <table id="jobplan_table" inputmode="readonly" selectmode="single">
            <tablebody displayrowsperpage="15" filterable="true" filterexpanded="true" id="jobplan_lookup_tablebody">
                <tablecol dataattribute="jpnum" id="jobplan_lookup_tablebody_col_10" mxevent="selectrecord" mxevent_desc="转到 %1" sortable="true" type="link"/>
                <tablecol dataattribute="description" id="jobplan_lookup_tablebody_col_11" mxevent="selectrecord" mxevent_desc="转到 %1" sortable="true" type="link"/>
                <tablecol dataattribute="templatetype" id="jobplan_lookup_tablebody_col_14" mxevent="selectrecord" mxevent_desc="转到 %1" sortable="true" type="link"/>
                <tablecol dataattribute="orgid" id="jobplan_lookup_tablebody_col_12" mxevent="selectrecord" mxevent_desc="转到 %1" sortable="true" type="link"/>
                <tablecol dataattribute="siteid" id="jobplan_lookup_tablebody_col_13" mxevent="selectrecord" mxevent_desc="转到 %1" sortable="true" type="link"/>
            </tablebody>
        </table>
        <buttongroup id="jobplan_2">
            <pushbutton default="true" id="jobplan_2_1" label="取消" mxevent="dialogcancel"/>
        </buttongroup>
    </dialog>
 

App link :

在App XML中或者 App Designer 中指定的“转到应用程序”。

posted on 2012-04-06 15:12 cpegtop 阅读(569) 评论(0)  编辑  收藏

只有注册用户登录后才能发表评论。


网站导航: