SPAEA00400_Angio일정등록.xrw 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556
  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>Angio 일정등록</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <main>
  10. <patinfo>
  11. <patinfolist/>
  12. </patinfo>
  13. <userpopupinfo>
  14. <param/>
  15. <flag/>
  16. <searchitem/>
  17. </userpopupinfo>
  18. <userinfolist/>
  19. <popupendflag/>
  20. </main>
  21. <send>
  22. <data>
  23. <status/>
  24. <opdd/>
  25. <wardcd/>
  26. <roomcd/>
  27. <pid/>
  28. <diagcd/>
  29. <diagnm/>
  30. <opcd/>
  31. <opnm/>
  32. <datarem/>
  33. <atdoctid/>
  34. <beeferrem/>
  35. <dataupdtpwd/>
  36. <atdoctcmt/>
  37. <dataupdtflag/>
  38. <patnm/>
  39. <sex/>
  40. <age/>
  41. <atdoctnm/>
  42. <srchcond/>
  43. <optm/>
  44. </data>
  45. <globalinstance>
  46. <instance1/>
  47. </globalinstance>
  48. </send>
  49. <hidden>
  50. <count/>
  51. </hidden>
  52. <init>
  53. <cmb_ward>
  54. <initward>
  55. <wardcdid/>
  56. <wardcdnm/>
  57. </initward>
  58. </cmb_ward>
  59. <cmb_room>
  60. <initwardroom>
  61. <wardroomcdid/>
  62. <wardroomcdnm/>
  63. </initwardroom>
  64. </cmb_room>
  65. <openersend>
  66. <data/>
  67. </openersend>
  68. </init>
  69. <temp>
  70. <wardlist>
  71. <wardcd/>
  72. <roomcd/>
  73. <wardnm/>
  74. </wardlist>
  75. </temp>
  76. </root>
  77. </instance>
  78. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  79. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  80. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  81. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  82. <script type="javascript" src="../../../ast/examcureweb/js/AEZ0001.js"/>
  83. <script type="javascript">
  84. <![CDATA[
  85. var sOPSCHERECINFO_PATH = "/root/send/data";
  86. /**
  87. * @desc : 데이터 한글인지 영문인지 구분해주는 함수
  88. * @param : pData: 한글여부를 비교할 데이터
  89. * @return : E: 영문, H: 한글
  90. * @authur : 마정민 2007. 5. 30
  91. * @---------------------------------------------------
  92. */
  93. function fIsHangul(pData) {
  94. var sBit = pData.charAt(0);
  95. if (escape(sBit).length <= 4) return "E";
  96. return "H";
  97. }
  98. /**
  99. * @desc : 진단명 검색 팝업 open
  100. * @
  101. * @param : pFlag 처리구분 (code : 코드검색, term : 수술명)
  102. * @return :
  103. * @author : 오지훈
  104. * @---------------------------------------------------
  105. */
  106. function fOpenDiagSearch(pFlag){
  107. if(pFlag == "code"){
  108. setParameter("SPMMO00800_cond1", 1);
  109. setParameter("SPMMO00800_cond2", 1);
  110. setParameter("SPMMO00800_cond3", "E");
  111. setParameter("SPMMO00800_cond4", getCurrentDate());
  112. setParameter("SPMMO00800_cond5", model.getValue(sOPSCHERECINFO_PATH + "/dispdiagcd"));
  113. }else if(pFlag =="term"){
  114. var diagnm = model.getValue(sOPSCHERECINFO_PATH + "/diagnm");
  115. setParameter("SPMMO00800_cond1", 2);
  116. setParameter("SPMMO00800_cond2", 2);
  117. setParameter("SPMMO00800_cond3", fIsHangul(diagnm));
  118. setParameter("SPMMO00800_cond4", getCurrentDate());
  119. setParameter("SPMMO00800_cond5", diagnm);
  120. }
  121. modal("SPMMO00800");
  122. var useyn = getParameter("SPMMO00800_rtn_useyn");
  123. if(useyn == "Y"){
  124. setParameter("SPMMO00800_rtn_useyn", "N");
  125. var rtnparam = getParameter("SPMMO00800_rtn");
  126. rtnparam = rtnparam.split("▩");
  127. var tmpstr = rtnparam[1];
  128. tmpstr = tmpstr.split("▦");
  129. //model.setValue(sOPSCHERECINFO_PATH + "/dispdiagcd", tmpstr[1]);
  130. model.setValue(sOPSCHERECINFO_PATH + "/diagcd" , tmpstr[9]);
  131. model.setValue(sOPSCHERECINFO_PATH + "/diagnm" , tmpstr[2]);
  132. //20101102: 수정가능하도록 하자
  133. //ipt_diagcd.attribute("editable") = "false";
  134. //ipt_diagnm.attribute("editable") = "false";
  135. model.setFocus("ipt_opnm");
  136. model.refresh();
  137. }else{
  138. //model.setValue(sOPSCHERECINFO_PATH + "/dispdiagcd", "");
  139. model.setValue(sOPSCHERECINFO_PATH + "/diagcd" , "");
  140. model.setValue(sOPSCHERECINFO_PATH + "/diagnm" , "");
  141. model.refresh();
  142. }
  143. }
  144. /**
  145. * @desc : 수술명 검색 팝업 open
  146. * @
  147. * @param : pFlag 처리구분 (code : 코드검색, term : 수술명)
  148. * @return :
  149. * @author : 오지훈
  150. * @---------------------------------------------------
  151. */
  152. function fOpenOpSearch(pFlag){
  153. if(pFlag == "code"){
  154. var param = "1▦" +
  155. "1▦E▦" +
  156. getCurrentDate()
  157. // + "▦" + model.getValue(sOPSCHERECINFO_PATH + "/dispopcd");
  158. setParameter("SPMMO05200_param", param);
  159. }else if(pFlag == "term"){
  160. var opnm = model.getValue("/root/send/data/opnm");
  161. var param = "2▦3▦" +
  162. fIsHangul(opnm) + "▦" +
  163. getCurrentDate() + "▦" +
  164. opnm;
  165. setParameter("SPMMO05200_param", param);
  166. }
  167. modal("SPMMO05200");
  168. var useyn = getParameter("SPMMO05200_rtn_useyn");
  169. //alert(useyn);
  170. if(useyn == "Y"){
  171. setParameter("SPMMO05200_rtn_useyn", "N");
  172. var rtnparam = getParameter("SPMMO05200_rtn_param");
  173. rtnparam = rtnparam.split("▩");
  174. var tmpstr = rtnparam[0];
  175. tmpstr = tmpstr.split("▦");
  176. //model.setValue(sOPSCHERECINFO_PATH + "/dispopcd" , tmpstr[0]);
  177. model.setValue(sOPSCHERECINFO_PATH + "/opcd" , tmpstr[1]);
  178. model.setValue(sOPSCHERECINFO_PATH + "/opnm" , tmpstr[2]);
  179. //20101102: 수정가능하도록 하자
  180. //ipt_opcd.attribute("editable") = "false";
  181. //ipt_opnm.attribute("editable") = "false";
  182. model.setFocus("ipt_datarem");
  183. model.refresh();
  184. }else{
  185. //model.setValue(sOPSCHERECINFO_PATH + "/dispopcd", "");
  186. //alert(model.getValue(sOPSCHERECINFO_PATH + "/opcd"));
  187. model.setValue(sOPSCHERECINFO_PATH + "/opcd" , "");
  188. model.setValue(sOPSCHERECINFO_PATH + "/opnm" , "");
  189. model.refresh();
  190. }
  191. }
  192. function fChngSrchRoomCd() {
  193. if ( model.getValue("/root/send/data/wardcd") == "" ) return;
  194. model.resetInstanceNode("/root/init/cmb_room/initwardroom");
  195. submit("TRAEA02403");
  196. }
  197. function fSrchPatInfo() {
  198. /* @group : Angio 일정 등록
  199. * @ver : 2007.7.24
  200. * @by : 조원영
  201. * @-----------------------------------
  202. * @type : function
  203. * @access : public
  204. * @desc : 등록번호를 통한 환자 이름, 성별 및 나이 조회
  205. */
  206. model.setValue("/root/send/data/srchcond", "1"); // 검색조건 등록번호로 셋팅
  207. modal("SPPMC02500", "", "200", "200", "SPPMC02500", "/root/send/data", "/root/send");
  208. model.setValue( "/root/send/data/pid", model.getValue("/root/main/patinfo/patinfolist/pid") ); // 등록번호 설정
  209. model.setValue( "/root/send/data/patnm", model.getValue("/root/main/patinfo/patinfolist/hngnm") ); // 환자 이름
  210. model.setValue( "/root/send/data/sex", model.getValue("/root/main/patinfo/patinfolist/sex") ); // 환자 성별
  211. model.setValue( "/root/send/data/age", model.getValue("/root/main/patinfo/patinfolist/age") ); // 환자 나이
  212. model.refresh();
  213. submit("TRAEA02407");
  214. model.setValue("/root/send/data/wardcd", model.getValue("/root/temp/wardlist/wardcd") );
  215. fChngSrchRoomCd();
  216. model.setValue("/root/send/data/roomcd", model.getValue("/root/temp/wardlist/roomcd") );
  217. model.refresh();
  218. }
  219. function fSrchDrInfo() {
  220. /* @group : Angio 일정 등록
  221. * @ver : 2007.7.24
  222. * @by : 조원영
  223. * @-----------------------------------
  224. * @type : function
  225. * @access : public
  226. * @desc : 사용자ID를 통한 사용자 이름 조회
  227. */
  228. model.resetInstanceNode("/root/main/userpopupinfo"); // Instance 초기화
  229. model.removeNodeset("/root/main/userinfolist/list"); // Instance 초기화
  230. model.setValue("/root/main/userpopupinfo/param", "_OneS"); // 사용자 한 명만을 검색하기 위한 파라미터 설정
  231. modal("SPZSU10103", "", "200", "200", "SPZSU10103", "/root/main/userpopupinfo", "/root/main/temp");
  232. var iParam = getParameter("SPZSU10103_");
  233. setCSVToNode("/root/main/userinfolist", iParam);
  234. clearParameter("SPZSU10103_");
  235. model.setValue( "/root/send/data/atdoctid", model.getValue("/root/main/userinfolist/list/userid") ); // 사용자 ID
  236. model.setValue( "/root/send/data/atdoctnm", model.getValue("/root/main/userinfolist/list/usernm") ); // 사용자 이름
  237. model.refresh();
  238. }
  239. function chkIsChild() {
  240. var _status = model.getValue("/root/send/data/status");
  241. // 일정관리 화면에서 'Edit'로 본 화면을 호출했을 경우
  242. if ( _status == "u" ) {
  243. ipt_opdd.attribute("editable") = "false";
  244. ipt_pid.attribute("editable") = "false";
  245. }
  246. // 일정관리 화면에서 'Copy'로 본 화면을 호출했을 경우
  247. else if ( _status == "i" ) {
  248. model.resetInstanceNode("/root/send/data/opdd");
  249. }
  250. // 그 이외의 경우
  251. else {
  252. model.setValue("/root/send/data/status", "i");
  253. model.setValue("/root/send/data/dataupdtflag", "2");
  254. }
  255. }
  256. ]]>
  257. </script>
  258. <!-- 첫 화면 로딩시 수행되는 이벤트 -->
  259. <script type="javascript" ev:event="xforms-ready">
  260. <![CDATA[
  261. aezfSetSuppDeptcd();
  262. var srchLength1 = model.instances(0).selectNodes( "/root/send/data" ).length;
  263. //if ( srchLength1 > 0 ) {
  264. // model.copyNode ( "/root/send/data", "/root/init/openersend/data" );
  265. // model.refresh();
  266. //}
  267. chkIsChild();
  268. //20101011 해당근무지에 따라 타이틀 변경 - 박재영
  269. var dutplcenm = getUserInfo("dutplcenm");
  270. document.title = dutplcenm + " 수술일정등록";
  271. caption1.text = dutplcenm + " 수술일정등록";
  272. submit("TRAEA02402");
  273. model.refresh();
  274. if ( srchLength1 > 0 ) {
  275. submit("TRAEA02407");
  276. model.setValue("/root/send/data/wardcd", model.getValue("/root/temp/wardlist/wardcd") );
  277. fChngSrchRoomCd();
  278. model.setValue("/root/send/data/roomcd", model.getValue("/root/temp/wardlist/roomcd") );
  279. model.refresh();
  280. }
  281. model.setFocus("ipt_opdd"); // 수술날짜 입력란으로 자동 focus
  282. ]]>
  283. </script>
  284. <submission id="TRAEA02402" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/globalinstance" replace="instance" resultref="/root/init/cmb_ward"/>
  285. <submission id="TRAEA02403" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/init/cmb_room"/>
  286. <!-- Angio 일정 등록을 위한 mapping file -->
  287. <submission id="TXAEA02401" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/hidden"/>
  288. <submission id="TRAEA02406" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data/pid" replace="instance" resultref="/root/hidden"/>
  289. <submission id="TRAEA02407" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data/pid" replace="instance" resultref="/root/temp/wardlist"/>
  290. </model>
  291. </xhtml:head>
  292. <xhtml:body pagewidth="525" pageheight="350" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  293. <group id="grp_biz" scroll="auto" style="left:0px; top:0px; width:501px; height:306px; ">
  294. <caption id="caption13" class="cell_1" style="left:0px; top:23px; width:59px; height:23px; vertical-align:middle; ">수술날짜</caption>
  295. <caption id="caption1" class="tit_2" style="left:5px; top:2px; width:470px; height:13px; ">Angio일정등록</caption>
  296. <line id="line1" class="line_1" style="x1:0px; y1:17px; x2:500px; y2:17px; "/>
  297. <caption id="caption2" class="cell_1" style="left:0px; top:76px; width:59px; height:23px; vertical-align:middle; ">병실</caption>
  298. <caption id="caption3" class="cell_1" style="left:0px; top:101px; width:59px; height:23px; vertical-align:middle; ">진단명</caption>
  299. <caption id="caption4" class="cell_1" style="left:0px; top:50px; width:59px; height:23px; vertical-align:middle; ">등록번호</caption>
  300. <caption id="caption5" class="cell_1" style="left:0px; top:152px; width:59px; height:23px; vertical-align:middle; ">비고</caption>
  301. <caption id="caption6" class="cell_1" style="left:0px; top:126px; width:59px; height:23px; vertical-align:middle; ">수술명</caption>
  302. <caption id="caption7" class="cell_1" style="left:0px; top:204px; width:59px; height:23px; vertical-align:middle; ">비퍼</caption>
  303. <caption id="caption8" class="cell_1" style="left:0px; top:178px; width:59px; height:23px; vertical-align:middle; ">주치의</caption>
  304. <caption id="caption9" class="cell_1" style="left:0px; top:230px; width:59px; height:23px; vertical-align:middle; ">패스워드</caption>
  305. <line id="line5" class="line_2" style="x1:0px; y1:125px; x2:499px; y2:125px; "/>
  306. <line id="line6" class="line_2" style="x1:0px; y1:150px; x2:499px; y2:150px; "/>
  307. <line id="line7" class="line_2" style="x1:0px; y1:99px; x2:499px; y2:99px; "/>
  308. <line id="line8" class="line_2" style="x1:0px; y1:202px; x2:499px; y2:202px; "/>
  309. <line id="line9" class="line_2" style="x1:0px; y1:228px; x2:499px; y2:228px; "/>
  310. <line id="line10" class="line_2" style="x1:0px; y1:254px; x2:499px; y2:254px; "/>
  311. <!-- 수술날짜 -->
  312. <input id="ipt_opdd" ref="/root/send/data/opdd" class="input_default" inputtype="date" style="left:62px; top:24px; width:100px; height:19px; "/>
  313. <!-- 병동 -->
  314. <select1 id="cmb_wardcd" ref="/root/send/data/wardcd" class="combo_search" appearance="minimal" editmode="input" style="left:62px; top:78px; width:125px; height:19px; ">
  315. <choices>
  316. <itemset nodeset="/root/init/cmb_ward/initward">
  317. <label ref="wardcdnm"/>
  318. <value ref="wardcdid"/>
  319. </itemset>
  320. </choices>
  321. <script type="javascript" ev:event="xforms-value-changed">
  322. <![CDATA[
  323. fChngSrchRoomCd();
  324. ]]>
  325. </script>
  326. </select1>
  327. <!-- 병실 -->
  328. <select1 id="cmb_roomcd" ref="/root/send/data/roomcd" class="combo_search" appearance="minimal" editmode="input" style="left:190px; top:78px; width:100px; height:19px; ">
  329. <choices>
  330. <itemset nodeset="/root/init/cmb_room/initwardroom">
  331. <label ref="wardroomcdnm"/>
  332. <value ref="wardroomcdid"/>
  333. </itemset>
  334. </choices>
  335. </select1>
  336. <!-- 등록번호 -->
  337. <input id="ipt_pid" ref="/root/send/data/pid" class="input_search" maxlength="10" style="left:62px; top:52px; width:100px; height:19px; "/>
  338. <!-- 등록번호 조회버튼 (돋보기 모양) -->
  339. <button id="btn_pidsrch" class="icon_search" style="left:168px; top:53px; width:16px; height:16px; ">
  340. <caption/>
  341. <script type="javascript" ev:event="DOMActivate">
  342. <![CDATA[
  343. fSrchPatInfo();
  344. ]]>
  345. </script>
  346. </button>
  347. <!-- 성별 -->
  348. <output id="opt_sex" ref="/root/send/data/sex" class="output_fix" style="left:332px; top:52px; width:60px; height:19px; "/>
  349. <!-- 나이 -->
  350. <output id="opt_age" ref="/root/send/data/age" class="output_fix" style="left:434px; top:52px; width:55px; height:19px; "/>
  351. <!-- 진단코드 -->
  352. <input id="ipt_diagcd" ref="/root/send/data/diagcd" class="input_search" visibility="hidden" maxlength="500" style="left:62px; top:103px; width:406px; height:19px; "/>
  353. <!-- 진단명 -->
  354. <input id="ipt_diagnm" ref="/root/send/data/diagnm" class="input_search" maxlength="500" style="left:62px; top:103px; width:406px; height:19px; ">
  355. <script type="javascript" ev:event="onkeypress">
  356. <![CDATA[
  357. inputEnterKey("btn_diagnminfo", "DOMActivate");
  358. ]]>
  359. </script>
  360. </input>
  361. <!-- 진단명 검색버튼 -->
  362. <button id="btn_diagnminfo" class="icon_search" style="left:474px; top:104px; width:16px; height:16px; ">
  363. <caption/>
  364. <script type="javascript" ev:event="DOMActivate">
  365. <![CDATA[
  366. if( ipt_diagnm.value.length < 3 ){
  367. messageBox("검색어를 3자이상 " , "C001");
  368. model.setFocus("ipt_diagnm");
  369. return ;
  370. }
  371. fOpenDiagSearch("term");
  372. ]]>
  373. </script>
  374. </button>
  375. <!-- 수술코드 -->
  376. <input id="ipt_opcd" ref="/root/send/data/opcd" class="input_search" visibility="hidden" maxlength="500" style="left:62px; top:128px; width:406px; height:19px; "/>
  377. <!-- 수술명 -->
  378. <input id="ipt_opnm" ref="/root/send/data/opnm" class="input_search" maxlength="500" style="left:62px; top:128px; width:406px; height:19px; ">
  379. <script type="javascript" ev:event="onkeypress">
  380. <![CDATA[
  381. inputEnterKey("btn_opnminfo", "DOMActivate");
  382. ]]>
  383. </script>
  384. </input>
  385. <!-- 수술명 검색버튼 -->
  386. <button id="btn_opnminfo" class="icon_search" style="left:474px; top:129px; width:16px; height:16px; ">
  387. <caption/>
  388. <script type="javascript" ev:event="DOMActivate">
  389. <![CDATA[
  390. if( ipt_opnm.value.length < 3 ){
  391. messageBox("검색어를 3자이상 " , "C001");
  392. model.setFocus("ipt_opnm");
  393. return ;
  394. }
  395. fOpenOpSearch("term");
  396. ]]>
  397. </script>
  398. </button>
  399. <!-- 비고 -->
  400. <input id="ipt_datarem" ref="/root/send/data/datarem" class="input_search" maxlength="900" style="left:62px; top:154px; width:428px; height:19px; "/>
  401. <!-- 주치의 -->
  402. <input id="ipt_atdoctid" ref="/root/send/data/atdoctid" class="input_search" visibility="hidden" maxlength="10" style="left:302px; top:179px; width:100px; height:19px; "/>
  403. <!-- 주치의 조회버튼 (돋보기 모양) -->
  404. <button id="btn_atdoctidsrch" class="icon_search" style="left:168px; top:181px; width:16px; height:16px; ">
  405. <caption/>
  406. <script type="javascript" ev:event="DOMActivate">
  407. <![CDATA[
  408. fSrchDrInfo();
  409. ]]>
  410. </script>
  411. </button>
  412. <!-- 비퍼 -->
  413. <input id="ipt_beeferrem" ref="/root/send/data/beeferrem" class="input_search" maxlength="30" style="left:62px; top:205px; width:100px; height:19px; "/>
  414. <!-- 패스워드 -->
  415. <input id="ipt_dataupdtpwd" ref="/root/send/data/dataupdtpwd" class="input_search" maxlength="30" style="left:62px; top:232px; width:100px; height:19px; ">
  416. <script type="javascript" ev:event="DOMFocusOut">
  417. <![CDATA[
  418. var pwd = ipt_dataupdtpwd.currentText;
  419. if ( pwd.length < 2) {
  420. messageBox("패스워드를 2자 이상으로 입력해 주십시오.", "I999");
  421. model.setFocus("ipt_dataupdtpwd");
  422. }
  423. ]]>
  424. </script>
  425. </input>
  426. <caption id="caption15" class="cell_1" style="left:0px; top:256px; width:60px; height:49px; vertical-align:middle; ">소견</caption>
  427. <!-- 소견 -->
  428. <textarea id="tar_atdoctcmt" ref="/root/send/data/atdoctcmt" maxlength="300" style="left:63px; top:258px; width:435px; height:45px; "/>
  429. <!-- Data 상태 flag -->
  430. <input id="ipt_dataupdtflag" ref="/root/send/data/dataupdtflag" class="input_search" visibility="hidden" style="left:410px; top:25px; width:80px; height:19px; "/>
  431. <input id="ipt_status" ref="/root/send/data/status" class="input_search" visibility="hidden" style="left:325px; top:25px; width:80px; height:19px; "/>
  432. <input id="input1" ref="/root/send/data/optm" class="input_search" format="hh:nn" style="left:235px; top:24px; width:60px; height:19px; "/>
  433. <caption id="caption10" class="cell_1" style="left:170px; top:23px; width:59px; height:23px; vertical-align:middle; ">수술시간</caption>
  434. </group>
  435. <line id="line3" class="line_2" style="x1:0px; y1:47px; x2:499px; y2:47px; "/>
  436. <line id="line2" class="line_2" style="x1:0px; y1:73px; x2:499px; y2:73px; "/>
  437. <line id="line4" class="line_2" style="x1:0px; y1:175px; x2:499px; y2:175px; "/>
  438. <!--caption id="caption10" style="left:168px; top:24px; width:90px; height:20px; vertical-align:middle; ">예] 2007-10-29</caption-->
  439. <output id="opt_pathngnm" ref="/root/send/data/patnm" class="output_fix" style="left:190px; top:52px; width:100px; height:19px; "/>
  440. <caption id="caption11" class="cell_1" style="left:295px; top:50px; width:35px; height:23px; vertical-align:middle; ">성별</caption>
  441. <caption id="caption12" class="cell_1" style="left:396px; top:50px; width:35px; height:23px; vertical-align:middle; ">나이</caption>
  442. <output id="opt_atdoctnm" ref="/root/send/data/atdoctnm" class="output_fix" style="left:63px; top:180px; width:100px; height:19px; "/>
  443. <caption id="caption14" style="left:165px; top:232px; width:172px; height:20px; vertical-align:middle; ">2자 이상으로 지정해 주십시오.</caption>
  444. <group id="grp_btn" scroll="auto" style="left:0px; top:306px; width:501px; height:27px; ">
  445. <button id="btn_rgst" class="btn4_letter2" style="left:384px; top:5px; width:56px; height:22px; ">
  446. <caption>등록</caption>
  447. <script type="javascript" ev:event="DOMActivate">
  448. <![CDATA[
  449. if ( messageBox("" , "Q002") == 6 ) { // 등록여부 확인
  450. var _date = model.getValue("/root/send/data/opdd");
  451. var _date2 = getCurrentDate();
  452. var _pid = model.getValue("/root/send/data/pid");
  453. var _pnm = model.getValue("/root/send/data/patnm");
  454. var _dataupdtpwd = model.getValue("/root/send/data/dataupdtpwd");
  455. var _msg = "";
  456. // 수술날짜와 등록번호에 대한 validation 체크 (연월일 입력양식 체크, 수술날짜가 오늘 날짜보다 미래인지 체크)
  457. if ( isValidDateTime(_date, "YYYYMMDD" ) == false || getDateInterval(_date2, _date) < 0) {
  458. _msg += "수술일 오류or미래일 ";
  459. }
  460. if ( _pid == "") {
  461. _msg += "등록번호";
  462. }
  463. if ( _pnm == "") {
  464. _msg += "환자명";
  465. }
  466. if ( _dataupdtpwd == "") {
  467. _msg += "패스워드";
  468. }
  469. if ( _msg != "" ) {
  470. messageBox("입력하신 내용 중 " + _msg + "에 대한 내용이 빠져있거나 잘못되었습니다. 확인해 주십시오.", "I999");
  471. return true;
  472. }
  473. // 외래환자는 등록을 못하게 처리를 하였다가, 사용자요청으로 처리가능하게 함. 20080221
  474. // if (submit("TRAEA02406")) {
  475. //
  476. // }else {
  477. //// messageBox("재원여부 확인 조회가 수행되지 못했습니다.", "I999");
  478. // return;
  479. // }
  480. if (submit("TXAEA02401")) {
  481. messageBox("정상적으로 등록되었습니다.", "I999");
  482. //model.reset();
  483. model.refresh();
  484. }else {
  485. messageBox("등록 실패하였습니다.", "I999");
  486. return;
  487. }
  488. }
  489. ]]>
  490. </script>
  491. </button>
  492. <button id="btn_scheref" class="btn6_letter4" style="left:85px; top:5px; width:80px; height:22px; ">
  493. <caption>일정조회</caption>
  494. <script type="javascript" ev:event="DOMActivate">
  495. <![CDATA[
  496. modal("SPAEA00300", "","300","250", "SPAEA00300", "","");
  497. ]]>
  498. </script>
  499. </button>
  500. <button id="btn_schemngt" class="btn6_letter4" style="left:0px; top:5px; width:80px; height:22px; ">
  501. <caption>일정관리</caption>
  502. <script type="javascript" ev:event="DOMActivate">
  503. <![CDATA[
  504. open("SMAEA02400", "", "50", "50", "SMAEA02400", "", "");
  505. ]]>
  506. </script>
  507. </button>
  508. <button id="button2" class="btn4_letter2" style="left:440px; top:5px; width:56px; height:22px; ">
  509. <caption>닫기</caption>
  510. <script type="javascript" ev:event="DOMActivate">
  511. <![CDATA[
  512. window.close();
  513. ]]>
  514. </script>
  515. </button>
  516. </group>
  517. </xhtml:body>
  518. </xhtml:html>