SMPIF70600_분심및답변서등록관리.xrw 36 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886
  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. <send>
  10. <send01>
  11. <ioflag>1</ioflag>
  12. <insucompnm/>
  13. <termflag>1</termflag>
  14. <fromdate/>
  15. <todate/>
  16. <endyn>1</endyn>
  17. <pid/>
  18. <patnm/>
  19. <clamdg/>
  20. <chk401/>
  21. </send01>
  22. <send02>
  23. <clamno/>
  24. <docuseqno/>
  25. <instcd/>
  26. <acptno/>
  27. </send02>
  28. <send03>
  29. <clamno/>
  30. <docuseqno/>
  31. <docuflag/>
  32. <savedocuflag/>
  33. <title/>
  34. <cnt401/>
  35. <clamym/>
  36. <clamdg/>
  37. <pid/>
  38. <pidsn/>
  39. <chk401/>
  40. <patnm/>
  41. </send03>
  42. </send>
  43. <main>
  44. <list01>
  45. <patbaseinfo>
  46. <gridpatbaseinfo>
  47. <insucdnm/>
  48. <clamym/>
  49. <ioflag/>
  50. <pid/>
  51. <patnm/>
  52. <orddeptnm/>
  53. <orddeptcd/>
  54. <indd/>
  55. <dschdd/>
  56. <interm/>
  57. <acdacptno/>
  58. <clamno/>
  59. <docuseqno/>
  60. <clamdg/>
  61. <pidsn/>
  62. <docuflag/>
  63. </gridpatbaseinfo>
  64. </patbaseinfo>
  65. <tdinfodetl>
  66. <tdinfo>
  67. <tdacptdd/>
  68. <tdacptno/>
  69. <perchrgnm/>
  70. <perchrgid/>
  71. <chrgjudgnm/>
  72. </tdinfo>
  73. <gridpifmtrds>
  74. <lnno/>
  75. <item/>
  76. <adjtcd/>
  77. <matractflag/>
  78. <grupcalcscorcd/>
  79. <snglcalcscorcd/>
  80. <edicd/>
  81. <hngnm/>
  82. <unitcost/>
  83. <clamdayqty/>
  84. <clamtotqty/>
  85. <adjtdayqty/>
  86. <adjttotqty/>
  87. <adjtamt/>
  88. <aprvdayqty/>
  89. <aprvtotqty/>
  90. <aprvamt/>
  91. <tddayqty/>
  92. <tdtotqty/>
  93. <trobamt/>
  94. <clamno/>
  95. <docuseqno/>
  96. <instcd/>
  97. <acptno/>
  98. <ediunitcost/>
  99. <docuflag/>
  100. <attdocu/>
  101. <attetc/>
  102. <answdocucnts/>
  103. <tdacptdd/>
  104. <tdacptno/>
  105. <chrgjudgnm/>
  106. <perchrgnm/>
  107. <perchrgid/>
  108. <insucmpymark/>
  109. <dg/>
  110. </gridpifmtrds>
  111. </tdinfodetl>
  112. </list01>
  113. <list02>
  114. <gridpifmtrds/>
  115. </list02>
  116. <list03>
  117. <attdocu/>
  118. <attetc/>
  119. <answdocucnts/>
  120. </list03>
  121. <result/>
  122. <patinfo>
  123. <patinfolist/>
  124. </patinfo>
  125. </main>
  126. <hidden>
  127. <sppmc02500>
  128. <cond>
  129. <!-- SPPMC02500_환자조회 화면으로 검색조건을 보내는 경로임 -->
  130. <srchcond/>
  131. <pid/>
  132. <hngnm/>
  133. <rrgstno1/>
  134. <rrgstno2/>
  135. </cond>
  136. </sppmc02500>
  137. <gbvalue>
  138. <sumtrobamt/>
  139. </gbvalue>
  140. </hidden>
  141. <init>
  142. <P0028list>
  143. <P0028>
  144. <cdid/>
  145. <cdnm/>
  146. </P0028>
  147. </P0028list>
  148. <P0103list>
  149. <P0103>
  150. <cdid/>
  151. <cdnm/>
  152. </P0103>
  153. </P0103list>
  154. <U0001list>
  155. <U0001>
  156. <cd/>
  157. <nm/>
  158. </U0001>
  159. </U0001list>
  160. </init>
  161. </root>
  162. </instance>
  163. <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post"/>
  164. <submission id="TRPIF70601" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/send03" resultref="/root/main/list01"/>
  165. <submission id="TRPIF70602" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/send01" resultref="/root/main/list01/patbaseinfo"/>
  166. <submission id="TRPIF70603" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/send03" resultref="/root/main/list01/tdinfodetl"/>
  167. <submission id="TXPIF70601" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/list02" resultref="/root/main/result"/>
  168. <submission id="TRPIF70305" mediatype="application/x-www-form-urlencoded" method="post" resultref="/root/init/U0001list"/>
  169. </model>
  170. <script type="javascript" ev:event="xforms-ready">
  171. <![CDATA[
  172. zbcfGetCodeList(new Array("P0028"), new Array( "/root/init/P0028list"));
  173. //손보사 ID및 NM을 조회한다.
  174. submit("TRPIF70305");
  175. // 공통코드 Load작업
  176. CommCode_Load();
  177. ]]>
  178. </script>
  179. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  180. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  181. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  182. <script type="javascript" src="../../../com/commonweb/js/numericHelper.js"/>
  183. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  184. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  185. <script type="javascript">
  186. <![CDATA[
  187. function Node_Init() {
  188. }
  189. // 공통코드 Load작업
  190. function CommCode_Load() {
  191. chkbox_attdocu.disabled = true;
  192. // 팝업오픈시 자동조회
  193. if(window.parent != null) {
  194. model.setValue("/root/send/send01/pid",model.getValue("/root/send/send03/pid"));
  195. model.setValue("/root/send/send01/patnm",model.getValue("/root/send/send03/patnm"));
  196. model.setValue("/root/send/send01/insucompnm",model.getValue("/root/send/send03/insuno"));
  197. model.setValue("/root/send/send01/fromdate",model.getValue("/root/send/send03/clamym"));
  198. model.setValue("/root/send/send01/todate",model.getValue("/root/send/send03/clamym"));
  199. if ( submit("TRPIF70601") ) {
  200. fCheckPreData();
  201. }
  202. var indd = model.getValue("/root/main/list01/patbaseinfo/gridpatbaseinfo/indd");
  203. var dschdd = model.getValue("/root/main/list01/patbaseinfo/gridpatbaseinfo/dschdd");
  204. var tdacptno = model.getValue("root/main/list01/tdinfodetl/tdinfo/tdacptno");
  205. if(indd != "" & dschdd != "") {
  206. var interm = getDateInterval(indd,dschdd)+1;
  207. model.setValue("/root/main/list01/patbaseinfo/gridpatbaseinfo/interm", interm);
  208. }
  209. // 2010.03.09 체크된 행만 저장되게 변경
  210. // 분심접수번호가 없는것 = 분심등록된 데이터가 없다는 뜻.
  211. // if(tdacptno == "") {
  212. // for(var i=1;i<grd_pifmtrds.rows;i++) {
  213. // grd_pifmtrds.rowStatus(i) = "1"; // 행의 업데이트 상태를 입력(1)으로 세팅
  214. // }
  215. // } else {
  216. // for(var i=1;i<grd_pifmtrds.rows;i++) {
  217. // if(grd_pifmtrds.valueMatrix(i, grd_pifmtrds.colRef("tddayqty")) == "") {
  218. // grd_pifmtrds.rowStatus(i) = "1";
  219. // }
  220. // }
  221. // }
  222. fCalcSumOfTrobamt();
  223. // 첨부자료 및 기타 첨부자료 Box 비활성 및 값 초기화
  224. chkbox_attdocu.value= "";
  225. txtbox_attetc.value= "";
  226. chkbox_attdocu.disabled=true;
  227. txtbox_attetc.disabled=true;
  228. }
  229. }
  230. //조정금액 합계를 구한다. 2010.02.02 다른 화면에서 함수 참조해서 붙여 넣음.
  231. function fCalcSumOfTrobamt(){
  232. var sumTrobamt = 0;
  233. var cnt = getNodesetCount("/root/main/list01/tdinfodetl/gridpifmtrds/lnno"); // 카운트를 왜 이렇게 새는지 모르겠다.
  234. var tmpTrobAmt = 0;
  235. for( var i = 1; i <= cnt; i++ ){
  236. tmpTrobAmt = model.getValue("/root/main/list01/tdinfodetl/gridpifmtrds["+ i +"]/trobamt");
  237. if( tmpTrobAmt == "" ) {
  238. tmpTrobAmt = 0;
  239. }
  240. sumTrobamt = parseInt(sumTrobamt) + parseInt(tmpTrobAmt);
  241. }
  242. model.setValue("/root/hidden/gbvalue/sumtrobamt", sumTrobamt);
  243. otp_trobsum.refresh();
  244. }
  245. function fCheckPreData(){
  246. // 최초 조회시 이미 등록된 건은 선택박스 비활성화
  247. // 선택박스 체크시 입력상태로 바뀌고 분심이 자동 셋팅 된다.
  248. for(var i = 1; i < grd_pifmtrds.rows ; i++) {
  249. if(grd_pifmtrds.valueMatrix(i, grd_pifmtrds.colRef("tddayqty")) != "") {
  250. grd_pifmtrds.isReadOnly(i, grd_pifmtrds.colRef("chkbox")) = true;
  251. }
  252. }
  253. grd_pifmtrds.colStyle(grd_pifmtrds.colRef("tddayqty"), "data","background-color") = "#ffff00";
  254. grd_pifmtrds.colStyle(grd_pifmtrds.colRef("tdtotqty"), "data","background-color") = "#ffff00";
  255. grd_pifmtrds.colStyle(grd_pifmtrds.colRef("trobamt"), "data","background-color") = "#ffff00";
  256. }
  257. ]]>
  258. </script>
  259. </xhtml:head>
  260. <xhtml:body guideline="1,1193;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  261. <group id="group1" style="left:0px; top:0px; width:1194px; height:13px; ">
  262. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:265px; height:14px; ">분심 및 답변서등록관리</caption>
  263. </group>
  264. <group id="group6" scroll="auto" style="left:0px; top:13px; width:1195px; height:744px; ">
  265. <line id="line33" class="line_1" style="x1:0px; y1:100px; x2:1194px; y2:100px; "/>
  266. <caption id="caption86" class="tit_2" style="left:6px; top:85px; width:147px; height:14px; ">환자기본정보</caption>
  267. <group id="group2" style="left:0px; top:10px; width:1194px; height:60px; vertical-align:top; ">
  268. <shape id="roundrect1" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1194px; height:59px; background-color:#fffbf2; border-color:#ffd799; "/>
  269. <caption id="caption1" class="search_name" style="left:605px; top:9px; width:86px; height:17px; ">손보사명 :</caption>
  270. <button id="button1" class="btn1_letter2" style="left:1123px; top:20px; width:56px; height:22px; ">
  271. <caption>조회</caption>
  272. <script type="javascript" ev:event="onclick">
  273. <![CDATA[
  274. model.removeNodeset("/root/main/list01/tdinfodetl");
  275. if(submit("TRPIF70602")) {
  276. var rows = grd_patbaseinfo.rows;
  277. for(var i=1;i<rows;i++) {
  278. var indd = model.getValue("/root/main/list01/patbaseinfo/gridpatbaseinfo["+i+"]/indd");
  279. var dschdd = model.getValue("/root/main/list01/patbaseinfo/gridpatbaseinfo["+i+"]/dschdd");
  280. var interm = getDateInterval(indd,dschdd);
  281. model.setValue("/root/main/list01/patbaseinfo/gridpatbaseinfo/interm", interm);
  282. }
  283. }
  284. chkbox_attdocu.value = "";
  285. chkbox_attdocu.disabled = true;
  286. ]]>
  287. </script>
  288. </button>
  289. <line id="line1" class="line_4" style="x1:1108px; y1:8px; x2:1108px; y2:52px; border-color:#ffe4bb; border-left-style:solid; "/>
  290. <caption id="caption10" class="search_name" style="left:605px; top:33px; width:86px; height:17px; ">등록번호 :</caption>
  291. <caption id="caption2" class="search_name" style="left:830px; top:9px; width:87px; height:17px; ">청구차수 :</caption>
  292. <caption id="caption5" class="search_name" style="left:15px; top:9px; width:86px; height:17px; ">내원유형 :</caption>
  293. <caption id="caption7" class="search_name" style="left:15px; top:33px; width:112px; height:17px; ">종결구분 :</caption>
  294. <select1 id="combo5" ref="/root/send/send01/insucompnm" class="combo_search" appearance="minimal" style="left:694px; top:8px; width:100px; height:19px; ">
  295. <choices>
  296. <itemset nodeset="/root/init/U0001list/U0001">
  297. <label ref="nm"/>
  298. <value ref="cd"/>
  299. </itemset>
  300. </choices>
  301. </select1>
  302. <caption id="caption3" style="left:465px; top:10px; width:15px; height:20px; ">~</caption>
  303. <input id="input5" ref="/root/send/send01/clamdg" class="input_search" style="left:920px; top:8px; width:85px; height:19px; "/>
  304. <input id="ipt_fromdate" ref="/root/send/send01/fromdate" class="input_search" inputtype="date" maxlength="6" format="yyyy-mm" style="left:375px; top:9px; width:85px; height:19px; "/>
  305. <input id="ipt_todate" ref="/root/send/send01/todate" class="input_search" inputtype="date" maxlength="6" format="yyyy-mm" style="left:480px; top:9px; width:85px; height:19px; "/>
  306. <input id="ipt_pid" ref="/root/send/send01/patnm" class="input_search" inputtype="button" style="left:694px; top:32px; width:100px; height:19px; "/>
  307. <script type="javascript" ev:event="onbuttonclick">
  308. <![CDATA[
  309. if (ipt_pid.value) {
  310. model.setValue("/root/hidden/sppmc02500/cond/srchcond", "1"); // 검색조건 : 등록번호로 설정
  311. model.setValue("/root/hidden/sppmc02500/cond/pid", ipt_pid.value);
  312. } else {
  313. model.resetInstanceNode("/root/hidden/sppmc02500/cond");
  314. }
  315. modal("SPPMC02500", 1,150, 150, "SPPMC02500", "/root/hidden/sppmc02500/cond", "/root/send");
  316. var srch_pid = model.getValue("/root/main/patinfo/patinfolist/pid");
  317. ipt_pid.value = model.getValue("/root/main/patinfo/patinfolist/pid");
  318. ipt_patnm.value = model.getValue("/root/main/patinfo/patinfolist/hngnm");
  319. model.refresh();
  320. ]]>
  321. </script>
  322. <input id="ipt_patnm" ref="/root/send/send01/pid" style="left:800px; top:32px; width:59px; height:19px; "/>
  323. <select id="chk401" ref="/root/send/send01/chk401" overflow="visible" appearance="full" style="left:918px; top:33px; width:95px; height:20px; border-style:none; ">
  324. <choices>
  325. <item>
  326. <label>동의서 없음</label>
  327. <value>N</value>
  328. </item>
  329. </choices>
  330. </select>
  331. </group>
  332. <select1 id="radio1" ref="/root/send/send01/ioflag" class="radio_search" appearance="full" cols="3" rows="1" overflow="visible" style="left:102px; top:21px; width:143px; height:16px; font-weight:bold; border-style:none; ">
  333. <choices>
  334. <item>
  335. <label>전체</label>
  336. <value>1</value>
  337. </item>
  338. <item>
  339. <label>입원</label>
  340. <value>2</value>
  341. </item>
  342. <item>
  343. <label>외래</label>
  344. <value>3</value>
  345. </item>
  346. </choices>
  347. </select1>
  348. <select1 id="radio2" ref="/root/send/send01/endyn" class="radio_search" appearance="full" cols="3" rows="1" overflow="visible" style="left:102px; top:45px; width:153px; height:15px; font-weight:bold; border-style:none; ">
  349. <choices>
  350. <item>
  351. <label>전체</label>
  352. <value>1</value>
  353. </item>
  354. <item>
  355. <label>완료</label>
  356. <value>2</value>
  357. </item>
  358. <item>
  359. <label>미완료</label>
  360. <value>3</value>
  361. </item>
  362. </choices>
  363. </select1>
  364. <caption id="caption4" class="tit_2" style="left:6px; top:310px; width:79px; height:13px; ">분심내역</caption>
  365. <button id="button2" class="btn2_letter2" visibility="hidden" style="left:1040px; top:248px; width:42px; height:19px; ">
  366. <caption>출력</caption>
  367. </button>
  368. <line id="line2" class="line_1" style="x1:0px; y1:325px; x2:1194px; y2:325px; "/>
  369. <line id="line10" class="line_3" style="x1:0px; y1:298px; x2:1194px; y2:298px; "/>
  370. <caption id="caption8" class="tit_2" style="left:5px; top:254px; width:80px; height:13px; ">분심정보</caption>
  371. <caption id="caption27" class="cell_1" style="left:0px; top:275px; width:85px; height:21px; vertical-align:middle; ">분심접수일자</caption>
  372. <caption id="caption16" class="cell_1" style="left:193px; top:275px; width:84px; height:21px; vertical-align:middle; ">분심접수번호</caption>
  373. <caption id="caption9" class="cell_1" style="left:385px; top:275px; width:48px; height:21px; vertical-align:middle; ">담당자</caption>
  374. <caption id="caption12" class="cell_1" style="left:541px; top:276px; width:72px; height:20px; vertical-align:middle; ">담당심사역</caption>
  375. <line id="line3" class="line_1" style="x1:0px; y1:269px; x2:1194px; y2:269px; "/>
  376. <caption id="caption11" class="tit_2" style="left:6px; top:635px; width:147px; height:14px; ">답변서내용</caption>
  377. <line id="line4" class="line_1" style="x1:0px; y1:650px; x2:800px; y2:650px; "/>
  378. <caption id="caption13" class="tit_2" style="left:811px; top:635px; width:152px; height:13px; ">첨부자료</caption>
  379. <line id="line5" class="line_1" style="x1:805px; y1:650px; x2:995px; y2:650px; "/>
  380. <button id="button13" class="btn2_letter2" style="left:1084px; top:248px; width:42px; height:19px; ">
  381. <caption>저장</caption>
  382. <script type="javascript" ev:event="onclick">
  383. <![CDATA[
  384. if(ipt_tdacptdd.value == "") {
  385. messageBox("분심접수일자를","C001");
  386. model.setFocus("ipt_tdacptdd");
  387. return false;
  388. }
  389. if(ipt_tdacptno.value == "") {
  390. messageBox("분심접수번호를","C001");
  391. model.setFocus("ipt_tdacptno");
  392. return false;
  393. }
  394. if(ipt_perchrgnm.value == "") {
  395. messageBox("담당자를","C001");
  396. model.setFocus("ipt_perchrgnm");
  397. return false;
  398. }
  399. if(ipt_chrgjudgnm.value == "") {
  400. messageBox("담당심사역을","C001");
  401. model.setFocus("ipt_chrgjudgnm");
  402. return false;
  403. }
  404. for(var i=1;i<grd_pifmtrds.rows;i++) {
  405. if(grd_pifmtrds.valueMatrix(i, grd_pifmtrds.colRef("chkbox")) == "Y" && grd_pifmtrds.valueMatrix(i, grd_pifmtrds.colRef("tddayqty")) == "") {
  406. var lnno = grd_pifmtrds.valueMatrix(i, grd_pifmtrds.colRef("lnno"));
  407. messageBox("줄번호 "+lnno+"의 분심일투를","C001");
  408. return false;
  409. }
  410. if(grd_pifmtrds.valueMatrix(i, grd_pifmtrds.colRef("chkbox")) == "Y" ) {
  411. grd_pifmtrds.valueMatrix(i, grd_pifmtrds.colRef("tdacptdd")) = ipt_tdacptdd.value;
  412. grd_pifmtrds.valueMatrix(i, grd_pifmtrds.colRef("tdacptno")) = ipt_tdacptno.value;
  413. grd_pifmtrds.valueMatrix(i, grd_pifmtrds.colRef("chrgjudgnm")) = ipt_chrgjudgnm.value;
  414. //grd_pifmtrds.valueMatrix(i,30) = ipt_perchrgid.value;
  415. }
  416. }
  417. model.setValue("/root/main/list02/gridpifmtrds", grd_pifmtrds.getUpdateData());
  418. // var nodeList = instance1.selectNodes("/root/main/list01/tdinfodetl/gridpifmtrds[chkbox = 'Y']");
  419. // alert(model.getValue("/root/main/list01/tdinfodetl/gridpifmtrds[chkbox = 'Y']"));
  420. // var rCSV = getNodeListCSV(nodeList);
  421. //
  422. // model.destroy("/root/main/list02/gridpifmtrds");
  423. // model.makeNode("/root/main/list02/gridpifmtrds");
  424. //
  425. // setCSVToNode("/root/main/list02/gridpifmtrds", rCSV);
  426. submit("TXPIF70601"); // Insert 또는 Update
  427. model.resetInstanceNode("/root/main/list01");
  428. // 재조회
  429. if (submit("TRPIF70601") ) {
  430. fCheckPreData();
  431. }
  432. // 첨부자료 및 기타 첨부자료 Box 비활성 및 값 초기화
  433. chkbox_attdocu.value= "";
  434. txtbox_attetc.value= "";
  435. txtar_answdocucnts.value= "";
  436. chkbox_attdocu.disabled=true;
  437. txtbox_attetc.disabled=true;
  438. ]]>
  439. </script>
  440. </button>
  441. <button id="btn_newreg" class="btn2_letter6" visibility="hidden" style="left:897px; top:248px; width:86px; height:19px; ">
  442. <caption>신규삭감등록</caption>
  443. </button>
  444. <button id="btn_rowdel" class="btn2_letter3" visibility="hidden" style="left:985px; top:248px; width:53px; height:19px; ">
  445. <caption>행삭제</caption>
  446. </button>
  447. <input id="ipt_perchrgnm" ref="/root/main/list01/tdinfodetl/tdinfo/perchrgnm" class="input_search" disabled="true" style="left:437px; top:276px; width:100px; height:19px; "/>
  448. <input id="ipt_chrgjudgnm" ref="/root/main/list01/tdinfodetl/tdinfo/chrgjudgnm" class="input_s_essential" style="left:617px; top:276px; width:100px; height:19px; "/>
  449. <input id="ipt_tdacptdd" ref="/root/main/list01/tdinfodetl/tdinfo/tdacptdd" class="input_s_essential" inputtype="date" format="yyyy-mm-dd" style="left:89px; top:276px; width:100px; height:19px; "/>
  450. <input id="ipt_tdacptno" ref="/root/main/list01/tdinfodetl/tdinfo/tdacptno" class="input_s_essential" style="left:281px; top:276px; width:100px; height:19px; "/>
  451. <datagrid id="grd_pifmtrds" nodeset="/root/main/list01/tdinfodetl/gridpifmtrds" class="datagrid2" caption="^줄&#xA;번호^항목^조정&#xA;사유^구분^그룹코드^수가코드^EDI코드^처방명칭^단가^청구&#xA;일투^청구&#xA;총투^청구액^조정&#xA;일투^조정&#xA;총투^조정&#xA;금액^동의&#xA;일투^동의&#xA;총투^동의액^분심&#xA;일투^분심&#xA;총투^분쟁가액^caption1^caption2^caption3" colsep="^" colwidth="24, 32, 33, 36, 33, 78, 78, 75, 186, 57, 34, 34, 68, 34, 34, 66, 34, 34, 67, 34, 34, 70, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100" dataheight="25" defaultrows="1" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="35" rowsep="|" style="left:0px; top:330px; width:1194px; height:290px; ">
  452. <col checkvalue="Y,N" ref="chkbox" type="checkbox"/>
  453. <col ref="lnno" style="text-align:center; "/>
  454. <col ref="item" style="text-align:center; "/>
  455. <col ref="adjtcd" style="text-align:center; "/>
  456. <col ref="matractflag" type="combo" style="text-align:center; ">
  457. <choices>
  458. <item>
  459. <label>재료</label>
  460. <value>1</value>
  461. </item>
  462. <item>
  463. <label>행위</label>
  464. <value>2</value>
  465. </item>
  466. </choices>
  467. </col>
  468. <col ref="grupcalcscorcd"/>
  469. <col ref="snglcalcscorcd"/>
  470. <col ref="edicd"/>
  471. <col ref="hngnm"/>
  472. <col ref="unitcost" format="#,###" style="text-align:right; "/>
  473. <col ref="clamdayqty" style="text-align:center; "/>
  474. <col ref="clamtotqty" style="text-align:center; "/>
  475. <col ref="clamamt" format="#,###" style="text-align:right; "/>
  476. <col ref="adjtdayqty" style="text-align:center; "/>
  477. <col ref="adjttotqty" style="text-align:center; "/>
  478. <col ref="adjtamt" format="#,###" style="text-align:right; "/>
  479. <col ref="aprvdayqty" style="text-align:center; "/>
  480. <col ref="aprvtotqty" style="text-align:center; "/>
  481. <col ref="aprvamt" format="#,###" style="text-align:right; "/>
  482. <col ref="tddayqty" type="input" style="text-align:center; "/>
  483. <col ref="tdtotqty" type="input" style="text-align:center; "/>
  484. <col ref="trobamt" type="input" format="#,###" style="text-align:right; "/>
  485. <col ref="clamno" visibility="hidden"/>
  486. <col ref="docuseqno" visibility="hidden"/>
  487. <col ref="instcd" visibility="hidden"/>
  488. <col ref="acptno" visibility="hidden"/>
  489. <col ref="ediunitcost" visibility="hidden"/>
  490. <col ref="docuflag" visibility="hidden"/>
  491. <col ref="attdocu" visibility="hidden"/>
  492. <col ref="attetc" visibility="hidden"/>
  493. <col ref="answdocucnts" visibility="hidden"/>
  494. <col ref="tdacptdd" visibility="hidden"/>
  495. <col ref="tdacptno" visibility="hidden"/>
  496. <col ref="chrgjudgnm" visibility="hidden"/>
  497. <col ref="perchrgnm" visibility="hidden"/>
  498. <col ref="perchrgid" visibility="hidden"/>
  499. <col ref="insucmpymark" visibility="hidden"/>
  500. <col ref="dg" visibility="hidden"/>
  501. <script type="javascript" ev:event="onrowchanged">
  502. <![CDATA[
  503. // onrowchanged - 그리드 로우를 클릭하면 하단 답변서 내용, 첨부자료, 기타 첨부자료 TEXT 값을 셋팅하기 위한 이벤트
  504. chkbox_attdocu.disabled = false;
  505. var row_cnt = grd_pifmtrds.row;
  506. if(row_cnt <= 0) { return false; }
  507. chkbox_attdocu.value = "";
  508. model.setValue("/root/main/list03/attdocu", grd_pifmtrds.valueMatrix(row_cnt, grd_pifmtrds.colRef("attdocu")));
  509. model.setValue("/root/main/list03/attetc", grd_pifmtrds.valueMatrix(row_cnt, grd_pifmtrds.colRef("attetc")));
  510. model.setValue("/root/main/list03/answdocucnts", grd_pifmtrds.valueMatrix(row_cnt, grd_pifmtrds.colRef("answdocucnts")));
  511. var attdocu = chkbox_attdocu.value;
  512. var size = attdocu.length;
  513. var cnt = 0;
  514. for(var i=0;i<=size;i++) {
  515. var temp = attdocu.substring(i,i+1);
  516. if(temp == "0") {
  517. cnt++;
  518. }
  519. }
  520. if(cnt > 0) {
  521. txtbox_attetc.disabled = false;
  522. } else {
  523. txtbox_attetc.disabled = true;
  524. }
  525. chkbox_attdocu.refresh();
  526. txtar_answdocucnts.refresh();
  527. txtbox_attetc.refresh();
  528. // model.refresh();
  529. ]]>
  530. </script>
  531. <script type="javascript" ev:event="xforms-value-changed">
  532. <![CDATA[// onrowchanged 에서 이벤트가 발생 안 하길레 새로 이벤트 추가
  533. if ( grd_pifmtrds.col == grd_pifmtrds.colRef("chkbox") ) {
  534. if ( grd_pifmtrds.valueMatrix(grd_pifmtrds.row, grd_pifmtrds.colRef("chkbox")) == "Y" ) {
  535. grd_pifmtrds.rowStatus(grd_pifmtrds.row) = 3;
  536. grd_pifmtrds.valueMatrix(grd_pifmtrds.row, grd_pifmtrds.colRef("tddayqty")) = grd_pifmtrds.valueMatrix(grd_pifmtrds.row, grd_pifmtrds.colRef("adjtdayqty"));
  537. grd_pifmtrds.valueMatrix(grd_pifmtrds.row, grd_pifmtrds.colRef("tdtotqty")) = grd_pifmtrds.valueMatrix(grd_pifmtrds.row, grd_pifmtrds.colRef("adjttotqty"));
  538. grd_pifmtrds.valueMatrix(grd_pifmtrds.row, grd_pifmtrds.colRef("trobamt")) = grd_pifmtrds.valueMatrix(grd_pifmtrds.row, grd_pifmtrds.colRef("adjtamt"));
  539. } else {
  540. grd_pifmtrds.rowStatus(grd_pifmtrds.row) = 0;
  541. grd_pifmtrds.valueMatrix(grd_pifmtrds.row, grd_pifmtrds.colRef("tddayqty")) = "";
  542. grd_pifmtrds.valueMatrix(grd_pifmtrds.row, grd_pifmtrds.colRef("tdtotqty")) = "";
  543. grd_pifmtrds.valueMatrix(grd_pifmtrds.row, grd_pifmtrds.colRef("trobamt")) = "";
  544. }
  545. }
  546. fCalcSumOfTrobamt();
  547. ]]>
  548. </script>
  549. <script type="javascript" ev:event="onkeyup">
  550. <![CDATA[
  551. // 2010.04.19 기능 추가
  552. if(event.keyCode == "13") {
  553. var cur_col = grd_pifmtrds.col; // col을 미리 저장해 두지 않으면 if문 타고 내려가면서 현재 col로 바껴서 삐꾸 납니다.
  554. model.setFocus("body");
  555. model.setFocus("grd_pifmtrds");
  556. if ( cur_col == grd_pifmtrds.colRef("tddayqty") ) {
  557. grd_pifmtrds.col = grd_pifmtrds.colRef("tdtotqty");
  558. grd_pifmtrds.dispatch("onentercell");
  559. grd_pifmtrds.editCell();
  560. }
  561. if ( cur_col == grd_pifmtrds.colRef("tdtotqty") ) {
  562. grd_pifmtrds.col = grd_pifmtrds.colRef("trobamt");
  563. grd_pifmtrds.dispatch("onentercell");
  564. grd_pifmtrds.editCell();
  565. }
  566. }
  567. ]]>
  568. </script>
  569. </datagrid>
  570. <select1 id="rdo_termflag" ref="/root/send/send01/termflag" class="radio_search" appearance="full" cols="1" rows="3" overflow="visible" style="left:295px; top:14px; width:75px; height:48px; font-weight:bold; border-style:none; ">
  571. <choices>
  572. <item>
  573. <label>청구월</label>
  574. <value>1</value>
  575. </item>
  576. <item>
  577. <label>진료월</label>
  578. <value>2</value>
  579. </item>
  580. <item>
  581. <label>입금일자</label>
  582. <value>3</value>
  583. </item>
  584. </choices>
  585. <script type="javascript" ev:event="xforms-select">
  586. <![CDATA[
  587. if(rdo_termflag.value == "3") {
  588. ipt_fromdate.attribute("format") = "yyyy-mm-dd";
  589. ipt_todate.attribute("format") = "yyyy-mm-dd";
  590. ipt_todate.attribute("maxlength") = 8;
  591. model.refresh();
  592. }
  593. if(rdo_termflag.value == "1" || rdo_termflag.value == "2") {
  594. ipt_fromdate.attribute("format") = "yyyy-mm";
  595. ipt_todate.attribute("format") = "yyyy-mm";
  596. ipt_todate.attribute("maxlength") = 6;
  597. model.refresh();
  598. }
  599. ]]>
  600. </script>
  601. </select1>
  602. <datagrid id="grd_patbaseinfo" nodeset="/root/main/list01/patbaseinfo/gridpatbaseinfo" class="datagrid" caption="손보사^청구월^내원유형^등록번호^수진자명^진료과^입원일^퇴원일^재원기간^사고접수번호" colsep="^" colwidth="120, 110, 110, 110, 110, 110, 110, 110, 110, 122" dataheight="25" defaultrows="1" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="35" rowsep="|" style="left:0px; top:105px; width:1194px; height:135px; ">
  603. <col ref="insucdnm" style="text-align:center; "/>
  604. <col ref="clamym" format="yyyy-mm" style="text-align:center; "/>
  605. <col disabled="true" ref="ioflag" type="combo" style="text-align:center; ">
  606. <choices>
  607. <itemset nodeset="/root/init/P0028list/P0028">
  608. <label ref="cdnm"/>
  609. <value ref="cdid"/>
  610. </itemset>
  611. </choices>
  612. </col>
  613. <col ref="pid" style="text-align:center; "/>
  614. <col ref="patnm" style="text-align:center; "/>
  615. <col ref="orddeptnm" style="text-align:center; "/>
  616. <col ref="indd" format="yyyy-mm-dd" style="text-align:center; "/>
  617. <col ref="dschdd" format="yyyy-mm-dd" style="text-align:center; "/>
  618. <col ref="interm" style="text-align:center; "/>
  619. <col ref="acdacptno" style="text-align:center; "/>
  620. <col ref="clamno" visibility="hidden"/>
  621. <col ref="docuseqno" visibility="hidden"/>
  622. <col ref="clamdg" visibility="hidden"/>
  623. <col ref="pidsn" visibility="hidden"/>
  624. <col ref="docuflag" visibility="hidden"/>
  625. <script type="javascript" ev:event="onclick">
  626. <![CDATA[
  627. if( grd_patbaseinfo.isCell(event.target) && grd_patbaseinfo.row >= grd_patbaseinfo.fixedRows ){
  628. model.removenode("/root/main/list01/tdinfodetl");
  629. var row = grd_patbaseinfo.row;
  630. if(row < 1) return false; // 환자기본정보 그리드에 조회결과가 하나도 없을시 바로 리턴.
  631. model.setValue("/root/send/send03/clamno", model.getValue("/root/main/list01/patbaseinfo/gridpatbaseinfo["+row+"]/clamno"));
  632. model.setValue("/root/send/send03/docuseqno", model.getValue("/root/main/list01/patbaseinfo/gridpatbaseinfo["+row+"]/docuseqno"));
  633. model.setValue("/root/send/send03/docuflag", model.getValue("/root/main/list01/patbaseinfo/gridpatbaseinfo["+row+"]/docuflag"));
  634. model.setValue("/root/send/send03/clamym", model.getValue("/root/main/list01/patbaseinfo/gridpatbaseinfo["+row+"]/clamym"));
  635. model.setValue("/root/send/send03/clamdg", model.getValue("/root/main/list01/patbaseinfo/gridpatbaseinfo["+row+"]/clamdg"));
  636. model.setValue("/root/send/send03/pid", model.getValue("/root/main/list01/patbaseinfo/gridpatbaseinfo["+row+"]/pid"));
  637. model.setValue("/root/send/send03/pidsn", model.getValue("/root/main/list01/patbaseinfo/gridpatbaseinfo["+row+"]/pidsn"));
  638. model.setValue("/root/send/send03/chk401", model.getValue("/root/send/send01/chk401"));
  639. if ( submit("TRPIF70603") ) {
  640. fCheckPreData();
  641. }
  642. var tdacptno = model.getValue("root/main/list01/tdinfodetl/tdinfo/tdacptno");
  643. // 2010.03.09 체크된 행만 저장되게 변경
  644. // 분심접수번호가 없는것 = 분심등록된 데이터가 없다는 뜻.
  645. // if(tdacptno == "") {
  646. // for(var i=1;i<grd_pifmtrds.rows;i++) {
  647. // grd_pifmtrds.rowStatus(i) = "1"; // 행의 업데이트 상태를 입력(1)으로 세팅
  648. // }
  649. // } else {
  650. // for(var i=1;i<grd_pifmtrds.rows;i++) {
  651. // if(grd_pifmtrds.valueMatrix(i, grd_pifmtrds.colRef("tddayqty")) == "") {
  652. // grd_pifmtrds.rowStatus(i) = "1";
  653. // }
  654. // }
  655. // }
  656. chkbox_attdocu.value = "";
  657. chkbox_attdocu.disabled = true;
  658. }
  659. ]]>
  660. </script>
  661. </datagrid>
  662. <select id="chkbox_attdocu" ref="/root/main/list03/attdocu" overflow="visible" appearance="full" cols="2" rows="5" style="left:805px; top:655px; width:190px; height:86px; border-style:none; ">
  663. <choices>
  664. <item>
  665. <label>응급실기록지</label>
  666. <value>1</value>
  667. </item>
  668. <item>
  669. <label>투약기록지</label>
  670. <value>2</value>
  671. </item>
  672. <item>
  673. <label>경과기록지</label>
  674. <value>3</value>
  675. </item>
  676. <item>
  677. <label>간호기록지</label>
  678. <value>4</value>
  679. </item>
  680. <item>
  681. <label>의사명령지</label>
  682. <value>5</value>
  683. </item>
  684. <item>
  685. <label>검사결과지</label>
  686. <value>6</value>
  687. </item>
  688. <item>
  689. <label>수술기록지</label>
  690. <value>7</value>
  691. </item>
  692. <item>
  693. <label>방사선결과지</label>
  694. <value>8</value>
  695. </item>
  696. <item>
  697. <label>마취기록지</label>
  698. <value>9</value>
  699. </item>
  700. <item>
  701. <label>기타</label>
  702. <value>0</value>
  703. </item>
  704. </choices>
  705. <!-- 첨부자료 체크해제시-->
  706. <script type="javascript" ev:event="xforms-deselect">
  707. <![CDATA[
  708. var attdocu = chkbox_attdocu.value;
  709. var size = attdocu.length;
  710. var cnt = 0;
  711. var row = grd_pifmtrds.row;
  712. for(var i=0;i<=size;i++) {
  713. var temp = attdocu.substring(i,i+1);
  714. if(temp == "0") {
  715. cnt++;
  716. }
  717. }
  718. if(cnt > 0) {
  719. if(txtbox_attetc.value == "") {
  720. messageBox("기타 첨부자료를 수기","C001");
  721. txtbox_attetc.disabled = false;
  722. model.setFocus("txtbox_attetc");
  723. }
  724. } else {
  725. txtbox_attetc.value = "";
  726. txtbox_attetc.disabled = false;
  727. }
  728. model.setValue("/root/main/list01/tdinfodetl/gridpifmtrds["+row+"]/attdocu",chkbox_attdocu.value); // 첨부자료 인스턴스에 변경된 값 저장
  729. model.setValue("/root/main/list01/tdinfodetl/gridpifmtrds["+row+"]/attetc",txtbox_attetc.value); // 첨부자료 인스턴스에 변경된 값 저장
  730. if(grd_pifmtrds.rowStatus(row) == "0") {
  731. grd_pifmtrds.rowStatus(row) = "2";
  732. }
  733. ]]>
  734. </script>
  735. <!-- 첨부자료 체크시-->
  736. <script type="javascript" ev:event="xforms-select">
  737. <![CDATA[
  738. var attdocu = chkbox_attdocu.value;
  739. var row_cnt = grd_pifmtrds.row;
  740. if(grd_pifmtrds.rowStatus(row_cnt) == "0") {
  741. grd_pifmtrds.rowStatus(row_cnt) = "2";
  742. }
  743. model.setValue("/root/main/list01/tdinfodetl/gridpifmtrds["+row_cnt+"]/attdocu",attdocu);
  744. var attdocu = chkbox_attdocu.value;
  745. var size = attdocu.length;
  746. var cnt = 0;
  747. for(var i=0;i<size;i++) {
  748. var temp = attdocu.substring(i,i+1);
  749. if(temp == "0") {
  750. cnt++;
  751. }
  752. }
  753. if(cnt > 0) {
  754. if(txtbox_attetc.value == "") {
  755. messageBox("기타 첨부자료를 수기","C001");
  756. txtbox_attetc.disabled = false;
  757. model.setFocus("txtbox_attetc");
  758. }
  759. }
  760. /*
  761. if(attdocu.substring(attdocu.length-1,attdocu.length)== "0") {
  762. if(txtbox_attetc.value == "") {
  763. messageBox("기타 첨부자료를 수기","C001");
  764. txtbox_attetc.disabled = false;
  765. model.setFocus("txtbox_attetc");
  766. }
  767. }
  768. */
  769. ]]>
  770. </script>
  771. </select>
  772. <textarea id="txtbox_attetc" ref="/root/main/list03/attetc" disabled="true" style="left:1000px; top:655px; width:193px; height:86px; ">
  773. <script type="javascript" ev:event="xforms-value-changed">
  774. <![CDATA[
  775. var row_cnt = grd_pifmtrds.row;
  776. model.setValue("/root/main/list01/tdinfodetl/gridpifmtrds["+row_cnt+"]/attetc",txtbox_attetc.value);
  777. ]]>
  778. </script>
  779. </textarea>
  780. <caption id="caption14" class="tit_2" style="left:1004px; top:635px; width:147px; height:13px; ">기타 첨부자료 TEXT</caption>
  781. <line id="line6" class="line_1" style="x1:1000px; y1:650px; x2:1193px; y2:650px; "/>
  782. <textarea id="txtar_answdocucnts" ref="/root/main/list03/answdocucnts" style="left:0px; top:655px; width:800px; height:86px; ">
  783. <script type="javascript" ev:event="xforms-value-changed">
  784. <![CDATA[
  785. var row = grd_pifmtrds.row;
  786. if(row > 0) {
  787. if(grd_pifmtrds.rowStatus(row) == "0") {
  788. grd_pifmtrds.rowStatus(row) = "2";
  789. }
  790. model.setValue("/root/main/list01/tdinfodetl/gridpifmtrds["+row+"]/answdocucnts",txtar_answdocucnts.value);
  791. }
  792. ]]>
  793. </script>
  794. </textarea>
  795. <button id="button3" class="btn2_letter4" style="left:1128px; top:248px; width:64px; height:19px; ">
  796. <caption>엑셀저장</caption>
  797. <script type="javascript" ev:event="onclick">
  798. <![CDATA[
  799. var today = new Date();
  800. var yy = today.getYear()+"";
  801. var mm = today.getMonth()+1;
  802. var dd = today.getDate();
  803. if(mm < 10) { mm = "0"+mm; } else { mm = mm+""; }
  804. if(dd < 10) { dd = "0" + dd; } else { dd = dd + ""; }
  805. var tmp = yy+mm+dd;
  806. var fileName = window.fileDialog("save", ",", false, "분심및답변서등록관리_"+tmp, "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  807. if (fileName != "") { grd_pifmtrds.saveExcel(fileName, "SheetName", true, true, "", "", ""); }
  808. ]]>
  809. </script>
  810. </button>
  811. <caption id="caption15" style="left:940px; top:305px; width:100px; height:20px; font-weight:bold; ">분쟁가액 합계 :</caption>
  812. <caption id="caption17" style="left:1145px; top:305px; width:20px; height:20px; font-weight:bold; ">원</caption>
  813. <output id="otp_trobsum" ref="/root/hidden/gbvalue/sumtrobamt" format="(-)#,###" style="left:1040px; top:305px; width:100px; height:19px; font-weight:bold; text-align:right; "/>
  814. </group>
  815. <group id="grp_btn" scroll="auto" style="left:0px; top:757px; width:1194px; height:27px; ">
  816. <line id="line32" class="line_6" style="x1:0px; y1:0px; x2:1194px; y2:0px; "/>
  817. <button id="button45" class="btn4_letter2" style="left:1138px; top:5px; width:56px; height:22px; ">
  818. <caption>닫기</caption>
  819. <script type="javascript" ev:event="onclick">
  820. <![CDATA[
  821. window.close();
  822. ]]>
  823. </script>
  824. </button>
  825. </group>
  826. </xhtml:body>
  827. </xhtml:html>