SMPPI00900_사전신청요법기준관리.xrw 12 KB

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