SMARH00500_병의원의사관리(HIE)(실시간).xrw 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/css" ?>
  3. <xhtml:html xmlns:ex="http://www.comsquare.co.kr/xforms/excel" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:my="http://www.comsquare.co.kr/example" xmlns:ms="urn:schemas-microsoft-com:xslt" 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" xmlns:cs="http://www.comsquare.co.kr/xforms">
  4. <xhtml:head>
  5. <xhtml:title>Untitle</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <main>
  10. <hospinfo/>
  11. <hospdetl>
  12. <oid/>
  13. <hospnm/>
  14. <hirano/>
  15. <hospgb/>
  16. <addr/>
  17. <telno/>
  18. <faxno/>
  19. <status/>
  20. <compnm/>
  21. <mngrid/>
  22. <facid/>
  23. </hospdetl>
  24. <deptdetl>
  25. <oid/>
  26. <hiedeptcd/>
  27. <deptnm/>
  28. <status/>
  29. <telno/>
  30. <faxno/>
  31. </deptdetl>
  32. <userdetl>
  33. <oid/>
  34. <hiedeptcd/>
  35. <userid/>
  36. <licnsno/>
  37. <status/>
  38. <usernm/>
  39. <title/>
  40. <desc/>
  41. <spec/>
  42. <gender/>
  43. <email/>
  44. <officenm/>
  45. <telno/>
  46. <mpphonno/>
  47. <deptnm/>
  48. <passwd/>
  49. <usergb/>
  50. </userdetl>
  51. <deptuserinfo>
  52. <deptinfo/>
  53. <userinfo/>
  54. <userinfo_etc/>
  55. </deptuserinfo>
  56. <userinfo/>
  57. </main>
  58. <send>
  59. <searchdept>
  60. <oid/>
  61. </searchdept>
  62. <searchhosp>
  63. <hospnm/>
  64. <hosptype/>
  65. <community/>
  66. </searchhosp>
  67. <savehosp/>
  68. <saveuser/>
  69. <savedept/>
  70. </send>
  71. <init>
  72. <status>
  73. <list>
  74. <label>사용</label>
  75. <value>Active</value>
  76. </list>
  77. <list>
  78. <label>미사용</label>
  79. <value>Inactive</value>
  80. </list>
  81. </status>
  82. <gender>
  83. <list>
  84. <label>남자</label>
  85. <value>M</value>
  86. </list>
  87. <list>
  88. <label>여자</label>
  89. <value>F</value>
  90. </list>
  91. </gender>
  92. <initinfo/>
  93. </init>
  94. <hidden/>
  95. </root>
  96. </instance>
  97. <submission id="TRARH00501" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/searchhosp" resultref="/root/main/hospinfo"/>
  98. <submission id="TRARH00502" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/searchdept" resultref="/root/main/deptuserinfo"/>
  99. <submission id="TRARH00503" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/searchuser" resultref="/root/main/userinfo"/>
  100. <submission id="TRARH00504" mediatype="application/x-www-form-urlencoded" method="post" resultref="/root/init/initinfo"/>
  101. <submission id="TXARH00501" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/savehosp" resultref="/root/temp"/>
  102. <submission id="TXARH00502" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/savedept" resultref="/root/temp"/>
  103. <submission id="TXARH00503" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/saveuser" resultref="/root/temp"/>
  104. <submission id="TXARH00504" mediatype="application/x-www-form-urlencoded" method="post" resultref="/root/temp"/>
  105. <script type="javascript" ev:event="xforms-ready">
  106. <![CDATA[
  107. fInit();
  108. ]]>
  109. </script>
  110. </model>
  111. </xhtml:head>
  112. <script src="../../../com/commonweb/js/common.js" type="javascript"/>
  113. <script src="../../../com/commonweb/js/tfHelper.js" type="javascript"/>
  114. <script type="javascript">
  115. <![CDATA[
  116. var m_hosp; // 병원정보상태(n:normal, i:insert, u:update)
  117. var m_dept; // 부서정보상태(n:normal, i:insert, u:update)
  118. var m_user; // 의사정보상태(n:normal, i:insert, u:update)
  119. function fInit(){
  120. m_hosp = "n";
  121. m_dept = "n";
  122. m_user = "n";
  123. fChangeEnableHosp("n");
  124. fChangeEnableDept("n");
  125. fChangeEnableUser("n");
  126. submit("TRARH00504");
  127. }
  128. function fSearch(){
  129. submit("TRARH00501",false);
  130. }
  131. function fSearchDeptUser(){
  132. model.setValue("/root/send/searchdept/oid",model.getValue("root/main/hospdetl/organizationoid"));
  133. submit("TRARH00502",false);
  134. }
  135. function fSaveHosp(){
  136. model.copyNode("root/send/savehosp","/root/main/hospdetl");
  137. model.makeValue("root/send/savehosp/m",m_hosp);
  138. submit("TXARH00501",false);
  139. }
  140. function fSaveDept(){
  141. model.copyNode("root/send/savedept","/root/main/deptdetl");
  142. model.makeValue("root/send/savedept/m",m_dept);
  143. submit("TXARH00502",false);
  144. }
  145. function fSaveUser(){
  146. model.copyNode("root/send/saveuser","/root/main/userdetl");
  147. model.makeValue("root/send/saveuser/m",m_user);
  148. submit("TXARH00503",false);
  149. }
  150. function fChangeEnableHosp(flag){
  151. fChangeEnableDept("n");
  152. fChangeEnableUser("n");
  153. if(flag == "n"){
  154. grp_hosp.disabled = true;
  155. btn_hosp_save.disabled = true;
  156. }else if(flag == "i"){
  157. grp_hosp.disabled = false;
  158. ipt_hosp_oid.attribute("background-color")="#ffffff";
  159. ipt_hosp_oid.attribute("editable") = "true";
  160. ipt_hosp_compnm.attribute("background-color")="#ffffff";
  161. ipt_hosp_mngrid.attribute("background-color")="#ffffff";
  162. ipt_hosp_facid.attribute("background-color")="#ffffff";
  163. btn_hosp_save.disabled = false;
  164. }else if(flag == "u"){
  165. grp_hosp.disabled = false;
  166. ipt_hosp_oid.attribute("background-color")="#ecebec";
  167. ipt_hosp_oid.attribute("editable") = "false";
  168. ipt_hosp_compnm.attribute("background-color")="#ecebec";
  169. ipt_hosp_mngrid.attribute("background-color")="#ecebec";
  170. ipt_hosp_facid.attribute("background-color")="#ecebec";
  171. btn_hosp_save.disabled = false;
  172. btn_dept_new.disabled = false;
  173. }
  174. }
  175. function fChangeEnableDept(flag){
  176. fChangeEnableUser("n");
  177. if(flag == "n"){
  178. grp_dept.disabled = true;
  179. btn_dept_new.disabled = true;
  180. btn_dept_save.disabled = true;
  181. }else if(flag == "i"){
  182. grp_dept.disabled = false;
  183. btn_dept_save.disabled = false;
  184. ipt_dept_hiedeptcd.attribute("background-color")="#ffffff";
  185. ipt_dept_hiedeptcd.attribute("editable") = "true";
  186. }else if(flag == "u"){
  187. grp_dept.disabled = false;
  188. btn_dept_save.disabled = false;
  189. ipt_dept_hiedeptcd.attribute("background-color")="#ecebec";
  190. ipt_dept_hiedeptcd.attribute("editable") = "false";
  191. btn_user_new.disabled = false;
  192. }
  193. }
  194. function fChangeEnableUser(flag){
  195. if(flag == "n"){
  196. grp_user.disabled = true;
  197. btn_user_new.disabled = true;
  198. btn_user_save.disabled = true;
  199. }else if(flag == "i"){
  200. grp_user.disabled = false;
  201. btn_user_save.disabled = false;
  202. ipt_user_userid.attribute("background-color")="#ffffff";
  203. ipt_user_userid.attribute("editable") = "true";
  204. }else if(flag == "u"){
  205. grp_user.disabled = false;
  206. btn_user_save.disabled = false;
  207. ipt_user_userid.attribute("background-color")="#ecebec";
  208. ipt_user_userid.attribute("editable") = "false";
  209. }
  210. }
  211. function fResetHosp(){
  212. model.resetInstanceNode("/root/main/hospdetl");
  213. }
  214. function fResetDept(){
  215. model.resetInstanceNode("/root/main/deptdetl");
  216. }
  217. function fResetUser(){
  218. model.resetInstanceNode("/root/main/userdetl");
  219. }
  220. function fSetDisplayHosp(flag){
  221. fChangeEnableHosp(flag);
  222. fResetDept();
  223. fResetUser();
  224. m_dept="n";
  225. m_user="n";
  226. if(flag == "n"){
  227. m_hosp="n";
  228. fResetHosp();
  229. }else if(flag == "i"){
  230. m_hosp="i";
  231. fResetHosp();
  232. }else if(flag == "u"){
  233. m_hosp="u";
  234. }
  235. }
  236. function fSetDisplayDept(flag){
  237. fChangeEnableDept(flag);
  238. fResetUser();
  239. m_user="n";
  240. if(flag == "n"){
  241. m_dept="n";
  242. fResetDept();
  243. }else if(flag == "i"){
  244. m_dept="i";
  245. fResetDept();
  246. }else if(flag == "u"){
  247. m_dept="u";
  248. }
  249. }
  250. function fSetDisplayUser(flag){
  251. fChangeEnableUser(flag);
  252. if(flag == "n"){
  253. m_user="n";
  254. fResetUser();
  255. }else if(flag == "i"){
  256. m_user="i";
  257. }else if(flag == "u"){
  258. m_user="u";
  259. }
  260. }
  261. // 병원보기(u:펴기, f:접기)
  262. function fHospView(flag){
  263. if(flag == "u"){
  264. grd_hosplist.attribute("width") = "1194px";
  265. line8.attribute("x2") = "1194px";
  266. grp_hosp.visible=false;
  267. btn_hosp_unfold.visible=false;
  268. }else if(flag == "f"){
  269. grd_hosplist.attribute("width") = "770px";
  270. line8.attribute("x2") = "770px";
  271. grp_hosp.visible=true;
  272. btn_hosp_unfold.visible=true;
  273. }
  274. }
  275. ]]>
  276. </script>
  277. <xhtml:body pagewidth="1195" pageheight="780">
  278. <group id="grp_user" style="left:780px; top:615px; width:405px; height:150px; background-color:#cce8ff; ">
  279. <caption id="caption15" class="cell_1" style="left:5px; top:40px; width:83px; height:23px; ">OID</caption>
  280. <caption id="caption16" class="cell_1" style="left:5px; top:64px; width:83px; height:23px; ">사용자ID</caption>
  281. <caption id="caption17" class="cell_1" style="left:5px; top:90px; width:83px; height:23px; ">사용자명</caption>
  282. <line id="line19" class="line_2" style="x1:5px; y1:62px; x2:402px; y2:62px; "/>
  283. <line id="line20" class="line_2" style="x1:5px; y1:85px; x2:402px; y2:85px; "/>
  284. <line id="line21" class="line_2" style="x1:5px; y1:111px; x2:402px; y2:111px; "/>
  285. <caption id="caption31" class="cell_1" style="left:5px; top:115px; width:83px; height:23px; ">부서명</caption>
  286. <line id="line22" class="line_2" style="x1:5px; y1:136px; x2:402px; y2:136px; "/>
  287. <input id="input27" ref="/root/main/userdetl/deptnm" editable="false" style="left:90px; top:116px; width:135px; height:19px; background-color:#ecebec; "/>
  288. <input id="ipt_user_userid" ref="/root/main/userdetl/userid" editable="false" style="left:90px; top:65px; width:100px; height:19px; "/>
  289. <input id="input17" ref="/root/main/userdetl/usernm" editable="false" style="left:90px; top:91px; width:145px; height:19px; "/>
  290. <button id="btn_userid" class="icon_search" navindex="5" style="left:194px; top:67px; width:16px; height:16px; ">
  291. <caption/>
  292. <script type="javascript" ev:event="DOMActivate">
  293. <![CDATA[
  294. //misfOpenPopUpList("01", ipt_reqmannm, "", "reqmanid,reqmannm","","instcd");
  295. modal("SPZSU10103_사용자부서조회", "1", "200", "200", "SPZSU10103","","/root/tmp/popup");
  296. var iParam = getParameter("SPZSU10103_");
  297. if(iParam != ""){
  298. model.removeNodeset("/root/hidden/onerowselect");
  299. model.makeNode("/root/hidden/onerowselect");
  300. setCSVToNode("/root/hidden/onerowselect", iParam);
  301. model.setValue("/root/main/userdetl/userid", model.getValue("/root/hidden/onerowselect/list/userid") );
  302. model.setValue("/root/main/userdetl/usernm", model.getValue("/root/hidden/onerowselect/list/usernm") );
  303. clearParameter("SPZSU10103_");
  304. }
  305. model.refresh();
  306. ]]>
  307. </script>
  308. </button>
  309. <input id="input16" ref="/root/main/userdetl/oid" editable="false" style="left:90px; top:40px; width:190px; height:19px; background-color:#ecebec; "/>
  310. </group>
  311. <line id="line8" class="line_1" style="x1:0px; y1:93px; x2:444px; y2:92px; "/>
  312. <caption id="caption2" class="tit_1" style="left:0px; top:0px; width:205px; height:15px; ">HIE 병의원 관리</caption>
  313. <group id="group5" style="left:0px; top:25px; width:1189px; height:35px; vertical-align:top; ">
  314. <shape id="roundrect2" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1189px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
  315. <line id="line2" class="line_4" style="x1:1109px; y1:7px; x2:1109px; y2:29px; "/>
  316. <button id="btn_search" class="btn1_letter2" navindex="33" style="left:1119px; top:7px; width:56px; height:22px; ">
  317. <caption>조회</caption>
  318. <script type="javascript" ev:event="DOMActivate">
  319. <![CDATA[
  320. //if ( !fCheckDate() ) return; //필수 저장여부 체크
  321. //fSearch();
  322. fSearch();
  323. model.refresh();
  324. ]]>
  325. </script>
  326. </button>
  327. <input id="input2" ref="/root/send/searchhosp/hospnm" navindex="32" style="left:115px; top:10px; width:125px; height:19px; "/>
  328. <caption id="caption7" class="search_name" style="left:8px; top:10px; width:94px; height:17px; ">병의원명</caption>
  329. <button id="button1" class="btn4_letter7" style="left:985px; top:7px; width:116px; height:22px; ">
  330. <caption>KNUH 정보등록</caption>
  331. <script type="javascript" ev:event="DOMActivate">
  332. <![CDATA[
  333. submit("TXARH00504",false);
  334. model.refresh();
  335. ]]>
  336. </script>
  337. </button>
  338. <select1 id="cmb_hosptype" ref="/root/send/searchhosp/hosptype" appearance="minimal" style="left:400px; top:10px; width:170px; height:19px; ">
  339. <choices>
  340. <itemset nodeset="/root/init/initinfo/hosptypelist">
  341. <label ref="cdnm"/>
  342. <value ref="cdid"/>
  343. </itemset>
  344. </choices>
  345. </select1>
  346. <caption id="caption36" class="search_name" style="left:305px; top:10px; width:94px; height:17px; ">병원타입</caption>
  347. <select1 id="combo8" ref="/root/send/searchhosp/community" appearance="minimal" style="left:725px; top:10px; width:170px; height:19px; ">
  348. <choices>
  349. <item>
  350. <label>combo7</label>
  351. <value>combo7</value>
  352. </item>
  353. </choices>
  354. </select1>
  355. <caption id="caption38" class="search_name" style="left:625px; top:10px; width:94px; height:17px; ">커뮤니티</caption>
  356. </group>
  357. <button id="btn_hosp_unfold" class="btn2_letter3" visibility="hidden" style="left:135px; top:70px; width:53px; height:19px; ">
  358. <caption>펼치기</caption>
  359. <script type="javascript" ev:event="DOMActivate">
  360. <![CDATA[
  361. fHospView("u");
  362. ]]>
  363. </script>
  364. </button>
  365. <datagrid id="grd_hosplist" nodeset="/root/main/hospinfo/hosplist" scroll="autovscroll" caption="병원명^병원구분^전화번호^OID^요양기관기호^저장소 OID^대표자명^등록소 OID^우편번호^주소" colsep="^" colwidth="155, 82, 103, 124, 116, 104, 64, 111, 73, 235" dataheight="25" defaultrows="0" frozencols="3" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="32" rowsep="|" style="left:0px; top:95px; width:445px; height:670px; vertical-align:middle; ">
  366. <col ref="organizationname"/>
  367. <col ref="organizationtypecode" type="combo" style="text-align:center; ">
  368. <choices>
  369. <itemset nodeset="/root/init/initinfo/hosptypelist">
  370. <label ref="cdnm"/>
  371. <value ref="cdid"/>
  372. </itemset>
  373. </choices>
  374. </col>
  375. <col ref="telecom"/>
  376. <col ref="organizationoid"/>
  377. <col ref="organizationid"/>
  378. <col ref="repositoryoid"/>
  379. <col ref="representname"/>
  380. <col ref="registryoid"/>
  381. <col ref="postalcode"/>
  382. <col ref="address"/>
  383. <script type="javascript" ev:event="ondblclick">
  384. <![CDATA[
  385. if(grd_hosplist.row<1) return;
  386. fSetDisplayHosp("u");
  387. var row = grd_hosplist.row;
  388. model.copyNode("/root/main/hospdetl","/root/main/hospinfo/hosplist["+row+"]");
  389. fSearchDeptUser();
  390. model.copyNode("/root/main/userinfo","/root/main/deptuserinfo/userinfo");
  391. model.refresh();
  392. ]]>
  393. </script>
  394. </datagrid>
  395. <group id="grp_hosp" style="left:780px; top:90px; width:405px; height:250px; background-color:#cce8ff; ">
  396. <caption id="caption44" class="cell_1" style="left:5px; top:41px; width:83px; height:23px; ">OID</caption>
  397. <line id="line5" class="line_2" style="x1:5px; y1:63px; x2:402px; y2:63px; "/>
  398. <line id="line6" class="line_2" style="x1:5px; y1:88px; x2:402px; y2:88px; "/>
  399. <caption id="caption35" class="cell_1" style="left:5px; top:65px; width:83px; height:23px; ">병원명</caption>
  400. <input id="input9" ref="/root/main/hospdetl/organizationid" style="left:90px; top:92px; width:100px; height:19px; "/>
  401. <caption id="caption39" class="cell_1" style="left:5px; top:91px; width:83px; height:23px; ">요양기관번호</caption>
  402. <caption id="caption40" class="cell_1" style="left:235px; top:115px; width:58px; height:23px; text-align:left; ">전화번호</caption>
  403. <line id="line7" class="line_2" style="x1:5px; y1:114px; x2:402px; y2:114px; "/>
  404. <caption id="caption42" class="cell_1" style="left:235px; top:91px; width:58px; height:23px; text-align:left; ">병원구분</caption>
  405. <line id="line9" class="line_2" style="x1:5px; y1:139px; x2:402px; y2:139px; "/>
  406. <caption id="caption37" class="cell_1" style="left:5px; top:141px; width:83px; height:23px; ">주소</caption>
  407. <select1 id="combo1" ref="/root/main/hospdetl/organizationtypecode" appearance="minimal" style="left:295px; top:92px; width:100px; height:19px; ">
  408. <choices>
  409. <itemset nodeset="/root/init/initinfo/hosptypelist">
  410. <label ref="cdnm"/>
  411. <value ref="cdid"/>
  412. </itemset>
  413. </choices>
  414. </select1>
  415. <caption id="caption1" class="cell_1" style="left:5px; top:191px; width:83px; height:23px; ">등록소 OID</caption>
  416. <caption id="caption3" class="cell_1" style="left:5px; top:115px; width:73px; height:23px; ">우편번호</caption>
  417. <caption id="caption4" class="cell_1" style="left:5px; top:215px; width:70px; height:23px; text-align:left; ">저장소 OID</caption>
  418. <line id="line1" class="line_2" style="x1:5px; y1:187px; x2:402px; y2:187px; "/>
  419. <input id="ipt_hosp_oid" ref="/root/main/hospdetl/organizationoid" style="left:90px; top:41px; width:190px; height:19px; "/>
  420. <input id="input7" ref="/root/main/hospdetl/organizationname" style="left:90px; top:66px; width:190px; height:19px; "/>
  421. <input id="ipt_hosp_compnm" ref="/root/main/hospdetl/registryoid" style="left:90px; top:192px; width:100px; height:19px; "/>
  422. <input id="ipt_hosp_mngrid" ref="/root/main/hospdetl/postalcode" style="left:90px; top:117px; width:100px; height:19px; "/>
  423. <input id="ipt_hosp_facid" ref="/root/main/hospdetl/repositoryoid" style="left:90px; top:216px; width:100px; height:19px; "/>
  424. <input id="input10" ref="/root/main/hospdetl/telecom" style="left:295px; top:117px; width:100px; height:19px; "/>
  425. <textarea id="textarea1" ref="/root/main/hospdetl/address" style="left:90px; top:144px; width:305px; height:40px; "/>
  426. <line id="line11" class="line_2" style="x1:5px; y1:214px; x2:402px; y2:214px; "/>
  427. </group>
  428. <caption id="caption9" class="tit_2" style="left:5px; top:74px; width:137px; height:13px; ">HIE 병의원 리스트</caption>
  429. <caption id="caption6" class="tit_2" style="left:455px; top:74px; width:137px; height:13px; ">HIE 부서 리스트</caption>
  430. <datagrid id="grd_deptlist" nodeset="/root/main/deptuserinfo/deptinfo/deptlist" scroll="autovscroll" autoresize="true" caption="OID^부서코드^부서명" colsep="^" colwidth="0, 68, 150" dataheight="25" defaultrows="0" extendlastcol="scroll" frozencols="2" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="32" rowsep="|" style="left:450px; top:95px; width:321px; height:205px; vertical-align:middle; ">
  431. <col ref="oid"/>
  432. <col ref="hiedeptcd"/>
  433. <col ref="deptnm"/>
  434. <script type="javascript" ev:event="ondblclick">
  435. <![CDATA[
  436. if(grd_deptlist.row<1) return;
  437. fSetDisplayDept("u");
  438. var row = grd_deptlist.row;
  439. model.copyNode("/root/main/deptdetl","/root/main/deptuserinfo/deptinfo/deptlist["+row+"]");
  440. var hiedeptcd = grd_deptlist.valueMatrix(row, grd_deptlist.colRef("hiedeptcd"));
  441. var nodelist = instance1.selectNodes("/root/main/deptuserinfo/userinfo/userlist[hiedeptcd='" + hiedeptcd + "']");
  442. model.removenode("/root/main/userinfo");
  443. model.makeNode("/root/main/userinfo");
  444. if(nodelist.length>0){
  445. setCSVToNode("/root/main/userinfo",getNodeListCSV(nodelist),"userlist");
  446. }
  447. //fSearchDeptUser();
  448. model.refresh();
  449. ]]>
  450. </script>
  451. </datagrid>
  452. <line id="line3" class="line_1" style="x1:773px; y1:90px; x2:773px; y2:765px; border-color:#0000ff; "/>
  453. <datagrid id="grd_userlist" nodeset="/root/main/userinfo/userlist" scroll="auto" autoresize="true" caption="OID^이름^부서명^라이센스^전화번호^핸드폰번호^호출번호^팩스번호" colsep="^" colwidth="0, 78, 145, 76" dataheight="25" defaultrows="0" frozencols="2" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="32" rowsep="|" style="left:450px; top:330px; width:321px; height:435px; vertical-align:middle; ">
  454. <col ref="oid"/>
  455. <col ref="usernm"/>
  456. <col ref="deptnm"/>
  457. <col ref="licnsno"/>
  458. <script type="javascript" ev:event="ondblclick">
  459. <![CDATA[
  460. if(grd_userlist.row<1) return;
  461. fSetDisplayUser("u");
  462. var row = grd_userlist.row;
  463. model.copyNode("/root/main/userdetl","/root/main/userinfo/userlist["+row+"]");
  464. //fSearchDeptUser();
  465. model.refresh();
  466. ]]>
  467. </script>
  468. </datagrid>
  469. <line id="line4" class="line_1" style="x1:450px; y1:93px; x2:768px; y2:92px; "/>
  470. <line id="line10" class="line_1" style="x1:448px; y1:90px; x2:447px; y2:765px; border-color:#0000ff; "/>
  471. <caption id="caption34" class="tit_2" style="left:780px; top:74px; width:135px; height:13px; ">HIE 병의원 정보</caption>
  472. <caption id="caption8" class="tit_2" style="left:780px; top:422px; width:135px; height:13px; ">HIE 부서 정보</caption>
  473. <group id="grp_dept" style="left:780px; top:440px; width:405px; height:125px; background-color:#cce8ff; ">
  474. <caption id="caption10" class="cell_1" style="left:5px; top:41px; width:83px; height:23px; ">OID</caption>
  475. <line id="line12" class="line_2" style="x1:5px; y1:63px; x2:402px; y2:63px; "/>
  476. <line id="line13" class="line_2" style="x1:5px; y1:88px; x2:402px; y2:88px; "/>
  477. <caption id="caption11" class="cell_1" style="left:5px; top:65px; width:83px; height:23px; ">부서명</caption>
  478. <caption id="caption12" class="cell_1" style="left:5px; top:91px; width:83px; height:23px; ">부서코드</caption>
  479. <line id="line14" class="line_2" style="x1:5px; y1:114px; x2:402px; y2:114px; "/>
  480. <input id="ipt_dept_oid" ref="/root/main/deptdetl/oid" editable="false" style="left:90px; top:41px; width:190px; height:19px; background-color:#ecebec; "/>
  481. <input id="input11" ref="/root/main/deptdetl/deptnm" style="left:90px; top:66px; width:145px; height:19px; "/>
  482. <input id="ipt_dept_hiedeptcd" ref="/root/main/deptdetl/hiedeptcd" style="left:90px; top:92px; width:100px; height:19px; "/>
  483. </group>
  484. <caption id="caption27" class="tit_2" style="left:455px; top:310px; width:135px; height:13px; ">HIE 사용자 리스트</caption>
  485. <caption id="caption28" class="tit_2" style="left:780px; top:598px; width:135px; height:13px; ">HIE 사용자 정보</caption>
  486. <button id="btn_hosp_new" class="btn4_letter2" style="left:1060px; top:105px; width:56px; height:22px; ">
  487. <caption>신규</caption>
  488. <script type="javascript" ev:event="DOMActivate">
  489. <![CDATA[
  490. fSetDisplayHosp("i");
  491. model.refresh();
  492. ]]>
  493. </script>
  494. </button>
  495. <button id="btn_hosp_save" class="btn4_letter2" style="left:1120px; top:105px; width:56px; height:22px; ">
  496. <caption>저장</caption>
  497. <script type="javascript" ev:event="DOMActivate">
  498. <![CDATA[
  499. setAlertOn();
  500. fSaveHosp();
  501. fSearch();
  502. model.refresh();
  503. ]]>
  504. </script>
  505. </button>
  506. <button id="btn_dept_new" class="btn4_letter2" style="left:1060px; top:450px; width:56px; height:22px; ">
  507. <caption>신규</caption>
  508. <script type="javascript" ev:event="DOMActivate">
  509. <![CDATA[
  510. var oid = model.getValue("/root/main/hospdetl/oid");
  511. if(m_hosp!="u"){
  512. messageBox("병의원이 선택되지","E007");
  513. return;
  514. }
  515. fSetDisplayDept("i");
  516. model.setValue("/root/main/deptdetl/oid",model.getValue("/root/main/hospdetl/oid"));
  517. model.refresh();
  518. ]]>
  519. </script>
  520. </button>
  521. <button id="btn_dept_save" class="btn4_letter2" style="left:1120px; top:450px; width:56px; height:22px; ">
  522. <caption>저장</caption>
  523. <script type="javascript" ev:event="DOMActivate">
  524. <![CDATA[
  525. setAlertOn();
  526. fSaveDept();
  527. fSearchDeptUser();
  528. model.refresh();
  529. ]]>
  530. </script>
  531. </button>
  532. <button id="btn_user_new" class="btn4_letter2" style="left:1060px; top:620px; width:56px; height:22px; ">
  533. <caption>신규</caption>
  534. <script type="javascript" ev:event="DOMActivate">
  535. <![CDATA[
  536. var oid = model.getValue("/root/main/deptdetl/oid");
  537. if(m_dept!="u"){
  538. messageBox("부서가 선택되지","E007");
  539. return;
  540. }
  541. fSetDisplayUser("i");
  542. model.setValue("/root/main/userdetl/oid",model.getValue("/root/main/deptdetl/oid"));
  543. model.setValue("/root/main/userdetl/hiedeptcd",model.getValue("/root/main/deptdetl/hiedeptcd"));
  544. model.setValue("/root/main/userdetl/deptnm",model.getValue("/root/main/deptdetl/deptnm"));
  545. model.refresh();
  546. ]]>
  547. </script>
  548. </button>
  549. <button id="btn_user_save" class="btn4_letter2" style="left:1120px; top:620px; width:56px; height:22px; ">
  550. <caption>저장</caption>
  551. <script type="javascript" ev:event="DOMActivate">
  552. <![CDATA[
  553. setAlertOn();
  554. fSaveUser();
  555. fSearchDeptUser();
  556. model.refresh();
  557. ]]>
  558. </script>
  559. </button>
  560. </xhtml:body>
  561. </xhtml:html>