SPMMO03101_다빈도상병배치.xrw 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.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>다빈도상병 배치실행</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <main>
  10. <cond>
  11. <fromdd/>
  12. <ioflag>D</ioflag>
  13. <instcd/>
  14. <todd/>
  15. <srchflag/>
  16. <userid/>
  17. <deptcd/>
  18. <exedd/>
  19. </cond>
  20. </main>
  21. <send>
  22. </send>
  23. <init/>
  24. <temp>
  25. </temp>
  26. <patdiag>
  27. <patdiaglist/>
  28. </patdiag>
  29. </root>
  30. </instance>
  31. <script type="javascript" ev:event="xforms-ready">
  32. <![CDATA[
  33. fInitialize();
  34. ]]>
  35. </script>
  36. <submission id="TXMMO03104" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/cond" resultref="/root/main/patdiag"/>
  37. </model>
  38. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  39. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  40. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  41. <script type="javascript">
  42. <![CDATA[
  43. var dutplcenm = getUserInfo("dutplcenm");
  44. var dutplcecd = getUserInfo("dutplcecd");
  45. var userid = getUserInfo("userid");
  46. var usernm = getUserInfo("usernm");
  47. function fInitialize(){
  48. var fromdd = getCurrentDate().toDate().getAddDate(-1,"Y").getDateFormat("YYYYMMDD");
  49. var todd = getCurrentDate();
  50. model.setValue("/root/main/cond/fromdd" , fromdd );
  51. model.setValue("/root/main/cond/todd" , todd );
  52. model.setValue("/root/main/cond/instcd" , getUserInfo("dutplceinstcd") );
  53. model.setValue("/root/main/cond/srchflag" , "1" );
  54. model.setValue("/root/main/cond/userid" , userid );
  55. model.setValue("/root/main/cond/deptcd" , dutplcecd );
  56. model.setValue("/root/main/cond/exedd" , getCurrentDate() );
  57. cpt_txt.value = "★ " + usernm + " ( " + userid + " )";
  58. model.refresh();
  59. }
  60. function fCnfmBtn(){
  61. var fromdd = model.getValue("/root/main/cond/fromdd");
  62. var todd = model.getValue("/root/main/cond/todd");
  63. model.setValue("/root/main/cond/exedd", getCurrentDate());
  64. if( getDateInterval(fromdd, todd) > 365 ){
  65. messageBox("배치 최대 기간은 1년입니다. 조회기간 날짜를 수정하세요!", "E999", "");
  66. return false;
  67. }
  68. if (submit("TXMMO03104") == true){
  69. alert("다빈도 상병조회 배치가 성공하였습니다. ");
  70. }
  71. else {
  72. alert("다빈도 상병조회 배치가 실패하였습니다. 담당자에게 문의 바랍니다. ");
  73. }
  74. model.refresh();
  75. }
  76. ]]>
  77. </script>
  78. </xhtml:head>
  79. <xhtml:body pagewidth="345" pageheight="135">
  80. <shape id="roundrect1" appearance="roundrect" ellipsewidth="20" ellipseheight="20" style="left:0px; top:0px; width:324px; height:100px; "/>
  81. <button id="button1" class="btn4_letter2" style="left:206px; top:104px; width:56px; height:22px; ">
  82. <caption>실행</caption>
  83. <script type="javascript" ev:event="DOMActivate">
  84. <![CDATA[
  85. fCnfmBtn();
  86. ]]>
  87. </script>
  88. </button>
  89. <button id="button2" class="btn4_letter2" style="left:266px; top:104px; width:56px; height:22px; ">
  90. <caption>닫기</caption>
  91. <script type="javascript" ev:event="DOMActivate">
  92. <![CDATA[
  93. model.close();
  94. ]]>
  95. </script>
  96. </button>
  97. <caption id="caption1" class="search_name" style="left:15px; top:15px; width:86px; height:17px; ">조회기간 :</caption>
  98. <caption id="caption3" class="search_name" style="left:15px; top:41px; width:86px; height:17px; ">조회구분 :</caption>
  99. <input id="input2" ref="/root/main/cond/fromdd" class="input_s_essential" inputtype="date" style="left:105px; top:15px; width:90px; height:19px; "/>
  100. <input id="input1" ref="/root/main/cond/todd" class="input_s_essential" inputtype="date" style="left:216px; top:15px; width:90px; height:19px; "/>
  101. <select1 id="rdo_srchflag" ref="/root/main/cond/srchflag" appearance="full" cellspacing="20" cols="2" overflow="visible" style="left:105px; top:43px; width:145px; height:20px; border-style:none; ">
  102. <choices>
  103. <item>
  104. <label>개인별</label>
  105. <value>1</value>
  106. </item>
  107. </choices>
  108. <script type="javascript" ev:event="xforms-value-changed">
  109. <![CDATA[
  110. if( model.getValue("/root/main/cond/srchflag") == "1" ){
  111. cpt_txt.value = "★ " + usernm + " ( " + userid + " )";
  112. }else{
  113. cpt_txt.value = "★ " + dutplcenm;
  114. }
  115. model.refresh();
  116. ]]>
  117. </script>
  118. </select1>
  119. <caption id="caption2" style="left:199px; top:15px; width:15px; height:20px; font-weight:bold; ">~</caption>
  120. <caption id="cpt_txt" style="left:105px; top:65px; width:205px; height:25px; font-weight:bold; color:#0000ff; "/>
  121. </xhtml:body>
  122. </xhtml:html>