SMZSU10600_환자정보접근관리.xrw 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349
  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. <list>
  11. </list>
  12. <search>
  13. <searchcondition/>
  14. <searchterm/>
  15. <valifromdd/>
  16. <valitodd/>
  17. <dutplcecd/>
  18. <dutplcenm/>
  19. </search>
  20. <mode/>
  21. </main>
  22. <init>
  23. <comcd>
  24. </comcd>
  25. <resultref/>
  26. <comcd>
  27. <timelist/>
  28. </comcd>
  29. </init>
  30. <send>
  31. <searchcondition/>
  32. <searchterm/>
  33. <dutplcecd/>
  34. <valifromdd/>
  35. <valitodd/>
  36. <data/>
  37. </send>
  38. <hidden>
  39. <userdeptinfo/>
  40. </hidden>
  41. <temp/>
  42. </root>
  43. </instance>
  44. <script type="javascript" ev:event="xforms-ready">
  45. <![CDATA[
  46. model.setValue("/root/main/search/searchcondition", "usernm");
  47. zbcfGetCodeList( new Array("Z0018"), new Array("/root/init/comcd/timelist"));
  48. model.refresh();
  49. ]]>
  50. </script>
  51. <submission id="TRZSU10113" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/list"/>
  52. <submission id="TXZSU10116" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data" replace="instance" resultref="/root/temp"/>
  53. <submission id="TRZBC00101" method="post" replace="instance"/>
  54. </model>
  55. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  56. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  57. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  58. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  59. <script type="javascript" src="../../../com/departmentcodeweb/js/ZSD001.js"/>
  60. <script type="javascript" src="../../../com/userdeptinfoweb/js/ZSU003.js"/>
  61. </xhtml:head>
  62. <xhtml:body guideline="1,1197;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  63. <group id="grp_tle" style="left:0px; top:0px; width:1194px; height:13px; ">
  64. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:800px; height:14px; ">환자정보접근관리</caption>
  65. </group>
  66. <group id="grp_biz" scroll="auto" style="left:0px; top:36px; width:1195px; height:744px; ">
  67. <group id="grp_sea" style="left:0px; top:10px; width:1195px; height:100px; vertical-align:top; ">
  68. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1195px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
  69. <line id="line13" style="x1:1125px; y1:8px; x2:1125px; y2:26px; border-color:#ffe4bb; border-left-style:solid; "/>
  70. <caption id="label_searchcondition" class="search_name" style="left:5px; top:7px; width:96px; height:17px; ">검색조건 :</caption>
  71. <input id="ipt_searchterm" ref="/root/main/search/searchterm" class="input_s_essential" navindex="2" imemode="hangul" style="left:194px; top:7px; width:130px; height:19px; ">
  72. <script type="javascript" ev:event="onkeyup">
  73. <![CDATA[
  74. inputEnterKey("btn_search", "DOMActivate");
  75. ]]>
  76. </script>
  77. </input>
  78. <button id="btn_add" class="btn2_letter2" navindex="57" style="left:1104px; top:76px; width:42px; height:19px; background-color:#fffbf2; border-color:#ffd799; ">
  79. <caption>등록</caption>
  80. <script type="javascript" ev:event="DOMActivate">
  81. <![CDATA[
  82. grd_userdeptlist.addRow();
  83. var col = grd_userdeptlist.colRef("valifromdt") - 1;
  84. var row = grd_userdeptlist.row;
  85. grd_userdeptlist.cellAttribute("editable", row, col) ="true";
  86. ]]>
  87. </script>
  88. </button>
  89. <button id="btn_delete" class="btn2_letter2" navindex="57" style="left:1147px; top:76px; width:42px; height:19px; background-color:#fffbf2; border-color:#ffd799; ">
  90. <caption>삭제</caption>
  91. <script type="javascript" ev:event="DOMActivate">
  92. <![CDATA[
  93. var row = grd_userdeptlist.row;
  94. var rowStatus = grd_userdeptlist.rowStatus(row);
  95. if(rowStatus==1){
  96. grd_userdeptlist.deleteRow(row);
  97. }else if(rowStatus==0){
  98. grd_userdeptlist.rowStatus(row) = 4;
  99. }
  100. ]]>
  101. </script>
  102. </button>
  103. <button id="btn_search" class="btn1_letter2" style="left:1123px; top:7px; width:56px; height:22px; ">
  104. <caption>조회</caption>
  105. <script type="javascript" ev:event="DOMActivate">
  106. <![CDATA[
  107. var search_condition = model.getValue("/root/main/search/searchcondition");
  108. var search_term = model.getValue("/root/main/search/searchterm");
  109. var dutplcecd = model.getValue("/root/main/search/dutplcecd");
  110. var valifromdd = model.getValue("/root/main/search/valifromdd");
  111. var valitodd = model.getValue("/root/main/search/valitodd");
  112. var col = grd_userdeptlist.colRef("valifromdt") - 1;
  113. model.setValue("/root/send/searchcondition", search_condition);
  114. model.setValue("/root/send/searchterm", search_term);
  115. model.setValue("/root/send/dutplcecd", dutplcecd);
  116. model.setValue("/root/send/valifromdd", valifromdd);
  117. model.setValue("/root/send/valitodd", valitodd);
  118. var success = submit("TRZSU10113");
  119. if(success){
  120. model.setValue("/root/main/mode", "retrived");
  121. for(var i=1; i<grd_userdeptlist.rows; i++){
  122. grd_userdeptlist.cellAttribute("editable", i, col) ="false";
  123. }
  124. model.refresh();
  125. }
  126. ]]>
  127. </script>
  128. </button>
  129. <select1 id="cmb_searchcondition" ref="/root/main/search/searchcondition" class="combo_default" navindex="1" appearance="minimal" style="left:105px; top:7px; width:87px; height:19px; ">
  130. <choices>
  131. <item>
  132. <label>사용자ID</label>
  133. <value>userid</value>
  134. </item>
  135. <item>
  136. <label>사용자명</label>
  137. <value>usernm</value>
  138. </item>
  139. <item>
  140. <label>주민등록번호</label>
  141. <value>rrgstno</value>
  142. </item>
  143. </choices>
  144. </select1>
  145. <caption id="caption48" class="search_name" style="left:362px; top:7px; width:99px; height:17px; ">근무지 :</caption>
  146. <input id="ipt_dutunitcd_condition" ref="/root/main/search/dutplcenm" class="input_s_essential" navindex="7" editable="false" style="left:455px; top:7px; width:190px; height:19px; ">
  147. <script type="javascript" ev:event="onclick">
  148. <![CDATA[
  149. model.setValue("/root/main/search/dutplcecd", "");
  150. model.setValue("/root/main/search/dutplcenm", "");
  151. model.refresh();
  152. ]]>
  153. </script>
  154. <script type="javascript" ev:event="onkeyup">
  155. <![CDATA[
  156. inputEnterKey("btn_search", "DOMActivate");
  157. ]]>
  158. </script>
  159. </input>
  160. <button id="btn_search_dutplce" class="icon_search" navindex="8" style="left:649px; top:7px; width:16px; height:16px; ">
  161. <script type="javascript" ev:event="DOMActivate">
  162. <![CDATA[
  163. var search_condition = "deptnm";
  164. var search_term = model.getValue("/root/main/search/dutplcenm");
  165. var receive_deptcd_path = "/root/main/search/dutplcecd";
  166. var receive_deptnm_path = "/root/main/search/dutplcenm";
  167. var standard_yn = null;
  168. var ord_deptflag = null;
  169. zbcfOpenInstDeptCodeList(
  170. search_condition,
  171. search_term,
  172. receive_deptcd_path,
  173. receive_deptnm_path,
  174. standard_yn,
  175. ord_deptflag,
  176. new Array("deptcd", "depthngnm", "deptengnm", "deptchinm", "depthngabbr", "deptengabbr")
  177. );
  178. ]]>
  179. </script>
  180. <caption/>
  181. </button>
  182. <caption id="caption1" class="search_name" style="left:705px; top:7px; width:96px; height:17px; ">조회기간 :</caption>
  183. <input id="ipt_valifromdd" ref="/root/main/search/valifromdd" class="input_default" navindex="26" inputtype="date" style="left:805px; top:7px; width:130px; height:19px; "/>
  184. <input id="ipt_valitodd" ref="/root/main/search/valitodd" class="input_default" navindex="26" inputtype="date" style="left:960px; top:7px; width:130px; height:19px; "/>
  185. <caption id="caption2" style="left:941px; top:7px; width:15px; height:20px; font-weight:bold; ">~</caption>
  186. </group>
  187. <line id="line1" class="line_1" style="x1:0px; y1:113px; x2:1194px; y2:113px; "/>
  188. <line id="line9" class="line_3" style="x1:0px; y1:595px; x2:1194px; y2:595px; "/>
  189. <caption id="caption17" class="tit_2" style="left:0px; top:95px; width:170px; height:14px; ">환자정보접근 허용자 목록</caption>
  190. <line id="line4" class="line_3" style="x1:0px; y1:743px; x2:1195px; y2:743px; "/>
  191. <datagrid id="grd_userdeptlist" nodeset="/root/main/list/userlist" caption="사용자ID^사용자명^근무지기관코드^근무지기관명^근무지코드^근무지명^ 근무지 적용시작일자^적용시작일시^적용종료일시^최초등록자ID^최초등록자명^최초등록일시^최종수정자ID^최종수정자명^최종수정일시" colsep="^" colwidth="100, 100, 100, 100, 100, 100, 129, 125, 125, 100, 100, 125, 100, 100, 125" explorerbar="sort" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" style="left:0px; top:116px; width:1195px; height:624px; ">
  192. <col ref="userid" type="inputbutton" editable="false">
  193. <script type="javascript" ev:event="onbuttonclick">
  194. <![CDATA[
  195. var row = grd_userdeptlist.row;
  196. var rowStatus = grd_userdeptlist.rowStatus(row);
  197. if(rowStatus==1 || rowStatus==3){
  198. model.setValue("/root/hidden/userdeptinfo", "");
  199. var dutplceinstcd = getUserInfo("dutplceinstcd");
  200. zsufGetUserDeptHistory("usernm", "", "/root/hidden/userdeptinfo", dutplceinstcd, '31');
  201. var result_string = model.getValue("/root/hidden/userdeptinfo");
  202. if(result_string!=""){
  203. var result_array = result_string.split("|");
  204. var userid = result_array[0];
  205. var usernm = result_array[1];
  206. var dutplceinstcd = result_array[2];
  207. var dutplceinstnm = result_array[3];
  208. var dutplcecd = result_array[4];
  209. var dutplcenm = result_array[5];
  210. var fromdd = result_array[6];
  211. grd_userdeptlist.valueMatrix(row, grd_userdeptlist.colRef("userid")) = userid;
  212. grd_userdeptlist.valueMatrix(row, grd_userdeptlist.colRef("usernm")) = usernm;
  213. grd_userdeptlist.valueMatrix(row, grd_userdeptlist.colRef("dutplceinstcd")) = dutplceinstcd;
  214. grd_userdeptlist.valueMatrix(row, grd_userdeptlist.colRef("dutplceinstnm")) = dutplceinstnm;
  215. grd_userdeptlist.valueMatrix(row, grd_userdeptlist.colRef("dutplcecd")) = dutplcecd;
  216. grd_userdeptlist.valueMatrix(row, grd_userdeptlist.colRef("dutplcenm")) = dutplcenm;
  217. grd_userdeptlist.valueMatrix(row, grd_userdeptlist.colRef("fromdd")) = fromdd;
  218. }
  219. }
  220. ]]>
  221. </script>
  222. </col>
  223. <col ref="usernm"/>
  224. <col ref="dutplceinstcd"/>
  225. <col ref="dutplceinstnm"/>
  226. <col ref="dutplcecd"/>
  227. <col ref="dutplcenm"/>
  228. <col ref="fromdd" format="yyyy-mm-dd"/>
  229. <col ref="valifromdt" type="input" format="yyyy-mm-dd hh:nn:ss" editable="false"/>
  230. <col ref="valitodt" format="yyyy-mm-dd hh:nn:ss"/>
  231. <col ref="fstrgstrid"/>
  232. <col ref="fstrgstrnm"/>
  233. <col ref="fstrgstdt" format="yyyy-mm-dd hh:nn:ss"/>
  234. <col ref="lastupdtrid"/>
  235. <col ref="lastupdtrnm"/>
  236. <col ref="lastupdtdt" format="yyyy-mm-dd hh:nn:ss"/>
  237. <script type="javascript" ev:event="onendedit">
  238. <![CDATA[
  239. var valifromdt = null;
  240. var accesstime = null;
  241. var newDateObj = null;
  242. var valitodt = null;
  243. valifromdt = grd_userdeptlist.valueMatrix(grd_userdeptlist.row, grd_userdeptlist.colRef("valifromdt"));
  244. newDateObj = valifromdt.toDate("YYYYMMDDhhmmss");
  245. accesstime = eval(model.getValue("/root/init/comcd/timelist/Z0018[1]/cdnm"));
  246. newDateObj = newDateObj.getAddDate(accesstime, "h")
  247. valitodt = getDateTime(newDateObj,"A");
  248. grd_userdeptlist.valueMatrix(grd_userdeptlist.row, grd_userdeptlist.colRef("valitodt")) = valitodt;
  249. ]]>
  250. </script>
  251. </datagrid>
  252. </group>
  253. <group id="grp_btn" style="left:0px; top:13px; width:1195px; height:27px; ">
  254. <button id="btn_save" class="btn4_letter2" style="left:1135px; top:0px; width:56px; height:22px; ">
  255. <caption>저장</caption>
  256. <script type="javascript" ev:event="DOMActivate">
  257. <![CDATA[
  258. var col = grd_userdeptlist.colRef("valifromdt") - 1;
  259. for(i=grd_userdeptlist.fixedRows; i<grd_userdeptlist.rows; i++){
  260. var row_status = grd_userdeptlist.rowStatus(i);
  261. if( row_status == 1 || row_status == 3 ){
  262. var userid = grd_userdeptlist.valueMatrix(i, grd_userdeptlist.colRef("userid"));
  263. var valifromdt = grd_userdeptlist.valueMatrix(i, grd_userdeptlist.colRef("valifromdt"));
  264. if(userid==""){
  265. //messageBox("사용자부서를", "C001");
  266. grd_userdeptlist.row = i;
  267. grd_userdeptlist.col = grd_userdeptlist.colRef("userid");
  268. grd_userdeptlist.editCell();
  269. return;
  270. }else if(valifromdt.length<14){
  271. //messageBox("적용시작일시를 초단위까지", "C001");
  272. grd_userdeptlist.row = i;
  273. grd_userdeptlist.col = grd_userdeptlist.colRef("valifromdt");
  274. grd_userdeptlist.editCell();
  275. return;
  276. }
  277. }
  278. }
  279. var data = grd_userdeptlist.getUpdateData();
  280. model.setValue("/root/send/data", data);
  281. var success = submit("TXZSU10116");
  282. if(success){
  283. var search_condition = model.getValue("/root/main/search/searchcondition");
  284. var search_term = model.getValue("/root/main/search/searchterm");
  285. var dutplcecd = model.getValue("/root/main/search/dutplcecd");
  286. var valifromdd = model.getValue("/root/main/search/valifromdd");
  287. var valitodd = model.getValue("/root/main/search/valitodd");
  288. model.setValue("/root/send/searchcondition", search_condition);
  289. model.setValue("/root/send/searchterm", search_term);
  290. model.setValue("/root/send/dutplcecd", dutplcecd);
  291. model.setValue("/root/send/valifromdd", valifromdd);
  292. model.setValue("/root/send/valitodd", valitodd);
  293. var success = submit("TRZSU10113");
  294. if(success){
  295. model.setValue("/root/main/mode", "retrived");
  296. for(var j=1; j<grd_userdeptlist.rows; j++){
  297. grd_userdeptlist.cellAttribute("editable", j, col) ="false";
  298. }
  299. model.refresh();
  300. }
  301. }
  302. ]]>
  303. </script>
  304. </button>
  305. <button id="btn_init" class="btn4_letter3" style="left:1067px; top:0px; width:68px; height:22px; ">
  306. <caption>초기화</caption>
  307. <script type="javascript" ev:event="DOMActivate">
  308. <![CDATA[
  309. model.removenode("/root/main/list");
  310. model.makeNode("/root/main/list");
  311. model.refresh();
  312. ]]>
  313. </script>
  314. </button>
  315. <line id="line3" class="line_6" style="x1:0px; y1:25px; x2:1194px; y2:25px; "/>
  316. </group>
  317. </xhtml:body>
  318. </xhtml:html>