SSISO Community

시소당

[TrustForm] xfm(트러스트폼 파일) 사용법

<xhtml:html xmlns="http://www.w3.org/2002/01/xforms" xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:ms="urn:schemas-microsoft-com:xslt" xmlns:my="http://www.comsquare.co.kr/example" xmlns:cs="http://www.comsquare.co.kr/xforms" xmlns:ex="http://www.comsquare.co.kr/xforms/excel" xmlns:ev="http://www.w3.org/2001/xml-events">
 <xhtml:head>
  <xhtml:title>Untitle</xhtml:title>
  <model>
   <instance>
    <root xmlns="">
     <example>Sample</example>

     <!-- 변수 입니다.---------------------------------------------------------------------->
     <test.selectRoList>
      <req>
       <startDt/>
       <endDt/>
      </req>
      <res>
       <grid>
        <asnCd/>
        <roNo/>
        <vin/>
        <csmrNm/>
        <iCdt/>
       </grid>
      </res>
     </test.selectRoList>
     <!-- 변수 입니다.---------------------------------------------------------------------->


    </root>
   </instance>
   <bind id="input1" ref="root/test.selectRoList/req/startDt"/>
   <bind id="input2" ref="root/test.selectRoList/req/endDt"/>
   <submitInfo id="selectRoList" ref="root/test.selectRoList/req" replace="instance" mediaType="application/x-www-form-urlencoded" method="post" action="/as/action.do" resultRef="root/test.selectRoList/res"/>
   <bind id="output1" ref="root/test.selectRoList/res/grid/asnCd"/>
   <bind id="output2" ref="root/test.selectRoList/res/grid/roNo"/>
   <bind id="output3" ref="root/test.selectRoList/res/grid/vin"/>
   <bind id="output4" ref="root/test.selectRoList/res/grid/csmrNm"/>
   <bind id="output5" ref="root/test.selectRoList/res/grid/iCdt"/>
   <script type="javascript" id="script1" ev:event="xforms-ui-initialize">
    <![CDATA[
    ]]>
   </script>
  </model>


  <!-- 자바파일 import. ---------------------------------------------------------------------->
  <script type="javascript" src="../../js/validation.js"/>
  <script type="javascript" src="../../js/date.js"/>
  <script type="javascript" src="../../js/hashmap.js"/>
  <script type="javascript" src="../../js/grid.js"/>
  <script type="javascript" src="../../js/xform.js"/>
  <script type="javascript">
   <![CDATA[
    var xform = new xform();
    var g1 = new grid("grid1");
   ]]>
  </script>
  <!-- 자바파일 import. ---------------------------------------------------------------------->



 </xhtml:head>
 <xhtml:body>

  <!-- 리턴값을 삽입하는 그리드 작성 ---------------------------------------------------------------------->
  <!--
   huge="yes"  = 리턴값을 받을때 필요합니다.  
   nodeset="root/test.selectRoList/res/grid" = 노드값을 셋팅할 변수  
  -->
  <repeat id="grid1" nodeset="root/test.selectRoList/res/grid" huge="yes" type="grid" caption="정비망^ro번호^차대번호^고개명^발행일자" colWidth="100,100,100,100,100" gridWidth="501" gridHeight="225" rowHeight="20" dataHeight="20" left="28" top="116">
  <!-- 리턴값을 삽입하는 그리드 작성 ---------------------------------------------------------------------->

   <output id="output1" ref="asnCd" bind="output1" colnum="0" style=" vertical-align:middle;"/>
   <output id="output2" ref="roNo" bind="output2" colnum="1" style=" vertical-align:middle;"/>
   <output id="output3" ref="vin" bind="output3" colnum="2" style=" vertical-align:middle;"/>
   <output id="output4" ref="csmrNm" bind="output4" colnum="3" style=" vertical-align:middle;"/>
   <output id="output5" ref="iCdt" bind="output5" colnum="4" style=" vertical-align:middle;"/>

  </repeat>

  <!--인풋 박스  ---------------------------------------------------------------->
  <!--
   useCal = 달력 사용여부
  -->

  <input id="input1" bind="input1" useCal="yes" style="left:28px; top:32px; width:100px; height:20px; vertical-align:middle;"/>
  <input id="input2" bind="input2" useCal="yes" style="left:149px; top:32px; width:100px; height:20px; vertical-align:middle;"/>
  <!--인풋 박스  ---------------------------------------------------------------->


 
 
 
  <!-- 버튼  ---------------------------------------------------------------->
 
  <!--
   xform.submit("selectRoList","AS_VHRP","test.selectRoList","N");
   
   페키지 이름 : AS_VHRP
   메소드 이름 : selectRoList
          : test.selectRoList (자바이름 작성시 test_selectRoList)
   트렌젝션 사용 :  사용여부 N
  -->
 

  <button id="button1" style="left:280px; top:32px; width:100px; height:20px;">
   <caption>
    <![CDATA[button1]]>
   </caption>
   <script type="javascript" id="script2" ev:event="xforms-activate">
    <![CDATA[
     xform.submit("selectRoList","AS_VHRP","test.selectRoList","N");
     ]]>
   </script>
  </button>
 

  <!-- 버튼  ---------------------------------------------------------------->


 </xhtml:body>
</xhtml:html>

21632 view

4.0 stars