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

QQ登录

只需一步,快速开始

12
返回列表 发新帖
楼主: zsj5237

[结贴] 页面默认值不显示

[复制链接]

396

主题

2433

帖子

4863

积分

论坛元老

Rank: 8Rank: 8

积分
4863
QQ
发表于 2014-10-29 17:30:32 | 显示全部楼层
data的auto-new改为true
QQ67886387
回复 支持 反对

使用道具 举报

67

主题

279

帖子

434

积分

中级会员

Rank: 3Rank: 3

积分
434
QQ
 楼主| 发表于 2014-10-29 17:44:30 | 显示全部楼层
67886387 发表于 2014-10-29 17:30
data的auto-new改为true

值出来了,但是点击保存报错:
java.lang.reflect.InvocationTargetException
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:592)
        at com.justep.system.action.Engine.invokeActions(Native Method)
        at com.justep.system.action.Engine.invokeActions(Unknown Source)
        at com.justep.business.server.BusinessServer.doAction(Unknown Source)
        at com.justep.business.server.BusinessServer.doExcute(Unknown Source)
        at com.justep.business.server.BusinessServer.excute(Unknown Source)
        at com.justep.business.server.BusinessServerServlet.execService(Unknown Source)
        at com.justep.business.server.BusinessServerServlet.service(Unknown Source)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
        at com.justep.x.bs.BusinessServerServlet.service(Unknown Source)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
        at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:857)
        at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)
        at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
        at java.lang.Thread.run(Thread.java:595)
Caused by: java.lang.reflect.InvocationTargetException
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:592)
        at com.justep.system.action.Engine.invokeAction(Native Method)
        at com.justep.system.action.Engine.invokeAction(Unknown Source)
        at com.justep.model.impl.UtilImplementInstance.invokeAction(Unknown Source)
        at com.justep.model.impl.UtilImplementInstance.invokeAction(Unknown Source)
        at com.justep.system.action.ActionUtils.invokeAction(Unknown Source)
        at com.justep.system.process.ProcessUtils.startProcess(Unknown Source)
        at ExternalProcessProcedure.startProcess(ExternalProcessProcedure.java:21)
        ... 26 more
Caused by: java.lang.reflect.InvocationTargetException
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:592)
        at com.justep.system.action.Engine.invokeAction(Native Method)
        at com.justep.system.action.Engine.invokeAction(Unknown Source)
        at com.justep.model.impl.UtilImplementInstance.invokeAction(Unknown Source)
        at com.justep.model.impl.UtilImplementInstance.invokeAction(Unknown Source)
        at com.justep.system.action.ActionUtils.invokeAction(Unknown Source)
        at ProcessProcedure.beforeStartProcess(ProcessProcedure.java:131)
        ... 37 more
Caused by: java.lang.NullPointerException
        at com.justep.system.process.ProcessQueryEngine.makeTo(Unknown Source)
        at com.justep.system.process.StartProcessQueryEngine.execute(Unknown Source)
        at com.justep.system.process.ProcessEngine.startQuery(Unknown Source)
        at ProcessProcedure.startProcessQuery(ProcessProcedure.java:90)
        ... 47 more
回复 支持 反对

使用道具 举报

91

主题

13万

帖子

3万

积分

管理员

Rank: 9Rank: 9Rank: 9

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



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

使用道具 举报

发表于 2014-10-30 09:05:16 | 显示全部楼层
zsj5237 发表于 2014-10-29 17:30
修改之后,控件不可见,文本框也不能输入,什么原因?

业务数据没有新增?
回复 支持 反对

使用道具 举报

67

主题

279

帖子

434

积分

中级会员

Rank: 3Rank: 3

积分
434
QQ
 楼主| 发表于 2014-10-30 10:35:47 | 显示全部楼层
jishuang 发表于 2014-10-30 09:02
模型检查一下流程图看看是否有错误

检测没有错误
回复 支持 反对

使用道具 举报

91

主题

13万

帖子

3万

积分

管理员

Rank: 9Rank: 9Rank: 9

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



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

使用道具 举报

67

主题

279

帖子

434

积分

中级会员

Rank: 3Rank: 3

积分
434
QQ
 楼主| 发表于 2014-10-30 14:15:02 | 显示全部楼层

<?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" xmlns:xhtml="http://www.w3.org/1999/xhtml"
  xmlns:ev="http://www.w3.org/2001/xml-events" component="/UI/system/components/window.xbl.xml#window" id="wMian">  
  <xforms:model id="mdMain" style="top:395px;height:auto;left:406px;">
    <data component="/UI/system/components/data.xbl.xml#bizData" update-mode="whereVersion"
      data-type="xml" auto-load="false" id="dataPurchase" concept="OA_FC_PURCHASE"
      store-type="simple" auto-new="true">
      <creator id="default3" action="/OA/purchase/logic/action/createOA_FC_PURCHASEAction"/>  
      <reader id="default4" action="/OA/purchase/logic/action/queryOA_FC_PURCHASEAction"/>  
      <writer id="default5" action="/OA/purchase/logic/action/saveOA_FC_PURCHASEAction"/>
    </data>  
    <data component="/UI/system/components/data.xbl.xml#bizData" update-mode="whereVersion"
      data-type="xml" auto-load="true" id="dataPurchaseM" concept="OA_FC_PURCHASE_M">
      <creator id="default6" action="/OA/purchase/logic/action/createOA_FC_PURCHASE_MAction"/>  
      <reader id="default8" action="/OA/purchase/logic/action/queryOA_FC_PURCHASE_MAction"/>  
      <writer id="default9" action="/OA/purchase/logic/action/saveOA_FC_PURCHASE_MAction"/>
    </data>
  </xforms:model>  
  <xui:view id="rootView" auto-load="true">
    <xhtml:div component="/UI/system/components/process.xbl.xml#process" id="purchaseProcess"
      data="dataPurchase"/>  
    <xhtml:div component="/UI/system/components/windowDialog.xbl.xml#windowDialog"
      title="HR人员列表" width="700px" height="530px" modal="true" id="dlgSelectPersonInfo"
      url="/UI/OA/finance/process/dialog/selectHrPerson/selectHrPersonInfo.w"
      onReceive="startActivity.dlgSelectPersonInfoReceive"/>  
    <xhtml:div component="/UI/system/components/processChart.xbl.xml#processChart"
      id="processChart"/>  
    <xui:view id="vBar">
      <xhtml:div component="/UI/system/components/toolbars.xbl.xml#toolbars" id="toolbars">
        <xui:bar component="/UI/system/components/bar.xbl.xml#navigatorBar" data="dataPurchase"
          id="navigatorBar" mode="IMG_TXT_LR">
          <item id="barItem2" name="save-item"/>
        </xui:bar>  
        <xui:bar component="/UI/system/components/processBar.xbl.xml#processBar"
          id="processBar" mode="IMG_TXT_LR" process="purchaseProcess">
          <item id="barItem13" name="advance-process-item"/>  
          <item id="barItem12" name="back-process-item"/>  
          <item id="barItem16" name="abort-process-item"/>
        </xui:bar>
      </xhtml:div>  
      <xui:layout style="height:100%;">
        <place control="toolbars"/>
      </xui:layout>
    </xui:view>  
    <xui:view id="vPurchase">
      <xforms:output id="fNO" ref="data('dataPurchase')/fNO" auto-size="true" style="width:100%;background-color:transparent;"/>  
      <xforms:textarea ref="data('dataPurchase')/remarks" id="remarks" auto-size="true"
        style="height:100%;width:100%;"/>  
      <xui:view id="vBarPurchase">
        <xhtml:div component="/UI/system/components/toolbars.xbl.xml#toolbars" id="toolbars2">
          <xui:bar component="/UI/system/components/bar.xbl.xml#navigatorBar" id="navigatorBar2"
            data="dataPurchaseM">
            <item name="insert-item" id="insertBtn" readonly="(call('justep.Context.getRequestParameter', 'activity-pattern') = 'detail')"/>  
            <item name="delete-item" id="deleteBtn" readonly="(call('justep.Context.getRequestParameter', 'activity-pattern') = 'detail')"/>
          </xui:bar>
        </xhtml:div>  
        <xui:layout style="height:100%">
          <place control="toolbars2"/>
        </xui:layout>
      </xui:view>  
      <xui:view id="vGrdPurchase">
        <xhtml:div component="/UI/system/components/grid.xbl.xml#grid" show-header-menu="hide-column,save-layout,group-column,adjust-column"
          id="grdPurchaseM" data="dataPurchaseM">
          <xui:column id="gridColumn9" ref="fNO" label="采购单NO" type="ed" width="100px"/>  
          <xui:column id="gridColumn3" ref="purchaseType" label="分类" type="ed" width="100px"/>  
          <xui:column id="gridColumn4" ref="purchaseNo" label="物料编码" type="ed" width="100px"/>  
          <xui:column id="gridColumn5" ref="purchaseName" label="名称" type="ed" width="100px"/>  
          <xui:column id="gridColumn6" ref="unit" label="单位" type="ed" width="100px"/>  
          <xui:column id="gridColumn7" ref="num" label="数量" type="ed" width="100px"/>  
          <xui:column id="gridColumn8" ref="specifications" label="规格型号" type="ed"
            width="100px"/>
        </xhtml:div>  
        <xui:layout style="height:100%">
          <place control="grdPurchaseM" style="width:100%;height:100%;"/>
        </xui:layout>
      </xui:view>  
      <xui:layout style="height:100%;" type="excel" src="purchase.xls"/>
    </xui:view>  
    <xui:layout style="height:100%;width:100%">
      <xhtml:div component="/UI/system/components/tabs.xbl.xml#tabs" id="tabpanel1"
        style="height:100%;width:100%;;">
        <xui:tab id="tabPage1">
          <xui:label>详细</xui:label>  
          <xhtml:table id="table" align="center">
            <xhtml:tr>
              <xhtml:td style="height:35px">
                <place control="vBar"/>  
                <place control="dlgSelectPersonInfo" style="top:81px;left:251px;"/>
              </xhtml:td>
            </xhtml:tr>  
            <xhtml:tr>
              <xhtml:td>
                <place control="vPurchase"/>
              </xhtml:td>
            </xhtml:tr>  
            <xhtml:tr id="default7">
              <xhtml:td id="td1"/>
            </xhtml:tr>
          </xhtml:table>  
          <place control="purchaseProcess" style="width:24px;top:84px;left:219px;"/>
        </xui:tab>  
        <xui:tab id="tabProcessChart">
          <xui:label>流程轨迹</xui:label>  
          <xforms:action ev:event="xforms-select" if="event('target')='tabProcessChart'">
            <xforms:script>onClickFlowChartPage(event)</xforms:script>
          </xforms:action>  
          <place control="processChart" style="height:100%;width:100%;"/>
        </xui:tab>
      </xhtml:div>
    </xui:layout>
  </xui:view>  
  <xui:resource>
    <xhtml:script src="startActivity.js"/>  
    <xhtml:link rel="STYLESHEET" type="text/css" href="/UI/appCommon/css/common.css"/>  
    <xhtml:script src="/UI/appCommon/js/appCommon.js"/>
  </xui:resource>
</xui:window>
回复 支持 反对

使用道具 举报

91

主题

13万

帖子

3万

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
35942
发表于 2014-10-30 15:29:35 | 显示全部楼层
process文件也发一下,用附件的形式发
附件.png
远程的联系方法QQ1392416607,添加好友时,需在备注里注明其论坛名字及ID,公司等信息
发远程时同时也发一下帖子地址,方便了解要解决的问题  WeX5教程  WeX5下载



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

使用道具 举报

发表于 2014-10-30 15:55:17 | 显示全部楼层

已经远程看过,由于流程图的问题。流程图没有结束,。。所以出现问题

评分

参与人数 1 +5 收起 理由
jishuang + 5 赞一个!

查看全部评分

回复 支持 反对

使用道具 举报

67

主题

279

帖子

434

积分

中级会员

Rank: 3Rank: 3

积分
434
QQ
 楼主| 发表于 2014-10-30 15:56:02 | 显示全部楼层
已解决
回复

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-5-19 21:38 , Processed in 0.089299 second(s), 29 queries .

Powered by Discuz! X3.4

© 2001-2013 Comsenz Inc.

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