SMASB01200_격리주의표시환자조회.xrw 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478
  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. <main>
  10. <cond>
  11. <fromdd/>
  12. <todd/>
  13. <patnm/>
  14. <orddeptcd/>
  15. <wardcd/>
  16. <patpid/>
  17. <isoldispkind/>
  18. <isoresncd/>
  19. <isolremvyn>Y</isolremvyn>
  20. <isolflag>00</isolflag>
  21. </cond>
  22. <isoldispdisplists>
  23. </isoldispdisplists>
  24. <patinfo>
  25. <patinfolist/>
  26. </patinfo>
  27. <paminfo/>
  28. </main>
  29. <send>
  30. <reqdata/>
  31. <savedata/>
  32. </send>
  33. <hidden>
  34. <orddeptlist>
  35. </orddeptlist>
  36. <warddeptlist>
  37. </warddeptlist>
  38. <temp/>
  39. <condition>
  40. <pid/>
  41. <indd/>
  42. <cretno/>
  43. <orddeptcd/>
  44. </condition>
  45. </hidden>
  46. <init>
  47. <A0140list>
  48. <A0140>
  49. <cdid/>
  50. <cdnm/>
  51. </A0140>
  52. </A0140list>
  53. <A0220list>
  54. <A0220>
  55. <cdid/>
  56. <cdnm/>
  57. </A0220>
  58. </A0220list>
  59. <hardcd/>
  60. </init>
  61. </root>
  62. </instance>
  63. <script type="javascript" ev:event="xforms-ready">
  64. <![CDATA[
  65. fInitialize();
  66. // //@@@@상단정보있는경우
  67. // var pamInfoCvs = getGlobalVariable("paminfo");
  68. // if(pamInfoCvs != ""){
  69. // model.removeNodeSet("/root/main/paminfo/list");
  70. // setCSVToNode("/root/main/paminfo", pamInfoCvs);
  71. //
  72. // model.setValue("/root/main/cond/patpid", model.getValue("/root/main/paminfo/list/pid"));
  73. // model.setValue("/root/main/cond/patnm", model.getValue("/root/main/paminfo/list/hngnm"));
  74. //
  75. // model.makeNode("/root/send/reqdata");
  76. // model.copyNode("/root/send/reqdata", "/root/main/cond");
  77. // submit("TRASB01201");
  78. //
  79. // model.refresh();
  80. // }
  81. ]]>
  82. </script>
  83. <submission id="TRASB01201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/isoldispdisplists"/>
  84. <submission id="TXASB01201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/savedata" resultref="/root/hidden/temp"/>
  85. <submission id="TRZSD00109" mediatype="application/x-www-form-urlencoded" method="post" replace="instance"/>
  86. <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post" replace="instance"/>
  87. <submission id="TRASB01601" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/init/hardcd/hardcd"/>
  88. </model>
  89. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  90. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  91. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  92. <script type="javascript" src="../../../com/departmentcodeweb/js/ZSD001.js"/>
  93. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  94. <script type="javascript" src="../../../ast/infcmngtweb/js/SMASB00100.js"/>
  95. <script type="javascript">
  96. <![CDATA[
  97. function fInitialize() {
  98. model.removeNodeset("/root/main/isoldispdisplists");
  99. zbcfGetCodeList(new Array("A0140", "A0220"), new Array("/root/init/A0140list", "/root/init/A0220list"));
  100. addComboItem("cmb_isolkind","","","above");
  101. addComboItem("cmb_isodiagnm","","","above");
  102. cmb_isolkind.choices.itemset.attribute("nodeset") = "/root/init/A0140list/A0140[cdnm != '' ]";
  103. cmb_isodiagnm.choices.itemset.attribute("nodeset") = "/root/init/A0220list/A0220[cdnm != '' ]";
  104. model.setValue("/root/main/cond/isolremvyn","N");
  105. // 공통코드 조회
  106. var instcd = getUserInfo("dutplceinstcd");
  107. var standard_yn = "orduseyn";
  108. var ord_deptflag = 'D';
  109. var rslt_ref = "/root/hidden/orddeptlist";
  110. var sort_field = "depthngnm";
  111. var sort_method = "asc";
  112. zbcfGetDeptCodeList(instcd, standard_yn, ord_deptflag, rslt_ref, sort_field, sort_method);
  113. addComboItem("cmb_orddept","","","above");
  114. standard_yn = "orduseyn";
  115. ord_deptflag = "W";
  116. rslt_ref = "/root/hidden/warddeptlist";
  117. sort_field = "deptcd";
  118. sort_method = "asc";
  119. zbcfGetDeptCodeList(instcd, standard_yn, ord_deptflag, rslt_ref, sort_field, sort_method);
  120. addComboItem("cmb_ward","","","above");
  121. model.makeNode("/root/init/curdate");
  122. model.makeValue("/root/init/curdate/fromdt", getCurrentDate());
  123. var idate=new Date();
  124. var frDate=idate.getAddDate(-1, "M");
  125. model.setValue("/root/main/cond/fromdd", frDate.getDateFormat());
  126. model.setValue("/root/main/cond/todd", model.getValue("/root/init/curdate/fromdt"));
  127. model.refresh();
  128. }
  129. //상단정보설정
  130. function fUpInfo(){
  131. var sessionPID = getPatientId();
  132. if(sessionPID != model.getValue("/root/main/isoldispdisplists/isoldispdisplist["+grd_isoldesplist.row+"]/pid")){
  133. fReqOpPatPamInfo();
  134. }
  135. }
  136. function fReqOpPatPamInfo(){
  137. var ioflag="I";
  138. var pid= model.getValue("/root/main/isoldispdisplists/isoldispdisplist["+grd_isoldesplist.row+"]/pid");
  139. var indd=model.getValue("/root/main/isoldispdisplists/isoldispdisplist["+grd_isoldesplist.row+"]/indd");
  140. var cretno=model.getValue("/root/main/isoldispdisplists/isoldispdisplist["+grd_isoldesplist.row+"]/cretno") ;
  141. var seqno=model.getValue("/root/main/isoldispdisplists/isoldispdisplist["+grd_isoldesplist.row+"]/iseqno");
  142. var instcd=getUserInfo("dutplceinstcd");
  143. var srchdd=getCurrentDate();
  144. var param= ioflag + "▦" //입원환자
  145. + pid + "▦"
  146. + indd + "▦"
  147. + cretno + "▦"
  148. + instcd+ "▦"
  149. + srchdd;
  150. setParameter("condparam", param);
  151. modal("SPMMO08900", 1, "", "", "", "", "", "left:0; right:0; width:0; height:0; sysmenu:hidden; caption:hidden; min:hidden, max:hidden;");
  152. }
  153. ]]>
  154. </script>
  155. </xhtml:head>
  156. <xhtml:body style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  157. <group id="group3" scroll="auto" style="left:0px; top:0px; width:1195px; height:784px; ">
  158. <group id="group2" style="left:0px; top:0px; width:1195px; height:784px; vertical-align:top; ">
  159. <group id="group6" scroll="auto" style="left:0px; top:0px; width:1195px; height:784px; ">
  160. <group id="group7" style="left:0px; top:0px; width:1195px; height:784px; vertical-align:top; ">
  161. <line id="line4" class="line_3" style="x1:0px; y1:756px; x2:1194px; y2:756px; "/>
  162. <group id="grp_tle" style="left:0px; top:0px; width:1195px; height:13px; ">
  163. <caption id="caption7" class="tit_1" style="left:0px; top:0px; width:165px; height:15px; ">감염주의 표시환자조회</caption>
  164. </group>
  165. <group id="grp_sea" style="left:0px; top:14px; width:1194px; height:67px; vertical-align:top; ">
  166. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:1px; width:1194px; height:63px; background-color:#fffbf2; border-color:#ffd799; "/>
  167. <button id="btn_srch" class="btn1_letter2" navindex="4" style="left:1130px; top:23px; width:56px; height:22px; ">
  168. <caption>조회</caption>
  169. <script type="javascript" ev:event="DOMActivate">
  170. <![CDATA[
  171. if( (model.getValue("/root/main/cond/fromdd") == "" ) || (model.getValue("/root/main/cond/todd") == "") ) {
  172. messageBox("기간을", "C002");
  173. return;
  174. }
  175. if(model.getValue("/root/main/isoldispdisplists/isoldispdisplist/pid") != "" || model.getValue("/root/main/isoldispdisplists/isoldispdisplist/pid") != null) {
  176. var selstatus;
  177. for(var i=1; i < grd_isoldesplist.rows; i++){
  178. selstatus=model.getValue("/root/main/isoldispdisplists/isoldispdisplist[" + i + "]/isolcnfmyn");
  179. if(selstatus =="Y") {
  180. model.removeNodeset("/root/send");
  181. model.makeValue("/root/send/savedata/data",grd_isoldesplist.getUpdateDataAll("i"));
  182. //submit("TXASB01201");
  183. //Update 후 재조회
  184. model.makeNode("/root/send/reqdata");
  185. model.copyNode("/root/send/reqdata", "/root/main/cond");
  186. submit("TRASB01201");
  187. break;
  188. }
  189. }
  190. }
  191. model.copyNode("/root/send/reqdata", "/root/main/cond");
  192. submit("TRASB01201");
  193. ]]>
  194. </script>
  195. </button>
  196. <button id="btn_patInfo" class="icon_search" style="left:725px; top:10px; width:16px; height:16px; ">
  197. <caption/>
  198. <script type="javascript" ev:event="DOMActivate">
  199. <![CDATA[
  200. if( (model.getValue("/root/main/cond/patpid") != "") || (model.getValue("/root/main/cond/patpid") != "")) {
  201. model.makeValue("/root/send/reqdata/pid", model.getValue("/root/main/cond/patpid"));
  202. model.makeValue("/root/send/reqdata/srchcond", "1");
  203. }
  204. if( (model.getValue("/root/main/cond/patnm") != "") || (model.getValue("/root/main/cond/patnm") != "")) {
  205. model.makeValue("/root/send/reqdata/hngnm", model.getValue("/root/main/cond/patnm"));
  206. model.makeValue("/root/send/reqdata/srchcond", "2");
  207. }
  208. model.makeNode("/root/main/patinfo/patinfolist");
  209. modal("SPPMC02500",0,0,0,"SPPMC02500", "/root/send/reqdata", "/root/send");
  210. if(model.getValue("/root/main/patinfo/patinfolist/pid") != ""){
  211. model.setValue("/root/main/cond/patpid", model.getValue("/root/main/patinfo/patinfolist/pid"));
  212. model.setValue("/root/main/cond/patnm", model.getValue("/root/main/patinfo/patinfolist/hngnm"));
  213. model.refresh();
  214. }
  215. ]]>
  216. </script>
  217. </button>
  218. <input id="ipt_pid" ref="/root/main/cond/patpid" class="input_search" navindex="3" style="left:630px; top:10px; width:85px; height:19px; ">
  219. <script type="javascript" ev:event="onkeyup">
  220. <![CDATA[
  221. //inputEnterKey("btn_srch", "DOMActivate");
  222. ]]>
  223. </script>
  224. <script type="javascript" ev:event="onkeypress">
  225. <![CDATA[
  226. if(event.keyCode=="13"){
  227. model.makeValue("/root/temp/patinfo/srchcond", "1");
  228. model.makeValue("/root/temp/patinfo/pid", ipt_pid.currentText);
  229. modal("SPPMC02500", "1","150", "150", "SPPMC02500", "/root/temp/patinfo", "/root/send");
  230. var sPid = model.getValue("/root/main/patinfo/patinfolist/pid");
  231. var sHngnm = model.getValue("/root/main/patinfo/patinfolist/hngnm");
  232. model.setValue("/root/main/cond/patpid", sPid);
  233. model.setValue("/root/main/cond/patnm", sHngnm);
  234. model.refresh();
  235. }
  236. ]]>
  237. </script>
  238. </input>
  239. <select1 id="cmb_isolkind" ref="/root/main/cond/isoldispkind" appearance="minimal" style="left:425px; top:10px; width:100px; height:19px; ">
  240. <choices>
  241. <itemset nodeset="/root/init/A0140list/A0140">
  242. <label ref="cdnm"/>
  243. <value ref="cdid"/>
  244. </itemset>
  245. </choices>
  246. </select1>
  247. <caption id="caption1" class="search_name" style="left:540px; top:40px; width:85px; height:17px; ">성 명 :</caption>
  248. <line id="line13" class="line_4" style="x1:1125px; y1:8px; x2:1125px; y2:60px; "/>
  249. <select1 id="rdo_isolyn" ref="/root/main/cond/isolremvyn" appearance="full" cols="2" overflow="visible" style="left:425px; top:40px; width:100px; height:20px; border-style:none; ">
  250. <choices>
  251. <item>
  252. <label>예</label>
  253. <value>Y</value>
  254. </item>
  255. <item>
  256. <label>아니오</label>
  257. <value>N</value>
  258. </item>
  259. </choices>
  260. </select1>
  261. <caption id="caption2" class="search_name" style="left:760px; top:40px; width:75px; height:17px; ">병 동 :</caption>
  262. <caption id="caption3" class="search_name" style="left:760px; top:10px; width:96px; height:17px; ">진료과 :</caption>
  263. <select1 id="cmb_ward" ref="/root/main/cond/wardcd" appearance="minimal" style="left:840px; top:38px; width:80px; height:19px; ">
  264. <choices>
  265. <itemset nodeset="/root/hidden/warddeptlist/dept">
  266. <label ref="depthngnm"/>
  267. <value ref="deptcd"/>
  268. </itemset>
  269. </choices>
  270. </select1>
  271. <input id="ipt_patnm" ref="/root/main/cond/patnm" class="input_search" navindex="3" style="left:630px; top:40px; width:85px; height:19px; ">
  272. <script type="javascript" ev:event="onkeyup">
  273. <![CDATA[
  274. //inputEnterKey("btn_srch", "DOMActivate");
  275. ]]>
  276. </script>
  277. </input>
  278. <caption id="caption4" class="search_name" style="left:541px; top:11px; width:86px; height:17px; ">등록번호 :</caption>
  279. <input id="ipt_todd" ref="/root/main/cond/todd" class="input_default" inputtype="date" style="left:216px; top:9px; width:84px; height:19px; "/>
  280. <caption id="caption6" class="search_name" style="left:310px; top:11px; width:112px; height:17px; ">주의종류 :</caption>
  281. <caption id="caption8" class="search_name" style="left:15px; top:9px; width:116px; height:17px; ">기간선택 :</caption>
  282. <caption id="caption9" class="search_name" style="left:310px; top:40px; width:112px; height:17px; ">주의해제여부 :</caption>
  283. <select1 id="cmb_orddept" ref="/root/main/cond/orddeptcd" appearance="minimal" style="left:840px; top:8px; width:80px; height:19px; ">
  284. <choices>
  285. <itemset nodeset="/root/hidden/orddeptlist/dept">
  286. <label ref="depthngnm"/>
  287. <value ref="deptcd"/>
  288. </itemset>
  289. </choices>
  290. </select1>
  291. <caption id="caption19" class="search_no_b" style="left:197px; top:8px; width:12px; height:17px; ">~</caption>
  292. <input id="ipt_fromdd" ref="/root/main/cond/fromdd" class="input_default" inputtype="date" style="left:105px; top:9px; width:85px; height:19px; "/>
  293. <caption id="caption10" class="search_name" style="left:15px; top:40px; width:97px; height:17px; ">감염질환 :</caption>
  294. <caption id="caption15" class="search_name" style="left:935px; top:10px; width:75px; height:17px; ">구 분 :</caption>
  295. <select1 id="radio1" ref="/root/main/cond/isolflag" appearance="full" cols="4" overflow="visible" style="left:935px; top:40px; width:180px; height:20px; border-style:none; ">
  296. <choices>
  297. <item>
  298. <label>전체</label>
  299. <value>00</value>
  300. </item>
  301. <item>
  302. <label>재원</label>
  303. <value>01</value>
  304. </item>
  305. <item>
  306. <label>퇴원</label>
  307. <value>02</value>
  308. </item>
  309. <item>
  310. <label>외래</label>
  311. <value>03</value>
  312. </item>
  313. </choices>
  314. </select1>
  315. <select1 id="cmb_isodiagnm" ref="/root/main/cond/isoresncd" appearance="minimal" style="left:105px; top:40px; width:195px; height:19px; ">
  316. <choices>
  317. <itemset nodeset="/root/init/A0220list/A0220">
  318. <label ref="cdnm"/>
  319. <value ref="cdid"/>
  320. </itemset>
  321. </choices>
  322. </select1>
  323. </group>
  324. <caption id="caption12" class="tit_2" style="left:5px; top:88px; width:195px; height:15px; ">감염주의 표시환자 리스트</caption>
  325. <button id="btn_excel" class="btn2_letter2" style="left:1151px; top:82px; width:42px; height:19px; ">
  326. <caption>엑셀</caption>
  327. <script type="javascript" ev:event="DOMActivate">
  328. <![CDATA[
  329. // var fileName = window.fileDialog("save", ",", false, "격리주의표시환자", "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
  330. // if (fileName != ""){
  331. // grd_isoldesplist.saveExcel(fileName, "SheetName", false, false, "", "", false);
  332. // }
  333. var fileName = window.fileDialog("save", ",", false, "격리주의표시환자", "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
  334. if (fileName != ""){
  335. grd_isoldesplist.saveExcel(fileName, "격리주의표시환자", true, true, "", "", false);
  336. var s = fileName.lastIndexOf("\\");
  337. var fileName=fileName.substring(s+1);
  338. var rmsg = messageBox("저장된 Excel을", "Q004");
  339. if( rmsg == 6 ){
  340. window.exec("excel.exe", fileName);
  341. }
  342. }
  343. ]]>
  344. </script>
  345. </button>
  346. <datagrid id="grd_isoldesplist" nodeset="/root/main/isoldispdisplists/isoldispdisplist" caption="등록번호^성명^진료과^현병동^현병실^성별^나이^주의종류^감염질환^시작일자^해제일자^해제여부^병동^병실^입원일^등록자^수정자" colsep="^" colwidth="60, 49, 82, 100, 55, 33, 31, 65, 162, 69, 67, 57, 100, 55, 72, 50, 50" dataheight="23" defaultrows="0" ellipsis="true" explorerbar="sortshow" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="23" rowsep="|" tooltip="true" style="left:0px; top:108px; width:1194px; height:648px; ">
  347. <col ref="pid" style="text-align:center; "/>
  348. <col ref="patnm" style="text-align:center; "/>
  349. <col ref="orddept" style="text-align:center; "/>
  350. <col ref="wardcd" style="text-align:center; "/>
  351. <col ref="roomcd" style="text-align:center; "/>
  352. <col ref="sex" style="text-align:center; "/>
  353. <col ref="age" style="text-align:center; "/>
  354. <col ref="isolkind" style="text-align:center; "/>
  355. <col ref="isodiagnm" style="text-align:center; "/>
  356. <col ref="dispfromdt" format="yyyy-mm-dd" style="text-align:center; "/>
  357. <col ref="isolcncldt" format="yyyy-mm-dd" style="text-align:center; "/>
  358. <col ref="cnclyn" style="text-align:center; "/>
  359. <col ref="prcpwardcd" style="text-align:center; "/>
  360. <col ref="prcproomcd" style="text-align:center; "/>
  361. <col ref="indd" format="yyyy-mm-dd" style="text-align:center; "/>
  362. <col ref="fstrgstrid" style="text-align:center; "/>
  363. <col ref="lastupdtrid" style="text-align:center; "/>
  364. <script type="javascript" ev:event="onaftersort">
  365. <![CDATA[
  366. grd_isoldesplist.gridToInstance();
  367. ]]>
  368. </script>
  369. <!-- 2013/03/25
  370. <script type="javascript" ev:event="ondblclick">
  371. <![CDATA[
  372. var Currecdd = getCurrentDate();
  373. var currow = grd_isoldesplist.row;
  374. if(currow < 1){
  375. return;
  376. }
  377. //@@@@ 상단정보 세팅 (감염관리실에서만 사용)
  378. asbfGetHardCodeInfoNm("/root/send/reqdata", "/root/init/hardcd", "C1");
  379. var usercdok = model.getValue("/root/init/hardcd/hardcd/hardcdnm");
  380. var userdeptcd = getUserInfo( "dutplcecd" );
  381. if(usercdok == userdeptcd){ //감염관리실 사용자의 경우에만,
  382. var ordtype=model.getValue("/root/main/isoldispdisplists/isoldispdisplist["+currow+"]/ioflag");
  383. var pid=model.getValue("/root/main/isoldispdisplists/isoldispdisplist["+currow+"]/pid");
  384. var indd=model.getValue("/root/main/isoldispdisplists/isoldispdisplist["+currow+"]/indd");
  385. var cretno=model.getValue("/root/main/isoldispdisplists/isoldispdisplist["+currow+"]/cretno");
  386. var recdd=model.getValue("/root/main/isoldispdisplists/isoldispdisplist["+currow+"]/outdd");
  387. if (recdd=="" || isNull(recdd)){
  388. recdd=Currecdd;
  389. }
  390. if(indd=="-"){
  391. indd = model.getValue("/root/main/isoldispdisplists/isoldispdisplist["+currow+"]/ioindd");
  392. }
  393. var instcd=getUserInfo("dutplceinstcd");
  394. //var recdd=Currecdd;
  395. var param=ordtype+"▦"+pid+"▦"+indd+"▦"+cretno+"▦"+instcd+"▦"+recdd;
  396. setParameter("condparam", param);
  397. modal("SPMMO08900", 1, 0, 0, "", "", "", "left:0; right:0; width:0; height:0; sysmenu:hidden; caption:hidden; min:hidden, max:hidden;");
  398. }
  399. ]]>
  400. </script>
  401. -->
  402. </datagrid>
  403. <line id="line7" class="line_1" style="x1:0px; y1:103px; x2:1194px; y2:103px; "/>
  404. </group>
  405. </group>
  406. </group>
  407. </group>
  408. <group id="grp_btn" style="left:0px; top:757px; width:1195px; height:27px; ">
  409. <button id="button1" class="btn4_letter3" visibility="hidden" style="left:1127px; top:3px; width:68px; height:22px; ">
  410. <caption>초기화</caption>
  411. <script type="javascript" ev:event="DOMActivate">
  412. <![CDATA[
  413. model.removeNodeset("/root/main/isoldispdisplists");
  414. model.refresh();
  415. ]]>
  416. </script>
  417. </button>
  418. <button id="button5" class="btn4_letter2" visibility="hidden" style="left:1070px; top:3px; width:56px; height:22px; ">
  419. <caption>저장</caption>
  420. <script type="javascript" ev:event="DOMActivate">
  421. <![CDATA[
  422. if(model.getValue("/root/main/isoldispdisplists/isoldispdisplist/pid") == "" || model.getValue("/root/main/isoldispdisplists/isoldispdisplist/pid") == null) {
  423. messageBox("저장할 데이터가", "I004");
  424. return;
  425. }
  426. else{
  427. var selstatus;
  428. for(var i=1; i < grd_isoldesplist.rows; i++){
  429. selstatus=model.getValue("/root/main/isoldispdisplists/isoldispdisplist[" + i + "]/isolcnfmyn");
  430. if(selstatus =="Y") {
  431. model.removeNodeset("/root/send");
  432. model.makeValue("/root/send/savedata/data",grd_isoldesplist.getUpdateDataAll("i"));
  433. submit("TXASB01201");
  434. //Update 후 재조회
  435. model.makeNode("/root/send/reqdata");
  436. model.copyNode("/root/send/reqdata", "/root/main/cond");
  437. submit("TRASB01201");
  438. break;
  439. }
  440. }
  441. if(selstatus== "N" || selstatus == "" || selstatus== null) messageBox("저장할 데이터를", "C002");
  442. }
  443. ]]>
  444. </script>
  445. </button>
  446. </group>
  447. </xhtml:body>
  448. </xhtml:html>