SPMRD00200_중증등록SAM파일관리.xrw 25 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684
  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>중증등록 SAM파일관리</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <main>
  10. <listinfo>
  11. <serdiaglist>
  12. <serdiaglist>
  13. <genrdd/>
  14. <genrno/>
  15. <histno/>
  16. <instcd/>
  17. <histcd/>
  18. <anohosprgstflag/>
  19. <genrflagcd/>
  20. <pid/>
  21. <insukind/>
  22. <cncrdiagcnfmdd/>
  23. <orddeptcd/>
  24. <orddrid/>
  25. <serdiagno/>
  26. <serdiagfromdd/>
  27. <serdiagtodd/>
  28. <genrorddd/>
  29. <genrcretno/>
  30. <signyn/>
  31. <signdt/>
  32. <prntyn/>
  33. <prntdt/>
  34. <prntpsnid/>
  35. <ediflag/>
  36. <editretdd/>
  37. <editrettm/>
  38. <prstagtyn/>
  39. <zipcdhead/>
  40. <zipcdfoot/>
  41. <seqno/>
  42. <rgstdeptcd/>
  43. <rgstdd/>
  44. <rgsttm/>
  45. <rgstrid/>
  46. <updtdeptcd/>
  47. <updtdd/>
  48. <updttm/>
  49. <updtrid/>
  50. <fstrgstrid/>
  51. <fstrgstdt/>
  52. <lastupdtrid/>
  53. <lastupdtdt/>
  54. <maindiagcd/>
  55. <healcarediagcd/>
  56. <acptplcetel/>
  57. <mpphontel/>
  58. <acptplceaddr/>
  59. <remfact/>
  60. <hngnm/>
  61. <orddeptnm/>
  62. <orddrnm/>
  63. <lastupdttrnm/>
  64. <rrgstno/>
  65. <insuno/>
  66. <insunm/>
  67. <insdrela/>
  68. <relaflag/>
  69. <appmannm/>
  70. <infromdd/>
  71. <intodd/>
  72. <strcnfmmthd/>
  73. <healcarediagnm/>
  74. <acptplcebaseaddr/>
  75. <maindiagnm/>
  76. <licnsno/>
  77. <samstr/>
  78. <chkflag/>
  79. <sam/>
  80. <sendrrgstno/>
  81. <maincd/>
  82. <healcarecd/>
  83. <report/>
  84. <email/>
  85. </serdiaglist>
  86. </serdiaglist>
  87. <serdiagdetllist>
  88. <serdiagdetllist>
  89. <genrdd/>
  90. <genrno/>
  91. <histno/>
  92. <diagmthdcd/>
  93. <instcd/>
  94. <diagetccnts/>
  95. </serdiagdetllist>
  96. </serdiagdetllist>
  97. <upsamlist>
  98. <upsamlist>
  99. <pid/>
  100. <hngnm/>
  101. <rrgstno/>
  102. <insuno/>
  103. <serdiagno/>
  104. <serdiagfromdd/>
  105. <serdiagtodd/>
  106. <ediremfact/>
  107. </upsamlist>
  108. </upsamlist>
  109. </listinfo>
  110. <savedata>
  111. <savedata>
  112. </savedata>
  113. </savedata>
  114. <openlist>
  115. <loaddata>
  116. <item>
  117. <status/>
  118. <proccorpcd/>
  119. <rgstdd/>
  120. <formnm/>
  121. <appmannm/>
  122. <insuno/>
  123. <pathngnm/>
  124. <rrgstno/>
  125. <insuranceid/>
  126. <startdate/>
  127. <enddate/>
  128. <genrdd/>
  129. <remark/>
  130. </item>
  131. </loaddata>
  132. </openlist>
  133. </main>
  134. <send>
  135. <senddata/>
  136. <savedata/>
  137. </send>
  138. <init>
  139. <srchinfo>
  140. <fromdd/>
  141. <todd/>
  142. <sendyn>0</sendyn>
  143. <sendrrgstno/>
  144. <srchkind/>
  145. </srchinfo>
  146. <codelist>
  147. <M0263/>
  148. </codelist>
  149. <savedata>
  150. <savedata>
  151. <samstr/>
  152. </savedata>
  153. </savedata>
  154. <updatedata>
  155. <updatedata>
  156. <pid/>
  157. <genrdd/>
  158. <genrno/>
  159. <histno/>
  160. <genrflagcd/>
  161. <insukind/>
  162. </updatedata>
  163. </updatedata>
  164. </init>
  165. <cond>
  166. <remanalyflag>send</remanalyflag>
  167. </cond>
  168. </root>
  169. </instance>
  170. <submission id="TRMRD00203" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/init/srchinfo" resultref="/root/main/listinfo"/>
  171. <script type="javascript" ev:event="xforms-ready">
  172. <![CDATA[
  173. var dd = getCurrentDate();
  174. //model.setValue("/root/init/srchinfo/fromdd", ((dd.toDate()).getAddDate(-20)).getDateFormat());
  175. model.setValue("/root/init/srchinfo/fromdd", dd);
  176. model.setValue("/root/init/srchinfo/todd", dd);
  177. //model.setValue("/root/init/srchinfo/sendrrgstno","6301052046215");
  178. model.refresh();
  179. grd_send.fixedcellcheckbox(0, grd_send.colRef("chkflag")) = true;
  180. grd_recv.fixedcellcheckbox(0, grd_recv.colRef("status")) = true;
  181. zbcfGetCodeList(new Array( "M0263"), new Array( "/root/init/codelist"), true);
  182. // zbcfGetDeptCodeList("012", "orduseyn", "D", "/root/init/orddept", "depthngnm");
  183. model.toggle("case1");
  184. //2013/01/09 Start
  185. model.setValue("/root/init/srchinfo/srchkind", "1");
  186. model.refresh();
  187. //2013/01/09 End
  188. ]]>
  189. </script>
  190. <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post"/>
  191. <submission id="TRMRD00204" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/savedata"/>
  192. <submission id="TXMRD00204" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/savedata"/>
  193. <submission id="TRMRD00206" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/init/srchinfo" resultref="/root/main/listinfo"/>
  194. <submission id="TXMRD00205" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/init/updatedata/updatedata"/>
  195. </model>
  196. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  197. <script type="javascript" src="../../../com/commonweb/js/dateHelper.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/basiccodeweb/js/ZBC001.js"/>
  201. <script type="javascript">
  202. <![CDATA[
  203. function fDisabled(flag){
  204. if(flag=="send"){
  205. var dd = getCurrentDate();
  206. var sendValue = model.getValue("/root/init/srchinfo/sendyn");
  207. //model.setValue("/root/init/srchinfo/fromdd", ((dd.toDate()).getAddDate(-20)).getDateFormat());
  208. model.setValue("/root/init/srchinfo/fromdd", dd);
  209. model.setValue("/root/init/srchinfo/todd", dd);
  210. ipt_fromdd.refresh();
  211. ipt_todd.refresh();
  212. // caption2.visible = true;
  213. // ipt_rrgstno.visible = true;
  214. // rdo_sendyn.disabled = false;
  215. btn_save.disabled = false;
  216. btn_load.disabled = true;
  217. btn_update.disabled = true;
  218. }else if(flag=="recv"){
  219. caption2.visible = false;
  220. ipt_rrgstno.visible = false;
  221. btn_save.disabled = true;;
  222. btn_load.disabled = false;
  223. }else if(flag=="edi"){
  224. var dd = getCurrentDate();
  225. var sendValue = model.getValue("/root/init/srchinfo/sendyn");
  226. model.setValue("/root/init/srchinfo/fromdd", dd);
  227. model.setValue("/root/init/srchinfo/todd", dd);
  228. ipt_fromdd.refresh();
  229. ipt_todd.refresh();
  230. caption2.visible = false;
  231. ipt_rrgstno.visible = false;
  232. // rdo_sendyn.disabled = false;
  233. btn_save.disabled = true;
  234. btn_load.disabled = true;
  235. btn_update.disabled = true;
  236. }
  237. model.refresh();
  238. }
  239. ]]>
  240. </script>
  241. </xhtml:head>
  242. <xhtml:body pagewidth="805" pageheight="670">
  243. <button id="button2" class="btn_sw" group="tab" style="left:125px; top:70px; width:63px; height:22px; ">
  244. <caption>EDI내역</caption>
  245. <script type="javascript" ev:event="DOMActivate">
  246. <![CDATA[
  247. // var dd = getCurrentDate();
  248. // var sendValue = model.getValue("/root/init/srchinfo/sendyn");
  249. //
  250. // model.setValue("/root/init/srchinfo/fromdd", dd);
  251. // model.setValue("/root/init/srchinfo/todd", dd);
  252. // ipt_fromdd.refresh();
  253. // ipt_todd.refresh();
  254. //
  255. //// rdo_sendyn.disabled = false;
  256. // btn_save.disabled = true;
  257. // btn_load.disabled = true;
  258. // btn_update.disabled = true;
  259. // model.toggle("case3");
  260. //20080731
  261. model.toggle("case3");
  262. fDisabled("edi");
  263. model.makeValue("/root/cond/remanalyflag","edi");
  264. btn_srch.visible = true;
  265. model.refresh();
  266. ]]>
  267. </script>
  268. </button>
  269. <shape id="roundrect3" class="roundrect_search" appearance="roundrect" style="left:0px; top:20px; width:800px; height:45px; "/>
  270. <line id="line1" class="line_1" style="x1:0px; y1:14px; x2:800px; y2:15px; "/>
  271. <caption id="caption14" class="tit_2" style="left:0px; top:0px; width:156px; height:14px; vertical-align:middle; ">중증등록 SAM파일관리</caption>
  272. <caption id="caption12" class="search_name" style="left:10px; top:33px; width:95px; height:17px; ">조회기간 :</caption>
  273. <caption id="caption5" class="search_no_b" style="left:290px; top:33px; width:12px; height:17px; ">~</caption>
  274. <caption id="caption1" class="search_name" visibility="hidden" style="left:245px; top:48px; width:65px; height:17px; ">구분 :</caption>
  275. <button id="button1" class="btn_sw" group="tab" style="left:63px; top:70px; width:63px; height:22px; ">
  276. <caption>수신</caption>
  277. <script type="javascript" ev:event="DOMActivate">
  278. <![CDATA[
  279. //// rdo_sendyn.disabled = true;
  280. // btn_save.disabled = true;;
  281. // btn_load.disabled = false;
  282. // model.toggle("case2");
  283. //20080731
  284. model.toggle("case2");
  285. fDisabled("recv");
  286. model.makeValue("/root/cond/remanalyflag","recv");
  287. btn_srch.visible = false;
  288. model.refresh();
  289. ]]>
  290. </script>
  291. </button>
  292. <button id="button64" class="btn_sw" group="tab" selected="true" style="left:1px; top:70px; width:63px; height:22px; ">
  293. <caption>송신</caption>
  294. <script type="javascript" ev:event="DOMActivate">
  295. <![CDATA[
  296. // var dd = getCurrentDate();
  297. // var sendValue = model.getValue("/root/init/srchinfo/sendyn");
  298. //
  299. // //model.setValue("/root/init/srchinfo/fromdd", ((dd.toDate()).getAddDate(-20)).getDateFormat());
  300. // model.setValue("/root/init/srchinfo/fromdd", dd);
  301. // model.setValue("/root/init/srchinfo/todd", dd);
  302. // ipt_fromdd.refresh();
  303. // ipt_todd.refresh();
  304. //
  305. //// rdo_sendyn.disabled = false;
  306. // btn_save.disabled = false;
  307. // btn_load.disabled = true;
  308. // btn_update.disabled = true;
  309. // model.toggle("case1");
  310. //20080731
  311. model.toggle("case1");
  312. fDisabled("send");
  313. model.makeValue("/root/cond/remanalyflag","send");
  314. btn_srch.visible = true;
  315. model.refresh();
  316. ]]>
  317. </script>
  318. </button>
  319. <switch id="switch1" style="left:0px; top:90px; width:800px; height:525px; border-color:#c7a3cf; border-style:solid; ">
  320. <case id="case1" selected="true" style="left:0px; top:0px; width:798px; height:523px; ">
  321. <datagrid id="grd_send" nodeset="/root/main/listinfo/serdiaglist/serdiaglist" caption="^보험증번호^세대주^성명^ 등록번호^진료과목^상병^주민번호^특정코드^전화번호^우편번호^우편번호^수령주소(기본)^수령주소(상세)^입원/외래^암진단확인일^최종진단방법^의사면허번호^의사성명^신청자^관계^확인일자^신청일자^핸드폰번호" colsep="^" colwidth="34, 100, 60, 60, 69, 75, 57, 90, 100, 90, 40, 40, 130, 130, 40, 80, 200, 60, 60, 60, 60, 80, 80, 80" explorerbar="sort" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:0px; top:0px; width:795px; height:510px; ">
  322. <col checkvalue="Y,N" ref="chkflag" type="checkbox"/>
  323. <col ref="insuno"/>
  324. <col ref="insdnm"/>
  325. <col ref="hngnm"/>
  326. <col ref="pid"/>
  327. <col ref="orddeptnm"/>
  328. <col ref="healcarecd"/>
  329. <col ref="rrgstno"/>
  330. <col ref="spclcd" visibility="hidden"/>
  331. <col ref="acptplcetel"/>
  332. <col ref="zipcdhead"/>
  333. <col ref="zipcdfoot"/>
  334. <col ref="acptplcebaseaddr"/>
  335. <col ref="acptplceaddr"/>
  336. <col ref="genrflagcd" type="combo">
  337. <choices>
  338. <item>
  339. <label>입원</label>
  340. <value>I</value>
  341. </item>
  342. <item>
  343. <label>외래</label>
  344. <value>O</value>
  345. </item>
  346. </choices>
  347. </col>
  348. <col ref="cncrdiagcnfmdd"/>
  349. <col ref="sam"/>
  350. <col ref="licnsno"/>
  351. <col ref="orddrnm"/>
  352. <col ref="appmannm"/>
  353. <col ref="relaflag" type="combo">
  354. <choices>
  355. <itemset nodeset="/root/init/codelist/M0263">
  356. <label ref="cdnm"/>
  357. <value ref="cdid"/>
  358. </itemset>
  359. </choices>
  360. </col>
  361. <col ref="rgstdd"/>
  362. <col ref="prntdt"/>
  363. <col ref="acptplcempphon"/>
  364. </datagrid>
  365. </case>
  366. <case id="case2">
  367. <datagrid id="grd_recv" nodeset="/root/main/openlist/loaddata/item" caption="^요양기관^작성일^서식명^가입자^건강보험증번호^성명(수진자)^주민번호(수진자)^등록번호(공단)^적용시작일^적용종료일^신청일자^신청구분" colsep="^" colwidth="34, 70, 80, 149, 90, 110, 90, 110, 100, 80, 80, 86, 100" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:0px; top:0px; width:795px; height:510px; ">
  368. <col allowuserresize="false" checkvalue="Y,N" ref="status" type="checkbox"/>
  369. <col ref="proccorpcd"/>
  370. <col ref="rgstdd"/>
  371. <col ref="formnm"/>
  372. <col ref="appmannm"/>
  373. <col ref="insuno"/>
  374. <col ref="pathngnm"/>
  375. <col ref="rrgstno"/>
  376. <col ref="insuranceid"/>
  377. <col ref="startdate"/>
  378. <col ref="enddate"/>
  379. <col ref="genrdd"/>
  380. <col ref="remark"/>
  381. <script type="javascript" ev:event="onaftersort">
  382. <![CDATA[
  383. grd_recv.gridToInstance();
  384. model.refresh();
  385. ]]>
  386. </script>
  387. </datagrid>
  388. </case>
  389. <case id="case3">
  390. <datagrid id="grd_edilist" nodeset="/root/main/listinfo/upsamlist/upsamlist" caption="등록번호^성명^주민번호^건강보험증번호^중증등록번호^적용시작일^적용종료일^비고" colsep="^" colwidth="82, 76, 118, 110, 106, 84, 80, 100" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:0px; top:0px; width:795px; height:510px; ">
  391. <col ref="pid"/>
  392. <col ref="hngnm"/>
  393. <col ref="rrgstno"/>
  394. <col ref="insuno"/>
  395. <col ref="serdiagno"/>
  396. <col ref="serdiagfromdd"/>
  397. <col ref="serdiagtodd"/>
  398. <col ref="ediremfact"/>
  399. <script type="javascript" ev:event="onaftersort">
  400. <![CDATA[
  401. grd_edilist.gridToInstance();
  402. model.refresh();
  403. ]]>
  404. </script>
  405. </datagrid>
  406. </case>
  407. </switch>
  408. <select1 id="rdo_sendyn" ref="/root/init/srchinfo/sendyn" disabled="false" visibility="hidden" appearance="full" cellspacing="15" cols="2" overflow="visible" style="left:310px; top:47px; width:130px; height:20px; border-style:none; ">
  409. <choices>
  410. <item>
  411. <label>전송전</label>
  412. <value>0</value>
  413. </item>
  414. <item>
  415. <label>전송후</label>
  416. <value>1</value>
  417. </item>
  418. </choices>
  419. <script type="javascript" ev:event="onclick">
  420. <![CDATA[
  421. // var dd = getCurrentDate();
  422. // var sendValue = model.getValue("/root/init/srchinfo/sendyn");
  423. //
  424. // if (sendValue == "0"){
  425. // model.setValue("/root/init/srchinfo/fromdd", ((dd.toDate()).getAddDate(-20)).getDateFormat());
  426. // model.setValue("/root/init/srchinfo/todd", dd);
  427. // ipt_fromdd.refresh();
  428. // ipt_todd.refresh();
  429. // button1.disabled = false;
  430. // model.toggle("case1");
  431. // } else {
  432. // model.setValue("/root/init/srchinfo/fromdd", dd);
  433. // model.setValue("/root/init/srchinfo/todd", dd);
  434. // ipt_fromdd.refresh();
  435. // ipt_todd.refresh();
  436. // button2.disabled = false;
  437. // model.toggle("case3");
  438. // }
  439. ]]>
  440. </script>
  441. </select1>
  442. <input id="ipt_todd" ref="/root/init/srchinfo/todd" class="input_search" inputtype="date" style="left:305px; top:33px; width:100px; height:19px; "/>
  443. <input id="ipt_fromdd" ref="/root/init/srchinfo/fromdd" class="input_search" inputtype="date" style="left:185px; top:33px; width:100px; height:19px; "/>
  444. <button id="btn_srch" class="btn1_letter2" style="left:720px; top:32px; width:56px; height:22px; ">
  445. <caption>조회</caption>
  446. <script type="javascript" ev:event="DOMActivate">
  447. <![CDATA[
  448. // if (button64.disabled == false){
  449. // submit("TRMRD00203");
  450. // } else if (button2.disabled == false){
  451. // submit("TRMRD00206");
  452. // }
  453. var sRemFlag = model.getValue("/root/cond/remanalyflag");
  454. if (sRemFlag == "send"){
  455. submit("TRMRD00203");
  456. } else if (sRemFlag == "edi"){
  457. submit("TRMRD00206");
  458. }
  459. for (i = 1; i <= grd_send.rows; i++ ) {
  460. if (i > 1) {
  461. model.makeValue("/root/main/listinfo/serdiaglist/serdiaglist[" + (i-1) + "]/chkflag", "Y");
  462. }
  463. }
  464. ]]>
  465. </script>
  466. </button>
  467. <datagrid id="grd_filedata" nodeset="/root/main/savedata/savedata" visibility="hidden" caption="samstr" colsep="^" colwidth="252" mergecellsfixedrows="bycolrec" rowsep="|" style="left:200px; top:615px; width:265px; height:55px; ">
  468. <col ref="samstr"/>
  469. </datagrid>
  470. <button id="btn_save" class="btn2_letter4" style="left:605px; top:70px; width:64px; height:19px; ">
  471. <caption>파일저장</caption>
  472. <script type="javascript" ev:event="DOMActivate">
  473. <![CDATA[
  474. // if (ipt_rrgstno.value == ""){
  475. // alert("등록자 주민등록번호가 입력되지 않았습니다" );
  476. // model.setFocus("ipt_rrgstno");
  477. // return;
  478. // }
  479. //model.removenode("/root/main/savedata/savedata");
  480. model.resetInstanceNode("/root/main/savedata/savedata");
  481. //model.removenode("/root/main/savedata");
  482. //등록자 주민번호 강제 세팅 - 의료정보팀 팀장님꺼
  483. //ipt_rrgstno.value = "6301052046215"
  484. for (i = 1; i < grd_send.rows; i++) {
  485. // alert(model.getValue("/root/main/listinfo/serdiaglist/serdiaglist["+i+"]/samstr"));
  486. var tmpChk = model.getValue("/root/main/listinfo/serdiaglist/serdiaglist["+ i +"]/chkflag");
  487. if(tmpChk =="Y"){
  488. model.setValue("/root/init/updatedata/updatedata/pid", model.getValue("/root/main/listinfo/serdiaglist/serdiaglist["+i+"]/pid"));
  489. model.setValue("/root/init/updatedata/updatedata/genrdd", model.getValue("/root/main/listinfo/serdiaglist/serdiaglist["+i+"]/genrdd"));
  490. model.setValue("/root/init/updatedata/updatedata/genrno", model.getValue("/root/main/listinfo/serdiaglist/serdiaglist["+i+"]/genrno"));
  491. model.setValue("/root/init/updatedata/updatedata/histno", model.getValue("/root/main/listinfo/serdiaglist/serdiaglist["+i+"]/histno"));
  492. model.setValue("/root/init/updatedata/updatedata/genrflagcd", model.getValue("/root/main/listinfo/serdiaglist/serdiaglist["+i+"]/genrflagcd"));
  493. model.setValue("/root/init/updatedata/updatedata/insukind", model.getValue("/root/main/listinfo/serdiaglist/serdiaglist["+i+"]/insukind"));
  494. model.setValue("/root/init/savedata/savedata/samstr", model.getValue("/root/main/listinfo/serdiaglist/serdiaglist["+i+"]/samstr"));
  495. copyNodeType("/root/main/savedata", "/root/init/savedata", "after");
  496. submit("TXMRD00205");
  497. }
  498. }
  499. grd_filedata.rebuild();
  500. var fileName = window.fileDialog("save", ",", false, "text", "txt", "Text Files(*.txt)|*.txt|All Files (*.*)|*.*");
  501. if (fileName != "") {
  502. grd_filedata.saveText(fileName, "\n", "^", "", false, false);
  503. alert("저장이 완료되었습니다.");
  504. }
  505. //model.resetInstanceNode("/root/main/savedata/savedata");
  506. model.resetInstanceNode("/root/main/savedata");
  507. ]]>
  508. </script>
  509. </button>
  510. <button id="btn_load" class="btn2_letter4" disabled="true" style="left:670px; top:70px; width:64px; height:19px; ">
  511. <caption>파일열기</caption>
  512. <script type="javascript" ev:event="DOMActivate">
  513. <![CDATA[
  514. model.resetInstanceNode("/root/main/openlist/loaddata/item");
  515. // knuh_20110119 엑셀로 변경
  516. //var fileName = window.fileDialog("open", ",", false, "", "txt", "Text Files(*.txt)|*.txt|All Files (*.*)|*.*");
  517. var fileName = window.fileDialog("open", ",", false, "", "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
  518. if (fileName != "") {
  519. // knuh_20110119 엑셀로 변경
  520. //grd_filedata.loadText(fileName, '\n', '', '');
  521. //grd_filedata.loadExcel(fileName, 1);
  522. grd_recv.loadExcel(fileName, 1);
  523. //model.refresh();
  524. grd_recv.deleterow(1);
  525. for (i = 1; i < grd_recv.rows; i++ ) {
  526. model.setValue("/root/main/openlist/loaddata/item[" + i + "]/status", "Y");
  527. }
  528. }
  529. button1.selected= true;
  530. model.toggle("case2");
  531. /*
  532. var linestr = "", retstr = "";
  533. var itemlen = new Array(0, 11, 20, 13, 10, 8, 8, 2, 1, 98);
  534. var start, strlen;
  535. var rows = grd_filedata.rows - grd_filedata.fixedRows;
  536. for (i = 1; i <= rows; i++ ) {
  537. linestr = model.getValue("/root/main/savedata/savedata["+ i +"]/samstr");
  538. start = 0;
  539. model.makeValue("/root/main/openlist/loaddata/item[" + i + "]/status", "Y");
  540. for (j = 0; j <= itemlen.length; j++) {
  541. retstr = "";
  542. strlen = parseInt(itemlen[j]);
  543. for (k = 0; k < strlen; k++){
  544. retstr = retstr + linestr.charAt(start+k);
  545. if ( linestr.charCodeAt(start+k) > 128 ) {
  546. strlen = strlen - 1;
  547. }
  548. }
  549. grd_recv.valueMatrix(i, j+1) = retstr;
  550. start = start + strlen;
  551. }
  552. if(i != rows) { //마지막에 빈줄 생김 방지
  553. grd_recv.addrow(false, true);
  554. }
  555. }
  556. */
  557. model.refresh();
  558. btn_update.disabled = false;
  559. ]]>
  560. </script>
  561. </button>
  562. <button id="btn_update" class="btn2_letter4" disabled="true" style="left:735px; top:70px; width:64px; height:19px; ">
  563. <caption>내용저장</caption>
  564. <script type="javascript" ev:event="DOMActivate">
  565. <![CDATA[
  566. var rows = grd_recv.rows - grd_recv.fixedRows;
  567. // knuh_20110420_수정
  568. //var savedata = "status▦insuno▦pathngnm▦rrgstno▦insuranceid▦startdate▦enddate▦remno▦bun▦remark▩";
  569. var savedata = "status▦insuno▦pathngnm▦rrgstno▦insuranceid▦startdate▦enddate▩";
  570. for ( var i= 1; i <= rows; i++)
  571. {
  572. var chk = model.getValue("/root/main/openlist/loaddata/item["+ i +"]/status");
  573. if (chk == "Y") {
  574. // model.makeValue("/root/send/savedata/status", model.getValue("/root/main/listinfo/loaddata/item["+ i +"]/status"));
  575. // model.makeValue("/root/send/savedata/insuno", model.getValue("/root/main/listinfo/loaddata/item["+ i +"]/insuno"));
  576. // model.makeValue("/root/send/savedata/pathngnm", model.getValue("/root/main/listinfo/loaddata/item["+ i +"]/pathngnm"));
  577. // model.makeValue("/root/send/savedata/rrgstno", model.getValue("/root/main/listinfo/loaddata/item["+ i +"]/rrgstno"));
  578. // model.makeValue("/root/send/savedata/insuranceid", model.getValue("/root/main/listinfo/loaddata/item["+ i +"]/insuranceid"));
  579. // model.makeValue("/root/send/savedata/startdate", model.getValue("/root/main/listinfo/loaddata/item["+ i +"]/startdate"));
  580. // model.makeValue("/root/send/savedata/enddate", model.getValue("/root/main/listinfo/loaddata/item["+ i +"]/enddate"));
  581. // model.makeValue("/root/send/savedata/remark", model.getValue("/root/main/listinfo/loaddata/item["+ i +"]/remark"));
  582. // KNUH_20110419_추가
  583. var startdate = model.getValue("/root/main/openlist/loaddata/item["+ i +"]/startdate");
  584. startdate = startdate.setReplaceWord("/", "");
  585. var enddate = model.getValue("/root/main/openlist/loaddata/item["+ i +"]/enddate");
  586. enddate = enddate.setReplaceWord("/", "");
  587. savedata += model.getValue("/root/main/openlist/loaddata/item["+ i +"]/status") + "▦";
  588. savedata += model.getValue("/root/main/openlist/loaddata/item["+ i +"]/insuno") + "▦";
  589. savedata += model.getValue("/root/main/openlist/loaddata/item["+ i +"]/pathngnm") + "▦";
  590. savedata += model.getValue("/root/main/openlist/loaddata/item["+ i +"]/rrgstno") + "▦";
  591. savedata += model.getValue("/root/main/openlist/loaddata/item["+ i +"]/insuranceid") + "▦";
  592. //savedata += model.getValue("/root/main/openlist/loaddata/item["+ i +"]/startdate") + "▦";
  593. //savedata += model.getValue("/root/main/openlist/loaddata/item["+ i +"]/enddate") + "▦";
  594. //savedata += model.getValue("/root/main/openlist/loaddata/item["+ i +"]/remno") + "▦";
  595. //savedata += model.getValue("/root/main/openlist/loaddata/item["+ i +"]/bun") + "▦";
  596. //savedata += model.getValue("/root/main/openlist/loaddata/item["+ i +"]/remark") + "▩";
  597. savedata += startdate + "▦";
  598. savedata += enddate + "▩";
  599. }
  600. }
  601. model.setValue("/root/send/savedata", savedata);
  602. //submit("TXMRD00204");
  603. //alert("저장이 완료되었습니다.");
  604. if (submit("TXMRD00204")==true)
  605. {
  606. messageBox("저장이","I002");
  607. }
  608. else
  609. {
  610. messageBox("저장에", "E009");
  611. }
  612. model.resetInstanceNode("/root/main/openlist/loaddata/item");
  613. model.refresh();
  614. ]]>
  615. </script>
  616. </button>
  617. <caption id="caption2" class="search_name" visibility="hidden" style="left:390px; top:33px; width:151px; height:17px; ">등록자 주민등록번호:</caption>
  618. <input id="ipt_rrgstno" ref="/root/init/srchinfo/sendrrgstno" visibility="hidden" maxlength="13" style="left:545px; top:33px; width:135px; height:19px; "/>
  619. <select1 id="combo1" ref="/root/init/srchinfo/srchkind" appearance="minimal" style="left:95px; top:33px; width:85px; height:19px; ">
  620. <choices>
  621. <item>
  622. <label>등록일</label>
  623. <value>1</value>
  624. </item>
  625. <item>
  626. <label>서명일</label>
  627. <value>2</value>
  628. </item>
  629. <item>
  630. <label>수정일</label>
  631. <value>3</value>
  632. </item>
  633. </choices>
  634. </select1>
  635. </xhtml:body>
  636. </xhtml:html>