SMABO01000_스케쥴변경관리.xrw 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326
  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>BMT 스케쥴변경관리</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <main>
  10. <scheupdtinfo>
  11. <scheupdtlist>
  12. <flag/>
  13. <hngnm/>
  14. <trnptwardcd/>
  15. <trnptroomcd/>
  16. <atdoctid/>
  17. <diagcdnm/>
  18. <trnptkind/>
  19. <trnptschedd/>
  20. <updttrnptschedd/>
  21. <updtresn/>
  22. <updtdt/>
  23. <trnptschestat/>
  24. </scheupdtlist>
  25. </scheupdtinfo>
  26. <popupendflag/>
  27. </main>
  28. <init>
  29. <cmbinfo>
  30. <updtresn>
  31. <A0173>
  32. <cdid/>
  33. <cdnm/>
  34. </A0173>
  35. </updtresn>
  36. <trnptkind>
  37. <A0161>
  38. <cdid/>
  39. <cdnm/>
  40. </A0161>
  41. </trnptkind>
  42. <atdoctid>
  43. <A0536>
  44. <cdid/>
  45. <cdnm/>
  46. </A0536>
  47. </atdoctid>
  48. <deptcd>
  49. <A0478>
  50. <cdid/>
  51. <cdnm/>
  52. </A0478>
  53. </deptcd>
  54. <lrglist>
  55. <item>
  56. <hsctlrgcd/>
  57. <hsctlrgnm/>
  58. </item>
  59. </lrglist>
  60. </cmbinfo>
  61. </init>
  62. <send>
  63. <req>
  64. <trnptfromdd/>
  65. <trnpttodd/>
  66. <deptcd/>
  67. <atdoctid/>
  68. <diagcd1/>
  69. <trnptkind/>
  70. <updtresn/>
  71. <pid/>
  72. </req>
  73. <reqdata1>
  74. <deptcd/>
  75. </reqdata1>
  76. <globalinstance>
  77. <instance1/>
  78. </globalinstance>
  79. <lrggrupcd>DI</lrggrupcd>
  80. <hsctlrgcd/>
  81. </send>
  82. <hidden>
  83. <count/>
  84. </hidden>
  85. <temp>
  86. <tempcodeinfo/>
  87. <tempcodeinfo2/>
  88. </temp>
  89. </root>
  90. </instance>
  91. <script type="javascript">
  92. <![CDATA[
  93. /* @group : 스케쥴변경관리
  94. * @ver : 2008.06.17
  95. * @by : 남수현
  96. * @type : function
  97. * @access : public
  98. * @desc : 스케쥴 변경이력을 조회한다.
  99. * @param :
  100. */
  101. function readfunc(){
  102. if (datacheck() == false){
  103. return;
  104. }
  105. model.removeNodeset("/root/main/scheupdtinfo/scheupdtlist");
  106. submit("TRABO01001");
  107. if (model.getValue("/root/main/scheupdtinfo/scheupdtlist[" + 1 + "]/hngnm") == ""){
  108. model.removeNodeset("/root/main/scheupdtinfo/scheupdtlist");
  109. }
  110. model.refresh();
  111. }
  112. /* @group : 스케쥴변경관리
  113. * @ver : 2008.06.17
  114. * @by : 남수현
  115. * @type : function
  116. * @access : public
  117. * @desc : 조회시 조회항목 유효성 체크
  118. * @param :
  119. */
  120. function datacheck(){
  121. if (isValidDateTime(model.getValue("/root/send/req/trnptfromdd"), "YYYYMMDD") == false){
  122. messageBox("From 이식일의 날짜 형식이 잘못 입력되었습니다.", "E999", "");
  123. return false;
  124. }
  125. if (isValidDateTime(model.getValue("/root/send/req/trnpttodd")) == false){
  126. messageBox("To 이식일의 날짜 형식이 잘못 입력되었습니다.", "E999", "");
  127. return false;
  128. }
  129. if (model.getValue("/root/send/req/trnptfromdd") > model.getValue("/root/send/req/trnpttodd")){
  130. messageBox("이식 기간일이 잘못 입력되었습니다.", "E999", "");
  131. return false;
  132. }
  133. return true;
  134. }
  135. /* @group : 스케쥴변경관리
  136. * @ver : 2008.06.17
  137. * @by : 남수현
  138. * @type : function
  139. * @access : public
  140. * @desc : 진료과를 변경하면 변경된 진료과의 주치의 정보를 가져온다.
  141. * @param :
  142. */
  143. function fChngSrchDrId() {
  144. model.setValue("/root/send/reqdata1/deptcd", model.getValue("/root/send/req/deptcd"));
  145. if (model.getValue("/root/send/req/deptcd") == "" ) return;
  146. }
  147. ]]>
  148. </script>
  149. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  150. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  151. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  152. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  153. <script type="javascript" src="../../../ast/hsctweb/js/bmtcommon.js"/>
  154. <script type="javascript" ev:event="xforms-ready">
  155. <![CDATA[
  156. model.setValue("/root/send/reqdata1/deptcd", model.getValue("/root/send/globalinstance/instance1"));
  157. // zbcfGetCodeList( new Array("A0173", "A0161", "A0478", "A0536"),
  158. // new Array("/root/init/cmbinfo/updtresn", "/root/init/cmbinfo/trnptkind", "/root/init/cmbinfo/deptcd", "/root/init/cmbinfo/atdoctid/A0536"));
  159. //BMT 코드성 데이터 조회.(기존의 공통코드로 사용했던것들을 BMT에서 관리하도록 수정 후)
  160. aboGetCodeList(new Array("A0173", "A0161", "A0478", "A0536"),
  161. new Array("/root/init/cmbinfo/updtresn", "/root/init/cmbinfo/trnptkind", "/root/init/cmbinfo/deptcd", "/root/init/cmbinfo/atdoctid"));
  162. // bmtcommon.js : 이식종류에 AUTO [00] 추가해주기
  163. abofSetTrnptKindCdAuto();
  164. // bmtcommon.js : BMT 진단대분류 조회 : 맨 앞에 공백을 추가해주기 위해서 함수로 변경
  165. abofGetBmtDIagLrgList();
  166. model.removeNodeset("/root/main/celltretdetl/celltretdetail");
  167. var scurrentdd = getCurrentDate();
  168. model.setValue("/root/send/req/trnptfromdd", scurrentdd.toDate().getAddDate(-30,"D").getDateFormat("YYYYMMDD"));
  169. model.setValue("/root/send/req/trnpttodd" , scurrentdd.toDate().getAddDate(30,"D").getDateFormat("YYYYMMDD"));
  170. model.refresh();
  171. // common.js
  172. if (checkOpener()) { //opener 검사
  173. var param = opener.javascript.getParameter("opener_parameter_id"); //opener parameter value를 get
  174. if(param != "") { // opener parameter value가 있는 경우
  175. //parameter value를 이용하여 프로그램 수행
  176. condarray = param.split("▦");
  177. model.setValue("/root/send/req/pid", condarray[0]);
  178. btn_sea.dispatch("onclick");
  179. }
  180. }
  181. ]]>
  182. </script>
  183. <submission id="TRABO01001" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/req" replace="instance" resultref="/root/main/scheupdtinfo"/>
  184. <submission id="TRABO02101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/init/cmbinfo/lrglist"/>
  185. <submission id="TRABO02103" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/temp/tempcodeinfo"/>
  186. </model>
  187. </xhtml:head>
  188. <xhtml:body guideline="1,1195;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  189. <group id="grp_tle" style="left:0px; top:0px; width:1195px; height:13px; ">
  190. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:164px; height:14px; ">스케쥴 변경관리</caption>
  191. </group>
  192. <group id="grp_biz" scroll="auto" style="left:0px; top:40px; width:1195px; height:744px; ">
  193. <caption id="caption1" class="tit_2" style="left:5px; top:81px; width:140px; height:13px; ">스케쥴 history</caption>
  194. <line id="line1" class="line_1" style="x1:0px; y1:96px; x2:1194px; y2:96px; "/>
  195. <group id="grp_sea" style="left:0px; top:10px; width:1194px; height:61px; vertical-align:top; ">
  196. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1194px; height:60px; background-color:#fffbf2; border-color:#ffd799; "/>
  197. <caption id="caption2" class="search_name" style="left:15px; top:9px; width:112px; height:17px; ">기간(이식일) :</caption>
  198. <caption id="caption4" class="search_name" style="left:599px; top:9px; width:73px; height:17px; ">주치의 :</caption>
  199. <caption id="caption5" class="search_no_b" style="left:233px; top:9px; width:12px; height:17px; ">~</caption>
  200. <line id="line13" class="line_4" style="x1:1107px; y1:7px; x2:1107px; y2:51px; "/>
  201. <input id="input1" ref="/root/send/req/trnptfromdd" class="input_s_essential" navindex="1" inputtype="date" style="left:130px; top:8px; width:100px; height:19px; "/>
  202. <input id="input25" ref="/root/send/req/trnpttodd" class="input_s_essential" navindex="2" inputtype="date" style="left:248px; top:8px; width:100px; height:19px; "/>
  203. <select1 id="combo2" ref="/root/send/req/atdoctid" class="combo_search" navindex="4" appearance="minimal" style="left:687px; top:8px; width:150px; height:19px; ">
  204. <choices>
  205. <itemset nodeset="/root/init/cmbinfo/atdoctid/A0536">
  206. <label ref="cdnm"/>
  207. <value ref="cdid"/>
  208. </itemset>
  209. </choices>
  210. </select1>
  211. <select1 id="combo1" ref="/root/send/req/diagcd1" class="combo_search" navindex="5" appearance="minimal" style="left:936px; top:8px; width:150px; height:19px; ">
  212. <choices>
  213. <itemset nodeset="/root/init/cmbinfo/lrglist/item">
  214. <label ref="hsctlrgnm"/>
  215. <value ref="hsctlrgcd"/>
  216. </itemset>
  217. </choices>
  218. </select1>
  219. <caption id="caption3" class="search_name" style="left:847px; top:9px; width:73px; height:17px; ">진단명 :</caption>
  220. <select1 id="combo3" ref="/root/send/req/deptcd" class="combo_search" navindex="3" appearance="minimal" style="left:444px; top:8px; width:150px; height:19px; ">
  221. <choices>
  222. <itemset nodeset="/root/init/cmbinfo/deptcd/A0478">
  223. <label ref="cdnm"/>
  224. <value ref="cdid"/>
  225. </itemset>
  226. </choices>
  227. <script type="javascript" ev:event="xforms-value-changed">
  228. <![CDATA[
  229. fChngSrchDrId();
  230. ]]>
  231. </script>
  232. </select1>
  233. <caption id="caption7" class="search_name" style="left:355px; top:9px; width:73px; height:17px; ">진료과 :</caption>
  234. <select1 id="combo4" ref="/root/send/req/trnptkind" class="combo_search" navindex="6" appearance="minimal" style="left:687px; top:32px; width:150px; height:19px; ">
  235. <choices>
  236. <itemset nodeset="/root/init/cmbinfo/trnptkind/A0161">
  237. <label ref="cdnm"/>
  238. <value ref="cdid"/>
  239. </itemset>
  240. </choices>
  241. </select1>
  242. <caption id="caption8" class="search_name" style="left:599px; top:33px; width:86px; height:17px; ">이식종류 :</caption>
  243. <select1 id="combo5" ref="/root/send/req/updtresn" class="combo_search" navindex="7" appearance="minimal" style="left:936px; top:32px; width:150px; height:19px; ">
  244. <choices>
  245. <itemset nodeset="/root/init/cmbinfo/updtresn/A0173">
  246. <label ref="cdnm"/>
  247. <value ref="cdid"/>
  248. </itemset>
  249. </choices>
  250. </select1>
  251. <caption id="caption9" class="search_name" style="left:847px; top:33px; width:86px; height:17px; ">변경사유 :</caption>
  252. <button id="btn_sea" class="btn1_letter2" navindex="8" style="left:1123px; top:20px; width:56px; height:22px; ">
  253. <caption>조회</caption>
  254. <script type="javascript" ev:event="onclick">
  255. <![CDATA[
  256. readfunc();
  257. ]]>
  258. </script>
  259. </button>
  260. <caption id="caption12" class="search_name" style="left:15px; top:35px; width:86px; height:17px; ">등록번호 :</caption>
  261. <input id="input2" ref="/root/send/req/pid" class="input_search" style="left:130px; top:34px; width:100px; height:19px; "/>
  262. </group>
  263. <button id="btn_excsave" class="btn2_letter4" navindex="9" style="left:1130px; top:75px; width:64px; height:19px; ">
  264. <caption>엑셀저장</caption>
  265. <script type="javascript" ev:event="DOMActivate">
  266. <![CDATA[
  267. var file = window.fileDialog("save","","true","스케쥴변경관리","xls","All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
  268. if(file != "") {
  269. grd_scheupdtlist.saveExcel(file);
  270. }
  271. ]]>
  272. </script>
  273. </button>
  274. <datagrid id="grd_scheupdtlist" nodeset="/root/main/scheupdtinfo/scheupdtlist" caption="상태^환자명^Unit^병실^주치의^진단명^이식종류^이전이식날짜^변경된이식날짜^변경사유^변경일시^이력상태" colsep="^" colwidth="57, 80, 114, 60, 73, 81, 125, 100, 100, 115, 160, 68" dataheight="23" explorerbar="sortshow" extendlastcol="scroll" focuscolor="#b9e5fb" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="23" rowsep="|" style="left:0px; top:101px; width:1194px; height:634px; text-align:center; ">
  275. <col disabled="true" ref="flag" type="combo">
  276. <choices>
  277. <item>
  278. <label>이력</label>
  279. <value>H</value>
  280. </item>
  281. </choices>
  282. </col>
  283. <col disabled="true" ref="hngnm" type="output"/>
  284. <col disabled="true" ref="trnptwardcd" type="output"/>
  285. <col disabled="true" ref="trnptroomcd"/>
  286. <col disabled="true" ref="atdoctid" type="output"/>
  287. <col disabled="true" ref="diagcdnm"/>
  288. <col disabled="true" ref="trnptkind"/>
  289. <col disabled="true" ref="trnptschedd" format="yyyy-mm-dd"/>
  290. <col disabled="true" ref="updttrnptschedd" format="yyyy-mm-dd"/>
  291. <col disabled="true" ref="updtresn"/>
  292. <col disabled="true" ref="updtdt" format="yyyy-mm-dd hh:mm:ss"/>
  293. <col disabled="true" ref="trnptschestat"/>
  294. <script type="javascript" ev:event="onaftersort">
  295. <![CDATA[
  296. grd_scheupdtlist.gridToInstance();
  297. ]]>
  298. </script>
  299. </datagrid>
  300. </group>
  301. <group id="grp_btn" style="left:0px; top:13px; width:1195px; height:27px; ">
  302. <button id="btn_prt" class="btn6_letter2" style="left:0px; top:5px; width:56px; height:22px; ">
  303. <caption>출력</caption>
  304. <script type="javascript" ev:event="DOMActivate">
  305. <![CDATA[
  306. exeReportPreview("RPABO01001", "XMLSTR", "/root/main/scheupdtinfo/scheupdtlist");
  307. ]]>
  308. </script>
  309. </button>
  310. </group>
  311. </xhtml:body>
  312. </xhtml:html>