SPARC02600_의뢰환자찾기.xrw 44 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191
  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>의뢰환자찾기</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <send>
  10. <search>
  11. <pid/>
  12. <hngnm/>
  13. <rrgstno1/>
  14. <rrgstno2/>
  15. <orddeptcd/>
  16. <orddrid/>
  17. <fromdd/>
  18. <todd/>
  19. <coophospnm/>
  20. <drnm/>
  21. <patflag/>
  22. <hospgrade/>
  23. <saveflag/>
  24. <replflag/>
  25. <cptype/>
  26. <reqagntype/>
  27. <qreplflag/>
  28. </search>
  29. <reqdata>
  30. <pid/>
  31. <hngnm/>
  32. <rrgstno1/>
  33. <rrgstno2/>
  34. <orddeptcd/>
  35. <orddrid/>
  36. <fromdd/>
  37. <todd/>
  38. <coophospnm/>
  39. <drnm/>
  40. <patflag/>
  41. <hospgrade/>
  42. <saveflag/>
  43. <replflag/>
  44. <qreplflag/>
  45. </reqdata>
  46. <doctor/>
  47. <cond>
  48. <pid/>
  49. </cond>
  50. </send>
  51. <main>
  52. <list>
  53. <rqstlist>
  54. <orddd/>
  55. <pid/>
  56. <hngnm/>
  57. <patflag/>
  58. <saveflag/>
  59. <recdd/>
  60. <orddeptnm/>
  61. <orddrnm/>
  62. <cptype/>
  63. <reqdd/>
  64. <coophospnm/>
  65. <drnm/>
  66. <cretno/>
  67. <seqno/>
  68. <orddeptcd/>
  69. <orddrid/>
  70. <reqdd/>
  71. <coophospnm/>
  72. <drnm/>
  73. <clsmatyn/>
  74. <gradyear/>
  75. <telno/>
  76. <faxno/>
  77. <coopflag/>
  78. <emailid/>
  79. <emailaddr/>
  80. <qreplflag/>
  81. <reqseqno/>
  82. </rqstlist>
  83. <cntinfo>
  84. <reqcnt/>
  85. <replcnt/>
  86. </cntinfo>
  87. </list>
  88. <patinfo>
  89. <patinfolist/>
  90. </patinfo>
  91. <popupendflag/>
  92. <patient>
  93. <patinfo>
  94. <patyn/>
  95. </patinfo>
  96. </patient>
  97. </main>
  98. <init>
  99. <dept>
  100. <dept>
  101. </dept>
  102. </dept>
  103. <doctlist>
  104. <medispcl>
  105. <doctid/>
  106. <doctnm/>
  107. </medispcl>
  108. </doctlist>
  109. <hospgrade>
  110. <A0429>
  111. </A0429>
  112. </hospgrade>
  113. <saveflag>
  114. <A0497/>
  115. </saveflag>
  116. <patflag>
  117. </patflag>
  118. <openeryn/>
  119. <replflag/>
  120. <repltype>
  121. <A0423/>
  122. </repltype>
  123. <cptype>
  124. <A0420/>
  125. </cptype>
  126. <condcptype>
  127. <A0420/>
  128. </condcptype>
  129. <reqagntype>
  130. <A0583/>
  131. </reqagntype>
  132. <qreplflag>
  133. <A0636/>
  134. </qreplflag>
  135. <hardcd/>
  136. <wincloseyn>N</wincloseyn>
  137. </init>
  138. <temp>
  139. <hardcode/>
  140. </temp>
  141. <arcmreqp/>
  142. <send2/>
  143. </root>
  144. </instance>
  145. <submission id="TRZBP00102" mediatype="application/x-www-form-urlencoded" method="post"/>
  146. <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post"/>
  147. <submission id="TRZBC00102" mediatype="application/x-www-form-urlencoded" method="post"/>
  148. <submission id="TRZBC00105" mediatype="application/x-www-form-urlencoded" method="post" replace="instance"/>
  149. <submission id="TRZSD00109" mediatype="application/x-www-form-urlencoded" method="post" replace="instance"/>
  150. <submission id="TRARC01302" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/doctor" resultref="/root/init/doctlist"/>
  151. <submission id="TRARC02509" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send2" resultref="/root/arcmreqp"/>
  152. <script type="javascript" ev:event="xforms-ready">
  153. <![CDATA[
  154. fInit();
  155. ]]>
  156. </script>
  157. <submission id="TRARC02601" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/list"/>
  158. <submission id="TRARC02602" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/cond" resultref="/root/main/patient"/>
  159. <submission id="TRMMB04105" mediatype="application/x-www-form-urlencoded" method="post"/>
  160. <submission id="TRMMB04103" mediatype="application/x-www-form-urlencoded" method="post"/>
  161. <submission id="TXARC00201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/savedata" resultref="/root/updcnt"/>
  162. </model>
  163. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  164. <script type="javascript" src="../../../com/commonweb/js/utilHelper.js"/>
  165. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  166. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  167. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  168. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  169. <script type="javascript" src="../../../com/departmentcodeweb/js/common.js"/>
  170. <script type="javascript" src="../../../com/departmentcodeweb/js/ZSD001.js"/>
  171. <script type="javascript" src="../../../ast/soclworkweb/js/AWMCommon.js"/>
  172. <script type="javascript" src="../../../emr/commonweb/js/EMRCommon.js"/>
  173. <script type="javascript" src="../../../emr/prcpmngtweb/js/MMO001.js"/>
  174. <script type="javascript">
  175. <![CDATA[
  176. // 초기값
  177. function fInit()
  178. {
  179. // 공통코드 목록 가져오기
  180. zbcfGetCodeList(new Array("A0429", "A0496", "A0497", "A0423", "A0420", "A0420","A0583", "A0636")
  181. , new Array("/root/init/hospgrade", "/root/init/patflag", "/root/init/saveflag", "/root/init/repltype", "/root/init/cptype", "/root/init/condcptype","/root/init/reqagntype", "/root/init/qreplflag") , true);
  182. // 유형코드(구분항목)
  183. zbcfGetKindCodeList(
  184. new Array("A0016"), //업무규칙
  185. new Array("A0423"), //코드군
  186. new Array("/root/init/patflag"), //노드
  187. true, //minimum : true TRZBC00105
  188. new Array("dispseq"), //sorting 항목
  189. new Array("asc")
  190. );
  191. // 병원구분
  192. addComboItem("cmb_hospgrade", "협력병의원", "CA", "above");
  193. addComboItem("cmb_hospgrade", "", "", "above");
  194. addComboItem("cmb_saveflag", "", "", "above");
  195. addComboItem("cmb_patflag", "", "", "above");
  196. addComboItem("cmb_cptype", "", "", "above");
  197. addComboItem("cmb_reqagntype", "", "", "above");
  198. addComboItem("cmb_qreplflag", "", "", "above");
  199. cmb_qreplflag.select(1); //진료정보공개 동의여부 - 예
  200. cmb_hospgrade.select(0); //병원구분 - 전체
  201. if (getUserInfo("dutplceinstcd") == "031") {
  202. cmb_hospgrade.select(1); //협력병의원
  203. cmb_hospgrade.disabled = true;
  204. }
  205. cmb_saveflag.select(3); //작성구분 - 미작성
  206. cmb_patflag.select(1); //회신유형 - 전체
  207. model.removeNodeset("/root/main/list/rqstlist");
  208. /*
  209. if (checkOpener()) {
  210. var pid = opener.javascript.getParameter("pid");
  211. var hngnm = opener.javascript.getParameter("hngnm");
  212. model.setValue("/root/send/search/pid", pid);
  213. model.setValue("/root/send/search/hngnm", hngnm);
  214. } else {
  215. messageBox("상위화면이 변경되어 데이터를 전달할 수 ", "I004");
  216. }
  217. */
  218. if (checkOpener())
  219. {
  220. // 회신, 되의뢰 구분
  221. var replflag = opener.javascript.getParameter("replflag");
  222. //alert(replflag);
  223. if (replflag == "")
  224. {
  225. model.setValue("/root/init/openeryn", "N");
  226. replflag = "P";
  227. }
  228. else
  229. {
  230. //model.setValue("/root/init/openeryn", "Y");
  231. model.setValue("/root/init/openeryn", "N");
  232. }
  233. model.setValue("/root/init/replflag", replflag);
  234. model.setValue("/root/send/search/replflag", replflag);
  235. }
  236. else
  237. {
  238. model.setValue("/root/init/openeryn", "N");
  239. // 회신으로 셋팅
  240. model.setValue("/root/init/replflag", "P");
  241. model.setValue("/root/send/search/replflag", "P");
  242. }
  243. /*
  244. // 진료과
  245. //var instcd = "012";
  246. var instcd = getUserInfo("dutplceinstcd");
  247. //var standard_yn = "orduseyn";
  248. var standard_yn = "rcptuseyn";
  249. var ord_deptflag = "D";
  250. var rslt_ref = "/root/init/dept";
  251. var sort_method = "depthngnm";
  252. //zbcfGetDeptCodeList(instcd, standard_yn, ord_deptflag, rslt_ref, sort_method);
  253. sort_field = "depthngnm"
  254. zsdfGetInOutOrdDeptList(instcd, rslt_ref, sort_field, sort_method);
  255. */
  256. //과정보 설정(2014-05-12 이윤주 수정:칠곡 소아청소년과 분과 관련)
  257. mmbfGetDeptCodeComboList("/root/send/reqdata", "/root/init/dept", "T");
  258. // 진료과
  259. //addComboItem("cmb_orddeptcd", " ", "", "above");
  260. var jobkindcd = getUserInfo("jobkindcd");
  261. var dutplcecd = getUserInfo("dutplcecd");
  262. // 의료협력부서 가져옴(kimsj 091217 협력부서에서 등록번호 조회시 오류 - 노드변경)
  263. mmbfGetHardCodeInfo("/root/send/harddatadept", "/root/init/hardcd", 9915);
  264. //alert(dutplcecd);
  265. var userid = getUserInfo("userid");
  266. // 3260000000 : 의료협력 진료과코드, 직종 간호직 : 1140
  267. // 의료협력이 아닌경우는 진료과 자동 셋팅되고 선택할 수 없도록 막음
  268. //if (dutplcecd != "3260000000" && dutplcecd != "10000")
  269. var dutplcecd = getUserInfo("dutplcecd");
  270. if(model.getValue("/root/init/hardcd/hardcd[hardcd='" + dutplcecd + "']/hardcd") == "" && userid != "AST")
  271. //if (dutplcecd != "3260000000" && userid != "AST")
  272. {
  273. var dutplcecd = getUserInfo("dutplcecd");
  274. var userid = getUserInfo("userid");
  275. model.setValue("/root/send/search/orddeptcd", dutplcecd);
  276. }
  277. fDoctSerach();
  278. var CurrentDate = getCurrentDate();
  279. model.setValue("/root/send/search/todd", CurrentDate);
  280. var fromdd = CurrentDate.toDate().getAddDate(-4,"M").getDateFormat();
  281. model.setValue("/root/send/search/fromdd", fromdd);
  282. mmbfGetHardCodeInfoNm("/root/send/harddata","/root/temp/hardcode", 121); //OCR서식의 등록번호 체크로직 표시 여부
  283. var hardcd = model.getValue("/root/temp/hardcode/hardcd/hardcd");
  284. if (hardcd == "Y")
  285. {
  286. model.setValue("/root/send/search/orddrid", userid);
  287. if ( !fCheckDate() ) return; //필수 저장여부 체크
  288. fSearch();
  289. }
  290. else
  291. {
  292. //if (dutplcecd != "3260000000" && dutplcecd != "10000")
  293. var dutplcecd = getUserInfo("dutplcecd");
  294. if(model.getValue("/root/init/hardcd/hardcd[hardcd='" + dutplcecd + "']/hardcd") == "" && userid != "AST")
  295. //if (dutplcecd != "3260000000" && userid != "AST")
  296. {
  297. model.setValue("/root/send/search/orddrid", userid);
  298. //cmb_orddeptcd.disabled = true;
  299. //cmb_orddrid.disabled = true;
  300. if ( !fCheckDate() ) return; //필수 저장여부 체크
  301. fSearch();
  302. }
  303. }
  304. model.refresh();
  305. //alert("dutplcecd==>" + dutplcecd + "::: userid--->" + userid);
  306. /*
  307. if (model.getValue("/root/send/search/pid") != "")
  308. {
  309. //fPatPopUp();
  310. fSearch();
  311. }
  312. */
  313. //inputEnterKey("btn_pat", "DOMActivate");
  314. }
  315. // 진료의사 조회
  316. function fDoctSerach()
  317. {
  318. // 진료의사
  319. model.resetInstanceNode("/root/init/doctlist");
  320. model.removenode("/root/send/doctor");
  321. // 오늘 날짜로 세팅
  322. var CurrentDate = getCurrentDate();
  323. //model.makeValue("/root/send/doctor/orddd", model.getValue("/root/send/search/f_date"));
  324. model.makeValue("/root/send/doctor/orddd", getCurrentDate());
  325. model.makeValue("/root/send/doctor/orddeptcd", model.getValue("/root/send/search/orddeptcd"));
  326. model.makeValue("/root/send/doctor/allyn", "N");
  327. submit("TRARC01302", false);
  328. cmb_orddrid.select(0);
  329. //model.setValue("/root/main/patient/orddrid", orddrid);
  330. }
  331. // 병원 선택
  332. function fConfirm() {
  333. if (grd_list.rows <= 1) return;
  334. if (grd_list.row < 1) return;
  335. var mainObj = getMainViewer();
  336. var row = grd_list.row;
  337. // 메뉴에서 열었는지 팝업으로 열었는지 체크
  338. var openeryn = model.getValue("/root/init/openeryn");
  339. if( row > 0 )
  340. {
  341. if( getNodesetCount("/root/main/list/rqstlist") > 0 )
  342. {
  343. if (openeryn == "Y")
  344. {
  345. var pid = opener.javascript.setParameter("pid", model.getValue("/root/main/list/rqstlist[" + row + "]/pid"));
  346. var orddeptcd = opener.javascript.setParameter("orddeptcd", model.getValue("/root/main/list/rqstlist[" + row + "]/orddeptcd"));
  347. var orddrid = opener.javascript.setParameter("orddrid", model.getValue("/root/main/list/rqstlist[" + row + "]/orddrid"));
  348. var orddeptnm = opener.javascript.setParameter("orddeptnm", model.getValue("/root/main/list/rqstlist[" + row + "]/orddeptnm"));
  349. var orddrnm = opener.javascript.setParameter("orddrnm", model.getValue("/root/main/list/rqstlist[" + row + "]/orddrnm"));
  350. var orddd = opener.javascript.setParameter("orddd", model.getValue("/root/main/list/rqstlist[" + row + "]/orddd"));
  351. var cretno = opener.javascript.setParameter("cretno", model.getValue("/root/main/list/rqstlist[" + row + "]/cretno"));
  352. var seqno = opener.javascript.setParameter("seqno", model.getValue("/root/main/list/rqstlist[" + row + "]/seqno"));
  353. var reqdd = opener.javascript.setParameter("reqdd", model.getValue("/root/main/list/rqstlist[" + row + "]/reqdd"));
  354. var reqyn = opener.javascript.setParameter("reqyn", "Y");
  355. var selectyn = opener.javascript.setParameter("selectyn", "Y");
  356. var replflag = opener.javascript.setParameter("replflag", model.getValue("/root/init/replflag"));
  357. model.close();
  358. }
  359. else {
  360. var pid = opener.javascript.setParameter("pid", model.getValue("/root/main/list/rqstlist[" + row + "]/pid"));
  361. var orddeptcd = opener.javascript.setParameter("orddeptcd", model.getValue("/root/main/list/rqstlist[" + row + "]/orddeptcd"));
  362. var orddrid = opener.javascript.setParameter("orddrid", model.getValue("/root/main/list/rqstlist[" + row + "]/orddrid"));
  363. var orddeptnm = opener.javascript.setParameter("orddeptnm", model.getValue("/root/main/list/rqstlist[" + row + "]/orddeptnm"));
  364. var orddrnm = opener.javascript.setParameter("orddrnm", model.getValue("/root/main/list/rqstlist[" + row + "]/orddrnm"));
  365. var orddd = opener.javascript.setParameter("orddd", model.getValue("/root/main/list/rqstlist[" + row + "]/orddd"));
  366. var cretno = opener.javascript.setParameter("cretno", model.getValue("/root/main/list/rqstlist[" + row + "]/cretno"));
  367. var seqno = opener.javascript.setParameter("seqno", model.getValue("/root/main/list/rqstlist[" + row + "]/seqno"));
  368. var reqdd = opener.javascript.setParameter("reqdd", model.getValue("/root/main/list/rqstlist[" + row + "]/reqdd"));
  369. var reqyn = opener.javascript.setParameter("reqyn", "Y");
  370. var selectyn = opener.javascript.setParameter("selectyn", "N");
  371. opener.javascript.setParameter("replflag", model.getValue("/root/init/replflag"));
  372. // 처방에서 넘긴건지, 의뢰환자찾기에서 넘긴건지 구분
  373. var prcpyn = opener.javascript.setParameter("prcpyn", "N");
  374. var openerId = opener.window.javascript.getScreenID();
  375. if (openerId == "SMARC02500")
  376. {
  377. opener.window.javascript.fInit();
  378. }
  379. else
  380. {
  381. modal("SMARC02500");
  382. }
  383. }
  384. }
  385. var wincloseyn = model.getValue("/root/init/wincloseyn");
  386. if (wincloseyn == "Y") {
  387. window.close();
  388. }
  389. }
  390. }
  391. // 조회전 필수 체크
  392. function fCheckDate()
  393. {
  394. var dutplcecd = getUserInfo("dutplcecd");
  395. var userid = getUserInfo("userid");
  396. var fromdd = model.getValue("/root/send/search/fromdd");
  397. var todd = model.getValue("/root/send/search/todd");
  398. var pid = model.getValue("/root/send/search/pid");
  399. // 3260000000 : 의료협력 진료과코드, 직종 간호직 : 1140
  400. // 의료협력이 아닌경우는 진료과 자동 셋팅되고 선택할 수 없도록 막음
  401. var hardcd = model.getValue("/root/temp/hardcode/hardcd/hardcd");
  402. if (hardcd == "Y")
  403. {
  404. if (isNull(pid) == true)
  405. {
  406. if( ! isValidDateTime( fromdd, 'YYYYMMDD') || ! isValidDateTime( todd, 'YYYYMMDD') ){
  407. messageBox("입력하신 일자구분이 정확한 날짜타입이 아닙니다.", "E999", "");
  408. return false;
  409. }
  410. if( getDateInterval(fromdd, todd) > 124 ){
  411. messageBox("조회가능한 최대 기간은 4달입니다. 일자구분에서 날짜를 수정하세요!", "E999", "");
  412. return false;
  413. }
  414. if( getDateInterval(fromdd, todd) < 0 ){
  415. messageBox("일자구분에서 시작일자가 종료일자보다 미래일자 입니다. 확인하세요!", "E999", "");
  416. return false;
  417. }
  418. // 날짜 계산
  419. var daycnt = getDateInterval(fromdd, todd);
  420. // 1일이 아닌 경우는 조건을 타야 함
  421. if (daycnt != 0)
  422. {
  423. // 진료과 체크
  424. if (model.getValue("/root/send/search/orddeptcd") == "")
  425. {
  426. messageBox("일자구분에서 하루 이상의 기간을 선택했을 경우, 진료과는 조회 필수 조건입니다. 진료과를 입력하세요.", "E999", "");
  427. //messageBox("진료과를 ","C002");
  428. return false;
  429. }
  430. //alert(ipt_hngnm.currentText.length);
  431. if (ipt_hngnm.currentText.length > 0 && ipt_hngnm.currentText.length < 2) {
  432. messageBox("환자명은 2글자 이상으로 해주십시요!","E999","");
  433. model.setFocus("ipt_hngnm");
  434. return false;
  435. }
  436. if (ipt_coophospnm.currentText.length > 0 && ipt_coophospnm.currentText.length < 2) {
  437. messageBox("의뢰병원은 2글자 이상으로 해주십시요!","E999","");
  438. model.setFocus("ipt_coophospnm");
  439. return false;
  440. }
  441. if (ipt_drnm.currentText.length > 0 && ipt_drnm.currentText.length < 2) {
  442. messageBox("의뢰의사는 2글자 이상으로 해주십시요!","E999","");
  443. model.setFocus("ipt_drnm");
  444. return false;
  445. }
  446. }
  447. }
  448. }
  449. else
  450. {
  451. //if (dutplcecd != "3260000000" && dutplcecd != "10000")
  452. var dutplcecd = getUserInfo("dutplcecd");
  453. if(model.getValue("/root/init/hardcd/hardcd[hardcd='" + dutplcecd + "']/hardcd") == "" && userid != "AST")
  454. //if (dutplcecd != "3260000000" && userid != "AST")
  455. {
  456. if (isNull(pid) == true)
  457. {
  458. if (model.getValue("/root/send/search/orddeptcd") == "")
  459. {
  460. messageBox("진료과를 ","C001");
  461. model.setFocus("cmb_orddeptcd");
  462. return false;
  463. }
  464. // if (model.getValue("/root/send/search/orddrid") == "")
  465. // {
  466. // messageBox("진료의사를 ","C001");
  467. // model.setFocus("cmb_orddrid");
  468. // return false;
  469. // }
  470. if( ! isValidDateTime( fromdd, 'YYYYMMDD') || ! isValidDateTime( todd, 'YYYYMMDD') ){
  471. messageBox("입력하신 일자구분이 정확한 날짜타입이 아닙니다.", "E999", "");
  472. return false;
  473. }
  474. if( getDateInterval(fromdd, todd) > 124 ){
  475. messageBox("조회가능한 최대 기간은 4달입니다. 일자구분에서 날짜를 수정하세요!", "E999", "");
  476. return false;
  477. }
  478. if( getDateInterval(fromdd, todd) < 0 ){
  479. messageBox("일자구분에서 시작일자가 종료일자보다 미래일자 입니다. 확인하세요!", "E999", "");
  480. return false;
  481. }
  482. //alert(ipt_hngnm.currentText.length);
  483. if (ipt_hngnm.currentText.length > 0 && ipt_hngnm.currentText.length < 2) {
  484. messageBox("환자명은 2글자 이상으로 해주십시요!","E999","");
  485. model.setFocus("ipt_hngnm");
  486. return false;
  487. }
  488. if (ipt_coophospnm.currentText.length > 0 && ipt_coophospnm.currentText.length < 2) {
  489. messageBox("의뢰병원은 2글자 이상으로 해주십시요!","E999","");
  490. model.setFocus("ipt_coophospnm");
  491. return false;
  492. }
  493. if (ipt_drnm.currentText.length > 0 && ipt_drnm.currentText.length < 2) {
  494. messageBox("의뢰의사는 2글자 이상으로 해주십시요!","E999","");
  495. model.setFocus("ipt_drnm");
  496. return false;
  497. }
  498. }
  499. }
  500. else
  501. {
  502. if (isNull(pid) == true)
  503. {
  504. if( ! isValidDateTime( fromdd, 'YYYYMMDD') || ! isValidDateTime( todd, 'YYYYMMDD') ){
  505. messageBox("입력하신 일자구분이 정확한 날짜타입이 아닙니다.", "E999", "");
  506. return false;
  507. }
  508. if( getDateInterval(fromdd, todd) > 124 ){
  509. messageBox("조회가능한 최대 기간은 4달입니다. 일자구분에서 날짜를 수정하세요!", "E999", "");
  510. return false;
  511. }
  512. if( getDateInterval(fromdd, todd) < 0 ){
  513. messageBox("일자구분에서 시작일자가 종료일자보다 미래일자 입니다. 확인하세요!", "E999", "");
  514. return false;
  515. }
  516. // 날짜 계산
  517. var daycnt = getDateInterval(fromdd, todd);
  518. // 1일이 아닌 경우는 조건을 타야 함
  519. if (daycnt != 0)
  520. {
  521. // 진료과 체크
  522. if (model.getValue("/root/send/search/orddeptcd") == "")
  523. {
  524. messageBox("일자구분에서 하루 이상의 기간을 선택했을 경우, 진료과는 조회 필수 조건입니다. 진료과를 입력하세요.", "E999", "");
  525. //messageBox("진료과를 ","C002");
  526. return false;
  527. }
  528. //alert(ipt_hngnm.currentText.length);
  529. if (ipt_hngnm.currentText.length > 0 && ipt_hngnm.currentText.length < 2) {
  530. messageBox("환자명은 2글자 이상으로 해주십시요!","E999","");
  531. model.setFocus("ipt_hngnm");
  532. return false;
  533. }
  534. if (ipt_coophospnm.currentText.length > 0 && ipt_coophospnm.currentText.length < 2) {
  535. messageBox("의뢰병원은 2글자 이상으로 해주십시요!","E999","");
  536. model.setFocus("ipt_coophospnm");
  537. return false;
  538. }
  539. if (ipt_drnm.currentText.length > 0 && ipt_drnm.currentText.length < 2) {
  540. messageBox("의뢰의사는 2글자 이상으로 해주십시요!","E999","");
  541. model.setFocus("ipt_drnm");
  542. return false;
  543. }
  544. }
  545. }
  546. }
  547. }
  548. return true;
  549. }
  550. // 조회
  551. function fSearch()
  552. {
  553. model.resetInstanceNode("/root/send/reqdata");
  554. var pid = model.getValue("/root/send/search/pid");
  555. if (isNull(pid) == true)
  556. {
  557. model.copyNode("/root/send/reqdata", "/root/send/search");
  558. }
  559. else
  560. {
  561. if (getUserInfo("dutplceinstcd") == "031" && fContainsHardCD("5974", getUserInfo("dutplcecd")) == false ) {
  562. var flag ="2";
  563. var msg = "현재 이 환자는 의뢰건이 존재하지 않거나 진료정보공개 동의를 하지 않아 회신대상이 아닙니다.";
  564. var orddeptcd = model.getValue("/root/send/search/orddeptcd");
  565. model.resetInstanceNode("/root/arcmreqp");
  566. model.makeValue ( "/root/send2/cond1", pid);
  567. model.makeValue ( "/root/send2/cond2", getCurrentDate());
  568. model.makeValue ( "/root/send2/cond4", orddeptcd);
  569. if ( getUserInfo("dutplceinstcd") == "031" ) {
  570. flag = "1";
  571. msg = "현재 이 환자는 의뢰건이 존재하지 않거나 또는 협력병의원이 아니거나 진료정보공개 동의를 하지 않아 회신대상이 아닙니다.";
  572. }
  573. model.makeValue ( "/root/send2/flag", flag);
  574. submit("TRARC02509");
  575. if ( model.getValue("/root/arcmreqp/arcmreqp/replflag") == "N" ) {
  576. messageBox(msg , "E");
  577. return;
  578. }
  579. }
  580. model.setValue("/root/send/reqdata/pid", pid);
  581. model.setValue("/root/send/reqdata/replflag", model.getValue("/root/send/search/replflag"));
  582. }
  583. /*
  584. var reqagntype=model.getValue("/root/send/search/reqagntype");
  585. if(isNull(reqagntype))
  586. {
  587. model.makeValue(
  588. }
  589. else
  590. {
  591. }
  592. */
  593. // reqmngt
  594. // reqGetOrdRqstList
  595. // getRqstList(리스트), getCntInfo(의뢰건수)
  596. if (submit("TRARC02601", false) == true)
  597. {
  598. var jobkindcd = getUserInfo("jobkindcd");
  599. var dutplcecd = getUserInfo("dutplcecd");
  600. // 메뉴에서 열었는지 팝업으로 열었는지 체크
  601. var openeryn = model.getValue("/root/init/openeryn");
  602. //alert(dutplcecd);
  603. // 3260000000 : 의료협력 진료과코드, 직종 간호직 : 1140
  604. // 의료협력이 아닌경우에만 미등록환자도 등록가능함.
  605. var dutplcecd = getUserInfo("dutplcecd");
  606. if(model.getValue("/root/init/hardcd/hardcd[hardcd='" + dutplcecd + "']/hardcd") == "" && dutplcecd != "10000")
  607. //if (dutplcecd != "3260000000" && dutplcecd != "10000")
  608. {
  609. // 등록번호로 조회한 경우 조회건이 없는 환자인 경우는 미등록이 가능함
  610. if (model.instances(0).selectNodes("/root/main/list/rqstlist/pid").length == 0 && ipt_pid.currentText.length > 0)
  611. {
  612. model.resetInstanceNode("/root/send/cond/pid");
  613. model.setValue("/root/send/cond/pid", ipt_pid.currentText);
  614. // 등록번호 체크, 의뢰등록여부 체크 필요(추후 추가)
  615. if (submit("TRARC02602", false) == true)
  616. {
  617. if (model.getValue("/root/main/patient/patinfo/patyn") == "Y")
  618. {
  619. // 실행 하시겠습니까?
  620. var btn = messageBox("미등록된 환자입니다. 진료회신서 등록을 작성하시겠습니까?", "Q999");
  621. if (btn == '6')
  622. {
  623. if (openeryn == "Y")
  624. {
  625. var pid = opener.javascript.setParameter("pid", ipt_pid.currentText);
  626. var orddeptcd = opener.javascript.setParameter("orddeptcd", model.getValue("/root/send/search/orddeptcd"));
  627. var orddrid = opener.javascript.setParameter("orddrid", model.getValue("/root/send/search/orddrid"));
  628. var orddeptnm = opener.javascript.setParameter("orddeptnm", cmb_orddeptcd.label);
  629. var orddrnm = opener.javascript.setParameter("orddrnm", cmb_orddrid.label);
  630. var orddd = opener.javascript.setParameter("orddd", "");
  631. var cretno = opener.javascript.setParameter("cretno", "0");
  632. var seqno = opener.javascript.setParameter("seqno", "0");
  633. var reqdd = opener.javascript.setParameter("reqdd", "");
  634. var reqyn = opener.javascript.setParameter("reqyn", "N");
  635. var selectyn = opener.javascript.setParameter("selectyn", "Y");
  636. var replflag = opener.javascript.setParameter("replflag", model.getValue("/root/init/replflag"));
  637. model.close();
  638. // ReplSavePopUp()
  639. }
  640. else
  641. {
  642. /*
  643. var pid = setParameter("pid", ipt_pid.currentText);
  644. var orddeptcd = setParameter("orddeptcd", model.getValue("/root/send/search/orddeptcd"));
  645. var orddrid = setParameter("orddrid", model.getValue("/root/send/search/orddrid"));
  646. var orddeptnm = setParameter("orddeptnm", cmb_orddeptcd.label);
  647. var orddrnm = setParameter("orddrnm", cmb_orddrid.label);
  648. var orddd = setParameter("orddd", "");
  649. var cretno = setParameter("cretno", "0");
  650. var seqno = setParameter("seqno", "0");
  651. var reqdd = setParameter("reqdd", "");
  652. var reqyn = setParameter("reqyn", "N");
  653. var selectyn = setParameter("selectyn", "N");
  654. var replflag = setParameter("replflag", model.getValue("/root/init/replflag"));
  655. //alert(replflag);
  656. // 처방에서 넘긴건지, 의뢰환자찾기에서 넘긴건지 구분
  657. var prcpyn = setParameter("prcpyn", "N");
  658. */
  659. opener.model.resetInstanceNode("/root/main/reqpatinfo");
  660. opener.model.setValue("/root/main/reqpatinfo/pid", ipt_pid.currentText);
  661. opener.model.setValue("/root/main/reqpatinfo/orddeptcd", model.getValue("/root/send/search/orddeptcd"));
  662. opener.model.setValue("/root/main/reqpatinfo/orddrid", model.getValue("/root/send/search/orddrid"));
  663. opener.model.setValue("/root/main/reqpatinfo/orddeptnm", cmb_orddeptcd.label);
  664. opener.model.setValue("/root/main/reqpatinfo/orddrnm", cmb_orddrid.label);
  665. opener.model.setValue("/root/main/reqpatinfo/orddd", "");
  666. opener.model.setValue("/root/main/reqpatinfo/cretno", "0");
  667. opener.model.setValue("/root/main/reqpatinfo/seqno", "0");
  668. opener.model.setValue("/root/main/reqpatinfo/reqdd", "");
  669. opener.model.setValue("/root/main/reqpatinfo/reqyn", "N");
  670. opener.model.setValue("/root/main/reqpatinfo/selectyn", "N");
  671. opener.model.setValue("/root/main/reqpatinfo/replflag", model.getValue("/root/init/replflag"));
  672. opener.model.setValue("/root/main/reqpatinfo/prcpyn", "N");
  673. var curEmrRecObj = getOpenWindow("SMARC02500"); //활성화된 진료기록 화면 object loading
  674. //var curCpObj = mainObj.javascript.getOpenWindow("SPARC00100"); //활성화된 CP Main 화면 object loading
  675. if (curEmrRecObj != null)
  676. {
  677. curEmrRecObj.javascript.fInit();
  678. }
  679. else
  680. {
  681. open("SMARC02500",1,1,1, "SMARC02500", "", "", "", false);
  682. }
  683. //open("SMARC02500", 1,10, 10, "SMARC02500", "", "");
  684. }
  685. }
  686. }
  687. }
  688. }
  689. }
  690. }
  691. else
  692. {
  693. messageBox("조회를", "E009");
  694. }
  695. }
  696. // 회신서 등록 팝업
  697. function ReplSavePopUp()
  698. {
  699. if (checkOpener()) {
  700. var InsUpdtValue = opener.model.setValue(opener.root.init.selectyn, 'y'); //저장, 수정 후 재조회하기 위한 값 넘기기
  701. model.close();
  702. }
  703. /*
  704. var mainObj = getMainViewer();
  705. var curEmrRecObj = getOpenWindow("SMARC02500"); //활성화된 진료기록 화면 object loading
  706. //alert(curEmrRecObj);
  707. if (curEmrRecObj != null)
  708. {
  709. curEmrRecObj.javascript.fInit();
  710. }
  711. else
  712. {
  713. open("SMARC02500",1,1,1, "SMARC02500", "", "", "", false);
  714. }
  715. */
  716. }
  717. // 등록번호 조회 팝업
  718. function fPatPopUp()
  719. {
  720. model.makeValue("/root/temp/pid", model.getValue("/root/send/search/pid"));
  721. model.makeValue("/root/temp/srchcond","1");
  722. model.makeValue("/root/temp/autoflag","Y");
  723. modal("SPPMC02500", 1,10, 10, "SPPMC02500", "/root/temp", "/root/send");
  724. //model.resetInstanceNode("/root/main/patinfo/patinfolist");
  725. //model.resetInstanceNode("/root/send/cond");
  726. model.setValue("/root/send/search/pid", model.getValue("/root/main/patinfo/patinfolist/pid"));
  727. model.setValue("/root/send/search/hngnm", model.getValue("/root/main/patinfo/patinfolist/hngnm"));
  728. //fHistSearch();
  729. model.refresh();
  730. }
  731. // 리스트 엑셀 파일로 저장
  732. function fExcel()
  733. {
  734. if (grd_list.rows <= 1) return;
  735. var fileName = window.fileDialog("save", ",", false, "의뢰 회신 환자 리스트", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  736. if (fileName != ""){
  737. grd_list.saveExcel(fileName, "SheetName", false, false, "", "", false);
  738. }
  739. }
  740. function fSave()
  741. {
  742. }
  743. ]]>
  744. </script>
  745. </xhtml:head>
  746. <xhtml:body pagewidth="876" pageheight="497" guideline="1,2;500,500;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  747. <group id="group3" scroll="auto" style="left:0px; top:0px; width:860px; height:470px; ">
  748. <group id="grp_tle" style="left:0px; top:0px; width:860px; height:13px; ">
  749. <caption id="caption2" class="tit_1" style="left:0px; top:0px; width:158px; height:14px; ">의뢰환자찾기</caption>
  750. </group>
  751. <group id="group1" style="left:0px; top:25px; width:860px; height:135px; vertical-align:top; ">
  752. <shape id="roundrect3" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:857px; height:133px; "/>
  753. <line id="line8" class="line_4" style="x1:788px; y1:5px; x2:788px; y2:130px; "/>
  754. <caption id="caption4" class="search_name" style="left:237px; top:60px; width:94px; height:17px; ">의뢰의사 :</caption>
  755. <caption id="caption3" class="search_name" style="left:7px; top:60px; width:99px; height:17px; ">의뢰병원 :</caption>
  756. <input id="ipt_pid" ref="/root/send/search/pid" class="input_search" style="left:97px; top:10px; width:100px; height:19px; ">
  757. <script type="javascript" ev:event="onkeydown">
  758. <![CDATA[
  759. if (event.keyCode == 13 && ipt_pid.currentText.length> 0)
  760. {
  761. inputEnterKey("btn_search", "DOMActivate");
  762. }
  763. ]]>
  764. </script>
  765. </input>
  766. <input id="ipt_hngnm" ref="/root/send/search/hngnm" class="input_search" imemode="hangul" style="left:327px; top:10px; width:100px; height:19px; ">
  767. <script type="javascript" ev:event="onkeydown">
  768. <![CDATA[
  769. if (event.keyCode == 13 && ipt_hngnm.currentText.length> 0)
  770. {
  771. inputEnterKey("btn_search", "DOMActivate");
  772. }
  773. ]]>
  774. </script>
  775. </input>
  776. <input id="ipt_rrgstno1" ref="/root/send/search/rrgstno1" class="input_search" imemode="alpha" maxlength="6" format="####" style="left:574px; top:10px; width:85px; height:19px; "/>
  777. <input id="ipt_rrgstno2" ref="/root/send/search/rrgstno2" class="input_search" imemode="alpha" maxlength="7" format="####" style="left:683px; top:10px; width:85px; height:19px; ">
  778. <script type="javascript" ev:event="onkeydown">
  779. <![CDATA[
  780. if (event.keyCode == 13 && ipt_rrgstno1.currentText.length == 6 && ipt_rrgstno2.currentText.length == 7)
  781. {
  782. inputEnterKey("btn_search", "DOMActivate");
  783. }
  784. ]]>
  785. </script>
  786. </input>
  787. <select1 id="cmb_orddeptcd" ref="/root/send/search/orddeptcd" class="combo_search" appearance="minimal" style="left:97px; top:35px; width:100px; height:19px; ">
  788. <choices>
  789. <itemset nodeset="/root/init/dept/dept">
  790. <label ref="depthngnm"/>
  791. <value ref="deptcd"/>
  792. </itemset>
  793. </choices>
  794. <script type="javascript" ev:event="xforms-value-changed">
  795. <![CDATA[
  796. fDoctSerach();
  797. model.refresh();
  798. ]]>
  799. </script>
  800. </select1>
  801. <select1 id="cmb_orddrid" ref="/root/send/search/orddrid" class="combo_search" appearance="minimal" style="left:327px; top:35px; width:100px; height:19px; ">
  802. <choices>
  803. <itemset nodeset="/root/init/doctlist/medispcl">
  804. <label ref="doctnm"/>
  805. <value ref="doctid"/>
  806. </itemset>
  807. </choices>
  808. </select1>
  809. <input id="ipt_fromdd" ref="/root/send/search/fromdd" class="input_search" inputtype="date" style="left:574px; top:35px; width:85px; height:19px; "/>
  810. <input id="ipt_todd" ref="/root/send/search/todd" class="input_search" inputtype="date" style="left:683px; top:35px; width:85px; height:19px; "/>
  811. <input id="ipt_coophospnm" ref="/root/send/search/coophospnm" class="input_search" imemode="hangul" style="left:97px; top:60px; width:100px; height:19px; "/>
  812. <input id="ipt_drnm" ref="/root/send/search/drnm" class="input_search" imemode="hangul" style="left:327px; top:60px; width:100px; height:19px; "/>
  813. <select1 id="cmb_patflag" ref="/root/send/search/patflag" class="combo_search" appearance="minimal" style="left:97px; top:110px; width:100px; height:19px; ">
  814. <choices>
  815. <itemset nodeset="/root/init/repltype/A0423">
  816. <label ref="cdnm"/>
  817. <value ref="cdid"/>
  818. </itemset>
  819. </choices>
  820. </select1>
  821. <select1 id="cmb_hospgrade" ref="/root/send/search/hospgrade" class="combo_search" appearance="minimal" style="left:97px; top:85px; width:100px; height:19px; ">
  822. <choices>
  823. <itemset nodeset="/root/init/hospgrade/A0429">
  824. <label ref="cdnm"/>
  825. <value ref="cdid"/>
  826. </itemset>
  827. </choices>
  828. </select1>
  829. <select1 id="cmb_saveflag" ref="/root/send/search/saveflag" class="combo_search" appearance="minimal" style="left:327px; top:85px; width:100px; height:19px; ">
  830. <choices>
  831. <itemset nodeset="/root/init/saveflag/A0497">
  832. <label ref="cdnm"/>
  833. <value ref="cdid"/>
  834. </itemset>
  835. </choices>
  836. </select1>
  837. <caption id="caption23" class="search_name" style="left:7px; top:10px; width:95px; height:17px; ">등록번호 :</caption>
  838. <caption id="caption1" class="search_name" style="left:237px; top:10px; width:95px; height:17px; ">환자명 :</caption>
  839. <caption id="caption5" class="search_name" style="left:465px; top:10px; width:95px; height:17px; ">주민번호 :</caption>
  840. <caption id="caption11" class="search_name" style="left:7px; top:35px; width:95px; height:17px; ">진료과 :</caption>
  841. <caption id="caption6" class="search_name" style="left:237px; top:35px; width:95px; height:17px; ">진료의사 :</caption>
  842. <caption id="caption7" class="search_no_b" style="left:665px; top:35px; width:12px; height:17px; ">~</caption>
  843. <caption id="caption9" class="search_name" style="left:465px; top:35px; width:94px; height:17px; ">진료일자 :</caption>
  844. <caption id="caption10" class="search_name" style="left:237px; top:85px; width:112px; height:17px; ">작성구분 :</caption>
  845. <caption id="caption12" class="search_name" style="left:7px; top:85px; width:112px; height:17px; ">병원구분 :</caption>
  846. <caption id="caption13" class="search_no_b" style="left:665px; top:10px; width:12px; height:17px; ">-</caption>
  847. <caption id="caption14" class="search_name" style="left:7px; top:110px; width:102px; height:17px; ">회신유형:</caption>
  848. <button id="btn_search" class="btn1_letter2" style="left:795px; top:45px; width:56px; height:22px; ">
  849. <caption>조회</caption>
  850. <script type="javascript" ev:event="DOMActivate">
  851. <![CDATA[
  852. if ( !fCheckDate() ) return; //필수 저장여부 체크
  853. fSearch();
  854. model.refresh();
  855. ]]>
  856. </script>
  857. </button>
  858. <select1 id="cmb_cptype" ref="/root/send/search/cptype" class="combo_search" appearance="minimal" style="left:574px; top:60px; width:151px; height:19px; ">
  859. <choices>
  860. <itemset nodeset="/root/init/condcptype/A0420">
  861. <label ref="cdnm"/>
  862. <value ref="cdid"/>
  863. </itemset>
  864. </choices>
  865. </select1>
  866. <caption id="caption16" class="search_name" style="left:465px; top:60px; width:127px; height:17px; ">One-Stop :</caption>
  867. <select1 id="cmb_reqagntype" ref="/root/send/search/reqagntype" class="combo_search" appearance="minimal" style="left:337px; top:110px; width:90px; height:19px; ">
  868. <choices>
  869. <itemset nodeset="/root/init/reqagntype/A0583">
  870. <label ref="cdnm"/>
  871. <value ref="cdid"/>
  872. </itemset>
  873. </choices>
  874. </select1>
  875. <caption id="caption18" class="search_name" style="left:237px; top:110px; width:102px; height:17px; ">되의뢰유형:</caption>
  876. <caption id="caption19" class="search_name" style="left:465px; top:85px; width:180px; height:17px; ">진료정보공개 동의여부 :</caption>
  877. <select1 id="cmb_qreplflag" ref="/root/send/search/qreplflag" class="combo_search" appearance="minimal" style="left:639px; top:85px; width:86px; height:19px; ">
  878. <choices>
  879. <itemset nodeset="/root/init/qreplflag/A0636">
  880. <label ref="cdnm"/>
  881. <value ref="cdid"/>
  882. </itemset>
  883. </choices>
  884. </select1>
  885. </group>
  886. <line id="line1" class="line_1" style="x1:0px; y1:181px; x2:860px; y2:181px; "/>
  887. <datagrid id="grd_list" nodeset="/root/main/list/rqstlist" caption="HIE^진료일자^등록번호^환자명^동의여부^회신유형^되의뢰유형^작성구분^회신작성일자^진료의사^진료과^One-Stop^의뢰일자^의뢰병원^의뢰의사^동문여부^졸업년도^전화번호^Fax번호^협력여부^E-MAIL^E-MAIL^일련번호" colsep="^" colwidth="39, 80, 80, 100, 80, 80, 93, 80, 80, 80, 111, 100, 80, 150, 83, 61, 77, 93, 102, 74, 78, 142, 100" dataheight="25" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="25" rowsep="|" style="left:0px; top:185px; width:857px; height:280px; ">
  888. <col ref="hieyn" type="output"/>
  889. <col ref="orddd" format="yyyy-mm-dd" style="text-align:center; "/>
  890. <col ref="pid" style="text-align:center; "/>
  891. <col ref="hngnm" format="yyyy-mm-dd" style="text-align:center; "/>
  892. <col disabled="true" ref="qreplflag" type="combo" style="text-align:center; ">
  893. <choices>
  894. <itemset nodeset="/root/init/qreplflag/A0636">
  895. <label ref="cdnm"/>
  896. <value ref="cdid"/>
  897. </itemset>
  898. </choices>
  899. </col>
  900. <col disabled="true" ref="patflag" type="combo" format="yyyy-mm-dd" style="text-align:center; ">
  901. <choices>
  902. <itemset nodeset="/root/init/repltype/A0423">
  903. <label ref="cdnm"/>
  904. <value ref="cdid"/>
  905. </itemset>
  906. </choices>
  907. </col>
  908. <col disabled="true" ref="reqagntype" type="combo">
  909. <choices>
  910. <itemset nodeset="/root/init/reqagntype/A0583">
  911. <label ref="cdnm"/>
  912. <value ref="cdid"/>
  913. </itemset>
  914. </choices>
  915. </col>
  916. <col disabled="true" ref="saveflag" type="combo" style="text-align:center; ">
  917. <choices>
  918. <itemset nodeset="/root/init/saveflag/A0497">
  919. <label ref="cdnm"/>
  920. <value ref="cdid"/>
  921. </itemset>
  922. </choices>
  923. </col>
  924. <col ref="recdd" format="yyyy-mm-dd" style="text-align:center; "/>
  925. <col ref="orddrid" type="combo">
  926. <choices>
  927. <itemset nodeset="/root/init/doctlist/medispcl">
  928. <label ref="doctnm"/>
  929. <value ref="doctid"/>
  930. </itemset>
  931. </choices>
  932. </col>
  933. <col ref="orddeptnm"/>
  934. <col disabled="true" ref="cptype" type="combo">
  935. <choices>
  936. <itemset nodeset="/root/init/cptype/A0420">
  937. <label ref="cdnm"/>
  938. <value ref="cdid"/>
  939. </itemset>
  940. </choices>
  941. </col>
  942. <col ref="reqdd" format="yyyy-mm-dd" style="text-align:center; "/>
  943. <col ref="coophospnm"/>
  944. <col ref="drnm"/>
  945. <col ref="clsmatyn" style="text-align:center; "/>
  946. <col ref="gradyear" style="text-align:center; "/>
  947. <col ref="telno"/>
  948. <col ref="faxno"/>
  949. <col disabled="true" ref="coopflag" type="combo" style="text-align:center; ">
  950. <choices>
  951. <item>
  952. <label>협력</label>
  953. <value>1</value>
  954. </item>
  955. <item>
  956. <label>일반</label>
  957. <value>2</value>
  958. </item>
  959. </choices>
  960. </col>
  961. <col ref="emailid"/>
  962. <col ref="emailaddr"/>
  963. <col ref="reqseqno"/>
  964. <script type="javascript" ev:event="ondblclick">
  965. <![CDATA[
  966. fConfirm();
  967. ]]>
  968. </script>
  969. <script type="javascript" ev:event="onaftersort">
  970. <![CDATA[
  971. grd_list.gridToInstance();
  972. ]]>
  973. </script>
  974. </datagrid>
  975. <caption id="caption8" class="tit_2" style="left:5px; top:166px; width:151px; height:13px; ">의뢰/회신 환자 리스트</caption>
  976. <button id="button13" class="btn2_letter3" navindex="6" style="left:805px; top:161px; width:53px; height:19px; ">
  977. <caption>엑셀</caption>
  978. <script type="javascript" ev:event="DOMActivate">
  979. <![CDATA[
  980. fExcel();
  981. ]]>
  982. </script>
  983. </button>
  984. <caption id="caption17" class="cell_1" style="left:600px; top:161px; width:45px; height:19px; vertical-align:middle; ">의뢰</caption>
  985. <caption id="caption15" class="cell_1" style="left:705px; top:161px; width:45px; height:19px; vertical-align:middle; ">회신</caption>
  986. <output id="opt_reqcnt" ref="/root/main/list/cntinfo/reqcnt" class="output_fix" format="#,###" appearance="output" maxlength="6" style="left:648px; top:161px; width:50px; height:19px; text-align:right; "/>
  987. <output id="opt_replcnt" ref="/root/main/list/cntinfo/replcnt" class="output_fix" format="#,###" appearance="output" maxlength="6" style="left:753px; top:161px; width:50px; height:19px; text-align:right; "/>
  988. </group>
  989. <group id="group2" scroll="auto" style="left:0px; top:468px; width:860px; height:27px; ">
  990. <button id="btn_confirm" class="btn4_letter2" style="left:742px; top:3px; width:56px; height:22px; ">
  991. <caption>확인</caption>
  992. <script type="javascript" ev:event="DOMActivate">
  993. <![CDATA[
  994. fConfirm();
  995. ]]>
  996. </script>
  997. </button>
  998. <button id="btn_cancel" class="btn4_letter2" style="left:801px; top:3px; width:56px; height:22px; ">
  999. <caption>취소</caption>
  1000. <script type="javascript" ev:event="DOMActivate">
  1001. <![CDATA[
  1002. var openeryn = model.getValue("/root/init/openeryn");
  1003. if (openeryn == "Y")
  1004. {
  1005. var selectyn = opener.javascript.setParameter("selectyn", "N");
  1006. }
  1007. else
  1008. {
  1009. var selectyn = setParameter("selectyn", "N");
  1010. }
  1011. model.close();
  1012. ]]>
  1013. </script>
  1014. </button>
  1015. <line id="line32" class="line_6" style="x1:0px; y1:0px; x2:518px; y2:0px; "/>
  1016. <button id="btn_save" class="btn4_letter2" style="left:680px; top:3px; width:56px; height:22px; ">
  1017. <caption>저장</caption>
  1018. <script type="javascript" ev:event="DOMActivate">
  1019. <![CDATA[
  1020. model.makeValue("/root/send/savedata/list", grd_list.getUpdateData());
  1021. submit("TXARC00201")
  1022. var updcnt = model.getValue("/root/updcnt/cnt");
  1023. if (updcnt > 0 )
  1024. {
  1025. fSearch();
  1026. model.refresh();
  1027. messageBox("저장이","I002");
  1028. }
  1029. ]]>
  1030. </script>
  1031. </button>
  1032. <bool id="bool1" checkvalue="Y,N" ref="/root/init/wincloseyn" style="left:0px; top:2px; width:30px; height:20px; "/>
  1033. <caption id="caption20" style="left:25px; top:3px; width:90px; height:20px; ">화면 자동 닫음</caption>
  1034. </group>
  1035. </xhtml:body>
  1036. </xhtml:html>