SMPIF70700_분심결정등록관리.xrw 42 KB

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