SMABC02100_공통마감화면(MSET).xrw 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/css" ?>
  3. <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.css" ?>
  4. <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">
  5. <xhtml:head>
  6. <xhtml:title>공통마감</xhtml:title>
  7. <model id="model1">
  8. <instance id="instance1">
  9. <root xmlns="">
  10. <main>
  11. <projlist>
  12. <list>
  13. <proj>
  14. <check/>
  15. <execddtm/>
  16. <pid/>
  17. <hngnm/>
  18. <sexage/>
  19. <prcpcd/>
  20. <prcpnm/>
  21. <cdnm/>
  22. <acting/>
  23. <execrid/>
  24. <roomcd/>
  25. <enddd/>
  26. <action/>
  27. <prcpdd/>
  28. <prcpno/>
  29. <prcphistno/>
  30. <execprcpno/>
  31. <instcd/>
  32. <execdeptcd/>
  33. <oiflag/>
  34. <note/>
  35. <mset/>
  36. </proj>
  37. </list>
  38. </projlist>
  39. <list/>
  40. </main>
  41. <send>
  42. <search>
  43. </search>
  44. <cond>
  45. <basecd/>
  46. <execdd/>
  47. <exeflag>Y</exeflag>
  48. <flag/>
  49. <deptcd/>
  50. </cond>
  51. <globalinstance>
  52. <instance1/>
  53. </globalinstance>
  54. </send>
  55. <init>
  56. <actingplace>
  57. <combo>
  58. <deptnm/>
  59. <deptcd/>
  60. </combo>
  61. </actingplace>
  62. <flag>
  63. <item>
  64. <name>전체</name>
  65. <id>-</id>
  66. </item>
  67. <item>
  68. <name>마감전</name>
  69. <id>before</id>
  70. </item>
  71. <item>
  72. <name>마감후</name>
  73. <id>after</id>
  74. </item>
  75. </flag>
  76. <cmb_info>
  77. <suppdeptlist>
  78. <suppdept>
  79. <suppdeptcd/>
  80. <depthngnm/>
  81. </suppdept>
  82. </suppdeptlist>
  83. </cmb_info>
  84. </init>
  85. <actingend>
  86. <endlist/>
  87. <endflagvalue>
  88. <endflag/>
  89. </endflagvalue>
  90. </actingend>
  91. <hidden>
  92. <ret>
  93. <count/>
  94. </ret>
  95. </hidden>
  96. </root>
  97. </instance>
  98. <script type="javascript" ev:event="xforms-ready">
  99. <![CDATA[
  100. model.removeNodeset("/root/send/cond/suppdeptcd");
  101. fInitialize();
  102. fGetActingList();
  103. ]]>
  104. </script>
  105. <submission id="TRABC02001" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/cond/basecd" resultref="/root/init/actingplace"/>
  106. <submission id="TRABC02002" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/cond" resultref="/root/main/projlist/list"/>
  107. <submission id="TRABC02003" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/actingend" resultref="/root/hidden/ret"/>
  108. <submission id="TRABC02004" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/cond" resultref="/root/main/projlist/list"/>
  109. <submission id="TRAEA00904" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/cond" resultref="/root/init/cmb_info/suppdeptlist"/>
  110. </model>
  111. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  112. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  113. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  114. <script type="javascript" src="../../../ast/examcureweb/js/AEZ0001.js"/>
  115. <script type="javascript">
  116. <![CDATA[
  117. function fInitialize(){
  118. aezfSetSuppDeptcd(); //화면에서 현재부서정보 가져오기
  119. var today = getCurrentDate();
  120. model.setValue("/root/send/cond/execdd", today);
  121. //지원부서가져오기
  122. submit("TRAEA00904", false); //지원부서
  123. // 세션에서 부서 코드를 받아온다.
  124. var dutplcecd = getUserInfo("dutplcecd") ;
  125. //alert(" dutplcecd = " + dutplcecd );
  126. grd_projlist.fixedcellcheckbox(6, 1) = true; //그리드 헤더에 체크박스 설정
  127. model.removeNodeset("/root/main/projlist/list/proj");
  128. // 콤보에 전체선택 추가
  129. //addComboItem("combo1", "-전체-", "-", "above");
  130. if(dutplcecd == "1000000000"){
  131. addComboItem("combo1", "-전체-", "-", "above");
  132. }
  133. var combo1Index = 0;
  134. // AST 로 로그인 안했을 경우, 콤보박스에 해당 부서이름만 나오게 한다. (AST 로그인 시에는 콤보박스에서 부서 선택 가능)
  135. if(dutplcecd != "1000000000"){
  136. var nodeList = root.selectNodes("/root/send/cond/deptcd");
  137. for(var i = 0; i < nodeList.length; i++){
  138. if(nodeList.item(i).value == dutplcecd){
  139. combo1Index = i;
  140. break;
  141. }
  142. }
  143. combo1.select(combo1Index);
  144. combo1.disabled = true;
  145. }else{
  146. button6.visible = false;
  147. }
  148. combo2.select(1); //마감전
  149. combo1.value = model.getValue("/root/send/globalinstance/instance1"); //내시경 선택
  150. model.refresh();
  151. }
  152. function fGetActingList(){
  153. model.removeNodeset("/root/main/projlist/list/proj");
  154. model.refresh();
  155. submit("TRABC02004");
  156. grd_projlist.colstyle(3,"data","text-align") = "right";
  157. }
  158. ]]>
  159. </script>
  160. </xhtml:head>
  161. <xhtml:body guideline="1,1195;2,782;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  162. <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
  163. <caption id="caption1" class="tit_1" style="left:0px; top:0px; width:196px; height:14px; ">공통마감(M-SET)</caption>
  164. </group>
  165. <group id="group5" scroll="auto" style="left:0px; top:45px; width:1195px; height:730px; ">
  166. <group id="group6" style="left:0px; top:10px; width:1194px; height:35px; vertical-align:top; ">
  167. <shape id="roundrect3" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:1194px; height:35px; "/>
  168. <caption id="caption2" class="search_name" style="left:6px; top:8px; width:69px; height:17px; ">일자</caption>
  169. <caption id="caption3" class="search_name" style="left:241px; top:8px; width:96px; height:17px; ">Acting 부서</caption>
  170. <input id="ipt_execdd" ref="/root/send/cond/execdd" class="input_default" inputtype="date" style="left:63px; top:8px; width:100px; height:19px; ">
  171. <script type="javascript" ev:event="xforms-value-changed">
  172. <![CDATA[
  173. fGetActingList();
  174. ]]>
  175. </script>
  176. </input>
  177. <select1 id="radio1" ref="/root/send/cond/exeflag" visibility="1" appearance="full" cols="3" overflow="visible" style="left:550px; top:8px; width:170px; height:20px; border-style:none; ">
  178. <choices>
  179. <item>
  180. <label>전체</label>
  181. <value>A</value>
  182. </item>
  183. <item>
  184. <label>실행</label>
  185. <value>Y</value>
  186. </item>
  187. <item>
  188. <label>미실행</label>
  189. <value>N</value>
  190. </item>
  191. </choices>
  192. <script type="javascript" ev:event="xforms-value-changed">
  193. <![CDATA[
  194. if (model.getValue("/root/send/cond/deptcd") != '-' &&
  195. model.getValue("/root/send/cond/exeflag") == "Y" &&
  196. model.getValue("/root/send/cond/flag") =="before"){
  197. button6.visible = true;
  198. }else{
  199. button6.visible = false;
  200. }
  201. fGetActingList();
  202. ]]>
  203. </script>
  204. </select1>
  205. <select1 id="combo2" ref="/root/send/cond/flag" class="combo_search" appearance="minimal" style="left:875px; top:8px; width:90px; height:19px; ">
  206. <choices>
  207. <itemset nodeset="/root/init/flag/item">
  208. <label ref="name"/>
  209. <value ref="id"/>
  210. </itemset>
  211. </choices>
  212. <script type="javascript" ev:event="xforms-select">
  213. <![CDATA[
  214. if (model.getValue("/root/send/cond/deptcd") != '-' &&
  215. model.getValue("/root/send/cond/exeflag") == "Y" &&
  216. model.getValue("/root/send/cond/flag") =="before"){
  217. button6.visible = true;
  218. }else{
  219. button6.visible = false;
  220. }
  221. fGetActingList();
  222. ]]>
  223. </script>
  224. </select1>
  225. <caption id="caption4" class="search_name" style="left:801px; top:8px; width:76px; height:17px; ">구 분</caption>
  226. <select1 id="combo1" ref="/root/send/cond/deptcd" appearance="minimal" style="left:340px; top:8px; width:160px; height:19px; ">
  227. <choices>
  228. <itemset nodeset="/root/init/cmb_info/suppdeptlist/suppdept">
  229. <label ref="depthngnm"/>
  230. <value ref="suppdeptcd"/>
  231. </itemset>
  232. </choices>
  233. <script type="javascript" ev:event="xforms-value-changed">
  234. <![CDATA[
  235. if (model.getValue("/root/send/cond/deptcd") != '-' &&
  236. model.getValue("/root/send/cond/exeflag") == "Y" &&
  237. model.getValue("/root/send/cond/flag") =="before"){
  238. button6.visible = true;
  239. }else{
  240. button6.visible = false;
  241. }
  242. fGetActingList();
  243. ]]>
  244. </script>
  245. </select1>
  246. <button id="btn_sea" class="btn1_letter2" style="left:1130px; top:5px; width:56px; height:22px; ">
  247. <caption>조회</caption>
  248. <script type="javascript" ev:event="DOMActivate">
  249. <![CDATA[
  250. if (model.getValue("/root/send/cond/deptcd") != '-' &&
  251. model.getValue("/root/send/cond/exeflag") == "Y" &&
  252. model.getValue("/root/send/cond/flag") =="before"){
  253. button6.visible = true;
  254. }else{
  255. button6.visible = false;
  256. }
  257. fGetActingList();
  258. ]]>
  259. </script>
  260. </button>
  261. <line id="line2" style="x1:1126px; y1:4px; x2:1126px; y2:27px; border-color:#ffe4bb; border-left-style:solid; "/>
  262. </group>
  263. <line id="line20" class="line_1" style="x1:0px; y1:81px; x2:1194px; y2:81px; "/>
  264. <caption id="caption8" class="tit_2" style="left:5px; top:66px; width:160px; height:13px; ">액팅 리스트</caption>
  265. <group id="group2" style="left:800px; top:55px; width:395px; height:25px; ">
  266. <button id="button6" class="btn2_letter3" disable.background-image="../../../com/commonweb/images/dis_btn2_letter3.gif" style="left:340px; top:5px; width:53px; height:19px; background-image:../../../com/commonweb/images/btn2_letter3.gif; ">
  267. <caption>마감</caption>
  268. <script type="javascript" ev:event="DOMActivate">
  269. <![CDATA[
  270. model.removeNodeset("/root/actingend/endlist");
  271. model.makeNode("/root/actingend/endlist");
  272. var endListRow = 1;
  273. for(var i = 1; i < grd_projlist.rows; i++){
  274. if(grd_projlist.textmatrix(i, 1) == 'true'){
  275. model.makeNode("/root/actingend/endlist["+endListRow+"]/prcpdd");
  276. model.setValue("/root/actingend/endlist["+endListRow+"]/prcpdd", model.getValue("/root/main/projlist/list/proj["+ i +"]/prcpdd"));
  277. model.makeNode("/root/actingend/endlist["+endListRow+"]/prcpno");
  278. model.setValue("/root/actingend/endlist["+endListRow+"]/prcpno", model.getValue("/root/main/projlist/list/proj["+ i +"]/prcpno"));
  279. model.makeNode("/root/actingend/endlist["+endListRow+"]/prcphistno");
  280. model.setValue("/root/actingend/endlist["+endListRow+"]/prcphistno", model.getValue("/root/main/projlist/list/proj["+ i +"]/prcphistno"));
  281. model.makeNode("/root/actingend/endlist["+endListRow+"]/execprcpno");
  282. model.setValue("/root/actingend/endlist["+endListRow+"]/execprcpno", model.getValue("/root/main/projlist/list/proj["+ i +"]/execprcpno"));
  283. model.makeNode("/root/actingend/endlist["+endListRow+"]/instcd");
  284. model.setValue("/root/actingend/endlist["+endListRow+"]/instcd", model.getValue("/root/main/projlist/list/proj["+ i +"]/instcd"));
  285. model.makeNode("/root/actingend/endlist["+endListRow+"]/oiflag");
  286. model.setValue("/root/actingend/endlist["+endListRow+"]/oiflag", model.getValue("/root/main/projlist/list/proj["+ i +"]/oiflag"));
  287. endListRow++;
  288. }
  289. }
  290. // 체크된 행이 있으면 마감실행
  291. if(endListRow !== 1){
  292. model.makeNode("/root/actingend/endflagvalue/endflag");
  293. model.setValue("/root/actingend/endflagvalue/endflag", "A12");
  294. model.makeNode("/root/actingend/endflagvalue/execdd");
  295. model.setValue("/root/actingend/endflagvalue/execdd", model.getValue("/root/send/cond/execdd"));
  296. model.makeNode("/root/actingend/endflagvalue/execdeptcd");
  297. model.setValue("/root/actingend/endflagvalue/execdeptcd", model.getValue("/root/send/cond/deptcd"));
  298. submit("TRABC02003");
  299. fGetActingList();
  300. alert("마감되었습니다");
  301. }
  302. ]]>
  303. </script>
  304. </button>
  305. </group>
  306. <datagrid id="grd_projlist" nodeset="/root/main/projlist/list/proj" caption="등록번호^환자명^S/N^^처방코드^처방명^상태^^수행시간^Acting^수행자^병실^마감일시^Action^처방일자^caption2^caption3^caption4^caption5^caption6^caption7^Note^seq" colsep="^" colwidth="61, 59, 35, 28, 0, 395, 63, 25, 111, 55, 99, 71, 120, 73, 100, 58, 100, 100, 100, 100, 34, 100" dataheight="23" defaultrows="0" explorerbar="sortshow" extendlastcol="scroll" frozencols="4" mergecells="byrestriccol" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="23" rowsep="|" tooltip="true" style="left:0px; top:85px; width:1194px; height:640px; ">
  307. <col ref="pid" type="input"/>
  308. <col ref="hngnm"/>
  309. <col ref="sexage"/>
  310. <col ref="mset"/>
  311. <col ref="prcpcd"/>
  312. <col ref="prcpnm"/>
  313. <col ref="cdnm"/>
  314. <col ref="check" type="checkbox"/>
  315. <col ref="execddtm" format="yyyy-mm-dd 99:99"/>
  316. <col ref="acting"/>
  317. <col ref="execrid"/>
  318. <col ref="roomcd"/>
  319. <col ref="enddd" format="yyyy-mm-dd 99:99:99"/>
  320. <col ref="action" visibility="hidden"/>
  321. <col ref="prcpdd"/>
  322. <col ref="prcpno" visibility="hidden"/>
  323. <col ref="prcphistno" visibility="hidden"/>
  324. <col ref="execprcpno" visibility="hidden"/>
  325. <col ref="instcd" visibility="hidden"/>
  326. <col ref="execdeptcd" visibility="hidden"/>
  327. <col ref="oiflag" visibility="hidden"/>
  328. <col ref="note"/>
  329. </datagrid>
  330. </group>
  331. <group id="group3" style="left:0px; top:13px; width:1190px; height:27px; ">
  332. <button id="button7" class="btn4_letter3" disable.background-image="../../../com/commonweb/images/dis_btn4_letter3.gif" style="left:1120px; top:2px; width:68px; height:22px; background-image:../../../com/commonweb/images/btn4_letter3.gif; ">
  333. <caption>초기화</caption>
  334. <script type="javascript" ev:event="DOMActivate">
  335. <![CDATA[
  336. fInitialize();
  337. ]]>
  338. </script>
  339. </button>
  340. <line id="line1" class="line_6" style="x1:0px; y1:25px; x2:1189px; y2:25px; "/>
  341. </group>
  342. </xhtml:body>
  343. </xhtml:html>