SMPPI00800_사전심사제외환자관리.xrw 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <!--
  3. * @(#)SMPID33000_외래사전심사 제외환자관리 관리.xrw
  4. * 수정이력
  5. * - 2013.01.19 / 최초작성 / 이경민
  6. -->
  7. <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.css" ?>
  8. <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">
  9. <xhtml:head>
  10. <xhtml:title>외래사전심사 제외환자관리 관리</xhtml:title>
  11. <model id="model1">
  12. <instance id="instance1">
  13. <root xmlns="">
  14. <main>
  15. <drgclist>
  16. <drgc/>
  17. </drgclist>
  18. </main>
  19. <send>
  20. <rulecd>111</rulecd>
  21. <typecd/>
  22. <pid/>
  23. <instcd>031</instcd>
  24. <drgclist/>
  25. </send>
  26. <init>
  27. <PAM>
  28. <PK024list/>
  29. </PAM>
  30. </init>
  31. <hidden>
  32. <popupmenu>
  33. <clcj>
  34. <item>
  35. <name>행 추가</name>
  36. <func>fSpclGridInsertRow</func>
  37. </item>
  38. <item>
  39. <name>-</name>
  40. <func/>
  41. </item>
  42. <item>
  43. <name>행 삭제</name>
  44. <func>fSpclGridDeleteRow</func>
  45. </item>
  46. </clcj>
  47. </popupmenu>
  48. </hidden>
  49. </root>
  50. </instance>
  51. <script type="javascript" ev:event="xforms-ready">
  52. <![CDATA[
  53. // 화면을 초기화한다.
  54. fInitialize();
  55. ]]>
  56. </script>
  57. <submission id="TRPAM00105" mediatype="application/x-www-form-urlencoded" method="post"/>
  58. <submission id="TRPPI01001" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main"/>
  59. <submission id="TRPPI01002" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/init"/>
  60. <submission id="TXPPI01001" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main"/>
  61. </model>
  62. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  63. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  64. <script type="javascript" src="../../../com/commonweb/js/numericHelper.js"/>
  65. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  66. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  67. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  68. <script type="javascript" src="../../../pam/pamcomnweb/js/PAM001.js"/>
  69. <script type="javascript">
  70. <![CDATA[
  71. var gToday = new Date();
  72. var gBaseyear = gToday.getDateFormat("YYYY"); // (dateHelper.js)에서 제공하는 함수를 사용하여 해당 년를 구한다.
  73. var gBasemonth = gToday.getDateFormat("MM");
  74. var gBaseday = gToday.getDateFormat("DD");
  75. var gCurrentdd = gBaseyear + gBasemonth + gBaseday;
  76. var gCurrentym = gBaseyear + gBasemonth;
  77. // -----------------------
  78. // ▶ 화면초기화
  79. // -----------------------
  80. function fInitialize() {
  81. submit("TRPPI01002");
  82. btn_select.dispatch("DOMActivate");
  83. }
  84. // ----------------------------------------------------------------------
  85. // ▶ 동일진료일 명세서조회
  86. // ----------------------------------------------------------------------
  87. function fGetDocuList() {
  88. var chk = true;
  89. // if (model.getValue("/root/send/orddd") == "") {
  90. // chk = false;
  91. // messageBox("기준년월은", "I003"); //I003=필수입력입니다.
  92. // model.setFocus("ipt_orddd");
  93. // }
  94. if (chk == true) {
  95. submit("TRPPI01001");
  96. }
  97. }
  98. // 화면을 초기화한다.
  99. function fSpclGridInsertRow(){
  100. grd_drgclist.AddRow();
  101. grd_drgclist.bottomRow = grd_drgclist.rows;
  102. }
  103. function fSpclGridDeleteRow(){
  104. for (var i = 0; i < grd_drgclist.selectedRows; i++) {
  105. var sel = grd_drgclist.selectedRow(i);
  106. grd_drgclist.rowstatus(sel) = "4";
  107. }
  108. }
  109. ]]>
  110. </script>
  111. </xhtml:head>
  112. <xhtml:body pagewidth="960" pageheight="730" guideline="1,1163;2,787;2,806;1,142;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  113. <group id="grp_tle" style="left:0px; top:0px; width:865px; height:13px; ">
  114. <caption id="cap_title" class="tit_1" style="left:0px; top:0px; width:216px; height:15px; ">외래사전심사 제외환자관리 관리</caption>
  115. </group>
  116. <group id="grp_biz" scroll="auto" style="left:0px; top:28px; width:942px; height:592px; ">
  117. <datagrid id="grd_drgclist" nodeset="/root/main/drgclist/drgc" class="datagrid3" caption="제어코드^제어타입^환자번호^환자명^시작일자^종료일자^비고^등록자^등록일자^수정자^수정일자" colsep="^" colwidth="62, 66, 67, 72, 96, 92, 162, 60, 100, 60, 100" dataheight="23" ellipsis="true" extendlastcol="scroll" mergecellsfixedcols="bycol" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="32" rowsep="|" tooltip="true" style="left:0px; top:77px; width:940px; height:514px; ">
  118. <col disabled="true" ref="rulecd" type="input" style="text-align:center; "/>
  119. <col disabled="true" ref="typecd" type="input" style="text-align:center; "/>
  120. <col disabled="true" imemode="alpha" ref="pid" type="input" maxlength="12" style="text-align:center; "/>
  121. <col ref="patnm"/>
  122. <col disabled="true" ref="fromdd" type="inputdate" format="yyyy-mm-dd" maxlength="8"/>
  123. <col ref="todd" type="inputdate" format="yyyy-mm-dd" maxlength="8"/>
  124. <col ref="cmnt" type="input"/>
  125. <col ref="fstrgstrid" type="output" style="text-align:center; "/>
  126. <col ref="fstrgstdt" type="output" format="yyyy-mm-dd hh:nn"/>
  127. <col ref="lastupdtrid" style="text-align:center; "/>
  128. <col ref="lastupdtdt" visibility="visible" format="yyyy-mm-dd hh:nn"/>
  129. <script type="javascript" ev:event="onmousedown">
  130. <![CDATA[
  131. if (event.button == 3) { // 3 : 오른쪽 버튼
  132. if (grd_drgclist.isCell(event.target) && grd_drgclist.mouseRow >= grd_drgclist.fixedrows) {
  133. window.setPopupMenu(true, "/root/hidden/popupmenu/clcj/item", "name", "func", false);
  134. } else {
  135. window.showPopupMenu(true);
  136. window.setPopupMenu(true, "/root/hidden/popupmenu/clcj/item", "name", "func", false);
  137. }
  138. }
  139. ]]>
  140. </script>
  141. <script type="javascript" ev:event="DOMFocusOut">
  142. <![CDATA[
  143. window.setPopupMenu(false);
  144. ]]>
  145. </script>
  146. </datagrid>
  147. <caption id="cap_judgtrgtman" class="tit_2" style="left:4px; top:56px; width:234px; height:15px; ">외래사전심사 제외환자관리 리스트</caption>
  148. <line id="line1" class="line_1" style="x1:0px; y1:72px; x2:940px; y2:72px; "/>
  149. <group id="group1" style="left:0px; top:5px; width:940px; height:40px; vertical-align:top; ">
  150. <shape id="roundrect3" appearance="roundrect" style="left:0px; top:0px; width:940px; height:40px; "/>
  151. <button id="btn_select" class="btn1_letter2" navindex="32" style="left:875px; top:10px; width:56px; height:22px; ">
  152. <caption>조회</caption>
  153. <script type="javascript" ev:event="DOMActivate">
  154. <![CDATA[
  155. fGetDocuList();
  156. ]]>
  157. </script>
  158. </button>
  159. <line id="line3" class="line_4" style="x1:860px; y1:5px; x2:860px; y2:38px; "/>
  160. <caption id="caption30" class="search_name" style="left:8px; top:11px; width:95px; height:17px; ">제어코드 :</caption>
  161. <input id="ipt_cd_name" ref="/root/send/typecd" style="left:270px; top:10px; width:80px; height:19px; ">
  162. <script type="javascript" ev:event="onkeypress">
  163. <![CDATA[
  164. if (event.keyCode == 13) {
  165. setInputNodeCurText(",");
  166. fGetDocuList();
  167. }
  168. ]]>
  169. </script>
  170. </input>
  171. <caption id="caption1" class="search_name" style="left:183px; top:11px; width:99px; height:28px; ">제어타입 :</caption>
  172. <input id="input1" ref="/root/send/rulecd" style="left:95px; top:10px; width:75px; height:19px; ">
  173. <script type="javascript" ev:event="onkeypress">
  174. <![CDATA[
  175. if (event.keyCode == 13) {
  176. setInputNodeCurText(",");
  177. fGetDocuList();
  178. }
  179. ]]>
  180. </script>
  181. </input>
  182. <caption id="caption2" class="search_name" style="left:373px; top:11px; width:99px; height:17px; ">환자번호 :</caption>
  183. <input id="input2" ref="/root/send/pid" imemode="alpha" style="left:460px; top:10px; width:80px; height:19px; ">
  184. <script type="javascript" ev:event="onkeypress">
  185. <![CDATA[
  186. if (event.keyCode == 13) {
  187. setInputNodeCurText(",");
  188. fGetDocuList();
  189. }
  190. ]]>
  191. </script>
  192. </input>
  193. </group>
  194. <button id="btn_excelsave" class="btn2_letter4" _auth="P" style="left:725px; top:52px; width:64px; height:19px; ">
  195. <caption>엑셀저장</caption>
  196. <script type="javascript" ev:event="DOMActivate">
  197. <![CDATA[
  198. grd_drgclist.gridToInstance();
  199. if (grd_drgclist.rows > 1) {
  200. var fileName = window.fileDialog("save", "", false, cap_title.value, "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  201. if (fileName != "") {
  202. grd_drgclist.saveExcel(fileName, "sheetname:;colhiddenextend:true;rowhiddenextend:false;col_3:label;col_4:label;col_5:label;col_6:label;", true, true, "", "", true);
  203. }
  204. } else {
  205. messageBox("엑셀저장할 내역이", "I004"); ///엑셀저장할 내역이 없습니다.
  206. }
  207. ]]>
  208. </script>
  209. </button>
  210. <button id="button1" class="btn5_letter2" _auth="P" style="left:898px; top:52px; width:42px; height:19px; ">
  211. <caption>저장</caption>
  212. <script type="javascript" ev:event="DOMActivate">
  213. <![CDATA[
  214. var updtdata = getGridUpdateData(grd_drgclist);
  215. if (updtdata == "") {
  216. messageBox("변경된 데이터가","I004");
  217. return;
  218. }
  219. for (var i=0; i < grd_drgclist.rows; i++){
  220. if ((grd_drgclist.rowStatus(i) == 1 || grd_drgclist.rowStatus(i) == 2 || grd_drgclist.rowStatus(i) == 3) &&
  221. (grd_drgclist.valueMatrix(i,grd_drgclist.colRef("rulecd")).length == 0
  222. || grd_drgclist.valueMatrix(i,grd_drgclist.colRef("typecd")).length ==0
  223. || grd_drgclist.valueMatrix(i,grd_drgclist.colRef("pid")).length ==0
  224. || grd_drgclist.valueMatrix(i,grd_drgclist.colRef("fromdd")).length ==0
  225. || grd_drgclist.valueMatrix(i,grd_drgclist.colRef("todd")).length ==0))
  226. {
  227. var errmsg = "";
  228. if (grd_drgclist.valueMatrix(i,grd_drgclist.colRef("todd")).length ==0)
  229. {
  230. errmsg = grd_drgclist.labelMatrix(0,grd_drgclist.colRef("todd"));
  231. }
  232. if (grd_drgclist.valueMatrix(i,grd_drgclist.colRef("fromdd")).length ==0)
  233. {
  234. errmsg = grd_drgclist.labelMatrix(0,grd_drgclist.colRef("fromdd"));
  235. }
  236. if (grd_drgclist.valueMatrix(i,grd_drgclist.colRef("pid")).length ==0)
  237. {
  238. errmsg = grd_drgclist.labelMatrix(0,grd_drgclist.colRef("pid"));
  239. }
  240. if (grd_drgclist.valueMatrix(i,grd_drgclist.colRef("typecd")).length == 0 )
  241. {
  242. errmsg = grd_drgclist.labelMatrix(0,grd_drgclist.colRef("typecd"));
  243. }
  244. if (grd_drgclist.valueMatrix(i,grd_drgclist.colRef("rulecd")).length ==0)
  245. {
  246. errmsg = grd_drgclist.labelMatrix(0,grd_drgclist.colRef("rulecd"));
  247. }
  248. messageBox(errmsg.split("\n").join("") +"는","I003");
  249. return false;
  250. }
  251. }
  252. if (messageBox("저장", "S001") == 6) {
  253. model.setValue("/root/send/drgclist",grd_drgclist.getUpdateData());
  254. if ( submit("TXPPI01001") ) {
  255. messageBox("저장이","I002");
  256. fGetDocuList();
  257. }
  258. }
  259. ]]>
  260. </script>
  261. </button>
  262. <button id="button2" class="btn2_letter3" _auth="P" style="left:790px; top:52px; width:53px; height:19px; ">
  263. <caption>행삭제</caption>
  264. <script type="javascript" ev:event="DOMActivate">
  265. <![CDATA[
  266. fSpclGridDeleteRow();
  267. ]]>
  268. </script>
  269. </button>
  270. <button id="button3" class="btn2_letter3" _auth="P" style="left:844px; top:52px; width:53px; height:19px; ">
  271. <caption>행추가</caption>
  272. <script type="javascript" ev:event="DOMActivate">
  273. <![CDATA[
  274. fSpclGridInsertRow();
  275. ]]>
  276. </script>
  277. </button>
  278. </group>
  279. <button id="btn_cancel" class="btn4_letter2" style="left:884px; top:622px; width:56px; height:22px; ">
  280. <caption>종료</caption>
  281. <close ev:event="DOMActivate"/>
  282. </button>
  283. <select id="listbox1" overflow="scroll" appearance="compact" style="left:0px; top:630px; width:880px; height:90px; font-weight:bold; border-style:hidden; ">
  284. <choices>
  285. <itemset nodeset="/root/init/rudtlist">
  286. <label ref="hngnm"/>
  287. <value ref="typecd"/>
  288. </itemset>
  289. </choices>
  290. </select>
  291. </xhtml:body>
  292. </xhtml:html>