SPZSN99900_테스트01.xrw 2.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/css" ?>
  3. <xhtml:html xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.w3.org/2002/01/xforms" xmlns:ev="http://www.w3.org/2001/xml-events">
  4. <xhtml:head>
  5. <xhtml:title>Untitle</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <main>
  10. <test>
  11. <recdd/>
  12. <rectm/>
  13. <timediff/>
  14. <gettime/>
  15. <currenttimemillis/>
  16. </test>
  17. </main>
  18. </root>
  19. </instance>
  20. <script type="javascript" ev:event="xforms-ready">
  21. <![CDATA[
  22. fInitialize();
  23. ]]>
  24. </script>
  25. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  26. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  27. <script type="javascript">
  28. <![CDATA[
  29. function fInitialize(pFlag){
  30. model.setValue(ipt_recdd.attribute("ref"), getCurrentDate());
  31. model.setValue(ipt_rectm.attribute("ref"), getCurrentTime().substr(0,4));
  32. model.setValue(ipt_timediff.attribute("ref"), getGlobalVariable("timediff"));
  33. model.setValue(ipt_gettime.attribute("ref"), (new Date()).getTime());
  34. model.setValue(ipt_currenttimemillis.attribute("ref"), getGlobalVariable("currenttimemillis"));
  35. model.refresh();
  36. }
  37. ]]>
  38. </script>
  39. </model>
  40. </xhtml:head>
  41. <xhtml:body>
  42. <button id="btn_clock" class="icon_clock" style="left:670px; top:330px; width:16px; height:16px; ">
  43. <caption/>
  44. <script type="javascript" ev:event="DOMActivate">
  45. <![CDATA[
  46. model.setValue(ipt_recdd.attribute("ref"), getCurrentDate());
  47. model.setValue(ipt_rectm.attribute("ref"), getCurrentTime().substr(0,4));
  48. ipt_recdd.refresh();
  49. ipt_rectm.refresh();
  50. ]]>
  51. </script>
  52. </button>
  53. <input id="ipt_rectm" ref="/root/main/test/rectm" class="input_default" format="hh:nn" type="inputbutton" style="left:624px; top:330px; width:40px; height:19px; "/>
  54. <input id="ipt_recdd" ref="/root/main/test/recdd" class="input_default" inputtype="date" style="left:535px; top:330px; width:86px; height:19px; "/>
  55. <input id="ipt_timediff" ref="/root/main/test/timediff" style="left:375px; top:390px; width:100px; height:19px; "/>
  56. <caption id="caption1" style="left:275px; top:390px; width:100px; height:20px; ">timediff</caption>
  57. <input id="ipt_gettime" ref="/root/main/test/gettime" style="left:710px; top:390px; width:100px; height:20px; "/>
  58. <caption id="caption2" style="left:605px; top:390px; width:100px; height:20px; ">gettime</caption>
  59. <caption id="caption3" style="left:245px; top:465px; width:100px; height:20px; ">currentTimeMillis</caption>
  60. <input id="ipt_currenttimemillis" ref="/root/main/test/currenttimemillis" style="left:365px; top:460px; width:100px; height:19px; "/>
  61. </xhtml:body>
  62. </xhtml:html>