SMPID22200_공여자명세서생성.xrw 26 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <!--
  3. * @(#)SMPID22200_공여자명세서생성.xrw
  4. * 수정이력
  5. * - 2008.08.29 / 최초작성 / 김상진
  6. -->
  7. <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/css" ?>
  8. <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">
  9. <xhtml:head>
  10. <xhtml:title>공여자명세서생성</xhtml:title>
  11. <model id="model1">
  12. <instance id="instance1">
  13. <root xmlns="">
  14. <main>
  15. <list1>
  16. <clbs/>
  17. </list1>
  18. </main>
  19. <send>
  20. <item1>
  21. <ioflag>I</ioflag>
  22. <clamym/>
  23. <clamdg/>
  24. <pid/>
  25. <pidsn/>
  26. <ordfromdd/>
  27. <orddeptcd/>
  28. <orddrid/>
  29. <spclcd>V073</spclcd>
  30. <diagcd/>
  31. <calcscorcd/>
  32. <hngnm/>
  33. <inclnm/>
  34. <mx999/>
  35. <drugqty/>
  36. <tims/>
  37. <dayno/>
  38. <totamt/>
  39. <ownbamt/>
  40. <clamflag>0</clamflag>
  41. </item1>
  42. </send>
  43. <init>
  44. <item1>
  45. <ioflag/>
  46. <clamym/>
  47. <clamdg/>
  48. <pid/>
  49. <pidsn/>
  50. </item1>
  51. <!-- 보험유형 -->
  52. <P0008list>
  53. <P0008>
  54. <cdnm/>
  55. <cdid/>
  56. </P0008>
  57. </P0008list>
  58. <!-- 보조유형 -->
  59. <P0010list>
  60. <P0010>
  61. <cdnm/>
  62. <cdid/>
  63. </P0010>
  64. </P0010list>
  65. </init>
  66. <hidden>
  67. <sppmc02500>
  68. <cond>
  69. <!-- SPPMC02500_환자조회 화면으로 검색조건을 보내는 경로임 -->
  70. <srchcond/>
  71. <pid/>
  72. <hngnm/>
  73. <rrgstno1/>
  74. <rrgstno2/>
  75. </cond>
  76. </sppmc02500>
  77. </hidden>
  78. </root>
  79. </instance>
  80. <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post" replace="instance"/>
  81. <script type="javascript" ev:event="xforms-ready">
  82. <![CDATA[
  83. var pid = model.getValue("/root/init/item1/pid");
  84. if (pid) {
  85. model.setValue("/root/send/item1/ioflag", model.getValue("/root/init/item1/ioflag"));
  86. model.setValue("/root/send/item1/clamym", model.getValue("/root/init/item1/clamym"));
  87. model.setValue("/root/send/item1/clamdg", model.getValue("/root/init/item1/clamdg"));
  88. model.setValue("/root/send/item1/pid", model.getValue("/root/init/item1/pid"));
  89. model.setValue("/root/send/item1/pidsn", model.getValue("/root/init/item1/pidsn"));
  90. }
  91. // 기본정보셋팅
  92. model.setValue("/root/send/item1/calcscorcd", "JJJJJJ"); //처방코드
  93. model.setValue("/root/send/item1/hngnm", "타인간 이식 공여자 진료비"); //처방명
  94. model.setValue("/root/send/item1/inclnm", "타인간 이식 공여자 진료비"); //준용명
  95. model.setValue("/root/send/item1/drugqty", "1"); //1회량
  96. model.setValue("/root/send/item1/tims", "1"); //횟수
  97. model.setValue("/root/send/item1/dayno", "1"); //일수
  98. // 화면을 초기화한다.
  99. fInitialize();
  100. var pid = model.getValue("/root/send/item1/pid");
  101. if (pid) {
  102. btn_select.dispatch("DOMActivate");
  103. }
  104. ]]>
  105. </script>
  106. <submission id="TRPID20309" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/item1/ioflag" resultref="root/hidden/tmp"/>
  107. <submission id="TRPID22201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/item1" resultref="/root/main"/>
  108. <submission id="TXPID22201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/item1"/>
  109. </model>
  110. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  111. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  112. <script type="javascript" src="../../../com/commonweb/js/numericHelper.js"/>
  113. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  114. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  115. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  116. <script type="javascript" src="../../../pam/aftjudgweb/js/SMPID20000.js"/>
  117. <script type="javascript">
  118. <![CDATA[
  119. var gToday = new Date();
  120. var gBaseyear = gToday.getDateFormat("YYYY"); // (dateHelper.js)에서 제공하는 함수를 사용하여 해당 년를 구한다.
  121. var gBasemonth = gToday.getDateFormat("MM");
  122. var gBaseday = gToday.getDateFormat("DD");
  123. var gCurrentdd = gBaseyear + gBasemonth + gBaseday;
  124. var gCurrentym = gBaseyear + gBasemonth;
  125. function fInitialize() {
  126. // ---------------------------------------------------------------
  127. // 공통코드를 조회한다.
  128. // (ZBC001.js) com.ZBCMCODE 에서 기초코드 값 Get
  129. // ---------------------------------------------------------------
  130. zbcfGetCodeList(
  131. new Array("P0008" // 보험유형
  132. ,"P0010" // 보조유형
  133. ),
  134. new Array("/root/init/P0008list"
  135. ,"/root/init/P0010list"
  136. ) );
  137. // ---------------------------------------------------------------
  138. // 진료과 주치의 초기화
  139. // ---------------------------------------------------------------
  140. submit("TRPID20309", false);
  141. model.makeNode("root/hidden/tmp/orddeptcd");
  142. model.makeNode("root/hidden/tmp/orddrid");
  143. model.removeNodeset("root/init/orddeptcd");
  144. model.removeNodeset("root/init/orddrid");
  145. model.makeNode("root/init/orddeptcd");
  146. model.makeNode("root/init/orddrid");
  147. model.copyNode("root/init/orddeptcd", "root/hidden/tmp/orddeptcd");
  148. model.copyNode("root/init/orddrid", "root/hidden/tmp/orddrid");
  149. model.removeNodeset("root/hidden/tmp/orddeptcd");
  150. model.removeNodeset("root/hidden/tmp/orddrid");
  151. model.refreshpart("/root/send/item1/orddeptcd");
  152. model.refreshpart("/root/send/item1/orddrid");
  153. //청구월 셋팅
  154. if (model.getValue("/root/send/item1/clamym") == "") {
  155. var lv_date = gCurrentym.toDate("YYYYMM" + "01");
  156. lv_date = lv_date.getAddDate(-1, "M")
  157. gCurrentym = lv_date.getDateFormat("YYYYMM")
  158. model.setValue("/root/send/item1/clamym", gCurrentym);
  159. }
  160. if (model.getValue("/root/send/item1/ioflag") == "O") {
  161. grd_clbsmast.colHidden(grd_clbsmast.colRef("iphsfromdd")) = true;
  162. grd_clbsmast.colHidden(grd_clbsmast.colRef("iphstodd")) = true;
  163. }
  164. cmb_spclcd.select(0);
  165. cmb_diagcd.select(0);
  166. model.refresh();
  167. }
  168. function fGetDonorList() {
  169. if (model.getValue("/root/send/item1/pid") == "") {
  170. messageBox("등록번호를", "C001"); ///입력하십시오 !
  171. } else {
  172. submit("TRPID22201");
  173. var nodeList = instance1.selectNodes("/root/main/list1/clbs");
  174. // 건수가 한건이고 접수번호가 있으면 바로 체크해준다.
  175. if (nodeList.length == 1 && model.getValue("/root/main/list1/clbs[1]/acptno") != "-") {
  176. model.setValue("/root/main/list1/clbs[1]/fromchk", "Y");
  177. model.setValue("/root/send/item1/clamdg", model.getValue("/root/main/list1/clbs[1]/clamdg"));
  178. model.refreshpart("/root/send/item1/clamdg");
  179. grd_clbsmast.refresh();
  180. grd_clbsmast.row = 1;
  181. }
  182. }
  183. }
  184. ]]>
  185. </script>
  186. </xhtml:head>
  187. <xhtml:body pagewidth="810" pageheight="460" guideline="1,1145;2,727;2,739;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  188. <group id="grp_tle" style="left:0px; top:0px; width:790px; height:13px; ">
  189. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:196px; height:14px; ">명세서관리(공여자명세서생성)</caption>
  190. </group>
  191. <group id="grp_biz" scroll="auto" style="left:0px; top:13px; width:790px; height:437px; ">
  192. <datagrid id="grd_clbsmast" nodeset="/root/main/list1/clbs" class="datagrid2" caption="C^청구년월^차수^등록번호^등록번호^환자명^보험&#xA;유형^보조&#xA;유형^진료개시일^진료종료일^유형시작일^유형종료일^진료과^진료의^workflag^clbtworkflag^접수번호^접수일자^명일련" colsep="^" colwidth="23, 61, 41, 67, 22, 53, 30, 30, 72, 72, 72, 72, 70, 60, 28, 30, 65, 65, 64" dataheight="23" ellipsis="true" extendlastcol="scroll" frozencols="8" mergecellsfixedcols="bycol" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="32" rowsep="|" tooltip="true" style="left:0px; top:77px; width:780px; height:155px; ">
  193. <col checkvalue="Y,N" ref="fromchk" type="checkbox"/>
  194. <col disabled="true" ref="clamym" format="yyyy-mm" style="text-align:center; "/>
  195. <col disabled="true" ref="clamdg" style="text-align:center; "/>
  196. <col ref="pid" style="text-align:center; "/>
  197. <col ref="pidsn" style="text-align:center; "/>
  198. <col ref="patnm" style="left:332px; top:32px; width:53px; height:23px; text-align:center; "/>
  199. <col disabled="true" ref="insukind" type="output" style="text-align:center; "/>
  200. <col disabled="true" ref="suppkind" type="output" style="text-align:center; "/>
  201. <col ref="ordfromdd" format="yyyy-mm-dd" style="text-align:center; "/>
  202. <col ref="ordtodd" format="yyyy-mm-dd" style="text-align:center; "/>
  203. <col ref="iphsfromdd" format="yyyy-mm-dd" style="text-align:center; "/>
  204. <col ref="iphstodd" format="yyyy-mm-dd" style="text-align:center; "/>
  205. <col disabled="true" ref="orddeptcd" type="combo" style="text-align:left; ">
  206. <choices>
  207. <itemset nodeset="/root/init/orddeptcd/orddeptcdlist">
  208. <label ref="nm"/>
  209. <value ref="cd"/>
  210. </itemset>
  211. </choices>
  212. </col>
  213. <col disabled="true" ref="orddrid" type="combo" style="text-align:center; ">
  214. <choices>
  215. <itemset nodeset="/root/init/orddrid/orddridlist">
  216. <label ref="nm"/>
  217. <value ref="cd"/>
  218. </itemset>
  219. </choices>
  220. </col>
  221. <col ref="workflag" visibility="hidden"/>
  222. <col ref="clbtworkflag" visibility="hidden"/>
  223. <col ref="acptno" style="text-align:center; "/>
  224. <col ref="acptdd" style="text-align:center; "/>
  225. <col ref="docuseqno" style="text-align:center; "/>
  226. <script type="javascript" ev:event="xforms-value-changed">
  227. <![CDATA[
  228. var icol = grd_clbsmast.col;
  229. var ifromcnt=0;
  230. var fromchkyn;
  231. var nodeList = instance1.selectNodes("/root/main/list1/clbs");
  232. if (icol == grd_clbsmast.colRef("fromchk")) {
  233. for ( i = 1; i <= nodeList.length; i++) {
  234. fromchkyn = model.getValue("/root/main/list1/clbs[ " + i + "]/fromchk");
  235. if (fromchkyn == "Y") {
  236. ifromcnt++;
  237. // 추가청구 생성일 경우 체크
  238. if (model.getValue("/root/main/send/item/clamflag") == "2") {
  239. if (model.getValue("/root/main/list1/clbs[ " + i + "]/acptdd") == "-") {
  240. messageBox("접수증 수신파일을 업로드하세요! 접수번호가", "I004"); ///I004=없습니다.
  241. model.setValue("/root/main/list1/clbs[ " + i + "]/fromchk", "N");
  242. ifromcnt--;
  243. break;
  244. }
  245. }
  246. model.setValue("/root/send/item1/clamdg", model.getValue("/root/main/list1/clbs[ " + i + "]/clamdg"));
  247. model.refreshpart("/root/send/item1/clamdg");
  248. if (ifromcnt > 1) {
  249. messageBox("명세서를 하나만", "C002"); ///C002=선택하십시오 !
  250. model.setValue("/root/main/list1/clbs[ " + i + "]/fromchk", "N");
  251. ifromcnt--;
  252. }
  253. }
  254. }
  255. }
  256. ]]>
  257. </script>
  258. </datagrid>
  259. <caption id="cap_judgtrgtman" class="tit_2" style="left:5px; top:55px; width:126px; height:13px; ">기본정보</caption>
  260. <line id="line1" class="line_1" style="x1:0px; y1:72px; x2:780px; y2:72px; "/>
  261. <group id="group1" style="left:0px; top:7px; width:780px; height:41px; vertical-align:top; ">
  262. <shape id="roundrect3" appearance="roundrect" style="left:0px; top:1px; width:780px; height:35px; "/>
  263. <caption id="caption30" class="search_name" style="left:18px; top:9px; width:85px; height:17px; ">청구년월</caption>
  264. <input id="ipt_clamym" ref="/root/send/item1/clamym" class="input_search" navindex="10" inputtype="date" format="yyyy-mm" style="left:99px; top:8px; width:69px; height:19px; text-align:center; "/>
  265. <!-- 기존 ID : 1214 => P0235 => P0291 -->
  266. <!-- 기존 : /root/InitData2/comccodem => P0287 확인해볼 것 -->
  267. <caption id="caption38" class="search_name" style="left:460px; top:10px; width:84px; height:17px; ">등록번호</caption>
  268. <input id="ipt_patunitsrch" ref="/root/send/item1/pid" class="input_search" navindex="1" inputtype="button" maxlength="10" style="left:540px; top:10px; width:97px; height:19px; ">
  269. <hint>
  270. <![CDATA[환자성명으로 검색시 2자 이상 입력하세요.]]>
  271. </hint>
  272. <script type="javascript" ev:event="onkeypress">
  273. <![CDATA[
  274. if (event.keyCode == "13") { // Enter 입력 시에
  275. if (ipt_patunitsrch.currentText.length > 1) { // 2글자 이상이면
  276. setInputNodeCurText(); // (tfHelper.js) 현재 인풋값 노드 반영
  277. var srchtext = model.getValue("/root/send/item1/pid");
  278. if (srchtext.charCodeAt(0) > 255) {
  279. fGetSrchPid();
  280. } else {
  281. fGetDonorList();
  282. }
  283. }
  284. }
  285. ]]>
  286. </script>
  287. <script type="javascript" ev:event="onbuttonclick">
  288. <![CDATA[
  289. fGetSrchPid();
  290. ]]>
  291. </script>
  292. <script type="javascript" ev:event="xforms-value-changed">
  293. <![CDATA[
  294. ]]>
  295. </script>
  296. </input>
  297. <button id="btn_select" class="btn1_letter2" navindex="32" style="left:704px; top:8px; width:56px; height:22px; ">
  298. <caption>조회</caption>
  299. <script type="javascript" ev:event="DOMActivate">
  300. <![CDATA[
  301. fGetDonorList();
  302. ]]>
  303. </script>
  304. </button>
  305. <!-- 2007.09.06 수정 박재형 보조유형 combo data 공통안쓰고 가져옴.-->
  306. <!-- 2007.09.19 수정 박재형 :: 보험유형을 선택시 해당하는 보조유형을 선택하기 위해 필요 (재원심사 참고하여 동일하게 구성) 추가:opt_insukind, opt_suppkind
  307. ==표시기능만있으므로 추후논의후 표시시 위치배열다시하고 제거시 그냥제거.
  308. <output id="opt_insukind" style="left:875px; top:8px; width:17px; height:19px; font-size:8pt; background-color:#ececec; border-color:transparent; "/>
  309. <output id="opt_suppkind" style="left:875px; top:32px; width:17px; height:19px; font-size:8pt; background-color:#ececec; border-color:transparent; "/> -->
  310. <caption id="caption1" class="search_name" style="left:245px; top:10px; width:80px; height:17px; ">내원형태</caption>
  311. <select1 id="cmb_ioflag" ref="/root/send/item1/ioflag" class="combo_search" navindex="3" appearance="minimal" style="left:325px; top:10px; width:110px; height:19px; ">
  312. <choices>
  313. <item>
  314. <label>입원</label>
  315. <value>I</value>
  316. </item>
  317. <item>
  318. <label>외래</label>
  319. <value>O</value>
  320. </item>
  321. </choices>
  322. <script type="javascript" ev:event="xforms-value-changed">
  323. <![CDATA[
  324. if (model.getValue("/root/send/item1/ioflag") == "O") {
  325. grd_clbsmast.colHidden(grd_clbsmast.colRef("iphsfromdd")) = true;
  326. grd_clbsmast.colHidden(grd_clbsmast.colRef("iphstodd")) = true;
  327. } else {
  328. grd_clbsmast.colHidden(grd_clbsmast.colRef("iphsfromdd")) = false;
  329. grd_clbsmast.colHidden(grd_clbsmast.colRef("iphstodd")) = false;
  330. }
  331. ]]>
  332. </script>
  333. </select1>
  334. <line id="line3" class="line_4" style="x1:680px; y1:5px; x2:680px; y2:30px; "/>
  335. <input id="ipt_clamdg" ref="/root/send/item1/clamdg" class="input_search" disabled="true" autonext="1" style="left:173px; top:9px; width:40px; height:19px; text-align:center; "/>
  336. </group>
  337. <group id="grp_main" scroll="auto" style="left:0px; top:235px; width:780px; height:161px; ">
  338. <caption id="caption2" class="tit_2" style="left:5px; top:5px; width:126px; height:13px; ">등록정보</caption>
  339. <line id="line2" class="line_1" style="x1:0px; y1:22px; x2:780px; y2:22px; "/>
  340. <line id="line6" class="line_3" style="x1:0px; y1:157px; x2:780px; y2:157px; "/>
  341. <caption id="caption13" class="cell_1" style="left:0px; top:27px; width:80px; height:23px; text-align:left; vertical-align:middle; ">구분</caption>
  342. <caption id="caption3" class="cell_1" style="left:0px; top:53px; width:80px; height:23px; text-align:left; vertical-align:middle; ">처방명</caption>
  343. <caption id="caption4" class="cell_1" style="left:0px; top:79px; width:80px; height:23px; text-align:left; vertical-align:middle; ">준용명</caption>
  344. <caption id="caption5" class="cell_1" style="left:278px; top:27px; width:80px; height:23px; text-align:center; vertical-align:middle; ">처방코드</caption>
  345. <input id="ipt_calcscorcd" ref="/root/send/item1/calcscorcd" class="input_essential" disabled="true" style="left:361px; top:30px; width:73px; height:19px; "/>
  346. <caption id="caption7" class="cell_1" style="left:0px; top:131px; width:80px; height:23px; text-align:left; vertical-align:middle; ">1회량</caption>
  347. <select1 id="cmb_spclcd" ref="/root/send/item1/spclcd" class="combo_essential" navindex="1" appearance="minimal" style="left:84px; top:30px; width:189px; height:19px; ">
  348. <choices>
  349. <item>
  350. <label>조혈모세포 공여자</label>
  351. <value>V073</value>
  352. </item>
  353. <item>
  354. <label>신장 공여자</label>
  355. <value>V074</value>
  356. </item>
  357. <item>
  358. <label>간 공여자</label>
  359. <value>V075</value>
  360. </item>
  361. <item>
  362. <label>췌장 공여자</label>
  363. <value>V076</value>
  364. </item>
  365. <item>
  366. <label>심장 공여자</label>
  367. <value>V077</value>
  368. </item>
  369. <item>
  370. <label>폐 공여자</label>
  371. <value>V078</value>
  372. </item>
  373. <item>
  374. <label>기타</label>
  375. <value>-</value>
  376. </item>
  377. <item>
  378. <label>타병원 진료 명세서</label>
  379. <value>OH</value>
  380. </item>
  381. </choices>
  382. <script type="javascript" ev:event="xforms-value-changed">
  383. <![CDATA[
  384. var spclcd = model.getValue("/root/send/item1/spclcd");
  385. if (spclcd) {
  386. var iIndex = cmb_spclcd.focusIndex;
  387. cmb_diagcd.select(iIndex);
  388. // 구분을 '기타'로 선택한경우 EDI메모를 직접입력한다.
  389. if (spclcd == '-') {
  390. model.setFocus("ipt_mx999");
  391. }
  392. }
  393. ]]>
  394. </script>
  395. <script type="javascript" ev:event="xforms-select">
  396. <![CDATA[
  397. var spclcd = model.getValue("/root/send/item1/spclcd");
  398. if (spclcd) {
  399. if (spclcd == 'OH') {
  400. model.setValue("/root/send/item1/hngnm", "타병원 진료 명세서"); //처방명
  401. model.setValue("/root/send/item1/inclnm", "타병원 진료 명세서"); //준용명
  402. }
  403. else {
  404. model.setValue("/root/send/item1/hngnm", "타인간 이식 공여자 진료비"); //처방명
  405. model.setValue("/root/send/item1/inclnm", "타인간 이식 공여자 진료비"); //준용명
  406. }
  407. }
  408. ]]>
  409. </script>
  410. </select1>
  411. <caption id="caption8" class="cell_1" style="left:114px; top:131px; width:41px; height:23px; text-align:center; vertical-align:middle; ">횟수</caption>
  412. <caption id="caption9" class="cell_1" style="left:263px; top:130px; width:80px; height:23px; text-align:center; vertical-align:middle; ">총진료비</caption>
  413. <input id="ipt_hngnm" ref="/root/send/item1/hngnm" class="input_essential" disabled="true" style="left:84px; top:56px; width:528px; height:19px; "/>
  414. <input id="ipt_inclnm" ref="/root/send/item1/inclnm" class="input_essential" disabled="true" style="left:84px; top:82px; width:528px; height:19px; "/>
  415. <input id="ipt_qty" ref="/root/send/item1/drugqty" class="input_essential" disabled="true" autonext="1" style="left:84px; top:133px; width:26px; height:19px; text-align:center; "/>
  416. <input id="ipt_tims" ref="/root/send/item1/tims" class="input_essential" disabled="true" autonext="1" style="left:157px; top:133px; width:26px; height:19px; text-align:center; "/>
  417. <input id="ipt_totamt" ref="/root/send/item1/totamt" class="input_essential" navindex="2" visibility="visible" maxlength="8" format="#,###" style="left:346px; top:132px; width:90px; height:19px; text-align:right; "/>
  418. <caption id="caption10" class="cell_1" style="left:438px; top:27px; width:80px; height:23px; text-align:center; vertical-align:middle; ">상병코드</caption>
  419. <select1 id="cmb_diagcd" ref="/root/send/item1/diagcd" class="combo_essential" appearance="minimal" style="left:522px; top:30px; width:90px; height:19px; ">
  420. <choices>
  421. <item>
  422. <label>Z523</label>
  423. <value>Z523</value>
  424. </item>
  425. <item>
  426. <label>Z524</label>
  427. <value>Z524</value>
  428. </item>
  429. <item>
  430. <label>Z526</label>
  431. <value>Z526</value>
  432. </item>
  433. <item>
  434. <label>Z528</label>
  435. <value>Z528</value>
  436. </item>
  437. <item>
  438. <label>Z527</label>
  439. <value>Z527</value>
  440. </item>
  441. <item>
  442. <label>Z528</label>
  443. <value>Z528</value>
  444. </item>
  445. <item>
  446. <label>-</label>
  447. <value>-</value>
  448. </item>
  449. <item>
  450. <label>-</label>
  451. <value>-</value>
  452. </item>
  453. </choices>
  454. </select1>
  455. <input id="ipt_dayno" ref="/root/send/item1/dayno" class="input_essential" disabled="true" autonext="1" style="left:231px; top:133px; width:26px; height:19px; text-align:center; "/>
  456. <caption id="caption11" class="cell_1" style="left:188px; top:131px; width:41px; height:23px; text-align:center; vertical-align:middle; ">일수</caption>
  457. <caption id="caption12" class="cell_1" style="left:0px; top:105px; width:80px; height:23px; text-align:left; vertical-align:middle; ">EDI메모</caption>
  458. <input id="ipt_mx999" ref="/root/send/item1/mx999" class="input_essential" imemode="hangul" style="left:84px; top:108px; width:528px; height:19px; "/>
  459. <input id="input1" ref="/root/send/item1/ownbamt" class="input_essential" navindex="2" visibility="visible" maxlength="8" format="#,###" style="left:522px; top:132px; width:90px; height:19px; text-align:right; "/>
  460. <caption id="caption14" class="cell_1" style="left:439px; top:130px; width:80px; height:23px; text-align:center; vertical-align:middle; ">본인부담</caption>
  461. <select1 id="radio2" ref="/root/send/item1/clamflag" class="radio_search" navindex="11" appearance="full" cols="2" overflow="visible" style="left:620px; top:130px; width:135px; height:18px; ">
  462. <choices>
  463. <item>
  464. <label>원청구</label>
  465. <value>0</value>
  466. </item>
  467. <item>
  468. <label>추가청구</label>
  469. <value>2</value>
  470. </item>
  471. </choices>
  472. <script type="javascript" ev:event="xforms-select">
  473. <![CDATA[
  474. // model.resetInstanceNode("/root/send/item1/choicdsrch2");
  475. // model.setValue("/root/send/item1/choicdsrch2", "");
  476. // ipt_choicdsrch.refresh();
  477. // if (model.getValue("/root/send/item1/choicdsrch1") == "1") {
  478. // fGetSnglcalcscorcd();
  479. // }
  480. ]]>
  481. </script>
  482. </select1>
  483. </group>
  484. </group>
  485. <group id="grp_btn" scroll="auto" style="left:0px; top:411px; width:780px; height:31px; ">
  486. <button id="btn_cancel" class="btn4_letter2" style="left:723px; top:5px; width:56px; height:22px; ">
  487. <caption>종료</caption>
  488. <close ev:event="DOMActivate"/>
  489. </button>
  490. <button id="btn_init" class="btn4_letter3" style="left:649px; top:5px; width:68px; height:22px; ">
  491. <caption>초기화</caption>
  492. <script type="javascript" ev:event="DOMActivate">
  493. <![CDATA[
  494. model.resetInstanceNode("/root/init");
  495. model.resetInstanceNode("/root/hidden");
  496. model.resetInstanceNode("/root/send/item1");
  497. model.resetInstanceNode("/root/send/list1");
  498. model.resetInstanceNode("/root/main/list1/clbs");
  499. fInitialize();
  500. model.setValue("/root/send/item1/ioflag", "I");
  501. model.refreshpart("/root/send/item1/ioflag");
  502. ]]>
  503. </script>
  504. </button>
  505. <button id="btn_confirm" class="btn4_letter2" style="left:587px; top:5px; width:56px; height:22px; ">
  506. <caption>생성</caption>
  507. <script type="javascript" ev:event="DOMActivate">
  508. <![CDATA[
  509. var pid = model.getValue("/root/send/item1/pid");
  510. var totamt = model.getValue("/root/send/item1/totamt");
  511. var spclcd = model.getValue("/root/send/item1/spclcd");
  512. var clamflag = model.getValue("/root/send/item1/clamflag");
  513. var saveyn = "Y";
  514. if (pid == "") {
  515. messageBox("등록번호는", "I003"); //I003=필수입력입니다.
  516. model.setFocus("ipt_patunitsrch");
  517. saveyn = "N";
  518. }
  519. if (totamt == "") {
  520. messageBox("총진료비는", "I003"); //I003=필수입력입니다.
  521. model.setFocus("ipt_totamt");
  522. saveyn = "N";
  523. }
  524. if (saveyn == "Y") {
  525. var nodeList = instance1.selectNodes("/root/main/list1/clbs");
  526. var icnt=1;
  527. var ichkcnt=0;
  528. for ( icnt = 1; icnt <= nodeList.length; icnt++) {
  529. if(model.getValue("/root/main/list1/clbs[" + icnt + "]/fromchk") == "Y") {
  530. ichkcnt++;
  531. model.setValue("/root/send/item1/clamdg", model.getValue("/root/main/list1/clbs[" + icnt + "]/clamdg"));
  532. model.setValue("/root/send/item1/pidsn", model.getValue("/root/main/list1/clbs[" + icnt + "]/pidsn"));
  533. model.setValue("/root/send/item1/ordfromdd", model.getValue("/root/main/list1/clbs[" + icnt + "]/ordfromdd"));
  534. model.setValue("/root/send/item1/orddeptcd", model.getValue("/root/main/list1/clbs[" + icnt + "]/orddeptcd"));
  535. model.setValue("/root/send/item1/orddrid", model.getValue("/root/main/list1/clbs[" + icnt + "]/orddrid"));
  536. var preacptno = model.getValue("/root/main/list1/clbs[" + icnt + "]/acptno")
  537. break;
  538. }
  539. }
  540. if (ichkcnt > 0) {
  541. if (clamflag == "2" && preacptno == '-') {
  542. messageBox("선택된 명세서는 청구 전 자료로 추가청구 자료를 생성할 수 없는 명세서", "E008"); //E008=입니다.
  543. return;
  544. }
  545. if (submit("TXPID22201")) {
  546. messageBox("공여자명세서생성이", "I002"); //I002=완료되었습니다.
  547. }
  548. } else {
  549. messageBox("생성할 명세서를", "C002"); //선택하십시오 !
  550. }
  551. }
  552. ]]>
  553. </script>
  554. </button>
  555. <caption id="caption16" style="left:5px; top:8px; width:565px; height:20px; color:#ff0000; ">총진료비만 입력하세요! 단, CT가 있어서 수기로 계산할때만 본인부담금을 계산해서 입력하세요!</caption>
  556. </group>
  557. </xhtml:body>
  558. </xhtml:html>