SPPMC04000_감면환자입력.xrw 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <!--
  3. * 제 목 : SPPMC04000_감면환자입력.xrw
  4. * 설 명 : 감면환자입력
  5. * 설 계 자 : 최희경
  6. * 작 성 자 : 최희경
  7. * 작 성 일 : 2007.07.21
  8. * 수정이력 :
  9. * 기 타 :
  10. -->
  11. <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/css" ?>
  12. <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">
  13. <xhtml:head>
  14. <xhtml:title>감면환자입력</xhtml:title>
  15. <model id="model1">
  16. <instance id="instance1">
  17. <root xmlns="">
  18. <main>
  19. <h_ptdc>
  20. <ptdc>
  21. <ptdc_pid/>
  22. <ptdc_disccd/>
  23. <ptdc_disccls/>
  24. <ptdc_todd/>
  25. <ptdc_seqno/>
  26. <ptdc_instcd/>
  27. <ptdc_histstat/>
  28. <ptdc_fromdd/>
  29. <ptdc_empid/>
  30. <ptdc_empidnm/>
  31. <ptdc_emprela/>
  32. <ptdc_discappacptyn/>
  33. <ptdc_profacptyn/>
  34. <ptdc_profacptdd/>
  35. <ptdc_remfact/>
  36. <ptdc_fstrgstrid/>
  37. <ptdc_fstrgstdt/>
  38. <ptdc_lastupdtrid/>
  39. <ptdc_lastupdtdt/>
  40. </ptdc>
  41. </h_ptdc>
  42. </main>
  43. <send/>
  44. <init>
  45. <disccd>
  46. <cd/>
  47. <nm/>
  48. </disccd>
  49. </init>
  50. <init_com>
  51. <P0016list>
  52. <P0016>
  53. <cdnm/>
  54. <cdid/>
  55. </P0016>
  56. </P0016list>
  57. </init_com>
  58. <hidden>
  59. <session/>
  60. </hidden>
  61. </root>
  62. </instance>
  63. <script type="javascript" ev:event="xforms-ready">
  64. <![CDATA[
  65. //default Set
  66. model.setValue("/root/main/h_ptdc/ptdc/ptdc_discappacptyn","N");
  67. model.setValue("/root/main/h_ptdc/ptdc/ptdc_profacptyn","N");
  68. fGetUserInfosSampling();
  69. //공통코드
  70. zbcfGetCodeList( new Array("P0016"),
  71. new Array("/root/init_com/P0016list" //직원과의 관계
  72. ) );
  73. submit("TRPAMCOM01");
  74. //SPPMC04000_PARM : pid▦disccd▦strSend▦strRcv▦
  75. if (checkOpener())
  76. {
  77. opener.javascript.setParameter("SPPMC04000_RTN","");
  78. var SPPMC04000_PARM = opener.javascript.getParameter("SPPMC04000_PARM");
  79. var array_parm = SPPMC04000_PARM.split("▦");
  80. gPID = array_parm[0];
  81. gDisccd = array_parm[1];
  82. strSend = array_parm[2];
  83. strRcv = array_parm[3];
  84. model.setValue("/root/main/h_ptdc/ptdc/ptdc_fromdd", getCurrentDate() );
  85. model.setValue("/root/main/h_ptdc/ptdc/ptdc_todd", "99991231" );
  86. model.setValue("/root/main/h_ptdc/ptdc/ptdc_discappacptyn", "N" );
  87. model.setValue("/root/main/h_ptdc/ptdc/ptdc_profacptyn", "N" );
  88. model.setValue("/root/main/h_ptdc/ptdc/ptdc_profacptdd", getCurrentDate() );
  89. model.refresh();
  90. //환자번호가 넘어오면, 해당환자의 감면내역 조회
  91. //환자번호가 없으면, 환자번호가 없는 신규입력
  92. if ( gPID != "" && gPID != " " && gPID != null ) {
  93. //해당환자의 감면내역조회
  94. }
  95. /*
  96. if (strSend != null && strSend != "" && strSend != " " && strSend != "-")
  97. {
  98. copyNodesetType("/root/main/h_ptdc", strSend, "replace", model, parent.model);
  99. }
  100. */
  101. opener.javascript.setParameter("SPPMC04000_PARM","");
  102. }
  103. ]]>
  104. </script>
  105. <submission id="TRPAMCOM01" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/hidden/session" replace="instance" resultref="/root/init"/>
  106. <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post"/>
  107. </model>
  108. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  109. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  110. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  111. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  112. <script type="javascript" src="../../../com/commonweb/js/numericHelper.js"/>
  113. <script type="javascript" src="../../../com/commonweb/js/utilHelper.js"/>
  114. <script type="javascript" src="../../../pam/opatmngtweb/js/PMOCOM.js"/>
  115. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  116. <script type="javascript">
  117. <![CDATA[
  118. var gPID, gDisccd, strSend, strRcv;
  119. ]]>
  120. </script>
  121. <script type="javascript" src="D:\CMCProject\application\webapps\com\hismainweb\js\DocTitle.js"/>
  122. </xhtml:head>
  123. <xhtml:body pagewidth="410" pageheight="280" guideline="1,518;" style="margin-left:8; margin-top:8; margin-right:8; margin-bottom:8; ">
  124. <group id="group3" scroll="auto" style="left:0px; top:0px; width:375px; height:218px; ">
  125. <line id="line1" class="line_1" style="x1:0px; y1:24px; x2:370px; y2:24px; "/>
  126. <caption id="caption1" class="tit_2" style="left:5px; top:10px; width:108px; height:14px; ">감면환자입력</caption>
  127. <button id="button29" class="icon_search" style="left:223px; top:80px; width:16px; height:16px; ">
  128. <caption/>
  129. <script type="javascript" ev:event="DOMActivate">
  130. <![CDATA[
  131. model.makeNode("/root/hidden/userpopupinfo/param");
  132. model.makeNode("/root/hidden/userpopupinfo/flag");
  133. model.makeNode("/root/hidden/userpopupinfo/searchitem");
  134. model.setValue("/root/hidden/userpopupinfo/param", "_OneS");
  135. model.setValue("/root/hidden/userpopupinfo/flag", "usernm");
  136. model.setValue("/root/hidden/userpopupinfo/searchitem", "사용자명");
  137. modal("../../userdeptinfoweb/xrw/SPZSU10103_사용자부서선택조회", "", "200", "200", "SPZSU10103","/root/hidden/userpopupinfo","/root/main/temp");
  138. var iParam = getParameter("SPZSU10103_");
  139. model.makeNode("/root/hidden/onerowselect");
  140. setCSVToNode("/root/hidden/onerowselect", iParam);
  141. model.setValue("/root/main/h_ptdc/ptdc/ptdc_empid", model.getValue("/root/hidden/onerowselect/list/userid") );
  142. model.setValue("/root/main/h_ptdc/ptdc/ptdc_empidnm", model.getValue("/root/hidden/onerowselect/list/usernm") );
  143. clearParameter("SPZSU10103_");
  144. model.removeNodeset("/root/hidden/userpopupinfo");
  145. model.refresh();
  146. ]]>
  147. </script>
  148. </button>
  149. <caption id="caption30" class="cell_1" style="left:0px; top:29px; width:115px; height:23px; vertical-align:middle; ">감면계정</caption>
  150. <caption id="caption31" class="cell_1" style="left:0px; top:149px; width:115px; height:23px; vertical-align:middle; ">증명서류접수/일자</caption>
  151. <caption id="caption2" class="cell_1" style="left:0px; top:77px; width:115px; height:23px; vertical-align:middle; ">직원성명</caption>
  152. <caption id="caption34" class="cell_1" style="left:0px; top:173px; width:115px; height:41px; vertical-align:middle; ">Remark</caption>
  153. <caption id="caption35" class="cell_1" style="left:0px; top:101px; width:115px; height:23px; vertical-align:middle; ">직원관계/재직여부</caption>
  154. <line id="line2" class="line_2" style="x1:0px; y1:75px; x2:370px; y2:75px; "/>
  155. <caption id="caption26" class="cell_1" style="left:0px; top:125px; width:115px; height:23px; vertical-align:middle; ">신청서접수여부</caption>
  156. <line id="line3" class="line_2" style="x1:0px; y1:99px; x2:370px; y2:99px; "/>
  157. <line id="line4" class="line_2" style="x1:0px; y1:123px; x2:370px; y2:123px; "/>
  158. <textarea id="textarea2" ref="/root/main/h_ptdc/ptdc/ptdc_remfact" scroll="vertical" style="left:117px; top:175px; width:252px; height:38px; "/>
  159. <line id="line5" class="line_2" style="x1:0px; y1:147px; x2:370px; y2:147px; "/>
  160. <caption id="caption29" class="cell_1" style="left:0px; top:53px; width:115px; height:23px; vertical-align:middle; ">시작일자/종료일자</caption>
  161. <line id="line6" class="line_2" style="x1:0px; y1:171px; x2:370px; y2:171px; "/>
  162. <line id="line61" class="line_2" style="x1:0px; y1:51px; x2:370px; y2:51px; "/>
  163. <button id="button2" class="btn2_letter6" style="left:283px; top:4px; width:86px; height:19px; ">
  164. <caption>직원가족사항</caption>
  165. <script type="javascript" ev:event="DOMActivate">
  166. <![CDATA[
  167. modal("SPPMC03800", "1","150", "150", "SPPMC03800", "", "");
  168. ]]>
  169. </script>
  170. </button>
  171. <select1 id="cmb_disccd" ref="/root/main/h_ptdc/ptdc/ptdc_disccd" class="combo_default" appearance="minimal" style="left:147px; top:30px; width:222px; height:19px; ">
  172. <choices>
  173. <itemset nodeset="/root/init/disccd">
  174. <label ref="nm"/>
  175. <value ref="cd"/>
  176. </itemset>
  177. </choices>
  178. </select1>
  179. <input id="ipt_disccd" ref="/root/main/h_ptdc/ptdc/ptdc_disccd" class="input_default" _chartype="upper" style="left:117px; top:30px; width:28px; height:19px; ">
  180. <script type="javascript" ev:event="xforms-value-changed">
  181. <![CDATA[
  182. if ((ipt_disccd.currentText).length == 3) {
  183. cmb_disccd.value = ipt_disccd.currentText;
  184. }
  185. ]]>
  186. </script>
  187. </input>
  188. <output id="output1" class="output_fix" appearance="output" style="left:244px; top:102px; width:125px; height:19px; "/>
  189. <select1 id="radio1" ref="/root/main/h_ptdc/ptdc/ptdc_discappacptyn" overflow="visible" appearance="full" cellspacing="8" cols="2" style="left:118px; top:126px; width:92px; height:20px; background-color:transparent; border-style:none; ">
  190. <choices>
  191. <item>
  192. <label>Yes</label>
  193. <value>Y</value>
  194. </item>
  195. <item>
  196. <label>No</label>
  197. <value>N</value>
  198. </item>
  199. </choices>
  200. </select1>
  201. <select1 id="radio2" ref="/root/main/h_ptdc/ptdc/ptdc_profacptyn" overflow="visible" appearance="full" cellspacing="8" cols="2" style="left:118px; top:150px; width:92px; height:20px; background-color:transparent; border-style:none; ">
  202. <choices>
  203. <item>
  204. <label>Yes</label>
  205. <value>Y</value>
  206. </item>
  207. <item>
  208. <label>No</label>
  209. <value>N</value>
  210. </item>
  211. </choices>
  212. </select1>
  213. <input id="input3" ref="/root/main/h_ptdc/ptdc/ptdc_profacptdd" class="input_default" inputtype="date" style="left:244px; top:150px; width:125px; height:19px; "/>
  214. <input id="ipt_fromdd" ref="/root/main/h_ptdc/ptdc/ptdc_fromdd" class="input_default" inputtype="date" style="left:117px; top:54px; width:125px; height:19px; "/>
  215. <input id="ipt_todd" ref="/root/main/h_ptdc/ptdc/ptdc_todd" class="input_default" inputtype="date" style="left:244px; top:54px; width:125px; height:19px; "/>
  216. <input id="ipt_empid" ref="/root/main/h_ptdc/ptdc/ptdc_empid" class="input_default" appearance="input" style="left:117px; top:78px; width:100px; height:19px; "/>
  217. <output id="opt_empidnm" ref="/root/main/h_ptdc/ptdc/ptdc_empidnm" class="output_fix" appearance="output" style="left:244px; top:78px; width:125px; height:19px; "/>
  218. <select1 id="cmb_emprela" ref="/root/main/h_ptdc/ptdc/ptdc_emprela" class="combo_default" appearance="minimal" style="left:117px; top:102px; width:125px; height:19px; ">
  219. <choices>
  220. <itemset nodeset="/root/init_com/P0016list/P0016">
  221. <label ref="cdnm"/>
  222. <value ref="cdid"/>
  223. </itemset>
  224. </choices>
  225. </select1>
  226. </group>
  227. <group id="group1" scroll="auto" style="left:0px; top:219px; width:375px; height:27px; ">
  228. <button id="btn_confirm" class="btn4_letter2" style="left:257px; top:5px; width:56px; height:22px; ">
  229. <caption>확인</caption>
  230. <script type="javascript" ev:event="DOMActivate">
  231. <![CDATA[
  232. //필수사항과 입력타입을 체크한다.
  233. if(isRequiredControls("cmb_disccd","ipt_fromdd")) {
  234. //messageBox("모든 필수값이 입력이","I002")
  235. }
  236. else {
  237. return;
  238. }
  239. if (checkOpener())
  240. {
  241. opener.javascript.setParameter("SPPMC04000_RTN","Y");
  242. if (strRcv != null && strRcv != "" && strRcv != " " && strRcv != "-")
  243. {
  244. copyNodesetType(strRcv, "/root/main/h_ptdc", "replace", parent.model, model);
  245. }
  246. window.close();
  247. }
  248. ]]>
  249. </script>
  250. </button>
  251. <button id="btn_cancel" class="btn4_letter2" style="left:316px; top:5px; width:56px; height:22px; ">
  252. <caption>취소</caption>
  253. <script type="javascript" ev:event="DOMActivate">
  254. <![CDATA[
  255. if (checkOpener())
  256. {
  257. opener.javascript.setParameter("SPPMC04000_RTN","N");
  258. window.close();
  259. }
  260. ]]>
  261. </script>
  262. </button>
  263. <line id="line88" class="line_6" style="x1:0px; y1:0px; x2:370px; y2:0px; "/>
  264. </group>
  265. </xhtml:body>
  266. </xhtml:html>