SMMNE09100_인턴근무현황.xrw 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322
  1. <?xml version="1.0" encoding="UTF-8"?>
  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. <main>
  10. <dutinfo>
  11. <dutlist/>
  12. </dutinfo>
  13. </main>
  14. <cond>
  15. <sdate/>
  16. <edate/>
  17. <dutcd/>
  18. <drid/>
  19. <subdeptcd/>
  20. </cond>
  21. <init>
  22. <orddeptinfo>
  23. <orddeptinfolist>
  24. <orddeptcd/>
  25. <orddeptnm/>
  26. </orddeptinfolist>
  27. </orddeptinfo>
  28. <basic>
  29. <dept>
  30. <depthngnm/>
  31. <deptcd/>
  32. </dept>
  33. </basic>
  34. </init>
  35. <send/>
  36. <memocond>
  37. <yyyy/>
  38. <fromdd/>
  39. <todd/>
  40. <dutcd/>
  41. <subdeptcd/>
  42. </memocond>
  43. </root>
  44. </instance>
  45. <script type="javascript" ev:event="xforms-ready">
  46. <![CDATA[
  47. var sStartdate = getCurrentDate().substr(0, 6) + "01";
  48. var sCurdate = getCurrentDate();
  49. model.setValue("/root/cond/sdate", sStartdate);
  50. model.setValue("/root/cond/edate", sCurdate);
  51. fDutinfo();
  52. fDrinfo();
  53. model.refresh();
  54. ]]>
  55. </script>
  56. <!--submission id="TRMNW00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/init/basic"/>
  57. <submission id="TRMNE05801" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/workerinfo/workerinfolist"/>
  58. <submission id="TRMNE05802" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/init/drinfo"/>
  59. <submission id="TRMNE05803" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/init/deptinfo"/>
  60. <submission id="TRMNE05804" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/prtinfo"/>
  61. <submission id="TRMNE05805" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/userinfo"/>
  62. <submission id="TXMNE05801" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/workerinfo/workerinfolist"/-->
  63. <submission id="TRMNE09101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/init"/>
  64. <submission id="TRMNE09102" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/dutinfo"/>
  65. <submission id="TRMNE09103" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/init/drinfo"/>
  66. <submission id="TRMNE09104" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/memoinfo"/>
  67. <submission id="TXMNE09101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/savedata" resultref="/root/temp"/>
  68. <submission id="TXMNE09102" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/savedata" resultref="/root/temp"/>
  69. </model>
  70. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  71. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  72. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  73. <script type="javascript" src="../../../emr/carecomweb/js/CareCom.js"/>
  74. <script type="javascript">
  75. <![CDATA[
  76. var xPAth = "/root/main/workerinfo/workerinfolist";
  77. function fDutinfo() {
  78. var sStartdate = model.getValue("/root/cond/sdate");
  79. var sCurdate = model.getValue("/root/cond/edate");
  80. model.makeValue("/root/send/sdate", sStartdate);
  81. model.makeValue("/root/send/edate", sCurdate);
  82. submit("TRMNE09101");
  83. }
  84. function fDrinfo() {
  85. var sStartdate = model.getValue("/root/cond/sdate");
  86. var sCurdate = model.getValue("/root/cond/edate");
  87. var sDutcd = model.getValue("/root/cond/dutcd");
  88. var sSubdeptcd = model.getValue("/root/cond/subdeptcd");
  89. if (sDutcd == "-") {
  90. sDutcd = "";
  91. }
  92. model.makeValue("/root/send/sdate", sStartdate);
  93. model.makeValue("/root/send/edate", sCurdate);
  94. model.makeValue("/root/send/dutcd", sDutcd);
  95. model.makeValue("/root/send/subdeptcd", sSubdeptcd);
  96. submit("TRMNE09103");
  97. }
  98. function fSearch() {
  99. var sStartdate = model.getValue("/root/cond/sdate");
  100. var sCurdate = model.getValue("/root/cond/edate");
  101. var sDutcd = model.getValue("/root/cond/dutcd");
  102. if (sDutcd == "-") {
  103. sDutcd = "";
  104. }
  105. var sSubdepetcd = model.getValue("/root/cond/subdepetcd");
  106. var sDrid = model.getValue("/root/cond/drid");
  107. if (sDrid == "-") {
  108. sDrid = "";
  109. }
  110. model.makeValue("/root/send/sdate", sStartdate);
  111. model.makeValue("/root/send/edate", sCurdate);
  112. model.makeValue("/root/send/dutcd", sDutcd);
  113. model.makeValue("/root/send/subdepetcd", sSubdepetcd);
  114. model.makeValue("/root/send/drid", sDrid);
  115. submit("TRMNE09102");
  116. }
  117. function fSave() {
  118. var savedata = getGridUpdateData(grd_workerlist);
  119. model.removeNodeset("/root/send/savedata");
  120. model.makeValue("/root/send/savedata", savedata);
  121. submit("TXMNE09101");
  122. fSearch();
  123. }
  124. function fSaveMemo() {
  125. model.removeNodeset("/root/send/savedata");
  126. model.makeValue("/root/send/savedata/yyyy", model.getValue("/root/memocond/yyyy"));
  127. model.makeValue("/root/send/savedata/fromdd", model.getValue("/root/memocond/fromdd"));
  128. model.makeValue("/root/send/savedata/todd", model.getValue("/root/memocond/todd"));
  129. model.makeValue("/root/send/savedata/dutcd", model.getValue("/root/memocond/dutcd"));
  130. model.makeValue("/root/send/savedata/subdeptcd", model.getValue("/root/memocond/subdeptcd"));
  131. model.makeValue("/root/send/savedata/memo", model.getValue("/root/main/memoinfo/memolist/memo"));
  132. submit("TXMNE09102");
  133. //fSearch();
  134. }
  135. ]]>
  136. </script>
  137. </xhtml:head>
  138. <xhtml:body pagewidth="1000" pageheight="680" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  139. <group id="group3" scroll="auto" style="left:0px; top:87px; width:980px; height:335px; text-align:center; ">
  140. <line id="line3" class="line_1" style="x1:0px; y1:0px; x2:980px; y2:0px; "/>
  141. <datagrid id="grd_workerlist" nodeset="/root/main/dutinfo/dutlist" autoresize="true" caption="시작일자^종료일자^근무지^근무지코드^상세근무지^비고^의사^의사^n-zone^연락처^emplno^yyyy" colsep="^" colwidth="75, 75, 240, 0, 120, 150, 45, 70, 60, 100, 0, 0" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" style="left:0px; top:5px; width:980px; height:330px; ">
  142. <col ref="fromdd" format="yyyy-mm-dd"/>
  143. <col ref="todd" format="yyyy-mm-dd"/>
  144. <col ref="dutnm" style="text-align:left; "/>
  145. <col ref="dutcd"/>
  146. <col ref="subdeptcd" type="combo" style="text-align:left; ">
  147. <choices>
  148. <itemset nodeset="/root/init/dept/">
  149. <label ref="depthngnm"/>
  150. <value ref="deptcd"/>
  151. </itemset>
  152. </choices>
  153. </col>
  154. <col ref="cmt" type="input" style="text-align:left; "/>
  155. <col ref="drid"/>
  156. <col ref="drnm"/>
  157. <col ref="pdano"/>
  158. <col ref="mpphonno"/>
  159. <col ref="emplno"/>
  160. <col ref="yyyy"/>
  161. <script type="javascript" ev:event="onclick">
  162. <![CDATA[
  163. var row = grd_workerlist.row;
  164. var sYyyy = "";
  165. var sFromdd = "";
  166. var sTodd = "";
  167. var sDutcd = "";
  168. var sSubdeptcd = "";
  169. if (row > 0) {
  170. model.removeNodeset("/root/send");
  171. sYyyy = model.getValue("/root/main/dutinfo/dutlist[" + row + "]/yyyy");
  172. sFromdd = model.getValue("/root/main/dutinfo/dutlist[" + row + "]/fromdd");
  173. sTodd = model.getValue("/root/main/dutinfo/dutlist[" + row + "]/todd");
  174. sDutcd = model.getValue("/root/main/dutinfo/dutlist[" + row + "]/dutcd");
  175. sSubdeptcd = model.getValue("/root/main/dutinfo/dutlist[" + row + "]/subdeptcd");
  176. if (sDutcd == "" && sSubdeptcd == "") {
  177. messageBox("조회할 근무지 정보가 없습니다.", "E999");
  178. } else {
  179. model.makeValue("/root/memocond/yyyy", sYyyy);
  180. model.makeValue("/root/memocond/fromdd", sFromdd);
  181. model.makeValue("/root/memocond/todd", sTodd);
  182. model.makeValue("/root/memocond/dutcd", sDutcd);
  183. model.makeValue("/root/memocond/subdeptcd", sSubdeptcd);
  184. model.makeValue("/root/send/yyyy", sYyyy);
  185. model.makeValue("/root/send/fromdd", sFromdd);
  186. model.makeValue("/root/send/todd", sTodd);
  187. model.makeValue("/root/send/dutcd", sDutcd);
  188. model.makeValue("/root/send/subdeptcd", sSubdeptcd);
  189. if ( submit("TRMNE09104") ) {
  190. dutnm = model.getValue("/root/main/memoinfo/memolist/dutnm");
  191. subdeptnm = model.getValue("/root/main/memoinfo/memolist/subdeptnm");
  192. caption4.text = "근무지 별 메모 (" + dutnm + " / " + subdeptnm + ")";
  193. model.refresh();
  194. }
  195. }
  196. }
  197. ]]>
  198. </script>
  199. </datagrid>
  200. </group>
  201. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:720px; height:13px; ">기간별 인턴 근무현황</caption>
  202. <group id="group4" style="left:1px; top:20px; width:980px; height:65px; vertical-align:top; ">
  203. <shape id="roundrect1" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:980px; height:65px; "/>
  204. <button id="btn_search" class="btn1_letter2" navindex="3" style="left:841px; top:23px; width:56px; height:22px; ">
  205. <caption>조회</caption>
  206. <script type="javascript" ev:event="DOMActivate">
  207. <![CDATA[
  208. fSearch();
  209. ]]>
  210. </script>
  211. </button>
  212. <caption id="caption5" class="search_name" style="left:4px; top:11px; width:91px; height:17px; background-image:../../../com/commonweb/images/search_bullet1.gif; ">기 간:</caption>
  213. <caption id="caption8" style="left:197px; top:9px; width:15px; height:20px; font-weight:bold; ">~</caption>
  214. <input id="ipt_srhto" ref="/root/cond/edate" class="input_s_essential" inputtype="date" style="left:215px; top:10px; width:92px; height:19px; text-align:center; background-image:../../../com/commonweb/images/input_s_essential.gif; "/>
  215. <script type="javascript" ev:event="xforms-value-changed">
  216. <![CDATA[
  217. fDutinfo();
  218. fDrinfo();
  219. ]]>
  220. </script>
  221. <input id="ipt_srhfrom" ref="/root/cond/sdate" class="input_s_essential" inputtype="date" style="left:95px; top:10px; width:92px; height:19px; text-align:center; background-image:../../../com/commonweb/images/input_s_essential.gif; ">
  222. <script type="javascript" ev:event="xforms-value-changed">
  223. <![CDATA[
  224. fDutinfo();
  225. fDrinfo();
  226. ]]>
  227. </script>
  228. </input>
  229. <caption id="caption1" class="search_name" style="left:4px; top:39px; width:92px; height:17px; ">근 무 지:</caption>
  230. <select1 id="cmb_dept" ref="/root/cond/dutcd" class="combo_search" appearance="minimal" style="left:95px; top:37px; width:213px; height:19px; ">
  231. <choices>
  232. <itemset nodeset="/root/init/dutinfo">
  233. <label ref="dutnm"/>
  234. <value ref="dutcd"/>
  235. </itemset>
  236. </choices>
  237. <script type="javascript" ev:event="xforms-value-changed">
  238. <![CDATA[
  239. fDrinfo();
  240. ]]>
  241. </script>
  242. </select1>
  243. <line id="line1" style="x1:831px; y1:11px; x2:831px; y2:55px; border-color:#ffe4bb; border-left-style:solid; "/>
  244. <caption id="caption2" class="search_name" style="left:624px; top:39px; width:92px; height:17px; ">의 사:</caption>
  245. <select1 id="combo1" ref="/root/cond/drid" class="combo_search" appearance="minimal" style="left:710px; top:37px; width:85px; height:19px; ">
  246. <choices>
  247. <itemset nodeset="/root/init/drinfo/drinfo">
  248. <label ref="drnm"/>
  249. <value ref="drid"/>
  250. </itemset>
  251. </choices>
  252. </select1>
  253. <button id="button1" class="btn1_letter2" navindex="3" style="left:899px; top:23px; width:56px; height:22px; ">
  254. <caption>저장</caption>
  255. <script type="javascript" ev:event="DOMActivate">
  256. <![CDATA[
  257. fSave();
  258. ]]>
  259. </script>
  260. </button>
  261. <caption id="caption3" class="search_name" style="left:326px; top:39px; width:95px; height:17px; ">상세근무지:</caption>
  262. <select1 id="combo2" ref="/root/cond/subdeptcd" class="combo_search" appearance="minimal" style="left:427px; top:37px; width:168px; height:19px; ">
  263. <choices>
  264. <itemset nodeset="/root/init/dept/">
  265. <label ref="depthngnm"/>
  266. <value ref="deptcd"/>
  267. </itemset>
  268. </choices>
  269. <script type="javascript" ev:event="xforms-value-changed">
  270. <![CDATA[
  271. fDrinfo();
  272. ]]>
  273. </script>
  274. </select1>
  275. </group>
  276. <group id="group1" scroll="auto" style="left:0px; top:427px; width:980px; height:228px; text-align:center; ">
  277. <line id="line2" class="line_1" style="x1:0px; y1:23px; x2:980px; y2:23px; "/>
  278. <caption id="caption4" class="tit_1" style="left:0px; top:5px; width:720px; height:13px; ">근무지 별 메모</caption>
  279. <textarea id="textarea1" ref="/root/main/memoinfo/memolist/memo" style="left:0px; top:28px; width:980px; height:200px; text-align:left; "/>
  280. <button id="button2" class="btn1_letter2" navindex="3" style="left:899px; top:0px; width:56px; height:22px; ">
  281. <caption>저장</caption>
  282. <script type="javascript" ev:event="DOMActivate">
  283. <![CDATA[
  284. fSaveMemo();
  285. ]]>
  286. </script>
  287. </button>
  288. </group>
  289. </xhtml:body>
  290. </xhtml:html>