SMPMC06600_의사별지원부서의사관리.xrw 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/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. <data1>
  11. <ref_deptcd/>
  12. <ref_date/>
  13. </data1>
  14. <data2>
  15. <userid/>
  16. <orddeptcd/>
  17. <ref_date/>
  18. </data2>
  19. <data3/>
  20. </send>
  21. <main>
  22. <doctlist>
  23. <doct/>
  24. </doctlist>
  25. <suppdoctlist>
  26. <suppdoct/>
  27. </suppdoctlist>
  28. </main>
  29. <init>
  30. <deptlist>
  31. <dept>
  32. <cd/>
  33. <nm/>
  34. </dept>
  35. </deptlist>
  36. <suppdeptlist>
  37. <suppdept>
  38. <cd/>
  39. <nm/>
  40. </suppdept>
  41. </suppdeptlist>
  42. <suppdoctlist>
  43. <doct>
  44. <cd/>
  45. <nm/>
  46. </doct>
  47. </suppdoctlist>
  48. <PAM>
  49. <P0057list>
  50. <P0057>
  51. <cdnm/>
  52. <cdid/>
  53. <detl/>
  54. </P0057>
  55. </P0057list>
  56. </PAM>
  57. </init>
  58. <hidden>
  59. <result/>
  60. </hidden>
  61. </root>
  62. </instance>
  63. <submission id="TRPMC06601" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data1" resultref="/root/init"/>
  64. <submission id="TRPMC06602" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data1" resultref="/root/main/doctlist"/>
  65. <submission id="TRPMC06603" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data2" resultref="/root/main/suppdoctlist"/>
  66. <submission id="TXPMC06601" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data3" resultref="/root/hidden/result"/>
  67. <submission id="TRPAM00105" mediatype="application/x-www-form-urlencoded" method="post"/>
  68. <script type="javascript" ev:event="xforms-ready">
  69. <![CDATA[
  70. model.setValue("/root/send/data1/ref_date", getCurrentDate());
  71. model.setValue("/root/send/data2/ref_date", getCurrentDate());
  72. submit("TRPMC06601", false);
  73. submit("TRPMC06602", false);
  74. pamfGetCodeList(new Array("P0057"), new Array("/root/init/PAM/P0057list"));
  75. model.makeNode("/root/init/suppdoctlist");
  76. copyNodeType("/root/init/suppdoctlist", "/root/main/doctlist", "replace");
  77. model.removeNodeset("/root/main/doctlist/doct");
  78. //model.resetInstanceNode("/root/main/doctlist")
  79. model.refresh();
  80. ]]>
  81. </script>
  82. </model>
  83. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  84. <script type="javascript" src="../../../com/commonweb/js/utilHelper.js"/>
  85. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  86. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  87. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  88. <script type="javascript" src="../../../pam/pamcomnweb/js/PAM.js"/>
  89. <script type="javascript" src="../../../pam/pamcomnweb/js/PMC001.js"/>
  90. <script type="javascript" src="../../../pam/pamcomnweb/js/PAM001.js"/>
  91. <script type="javascript">
  92. <![CDATA[
  93. function fInitialize() {
  94. model.resetInstanceNode("/root/send");
  95. model.removeNodeset("/root/main/doctlist/doct");
  96. model.removeNodeset("/root/main/suppdoctlist/suppdoct");
  97. model.setValue("/root/send/data1/ref_date", getCurrentDate());
  98. model.setValue("/root/send/data2/ref_date", getCurrentDate());
  99. grd_suppdoctlist.clearStatus();
  100. model.refresh();
  101. }
  102. function fGetDoctList() {
  103. submit("TRPMC06602", false);
  104. model.refresh();
  105. }
  106. ]]>
  107. </script>
  108. </xhtml:head>
  109. <xhtml:body guideline="1,1192;1,1195;2,52;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  110. <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
  111. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:200px; height:14px; ">의사별지원부서의사관리</caption>
  112. </group>
  113. <group id="group3" style="left:0px; top:13px; width:1195px; height:744px; ">
  114. <group id="group2" style="left:0px; top:10px; width:1194px; height:35px; ">
  115. <shape id="roundrect1" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1194px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
  116. <line id="line2" class="line_4" style="x1:1108px; y1:7px; x2:1108px; y2:29px; border-color:#ffe4bb; border-left-style:solid; "/>
  117. <caption id="caption17" class="search_name" style="left:5px; top:8px; width:86px; height:17px; ">진료과 :</caption>
  118. <button id="btn_ref" class="btn1_letter2" style="left:1123px; top:7px; width:56px; height:22px; ">
  119. <caption>조회</caption>
  120. <script type="javascript" ev:event="DOMActivate">
  121. <![CDATA[
  122. model.dispatch("grd_doctlist", "onclick");
  123. ]]>
  124. </script>
  125. </button>
  126. <select1 id="cmb_deptcd" ref="/root/send/data1/ref_deptcd" appearance="minimal" style="left:82px; top:7px; width:148px; height:19px; ">
  127. <choices>
  128. <itemset nodeset="/root/init/deptlist/dept">
  129. <label ref="nm"/>
  130. <value ref="cd"/>
  131. </itemset>
  132. </choices>
  133. <script type="javascript" ev:event="xforms-select">
  134. <![CDATA[
  135. fGetDoctList();
  136. ]]>
  137. </script>
  138. </select1>
  139. <caption id="caption1" class="search_name" style="left:248px; top:7px; width:86px; height:17px; ">기준일자 :</caption>
  140. <input id="ipt_date" ref="/root/send/data1/ref_date" inputtype="date" style="left:339px; top:6px; width:100px; height:19px; "/>
  141. </group>
  142. <caption id="caption2" class="tit_2" style="left:5px; top:55px; width:85px; height:13px; font-family:돋움; vertical-align:middle; ">진료의사</caption>
  143. <line id="line1" class="line_1" style="x1:0px; y1:70px; x2:1194px; y2:70px; "/>
  144. <datagrid id="grd_doctlist" nodeset="/root/main/doctlist/doct" class="datagrid2" caption="전문의^선택&#xA;여부^입력&#xA;여부^orddeptcd" colsep="^" colwidth="100, 40, 40, 20" explorerbar="sort" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:0px; top:75px; width:230px; height:665px; ">
  145. <col ref="usernm" style="text-align:left; "/>
  146. <col ref="specyn" style="text-align:center; "/>
  147. <col ref="saveyn" style="text-align:center; "/>
  148. <col ref="deptcd" visibility="hidden"/>
  149. <script type="javascript" ev:event="onclick">
  150. <![CDATA[
  151. if(isDataCell()) {
  152. var iRow = grd_doctlist.row;
  153. var sOrddrid = model.getValue("/root/main/doctlist/doct[" + iRow + "]/userid");
  154. var sOrddeptcd = model.getValue("/root/main/doctlist/doct[" + iRow + "]/deptcd");
  155. model.setValue("/root/send/data2/userid", sOrddrid);
  156. model.setValue("/root/send/data2/orddeptcd", sOrddeptcd);
  157. model.setValue("/root/send/data2/ref_date", model.getValue("/root/send/data1/ref_date"));
  158. model.removeNodeset("/root/main/suppdoctlist/suppdoct");
  159. grd_suppdoctlist.clearStatus();
  160. grd_suppdoctlist.refresh();
  161. submit("TRPMC06603", false);
  162. grd_suppdoctlist.refresh();
  163. var iCount = getNodesetCount("/root/main/suppdoctlist/suppdoct");
  164. var iSuppCount = getNodesetCount("/root/init/suppdeptlist/suppdept"); // 지원진료과 리스트 카운트
  165. if (iCount == 0) {
  166. for (var idx = 1 ; idx <= iSuppCount ; idx++) {
  167. grd_suppdoctlist.addRow();
  168. var sSuppDeptCd = model.getValue("/root/init/suppdeptlist/suppdept[" + idx + "]/cd");
  169. model.setValue("/root/main/suppdoctlist/suppdoct[" + idx + "]/orddrid", sOrddrid);
  170. model.setValue("/root/main/suppdoctlist/suppdoct[" + idx + "]/orddeptcd", sOrddeptcd);
  171. model.setValue("/root/main/suppdoctlist/suppdoct[" + idx + "]/suppdeptcd", sSuppDeptCd); // 지원진료과코드
  172. model.setValue("/root/main/suppdoctlist/suppdoct[" + idx + "]/specdrid1", "-");
  173. model.setValue("/root/main/suppdoctlist/suppdoct[" + idx + "]/specdrid2", "-");
  174. model.setValue("/root/main/suppdoctlist/suppdoct[" + idx + "]/specdrid3", "-");
  175. model.setValue("/root/main/suppdoctlist/suppdoct[" + idx + "]/fromdd", getCurrentDate());
  176. model.setValue("/root/main/suppdoctlist/suppdoct[" + idx + "]/todd", "99991231");
  177. model.setValue("/root/main/suppdoctlist/suppdoct[" + idx + "]/remfact", "-");
  178. model.setValue("/root/main/suppdoctlist/suppdoct[" + idx + "]/suppdeptcd_old", "");
  179. model.setValue("/root/main/suppdoctlist/suppdoct[" + idx + "]/fromdd_old", "");
  180. model.setValue("/root/main/suppdoctlist/suppdoct[" + idx + "]/todd_old", "");
  181. grd_suppdoctlist.cellComboNodeset(idx, 2) = "/root/init/suppdoctlist/doct[deptcd = '" + sSuppDeptCd + "' ]";
  182. grd_suppdoctlist.cellComboNodeset(idx, 3) = "/root/init/suppdoctlist/doct[deptcd = '" + sSuppDeptCd + "' ]";
  183. grd_suppdoctlist.cellComboNodeset(idx, 4) = "/root/init/suppdoctlist/doct[deptcd = '" + sSuppDeptCd + "' ]";
  184. grd_suppdoctlist.refresh();
  185. }
  186. } else {
  187. for (var idx = 1 ; idx <= iSuppCount ; idx++) {
  188. grd_suppdoctlist.clearStatus();
  189. var sSuppDeptCd = model.getValue("/root/main/suppdoctlist/suppdoct[" + idx + "]/suppdeptcd");
  190. grd_suppdoctlist.cellComboNodeset(idx, 2) = "/root/init/suppdoctlist/doct[deptcd = '" + sSuppDeptCd + "' ]";
  191. grd_suppdoctlist.cellComboNodeset(idx, 3) = "/root/init/suppdoctlist/doct[deptcd = '" + sSuppDeptCd + "' ]";
  192. grd_suppdoctlist.cellComboNodeset(idx, 4) = "/root/init/suppdoctlist/doct[deptcd = '" + sSuppDeptCd + "' ]";
  193. grd_suppdoctlist.refresh();
  194. }
  195. }
  196. model.refresh();
  197. }
  198. ]]>
  199. </script>
  200. </datagrid>
  201. <datagrid id="grd_suppdoctlist" nodeset="/root/main/suppdoctlist/suppdoct" caption="진료지원부서^선택진료의1^선택진료의2^선택진료의3^시작일자^종료일자^참고사항^orddeptcd^orddrid^suppdeptcd_old^fromdd_old^todd_old" colsep="^" colwidth="150, 80, 80, 80, 100, 100, 346, 20, 20, 20, 20, 20" dataheight="23" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="32" rowsep="|" style="left:235px; top:75px; width:957px; height:665px; ">
  202. <col disabled="true" ref="suppdeptcd" type="combo">
  203. <choices>
  204. <itemset nodeset="/root/init/suppdeptlist/suppdept">
  205. <label ref="nm"/>
  206. <value ref="cd"/>
  207. </itemset>
  208. </choices>
  209. </col>
  210. <col ref="specdrid1" type="combo">
  211. <choices>
  212. <itemset nodeset="/root/init/suppdoctlist/doct">
  213. <label ref="usernm"/>
  214. <value ref="userid"/>
  215. </itemset>
  216. </choices>
  217. </col>
  218. <col ref="specdrid2" type="combo">
  219. <choices>
  220. <itemset nodeset="/root/init/suppdoctlist/doct">
  221. <label ref="usernm"/>
  222. <value ref="userid"/>
  223. </itemset>
  224. </choices>
  225. </col>
  226. <col ref="specdrid3" type="combo">
  227. <choices>
  228. <itemset nodeset="/root/init/suppdoctlist/doct">
  229. <label ref="usernm"/>
  230. <value ref="userid"/>
  231. </itemset>
  232. </choices>
  233. </col>
  234. <col ref="fromdd" type="inputdate"/>
  235. <col ref="todd" type="inputdate"/>
  236. <col ref="remfact" type="input"/>
  237. <col ref="orddeptcd" visibility="hidden"/>
  238. <col ref="orddrid" visibility="hidden"/>
  239. <col ref="suppdeptcd_old" visibility="hidden"/>
  240. <col ref="fromdd_old" visibility="hidden"/>
  241. <col ref="todd_old" visibility="hidden"/>
  242. <script type="javascript" ev:event="xforms-value-changed">
  243. <![CDATA[
  244. var iRow = grd_suppdoctlist.row;
  245. var iCol = grd_suppdoctlist.col;
  246. var sDeptCD = model.getValue("/root/main/suppdoctlist/suppdoct[" + iRow + "]/suppdeptcd");
  247. if (sDeptCD != null) {
  248. grd_suppdoctlist.cellComboNodeset(iRow, 2) = "/root/init/suppdoctlist/doct[deptcd = '" + sDeptCD + "' ]";
  249. grd_suppdoctlist.cellComboNodeset(iRow, 3) = "/root/init/suppdoctlist/doct[deptcd = '" + sDeptCD + "' ]";
  250. grd_suppdoctlist.cellComboNodeset(iRow, 4) = "/root/init/suppdoctlist/doct[deptcd = '" + sDeptCD + "' ]";
  251. grd_suppdoctlist.refresh();
  252. }
  253. //alert (sDeptCD);
  254. ]]>
  255. </script>
  256. </datagrid>
  257. <caption id="caption3" class="tit_2" style="left:240px; top:55px; width:126px; height:14px; font-family:돋움; vertical-align:middle; ">진료지원 선택의사</caption>
  258. </group>
  259. <group id="group5" style="left:0px; top:757px; width:1195px; height:27px; ">
  260. <button id="button2" class="btn4_letter3" style="left:1126px; top:5px; width:68px; height:22px; ">
  261. <caption>초기화</caption>
  262. <script type="javascript" ev:event="DOMActivate">
  263. <![CDATA[
  264. fInitialize();
  265. ]]>
  266. </script>
  267. </button>
  268. <line id="line32" class="line_6" style="x1:0px; y1:0px; x2:1194px; y2:0px; "/>
  269. <button id="btn_save" class="btn4_letter2" style="left:1065px; top:5px; width:56px; height:22px; ">
  270. <caption>저장</caption>
  271. <script type="javascript" ev:event="DOMActivate">
  272. <![CDATA[
  273. model.resetInstanceNode("/root/send/data3");
  274. model.setValue("/root/send/data3", getGridUpdateData(grd_suppdoctlist));
  275. if(submit("TXPMC06601", false)) {
  276. messageBox("저장되었습니다!!", "I");
  277. model.resetInstanceNode("/root/send/data3");
  278. grd_suppdoctlist.clearStatus();
  279. model.dispatch("grd_doctlist", "onclick");
  280. }
  281. ]]>
  282. </script>
  283. </button>
  284. </group>
  285. <button id="btn_deleteRow" class="btn2_letter3" visibility="hidden" style="left:1139px; top:63px; width:53px; height:19px; ">
  286. <caption>행삭제</caption>
  287. <script type="javascript" ev:event="onclick">
  288. <![CDATA[
  289. if (grd_suppdoctlist.row >= 1) {
  290. grd_suppdoctlist.addStatus(grd_aimtSearch.row, "delete");
  291. //model.setvalue("/root/main/aimtgrd/gridaimtsearch[" + grd_aimtSearch.row +"]/state", "D");
  292. model.refresh();
  293. }
  294. ]]>
  295. </script>
  296. </button>
  297. <button id="btn_addRow" class="btn2_letter3" visibility="hidden" style="left:1083px; top:63px; width:53px; height:19px; ">
  298. <caption>행추가</caption>
  299. <script type="javascript" ev:event="onclick">
  300. <![CDATA[
  301. grd_suppdoctlist.addRow();
  302. grd_suppdoctlist.refresh();
  303. ]]>
  304. </script>
  305. </button>
  306. </xhtml:body>
  307. </xhtml:html>