SMICV01700_CRCC비목관리.xrw 6.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136
  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>Untitle</xhtml:title>
  6. <script type="javascript" src="C:\CMCProject\application\webapps\crc\clinicresearchweb\js\crccnvsub1.js"/>
  7. <model id="model1">
  8. <instance id="instance1">
  9. <root xmlns="">
  10. <main>
  11. <grid>
  12. <item>
  13. <typenm/>
  14. <limamtrate/>
  15. <cmt/>
  16. <typeseqno/>
  17. </item>
  18. </grid>
  19. <griddtl>
  20. <item>
  21. <typeseqno/>
  22. <itemexpendcd/>
  23. <itemexpendnm/>
  24. <cmt/>
  25. </item>
  26. </griddtl>
  27. </main>
  28. <send>
  29. <searchwh>
  30. <typeseqno/>
  31. </searchwh>
  32. <saveexpenitem>
  33. <senddata/>
  34. </saveexpenitem>
  35. <searchdtlwh>
  36. <typeseqno/>
  37. </searchdtlwh>
  38. <saveexpenddtl>
  39. <senddatadtl/>
  40. </saveexpenddtl>
  41. </send>
  42. </root>
  43. </instance>
  44. <submission id="TRICV01042" ref="/root/send/searchwh" method="post" mediatype="application/x-www-form-urlencoded" replace="instance" resultref="/root/main/grid"/>
  45. <script type="javascript" ev:event="xforms-ready">
  46. <![CDATA[
  47. model.setValue("/root/send/searchwh/typeseqno", model.getValue("/root/send/searchwh/typeseqno"));
  48. submit("TRICV01042");
  49. ]]>
  50. </script>
  51. <submission id="TXICV01011" ref="/root/send/saveexpenitem" method="post" mediatype="application/x-www-form-urlencoded" replace="instance"/>
  52. <submission id="TRICV01043" ref="/root/send/searchdtlwh" method="post" mediatype="application/x-www-form-urlencoded" replace="instance" resultref="/root/main/griddtl"/>
  53. <submission id="TXICV01012" ref="/root/send/saveexpenddtl" method="post" mediatype="application/x-www-form-urlencoded" replace="instance"/>
  54. </model>
  55. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  56. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  57. </xhtml:head>
  58. <xhtml:body guideline="2,773;1,1190;">
  59. <group id="grp_tle" style="left:0px; top:0px; width:1190px; height:14px; ">
  60. <caption id="caption120" class="tit_1" style="left:0px; top:0px; width:158px; height:14px; ">비목관리</caption>
  61. </group>
  62. <line id="line1" class="line_1" style="x1:0px; y1:70px; x2:1194px; y2:70px; "/>
  63. <line id="line6" class="line_3" style="x1:0px; y1:770px; x2:1194px; y2:770px; "/>
  64. <group id="group3" style="left:10px; top:25px; width:1179px; height:45px; vertical-align:top; ">
  65. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1179px; height:40px; background-color:#fffbf2; border-color:#ffd799; "/>
  66. <button id="button51" class="btn4_letter2" style="left:1084px; top:9px; width:56px; height:22px; ">
  67. <caption>저장</caption>
  68. <script type="javascript" ev:event="DOMActivate">
  69. <![CDATA[
  70. model.setValue("/root/send/saveexpenitem/senddata",datagrid3.getUpdateData());
  71. submit("TXICV01011");
  72. ]]>
  73. </script>
  74. </button>
  75. <caption id="caption146" class="tit_2" style="left:25px; top:25px; width:125px; height:14px; ">비목타입목록</caption>
  76. </group>
  77. <datagrid id="datagrid3" nodeset="/root/main/grid/item" caption="타입명^제한금액율(100%)^비고^caption1" colwidth="235, 333, 282, 100" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" colsep="^" style="left:0px; top:75px; width:1055px; height:200px; ">
  78. <col ref="typenm" type="input"/>
  79. <col ref="limamtrate" type="input"/>
  80. <col ref="cmt" type="input"/>
  81. <col ref="typeseqno" visibility="hidden"/>
  82. <script type="javascript" ev:event="ondblclick">
  83. <![CDATA[
  84. var typeseqnoValue = model.getValue("/root/main/grid/item[" + datagrid3.row + "]/typeseqno");
  85. model.makeValue("/root/send/searchdtlwh/typeseqno", typeseqnoValue);
  86. submit("TRICV01043");
  87. model.makeValue("/root/send/saveexpenddtl/typeseqno", typeseqnoValue);//저장
  88. model.refresh();
  89. ]]>
  90. </script>
  91. </datagrid>
  92. <datagrid id="datagrid1" nodeset="/root/main/griddtl/item" caption="타입일련번호^비목코드^비목명^비고" colwidth="117, 235, 333, 243" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowsep="|" colsep="^" style="left:0px; top:325px; width:1055px; height:435px; ">
  93. <col ref="typeseqno" type="input" _key="true"/>
  94. <col ref="itemexpendcd" type="input" _key="true"/>
  95. <col ref="itemexpendnm" type="input"/>
  96. <col ref="cmt" type="input"/>
  97. </datagrid>
  98. <caption id="caption1" class="tit_2" style="left:25px; top:305px; width:209px; height:14px; ">비목코든느 순번대로 입력하세요</caption>
  99. <button id="button3" class="btn4_letter2" style="left:960px; top:295px; width:56px; height:22px; ">
  100. <caption>저장</caption>
  101. <script type="javascript" ev:event="DOMActivate">
  102. <![CDATA[
  103. var typeseqnoValue = model.getValue("/root/send/searchdtlwh/typeseqno");
  104. if(typeseqnoValue != ""){
  105. model.makeValue("/root/send/saveexpenddtl/typeseqno", typeseqnoValue);
  106. }else{
  107. alert("비목을 선택하시면 상세정보를 입력할수있습니다.");
  108. }
  109. model.setValue("/root/send/saveexpenddtl/senddatadtl",datagrid1.getUpdateData());
  110. submit("TXICV01012");
  111. ]]>
  112. </script>
  113. </button>
  114. <input id="input19" ref="/root/send/searchdtlwh/typeseqno" class="input_search" visibility="hidden" style="left:735px; top:298px; width:80px; height:19px; "/>
  115. <button id="button2" class="btn2_letter3" style="left:900px; top:296px; width:53px; height:19px; ">
  116. <caption>행삭제</caption>
  117. <script type="javascript" ev:event="onclick">
  118. <![CDATA[
  119. datagrid1.deleteItem(datagrid1.row);
  120. ]]>
  121. </script>
  122. </button>
  123. <button id="button5" class="btn2_letter3" style="left:840px; top:296px; width:53px; height:19px; ">
  124. <caption>행추가</caption>
  125. <script type="javascript" ev:event="onclick">
  126. <![CDATA[
  127. datagrid1.addItem(datagrid1.row);
  128. var typeseqnoValue = model.getValue("/root/send/searchdtlwh/typeseqno");
  129. datagrid1.valueMatrix(datagrid1.row, datagrid1.colRef("typeseqno"))=typeseqnoValue;
  130. ]]>
  131. </script>
  132. </button>
  133. </xhtml:body>
  134. </xhtml:html>