普元EOS6.2學習總結

 

文件上傳:

 

將文件類型的轉換爲對象類型

 


數據放入到session中:

1.      現在前一個頁面的form中:

<input type="hidden"name="testVar" value="ss" scope="session"/>

2.  然後在下面的頁面中就可以獲得到了<b:writeproperty="testVar"/>

Eos標籤不可以嵌套:(主要是傳參數)

如:

   獲得值:

第一種

<%

  Object reqid =com.eos.web.taglib.util.XpathUtil.getDataContextRoot("request",pageContext);

  String reqId=(String)com.eos.web.taglib.util.XpathUtil.getObjectByXpath(reqid,"userRequiements/requiementId");

  System.out.println("reqId  --  "+reqId);

  //com.eos.web.taglib.util.XpathUtil.setValue("reID",pageContext, reID,null);

     %>

第二種:

<%

  Object processInst =com.eos.web.taglib.util.XpathUtil.getDataContextRoot("request",pageContext);

  String processInstId =String.valueOf(com.eos.web.taglib.util.XpathUtil.getObjectByXpath(processInst,"processInstId"));

  System.out.println("reqId  --  "+processInstId);

  //com.eos.web.taglib.util.XpathUtil.setValue("reID",pageContext, reID,null);

  %>

    (jsp腳本和<b:write property="userRequiements/requiementId"/>

<w:tabPanel id="manage"defaultTab="dictManager" height="100%"width="100%">

        <w:tabPageid="dictManager" onRefreshFunc="refreshPage1"  tabType="iframe" allowReload="true"allowSelect="true" cache="true" title="準備"url="com.sinosoft.userrequiements.auditmanager.UserRequiementsAuditInit.flow?_eosFlowAction=auditPrepare&requiementId=<%=reqId%>" >         <!-- 準備 -->

       </w:tabPage>

可以傳值:、

<iframename="menuTreeFrame"align="top"scrolling="auto"style="width:100%;height:100%"

    src="com.sinosoft.userrequiements.mywork.FeedBackMyWork.flow?_eosFlowAction=showFlow&processInstId=<b:writeproperty="userRequiements/processinstid"/>"style="width:100%;height: 100%"frameBorder=0>

    </iframe>

 

在邏輯流獲得用戶登錄的信息:(eos內置)


頁面流獲得用戶的信息:


解決:分頁和重置按鈕問題:

查詢的:

頁面流:



 

Iframe頁面:


分頁:


核心代碼:

<tablealign="center"border="0"cellpadding="0"cellspacing="0"width="100%">

     <tr>

         <td>

         <iframename="queryFrame"id="queryFrame"src=""  marginWidth=0marginHeight=frameborder="0"scrolling="no"width="100%"onload="autoResize();"></iframe>

         </td>

     </tr>

</table>

<scripttype="text/javascript">

 document.form1.submit();

    function autoResize(){

     try{

         document.all["queryFrame"].style.height=queryFrame.document.body.scrollHeight;

     }catch(e){}

}

</script>

 

 

 

 

<wf:selectActParticipant processInstID="@userRequiements/processinstid"
可以不用寫java片段

直接用@就可以

就是,eos標籤訪問property指定的xpath值的訪問方式

 

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章