SMLLP02100_검사수가조회.xrw 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <!--
  3. * 제 목 : SMLLP02100_검사수가관리.xrw
  4. * 설 명 : 검사수가조회
  5. * 설 계 자 : (주)에이씨케이 -
  6. * 작 성 자 : (주)에이씨케이 - 이재민
  7. * 작 성 일 : 2009.10.6
  8. * 수정이력 :
  9. * 기 타 :
  10. -->
  11. <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/css" ?>
  12. <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">
  13. <xhtml:head>
  14. <xhtml:title>검사수가관리</xhtml:title>
  15. <model id="model1">
  16. <instance id="instance1">
  17. <root xmlns="">
  18. <main>
  19. <getCharge>
  20. <tclscd/>
  21. <sectnm/>
  22. <tclsnm/>
  23. <tclsabbrnm/>
  24. <genrprice/>
  25. <insuprice/>
  26. <contprice/>
  27. </getCharge>
  28. </main>
  29. <send>
  30. <extrtestinstcd/>
  31. <data/>
  32. <codeflag/>
  33. <code1/>
  34. <search/>
  35. <code3/>
  36. <code2/>
  37. </send>
  38. <hidden>
  39. <ref>
  40. <extrtestinstcd>00</extrtestinstcd>
  41. <cnfmyn>0</cnfmyn>
  42. <nm>100</nm>
  43. <code1>C</code1>
  44. <search/>
  45. <code2>00</code2>
  46. </ref>
  47. </hidden>
  48. <init>
  49. </init>
  50. </root>
  51. </instance>
  52. <script type="javascript" ev:event="xforms-model-construct-done">
  53. <![CDATA[
  54. model.removeNodeset("/root/main/getCharge");
  55. model.refresh();
  56. ]]>
  57. </script>
  58. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  59. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  60. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  61. <script type="javascript" src="../../../lis/commonweb/js/LLZ001.js"/>
  62. <script type="javascript" ev:event="xforms-ready">
  63. <![CDATA[
  64. model.setValue("/root/send/codeflag", "0110|0106|0108|0109|0111|0210|0000|0124|1005|0128|"); //0110
  65. submit("TRLZZ00101");
  66. ]]>
  67. </script>
  68. <submission id="TRLZZ00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/LB"/>
  69. <submission id="TRLLP02101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/getCharge"/>
  70. <submission id="TXLLP02101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance"/>
  71. </model>
  72. <script type="javascript">
  73. <![CDATA[
  74. //계약가 계산
  75. function fInsurance() {
  76. var cnf = model.getValue("/root/hidden/ref/cnfmyn");
  77. var gen = "";
  78. var ins = "";
  79. var nm = model.getValue("/root/hidden/ref/nm");
  80. if (cnf == 0) {
  81. for(var tRow = 1 ; tRow < datagrid1.rows ; tRow++ ){
  82. gen = model.getValue("/root/main/getCharge["+tRow+"]/genrprice");
  83. var genrprice = gen * nm / 100;
  84. model.setValue("/root/main/getCharge["+tRow+"]/contprice", genrprice);
  85. datagrid1.rowStatus(tRow) = 2; //상태함수
  86. }
  87. }else{
  88. for(var tRow = 1 ; tRow < datagrid1.rows ; tRow++ ){
  89. ins= model.getValue("/root/main/getCharge["+tRow+"]/insuprice");
  90. var insuprice = ins * nm / 100;
  91. model.setValue("/root/main/getCharge["+tRow+"]/contprice", insuprice);
  92. datagrid1.rowStatus(tRow) = 2;
  93. }
  94. }
  95. model.refresh();
  96. }
  97. //조회
  98. function fGetList() {
  99. model.setValue("/root/send/extrtestinstcd", model.getValue("/root/hidden/ref/extrtestinstcd"));
  100. model.setValue("root/send/code1", model.getValue("/root/hidden/ref/code1"));
  101. model.setValue("root/send/code2", model.getValue("/root/hidden/ref/code2"));
  102. model.setValue("root/send/search", model.getValue("/root/hidden/ref/search"));
  103. submit("TRLLP02101");
  104. }
  105. //저장
  106. function fListSave() {
  107. model.setValue("/root/send/data" , getGridUpdateData(datagrid1));
  108. submit("TXLLP02101");
  109. fGetList();
  110. }
  111. // 초기화
  112. function fSetInit() {
  113. model.removeNodeset("/root/main/getCharge");
  114. model.refresh();
  115. }
  116. ]]>
  117. </script>
  118. </xhtml:head>
  119. <xhtml:body style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  120. <group id="group1" style="left:0px; top:0px; width:1175px; height:13px; "/>
  121. <group id="group3" scroll="auto" style="left:0px; top:40px; width:1195px; height:744px; ">
  122. <group id="group2" ref="/root/main/getList" style="left:0px; top:10px; width:1195px; height:35px; vertical-align:top; ">
  123. <shape id="roundrect1" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:1194px; height:35px; "/>
  124. <button id="button1" class="btn1_letter2" style="left:1131px; top:7px; width:56px; height:22px; ">
  125. <caption>조회</caption>
  126. <script type="javascript" ev:event="DOMActivate">
  127. <![CDATA[
  128. fGetList();
  129. ]]>
  130. </script>
  131. </button>
  132. <line id="line13" class="line_4" style="x1:1121px; y1:7px; x2:1121px; y2:29px; "/>
  133. <select1 id="extrtestinstcd" ref="/root/hidden/ref/extrtestinstcd" appearance="minimal" style="left:291px; top:9px; width:113px; height:19px; font-weight:normal; ">
  134. <choices>
  135. <itemset nodeset="/root/init/LB0110">
  136. <label ref="nm"/>
  137. <value ref="cd"/>
  138. </itemset>
  139. </choices>
  140. </select1>
  141. <caption id="caption2" class="search_name" style="left:199px; top:10px; width:86px; height:17px; ">외부업체 :</caption>
  142. <caption id="caption3">%</caption>
  143. <input id="input2" ref="/root/hidden/ref/search" style="left:1010px; top:8px; width:100px; height:19px; ">
  144. <script type="javascript" ev:event="onkeypress">
  145. <![CDATA[
  146. //엔터 이벤트
  147. if(event.keyCode == "13") {
  148. model.setValue("/root/hidden/ref/search",input2.currentText);
  149. fGetList();
  150. }
  151. ]]>
  152. </script>
  153. </input>
  154. <select1 id="combo1" ref="/root/hidden/ref/code1" appearance="minimal" style="left:930px; top:8px; width:76px; height:19px; ">
  155. <choices>
  156. <item>
  157. <label>검사코드</label>
  158. <value>C</value>
  159. </item>
  160. <item>
  161. <label>검사명</label>
  162. <value>N</value>
  163. </item>
  164. </choices>
  165. </select1>
  166. <caption id="caption5" class="search_name" style="left:5px; top:9px; width:86px; height:17px; ">시행부서 :</caption>
  167. <select1 id="combo2" ref="/root/hidden/ref/code2" appearance="minimal" style="left:94px; top:9px; width:86px; height:19px; ">
  168. <choices>
  169. <itemset nodeset="/root/init/LB0111">
  170. <label ref="nm"/>
  171. <value ref="cd"/>
  172. </itemset>
  173. </choices>
  174. </select1>
  175. <caption id="caption7" class="search_name" style="left:840px; top:9px; width:86px; height:17px; ">조회구분 :</caption>
  176. </group>
  177. <caption id="caption1" class="tit_2" style="left:5px; top:55px; width:131px; height:13px; ">검사수가 리스트</caption>
  178. <datagrid id="datagrid1" nodeset="/root/main/getCharge" caption="검사코드^시행부서^검사명^검사명(약어)^일반^보험^계약가^" colwidth="80, 100, 250, 120, 90, 90, 90" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" explorerbar="sortshow" style="left:0px; top:80px; width:1194px; height:625px; font-weight:bold; text-align:center; ">
  179. <col autonext="true" disabled="true" editable="true" imemode="disabled" key="true" ref="tclscd" savetype="auto" type="output" visibility="visible"/>
  180. <col ref="sectnm" type="output" style="text-align:left; "/>
  181. <col ref="tclsnm" type="output" style="text-align:left; "/>
  182. <col ref="tclsabbrnm" type="output" style="text-align:left; "/>
  183. <col ref="genrprice" type="output" format="(-)#,###.99" style="text-align:right; "/>
  184. <col ref="insuprice" type="output" format="(-)#,###.99" style="text-align:right; "/>
  185. <col ref="contprice" type="output" format="(-)#,###.99" style="text-align:right; "/>
  186. <script type="javascript" ev:event="onaftersort">
  187. <![CDATA[
  188. datagrid1.gridToInstance();
  189. ]]>
  190. </script>
  191. </datagrid>
  192. <line id="line3" class="line_1" style="x1:0px; y1:77px; x2:1194px; y2:76px; "/>
  193. <select1 id="radio1" ref="/root/hidden/ref/cnfmyn" class="radio_search" appearance="full" cellspacing="10" cols="2" overflow="visible" style="left:564px; top:53px; width:105px; height:15px; border-style:none; ">
  194. <choices>
  195. <item>
  196. <label>일반</label>
  197. <value>0</value>
  198. </item>
  199. <item>
  200. <label>보험</label>
  201. <value>1</value>
  202. </item>
  203. </choices>
  204. </select1>
  205. <input id="input1" ref="/root/hidden/ref/nm" style="left:664px; top:51px; width:35px; height:19px; text-align:right; ">
  206. <script type="javascript" ev:event="onkeypress">
  207. <![CDATA[
  208. //엔터 이벤트
  209. if(event.keyCode == "13") {
  210. model.setValue("/root/hidden/ref/nm",input1.currentText);
  211. fInsurance();
  212. }
  213. ]]>
  214. </script>
  215. </input>
  216. <caption id="caption4" style="left:700px; top:52px; width:25px; height:20px; ">%</caption>
  217. <caption id="cpt_wbc" class="cell_1" style="left:484px; top:49px; width:77px; height:23px; ">계약가계산 :</caption>
  218. <button id="button3" class="btn6_letter2" style="left:725px; top:50px; width:56px; height:22px; ">
  219. <caption>계산</caption>
  220. <script type="javascript" ev:event="onclick">
  221. <![CDATA[
  222. fInsurance();
  223. ]]>
  224. </script>
  225. </button>
  226. </group>
  227. <group id="group4" scroll="auto" style="left:0px; top:15px; width:1195px; height:27px; ">
  228. <button id="button5" class="btn4_letter3" style="left:1125px; top:2px; width:68px; height:22px; ">
  229. <caption>초기화</caption>
  230. <script type="javascript" ev:event="onclick">
  231. <![CDATA[
  232. fSetInit();
  233. ]]>
  234. </script>
  235. </button>
  236. <button id="btn_save" class="btn4_letter2" style="left:1067px; top:2px; width:56px; height:22px; ">
  237. <caption>저장</caption>
  238. <script type="javascript" ev:event="DOMActivate">
  239. <![CDATA[
  240. fListSave();
  241. ]]>
  242. </script>
  243. </button>
  244. <line id="line15" class="line_6" style="x1:0px; y1:25px; x2:1194px; y2:25px; "/>
  245. </group>
  246. <group id="group5" style="left:0px; top:0px; width:1195px; height:13px; ">
  247. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:189px; height:14px; ">검사수가 금액 관리</caption>
  248. </group>
  249. </xhtml:body>
  250. </xhtml:html>