SMPIE03500_보완자료요청내역서(F110)조회.xrw 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600
  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. <send_f111>
  11. <notifromdd/>
  12. <notitodd/>
  13. <appfromdd/>
  14. <apptodd/>
  15. <dateflag/>
  16. </send_f111>
  17. <send_f112>
  18. <appno/>
  19. <notino/>
  20. <reptflag/>
  21. </send_f112>
  22. </send>
  23. <popupdata>
  24. <popupmenu>
  25. <grd_piehf111>
  26. <item>
  27. <name>보완자료요청 삭제</name>
  28. <func>fDeleteF110</func>
  29. </item>
  30. </grd_piehf111>
  31. </popupmenu>
  32. </popupdata>
  33. <main>
  34. <list01>
  35. <gridpiehf111>
  36. <appno/>
  37. <reptflag/>
  38. <notidd/>
  39. <notino/>
  40. <docuno/>
  41. <verflag/>
  42. <corpmark/>
  43. <chrgdept/>
  44. <rem/>
  45. </gridpiehf111>
  46. </list01>
  47. <list02>
  48. <gridpiehf112>
  49. <printchk/>
  50. <lnno/>
  51. <reptitemcd/>
  52. <itemnm/>
  53. <purcqty/>
  54. <prcpprodflag/>
  55. <guidefactsflag/>
  56. <guidefactsspec/>
  57. <datareqflag/>
  58. <datareqspec/>
  59. </gridpiehf112>
  60. </list02>
  61. </main>
  62. <init>
  63. <P0254list>
  64. <P0254>
  65. <cdid/>
  66. <cdnm/>
  67. </P0254>
  68. </P0254list>
  69. <P0280list>
  70. <P0280>
  71. <cdid/>
  72. <cdnm/>
  73. </P0280>
  74. </P0280list>
  75. <P0258list>
  76. <P0258>
  77. <cdid/>
  78. <cdnm/>
  79. </P0258>
  80. </P0258list>
  81. </init>
  82. <hidden>
  83. <numbers>
  84. <notino/>
  85. <appno/>
  86. </numbers>
  87. <guidefactsspec>
  88. <value/>
  89. </guidefactsspec>
  90. <totcount>
  91. <totcnt/>
  92. </totcount>
  93. <temp>
  94. <printlist>
  95. <notino/>
  96. <appno/>
  97. <usernm/>
  98. <lnno/>
  99. <reptitemcd/>
  100. <itemnm/>
  101. <purcqty/>
  102. <prcpprodflag/>
  103. <guidefactsflag/>
  104. <guidefactsspec/>
  105. <datareqflag/>
  106. <datareqspec/>
  107. </printlist>
  108. </temp>
  109. <chknums>
  110. <no/>
  111. </chknums>
  112. </hidden>
  113. </root>
  114. </instance>
  115. <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post"/>
  116. <submission id="TRPIE03501" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/send_f111" resultref="/root/main/list01"/>
  117. <submission id="TRPIE03502" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/send_f112" resultref="/root/main/list02"/>
  118. </model>
  119. <script type="javascript" ev:event="xforms-ready">
  120. <![CDATA[
  121. // 공통코드 Load작업
  122. CommCode_Load();
  123. // 초기화
  124. fInitialize();
  125. ]]>
  126. </script>
  127. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  128. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  129. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  130. <script type="javascript" src="../../../com/commonweb/js/numericHelper.js"/>
  131. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  132. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  133. <script type="javascript" src="../../../com/batchinfoweb/js/ZSB001.js"/>
  134. <script type="javascript">
  135. <![CDATA[
  136. function fInitialize() {
  137. ipt_notifromdd.disabled = false;
  138. ipt_notitodd.disabled = false;
  139. ipt_appfromdd.disabled = true;
  140. ipt_apptodd.disabled = true;
  141. grp_spclspec.visible = false;
  142. // 데이터 초기화
  143. model.resetInstanceNode("/root/send/send_f111");
  144. model.setValue("/root/send/send_f111/dateflag", "1");
  145. model.removenode("/root/main/list01");
  146. model.removenode("/root/main/list02");
  147. model.makeNode("/root/main/list01");
  148. model.makeNode("/root/main/list02");
  149. // 전체선택 취소를 위한 number값 셋팅(1)
  150. model.setValue("/root/hidden/chknums/no","1");
  151. //model.refresh();
  152. rdo_flag.dispatch("xforms-value-changed");
  153. }
  154. function Node_Init() {
  155. // NodeSet 초기화
  156. model.resetInstanceNode("/root/main/list");
  157. model.refresh();
  158. }
  159. // 공통코드 Load작업
  160. function CommCode_Load() {
  161. zbcfGetCodeList(new Array("P0254","P0280","P0258"), new Array( "/root/init/P0254list","/root/init/P0280list","/root/init/P0258list")); // 신고서구분, 조제제제구분, 안내사항구분,
  162. }
  163. function fSendChk() {
  164. var notifromdd = model.getValue("/root/send/send_f111/notifromdd");
  165. var notitodd = model.getValue("/root/send/send_f111/notitodd");
  166. var appfromdd = model.getValue("/root/send/send_f111/appfromdd");
  167. var apptodd = model.getValue("/root/send/send_f111/apptodd");
  168. var flag = model.getValue("/root/send/send_f111/dateflag");
  169. if(flag == "1"){
  170. if(notifromdd == "" && notitodd == ""){
  171. messageBox("통보일자를","C001");
  172. return false;
  173. }
  174. if(notifromdd != "" && notitodd == ""){
  175. messageBox("통보일자를","C001");
  176. return false;
  177. }
  178. if(notifromdd == "" && notitodd != ""){
  179. messageBox("통보일자를","C001");
  180. return false;
  181. }
  182. }
  183. if(flag == "2"){
  184. if(appfromdd == "" && apptodd == ""){
  185. messageBox("신청일자를","C001");
  186. return false;
  187. }
  188. if(appfromdd != "" && apptodd == ""){
  189. messageBox("신청일자를","C001");
  190. return false;
  191. }
  192. if(appfromdd == "" && apptodd != ""){
  193. messageBox("신청일자를","C001");
  194. return false;
  195. }
  196. }
  197. return true;
  198. }
  199. function fDayChk(){
  200. var appno = model.getValue("/root/send/appno1");
  201. var dd = getCurrentDate();
  202. if(appno != dd){
  203. var chk = messageBox("신청일자가 오늘일자와 다릅니다.","Q003");
  204. if(chk == "6"){
  205. return true;
  206. }else{
  207. return false;
  208. }
  209. }
  210. }
  211. function fNewLnnoSet(){
  212. var rows = grd_piehh702.rows;
  213. var frows = grd_piehh702.fixedRows;
  214. var nrows = rows - frows;
  215. var newlnno = model.getValue("/root/main/list01/gridpiehh702[" + nrows + "]/lnno")
  216. model.setValue("/root/main/list02/gridpiehh702info/lnno", newlnno);
  217. //약품조회시 처음에 insert한다는 전제하에 status를 I로 한다.
  218. var rows = grd_piehh703.rows;
  219. var frows = grd_piehh703.fixedRows;
  220. var nrows = rows - frows;
  221. for(var i = 1; i <= nrows; i++){
  222. model.setValue("/root/main/list03/gridpiehh703[" + i + "]/lnno",newlnno);
  223. grd_piehh703.rowStatus(i) = 1;
  224. }
  225. model.refresh();
  226. }
  227. // 보완자료요청 삭제
  228. function fDeleteF110() {
  229. if (grd_piehf111.row >= grd_piehf111.fixedRows ) {
  230. // 1. 삭제할 보완자료요청 데이터를 만든다.
  231. var rows = grd_piehf111.selectedRows;
  232. var cnt = 1;
  233. for (var i = 0; i < rows; i++) {
  234. var sel = grd_piehf111.selectedRow(i);
  235. model.makeValue("/root/hidden/sppie00810/list/data[" + cnt + "]/openflag", "f110");
  236. model.makeValue("/root/hidden/sppie00810/list/data[" + cnt + "]/rsrvflag", "Y");
  237. model.makeValue("/root/hidden/sppie00810/list/data[" + cnt + "]/uncoflag", "N");
  238. model.makeValue("/root/hidden/sppie00810/list/data[" + cnt + "]/cutflag", "N");
  239. model.makeValue("/root/hidden/sppie00810/list/data[" + cnt + "]/notino", model.getValue("/root/main/list01/gridpiehf111[" + sel + "]/notino"));
  240. model.makeValue("/root/hidden/sppie00810/list/data[" + cnt + "]/appno", model.getValue("/root/main/list01/gridpiehf111[" + sel + "]/appno"));
  241. model.makeValue("/root/hidden/sppie00810/list/data[" + cnt + "]/reptflag", model.getValue("/root/main/list01/gridpiehf111[" + sel + "]/reptflag"));
  242. cnt++;
  243. }
  244. // 2. 수신테이블 삭제 팝업 호출
  245. modal("SPPIE00810", "", "10", "10", "SPPIE00810", "/root/hidden/sppie00810" ,"/root/main", "", "");
  246. }
  247. }
  248. ]]>
  249. </script>
  250. </xhtml:head>
  251. <xhtml:body style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  252. <group id="group4" scroll="auto" style="left:0px; top:15px; width:1194px; height:741px; ">
  253. <datagrid id="grd_piehf111" nodeset="/root/main/list01/gridpiehf111" class="datagrid2" caption="신청번호^신고서구분^통보일자^통보번호^서식번호^VER^요양기관기호^담당과^참조" colsep="^" colwidth="100, 80, 80, 100, 80, 60, 100, 150, 420" dataheight="25" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="25" rowsep="|" tooltip="true" style="left:0px; top:83px; width:1194px; height:226px; ">
  254. <col ref="appno" style="text-align:center; "/>
  255. <col ref="reptflag" type="combo" style="text-align:center; ">
  256. <choices>
  257. <itemset nodeset="/root/init/P0254list/P0254">
  258. <label ref="cdnm"/>
  259. <value ref="cdid"/>
  260. </itemset>
  261. </choices>
  262. </col>
  263. <col ref="notidd" format="yyyy-mm-dd" style="text-align:center; "/>
  264. <col ref="notino" style="text-align:center; "/>
  265. <col ref="docuno" style="text-align:center; "/>
  266. <col ref="verflag" style="text-align:center; "/>
  267. <col ref="corpmark" style="text-align:center; "/>
  268. <col ref="chrgdept" style="text-align:center; "/>
  269. <col ref="rem"/>
  270. <script type="javascript" ev:event="ondblclick">
  271. <![CDATA[
  272. var target = event.target;
  273. var targetchk = target.substr(0,2);
  274. if(targetchk == '_$'){
  275. // F110.2를 조회하기 위한 set작업
  276. model.setValue("/root/send/send_f112/appno", model.getValue("/root/main/list01/gridpiehf111[" + grd_piehf111.row+ "]/appno"));
  277. model.setValue("/root/send/send_f112/notino", model.getValue("/root/main/list01/gridpiehf111[" + grd_piehf111.row+ "]/notino"));
  278. model.setValue("/root/send/send_f112/reptflag", model.getValue("/root/main/list01/gridpiehf111[" + grd_piehf111.row+ "]/reptflag"));
  279. // 출력을 위한 set작업
  280. model.setValue("/root/hidden/numbers/appno", model.getValue("/root/main/list01/gridpiehf111[" + grd_piehf111.row+ "]/appno"));
  281. model.setValue("/root/hidden/numbers/notino", model.getValue("/root/main/list01/gridpiehf111[" + grd_piehf111.row+ "]/notino"));
  282. model.refresh();
  283. // F110.1의 appno, notino, reptflag 를 가지고 F110.2를 조회한다.
  284. submit("TRPIE03502");
  285. }
  286. ]]>
  287. </script>
  288. <script type="javascript" ev:event="onmousedown">
  289. <![CDATA[
  290. if (event.button == 3) { // 3 : 오른쪽 버튼
  291. if (grd_piehf111.isCell(event.target) && grd_piehf111.mouseRow >= grd_piehf111.fixedrows) {
  292. setPopupMenu("grd_piehf111", false, "/root/popupdata/popupmenu/grd_piehf111/item", "name", "func"); // (tfHelper.js) 컨트롤에서 사용자 팝업 설정 함수
  293. }
  294. }
  295. ]]>
  296. </script>
  297. <script type="javascript" ev:event="DOMFocusOut">
  298. <![CDATA[
  299. initPopupMenu(); // (tfHelper.js) 사용자 팝업 설정 초기화
  300. ]]>
  301. </script>
  302. </datagrid>
  303. <caption id="caption5" class="tit_2" style="left:5px; top:63px; width:110px; height:13px; ">F110.1</caption>
  304. <datagrid id="grd_piehf112" nodeset="/root/main/list02/gridpiehf112" class="datagrid2" caption="출력&#xA;여부^줄번호^신고품목코드^품명^구입량^조제제제구분^안내사항구분^안내내역^자료요청구분^자료요청내역" colsep="^" colwidth="40, 60, 80, 300, 60, 80, 80, 520, 85, 90" dataheight="25" ellipsis="true" extendlastcol="scroll" frozencols="4" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="25" rowsep="|" tooltip="true" style="left:0px; top:343px; width:1194px; height:394px; ">
  305. <col checkvalue="Y,N" ref="printchk" type="checkbox"/>
  306. <col ref="lnno"/>
  307. <col ref="reptitemcd"/>
  308. <col ref="itemnm"/>
  309. <col ref="purcqty"/>
  310. <col ref="prcpprodflag" type="combo">
  311. <choices>
  312. <itemset nodeset="/root/init/P0280list/P0280">
  313. <label ref="cdnm"/>
  314. <value ref="cdid"/>
  315. </itemset>
  316. </choices>
  317. </col>
  318. <col ref="guidefactsflag" type="combo">
  319. <choices>
  320. <itemset nodeset="/root/init/P0258list/P0258">
  321. <label ref="cdnm"/>
  322. <value ref="cdid"/>
  323. </itemset>
  324. </choices>
  325. </col>
  326. <col ref="guidefactsspec"/>
  327. <col ref="datareqflag"/>
  328. <col ref="datareqspec"/>
  329. <script type="javascript" ev:event="ondblclick">
  330. <![CDATA[
  331. var col = grd_piehf112.col;
  332. var row = grd_piehf112.row;
  333. if(col == "8"){
  334. var value = grd_piehf112.valueMatrix(row,col);
  335. grp_spclspec.visible = true;
  336. model.setValue("/root/hidden/guidefactsspec/value", value);
  337. txa_guidefactsspec.refresh();
  338. }
  339. ]]>
  340. </script>
  341. </datagrid>
  342. <line id="line2" class="line_1" style="x1:0px; y1:338px; x2:1194px; y2:338px; "/>
  343. <caption id="caption8" class="tit_2" style="left:5px; top:324px; width:65px; height:13px; ">F110.2</caption>
  344. <line id="line3" class="line_1" style="x1:0px; y1:80px; x2:1194px; y2:79px; "/>
  345. <group id="grp_sea" style="left:0px; top:10px; width:1194px; height:45px; vertical-align:top; ">
  346. <shape id="roundrect2" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1194px; height:42px; background-color:#fffbf2; border-color:#ffd799; "/>
  347. <line id="line4" class="line_4" style="x1:1115px; y1:11px; x2:1115px; y2:33px; "/>
  348. <caption id="caption9" class="search_name" style="left:450px; top:14px; width:96px; height:17px; ">신청일자 :</caption>
  349. <caption id="caption11" style="left:310px; top:17px; width:15px; height:15px; ">~</caption>
  350. <input id="ipt_notifromdd" ref="/root/send/send_f111/notifromdd" class="input_search" navindex="2" inputtype="date" format="yyyy-mm-dd" appearance="input" style="left:216px; top:13px; width:90px; height:19px; ">
  351. <caption id="caption7"/>
  352. <script type="javascript" ev:event="onkeydown">
  353. <![CDATA[
  354. if(event.keyCode == "13"){
  355. inputEnterkey("btn_srch","DOMActivate");
  356. }
  357. ]]>
  358. </script>
  359. <script type="javascript" ev:event="DOMFocusOut">
  360. <![CDATA[
  361. model.setValue("/root/send/send_f111/notitodd",model.getValue("/root/send/send_f111/notifromdd"));
  362. model.refreshpart("/root/send/send_f111/notitodd");
  363. ]]>
  364. </script>
  365. </input>
  366. <input id="ipt_notitodd" ref="/root/send/send_f111/notitodd" class="input_search" navindex="3" inputtype="date" format="yyyy-mm-dd" appearance="input" style="left:326px; top:13px; width:90px; height:19px; ">
  367. <script type="javascript" ev:event="onkeydown">
  368. <![CDATA[
  369. if(event.keyCode == "13"){
  370. btn_srch.dispatch("DOMActivate");
  371. }
  372. ]]>
  373. </script>
  374. </input>
  375. <button id="btn_srch" class="btn1_letter2" navindex="6" style="left:1130px; top:11px; width:56px; height:22px; ">
  376. <caption>조회</caption>
  377. <script type="javascript" ev:event="DOMActivate">
  378. <![CDATA[
  379. // 조회조건 확인
  380. if(fSendChk()){
  381. // 조회조건으로 F110.1 data를 조회한다.
  382. submit("TRPIE03501");
  383. }
  384. ]]>
  385. </script>
  386. </button>
  387. <caption id="caption41" class="search_name" style="left:120px; top:14px; width:90px; height:17px; ">통보일자 :</caption>
  388. <caption id="caption1" style="left:639px; top:17px; width:15px; height:15px; ">~</caption>
  389. <input id="ipt_apptodd" ref="/root/send/send_f111/apptodd" class="input_search" navindex="5" inputtype="date" format="yyyy-mm-dd" appearance="input" style="left:655px; top:13px; width:90px; height:19px; ">
  390. <script type="javascript" ev:event="onkeydown">
  391. <![CDATA[
  392. if(event.keyCode == "13"){
  393. inputEnterkey("btn_srch","DOMActivate");
  394. }
  395. ]]>
  396. </script>
  397. </input>
  398. <input id="ipt_appfromdd" ref="/root/send/send_f111/appfromdd" class="input_search" navindex="4" inputtype="date" format="yyyy-mm-dd" appearance="input" style="left:545px; top:13px; width:90px; height:19px; ">
  399. <caption id="caption7"/>
  400. <script type="javascript" ev:event="onkeydown">
  401. <![CDATA[
  402. if(event.keyCode == "13"){
  403. inputEnterkey("btn_srch","DOMActivate");
  404. }
  405. ]]>
  406. </script>
  407. <script type="javascript" ev:event="DOMFocusOut">
  408. <![CDATA[
  409. model.setValue("/root/send/send_f111/apptodd",model.getValue("/root/send/send_f111/appfromdd"));
  410. model.refreshpart("/root/send/send_f111/apptodd");
  411. ]]>
  412. </script>
  413. </input>
  414. <select1 id="rdo_flag" ref="/root/send/send_f111/dateflag" navindex="1" overflow="visible" appearance="full" cols="1" style="left:20px; top:5px; width:70px; height:35px; border-style:none; ">
  415. <choices>
  416. <item>
  417. <label>통보일자</label>
  418. <value>1</value>
  419. </item>
  420. <item>
  421. <label>신청일자</label>
  422. <value>2</value>
  423. </item>
  424. </choices>
  425. <script type="javascript" ev:event="xforms-value-changed">
  426. <![CDATA[
  427. var flag = model.getValue("/root/send/send_f111/dateflag");
  428. if(flag == "0"){
  429. ipt_notifromdd.disabled = false;
  430. ipt_notitodd.disabled = false;
  431. ipt_appfromdd.disabled = false;
  432. ipt_apptodd.disabled = false;
  433. }
  434. if(flag == "1"){
  435. ipt_notifromdd.disabled = false;
  436. ipt_notitodd.disabled = false;
  437. ipt_appfromdd.disabled = true;
  438. ipt_apptodd.disabled = true;
  439. model.setValue("/root/send/send_f111/notifromdd", getCurrentDate());
  440. model.setValue("/root/send/send_f111/notitodd", getCurrentDate());
  441. model.setValue("/root/send/send_f111/appfromdd", '');
  442. model.setValue("/root/send/send_f111/apptodd", '');
  443. }
  444. if(flag == "2"){
  445. ipt_notifromdd.disabled = true;
  446. ipt_notitodd.disabled = true;
  447. ipt_appfromdd.disabled = false;
  448. ipt_apptodd.disabled = false;
  449. model.setValue("/root/send/send_f111/notifromdd", '');
  450. model.setValue("/root/send/send_f111/notitodd",'');
  451. model.setValue("/root/send/send_f111/appfromdd", getCurrentDate());
  452. model.setValue("/root/send/send_f111/apptodd", getCurrentDate());
  453. }
  454. model.refresh();
  455. ]]>
  456. </script>
  457. </select1>
  458. </group>
  459. <group id="grp_spclspec" visibility="hidden" style="left:720px; top:425px; width:430px; height:230px; ">
  460. <line id="line1" class="line_1" style="x1:0px; y1:20px; x2:430px; y2:20px; "/>
  461. <caption id="caption26" class="tit_2" style="left:5px; top:5px; width:113px; height:14px; ">안내내역</caption>
  462. <textarea id="txa_guidefactsspec" ref="/root/hidden/guidefactsspec/value" editable="false" style="left:0px; top:25px; width:430px; height:180px; "/>
  463. <button id="btn_cancel" class="btn4_letter2" style="left:371px; top:206px; width:56px; height:22px; ">
  464. <caption>닫기</caption>
  465. <script type="javascript" ev:event="DOMActivate">
  466. <![CDATA[
  467. grp_spclspec.visible = false;
  468. ]]>
  469. </script>
  470. </button>
  471. </group>
  472. <button id="btn_allselect" class="btn2_letter7" visibility="hidden" style="left:1094px; top:318px; width:97px; height:19px; ">
  473. <caption>전체선택/취소</caption>
  474. <script type="javascript" ev:event="DOMActivate">
  475. <![CDATA[
  476. var no = model.getValue("/root/hidden/chknums/no");
  477. var rows = grd_piehf112.rows;
  478. var frows = grd_piehf112.fixedRows;
  479. var nrows = rows - frows;
  480. if(no == "1"){
  481. for(var i=1; i <= nrows; i++){
  482. model.setValue("/root/main/list02/gridpiehf112[" + i + "]/printchk", "Y");
  483. }
  484. model.setValue("/root/hidden/chknums/no", "2");
  485. }
  486. if(no == "2"){
  487. for(var i=1; i <= nrows; i++){
  488. model.setValue("/root/main/list02/gridpiehf112[" + i + "]/printchk", "N");
  489. }
  490. model.setValue("/root/hidden/chknums/no", "1");
  491. }
  492. model.refresh();
  493. ]]>
  494. </script>
  495. </button>
  496. <button id="button93" class="btn6_letter2" style="left:1129px; top:56px; width:56px; height:22px; ">
  497. <caption>출력</caption>
  498. <script type="javascript" ev:event="DOMActivate">
  499. <![CDATA[
  500. model.refresh();
  501. var usernm = getUserName();
  502. model.resetInstanceNode("/root/init/totcount");
  503. model.removenode("/root/hidden/temp/printlist");
  504. //
  505. var cnt = 0;
  506. var rows = grd_piehf112.rows;
  507. var frows = grd_piehf112.fixedRows;
  508. var nrows = rows - frows;
  509. var nodeList = instance1.selectNodes("/root/main/list02/gridpiehf112");
  510. for(var i=1; i <= nodeList.length; i++){
  511. if(model.getValue("/root/main/list02/gridpiehf112[" + i + "]/printchk") == "Y") {
  512. cnt++;
  513. model.makeNode("/root/hidden/temp/printlist["+cnt+"]/notino");
  514. model.makeNode("/root/hidden/temp/printlist["+cnt+"]/appno");
  515. model.makeNode("/root/hidden/temp/printlist["+cnt+"]/usernm");
  516. model.makeNode("/root/hidden/temp/printlist["+cnt+"]/lnno");
  517. model.makeNode("/root/hidden/temp/printlist["+cnt+"]/reptitemcd");
  518. model.makeNode("/root/hidden/temp/printlist["+cnt+"]/itemnm");
  519. model.makeNode("/root/hidden/temp/printlist["+cnt+"]/purcqty");
  520. model.makeNode("/root/hidden/temp/printlist["+cnt+"]/prcpprodflag");
  521. model.makeNode("/root/hidden/temp/printlist["+cnt+"]/guidefactsflag");
  522. model.makeNode("/root/hidden/temp/printlist["+cnt+"]/guidefactsspec");
  523. model.makeNode("/root/hidden/temp/printlist["+cnt+"]/datareqflag");
  524. model.makeNode("/root/hidden/temp/printlist["+cnt+"]/datareqspec");
  525. model.setValue("/root/hidden/temp/printlist["+cnt+"]/notino", model.getValue("/root/hidden/numbers/notino"));
  526. model.setValue("/root/hidden/temp/printlist["+cnt+"]/appno", model.getValue("/root/hidden/numbers/appno"));
  527. model.setValue("/root/hidden/temp/printlist["+cnt+"]/usernm", usernm);
  528. model.setValue("/root/hidden/temp/printlist["+cnt+"]/lnno", model.getValue("/root/main/list02/gridpiehf112["+i+"]/lnno"));
  529. model.setValue("/root/hidden/temp/printlist["+cnt+"]/reptitemcd", model.getValue("/root/main/list02/gridpiehf112["+i+"]/reptitemcd"));
  530. model.setValue("/root/hidden/temp/printlist["+cnt+"]/itemnm", model.getValue("/root/main/list02/gridpiehf112["+i+"]/itemnm"));
  531. model.setValue("/root/hidden/temp/printlist["+cnt+"]/purcqty", model.getValue("/root/main/list02/gridpiehf112["+i+"]/purcqty"));
  532. model.setValue("/root/hidden/temp/printlist["+cnt+"]/prcpprodflag", model.getValue("/root/main/list02/gridpiehf112["+i+"]/prcpprodflag"));
  533. model.setValue("/root/hidden/temp/printlist["+cnt+"]/guidefactsflag", model.getValue("/root/main/list02/gridpiehf112["+i+"]/guidefactsflag"));
  534. model.setValue("/root/hidden/temp/printlist["+cnt+"]/guidefactsspec", model.getValue("/root/main/list02/gridpiehf112["+i+"]/guidefactsspec"));
  535. model.setValue("/root/hidden/temp/printlist["+cnt+"]/datareqflag", model.getValue("/root/main/list02/gridpiehf112["+i+"]/datareqflag"));
  536. model.setValue("/root/hidden/temp/printlist["+cnt+"]/datareqspec", model.getValue("/root/main/list02/gridpiehf112["+i+"]/datareqspec"));
  537. }
  538. }
  539. exeReportPreview("RPPIE03500", "XMLSTR", "","", "false","","","","","false");
  540. model.refresh();
  541. ]]>
  542. </script>
  543. </button>
  544. </group>
  545. <group id="group1" style="left:0px; top:0px; width:1194px; height:13px; ">
  546. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:800px; height:14px; ">보완자료요청내역서</caption>
  547. </group>
  548. <group id="grp_btn" scroll="auto" style="left:0px; top:757px; width:1194px; height:27px; ">
  549. <button id="btn_init" class="btn4_letter3" style="left:1119px; top:4px; width:68px; height:22px; ">
  550. <caption>초기화</caption>
  551. <script type="javascript" ev:event="DOMActivate">
  552. <![CDATA[
  553. fInitialize();
  554. ]]>
  555. </script>
  556. </button>
  557. </group>
  558. </xhtml:body>
  559. </xhtml:html>