SMIMR00500_기관정보.xrw 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435
  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. <script type="javascript" src="C:\CMCProject\application\webapps\crc\clinicresearchweb\js\crccnvsub1.js"/>
  7. <model id="model1">
  8. <instance id="instance1">
  9. <root xmlns="">
  10. <main>
  11. <grid>
  12. <item>
  13. <instcd/>
  14. <hospcd/>
  15. <hospnm/>
  16. <hospnmeng/>
  17. <bizmngrgstno/>
  18. <prsdnm/>
  19. <centnm/>
  20. <zipcd1/>
  21. <zipcd2/>
  22. <addr/>
  23. <addreng/>
  24. <depor/>
  25. <acntno/>
  26. <bankcd/>
  27. <email/>
  28. <depor2/>
  29. <acntno2/>
  30. <bankcd2/>
  31. <email2/>
  32. <irbchrmannm/>
  33. <irbchrmannmeng/>
  34. <irbchrmanempno/>
  35. <irbadminworknm/>
  36. <irbadminworknmeng/>
  37. <irbadminworkempno/>
  38. <irbmngernm/>
  39. <irbmngertelno/>
  40. <irbmngeremail/>
  41. <irbmngerfaxno/>
  42. <iudgb/>
  43. <img1/>
  44. <img2/>
  45. </item>
  46. </grid>
  47. <griddtl>
  48. <item>
  49. <instcd/>
  50. <hospcd/>
  51. <hospnm/>
  52. <hospnmeng/>
  53. <bizmngrgstno/>
  54. <prsdnm/>
  55. <centnm/>
  56. <zipcd1/>
  57. <zipcd2/>
  58. <addr/>
  59. <addreng/>
  60. <depor/>
  61. <acntno/>
  62. <bankcd/>
  63. <email/>
  64. <depor2/>
  65. <acntno2/>
  66. <bankcd2/>
  67. <email2/>
  68. <irbchrmannm/>
  69. <irbchrmannmeng/>
  70. <irbchrmanempno/>
  71. <irbadminworknm/>
  72. <irbadminworknmeng/>
  73. <irbadminworkempno/>
  74. <irbmngernm/>
  75. <irbmngertelno/>
  76. <irbmngeremail/>
  77. <irbmngerfaxno/>
  78. <iudgb/>
  79. <img1/>
  80. <img2/>
  81. </item>
  82. </griddtl>
  83. </main>
  84. <send>
  85. <searchwh>
  86. <instcd/>
  87. <hospcd/>
  88. </searchwh>
  89. </send>
  90. <init>
  91. <cmb_info>
  92. <initbank>
  93. <cdid/>
  94. <cdnm/>
  95. </initbank>
  96. </cmb_info>
  97. </init>
  98. </root>
  99. </instance>
  100. <script type="javascript" ev:event="xforms-ready">
  101. <![CDATA[
  102. zbcfGetCodeList( new Array("R0001"), new Array("/root/init/cmb_info/initbank") );
  103. submit("TRZBC00101", false);
  104. model.setValue("/root/main/griddtl/item/iudgb", "I");
  105. model.removenode("/root/main/grid/item");
  106. submit("TRIMR00502");
  107. model.refresh();
  108. ]]>
  109. </script>
  110. <submission id="TRIMR00502" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/searchwh" replace="instance" resultref="/root/main/grid"/>
  111. <submission id="TXIMR00501" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/griddtl/item" replace="instance" resultref="/root/hidden/source"/>
  112. <submission id="TRZBC00101"/>
  113. </model>
  114. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  115. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  116. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  117. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  118. <script type="javascript">
  119. <![CDATA[
  120. function readfunc(){
  121. model.setValue("/root/main/griddtl/item/iudgb", "I");
  122. model.removenode("/root/main/grid/item");
  123. submit("TRIMR00502");
  124. fnewData();
  125. }
  126. function fsaveData(){
  127. if (submit("TXIMR00501")){
  128. readfunc();
  129. }
  130. }
  131. function fnewData(){
  132. model.resetInstanceNode("/root/main/griddtl/item");
  133. //model.setValue("/root/main/griddtl/item/instcd", "");
  134. model.setValue("/root/main/griddtl/item/iudgb", "I");
  135. input8.disabled = false;
  136. btn_save.disabled = false;
  137. btn_del.disabled = true;
  138. model.refresh();
  139. }
  140. function trim(data){
  141. return data.replace(/(^\s*)|(\s*$)/g, "");
  142. }
  143. function fExeAddPicture(pRow){
  144. var sFileName = openImageFileDialog(1042576);
  145. if (sFileName == "") return false;
  146. fExeChngImg(sFileName);
  147. }
  148. function fExeChngImg(imgsrc){
  149. img_hidden1.src = imgsrc; // 파일에서 읽은 이미지의 base64 encoding 값을 가져오기 위한 이미지 컨트롤
  150. var data = img_hidden1.getbase64data(); // base64 encoding 문자열을 가져온다.
  151. var imgSize = getImageSize(imgsrc);
  152. var imgWidthSize = imgSize.split("^")[0];
  153. var imgHeightSize = imgSize.split("^")[1];
  154. model.makeValue("/root/main/griddtl/item/img1", data, true); // 이미지를 보여주기 위하여 view용 이미지컨트롤의 ref instance에 값을 저장
  155. setImageRefInstance("/root/main/griddtl/item/img1");
  156. model.refresh();
  157. }
  158. function fExeDeleteImage(){
  159. var idx = grd_list.row;
  160. DbClick_value = idx;
  161. model.resetInstanceNode("/root/main/griddtl/item["+idx+"]/img1");
  162. model.resetInstanceNode("/root/main/griddtl/item/img1");
  163. img_src.refresh();
  164. model.refresh();
  165. }
  166. ]]>
  167. </script>
  168. </xhtml:head>
  169. <xhtml:body guideline="2,773;1,1190;">
  170. <group id="grp_tle" style="left:0px; top:0px; width:1190px; height:14px; ">
  171. <caption id="caption120" class="tit_1" style="left:0px; top:0px; width:158px; height:14px; ">기관정보</caption>
  172. </group>
  173. <line id="line1" class="line_1" style="x1:0px; y1:20px; x2:1190px; y2:20px; "/>
  174. <line id="line6" class="line_3" style="x1:0px; y1:770px; x2:1190px; y2:770px; "/>
  175. <datagrid id="datagrid3" nodeset="/root/main/grid/item" caption="병원코드^병원약어^병원명(국문)^병원명(영문)^병원사업자등록번호^병원장명^센터장명" colsep="^" colwidth="79, 100, 360, 264, 129, 116, 114" mergecellsfixedrows="bycolrec" rowsep="|" tooltip="true" style="left:0px; top:25px; width:1190px; height:315px; ">
  176. <col ref="instcd"/>
  177. <col ref="hospcd"/>
  178. <col ref="hospnm"/>
  179. <col ref="hospnmeng"/>
  180. <col ref="bizmngrgstno"/>
  181. <col ref="prsdnm"/>
  182. <col ref="centnm"/>
  183. <script type="javascript" ev:event="ondblclick">
  184. <![CDATA[
  185. //스크롤 조작시 온클릭 이벤트 안타도록
  186. if( isDataCell() ){
  187. model.copyNode("/root/main/griddtl/item", "/root/main/grid/item[" + datagrid3.row + "]");
  188. //model.setValue("/root/main/griddtl/item/instcd", model.getValue("/root/main/grid/item[" + datagrid3.row + "]/instcd"));
  189. //model.setValue("/root/main/griddtl/item/hospcd", model.getValue("/root/main/grid/item[" + datagrid3.row + "]/hospcd"));
  190. model.setValue("/root/main/griddtl/item/iudgb", "U");
  191. setImageRefInstance("/root/main/griddtl/item["+ datagrid3.row +"]/img1");
  192. setImageRefInstance("/root/main/griddtl/item/img1");
  193. setImageRefInstance("/root/main/griddtl/item["+ datagrid3.row +"]/img2");
  194. setImageRefInstance("/root/main/griddtl/item/img2");
  195. input8.disabled = true;
  196. btn_save.disabled = false;
  197. btn_del.disabled = false;
  198. }
  199. model.refresh();
  200. ]]>
  201. </script>
  202. </datagrid>
  203. <line id="line2" class="line_1" style="x1:0px; y1:375px; x2:1189px; y2:375px; "/>
  204. <switch id="switch1" style="left:1px; top:380px; width:1179px; height:390px; border-color:#c7a3cf; border-style:solid; ">
  205. <case id="case1" selected="true" style="left:0px; top:0px; width:1177px; height:385px; ">
  206. <input id="input8" ref="/root/main/griddtl/item/instcd" class="input_search" navindex="1" maxlength="3" format="999" style="left:5px; top:28px; width:54px; height:19px; text-align:center; "/>
  207. <caption id="caption85" class="cell_1" style="left:4px; top:3px; width:114px; height:23px; vertical-align:middle; ">병원코드/병원약어</caption>
  208. <input id="input1" ref="/root/main/griddtl/item/hospnm" class="input_search" navindex="3" imemode="hangul" style="left:123px; top:28px; width:135px; height:19px; "/>
  209. <caption id="caption1" class="cell_1" style="left:124px; top:3px; width:134px; height:23px; vertical-align:middle; ">병원명(국문)</caption>
  210. <caption id="caption2" class="cell_1" style="left:264px; top:3px; width:174px; height:23px; vertical-align:middle; ">병원명(영문)</caption>
  211. <input id="input2" ref="/root/main/griddtl/item/hospnmeng" class="input_search" navindex="4" imemode="alpha" style="left:263px; top:28px; width:175px; height:19px; "/>
  212. <caption id="caption3" class="cell_1" style="left:445px; top:3px; width:154px; height:23px; vertical-align:middle; ">병원사업자등록번호</caption>
  213. <input id="input3" ref="/root/main/griddtl/item/bizmngrgstno" class="input_search" navindex="5" format="999-99-99999" style="left:444px; top:28px; width:155px; height:19px; text-align:center; "/>
  214. <caption id="caption4" class="cell_1" style="left:605px; top:3px; width:95px; height:23px; vertical-align:middle; ">병원장명</caption>
  215. <input id="input4" ref="/root/main/griddtl/item/prsdnm" class="input_search" navindex="6" style="left:604px; top:28px; width:96px; height:19px; "/>
  216. <caption id="caption5" class="cell_1" style="left:706px; top:3px; width:95px; height:23px; vertical-align:middle; ">센터장명</caption>
  217. <input id="input5" ref="/root/main/griddtl/item/centnm" class="input_search" navindex="7" style="left:705px; top:28px; width:96px; height:19px; "/>
  218. <input id="input7" ref="/root/main/griddtl/item/depor" class="input_search" navindex="8" style="left:3px; top:82px; width:114px; height:19px; "/>
  219. <caption id="caption7" class="cell_1" style="left:4px; top:57px; width:114px; height:23px; vertical-align:middle; ">병원재무예금주</caption>
  220. <caption id="caption8" class="cell_1" style="left:124px; top:57px; width:314px; height:23px; vertical-align:middle; ">은행정보 (은행, 계좌번호)</caption>
  221. <caption id="caption9" class="cell_1" style="left:445px; top:57px; width:154px; height:23px; vertical-align:middle; ">담당자이메일</caption>
  222. <input id="input10" ref="/root/main/griddtl/item/email" class="input_search" navindex="11" imemode="alpha" style="left:444px; top:82px; width:155px; height:19px; "/>
  223. <input id="input11" ref="/root/main/griddtl/item/acntno" class="input_search" navindex="10" style="left:263px; top:82px; width:175px; height:19px; "/>
  224. <input id="input12" ref="/root/main/griddtl/item/depor2" class="input_search" navindex="12" style="left:3px; top:136px; width:114px; height:19px; "/>
  225. <input id="input14" ref="/root/main/griddtl/item/email2" class="input_search" navindex="15" imemode="alpha" style="left:444px; top:136px; width:155px; height:19px; "/>
  226. <input id="input15" ref="/root/main/griddtl/item/acntno2" class="input_search" navindex="14" style="left:263px; top:136px; width:175px; height:19px; "/>
  227. <caption id="caption10" class="cell_1" style="left:4px; top:111px; width:114px; height:23px; vertical-align:middle; ">병원수납예금주</caption>
  228. <caption id="caption12" class="cell_1" style="left:445px; top:111px; width:154px; height:23px; vertical-align:middle; ">담당자이메일</caption>
  229. <caption id="caption13" class="cell_1" style="left:4px; top:168px; width:114px; height:23px; vertical-align:middle; ">담당자</caption>
  230. <caption id="caption14" class="cell_1" style="left:124px; top:168px; width:134px; height:23px; vertical-align:middle; ">담당자연락처</caption>
  231. <input id="input16" ref="/root/main/griddtl/item/irbmngernm" class="input_search" navindex="16" style="left:3px; top:193px; width:114px; height:19px; "/>
  232. <caption id="caption15" class="cell_1" style="left:445px; top:168px; width:154px; height:23px; vertical-align:middle; ">담당자이메일</caption>
  233. <input id="input17" ref="/root/main/griddtl/item/irbmngertelno" class="input_search" navindex="17" style="left:123px; top:193px; width:135px; height:19px; "/>
  234. <input id="input18" ref="/root/main/griddtl/item/irbmngeremail" class="input_search" navindex="19" imemode="alpha" style="left:444px; top:193px; width:155px; height:19px; "/>
  235. <input id="input20" ref="/root/main/griddtl/item/irbmngerfaxno" class="input_search" navindex="18" style="left:263px; top:193px; width:175px; height:19px; "/>
  236. <caption id="caption16" class="cell_1" style="left:264px; top:168px; width:174px; height:23px; vertical-align:middle; ">담당자팩스번호</caption>
  237. <input id="input21" ref="/root/main/griddtl/item/irbchrmanempno" class="input_search" navindex="22" style="left:263px; top:249px; width:175px; height:19px; "/>
  238. <caption id="caption17" class="cell_1" style="left:4px; top:224px; width:114px; height:23px; vertical-align:middle; ">IRB위원장명(국문)</caption>
  239. <caption id="caption18" class="cell_1" style="left:124px; top:224px; width:134px; height:23px; vertical-align:middle; ">IRB위원장명(영문)</caption>
  240. <input id="input22" ref="/root/main/griddtl/item/irbchrmannm" class="input_search" navindex="20" imemode="hangul" style="left:3px; top:249px; width:114px; height:19px; "/>
  241. <caption id="caption20" class="cell_1" style="left:264px; top:224px; width:174px; height:23px; vertical-align:middle; ">IRB위원장사번</caption>
  242. <input id="input23" ref="/root/main/griddtl/item/irbchrmannmeng" class="input_search" navindex="21" imemode="alpha" style="left:123px; top:249px; width:135px; height:19px; "/>
  243. <caption id="caption19" class="cell_1" style="left:264px; top:282px; width:174px; height:23px; vertical-align:middle; ">IRB간사사번</caption>
  244. <input id="input24" ref="/root/main/griddtl/item/irbadminworkempno" class="input_search" navindex="25" style="left:263px; top:307px; width:175px; height:19px; "/>
  245. <input id="input26" ref="/root/main/griddtl/item/irbadminworknmeng" class="input_search" navindex="24" imemode="alpha" style="left:123px; top:307px; width:135px; height:19px; "/>
  246. <caption id="caption21" class="cell_1" style="left:5px; top:282px; width:114px; height:23px; vertical-align:middle; ">IRB간사명(국문)</caption>
  247. <caption id="caption22" class="cell_1" style="left:124px; top:282px; width:134px; height:23px; vertical-align:middle; ">IRB간사명(영문)</caption>
  248. <caption id="caption23" class="cell_1" style="left:5px; top:337px; width:114px; height:23px; vertical-align:middle; ">우편번호</caption>
  249. <caption id="caption24" class="cell_1" style="left:124px; top:337px; width:224px; height:23px; vertical-align:middle; ">주소(국문)</caption>
  250. <input id="input27" ref="/root/main/griddtl/item/addreng" class="input_search" navindex="29" imemode="alpha" style="left:353px; top:362px; width:245px; height:19px; "/>
  251. <input id="input28" ref="/root/main/griddtl/item/zipcd1" class="input_search" navindex="26" format="999" style="left:5px; top:362px; width:54px; height:19px; "/>
  252. <input id="input29" ref="/root/main/griddtl/item/addr" class="input_search" navindex="28" imemode="hangul" style="left:123px; top:362px; width:225px; height:19px; "/>
  253. <caption id="caption25" class="cell_1" style="left:354px; top:337px; width:244px; height:23px; vertical-align:middle; ">주소(영문)</caption>
  254. <input id="input30" ref="/root/main/griddtl/item/zipcd2" class="input_search" navindex="27" format="999" style="left:62px; top:362px; width:54px; height:19px; "/>
  255. <input id="input25" ref="/root/main/griddtl/item/irbadminworknm" class="input_search" navindex="23" imemode="hangul" style="left:3px; top:308px; width:114px; height:19px; "/>
  256. <input id="input31" ref="/root/main/griddtl/item/hospcd" class="input_search" navindex="2" imemode="alpha" maxlength="1" style="left:62px; top:28px; width:54px; height:19px; text-align:center; "/>
  257. <button id="btn_del" class="btn4_letter2" disabled="true" _auth="X" style="left:1110px; top:360px; width:56px; height:22px; ">
  258. <caption>삭제</caption>
  259. <script type="javascript" ev:event="DOMActivate">
  260. <![CDATA[
  261. model.setValue("/root/main/griddtl/item/iudgb", "D");
  262. if (messageBox(model.getValue("/root/main/griddtl/item/hospnm") + " 데이터를 ", "Q001", "") == 7){
  263. return;
  264. }
  265. fsaveData();
  266. ]]>
  267. </script>
  268. </button>
  269. <button id="btn_save" class="btn4_letter2" navindex="30" _auth="X" style="left:1045px; top:360px; width:56px; height:22px; ">
  270. <caption>저장</caption>
  271. <script type="javascript" ev:event="DOMActivate">
  272. <![CDATA[
  273. // messageBox(model.getValue("/root/main/griddtl/item/iudgb"), "E999", "");
  274. if (model.getValue("/root/main/griddtl/item/iudgb") == "I") {
  275. var sinstcd = trim(model.getValue("/root/main/griddtl/item/instcd"));
  276. if (sinstcd == ""){
  277. messageBox("병원코드는 필수입력 항목입니다.", "E999", "");
  278. return;
  279. }
  280. var shospnm = trim(model.getValue("/root/main/griddtl/item/hospnm"));
  281. if (shospnm == ""){
  282. messageBox("병원명은 필수입력 항목입니다.", "E999", "");
  283. return;
  284. }
  285. var irow = datagrid3.findRow(sinstcd, 0, 0);
  286. if (irow > 0){
  287. messageBox("이미 등록된 기관정보가 있습니다.", "E999", "");
  288. return;
  289. }
  290. if (messageBox("신규 데이터를 ", "Q002", "") == 7){
  291. return;
  292. }
  293. } else if(model.getValue("/root/main/griddtl/item/iudgb") == "U") {
  294. if (messageBox(model.getValue("/root/main/griddtl/item/hospnm") + " 데이터를 ", "Q002", "") == 7){
  295. return;
  296. }
  297. }
  298. fsaveData();
  299. ]]>
  300. </script>
  301. </button>
  302. <caption id="caption6" class="cell_1" style="left:124px; top:111px; width:314px; height:23px; vertical-align:middle; ">은행정보 (은행, 계좌번호)</caption>
  303. <button id="btn_new" class="btn4_letter2" disable.background-image="../../../com/commonweb/images/dis_btn5_letter2.gif" style="left:980px; top:360px; width:56px; height:22px; background-image:../../../com/commonweb/images/btn5_letter2.gif; ">
  304. <caption>신규</caption>
  305. <script type="javascript" ev:event="DOMActivate">
  306. <![CDATA[
  307. if (messageBox("신규 데이터를 입력하기 위해 기관상세내역을 ", "Q001", "") == 7){
  308. return;
  309. } else {
  310. fnewData();
  311. }
  312. ]]>
  313. </script>
  314. </button>
  315. <select1 id="combo1" ref="/root/main/griddtl/item/bankcd" navindex="9" appearance="minimal" style="left:123px; top:82px; width:135px; height:19px; ">
  316. <choices>
  317. <itemset nodeset="/root/init/cmb_info/initbank/R0001">
  318. <label ref="cdnm"/>
  319. <value ref="cdid"/>
  320. </itemset>
  321. </choices>
  322. </select1>
  323. <select1 id="combo2" ref="/root/main/griddtl/item/bankcd2" navindex="13" appearance="minimal" style="left:123px; top:136px; width:135px; height:19px; ">
  324. <choices>
  325. <itemset nodeset="/root/init/cmb_info/initbank/R0001">
  326. <label ref="cdnm"/>
  327. <value ref="cdid"/>
  328. </itemset>
  329. </choices>
  330. </select1>
  331. <shape id="roundrect2" appearance="roundrect" ellipsewidth="20" ellipseheight="20" style="left:815px; top:70px; width:165px; height:220px; "/>
  332. <shape id="roundrect1" appearance="roundrect" ellipsewidth="20" ellipseheight="20" style="left:995px; top:70px; width:165px; height:220px; "/>
  333. <button id="btn_picinsert" class="btn2_letter2" style="left:850px; top:260px; width:42px; height:19px; ">
  334. <caption>첨부</caption>
  335. <script type="javascript" ev:event="onclick">
  336. <![CDATA[
  337. // fExeAddPicture();
  338. var sFileName = openImageFileDialog(1042576);
  339. if (sFileName == "") return false;
  340. img_hidden1.src = sFileName; // 파일에서 읽은 이미지의 base64 encoding 값을 가져오기 위한 이미지 컨트롤
  341. var data = img_hidden1.getbase64data(); // base64 encoding 문자열을 가져온다.
  342. var imgSize = getImageSize(sFileName);
  343. var imgWidthSize = imgSize.split("^")[0];
  344. var imgHeightSize = imgSize.split("^")[1];
  345. model.makeValue("/root/main/griddtl/item/img1", data, true); // 이미지를 보여주기 위하여 view용 이미지컨트롤의 ref instance에 값을 저장
  346. setImageRefInstance("/root/main/griddtl/item/img1");
  347. model.refresh();
  348. ]]>
  349. </script>
  350. </button>
  351. <button id="btn_picdelete" class="btn2_letter2" style="left:915px; top:260px; width:42px; height:19px; ">
  352. <caption>삭제</caption>
  353. <script type="javascript" ev:event="onclick">
  354. <![CDATA[
  355. //fExeDeleteImage();
  356. var idx = datagrid3.row;
  357. DbClick_value = idx;
  358. model.resetInstanceNode("/root/main/griddtl/item["+idx+"]/img1");
  359. model.resetInstanceNode("/root/main/griddtl/item/img1");
  360. setImageRefInstance("/root/main/griddtl/item/img1");
  361. img_src1.refresh();
  362. model.refresh();
  363. ]]>
  364. </script>
  365. </button>
  366. <button id="button1" class="btn2_letter2" style="left:1025px; top:260px; width:42px; height:19px; ">
  367. <caption>첨부</caption>
  368. <script type="javascript" ev:event="onclick">
  369. <![CDATA[
  370. var sFileName = openImageFileDialog(1042576);
  371. if (sFileName == "") return false;
  372. img_hidden2.src = sFileName; // 파일에서 읽은 이미지의 base64 encoding 값을 가져오기 위한 이미지 컨트롤
  373. var data = img_hidden2.getbase64data(); // base64 encoding 문자열을 가져온다.
  374. var imgSize = getImageSize(sFileName);
  375. var imgWidthSize = imgSize.split("^")[0];
  376. var imgHeightSize = imgSize.split("^")[1];
  377. model.makeValue("/root/main/griddtl/item/img2", data, true); // 이미지를 보여주기 위하여 view용 이미지컨트롤의 ref instance에 값을 저장
  378. setImageRefInstance("/root/main/griddtl/item/img2");
  379. model.refresh();
  380. ]]>
  381. </script>
  382. </button>
  383. <button id="button2" class="btn2_letter2" style="left:1090px; top:260px; width:42px; height:19px; ">
  384. <caption>삭제</caption>
  385. <script type="javascript" ev:event="onclick">
  386. <![CDATA[
  387. var idx = datagrid3.row;
  388. DbClick_value = idx;
  389. model.resetInstanceNode("/root/main/griddtl/item["+idx+"]/img2");
  390. model.resetInstanceNode("/root/main/griddtl/item/img2");
  391. setImageRefInstance("/root/main/griddtl/item/img2");
  392. img_src2.refresh();
  393. model.refresh();
  394. ]]>
  395. </script>
  396. </button>
  397. <img id="img_hidden1" visibility="hidden" style="left:826px; top:100px; width:145px; height:155px; background-stretch:stretch; "/>
  398. <img id="img_src1" ref="/root/main/griddtl/item/img1" style="left:825px; top:100px; width:145px; height:155px; background-repeat:repeat; background-stretch:stretch; border-style:solid; "/>
  399. <img id="img_hidden2" visibility="hidden" style="left:1006px; top:100px; width:145px; height:155px; background-stretch:stretch; "/>
  400. <img id="img_src2" ref="/root/main/griddtl/item/img2" style="left:1006px; top:100px; width:145px; height:155px; background-repeat:repeat; background-stretch:stretch; border-style:solid; "/>
  401. <caption id="caption11" class="tit_2" style="left:825px; top:80px; width:100px; height:13px; ">병원장 직인</caption>
  402. <caption id="caption26" class="tit_2" style="left:1005px; top:80px; width:100px; height:13px; ">위원회 직인</caption>
  403. <caption id="caption30" style="left:815px; top:295px; width:349px; height:28px; font-weight:bold; color:#0000ff; ">
  404. <![CDATA[※ 병원장 및 위원회 직인 파일 [첨부] 혹은 [삭제] 후,
  405. 저장 버튼을 눌러주세요.]]>
  406. </caption>
  407. </case>
  408. </switch>
  409. <caption id="caption146" class="tit_2" style="left:25px; top:355px; width:449px; height:14px; ">기관상세내역 (목록을 더블클릭하면 해당상세내역이 화면에 출력됩니다.)</caption>
  410. </xhtml:body>
  411. </xhtml:html>