SMMNE05800_기간별권역외상당직조회.xrw 31 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737
  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. <workerinfo>
  11. <workerinfolist/>
  12. </workerinfo>
  13. <scheinfo>
  14. <schelist/>
  15. </scheinfo>
  16. <scheuserinfo>
  17. <scheusertel/>
  18. </scheuserinfo>
  19. </main>
  20. <cond>
  21. <sdate/>
  22. <edate/>
  23. <deptcd/>
  24. <gbn>A</gbn>
  25. <drid/>
  26. <workno/>
  27. </cond>
  28. <init>
  29. <orddeptinfo>
  30. <orddeptinfolist>
  31. <orddeptcd/>
  32. <orddeptnm/>
  33. </orddeptinfolist>
  34. </orddeptinfo>
  35. </init>
  36. <send/>
  37. </root>
  38. </instance>
  39. <script type="javascript" ev:event="xforms-ready">
  40. <![CDATA[
  41. grd_workerlist.fixedcellcheckbox(0, 0) = true;
  42. var sStartdate = getCurrentDate().substr(0, 6) + "01";
  43. var sCurdate = getCurrentDate();
  44. model.setValue("/root/cond/sdate", sStartdate);
  45. model.setValue("/root/cond/edate", sCurdate);
  46. model.refresh();
  47. model.makeValue("/root/send/userid", getUserInfo("userid"));
  48. model.makeValue("/root/send/dutplcecd", getUserInfo("dutplcecd"));
  49. model.makeValue("/root/send/workdd", getCurrentDate());
  50. submit("TRMNE05805");
  51. if (model.getValue("/root/main/userinfo/superuser") == "Y") {
  52. btn_confirm.disabled = false;
  53. btn_workno.disabled = false;
  54. rdo_workno.disabled = false;
  55. } else {
  56. btn_confirm.disabled = true;
  57. btn_workno.disabled = true;
  58. rdo_workno.disabled = true;
  59. }
  60. ]]>
  61. </script>
  62. <!--submission id="TRMNE05401" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/init/orddeptinfo/orddeptinfolist"/-->
  63. <submission id="TRMNW00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/init"/>
  64. <submission id="TRMNE05801" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/workerinfo/workerinfolist"/>
  65. <submission id="TRMNE05802" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/init/drinfo"/>
  66. <submission id="TRMNE05803" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/init/deptinfo"/>
  67. <submission id="TRMNE05804" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/prtinfo"/>
  68. <submission id="TRMNE05805" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/userinfo"/>
  69. <submission id="TRMNE05806" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/monthinfo" resultref="/root/main/scheinfo/schelist"/>
  70. <submission id="TRMNE05807" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/monthinfo" resultref="/root/main/scheuserinfo/scheusertel"/>
  71. <submission id="TXMNE05801" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/workerinfo/workerinfolist"/>
  72. <submission id="TXMNE05802" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/workerinfo/workerinfolist"/>
  73. <submission id="TXMNE05803" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/workno" resultref="/root/temp"/>
  74. </model>
  75. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  76. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  77. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  78. <script type="javascript" src="../../../emr/carecomweb/js/CareCom.js"/>
  79. <script type="javascript">
  80. <![CDATA[
  81. var xPAth = "/root/main/workerinfo/workerinfolist";
  82. function fInit() {
  83. }
  84. function fGetDeptList() {
  85. var sSdate = model.getValue("/root/cond/sdate");
  86. var sEdate = model.getValue("/root/cond/edate");
  87. var sGbn = model.getValue("/root/cond/gbn");
  88. model.removeNodeset("/root/send/info");
  89. model.makeValue("/root/send/info/sdate", sSdate);
  90. model.makeValue("/root/send/info/edate", sEdate);
  91. model.makeValue("/root/send/info/gbn", sGbn);
  92. submit("TRMNE05803");
  93. }
  94. function fGetDrList() {
  95. model.setValue("/root/cond/drid", "");
  96. var sSdate = model.getValue("/root/cond/sdate");
  97. var sEdate = model.getValue("/root/cond/edate");
  98. var sGbn = model.getValue("/root/cond/gbn");
  99. var sDeptcd = model.getValue("/root/cond/deptcd");
  100. model.removeNodeset("/root/send/info");
  101. model.makeValue("/root/send/info/sdate", sSdate);
  102. model.makeValue("/root/send/info/edate", sEdate);
  103. model.makeValue("/root/send/info/gbn", sGbn);
  104. model.makeValue("/root/send/info/deptcd", sDeptcd);
  105. submit("TRMNE05802");
  106. }
  107. function fWorkYn() {
  108. var sSuperUser = model.getValue("/root/main/userinfo/superuser");
  109. model.removeNodeset("/root/send/saveinfo");
  110. var sHeader = "deptcd▦workdd▦gbn▦duty▦workyn▦workynrid▩";
  111. var sData = "";
  112. for(var i = 2 ; i < grd_workerlist.rows; i++ ){
  113. if (model.getValue(xPAth + "[" + (i-1) + "]/sel") == "Y" && (model.getValue(xPAth + "[" + (i-1) + "]/drid") == getUserInfo("userid") || sSuperUser == "Y")) {
  114. sData += model.getValue(xPAth + "[" + (i-1) + "]/deptcd") + "▦"
  115. + model.getValue(xPAth + "[" + (i-1) + "]/workdd") + "▦"
  116. + model.getValue(xPAth + "[" + (i-1) + "]/gbncd") + "▦"
  117. + model.getValue(xPAth + "[" + (i-1) + "]/dutycd") + "▦"
  118. + "Y" + "▦"
  119. + model.getValue(xPAth + "[" + (i-1) + "]/drid") + "▩" ;
  120. }
  121. }
  122. model.makeValue("/root/send/saveinfo/savelist", sHeader+sData);
  123. submit("TXMNE05801");
  124. }
  125. function fConfirmYn() {
  126. var sSuperUser = model.getValue("/root/main/userinfo/superuser");
  127. if (sSuperUser != "Y") {
  128. return;
  129. }
  130. model.removeNodeset("/root/send/saveinfo");
  131. var sHeader = "deptcd▦workdd▦gbn▦duty▦confirmyn▩";
  132. var sData = "";
  133. for(var i = 2 ; i < grd_workerlist.rows; i++ ){
  134. if (model.getValue(xPAth + "[" + (i-1) + "]/sel") == "Y") {
  135. sData += model.getValue(xPAth + "[" + (i-1) + "]/deptcd") + "▦"
  136. + model.getValue(xPAth + "[" + (i-1) + "]/workdd") + "▦"
  137. + model.getValue(xPAth + "[" + (i-1) + "]/gbncd") + "▦"
  138. + model.getValue(xPAth + "[" + (i-1) + "]/dutycd") + "▦"
  139. + "Y▩" ;
  140. }
  141. }
  142. model.makeValue("/root/send/saveinfo/savelist", sHeader+sData);
  143. submit("TXMNE05802");
  144. }
  145. function fSaveWorkno () {
  146. var sHeader = "workdd▦duty▦drid▦drnm▦orddeptcd▦orddeptnm▦workno▩";
  147. var sData = "";
  148. for ( var i = 1; i < grd_month.rows; i++) {
  149. deptcd = grd_month.valueMatrix(i, grd_month.colRef("orddeptcd"));
  150. deptnm = grd_month.valueMatrix(i, grd_month.colRef("orddeptnm"));
  151. for ( var j = 1; j <= 7; j++) {
  152. if (grd_month.valueMatrix(i, grd_month.colRef("modify" + j)) == "Y") {
  153. drid = grd_month.valueMatrix(i, grd_month.colRef("drid" + j));
  154. drnm = grd_month.valueMatrix(i, grd_month.colRef("drnm" + j));
  155. workdd = grd_month.valueMatrix(i, grd_month.colRef("workdd" + j));
  156. workno = grd_month.valueMatrix(i, grd_month.colRef("workno" + j));
  157. sData += workdd + "▦"
  158. + "D" + "▦"
  159. + drid + "▦"
  160. + drnm + "▦"
  161. + deptcd + "▦"
  162. + deptnm + "▦"
  163. + workno + "▩" ;
  164. }
  165. }
  166. }
  167. model.removeNodeset("/root/send/workno");
  168. model.makeValue("/root/send/workno/savelist", sHeader + sData);
  169. submit("TXMNE05803");
  170. fSearchMonth();
  171. }
  172. function fSearchMonth() {
  173. model.removeNodeset("/root/send/monthinfo");
  174. model.makeValue("/root/send/monthinfo/schmonth", model.getValue("/root/cond/sdate").substr(0, 6));
  175. model.makeValue("/root/send/monthinfo/gbn", model.getValue("/root/send/info/gbn"));
  176. model.makeValue("/root/send/monthinfo/deptcd", model.getValue("/root/send/info/deptcd"));
  177. model.makeValue("/root/send/monthinfo/drid", model.getValue("/root/send/info/drid"));
  178. submit("TRMNE05806");
  179. var deptcd = "";
  180. var workno = "";
  181. for(var i = 1; i <= grd_month.rows; i++){
  182. if (i == 1) {
  183. grd_month.cellstyle("background-color", i, 0, i, 30) = "#FFF000";
  184. }
  185. if (i > 1) {
  186. j = i - 1;
  187. deptcd = model.getValue("/root/main/scheinfo/schelist[" + i + "]/orddeptcd");
  188. if (deptcd == "") {
  189. grd_month.cellstyle("background-color", i, 0, i, 30) = "#FFF000";
  190. } else {
  191. grd_month.cellstyle("background-color", i, 3, i, 30) = "#ffffff";
  192. grd_month.cellstyle("background-color", i, 2, i, 2) = "#ccffff";
  193. }
  194. }
  195. for ( var j= 1; j <= 7; j ++ ) {
  196. workno = model.getValue("/root/main/scheinfo/schelist[" + i + "]/workno" + j);
  197. drid = model.getValue("/root/main/scheinfo/schelist[" + i + "]/drid" + j);
  198. if (drid != "" && deptcd != "") {
  199. tmpColNo = parseInt(6 + (j - 1) * 4) ;
  200. switch (workno) {
  201. case "1":
  202. tmpBgColor = "#ff99cc";
  203. break;
  204. case "2":
  205. tmpBgColor = "#ffcc99";
  206. break;
  207. case "3":
  208. tmpBgColor = "#ffff99";
  209. break;
  210. case "4":
  211. tmpBgColor = "#ccffcc";
  212. break;
  213. case "5":
  214. tmpBgColor = "#ccffff";
  215. break;
  216. case "6":
  217. tmpBgColor = "#cc99ff";
  218. break;
  219. default:
  220. if (deptcd == "") {
  221. tmpBgColor = "#fff000";
  222. } else {
  223. tmpBgColor = "#ffffff";
  224. }
  225. break;
  226. }
  227. tmpDrCol = parseInt(tmpColNo - 3);
  228. grd_month.cellstyle("background-color", i, tmpDrCol, i, tmpColNo) = tmpBgColor;
  229. }
  230. }
  231. }
  232. }
  233. ]]>
  234. </script>
  235. </xhtml:head>
  236. <xhtml:body pagewidth="1130" pageheight="880" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  237. <group id="group3" scroll="auto" style="left:0px; top:92px; width:485px; height:745px; text-align:center; ">
  238. <line id="line3" class="line_1" style="x1:0px; y1:0px; x2:485px; y2:0px; "/>
  239. <datagrid id="grd_workerlist" nodeset="/root/main/workerinfo/workerinfolist" caption="^일자^구분^진료과^duty^의사^의사^근무&#xA;확인^최종&#xA;확인|^일자^구분^진료과^duty^사번^이름^근무&#xA;확인^최종&#xA;확인" colsep="^" colwidth="30, 70, 50, 80, 35, 45, 60, 55, 40" mergecellsfixedrows="bycolrec" rowsep="|" style="left:0px; top:5px; width:485px; height:740px; ">
  240. <col checkvalue="Y,N" ref="sel" type="checkbox"/>
  241. <col ref="workdd" format="yyyy-mm-dd"/>
  242. <col ref="gbn"/>
  243. <col ref="deptnm"/>
  244. <col ref="dutycd"/>
  245. <col ref="drid"/>
  246. <col ref="drnm"/>
  247. <col ref="worker"/>
  248. <col ref="confirmyn"/>
  249. </datagrid>
  250. </group>
  251. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:720px; height:13px; ">기간별 권역외상센터 당직의사 조회</caption>
  252. <group id="group4" style="left:0px; top:20px; width:1110px; height:70px; vertical-align:top; ">
  253. <shape id="roundrect1" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:1110px; height:70px; "/>
  254. <button id="btn_search" class="btn1_letter2" navindex="3" style="left:567px; top:12px; width:56px; height:22px; ">
  255. <caption>조회</caption>
  256. <script type="javascript" ev:event="DOMActivate">
  257. <![CDATA[
  258. var sSuperUser = model.getValue("/root/main/userinfo/superuser");
  259. var sSdate = model.getValue("/root/cond/sdate");
  260. var sEdate = model.getValue("/root/cond/edate");
  261. var sGbn = model.getValue("/root/cond/gbn");
  262. var sDeptcd = model.getValue("/root/cond/deptcd");
  263. var sDrid = model.getValue("/root/cond/drid");
  264. model.removeNodeset("/root/send/info");
  265. model.makeValue("/root/send/info/sdate", sSdate);
  266. model.makeValue("/root/send/info/edate", sEdate);
  267. model.makeValue("/root/send/info/gbn", sGbn);
  268. model.makeValue("/root/send/info/deptcd", sDeptcd);
  269. model.makeValue("/root/send/info/drid", sDrid);
  270. submit("TRMNE05801");
  271. for(var i = 2 ; i < grd_workerlist.rows; i++ ){
  272. //근무확인했으면 비활성화
  273. if (model.getValue(xPAth + "[" + (i-1) + "]/workyn") == "Y" && sSuperUser != "Y") {
  274. grd_workerlist.isReadOnly(i, grd_workerlist.colRef("sel")) = true;
  275. } else {
  276. //본인꺼만 활성화
  277. if (model.getValue(xPAth + "[" + (i-1) + "]/drid") == getUserInfo("userid") || "ENR" == getUserInfo("userid") || sSuperUser == "Y") {
  278. grd_workerlist.isReadOnly(i, grd_workerlist.colRef("sel")) = false;
  279. } else {
  280. grd_workerlist.isReadOnly(i, grd_workerlist.colRef("sel")) = true;
  281. }
  282. }
  283. }
  284. fSearchMonth();
  285. ]]>
  286. </script>
  287. </button>
  288. <caption id="caption5" class="search_name" style="left:4px; top:10px; width:91px; height:17px; background-image:../../../com/commonweb/images/search_bullet1.gif; ">기 간 :</caption>
  289. <caption id="caption8" style="left:184px; top:9px; width:15px; height:20px; font-weight:bold; ">~</caption>
  290. <input id="ipt_srhto" ref="/root/cond/edate" class="input_s_essential" inputtype="date" style="left:199px; top:10px; width:92px; height:19px; background-image:../../../com/commonweb/images/input_s_essential.gif; "/>
  291. <script type="javascript" ev:event="xforms-value-changed">
  292. <![CDATA[
  293. fInit();
  294. ]]>
  295. </script>
  296. <input id="ipt_srhfrom" ref="/root/cond/sdate" class="input_s_essential" inputtype="date" style="left:90px; top:10px; width:92px; height:19px; background-image:../../../com/commonweb/images/input_s_essential.gif; ">
  297. <script type="javascript" ev:event="xforms-value-changed">
  298. <![CDATA[
  299. fInit();
  300. ]]>
  301. </script>
  302. </input>
  303. <caption id="caption2" class="search_name" style="left:300px; top:10px; width:91px; height:17px; ">구 분 :</caption>
  304. <select1 id="radio1" ref="/root/cond/gbn" appearance="full" cellspacing="10" cols="3" overflow="visible" style="left:375px; top:10px; width:175px; height:20px; font-weight:bold; border-style:none; ">
  305. <choices>
  306. <item>
  307. <label>전체</label>
  308. <value>A</value>
  309. </item>
  310. <item>
  311. <label>당직</label>
  312. <value>T</value>
  313. </item>
  314. <item>
  315. <label>OnCall</label>
  316. <value>O</value>
  317. </item>
  318. </choices>
  319. <script type="javascript" ev:event="xforms-value-changed">
  320. <![CDATA[
  321. fInit();
  322. ]]>
  323. </script>
  324. </select1>
  325. <caption id="caption1" class="search_name" style="left:4px; top:39px; width:91px; height:17px; ">진 료 과 :</caption>
  326. <select1 id="cmb_dept" ref="/root/cond/deptcd" class="combo_search" appearance="minimal" style="left:90px; top:40px; width:200px; height:19px; ">
  327. <choices>
  328. <itemset nodeset="/root/init/deptinfo/">
  329. <label ref="deptnm"/>
  330. <value ref="deptid"/>
  331. </itemset>
  332. </choices>
  333. <script type="javascript" ev:event="DOMFocusIn">
  334. <![CDATA[
  335. fGetDeptList();
  336. ]]>
  337. </script>
  338. <script type="javascript" ev:event="xforms-value-changed">
  339. <![CDATA[
  340. fGetDrList();
  341. ]]>
  342. </script>
  343. </select1>
  344. <button id="button1" class="btn1_letter2" navindex="3" style="left:699px; top:12px; width:56px; height:22px; ">
  345. <caption>출력</caption>
  346. <script type="javascript" ev:event="DOMActivate">
  347. <![CDATA[
  348. var sSdate = model.getValue("/root/cond/sdate");
  349. var sEdate = model.getValue("/root/cond/edate");
  350. var sGbn = model.getValue("/root/cond/gbn");
  351. var sDeptcd = model.getValue("/root/cond/deptcd");
  352. var sDrid = model.getValue("/root/cond/drid");
  353. model.removeNodeset("/root/send/info");
  354. model.makeValue("/root/send/info/sdate", sSdate);
  355. model.makeValue("/root/send/info/edate", sEdate);
  356. model.makeValue("/root/send/info/gbn", sGbn);
  357. model.makeValue("/root/send/info/deptcd", sDeptcd);
  358. model.makeValue("/root/send/info/drid", sDrid);
  359. submit("TRMNE05804");
  360. exeReportPreview("RPMNE05800", "XMLSTR","","","");
  361. ]]>
  362. </script>
  363. </button>
  364. <line id="line1" style="x1:560px; y1:11px; x2:560px; y2:61px; border-color:#ffe4bb; border-left-style:solid; "/>
  365. <button id="button2" class="btn2_letter4" navindex="3" style="left:567px; top:38px; width:64px; height:19px; ">
  366. <caption>근무확인</caption>
  367. <script type="javascript" ev:event="DOMActivate">
  368. <![CDATA[
  369. fWorkYn();
  370. var sSuperUser = model.getValue("/root/main/userinfo/superuser");
  371. for(var i = 2 ; i < grd_workerlist.rows; i++ ){
  372. //근무확인했으면 비활성화
  373. if (model.getValue(xPAth + "[" + (i-1) + "]/workyn") == "Y") {
  374. grd_workerlist.isReadOnly(i, grd_workerlist.colRef("sel")) = true;
  375. } else {
  376. //본인꺼만 활성화
  377. if (model.getValue(xPAth + "[" + (i-1) + "]/drid") == getUserInfo("userid") || sSuperUser == "Y") {
  378. grd_workerlist.isReadOnly(i, grd_workerlist.colRef("sel")) = false;
  379. } else {
  380. grd_workerlist.isReadOnly(i, grd_workerlist.colRef("sel")) = true;
  381. }
  382. }
  383. }
  384. ]]>
  385. </script>
  386. </button>
  387. <caption id="caption3" class="search_name" style="left:300px; top:40px; width:91px; height:17px; ">의 사 :</caption>
  388. <select1 id="combo1" ref="/root/cond/drid" class="combo_search" appearance="minimal" style="left:377px; top:40px; width:175px; height:19px; ">
  389. <choices>
  390. <itemset nodeset="/root/init/drinfo/">
  391. <label ref="drnm"/>
  392. <value ref="drid"/>
  393. </itemset>
  394. </choices>
  395. <script type="javascript" ev:event="xforms-value-changed">
  396. <![CDATA[
  397. //btn_search.dispatch('DOMActivate');
  398. fInit();
  399. ]]>
  400. </script>
  401. <script type="javascript" ev:event="DOMFocusIn">
  402. <![CDATA[
  403. fGetDrList();
  404. ]]>
  405. </script>
  406. </select1>
  407. <button id="button3" class="btn1_letter3" navindex="3" style="left:627px; top:12px; width:68px; height:22px; ">
  408. <caption>EXCEL</caption>
  409. <script type="javascript" ev:event="DOMActivate">
  410. <![CDATA[
  411. var fileName = window.fileDialog("save", ",", false, "권역외상센터당직의", "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
  412. if(fileName != ""){
  413. grd_workerlist.saveExcel(fileName, "SheetName", true, true, "", "", false);
  414. }
  415. ]]>
  416. </script>
  417. </button>
  418. <button id="btn_confirm" class="btn5_letter4" navindex="3" style="left:635px; top:38px; width:64px; height:19px; ">
  419. <caption>최종확인</caption>
  420. <script type="javascript" ev:event="DOMActivate">
  421. <![CDATA[
  422. fConfirmYn();
  423. ]]>
  424. </script>
  425. </button>
  426. <button id="btn_workno" class="btn5_letter4" navindex="3" style="left:978px; top:38px; width:64px; height:19px; ">
  427. <caption>순번저장</caption>
  428. <script type="javascript" ev:event="DOMActivate">
  429. <![CDATA[
  430. fSaveWorkno();
  431. ]]>
  432. </script>
  433. </button>
  434. <select1 id="rdo_workno" ref="/root/cond/workno" appearance="full" cellspacing="5" cols="7" overflow="visible" style="left:750px; top:40px; width:225px; height:20px; border-style:none; ">
  435. <choices>
  436. <item>
  437. <label>(-)</label>
  438. <value/>
  439. </item>
  440. <item>
  441. <label>1</label>
  442. <value>1</value>
  443. </item>
  444. <item>
  445. <label>2</label>
  446. <value>2</value>
  447. </item>
  448. <item>
  449. <label>3</label>
  450. <value>3</value>
  451. </item>
  452. <item>
  453. <label>4</label>
  454. <value>4</value>
  455. </item>
  456. <item>
  457. <label>5</label>
  458. <value>5</value>
  459. </item>
  460. <item>
  461. <label>6</label>
  462. <value>6</value>
  463. </item>
  464. </choices>
  465. </select1>
  466. <shape id="rectangle1" appearance="rectangle" style="left:801px; top:20px; width:20px; height:15px; background-color:#ff99cc; "/>
  467. <shape id="rectangle2" appearance="rectangle" style="left:831px; top:20px; width:20px; height:15px; background-color:#ffcc99; "/>
  468. <shape id="rectangle3" appearance="rectangle" style="left:862px; top:20px; width:20px; height:15px; background-color:#ffff99; "/>
  469. <shape id="rectangle4" appearance="rectangle" style="left:894px; top:20px; width:20px; height:15px; background-color:#ccffcc; "/>
  470. <shape id="rectangle5" appearance="rectangle" style="left:924px; top:20px; width:20px; height:15px; background-color:#ccffff; "/>
  471. <shape id="rectangle6" appearance="rectangle" style="left:955px; top:20px; width:20px; height:15px; background-color:#cc99ff; "/>
  472. <button id="button4" class="btn1_letter2" navindex="3" style="left:983px; top:13px; width:56px; height:22px; ">
  473. <caption>출력</caption>
  474. <script type="javascript" ev:event="DOMActivate">
  475. <![CDATA[
  476. // var sSdate = model.getValue("/root/cond/sdate");
  477. // var sEdate = model.getValue("/root/cond/edate");
  478. // var sGbn = model.getValue("/root/cond/gbn");
  479. // var sDeptcd = model.getValue("/root/cond/deptcd");
  480. // var sDrid = model.getValue("/root/cond/drid");
  481. //
  482. // model.removeNodeset("/root/send/info");
  483. // model.makeValue("/root/send/info/sdate", sSdate);
  484. // model.makeValue("/root/send/info/edate", sEdate);
  485. // model.makeValue("/root/send/info/gbn", sGbn);
  486. // model.makeValue("/root/send/info/deptcd", sDeptcd);
  487. // model.makeValue("/root/send/info/drid", sDrid);
  488. //
  489. // submit("TRMNE05804");
  490. submit("TRMNE05807");
  491. /*
  492. var cnt1 = 1;
  493. var cnt2 = 1;
  494. var cnt3 = 1;
  495. for(var i = 0 ; i < grd_usertel.rows; i++ ){
  496. var vOrddeptcd = model.getValue("/root/main/scheuserinfo/scheusertel[" + i + "]/orddeptcd");
  497. if(vOrddeptcd == "2040000000" || vOrddeptcd == "2070000000" || vOrddeptcd == "2060000000"){
  498. model.makeValue("/root/main/scheuserinfo1/scheusertel[" + cnt1 + "]/orddeptcd", model.getValue("/root/main/scheuserinfo/scheusertel[" + i + "]/orddeptcd"));
  499. model.makeValue("/root/main/scheuserinfo1/scheusertel[" + cnt1 + "]/orddeptnm", model.getValue("/root/main/scheuserinfo/scheusertel[" + i + "]/orddeptnm"));
  500. model.makeValue("/root/main/scheuserinfo1/scheusertel[" + cnt1 + "]/drid", model.getValue("/root/main/scheuserinfo/scheusertel[" + i + "]/drid"));
  501. model.makeValue("/root/main/scheuserinfo1/scheusertel[" + cnt1 + "]/drnm", model.getValue("/root/main/scheuserinfo/scheusertel[" + i + "]/drnm"));
  502. model.makeValue("/root/main/scheuserinfo1/scheusertel[" + cnt1 + "]/mpphonno", model.getValue("/root/main/scheuserinfo/scheusertel[" + i + "]/mpphonno"));
  503. cnt1++;
  504. }else if(vOrddeptcd == "2050000000" || vOrddeptcd == "2090000000" || vOrddeptcd == "2160000000"){
  505. model.makeValue("/root/main/scheuserinfo2/scheusertel[" + cnt2 + "]/orddeptcd", model.getValue("/root/main/scheuserinfo/scheusertel[" + i + "]/orddeptcd"));
  506. model.makeValue("/root/main/scheuserinfo2/scheusertel[" + cnt2 + "]/orddeptnm", model.getValue("/root/main/scheuserinfo/scheusertel[" + i + "]/orddeptnm"));
  507. model.makeValue("/root/main/scheuserinfo2/scheusertel[" + cnt2 + "]/drid", model.getValue("/root/main/scheuserinfo/scheusertel[" + i + "]/drid"));
  508. model.makeValue("/root/main/scheuserinfo2/scheusertel[" + cnt2 + "]/drnm", model.getValue("/root/main/scheuserinfo/scheusertel[" + i + "]/drnm"));
  509. model.makeValue("/root/main/scheuserinfo2/scheusertel[" + cnt2 + "]/mpphonno", model.getValue("/root/main/scheuserinfo/scheusertel[" + i + "]/mpphonno"));
  510. cnt2++;
  511. }else{
  512. model.makeValue("/root/main/scheuserinfo3/scheusertel[" + cnt3 + "]/orddeptcd", model.getValue("/root/main/scheuserinfo/scheusertel[" + i + "]/orddeptcd"));
  513. model.makeValue("/root/main/scheuserinfo3/scheusertel[" + cnt3 + "]/orddeptnm", model.getValue("/root/main/scheuserinfo/scheusertel[" + i + "]/orddeptnm"));
  514. model.makeValue("/root/main/scheuserinfo3/scheusertel[" + cnt3 + "]/drid", model.getValue("/root/main/scheuserinfo/scheusertel[" + i + "]/drid"));
  515. model.makeValue("/root/main/scheuserinfo3/scheusertel[" + cnt3 + "]/drnm", model.getValue("/root/main/scheuserinfo/scheusertel[" + i + "]/drnm"));
  516. model.makeValue("/root/main/scheuserinfo3/scheusertel[" + cnt3 + "]/mpphonno", model.getValue("/root/main/scheuserinfo/scheusertel[" + i + "]/mpphonno"));
  517. cnt3++;
  518. }
  519. }
  520. */
  521. exeReportPreview("RPMNE05801", "XMLSTR","","","");
  522. ]]>
  523. </script>
  524. </button>
  525. <button id="button5" class="btn1_letter3" navindex="3" style="left:1040px; top:13px; width:68px; height:22px; ">
  526. <caption>EXCEL</caption>
  527. <script type="javascript" ev:event="DOMActivate">
  528. <![CDATA[
  529. var fileName = window.fileDialog("save", ",", false, "권역외상센터 월별 당직의" + ipt_srhfrom.value, "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
  530. if(fileName != ""){
  531. grd_month.saveExcel(fileName, "SheetName", true, true, "", "", false);
  532. }
  533. submit("TRMNE05807");
  534. var fileName = window.fileDialog("save", ",", false, "권역외상센터 월별 당직의 연락처" + ipt_srhfrom.value, "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
  535. if(fileName != ""){
  536. grd_usertel.saveExcel(fileName, "SheetName", true, true, "", "", false);
  537. }
  538. ]]>
  539. </script>
  540. </button>
  541. </group>
  542. <group id="group1" scroll="auto" style="left:490px; top:92px; width:622px; height:745px; text-align:center; ">
  543. <line id="line2" class="line_1" style="x1:0px; y1:0px; x2:620px; y2:0px; "/>
  544. <datagrid id="grd_month" nodeset="/root/main/scheinfo/schelist" autoresize="true" caption="week^진료과^진료과^일^일^일^일^월^월^월^월^화^화^화^화^수^수^수^수^목^목^목^목^금^금^금^금^토^토^토^토^수정1^수정2^수정3^수정4^수정5^수정6^수정7" colsep="^" colwidth="0, 0, 70, 78, 0, 0, 0, 78, 0, 0, 0,78, 0, 0, 0, 78, 0, 0, 0, 78, 0, 0, 0, 78, 0, 0, 0, 78, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0" ellipsis="false" mergecellsfixedrows="bycolrec" rowsep="|" selectionmode="free" tooltip="true" style="left:0px; top:5px; width:620px; height:740px; ">
  545. <col ref="weekno" format="yyyy-mm-dd"/>
  546. <col ref="orddeptcd"/>
  547. <col ref="orddeptnm" style="text-align:left; "/>
  548. <col ref="drnm1"/>
  549. <col ref="drid1"/>
  550. <col ref="workdd1"/>
  551. <col ref="workno1"/>
  552. <col ref="drnm2"/>
  553. <col ref="drid2"/>
  554. <col ref="workdd2"/>
  555. <col ref="workno2"/>
  556. <col ref="drnm3" style="left:246px; top:23px; width:60px; height:23px; "/>
  557. <col ref="drid3"/>
  558. <col ref="workdd3"/>
  559. <col ref="workno3" style="left:306px; top:23px; width:5px; height:23px; "/>
  560. <col ref="drnm4"/>
  561. <col ref="drid4"/>
  562. <col ref="workdd4"/>
  563. <col ref="workno4"/>
  564. <col ref="drnm5"/>
  565. <col ref="drid5"/>
  566. <col ref="workdd5"/>
  567. <col ref="workno5"/>
  568. <col ref="drnm6"/>
  569. <col ref="drid6"/>
  570. <col ref="workdd6"/>
  571. <col ref="workno6"/>
  572. <col ref="drnm7"/>
  573. <col ref="drid7"/>
  574. <col ref="workdd7"/>
  575. <col ref="workno7"/>
  576. <col ref="modify1"/>
  577. <col ref="modify2"/>
  578. <col ref="modify3"/>
  579. <col ref="modify4"/>
  580. <col ref="modify5"/>
  581. <col ref="modify6"/>
  582. <col ref="modify7"/>
  583. <script type="javascript" ev:event="onclick">
  584. <![CDATA[
  585. var cells = grd_month.selectedCells;
  586. var sRow, sCol, sColNm;
  587. var sSelNo;
  588. var sBgcolor;
  589. var sWorkno;
  590. for (var i = 0; i < cells.length; i++) {
  591. sRow = cells.item(i).row;
  592. sCol = cells.item(i).col;
  593. sColNm = grd_month.colAttribute(sCol, "ref");
  594. sSelNo = sColNm.substr(sColNm.length - 1, 1);
  595. deptcd = grd_month.valueMatrix(sRow, grd_month.colRef("orddeptcd"));
  596. deptnm = grd_month.valueMatrix(sRow, grd_month.colRef("orddeptnm"));
  597. drnm = grd_month.valueMatrix(sRow, grd_month.colRef("drnm"+sSelNo));
  598. drid = grd_month.valueMatrix(sRow, grd_month.colRef("drid"+sSelNo));
  599. workdd = grd_month.valueMatrix(sRow, grd_month.colRef("workdd"+sSelNo));
  600. workno = grd_month.valueMatrix(sRow, grd_month.colRef("workno"+sSelNo));
  601. if (drid != "" && deptcd != "") {
  602. sWorkno = model.getValue("/root/cond/workno");
  603. grd_month.valueMatrix(sRow, grd_month.colRef("workno"+sSelNo)) = sWorkno;
  604. switch (sWorkno) {
  605. case "1":
  606. sBgcolor = "#ff99cc";
  607. break;
  608. case "2":
  609. sBgcolor = "#ffcc99";
  610. break;
  611. case "3":
  612. sBgcolor = "#ffff99";
  613. break;
  614. case "4":
  615. sBgcolor = "#ccffcc";
  616. break;
  617. case "5":
  618. sBgcolor = "#ccffff";
  619. break;
  620. case "6":
  621. sBgcolor = "#cc99ff";
  622. break;
  623. default:
  624. sBgcolor = "#ffffff";
  625. break;
  626. }
  627. if (workno != "" && workno != "-" && sBgcolor == "#ffffff") {
  628. if (messageBox("순번을 삭제하시겠습니까?", "Q999") == 6) {
  629. grd_month.cellStyle("background-color", sRow, grd_month.colRef("workno"+sSelNo)) = sBgcolor;
  630. grd_month.cellStyle("background-color", sRow, grd_month.colRef("drnm"+sSelNo)) = sBgcolor;
  631. grd_month.valueMatrix(sRow, grd_month.colRef("modify"+sSelNo)) = "Y";
  632. fSaveWorkno();
  633. }
  634. } else {
  635. grd_month.cellStyle("background-color", sRow, grd_month.colRef("workno"+sSelNo)) = sBgcolor;
  636. grd_month.cellStyle("background-color", sRow, grd_month.colRef("drnm"+sSelNo)) = sBgcolor;
  637. grd_month.valueMatrix(sRow, grd_month.colRef("modify"+sSelNo)) = "Y";
  638. }
  639. }
  640. }
  641. ]]>
  642. </script>
  643. </datagrid>
  644. </group>
  645. <datagrid id="grd_usertel" nodeset="/root/main/scheuserinfo/scheusertel" visibility="hidden" caption="진료과^의사^전화번호" colsep="^" colwidth="150, 100, 224, 0, 0, 0" dataheight="25" explorerbar="sortmove" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="32" rowsep="|" fixed.background-image="../../../com/commonweb/images/grid_bg.gif" style="left:525px; top:320px; width:549px; height:280px; ">
  646. <col ref="orddeptnm" style="text-align:center; "/>
  647. <col ref="drnm" style="text-align:center; "/>
  648. <col ref="mpphonno" style="text-align:center; "/>
  649. <script type="javascript" ev:event="onaftersort">
  650. <![CDATA[
  651. grd_usertel.gridToInstance();
  652. ]]>
  653. </script>
  654. </datagrid>
  655. </xhtml:body>
  656. </xhtml:html>