SMPMP01700_휴진및외래예약건수조회.xrw 25 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614
  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. <orddrid/>
  11. <centcd/>
  12. <orddeptcd/>
  13. <subdeptcd/>
  14. <srchcond/>
  15. <fromdd/>
  16. <todd/>
  17. <drholiordsche>
  18. <drholiordschelist>
  19. <orddeptcd/>
  20. <orddrid/>
  21. <ordendresn/>
  22. <fromdd/>
  23. <todd/>
  24. <fromtodd/>
  25. <unitcnt/>
  26. <oupdtorddrnm/>
  27. <iupdtorddrnm/>
  28. <drappdd/>
  29. <lastupdtdt/>
  30. <remfact/>
  31. <layoffunitcnt/>
  32. <counta/>
  33. <centnm/>
  34. </drholiordschelist>
  35. </drholiordsche>
  36. <result/>
  37. <histstatcd/>
  38. <srchflag/>
  39. <endcnfmyn/>
  40. <prcsstat/>
  41. </main>
  42. <send>
  43. <holiflag/>
  44. <orddrid/>
  45. <orddeptcd/>
  46. <srchcond/>
  47. <fromdd/>
  48. <todd/>
  49. <updatedata>
  50. <datalist/>
  51. </updatedata>
  52. <ordendcnfmyn/>
  53. <acceptstatflag/>
  54. <histstat/>
  55. <endcnfmyn/>
  56. <prcsstat/>
  57. <subdeptcd/>
  58. <centcd/>
  59. </send>
  60. <init>
  61. <P0037list>
  62. <P0037>
  63. <cdnm/>
  64. <cdid/>
  65. </P0037>
  66. </P0037list>
  67. <P0406list>
  68. <P0406>
  69. <cdid/>
  70. <cdnm/>
  71. </P0406>
  72. </P0406list>
  73. <orddeptcd>
  74. <orddeptcdlist>
  75. <cd/>
  76. <nm/>
  77. </orddeptcdlist>
  78. </orddeptcd>
  79. <orddrid>
  80. <orddridlist>
  81. <cd/>
  82. <nm/>
  83. <dp/>
  84. <sp/>
  85. </orddridlist>
  86. </orddrid>
  87. <P0464list>
  88. <P0464>
  89. <cdid/>
  90. <cdnm/>
  91. </P0464>
  92. </P0464list>
  93. </init>
  94. <hidden>
  95. <flag>
  96. <orddeptcd/>
  97. <orddrid/>
  98. <seqno/>
  99. <drappdd/>
  100. </flag>
  101. </hidden>
  102. <temp>
  103. <holilist/>
  104. <gridcnt/>
  105. <sum_unitcnt/>
  106. </temp>
  107. </root>
  108. </instance>
  109. <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post" replace="instance"/>
  110. <submission id="TRPAM00101" mediatype="application/x-www-form-urlencoded" method="post" replace="instance" resultref="/root/hidden/tmp"/>
  111. <script type="javascript" ev:event="xforms-ready">
  112. <![CDATA[
  113. zbcfGetCodeList(new Array("P0037","P0406", "P0464"), new Array("/root/init/P0037list","/root/init/P0406list", "/root/init/P0464list"));
  114. pamGetDeptCDDrIDList();
  115. addComboItem("cmb_orddeptcd","전체","","above");
  116. addComboItem("cmb_orddrid","전체","","above");
  117. model.refresh();
  118. fInitialize();
  119. ]]>
  120. </script>
  121. <submission id="TRPMP01702" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/drholiordsche"/>
  122. <submission id="TRPMP01701" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/drholiordsche"/>
  123. <submission id="TRZSD00207" mediatype="application/x-www-form-urlencoded" method="urlencoded-post" replace="instance"/>
  124. <submission id="TRZSD00208" mediatype="application/x-www-form-urlencoded" method="urlencoded-post" replace="instance"/>
  125. </model>
  126. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  127. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  128. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  129. <script type="javascript" src="../../../pam/pamcomnweb/js/PAM.js"/>
  130. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  131. <script type="javascript" src="../../../com/departmentcodeweb/js/ZSD001.js"/>
  132. <script type="javascript">
  133. <![CDATA[
  134. function fInitialize(){
  135. model.resetInstanceNode("/root/send");
  136. model.resetInstanceNode("/root/main");
  137. model.resetInstanceNode("/root/main/drholiordsche/drholiordschelist");
  138. model.setValue("/root/main/srchflag","H");
  139. //조회조건 세팅
  140. model.setValue("/root/main/srchcond", 'R'); //휴진기간 조회로 세팅
  141. //end..
  142. model.setValue("/root/main/endcnfmyn", 'A');
  143. //날자 입력 항목에 오늘 날자 세팅
  144. var curDate = getCurrentDate();
  145. model.setValue("/root/main/fromdd", curDate);
  146. model.setValue("/root/main/todd", curDate);
  147. radio1.visible = true;
  148. caption1.visible = true;
  149. combo1.visible = true;
  150. radio1.attribute("left") = "758px";
  151. ipt_fromdd.attribute("left") = "873px";
  152. caption10.attribute("left") = "960px";
  153. ipt_todd.attribute("left") = "975px";
  154. // caption5.attribute("left") = "766px";
  155. // cmb_orddeptcd.attribute("left") = "845px";
  156. // caption7.attribute("left") = "951px";
  157. // cmb_orddrid.attribute("left") = "1044px";
  158. caption2.attribute("left") = "670px";
  159. grd_holische.colHidden(grd_holische.colRef("prcsstat")) = false;
  160. grd_holische.colHidden(grd_holische.colRef("ordendresn")) = false;
  161. grd_holische.colHidden(grd_holische.colRef("fromtodd")) = false;
  162. grd_holische.colHidden(grd_holische.colRef("fromdd")) = true;
  163. grd_holische.colHidden(grd_holische.colRef("ordtm")) = true;
  164. grd_holische.colHidden(grd_holische.colRef("counta")) = false;
  165. grd_holische.colHidden(grd_holische.colRef("drappdd")) = false;
  166. grd_holische.colHidden(grd_holische.colRef("fstrgstdt")) = false;
  167. model.refresh();
  168. }
  169. function fDataCheck( flag ){
  170. var ordendcnfmyn = "";
  171. for( var i = grd_holische.fixedRows; i < grd_holische.rows; i++){
  172. if( grd_holische.valueMatrix( i, grd_holische.colRef("check") ) == 'Y' ){
  173. if( flag == 'ok' ){
  174. if( 'Y' == model.getValue("/root/main/drholiordsche/drholiordschelist[" + i + "]/ordendcnfmyn")){
  175. messageBox("이미 마감확인 하신 휴진일정을 다시 마감확인 하실 수 없습니다.( " + i + " 번째 줄 확인! )", "E999", "");
  176. return false;
  177. }
  178. }else{
  179. if( 'Y' != model.getValue("/root/main/drholiordsche/drholiordschelist[" + i + "]/ordendcnfmyn")){
  180. messageBox("마감확인 하지 않은 휴진일정을 마감취소 하실 수 없습니다.( " + i + " 번째 줄 확인! )", "E999", "");
  181. return false;
  182. }
  183. }
  184. }
  185. }
  186. return true;
  187. }
  188. //의사휴진일정 조회
  189. function fSearchDrHoliSche(){
  190. var checkflag = model.getValue("/root/main/srchflag");
  191. model.setValue("/root/send/holiflag", model.getValue("/root/main/srchflag"));
  192. model.setValue("/root/send/prcsstat", model.getValue("/root/main/prcsstat"));
  193. model.setValue("/root/send/orddrid", model.getValue("/root/main/orddrid"));
  194. model.setValue("/root/send/orddeptcd", model.getValue("/root/main/orddeptcd"));
  195. model.setValue("/root/send/centcd", model.getValue("/root/main/centcd"));
  196. model.setValue("/root/send/subdeptcd", model.getValue("/root/main/subdeptcd"));
  197. model.setValue("/root/send/srchcond", model.getValue("/root/main/srchcond"));
  198. model.setValue("/root/send/fromdd", model.getValue("/root/main/fromdd"));
  199. model.setValue("/root/send/todd", model.getValue("/root/main/todd"));
  200. var srchflag = model.getValue("/root/main/srchflag");
  201. var prcsstat = model.getValue("/root/main/prcsstat");
  202. if( model.getValue("/root/send/srchcond") !='' && model.getValue("/root/send/fromdd") != "" && model.getValue("/root/send/todd") != "" ){
  203. if(srchflag == 'H'){
  204. submit("TRPMP01701");
  205. var histstat = model.getValue("/root/main/drholiordsche/drholiordschelist/histstat");
  206. /*if(prcsstat == ''){
  207. grd_holische.allStyle("all","background-color") = "#ffffff"; // 배경색을 초기화 한다.
  208. setRowStyle("grd_holische", "1","01","prcsstat","equal"); // 병실정보row의 색상을 변경한다.
  209. grd_holische.rebuild();
  210. }*/
  211. }else if(srchflag == 'T'){
  212. submit("TRPMP01702");
  213. }
  214. }else{
  215. messageBox("조회기간 정보를 입려하지", "E007");
  216. }
  217. model.refresh();
  218. }
  219. ]]>
  220. </script>
  221. </xhtml:head>
  222. <xhtml:body guideline="1,1196;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  223. <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
  224. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:254px; height:14px; ">휴진 내역 조회</caption>
  225. </group>
  226. <group id="group3" scroll="auto" style="left:0px; top:13px; width:1195px; height:719px; ">
  227. <group id="group4" style="left:0px; top:14px; width:1194px; height:60px; vertical-align:top; ">
  228. <shape id="roundrect3" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1194px; height:60px; background-color:#fffbf2; border-color:#ffd799; "/>
  229. <caption id="caption10" style="left:960px; top:9px; width:15px; height:19px; font-weight:bold; text-align:center; vertical-align:middle; ">~</caption>
  230. <select1 id="cmb_orddrid" ref="/root/main/orddrid" class="combo_default" appearance="minimal" style="left:448px; top:35px; width:100px; height:19px; ">
  231. <choices>
  232. <itemset nodeset="/root/init/orddrid/orddridlist">
  233. <label ref="nm"/>
  234. <value ref="cd"/>
  235. </itemset>
  236. </choices>
  237. </select1>
  238. <caption id="caption5" class="search_name" style="left:5px; top:35px; width:73px; height:17px; ">진료과 :</caption>
  239. <caption id="caption7" class="search_name" style="left:360px; top:35px; width:85px; height:17px; ">진료의사 :</caption>
  240. <select1 id="cmb_orddeptcd" ref="/root/main/orddeptcd" class="combo_default" appearance="minimal" style="left:95px; top:35px; width:100px; height:19px; ">
  241. <choices>
  242. <itemset nodeset="/root/init/orddeptcd/orddeptcdlist">
  243. <label ref="nm"/>
  244. <value ref="cd"/>
  245. </itemset>
  246. </choices>
  247. <script type="javascript" ev:event="xforms-value-changed">
  248. <![CDATA[
  249. cmb_orddrid.choices.itemset.attribute("nodeset") = "/root/init/orddrid/orddridlist[dp = '" + cmb_orddeptcd.value + "']";
  250. model.setValue("/root/main/orddrid", "");
  251. cmb_orddrid.refresh();
  252. cmb_subdeptcd.choices.itemset.attribute("nodeset") = "/root/init/subdeptcd/subdeptcdlist[dp = '"+ cmb_orddeptcd.value +"' or dp = '-']";
  253. cmb_subdeptcd.refresh();
  254. ]]>
  255. </script>
  256. </select1>
  257. <caption id="caption2" class="search_name" style="left:670px; top:9px; width:95px; height:17px; ">조회기간 :</caption>
  258. <input id="ipt_fromdd" ref="/root/main/fromdd" class="input_search" inputtype="date" style="left:873px; top:9px; width:85px; height:19px; "/>
  259. <input id="ipt_todd" ref="/root/main/todd" class="input_search" inputtype="date" style="left:975px; top:9px; width:85px; height:19px; "/>
  260. <select1 id="radio1" ref="/root/main/srchcond" appearance="full" cols="3" overflow="visible" style="left:758px; top:9px; width:115px; height:20px; border-style:none; ">
  261. <choices>
  262. <item>
  263. <label>신청일</label>
  264. <value>R</value>
  265. </item>
  266. <item>
  267. <label>휴진일</label>
  268. <value>H</value>
  269. </item>
  270. </choices>
  271. </select1>
  272. <caption id="caption3" class="search_name" style="left:5px; top:9px; width:97px; height:17px; ">조회구분 :</caption>
  273. <select1 id="combo6" ref="/root/main/srchflag" appearance="minimal" style="left:95px; top:9px; width:100px; height:19px; ">
  274. <choices>
  275. <item>
  276. <label>휴진마감</label>
  277. <value>H</value>
  278. </item>
  279. <item>
  280. <label>부분마감</label>
  281. <value>T</value>
  282. </item>
  283. </choices>
  284. <script type="javascript" ev:event="xforms-select">
  285. <![CDATA[
  286. if(model.getvalue("/root/main/srchflag") == "H"){
  287. model.removeNodeset("/root/main/drholiordsche/drholiordschelist");
  288. radio1.visible = true;
  289. caption1.visible = true;
  290. combo1.visible = true;
  291. caption2.attribute("left") = "670px";
  292. radio1.attribute("left") = "758px";
  293. ipt_fromdd.attribute("left") = "873px";
  294. caption10.attribute("left") = "960px";
  295. ipt_todd.attribute("left") = "975px";
  296. // caption5.attribute("left") = "766px";
  297. // cmb_orddeptcd.attribute("left") = "845px";
  298. // caption7.attribute("left") = "951px";
  299. // cmb_orddrid.attribute("left") = "1044px";
  300. grd_holische.colHidden(grd_holische.colRef("prcsstat")) = false;
  301. grd_holische.colHidden(grd_holische.colRef("ordendresn")) = false;
  302. grd_holische.colHidden(grd_holische.colRef("fromtodd")) = false;
  303. grd_holische.colHidden(grd_holische.colRef("fromdd")) = true;
  304. grd_holische.colHidden(grd_holische.colRef("ordtm")) = true;
  305. grd_holische.colHidden(grd_holische.colRef("counta")) = false;
  306. grd_holische.colHidden(grd_holische.colRef("drappdd")) = false;
  307. grd_holische.colHidden(grd_holische.colRef("fstrgstdt")) = false;
  308. caption8.visible = false;
  309. combo2.visible = false;
  310. model.refresh();
  311. }
  312. if(model.getvalue("/root/main/srchflag") == "T"){
  313. model.removeNodeset("/root/main/drholiordsche/drholiordschelist");
  314. //조회조건숨김
  315. caption1.visible = false;
  316. combo1.visible = false;
  317. //조회조건 위치 이동
  318. caption2.attribute("left") = "360px";
  319. radio1.attribute("left") = "453px";
  320. ipt_fromdd.attribute("left") = "578px";
  321. caption10.attribute("left") = "665px";
  322. ipt_todd.attribute("left") = "685px";
  323. // caption5.attribute("left") = "578px";
  324. // cmb_orddeptcd.attribute("left") = "650px";
  325. // caption7.attribute("left") = "761px";
  326. // cmb_orddrid.attribute("left") = "849px";
  327. //그리드 숨김
  328. grd_holische.colHidden(grd_holische.colRef("prcsstat")) = true;
  329. grd_holische.colHidden(grd_holische.colRef("ordendresn")) = false;
  330. grd_holische.colHidden(grd_holische.colRef("fromtodd")) = true;
  331. grd_holische.colHidden(grd_holische.colRef("fromdd")) = false;
  332. grd_holische.colHidden(grd_holische.colRef("ordtm")) = false;
  333. grd_holische.colHidden(grd_holische.colRef("counta")) = true;
  334. grd_holische.colHidden(grd_holische.colRef("drappdd")) = true;
  335. grd_holische.colHidden(grd_holische.colRef("fstrgstdt")) = false;
  336. caption8.visible = false;
  337. combo2.visible = false;
  338. model.refresh();
  339. }
  340. ]]>
  341. </script>
  342. </select1>
  343. <select1 id="combo1" ref="/root/main/prcsstat" appearance="minimal" style="left:449px; top:9px; width:101px; height:19px; ">
  344. <choices>
  345. <itemset nodeset="/root/init/P0464list/P0464">
  346. <label ref="cdnm"/>
  347. <value ref="cdid"/>
  348. </itemset>
  349. </choices>
  350. </select1>
  351. <line id="line13" class="line_4" style="x1:1128px; y1:7px; x2:1128px; y2:55px; border-color:#ffe4bb; border-left-style:solid; "/>
  352. <caption id="caption1" class="search_name" style="left:360px; top:9px; width:97px; height:17px; ">진행상태 :</caption>
  353. <caption id="caption8" class="search_name" visibility="hidden" style="left:785px; top:35px; width:73px; height:17px; ">센터 :</caption>
  354. <select1 id="combo2" ref="/root/main/centcd" class="combo_default" visibility="hidden" appearance="minimal" style="left:874px; top:35px; width:100px; height:19px; ">
  355. <choices>
  356. <itemset nodeset="/root/init/centcd/centcdlist">
  357. <label ref="nm"/>
  358. <value ref="cd"/>
  359. </itemset>
  360. </choices>
  361. <script type="javascript" ev:event="xforms-value-changed">
  362. <![CDATA[
  363. /*cmb_orddeptcd.choices.itemset.attribute("nodeset") = "/root/init/orddeptcd/orddeptcdlist[cd = '" + cmb_orddeptcd.value + "']";
  364. model.setValue("/root/main/orddeptcd", "");
  365. cmb_orddeptcd.refresh(); */
  366. var centcd = model.getValue("/root/main/centcd");
  367. if( centcd == '' || centcd == '-' ){
  368. combo3.visible = false;
  369. cmb_orddeptcd.visible = true;
  370. model.setValue("/root/main/orddeptcd", '');
  371. model.setValue("/root/main/orddrid", '');
  372. cmb_orddeptcd.refresh();
  373. cmb_orddrid.refresh();
  374. }else{
  375. // var instcd = model.getValue("/root/hidden/session/sess_dutplceinstcd");
  376. var instcd = getUserInfo("dutplcecd");
  377. var deptcd = model.getValue("/root/main/centcd");
  378. var base_dd = new Date().getDateFormat("YYYYMMDD");
  379. var sort_field = "dispseq";//정렬필드(출력순서:'dispseq')
  380. var sort_method = "asc"; //정렬방법(오름차순:'asc')
  381. zsufGetCntrSubOrdDepartmentList(instcd, deptcd, 'O', "/root/hidden/init/cntrsuborddeptlist", base_dd);
  382. combo3.visible = true;
  383. cmb_orddeptcd.visible = false;
  384. model.setValue("/root/main/orddeptcd", '');
  385. model.setValue("/root/main/orddrid", '');
  386. cmb_orddeptcd.refresh();
  387. cmb_orddrid.refresh();
  388. }
  389. model.refresh();
  390. ]]>
  391. </script>
  392. </select1>
  393. <select1 id="cmb_subdeptcd" ref="/root/main/subdeptcd" class="combo_default" appearance="minimal" style="left:200px; top:35px; width:100px; height:19px; ">
  394. <choices>
  395. <itemset nodeset="/root/init/subdeptcd/subdeptcdlist">
  396. <label ref="nm"/>
  397. <value ref="cd"/>
  398. </itemset>
  399. </choices>
  400. <script type="javascript" ev:event="xforms-value-changed">
  401. <![CDATA[
  402. cmb_orddrid.choices.itemset.attribute("nodeset") = "/root/init/orddrid/orddridlist[dp = '" + cmb_orddeptcd.value + "']";
  403. model.setValue("/root/main/orddrid", "");
  404. cmb_orddrid.refresh();
  405. ]]>
  406. </script>
  407. </select1>
  408. <select1 id="combo3" ref="/root/main/orddeptcd" class="combo_default" visibility="hidden" appearance="minimal" style="left:95px; top:35px; width:100px; height:19px; ">
  409. <choices>
  410. <itemset nodeset="/root/hidden/init/cntrsuborddeptlist/dept">
  411. <label ref="depthngnm"/>
  412. <value ref="deptcd"/>
  413. </itemset>
  414. </choices>
  415. <script type="javascript" ev:event="xforms-value-changed">
  416. <![CDATA[
  417. cmb_orddrid.choices.itemset.attribute("nodeset") = "/root/init/orddrid/orddridlist[dp = '" + cmb_orddeptcd.value + "']";
  418. model.setValue("/root/main/orddrid", "");
  419. cmb_orddrid.refresh();
  420. var orddeptcd = model.getValue("/root/main/orddeptcd");
  421. cmb_subdeptcd.choices.itemset.attribute("nodeset") = "/root/init/subdeptcd/subdeptcdlist[dp = '"+ orddeptcd +"' or dp = '-']";
  422. cmb_subdeptcd.refresh();
  423. ]]>
  424. </script>
  425. </select1>
  426. <button id="btn_search" class="btn1_letter2" style="left:1134px; top:22px; width:56px; height:22px; ">
  427. <caption>조회</caption>
  428. <script type="javascript" ev:event="DOMActivate">
  429. <![CDATA[
  430. model.removenode("/root/main/drholiordsche/drholiordschelist");
  431. model.resetInstanceNode("/root/main/drholiordsche/drholiordschelist");
  432. var endcnfmyn = model.getValue("/root/main/endcnfmyn");
  433. if(endcnfmyn == ''){
  434. messageBox("진행상태 정보를 입려하지", "E007");
  435. return;
  436. }
  437. fSearchDrHoliSche();
  438. //전체건수조회
  439. var cnt = getNodesetCount("/root/main/drholiordsche/drholiordschelist");
  440. model.setValue("/root/temp/gridcnt", cnt);
  441. var sum_unitcnt = 0;
  442. for(var i = 1; i <= cnt; i++) {
  443. sum_unitcnt = parseInt(model.getvalue("/root/main/drholiordsche/drholiordschelist[" + i + "]/layoffunitcnt")) + sum_unitcnt;
  444. }
  445. model.setValue("/root/temp/sum_unitcnt", sum_unitcnt);
  446. grd_holische.subtotalposition= "below";
  447. for(var i=1 ; i<22 ; i++){
  448. if (i ==grd_holische.colRef("counta")) {
  449. grd_holische.subtotal("sum",-1, i, "#,###", "", 1, "합계");
  450. }
  451. }
  452. model.refresh();
  453. ]]>
  454. </script>
  455. </button>
  456. </group>
  457. <col type="checkbox"/>
  458. <caption id="caption4" class="tit_2" style="left:6px; top:84px; width:219px; height:13px; ">휴진내역 조회 리스트</caption>
  459. <line id="line3" class="line_1" style="x1:0px; y1:99px; x2:1194px; y2:99px; "/>
  460. <datagrid id="grd_holische" nodeset="/root/main/drholiordsche/drholiordschelist" class="datagrid2" caption="진행상태^진료과^센터명^진료의사^선택&#xA;진료^직위^휴진사유^휴진 및 임시진료기간^휴진일자^휴진시간^외래&#xA;예약^신청일^최초수정일시^비고^최초수정자^진료과코드^진료의ID^histstat^seqno" colsep="^" colwidth="80, 100, 120, 75, 40, 60, 160, 170, 100, 100, 45, 85, 135, 165, 72, 100, 100, 100, 100" dataheight="25" defaultrows="2" extendlastcol="false" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="25" rowsep="|" style="left:1px; top:105px; width:1194px; height:610px; ">
  461. <col ref="prcsstat" style="text-align:center; "/>
  462. <col ref="orddeptnm"/>
  463. <col ref="centnm"/>
  464. <col ref="orddrnm"/>
  465. <col ref="sp"/>
  466. <col ref="jobposcd"/>
  467. <col disabled="true" ref="ordendresn" type="combo" style="text-align:center; ">
  468. <choices>
  469. <itemset nodeset="/root/init/P0037list/P0037">
  470. <label ref="cdnm"/>
  471. <value ref="cdid"/>
  472. </itemset>
  473. </choices>
  474. </col>
  475. <col ref="fromtodd" style="text-align:center; "/>
  476. <col ref="fromdd" format="yyyy-mm-dd" style="text-align:center; "/>
  477. <col ref="ordtm" style="text-align:center; "/>
  478. <col ref="counta" style="text-align:center; "/>
  479. <col ref="drappdd" format="yyyy-mm-dd" style="text-align:center; "/>
  480. <col ref="fstrgstdt" format="yyyy-mm-dd hh:nn:ss" style="text-align:center; "/>
  481. <col ref="remfact" style="text-align:center; "/>
  482. <col ref="fstrgstrid" visibility="hidden"/>
  483. <col disabled="true" ref="orddeptcd" type="combo" visibility="hidden" style="text-align:center; ">
  484. <choices>
  485. <itemset nodeset="/root/init/orddeptcd/orddeptcdlist">
  486. <label ref="nm"/>
  487. <value ref="cd"/>
  488. </itemset>
  489. </choices>
  490. </col>
  491. <col disabled="true" ref="orddrid" type="combo" visibility="hidden" style="text-align:center; ">
  492. <choices>
  493. <itemset nodeset="/root/init/orddrid/orddridlist">
  494. <label ref="nm"/>
  495. <value ref="cd"/>
  496. </itemset>
  497. </choices>
  498. </col>
  499. <col ref="histstat" visibility="hidden"/>
  500. <col ref="seqno" visibility="hidden"/>
  501. <script type="javascript" ev:event="ondblclick">
  502. <![CDATA[
  503. if (isDataCell() == true) {
  504. var cur_row = grd_holische.row;
  505. setParameter("orddeptcd",model.getValue("/root/main/drholiordsche/drholiordschelist[" + cur_row +"]/orddeptcd"));
  506. setParameter("orddrid",model.getValue("/root/main/drholiordsche/drholiordschelist[" + cur_row +"]/orddrid"));
  507. setParameter("drappdd",model.getValue("/root/main/drholiordsche/drholiordschelist[" + cur_row +"]/drappdd"));
  508. setParameter("seqno",model.getValue("/root/main/drholiordsche/drholiordschelist[" + cur_row +"]/seqno"));
  509. //setParameter("fromdd",model.getValue("/root/main/drholiordsche/drholiordschelist[" + cur_row +"]/fromdd"));
  510. //setParameter("todd",model.getValue("/root/main/drholiordsche/drholiordschelist[" + cur_row +"]/todd"));
  511. setParameter("fromdd", (model.getValue("/root/main/drholiordsche/drholiordschelist[" + cur_row +"]/fromtodd")).replace("-","").replace("-","").substring(0,8));
  512. setParameter("todd", (model.getValue("/root/main/drholiordsche/drholiordschelist[" + cur_row +"]/fromtodd")).replace("-","").replace("-","").replace("-","").replace("-","").substring(11,19));
  513. setParameter("orddeptnm",model.getValue("/root/main/drholiordsche/drholiordschelist[" + cur_row +"]/orddeptnm"));
  514. setParameter("orddrnm",model.getValue("/root/main/drholiordsche/drholiordschelist[" + cur_row +"]/orddrnm"));
  515. setParameter("centcd",model.getValue("/root/main/drholiordsche/drholiordschelist[" + cur_row +"]/centcd"));
  516. setParameter("centnm",model.getValue("/root/main/drholiordsche/drholiordschelist[" + cur_row +"]/centnm"));
  517. modal("SPPMP01800", "1","50", "50", "SPPMP01800", "/root/hidden/flag", "/root/hidden/source");
  518. }
  519. ]]>
  520. </script>
  521. </datagrid>
  522. <button id="btn_print" class="btn6_letter2" visibility="hidden" style="left:1134px; top:51px; width:56px; height:22px; ">
  523. <caption>출력</caption>
  524. <script type="javascript" ev:event="DOMActivate">
  525. <![CDATA[
  526. model.resetInstanceNode("/root/temp/holilist");
  527. var srchflag = model.getValue("/root/main/srchflag");
  528. if(srchflag == 'H'){
  529. fHolilistPrint();
  530. }else if(srchflag == 'T'){
  531. fTendPrint();
  532. }
  533. ]]>
  534. </script>
  535. </button>
  536. </group>
  537. <group id="group2" scroll="auto" style="left:0px; top:734px; width:1195px; height:31px; ">
  538. <button id="btn_saveSche7" class="btn4_letter3" style="left:1126px; top:5px; width:68px; height:22px; ">
  539. <caption>초기화</caption>
  540. <script type="javascript" ev:event="DOMActivate">
  541. <![CDATA[
  542. fInitialize();
  543. ]]>
  544. </script>
  545. </button>
  546. <line id="line32" class="line_6" style="x1:0px; y1:0px; x2:1194px; y2:0px; "/>
  547. </group>
  548. </xhtml:body>
  549. </xhtml:html>