起步软件技术论坛
搜索
 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 2146|回复: 12

[结贴] grid属性设置

[复制链接]

12

主题

85

帖子

94

积分

初级会员

Rank: 2

积分
94
发表于 2013-1-24 10:03:54 | 显示全部楼层 |阅读模式
我建了两个grid (grid1,grid2)grid2是直接复制grid1的,但是连接上不同的bizdata后,出现效果不一样,gird1能够点击哪一行数据,那一行数据才变色;grid2点击哪一行数据后,再点击第二行,之前点击行和现在点击行都变色。这个是什么属性没设对还是什么原因,我仔细比对了两个grid属性是一样的。

91

主题

13万

帖子

3万

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
35942
发表于 2013-1-24 10:11:09 | 显示全部楼层
把.w发一下看看
远程的联系方法QQ1392416607,添加好友时,需在备注里注明其论坛名字及ID,公司等信息
发远程时同时也发一下帖子地址,方便了解要解决的问题  WeX5教程  WeX5下载



如按照该方法解决,请及时跟帖,便于版主结贴
回复 支持 反对

使用道具 举报

12

主题

85

帖子

94

积分

初级会员

Rank: 2

积分
94
 楼主| 发表于 2013-1-24 10:15:08 | 显示全部楼层
jishuang 发表于 2013-1-24 10:11
把.w发一下看看

<?xml version="1.0" encoding="UTF-8"?>
<xui:window xmlns:xui="http://www.justep.com/xui" xmlns="http://www.justep.com/xui" xmlns:xforms="http://www.justep.com/xforms" component="/UI/system/components/window.xbl.xml#window" xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:ev="http://www.w3.org/2001/xml-events">  
  <xforms:model id="model1" style="height:auto;left:441px;top:338px;"><data component="/UI/system/components/data.xbl.xml#bizData" update-mode="whereVersion" data-type="json" auto-load="true" id="bizData1" concept="VIEW_SYS_USER_XCCX" store-type="simple"><creator id="default1" action="/Mtest/M_test/logic/action/createVIEW_SYS_USER_XCCXAction"></creator>
  <reader id="default2" action="/Mtest/M_test/logic/action/queryVIEW_SYS_USER_XCCXAction"></reader>
  <writer id="default3" action="/Mtest/M_test/logic/action/saveVIEW_SYS_USER_XCCXAction"></writer></data>
  <data component="/UI/system/components/data.xbl.xml#bizData" update-mode="whereVersion" data-type="json" auto-load="true" id="bizData2" concept="VIEW_SYS_USER_XCCXST" store-type="simple"><creator id="default4" action="/Mtest/M_test/logic/action/createVIEW_SYS_USER_XCCXSTAction"></creator>
  <reader id="default5" action="/Mtest/M_test/logic/action/queryVIEW_SYS_USER_XCCXSTAction"></reader>
  <writer id="default6" action="/Mtest/M_test/logic/action/saveVIEW_SYS_USER_XCCXSTAction"></writer></data>
  <data component="/UI/system/components/data.xbl.xml#bizData" update-mode="whereVersion" data-type="json" auto-load="true" id="bDataBM1" concept="DEPARTMENTS" store-type="simple" order-by="DEPT_NO ASC" confirm-refresh="false"><reader id="default12" action="/Mtest/M_test/logic/action/queryDEPARTMENTSAction"></reader>
  <filter name="filter1" id="filter2"><![CDATA[]]></filter></data>
  <data component="/UI/system/components/data.xbl.xml#bizData" update-mode="whereVersion" data-type="json" auto-load="true" id="bDatBSC1" concept="VIEW_OFFICE" store-type="simple" confirm-refresh="false"><creator id="default19"></creator>
  <reader id="default20" action="/Mtest/M_test/logic/action/queryVIEW_OFFICEAction"></reader>
  <writer id="default21"></writer>
  <filter name="_filter_dept_1" id="filter4"><![CDATA[VIEW_OFFICE.OFFICE_TYPETYPE=5]]></filter></data>
  <data component="/UI/system/components/data.xbl.xml#bizData" update-mode="whereVersion" data-type="json" auto-load="true" id="bDataZW1" concept="JOBS_LIST" store-type="simple" order-by="JOB_NONO asc" confirm-refresh="false"><reader id="default7" action="/Mtest/M_test/logic/action/queryJOBS_LISTAction"></reader>
  <filter name="filter_JOB" id="filter5"></filter></data>
  <data component="/UI/system/components/data.xbl.xml#bizData" update-mode="whereVersion" data-type="json" auto-load="true" id="bDataBM2" concept="DEPARTMENTS" store-type="simple" confirm-refresh="false" order-by="DEPT_NO asc"><reader id="default53" action="/Mtest/M_test/logic/action/queryDEPARTMENTSAction"></reader></data>
  <xforms:action id="action1" ev:event="onload"><xforms:script id="xformsScript1"><![CDATA[mainActivity.model1Load(event)]]></xforms:script></xforms:action>
  <data component="/UI/system/components/data.xbl.xml#bizData" update-mode="whereVersion" data-type="json" auto-load="true" id="bDataDQ2" concept="VIEW_OFFICE" store-type="simple" confirm-refresh="false"><reader id="default67" action="/Mtest/M_test/logic/action/queryVIEW_OFFICEAction"></reader>
  <filter name="_filter_dept" id="filter7"><![CDATA[VIEW_OFFICE.OFFICE_TYPETYPE=2]]></filter></data>
  <data component="/UI/system/components/data.xbl.xml#bizData" update-mode="whereVersion" data-type="json" auto-load="true" id="bDataDQ1" concept="VIEW_OFFICE" store-type="simple" confirm-refresh="false"><reader id="default68" action="/Mtest/M_test/logic/action/queryVIEW_OFFICEAction"></reader>
  <filter name="_filter_dept_1" id="filter8"><![CDATA[VIEW_OFFICE.OFFICE_TYPETYPE=2]]></filter></data>
  <data component="/UI/system/components/data.xbl.xml#bizData" update-mode="whereVersion" data-type="json" auto-load="true" id="bDatZDQ1" concept="VIEW_OFFICE" store-type="simple" confirm-refresh="false"><reader id="default69" action="/Mtest/M_test/logic/action/queryVIEW_OFFICEAction"></reader>
  <filter name="_filter_dept_1" id="filter9"><![CDATA[VIEW_OFFICE.OFFICE_TYPETYPE=3 OR VIEW_OFFICE.TYPE_NONO=7]]></filter></data>
  <data component="/UI/system/components/data.xbl.xml#bizData" update-mode="whereVersion" data-type="json" auto-load="true" id="bDatZDQ2" concept="VIEW_OFFICE" store-type="simple" confirm-refresh="false"><reader id="default25" action="/Mtest/M_test/logic/action/queryVIEW_OFFICEAction"></reader>
  <filter name="filter0" id="filter10"><![CDATA[VIEW_OFFICE.OFFICE_TYPETYPE=3 OR VIEW_OFFICE.TYPE_NONO=7]]></filter></data>
  <data component="/UI/system/components/data.xbl.xml#bizData" update-mode="whereVersion" data-type="json" auto-load="true" id="bDatBSC2" concept="VIEW_OFFICE" confirm-refresh="false" store-type="simple"><filter name="filter1" id="filter11"><![CDATA[VIEW_OFFICE.OFFICE_TYPETYPE=5]]></filter>
  <reader id="default26" action="/Mtest/M_test/logic/action/queryVIEW_OFFICEAction"></reader></data>
  <data component="/UI/system/components/data.xbl.xml#data" data-type="json" columns="USERNAME" src="" auto-load="true" id="data2" store-type="simple"></data>
  <data component="/UI/system/components/data.xbl.xml#bizData" update-mode="whereVersion" data-type="json" auto-load="true" id="bDataZW2" concept="JOBS_LIST" confirm-refresh="false" store-type="simple"><reader id="default8" action="/Mtest/M_test/logic/action/queryJOBS_LISTAction"></reader></data>
  <data component="/UI/system/components/data.xbl.xml#bizData" update-mode="whereVersion" data-type="json" auto-load="true" id="bizData3" concept="VIEW_SYS_USER_XCCXST" store-type="simple">
   <creator id="default10" action="/Mtest/M_test/logic/action/createVIEW_SYS_USER_XCCXSTAction"></creator>
   <reader id="default9" action="/Mtest/M_test/logic/action/queryVIEW_SYS_USER_XCCXSTAction"></reader>
   <writer id="default11" action="/Mtest/M_test/logic/action/saveVIEW_SYS_USER_XCCXSTAction"></writer></data></xforms:model>  
  <xui:view id="rootView">
    <xui:layout style="height:100%;width:100%" id="rootLayout"><xui:place control="view1" id="controlPlace1" style="width:100%;position:relative;height:40%;"></xui:place>
  <xui:place control="view2" id="controlPlace2" style="width:100%;position:relative;height:35%;"></xui:place>
  <xui:place control="view3" id="controlPlace3" style="width:100%;height:35%;"></xui:place></xui:layout>
  <xui:view auto-load="true" id="view1" class="xui-container">
   <layout type="flow" style="position:relative;" id="layout1"><xui:place control="view5" id="controlPlace5" style="width:100%;height:38%;"></xui:place>
  <xui:place control="view6" id="controlPlace6" style="width:100%;position:relative;height:62%;"></xui:place></layout>
  <xui:view auto-load="true" id="view5"  class="xui-container">
   <layout type="absolute" style="position:relative;" id="layout5">
  <xhtml:label id="label4" style="position:absolute;top:89px;left:338px;" class="xui-label"><![CDATA[姓  名]]></xhtml:label>
  <xhtml:input type="text" id="input3" style="position:absolute;width:89px;height:18px;top:84px;left:391px;" class="xui-input"></xhtml:input>
  <xui:place control-label="gridSelect5" id="controlLabel2" style="position:absolute;top:89px;left:12px;" label="部门"></xui:place><xui:place control="gridSelect5" id="controlPlace14" style="position:absolute;width:88px;height:18px;top:84px;left:49px;"></xui:place>
  <xui:place control-label="gridSelect6" id="controlLabel4" style="position:absolute;top:89px;left:169px;width:39px;" label="职     位"></xui:place><xui:place control="gridSelect6" id="controlPlace15" style="position:absolute;width:90px;top:85px;height:16px;left:219px;"></xui:place>
  <xhtml:button id="button3" style="position:absolute;top:81px;left:555px;" class="xui-button"><![CDATA[查询]]></xhtml:button>
  <xui:place control-label="gridSelect11" id="controlLabel1" style="position:absolute;left:12px;top:41px;" label="大区"></xui:place><xui:place control="gridSelect11" id="controlPlace21" style="position:absolute;height:16px;top:37px;left:49px;width:87px;"></xui:place>
  <xui:place control-label="gridSelect4" id="controlLabel3" style="position:absolute;top:41px;left:169px;" label="子大区"></xui:place><xui:place control="gridSelect4" id="controlPlace12" style="position:absolute;height:17px;width:89px;left:219px;top:37px;"></xui:place>
  <xui:place control-label="gridSelect7" id="controlLabel5" style="position:absolute;top:41px;left:338px;" label="办事处"></xui:place><xui:place control="gridSelect7" id="controlPlace13" style="position:absolute;left:391px;top:37px;height:17px;width:88px;"></xui:place>
  <xhtml:button id="button2" style="position:absolute;top:41px;left:555px;" class="xui-button">button</xhtml:button></layout>
  <xhtml:div component="/UI/system/components/select.xbl.xml#gridSelect" row-height="36" dropdown-class="xui-grid-hide-VLine" label-separator="," value-separator="," ext-separator="," id="gridSelect5" ref="data('bDataBM2')/DEPT_NO" label-ref="data('bDataBM2')/DEPT_NAMENAME">


回复 支持 反对

使用道具 举报

12

主题

85

帖子

94

积分

初级会员

Rank: 2

积分
94
 楼主| 发表于 2013-1-24 10:15:26 | 显示全部楼层
jishuang 发表于 2013-1-24 10:11
把.w发一下看看

   <xforms:label ref="DEPT_NAMENAME" id="default40"></xforms:label>
   <xforms:value ref="DEPT_NO" id="default41"></xforms:value>
   <xforms:itemset id="default42" data="bDataBM1" auto-load-data="true"><xforms:column ref="DEPT_NAMENAME" id="default52"></xforms:column></xforms:itemset></xhtml:div>
  <xhtml:div component="/UI/system/components/select.xbl.xml#gridSelect" row-height="36" dropdown-class="xui-grid-hide-VLine" label-separator="," value-separator="," ext-separator="," id="gridSelect6" ref="data('bDataZW2')/JOB_NONO" label-ref="data('bDataZW2')/JOB_NAMENAME" onDropdown="mainActivity.gridSelect6Dropdown">
   <xforms:label ref="JOB_NAMENAME" id="default43"></xforms:label>
   <xforms:value ref="JOB_NONO" id="default44"></xforms:value>
   <xforms:itemset id="default45" data="bDataZW1" auto-load-data="true"><xforms:column ref="JOB_NAMENAME" id="default55"></xforms:column></xforms:itemset></xhtml:div>
  <xhtml:div component="/UI/system/components/select.xbl.xml#gridSelect" row-height="36" dropdown-class="xui-grid-hide-VLine" label-separator="," value-separator="," ext-separator="," id="gridSelect11" ref="data('bDataDQ2')/DISTRICT_NONO" label-ref="data('bDataDQ2')/DISTRICT_NAMENAME" input-changeable="false" onCloseup="mainActivity.gridSelect11Closeup" onDropdown="mainActivity.gridSelect11Dropdown">
   <xforms:label ref="DISTRICT_NAMENAME" id="default93"></xforms:label>
   <xforms:value ref="DISTRICT_NONO" id="default94"></xforms:value>
   <xforms:itemset id="default95" data="bDataDQ1" independence="false" auto-load-data="false">
    <xforms:column ref="DISTRICT_NAMENAME" id="default28"></xforms:column></xforms:itemset> </xhtml:div>
  <xhtml:div component="/UI/system/components/select.xbl.xml#gridSelect" row-height="36" dropdown-class="xui-grid-hide-VLine" label-separator="," value-separator="," ext-separator="," id="gridSelect4" ref="data('bDatZDQ2')/DISTRICT_NONO" label-ref="data('bDatZDQ2')/DISTRICT_NAMENAME" onDropdown="mainActivity.gridSelect4Dropdown">
   <xforms:label ref="DISTRICT_NAMENAME" id="default29"></xforms:label>
   <xforms:value ref="DISTRICT_NONO" id="default31"></xforms:value>
   <xforms:itemset id="default32" data="bDatZDQ1" independence="false" auto-load-data="false">
    <xforms:column ref="DISTRICT_NAMENAME" id="default34"></xforms:column></xforms:itemset> </xhtml:div>
  <xhtml:div component="/UI/system/components/select.xbl.xml#gridSelect" row-height="36" dropdown-class="xui-grid-hide-VLine" label-separator="," value-separator="," ext-separator="," id="gridSelect7" ref="data('bDatBSC2')/DISTRICT_NONO" label-ref="data('bDatBSC2')/DISTRICT_NAMENAME" onDropdown="mainActivity.gridSelect7Dropdown">
   <xforms:label ref="DISTRICT_NAMENAME" id="default35"></xforms:label>
   <xforms:value ref="DISTRICT_NONO" id="default36"></xforms:value>
   <xforms:itemset id="default37" data="bDatBSC1">
    <xforms:column ref="DISTRICT_NAMENAME" id="default39"></xforms:column>
    <itemset-data xmlns="" id="default57">
     <rows xmlns="" id="default58">
      <row id="default59">
       <cell id="default60">全部</cell></row> </rows> </itemset-data> </xforms:itemset> </xhtml:div></xui:view>
  <xui:view auto-load="true" id="view6" class="xui-container">
   <layout type="flow" style="position:relative;" id="layout6"><xui:place control="grid2" style="width:100%;height:100%;" id="controlPlace20"></xui:place></layout>
  <xhtml:div component="/UI/system/components/grid.xbl.xml#grid" id="grid2" data="bizData1">
   <column ref="USERID" label="USERID" width="100px" type="ed" id="gridColumn16"></column>
   <column ref="USERNAME" label="USERNAME" width="100px" type="ed" id="gridColumn17"></column>
   <column ref="JOB_NAMENAME" label="JOB_NAMENAME" width="100px" type="ed" id="gridColumn21"></column>
   <column ref="DEPT_NAMENAME" label="DEPT_NAMENAME" width="100px" type="ed" id="gridColumn22"></column>
   <column ref="办事处" label="办事处" width="100px" type="ed" id="gridColumn24"></column>
   <column ref="大区" label="大区" width="100px" type="ed" id="gridColumn29"></column>
   <column ref="子大区" label="子大区" width="78px" type="ed" id="gridColumn30"></column>
   <column ref="VALUES1" label="VALUES1" width="106px" type="inputbtn" id="gridColumn31" onButtonClick="mainActivity.grid2_VALUES1ButtonClick"></column>
   <column ref="VALUES2" label="VALUES2" width="100px" type="inputbtn" id="gridColumn32" onButtonClick="mainActivity.grid2_VALUES2ButtonClick"></column>
   </xhtml:div></xui:view></xui:view>
  <xui:view auto-load="true" id="view2" class="xui-container">
   <layout type="flow" style="position:relative;" id="layout2"><xui:place control="view7" id="controlPlace7" style="width:100%;height:17%;"></xui:place>
  <xui:place control="view8" id="controlPlace8" style="width:100%;position:relative;height:83%;"></xui:place></layout>
  <xui:view auto-load="true" id="view7" class="xui-container">
   <layout type="absolute" style="position:relative;" id="layout7"><xhtml:input type="text" value="" id="input2" style="position:absolute;top:13px;left:170px;width:87px;height:15px;" class="xui-input"></xhtml:input>
  <xhtml:label id="label2" style="position:absolute;left:5px;top:13px;" class="xui-label"><![CDATA[行程信息管理:]]></xhtml:label>
  <xhtml:button id="button1" style="position:absolute;top:15px;left:313px;" class="xui-button"><![CDATA[查询]]></xhtml:button>
  <xui:place control="toolbars2" id="controlPlace17" style="position:absolute;top:5px;width:400px;height:25px;left:401px;"></xui:place>
  <xhtml:label id="label3" style="position:absolute;left:99px;top:15px;" class="xui-label"><![CDATA[行程查看人]]></xhtml:label></layout>
  <xhtml:div component="/UI/system/components/toolbars.xbl.xml#toolbars" id="toolbars2"><xui:bar component="/UI/system/components/bar.xbl.xml#navigatorBar" mode="IMG_TXT_LR" id="navigatorBar2" data="bizData2">
   <item name="insert-item" id="barItem9"></item>
   <item name="save-item" id="barItem10"></item>
   <item name="delete-item" id="barItem11"></item>
   <item name="refresh-item" id="barItem12"></item>
   <item name="filter-pro-item" id="customBarItem4"></item></xui:bar></xhtml:div></xui:view>
  <xui:view auto-load="true" id="view8" class="xui-container">
   <layout type="flow" style="position:relative;" id="layout8"><xui:place control="grid4" style="width:100%;height:100%;" id="controlPlace10"></xui:place></layout>
  <xhtml:div component="/UI/system/components/grid.xbl.xml#grid" id="grid4" data="bizData3">
   <xui:column id="gridColumn51" ref="ORDERBY" label="ORDERBY" type="ed" width="100px"></xui:column>
  <xui:column id="gridColumn52" ref="ID" label="ID" type="ed" width="100px"></xui:column>
  <xui:column id="gridColumn53" ref="VALUE_11" label="VALUE_11" type="ed" width="100px"></xui:column>
  <xui:column id="gridColumn54" ref="USERNAME" label="USERNAME" type="ed" width="100px"></xui:column>
  <xui:column id="gridColumn55" ref="VALUE_22" label="VALUE_22" type="ed" width="100px"></xui:column>
  <xui:column id="gridColumn56" ref="REMARKS" label="REMARKS" type="ed" width="100px"></xui:column>
  <xui:column id="gridColumn57" ref="REPORT_IDID" label="REPORT_IDID" type="ed" width="100px"></xui:column></xhtml:div></xui:view></xui:view>
  <xui:view auto-load="true" id="view3" class="xui-container">
   <layout type="absolute" style="position:relative;" id="layout3"><xhtml:label id="label1" style="position:absolute;top:5px;left:5px;" class="xui-label"><![CDATA[级联]]></xhtml:label>
  </layout>
  </xui:view></xui:view>  
  <xui:resource id="resource1"><xhtml:script id="htmlScript1" src="mainActivity.js"></xhtml:script></xui:resource>
</xui:window>
回复 支持 反对

使用道具 举报

226

主题

1000

帖子

1931

积分

金牌会员

Rank: 6Rank: 6

积分
1931
QQ
发表于 2013-1-24 10:16:37 | 显示全部楼层
主键重复了吧
回复 支持 反对

使用道具 举报

12

主题

85

帖子

94

积分

初级会员

Rank: 2

积分
94
 楼主| 发表于 2013-1-24 10:18:06 | 显示全部楼层
xwnabc 发表于 2013-1-24 10:16
主键重复了吧

不会啊 一个是userid  一个是id
回复 支持 反对

使用道具 举报

91

主题

13万

帖子

3万

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
35942
发表于 2013-1-24 10:21:19 | 显示全部楼层
模型检查一下看看
远程的联系方法QQ1392416607,添加好友时,需在备注里注明其论坛名字及ID,公司等信息
发远程时同时也发一下帖子地址,方便了解要解决的问题  WeX5教程  WeX5下载



如按照该方法解决,请及时跟帖,便于版主结贴
回复 支持 反对

使用道具 举报

12

主题

85

帖子

94

积分

初级会员

Rank: 2

积分
94
 楼主| 发表于 2013-1-24 10:23:44 | 显示全部楼层
jishuang 发表于 2013-1-24 10:21
模型检查一下看看

模型??
回复 支持 反对

使用道具 举报

91

主题

13万

帖子

3万

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
35942
发表于 2013-1-24 10:25:54 | 显示全部楼层
检查.w中的定义是否有错误
4.gif
远程的联系方法QQ1392416607,添加好友时,需在备注里注明其论坛名字及ID,公司等信息
发远程时同时也发一下帖子地址,方便了解要解决的问题  WeX5教程  WeX5下载



如按照该方法解决,请及时跟帖,便于版主结贴
回复 支持 反对

使用道具 举报

12

主题

85

帖子

94

积分

初级会员

Rank: 2

积分
94
 楼主| 发表于 2013-1-24 10:40:19 | 显示全部楼层
jishuang 发表于 2013-1-24 10:25
检查.w中的定义是否有错误

检查过了  也编译过了 没有报错
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|X3技术论坛|Justep Inc.    

GMT+8, 2024-5-18 05:49 , Processed in 0.071376 second(s), 26 queries .

Powered by Discuz! X3.4

© 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表