SMAEF00200_필름판독대출승인.xrw 62 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.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. <data>
  11. <pid/>
  12. <deptcd/>
  13. <fromDate/>
  14. <toDate/>
  15. <lendgoal>01 02 03 04 05 06</lendgoal>
  16. <lendgoal1/>
  17. <spid/>
  18. <sgb/>
  19. <deptcdflag/>
  20. <gb/>
  21. <exegb/>
  22. <modality/>
  23. <basesuppdeptcd/>
  24. <section/>
  25. </data>
  26. <data2>
  27. <srchdate1/>
  28. <srchdate2/>
  29. <deptcd/>
  30. <drid/>
  31. <modality/>
  32. <section/>
  33. <execprcpstatcd/>
  34. <excuexectodd/>
  35. <excuexectodd2/>
  36. <prcpgenrflag/>
  37. </data2>
  38. <globalinstance>
  39. <instance1/>
  40. </globalinstance>
  41. </send>
  42. <hidden>
  43. <source>
  44. <hngnm/>
  45. </source>
  46. <popdata>
  47. <pid/>
  48. </popdata>
  49. </hidden>
  50. <init>
  51. <cmb_orddept>
  52. <initexecorddept>
  53. <execorddeptcdnm/>
  54. <execorddeptcdid/>
  55. </initexecorddept>
  56. </cmb_orddept>
  57. <cmb_orddr>
  58. <initexecorddr>
  59. <execorddrcdid/>
  60. <execorddrcdnm/>
  61. </initexecorddr>
  62. </cmb_orddr>
  63. <cmb_section>
  64. <initsection>
  65. <sectionid/>
  66. <sectionnm/>
  67. </initsection>
  68. </cmb_section>
  69. </init>
  70. <main>
  71. <send/>
  72. <patinfo>
  73. <patinfolist/>
  74. </patinfo>
  75. <booklist>
  76. <detail>
  77. <pid/>
  78. <hngnm/>
  79. <modality/>
  80. <prcpnm/>
  81. <excuexectodt/>
  82. <orddd/>
  83. <lenddeptcd/>
  84. <lendrid/>
  85. <lendapptm/>
  86. <lendgoal/>
  87. <prntyn/>
  88. <lendyn/>
  89. <rtnyn/>
  90. <seq/>
  91. </detail>
  92. </booklist>
  93. <filminfo>
  94. <filmlist>
  95. <modality/>
  96. <excuexectodt/>
  97. <fstrgstdt/>
  98. <ioflag/>
  99. <uoedesc/>
  100. <excuexectodt/>
  101. <excuroomcd/>
  102. <stat/>
  103. <execprcpstatcd/>
  104. <cnfmdt/>
  105. <deptdrnm/>
  106. <lendapptm/>
  107. <lenddeptcd/>
  108. <lendrid/>
  109. <lendgoal/>
  110. <prntyn/>
  111. <lendyn/>
  112. <pid/>
  113. <hngnm/>
  114. <prcpdd/>
  115. <execprcpuniqno/>
  116. <seq/>
  117. </filmlist>
  118. </filminfo>
  119. <booklistordd>
  120. <detail>
  121. <pid/>
  122. <hngnm/>
  123. <modality/>
  124. <section/>
  125. <deptnm/>
  126. <excuexectodt/>
  127. <usernm/>
  128. <orddd/>
  129. <execprcpstatcd/>
  130. <lendgoal/>
  131. <rtnyn/>
  132. <seq/>
  133. <exeprcpuniqno/>
  134. <excucdnm/>
  135. </detail>
  136. </booklistordd>
  137. <savedata>
  138. <savelist>
  139. <pid/>
  140. <lendapptm/>
  141. <seq/>
  142. </savelist>
  143. </savedata>
  144. <patinfo>
  145. <patinfolist/>
  146. </patinfo>
  147. <printinfo>
  148. <printlist>
  149. <pid/>
  150. <hngnm/>
  151. <modality/>
  152. <lenddeptcd/>
  153. <lendrid/>
  154. <lendgoal/>
  155. <lendapptm/>
  156. <orddd/>
  157. </printlist>
  158. </printinfo>
  159. <prntRexinfo>
  160. <detail>
  161. <pid/>
  162. <hngnm/>
  163. <modality/>
  164. <lenddeptcd/>
  165. <lendrid/>
  166. <lendapptm/>
  167. <lendgoal/>
  168. <prntyn/>
  169. <lendyn/>
  170. <rtnyn/>
  171. <seq/>
  172. <lendgoalnm/>
  173. </detail>
  174. </prntRexinfo>
  175. </main>
  176. </root>
  177. </instance>
  178. <script type="javascript">
  179. <![CDATA[
  180. function readfunc(){
  181. if (model.getValue("/root/send/data/fromDate") == ""){
  182. messageBox("대출요청 시작일은 필수 선택항목입니다.", "E999", "");
  183. return;
  184. }
  185. if (isDate(model.getValue("/root/send/data/fromDate")) == false){
  186. messageBox("대출요청 시작일의 날짜 형식이 잘못 입력되었습니다.", "E999", "");
  187. return;
  188. }
  189. if (model.getValue("/root/send/data/toDate") == ""){
  190. messageBox("대출요청 종료일은 필수 선택항목입니다.", "E999", "");
  191. return;
  192. }
  193. if (isDate(model.getValue("/root/send/data/toDate")) == false){
  194. messageBox("대출요청 종료일의 날짜 형식이 잘못 입력되었습니다.", "E999", "");
  195. return;
  196. }
  197. // button1.disabled = true;
  198. // button2.disabled = true;
  199. // button3.disabled = true;
  200. var str = model.getValue("/root/send/data/lendgoal");
  201. var str1 = ReplaceDemo(str);
  202. model.setValue("/root/send/data/lendgoal1", str1);
  203. if (model.getValue("/root/send/data/lendgoal") == ""){
  204. messageBox("대출목적은 필수 선택항목입니다.", "E999", "");
  205. return;
  206. }
  207. // 조회 조건 section 추가
  208. model.setValue("/root/send/data/section", model.getValue("/root/send/data2/section"));
  209. model.removeNodeset("/root/main/rsrvupdtinfo/rsrvupdt");
  210. if (submit("TRAEF00201")){
  211. for (var i = 1; i < grd_mainordlist1.rows; i ++){
  212. var lendyn = grd_mainordlist1.valueMatrix(i, grd_mainordlist1.colRef("lendyn"));
  213. if (lendyn == "Y") {
  214. grd_mainordlist1.isReadOnly(i, grd_mainordlist1.colRef("chk")) = true;
  215. grd_mainordlist1.rowstyle( i , "data" , "background-color" ) = "#FFFFCC";
  216. } else {
  217. grd_mainordlist1.isReadOnly(i, grd_mainordlist1.colRef("chk")) = false;
  218. grd_mainordlist1.rowstyle( i , "data" , "background-color" ) = "#FFFFFF";
  219. }
  220. grd_mainordlist1.isSelected(i) = false;
  221. grd_mainordlist1.isReadOnly(i, grd_mainordlist1.colRef("lendyn")) = true;
  222. grd_mainordlist1.isReadOnly(i, grd_mainordlist1.colRef("rtnyn")) = true;
  223. }
  224. }
  225. model.refresh();
  226. }
  227. function readfunc1(){
  228. var schar = model.getValue("/root/send/data/spid");
  229. var k = 0;
  230. for (var i = 0; i < schar.length; i ++){
  231. var ch = parseInt(schar.charAt(i));
  232. if (ch >= 0 && ch <= 9){
  233. k = parseInt(i) + 1;
  234. }
  235. }
  236. if (k > 0){
  237. var spid = schar.substring(0, k);
  238. var sgb = schar.substring(k, schar.length);
  239. model.setValue("/root/send/data/pid", spid);
  240. }
  241. if (model.getValue("/root/send/data/pid") == ""){
  242. messageBox("Chart No는 필수 입력항목입니다.", "E999", "");
  243. return;
  244. }
  245. submit("TRAEA00204"); // 환자 인적사항
  246. model.removeNodeset("/root/main/filminfo/filmlist");
  247. // 조회할때 전체내역을 조회하기 위해 "1"번(전체)으로 셋팅 함. 20090525
  248. model.setValue("/root/send/data/gb","1");
  249. if (submit("TRAEF00103")){
  250. }
  251. model.refresh();
  252. }
  253. // 대출 출력 대체 기능으로 판독 승인 기능 변경 [2010.07.12 : 김건기]
  254. function fSaveData() {
  255. // 판독승인
  256. var nodeList = instance1.selectNodes("/root/main/booklist/detail[chk = 'Y']");
  257. var rCSV = getNodeListCSV(nodeList);
  258. if ( rCSV == null ) {
  259. messageBox("처방내역을 ","C002");
  260. return;
  261. }
  262. // for (var i = 1;i < grd_mainordlist1.rows;i++){
  263. // rCSV += grd_mainordlist1.valueMatrix(i, grd_mainordlist1.colRef("pid")) + sColSep
  264. // + grd_mainordlist1.valueMatrix(i, grd_mainordlist1.colRef("lendapptm")) + sColSep
  265. // + grd_mainordlist1.valueMatrix(i, grd_mainordlist1.colRef("seq")) + sRowSep;
  266. //
  267. // }
  268. model.makeValue("/root/main/savedata/savelist/data", rCSV);
  269. var data = model.getValue("/root/main/savedata/savelist/data");
  270. if(submit("TXAEF00201")){
  271. readfunc();
  272. }
  273. // model.setValue("/root/main/savedata/savelist/pid", model.getValue("/root/main/booklist/detail[" + grd_mainordlist1.row + "]/pid"));
  274. // model.setValue("/root/main/savedata/savelist/lendapptm", model.getValue("/root/main/booklist/detail[" + grd_mainordlist1.row + "]/lendapptm"));
  275. // model.setValue("/root/main/savedata/savelist/seq", model.getValue("/root/main/booklist/detail[" + grd_mainordlist1.row + "]/seq"));
  276. // if(submit("TXAEF00201")){
  277. // readfunc();
  278. // }
  279. }
  280. function fSaveData1() {
  281. model.setValue("/root/main/savedata/savelist/pid", model.getValue("/root/main/booklist/detail[" + grd_mainordlist1.row + "]/pid"));
  282. model.setValue("/root/main/savedata/savelist/lendapptm", model.getValue("/root/main/booklist/detail[" + grd_mainordlist1.row + "]/lendapptm"));
  283. model.setValue("/root/main/savedata/savelist/seq", model.getValue("/root/main/booklist/detail[" + grd_mainordlist1.row + "]/seq"));
  284. if(submit("TXAEF00202")){
  285. readfunc();
  286. }
  287. }
  288. function fSaveData2() {
  289. model.setValue("/root/main/savedata/savelist/pid", model.getValue("/root/main/booklist/detail[" + grd_mainordlist1.row + "]/pid"));
  290. model.setValue("/root/main/savedata/savelist/lendapptm", model.getValue("/root/main/booklist/detail[" + grd_mainordlist1.row + "]/lendapptm"));
  291. model.setValue("/root/main/savedata/savelist/seq", model.getValue("/root/main/booklist/detail[" + grd_mainordlist1.row + "]/seq"));
  292. if(submit("TXAEF00203")){
  293. readfunc();
  294. }
  295. }
  296. function fSaveData3(irow) {
  297. model.setValue("/root/main/savedata/savelist/pid", model.getValue("/root/main/booklist/detail[" + irow + "]/pid"));
  298. model.setValue("/root/main/savedata/savelist/lendapptm", model.getValue("/root/main/booklist/detail[" + irow + "]/lendapptm"));
  299. model.setValue("/root/main/savedata/savelist/seq", model.getValue("/root/main/booklist/detail[" + irow + "]/seq"));
  300. if(submit("TXAEF00203")){
  301. }
  302. }
  303. function setbutton(){
  304. // button1.disabled = true;
  305. // button2.disabled = true;
  306. // button3.disabled = true;
  307. // if (grd_mainordlist1.row > 0){
  308. // button2.disabled = false;
  309. // if (model.getValue("/root/main/booklist/detail[" + grd_mainordlist1.row + "]/lendyn") == "Y"){
  310. // button3.disabled = true;
  311. // if (model.getValue("/root/main/booklist/detail[" + grd_mainordlist1.row + "]/rtnyn") == "Y"){
  312. // button1.disabled = true;
  313. // }else{
  314. // button1.disabled = false;
  315. // }
  316. // }else{
  317. // button3.disabled = false;
  318. // }
  319. // }
  320. // model.refresh();
  321. }
  322. function isDate(str) { // 날짜 형식에 대한 적합여부 체크
  323. if (str == "") return true; // 빈건 체크안함
  324. if (trim(str) == "") return true; // 빈건 체크안함
  325. if (isNaN(parseInt(str))) return false; // 숫자가 아니면 false
  326. if (str.length != 8) return false; // 8자리(yyyymmdd)가 아니면 false
  327. var yy = new Number(str.substring(0, 4));
  328. var mm = new Number(str.substring(4, 6)) - 1;
  329. var dd = new Number(str.substring(6, 8));
  330. var date = new Date(yy, mm, dd);
  331. //alert(date.getFullYear() +"-" + (date.getMonth()+1) + "-" + date.getDate());
  332. if (yy != date.getFullYear() ||
  333. mm != date.getMonth() ||
  334. dd != date.getDate()) {
  335. return false; // 존재하지 않는 날짜
  336. }
  337. return true; // 존재하는 날짜
  338. }
  339. function trim(data){ // 문자에 대한 TRIM 작업
  340. return data.replace(/(^\s*)|(\s*$)/g, "");
  341. }
  342. function ReplaceDemo(str){
  343. str = "('" + str + "')";
  344. for (var i = 1; i < 6;i++){
  345. var re = " ";
  346. var r = str.replace(re, "','");
  347. str = r;
  348. }
  349. return(r);
  350. }
  351. function fPrint(){
  352. for (var i = 1; i < grd_mainordlist1.rows; i++){
  353. if (model.getValue("/root/main/booklist/detail[" + i + "]/prntyn") == "N"){
  354. model.setValue("/root/main/printinfo/printlist/pid", model.getValue("/root/main/booklist/detail[" + i + "]/pid"));
  355. model.setValue("/root/main/printinfo/printlist/hngnm", model.getValue("/root/main/booklist/detail[" + i + "]/hngnm"));
  356. model.makeValue("/root/main/printinfo/printlist/filmflag", model.getValue("/root/main/booklist/detail[" + i + "]/modality"));
  357. model.setValue("/root/main/printinfo/printlist/lenddeptcd", model.getValue("/root/main/booklist/detail[" + i + "]/lenddeptcd"));
  358. model.setValue("/root/main/printinfo/printlist/lendrid", model.getValue("/root/main/booklist/detail[" + i + "]/lendrid"));
  359. model.setValue("/root/main/printinfo/printlist/lendgoal", grd_mainordlist1.labelMatrix(i, grd_mainordlist1.colRef("lendgoal")));
  360. model.setValue("/root/main/printinfo/printlist/lendapptm", model.getValue("/root/main/booklist/detail[" + i + "]/lendapptm"));
  361. model.setValue("/root/main/printinfo/printlist/orddd", model.getValue("/root/main/booklist/detail[" + i + "]/orddd"));
  362. model.refresh();
  363. exeReportPreview("RPAEF00200", "XMLSTR", "/root/main/printinfo/printlist", "", "true", "", "", "", "", "true","", "", "", "", "", "", "", "printpaper=8;");
  364. fSaveData3(i);
  365. }
  366. }
  367. readfunc();
  368. }
  369. /* @group : 판독/대출신청
  370. * @ver : 2009.05.13
  371. * @by : 박상준
  372. * @-----------------------------------
  373. * @type : function
  374. * @access : public
  375. * @desc : 주치의정보(진료의사) 조회를 위한 Function
  376. */
  377. function fChngSrchDrId() {
  378. if ( model.getValue("/root/send/data2/deptcd") == "" ){
  379. model.removeNodeset("/root/init/cmb_orddr/initexecorddr");
  380. model.setValue("/root/send/data2/drid", "");
  381. model.refresh();
  382. return;
  383. }
  384. //alert(cmb_wardcd.value);
  385. //alert(model.getValue("/root/send/data/singdata/deptcd"));
  386. model.resetInstanceNode("/root/init/cmb_orddr/initexecorddr");
  387. submit("TRAER00804");
  388. }
  389. /* @group : 그리드 내용 Copy
  390. * @ver : 2009.06.16
  391. * @by : 김귀남
  392. * @-----------------------------------
  393. * @type : function
  394. * @access : public
  395. * @desc : 그리드의 내용을 엑셀로 Copy하기 위한 Function
  396. */
  397. function astgrid_oncopy() {
  398. var trgObj = document.all.item(event.target);
  399. if( trgObj.elementName == "xforms:datagrid" ) // event.target이 datagrid > input일 경우 return
  400. gridObj = trgObj;
  401. else
  402. return;
  403. var cellValue;
  404. var rClipBoardValue = "";
  405. var gridSelMode = gridObj.selectionMode;
  406. //alert(gridSelMode);
  407. // datagrid@selectionmode가 free일 경우
  408. if( gridSelMode == "free" ) {
  409. if( gridObj.selectedCells.length == 0 )
  410. return;
  411. var firstCell = getFirstCell(gridObj.selectedCells);
  412. var lastCell = getLastCell(gridObj.selectedCells);
  413. //alert(gridObj.selectedCells.length);
  414. //alert(firstCell.row +" "+ lastCell.row+"\n"+firstCell.col+" "+lastCell.col);
  415. var i, j;
  416. for( i = firstCell.row; i <= lastCell.row; i++ ) {
  417. for ( j = firstCell.col; j <= lastCell.col; j++ ) {
  418. if(j != 2 && j != 11){
  419. cellValue = gridObj.valueMatrix(i, j);
  420. //if( cellValue.indexOf("\n") != -1 )
  421. // cellValue = '"' + cellValue + '"';
  422. }else cellValue = "";
  423. rClipBoardValue += cellValue;
  424. if( j != lastCell.col )
  425. rClipBoardValue += "\t";
  426. }
  427. rClipBoardValue += "\r\n";
  428. }
  429. var setClipBoardFlag = true;
  430. // selectedCells 갯수와 rClipBoardValue의 갯수 비교
  431. var cntRClip = 0;
  432. var cntRRow = rClipBoardValue.split("\r\n").length;
  433. var cntRCol = rClipBoardValue.split("\r\n")[0].split("\t").length;
  434. if( gridObj.selectedCells.length != ( cntRRow - 1 ) * cntRCol ) {
  435. setClipBoardFlag = false;
  436. }
  437. // selectedCell이 firstCell부터 lastCell까지 속해있나 비교
  438. for( i = 0; i < gridObj.selectedCells.length; i++ ) {
  439. if( firstCell.row > gridObj.selectedCells.item(i).row || lastCell.row < gridObj.selectedCells.item(i).row ) {
  440. setClipBoardFlag = false;
  441. break;
  442. }
  443. if( firstCell.col > gridObj.selectedCells.item(i).col || lastCell.col < gridObj.selectedCells.item(i).col ) {
  444. setClipBoardFlag = false;
  445. break;
  446. }
  447. }
  448. if( !setClipBoardFlag ) {
  449. messageBox("다중 선택 범위에서는", "E001");
  450. return;
  451. }
  452. }
  453. // datagrid@selectionmode가 bycol일 경우
  454. else if( gridSelMode == "bycol" ) {
  455. if( gridObj.selectedCells.length == 0 )
  456. return;
  457. var firstCell = getFirstCell(gridObj.selectedCells);
  458. var lastCell = getLastCell(gridObj.selectedCells);
  459. //alert(firstCell +" "+ lastCell);
  460. var i, j;
  461. for( i = gridObj.fixedRows; i < gridObj.rows; i++ ) {
  462. for ( j = firstCell.col; j <= lastCell.col; j++ ) {
  463. if(j != 2 && j != 11){
  464. cellValue = gridObj.valueMatrix(i, j);
  465. //if( cellValue.indexOf("\n") != -1 )
  466. // cellValue = '"' + cellValue + '"';
  467. }else cellValue = "";
  468. rClipBoardValue += cellValue;
  469. if( j != lastCell.col )
  470. rClipBoardValue += "\t";
  471. }
  472. rClipBoardValue += "\r\n";
  473. }
  474. }
  475. // datagrid@selectionmode가 default이거나 byrow일 경우
  476. else {
  477. var gridCols = gridObj.Cols;
  478. var selRow;
  479. var i, j;
  480. for( i = 0; i < gridObj.selectedRows; i++ ) {
  481. selRow = gridObj.selectedRow(i);
  482. for ( j = gridObj.fixedCols; j < gridCols; j++ ) {
  483. if(j != 2 && j != 11){
  484. cellValue = gridObj.valueMatrix(selRow, j);
  485. //if( cellValue.indexOf("\n") != -1 )
  486. // cellValue = '"' + cellValue + '"';
  487. }else cellValue = "";
  488. rClipBoardValue += cellValue;
  489. if( j != gridCols - 1 )
  490. rClipBoardValue += "\t";
  491. }
  492. rClipBoardValue += "\r\n";
  493. }
  494. }
  495. if( rClipBoardValue != "" )
  496. window.clipBoardData = rClipBoardValue;
  497. }
  498. /* @group : 그리드 내용 paste
  499. * @ver : 2009.06.16
  500. * @by : 김귀남
  501. * @-----------------------------------
  502. * @type : function
  503. * @access : public
  504. * @desc : 그리드의 내용을 엑셀로 paste 위한 Function
  505. */
  506. function astgrid_onpaste(){
  507. var trgObj = document.all.item(event.target);
  508. if( trgObj.elementName == "xforms:datagrid" ){ // event.target이 datagrid > input일 경우 return
  509. gridObj = trgObj;
  510. }
  511. else{
  512. return;
  513. }
  514. var rClipBoardValue = "";
  515. var gridSelMode = gridObj.selectionMode;
  516. if(window.clipBoardData !="")
  517. var rClipBoardValue = window.clipBoardData;
  518. var clipBoardRow = rClipBoardValue.split("\r\n");
  519. if(gridSelMode = "free"){ // free 모드 동작
  520. var firstCell = getFirstCell(gridObj.selectedCells);
  521. var lastCell = getLastCell(gridObj.selectedCells);
  522. var row = firstCell.row;
  523. for(var i = 0; i < clipBoardRow.length-1; i++){
  524. var clipBoardCol = clipBoardRow[i].split("\t"); // 클립보드에 저장된 내용을 tab 단위로 분리
  525. var col = firstCell.col;
  526. for(var j = 0; j < clipBoardCol.length; j++){
  527. gridObj.ValueMatrix(row, col) = clipBoardCol[j];
  528. col++;
  529. }
  530. row++;
  531. }
  532. }else { // defualt, byrow, list 모드 동작
  533. var gridCols = gridObj.Cols;
  534. var selRow = gridObj.row;
  535. var i, j;
  536. for(var i = 0; i < clipBoardRow.length-1; i++){
  537. var clipBoardCol = clipBoardRow[i].split("\t");
  538. var col = 0;
  539. for(var j = 0; j < clipBoardCol.length; j++){
  540. gridObj.ValueMatrix(row, col) = clipBoardCol[j];
  541. col++;
  542. }
  543. selRow++
  544. }
  545. }
  546. }
  547. /* @group : 진료 예약자 판독현형 조회
  548. * @ver : 2009.05.13
  549. * @by : 박상준
  550. * @-----------------------------------
  551. * @type : function
  552. * @access : public
  553. * @desc : 진료 예약자 판독현형 조회 탭 선택시 조회조건 변경을 위한 Function
  554. */
  555. function fChngSetMenu() {
  556. if (btn_case3.selected == true) {
  557. caption5.visible = false;
  558. ipt_date1.visible = false
  559. caption1.visible = false;
  560. input1.visible = false;
  561. caption3.visible = false;
  562. input5.visible = false;
  563. caption2.visible = false;
  564. chk_excuroom.visible = false;
  565. checkbox1.visible = false;
  566. btn_sea.visible = false;
  567. button3.visible = false;
  568. // button2.visible = false;
  569. // button1.visible = false;
  570. button7.visible = false;
  571. button5.visible = false;
  572. button6.visible = false;
  573. chk_eckbox2.visible = false;
  574. // 미판독 조회관련 타이틀 및 버튼
  575. caption10.visible = true;
  576. ipt_srchdate1.visible = true;
  577. ipt_srchdate2.visible = true;
  578. caption13.visible = true;
  579. cmb_orddept.visible = true;
  580. caption14.visible = true;
  581. cmb_orddr.visible = true;
  582. caption12.visible = true;
  583. cmb_modality.visible = true;
  584. caption15.visible = true;
  585. combo1.visible = true;
  586. btn_data2searh.visible = true;
  587. cap_execdd.visible = true;
  588. ipt_execd.visible = true;
  589. ipt_execd2.visible = true;
  590. rdo_prcpgenrflag.visible = true;
  591. caption15.attribute("left") = "857px";
  592. combo1.attribute("left") = "947px";
  593. }else {
  594. caption5.visible = true;
  595. ipt_date1.visible = true
  596. caption1.visible = true;
  597. input1.visible = true;
  598. caption3.visible = true;
  599. input5.visible = true;
  600. caption2.visible = true;
  601. chk_excuroom.visible = true;
  602. checkbox1.visible = true;
  603. btn_sea.visible = true;
  604. button3.visible = true;
  605. // button2.visible = true;
  606. // button1.visible = true;
  607. button7.visible = true;
  608. button5.visible = true;
  609. button6.visible = true;
  610. chk_eckbox2.visible = true;
  611. // 미판독 조회관련 타이틀 및 버튼
  612. caption10.visible = false;
  613. ipt_srchdate1.visible = false;
  614. ipt_srchdate2.visible = false;
  615. caption13.visible = false;
  616. cmb_orddept.visible = false;
  617. caption14.visible = false;
  618. cmb_orddr.visible = false;
  619. caption12.visible = false;
  620. cmb_modality.visible = false;
  621. btn_data2searh.visible = false;
  622. cap_execdd.visible = false;
  623. ipt_execd.visible = false;
  624. ipt_execd2.visible = false;
  625. rdo_prcpgenrflag.visible = false;
  626. if (btn_case1.selected == true) {
  627. caption15.attribute("left") = "985px";
  628. combo1.attribute("left") = "1075px";
  629. caption15.visible = true;
  630. combo1.visible = true;
  631. } else {
  632. caption15.visible = false;
  633. combo1.visible = false;
  634. }
  635. }
  636. }
  637. ]]>
  638. </script>
  639. <!-- 예약조회-->
  640. <submission id="TRAEF00201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data" replace="instance" resultref="root/main/booklist"/>
  641. <submission id="TRAEF00102" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data" replace="instance" resultref="/root/main/filminfo"/>
  642. <submission id="TRAEF00103" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data" replace="instance" resultref="/root/main/filminfo"/>
  643. <submission id="TRAEA00204" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data" replace="instance" resultref="/root/main/patinfo"/>
  644. <submission id="TXAEF00201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/savedata/savelist/data" replace="instance" resultref="/root/hidden"/>
  645. <submission id="TXAEF00202" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/savedata" replace="instance" resultref="/root/hidden"/>
  646. <submission id="TXAEF00203" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/savedata" replace="instance" resultref="/root/hidden"/>
  647. <!-- 진료과 및 진료의사 정보 가져오기-->
  648. <submission id="TRAER00803" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data2/" replace="instance" resultref="/root/init/cmb_orddept"/>
  649. <submission id="TRAER00804" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data2/deptcd" replace="instance" resultref="/root/init/cmb_orddr"/>
  650. <!-- 진료예약자 미판독현황 정보 가져오기-->
  651. <submission id="TRAEF00202" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data2" replace="instance" resultref="/root/main/booklistordd"/>
  652. <!-- SECTION 정보 가져오기-->
  653. <submission id="TRAEF00203" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/init/cmb_section"/>
  654. </model>
  655. <script type="javascript" ev:event="xforms-ready">
  656. <![CDATA[
  657. //2009-04-22 핵의학(NM) 동일화면 사용 - 핵의학구분추가
  658. //alert (model.getValue("/root/properties/menu/menuprestdeptcd"));
  659. if ( model.getValue("/root/properties/menu/menuprestdeptcd").substr(0,3) == '218') {
  660. model.setvalue( "/root/send/data/deptcdflag","NM");
  661. button5.disabled = true; //자동출력시작 비활성화
  662. button6.disabled = true; //자동출력종료 비활성화
  663. }
  664. model.setValue("/root/send/data/fromDate", getCurrentDate().toDate().getAddDate(-3,"D").getDateFormat("YYYYMMDD"));
  665. model.setValue("/root/send/data/toDate", getCurrentDate());
  666. model.removeNodeset("/root/main/filminfo/filmlist");
  667. model.removeNodeset("/root/main/booklist/detail");
  668. if (model.getValue("/root/hidden/popdata/pid") == ""){
  669. model.toggle("case1");
  670. btn_case1.selected = true;
  671. btn_case2.selected = false;
  672. // button1.disabled = true;
  673. // button2.disabled = true;
  674. // button3.disabled = true;
  675. readfunc();
  676. }else{
  677. model.setValue("/root/send/data/spid", model.getValue("/root/hidden/popdata/pid"));
  678. model.setValue("/root/send/data/pid", model.getValue("/root/hidden/popdata/pid"));
  679. model.toggle("case2");
  680. btn_case1.selected = false;
  681. btn_case2.selected = true;
  682. // button1.disabled = true;
  683. // button2.disabled = true;
  684. // button3.disabled = true;
  685. cap_modal2.visible = true; // 영상검사내역Modality Box Title
  686. modality2.visible = true; // 영상검사내역Modality Box
  687. button4.dispatch("DOMActivate");
  688. }
  689. // instance1 값을 받아오기
  690. aezfSetSuppDeptcd();
  691. // 조회조건으로 부서코드 PIX하기 위해 가져오기
  692. model.setValue("/root/send/data/basesuppdeptcd", model.getValue("/root/send/globalinstance/instance1"));
  693. // 조회용 진료과코드
  694. submit("TRAER00803");
  695. // Section 정보
  696. submit("TRAEF00203");
  697. // 진료일자를 오늘 일자로 기본설정
  698. ipt_srchdate1.value = getCurrentDate().toDate().getAddDate(+1,"D").getDateFormat("YYYYMMDD");
  699. ipt_srchdate2.value = getCurrentDate().toDate().getAddDate(+1,"D").getDateFormat("YYYYMMDD");
  700. ipt_execd.value= getCurrentDate().toDate().getAddDate(-15,"D").getDateFormat("YYYYMMDD");
  701. ipt_execd2.value= getCurrentDate().toDate().getDateFormat("YYYYMMDD");
  702. //ipt_execd.value= getCurrentDate().toDate().getDateFormat("YYYYMMDD");
  703. //ipt_execd2.value= getCurrentDate().toDate().getAddDate(15,"D").getDateFormat("YYYYMMDD");
  704. model.setValue("/root/send/data/exegb", "0");
  705. model.setValue("/root/send/data2/drid", "");
  706. model.refresh();
  707. ]]>
  708. </script>
  709. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  710. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  711. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  712. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  713. <script type="javascript" src="../../../ast/examcureweb/js/AEZ0001.js"/>
  714. </xhtml:head>
  715. <xhtml:body guideline="1,1194;2,763;2,784;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  716. <group id="group1" style="left:0px; top:0px; width:1194px; height:13px; ">
  717. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:240px; height:14px; ">판독요청내역조회</caption>
  718. </group>
  719. <group id="group3" scroll="auto" style="left:0px; top:13px; width:1195px; height:744px; ">
  720. <line id="line3" class="line_1" style="x1:0px; y1:98px; x2:1188px; y2:98px; "/>
  721. <shape id="roundrect3" class="roundrect_search" appearance="roundrect" style="left:0px; top:5px; width:1193px; height:65px; "/>
  722. <line id="line18" class="line_4" style="x1:852px; y1:12px; x2:852px; y2:34px; border-left-style:solid; "/>
  723. <caption id="caption5" class="search_name" style="left:9px; top:12px; width:94px; height:17px; ">판독요청일:</caption>
  724. <input id="ipt_date1" ref="/root/send/data/fromDate" class="input_default" inputtype="date" style="left:109px; top:12px; width:90px; height:19px; "/>
  725. <button id="btn_sea" class="btn5_letter3" style="left:858px; top:13px; width:53px; height:19px; ">
  726. <caption>조회</caption>
  727. <script type="javascript" ev:event="DOMActivate">
  728. <![CDATA[
  729. if (btn_case1.selected == true){
  730. readfunc();
  731. }else{
  732. readfunc1();
  733. }
  734. ]]>
  735. </script>
  736. </button>
  737. <input id="input1" ref="/root/send/data/toDate" class="input_default" inputtype="date" style="left:214px; top:12px; width:90px; height:19px; "/>
  738. <caption id="caption1" style="left:201px; top:14px; width:15px; height:20px; ">-</caption>
  739. <button id="button3" class="btn5_letter4" style="left:912px; top:13px; width:64px; height:19px; ">
  740. <caption>판독승인</caption>
  741. <script type="javascript" ev:event="DOMActivate">
  742. <![CDATA[
  743. fSaveData();
  744. ]]>
  745. </script>
  746. </button>
  747. <caption id="caption2" class="search_name" style="left:512px; top:14px; width:82px; height:17px; ">판독목적:</caption>
  748. <caption id="caption3" class="search_name" style="left:314px; top:14px; width:89px; height:17px; ">Chart No:</caption>
  749. <input id="input5" ref="/root/send/data/spid" class="input_search" style="left:406px; top:13px; width:99px; height:19px; ">
  750. <script type="javascript" ev:event="onkeyup">
  751. <![CDATA[
  752. if(event.keyCode == "13") {
  753. inputEnterKey("button4","DOMActivate");
  754. }
  755. ]]>
  756. </script>
  757. </input>
  758. <select id="chk_excuroom" ref="/root/send/data/lendgoal" class="checkbox_search" appearance="full" cols="3" style="left:595px; top:14px; width:215px; height:17px; background-color:transparent; border-style:none; ">
  759. <choices>
  760. <item>
  761. <label>응급판독요청</label>
  762. <value>01</value>
  763. </item>
  764. <item>
  765. <label>외래진료판독요청</label>
  766. <value>02</value>
  767. </item>
  768. </choices>
  769. </select>
  770. <switch id="switch1" style="left:0px; top:100px; width:1190px; height:637px; ">
  771. <case id="case1" selected="true" style="vertical-align:middle; ">
  772. <datagrid id="grd_mainordlist1" nodeset="/root/main/booklist/detail" caption="선택^등록번호^환자명^성별/나이^영상구분^검사명^검사일^진료예약일^판독요청과^판독요청자^판독요청일^판독목적^출력여부^판독^반납^caption1" colsep="^" colwidth="35, 74, 83, 60, 70, 213, 74, 100, 129, 72, 108, 68, 71, 50, 48, 34" dataheight="23" ellipsis="true" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="23" rowsep="|" tooltip="label" style="left:0px; top:0px; width:1185px; height:632px; ">
  773. <col checkvalue="Y,N" ref="chk" type="checkbox"/>
  774. <col ref="pid"/>
  775. <col ref="hngnm"/>
  776. <col ref="sna" style="text-align:center; "/>
  777. <col disabled="true" ref="modality" type="combo">
  778. <choices>
  779. <item>
  780. <label>GR</label>
  781. <value>GR</value>
  782. </item>
  783. <item>
  784. <label>CT</label>
  785. <value>CT</value>
  786. </item>
  787. <item>
  788. <label>MRI</label>
  789. <value>MRI</value>
  790. </item>
  791. <item>
  792. <label>MR</label>
  793. <value>MR</value>
  794. </item>
  795. <item>
  796. <label>ANGIO</label>
  797. <value>AG</value>
  798. </item>
  799. <item>
  800. <label>SP</label>
  801. <value>SP</value>
  802. </item>
  803. <item>
  804. <label>SONO</label>
  805. <value>US</value>
  806. </item>
  807. <item>
  808. <label>BMD</label>
  809. <value>BM</value>
  810. </item>
  811. <item>
  812. <label>NM</label>
  813. <value>NM</value>
  814. </item>
  815. <item>
  816. <label>CT</label>
  817. <value>Ct</value>
  818. </item>
  819. <item>
  820. <label>CT</label>
  821. <value>C</value>
  822. </item>
  823. <item>
  824. <label>MAMMO</label>
  825. <value>MG</value>
  826. </item>
  827. </choices>
  828. </col>
  829. <col ref="prcpnm"/>
  830. <col ref="excuexectodt" format="yyyy-mm-dd" style="text-align:center; "/>
  831. <col ref="orddd" format="yyyy-mm-dd hh:nn" style="text-align:center; "/>
  832. <col ref="lenddeptcd" format="hh:nn"/>
  833. <col ref="lendrid" style="text-align:center; "/>
  834. <col ref="lendapptm" format="yyyy-mm-dd hh:nn" style="text-align:center; "/>
  835. <col disabled="true" ref="lendgoal" type="combo" style="text-align:center; ">
  836. <choices>
  837. <item>
  838. <label>판독요청</label>
  839. <value>01</value>
  840. </item>
  841. <item>
  842. <label>외래진료</label>
  843. <value>02</value>
  844. </item>
  845. <item>
  846. <label>입원진료</label>
  847. <value>03</value>
  848. </item>
  849. <item>
  850. <label>판독용</label>
  851. <value>04</value>
  852. </item>
  853. <item>
  854. <label>복사용</label>
  855. <value>05</value>
  856. </item>
  857. <item>
  858. <label>연구용</label>
  859. <value>06</value>
  860. </item>
  861. </choices>
  862. </col>
  863. <col disabled="true" ref="prntyn" type="combo" visibility="hidden" style="text-align:center; ">
  864. <choices>
  865. <item>
  866. <label>YES</label>
  867. <value>Y</value>
  868. </item>
  869. <item>
  870. <label>NO</label>
  871. <value>N</value>
  872. </item>
  873. </choices>
  874. </col>
  875. <col checkvalue="Y,N" ref="lendyn" type="checkbox"/>
  876. <col checkvalue="Y,N" ref="rtnyn" type="checkbox" visibility="hidden"/>
  877. <col ref="seq" visibility="hidden"/>
  878. <script type="javascript" ev:event="onclick">
  879. <![CDATA[
  880. if( isDataCell() ){
  881. setbutton();
  882. }
  883. ]]>
  884. </script>
  885. <script type="javascript" ev:event="onaftersort">
  886. <![CDATA[
  887. grd_mainordlist1.gridToInstance();
  888. ]]>
  889. </script>
  890. <script type="javascript" ev:event="oncopy">
  891. <![CDATA[
  892. astgrid_oncopy();
  893. ]]>
  894. </script>
  895. <script type="javascript" ev:event="onpaste">
  896. <![CDATA[
  897. astgrid_onpaste();
  898. ]]>
  899. </script>
  900. </datagrid>
  901. </case>
  902. <case id="case2">
  903. <datagrid id="datagrid2" nodeset="/root/main/filminfo/filmlist" caption="구분^검사일자^접수일자^입원/외래^처방명^검사일^검사실^상태^판독상태^판독일^진료과(진료의)^신청일자^신청과^신청자^신청목적^신청서출력^caption2^caption3^caption4^caption1^caption5^caption7" colsep="^" colwidth="65, 74, 75, 64, 195, 100, 103, 67, 68, 76, 143, 111, 110, 61, 141, 70, 33, 34, 32, 38, 25, 31" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowsep="|" style="left:0px; top:0px; width:1188px; height:631px; ">
  904. <col disabled="true" ref="modality" type="combo">
  905. <choices>
  906. <item>
  907. <label>GR</label>
  908. <value>GR</value>
  909. </item>
  910. <item>
  911. <label>CT</label>
  912. <value>CT</value>
  913. </item>
  914. <item>
  915. <label>MRI</label>
  916. <value>MR</value>
  917. </item>
  918. <item>
  919. <label>ANGIO</label>
  920. <value>AG</value>
  921. </item>
  922. <item>
  923. <label>SP</label>
  924. <value>SP</value>
  925. </item>
  926. <item>
  927. <label>SONO</label>
  928. <value>US</value>
  929. </item>
  930. <item>
  931. <label>BMD</label>
  932. <value>BM</value>
  933. </item>
  934. <item>
  935. <label>NM</label>
  936. <value>NM</value>
  937. </item>
  938. <item>
  939. <label>CT</label>
  940. <value>Ct</value>
  941. </item>
  942. <item>
  943. <label>CT</label>
  944. <value>C</value>
  945. </item>
  946. <item>
  947. <label>MAMMO</label>
  948. <value>MG</value>
  949. </item>
  950. </choices>
  951. </col>
  952. <col ref="excuexectodt" format="yyyy-mm-dd" style="text-align:center; "/>
  953. <col ref="fstrgstdt" format="yyyy-mm-dd" style="text-align:center; "/>
  954. <col disabled="true" ref="ioflag" type="combo" style="text-align:center; ">
  955. <choices>
  956. <item>
  957. <label>외래</label>
  958. <value>O</value>
  959. </item>
  960. <item>
  961. <label>입원</label>
  962. <value>I</value>
  963. </item>
  964. </choices>
  965. </col>
  966. <col ref="uoedesc"/>
  967. <col ref="excuexectodt" format="yyyy-mm-dd" style="text-align:center; "/>
  968. <col ref="excuroomcd"/>
  969. <col ref="stat"/>
  970. <col disabled="true" ref="execprcpstatcd"/>
  971. <col ref="cnfmdt" format="yyyy-mm-dd" style="text-align:center; "/>
  972. <col ref="deptdrnm"/>
  973. <col ref="lendapptm" format="yyyy-mm-dd hh:nn" style="text-align:center; "/>
  974. <col ref="lenddeptcd"/>
  975. <col ref="lendrid"/>
  976. <col disabled="true" ref="lendgoal" type="combo">
  977. <choices>
  978. <item>
  979. <label>판독요청</label>
  980. <value>01</value>
  981. </item>
  982. <item>
  983. <label>외래진료</label>
  984. <value>02</value>
  985. </item>
  986. <item>
  987. <label>입원진료</label>
  988. <value>03</value>
  989. </item>
  990. <item>
  991. <label>판독용</label>
  992. <value>04</value>
  993. </item>
  994. <item>
  995. <label>복사용</label>
  996. <value>05</value>
  997. </item>
  998. <item>
  999. <label>연구용</label>
  1000. <value>06</value>
  1001. </item>
  1002. </choices>
  1003. </col>
  1004. <col disabled="true" ref="prntyn" type="combo">
  1005. <choices>
  1006. <item>
  1007. <label>YES</label>
  1008. <value>Y</value>
  1009. </item>
  1010. <item>
  1011. <label>NO</label>
  1012. <value>N</value>
  1013. </item>
  1014. </choices>
  1015. </col>
  1016. <col ref="lendyn" visibility="hidden"/>
  1017. <col ref="pid" visibility="hidden"/>
  1018. <col ref="hngnm" visibility="hidden"/>
  1019. <col ref="prcpdd" visibility="hidden"/>
  1020. <col ref="execprcpuniqno" visibility="hidden"/>
  1021. <col ref="seq" visibility="hidden"/>
  1022. <script type="javascript" ev:event="onaftersort">
  1023. <![CDATA[
  1024. datagrid2.gridToInstance();
  1025. ]]>
  1026. </script>
  1027. <script type="javascript" ev:event="oncopy">
  1028. <![CDATA[
  1029. alert("내용 복사");
  1030. astgrid_oncopy();
  1031. ]]>
  1032. </script>
  1033. <script type="javascript" ev:event="onpaste">
  1034. <![CDATA[
  1035. alert("내용 붙여넣기");
  1036. astgrid_onpaste();
  1037. ]]>
  1038. </script>
  1039. </datagrid>
  1040. </case>
  1041. <case id="case3">
  1042. <datagrid id="grd_booklistordd" nodeset="/root/main/booklistordd/detail" caption="등록번호^환자명^성별/나이^영상구분^검사명^SECTION^진료과^검사일시^주치의^예약일시^판독상태^외래판독 요청여부" colsep="^" colwidth="74, 83, 60, 85, 150, 82, 114, 119, 80, 100, 91, 110, 34" dataheight="23" ellipsis="true" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="23" rowsep="|" tooltip="label" style="left:0px; top:0px; width:1185px; height:632px; ">
  1043. <col ref="pid" style="text-align:center; "/>
  1044. <col ref="hngnm" style="text-align:center; "/>
  1045. <col ref="sna" style="text-align:center; "/>
  1046. <col disabled="true" ref="modality" type="combo" style="text-align:center; ">
  1047. <choices>
  1048. <item>
  1049. <label>GR</label>
  1050. <value>GR</value>
  1051. </item>
  1052. <item>
  1053. <label>CT</label>
  1054. <value>CT</value>
  1055. </item>
  1056. <item>
  1057. <label>MRI</label>
  1058. <value>MR</value>
  1059. </item>
  1060. <item>
  1061. <label>ANGIO</label>
  1062. <value>AG</value>
  1063. </item>
  1064. <item>
  1065. <label>SP</label>
  1066. <value>SP</value>
  1067. </item>
  1068. <item>
  1069. <label>SONO</label>
  1070. <value>US</value>
  1071. </item>
  1072. <item>
  1073. <label>BMD</label>
  1074. <value>BM</value>
  1075. </item>
  1076. <item>
  1077. <label>NM</label>
  1078. <value>NM</value>
  1079. </item>
  1080. <item>
  1081. <label>CT</label>
  1082. <value>Ct</value>
  1083. </item>
  1084. <item>
  1085. <label>CT</label>
  1086. <value>C</value>
  1087. </item>
  1088. <item>
  1089. <label>MAMMO</label>
  1090. <value>MG</value>
  1091. </item>
  1092. </choices>
  1093. </col>
  1094. <col ref="excucdnm" style="text-align:left; "/>
  1095. <col ref="section" style="text-align:center; "/>
  1096. <col ref="deptnm" style="text-align:center; "/>
  1097. <col ref="excuexectodt" format="yyyy-mm-dd hh:nn" style="text-align:center; "/>
  1098. <col ref="usernm" style="text-align:center; "/>
  1099. <col ref="orddd" style="text-align:center; "/>
  1100. <col ref="execprcpstatcd" style="text-align:center; "/>
  1101. <col disabled="true" ref="lendgoal" type="combo" style="text-align:center; ">
  1102. <choices>
  1103. <item>
  1104. <label>판독요청</label>
  1105. <value>01</value>
  1106. </item>
  1107. <item>
  1108. <label>외래진료</label>
  1109. <value>02</value>
  1110. </item>
  1111. <item>
  1112. <label>입원진료</label>
  1113. <value>03</value>
  1114. </item>
  1115. <item>
  1116. <label>판독용</label>
  1117. <value>04</value>
  1118. </item>
  1119. <item>
  1120. <label>복사용</label>
  1121. <value>05</value>
  1122. </item>
  1123. <item>
  1124. <label>연구용</label>
  1125. <value>06</value>
  1126. </item>
  1127. </choices>
  1128. </col>
  1129. <col ref="seq" visibility="hidden"/>
  1130. <script type="javascript" ev:event="onclick">
  1131. <![CDATA[
  1132. if( isDataCell() ){
  1133. setbutton();
  1134. }
  1135. ]]>
  1136. </script>
  1137. <script type="javascript" ev:event="onaftersort">
  1138. <![CDATA[
  1139. grd_mainordlist1.gridToInstance();
  1140. ]]>
  1141. </script>
  1142. <script type="javascript" ev:event="oncopy">
  1143. <![CDATA[
  1144. astgrid_oncopy();
  1145. ]]>
  1146. </script>
  1147. <script type="javascript" ev:event="onpaste">
  1148. <![CDATA[
  1149. astgrid_onpaste();
  1150. ]]>
  1151. </script>
  1152. </datagrid>
  1153. </case>
  1154. </switch>
  1155. <button id="btn_case1" class="btn_sw" group="tab" selected="true" style="left:0px; top:75px; width:87px; height:22px; ">
  1156. <caption>판독요청</caption>
  1157. <toggle case="case1" ev:event="onclick"/>
  1158. <script type="javascript" ev:event="DOMActivate">
  1159. <![CDATA[
  1160. model.toggle("case1");
  1161. btn_case1.selected = true;
  1162. btn_case2.selected = false;
  1163. cap_modal2.visible = false; // 영상검사내역Modality Box Title
  1164. modality2.visible = false; // 영상검사내역Modality Box
  1165. setbutton();
  1166. // 진료예약자 판독현황 조회 탭일때는 조건 변경하기
  1167. fChngSetMenu();
  1168. ]]>
  1169. </script>
  1170. </button>
  1171. <button id="btn_case2" class="btn_sw" group="tab" selected="true" style="left:87px; top:75px; width:87px; height:22px; ">
  1172. <caption>영상검사내역</caption>
  1173. <toggle case="case2" ev:event="onclick"/>
  1174. <script type="javascript" ev:event="DOMActivate">
  1175. <![CDATA[
  1176. model.toggle("case2");
  1177. btn_case1.selected = false;
  1178. btn_case2.selected = true;
  1179. button1.disabled = true;
  1180. button2.disabled = true;
  1181. button3.disabled = true;
  1182. cap_modal2.visible = true; // 영상검사내역Modality Box Title
  1183. modality2.visible = true; // 영상검사내역Modality Box
  1184. if (model.getValue("/root/send/data/spid") != ""){
  1185. readfunc1();
  1186. }
  1187. // 진료예약자 판독현황 조회 탭일때는 조건 변경하기
  1188. fChngSetMenu();
  1189. model.refresh();
  1190. ]]>
  1191. </script>
  1192. </button>
  1193. <button id="button4" class="btn1_letter2" visibility="hidden" style="left:680px; top:73px; width:56px; height:22px; ">
  1194. <caption>조회</caption>
  1195. <script type="javascript" ev:event="DOMActivate">
  1196. <![CDATA[
  1197. var schar = model.getValue("/root/send/data/spid");
  1198. var k = 0;
  1199. for (var i = 0; i < schar.length; i ++){
  1200. var ch = parseInt(schar.charAt(i));
  1201. if (ch >= 0 && ch <= 9){
  1202. k = parseInt(i) + 1;
  1203. }
  1204. }
  1205. if (k > 0){
  1206. var spid = schar.substring(0, k);
  1207. var sgb = schar.substring(k, schar.length);
  1208. model.setValue("/root/send/data/pid", spid);
  1209. }
  1210. if (btn_case1.selected == true){
  1211. if (model.getValue("/root/send/data/spid") != ""){
  1212. if (grd_mainordlist1.rows > 1){
  1213. for (var i = 1; i < grd_mainordlist1.rows; i++){
  1214. var spid1 = model.getValue("/root/main/booklist/detail[" + i + "]/pid");
  1215. var sgb1 = model.getValue("/root/main/booklist/detail[" + i + "]/modality");
  1216. if (spid == spid1 && sgb == sgb1){
  1217. var k1 = i;
  1218. }
  1219. }
  1220. grd_mainordlist1.row = k1;
  1221. grd_mainordlist1.topRow = k1;
  1222. grd_mainordlist1.refresh();
  1223. if (k1 > 0){
  1224. if (model.getValue("/root/main/booklist/detail[" + k1 + "]/lendyn") == "N"){
  1225. button3.disabled = false;
  1226. button3.dispatch("DOMActivate");
  1227. }else if (model.getValue("/root/main/booklist/detail[" + k1 + "]/lendyn") == "Y"){
  1228. button1.disabled = false;
  1229. button1.dispatch("DOMActivate");
  1230. }else{
  1231. messageBox("해당 신청내역은 이미 모든 처리가 완료되었습니다.", "E999", "");
  1232. }
  1233. }else{
  1234. messageBox("해당 신청내역 내역이 존재하지 않습니다.", "E999", "");
  1235. }
  1236. }
  1237. model.refresh();
  1238. }
  1239. }else{
  1240. readfunc1();
  1241. }
  1242. ]]>
  1243. </script>
  1244. </button>
  1245. <input id="opt_addr" ref="/root/main/patinfo/patinfolist/addr" class="output_fix" disabled="true" style="left:609px; top:47px; width:582px; height:19px; "/>
  1246. <input id="opt_sex" ref="/root/main/patinfo/patinfolist/sex" class="output_fix" disabled="true" style="left:208px; top:47px; width:20px; height:19px; text-align:center; "/>
  1247. <input id="opt_hngnm" ref="/root/main/patinfo/patinfolist/hngnm" class="output_fix" disabled="true" style="left:52px; top:47px; width:85px; height:19px; "/>
  1248. <caption id="caption11" class="cell_1" style="left:231px; top:45px; width:50px; height:23px; vertical-align:middle; ">집전화</caption>
  1249. <caption id="caption4" class="cell_1" style="left:0px; top:45px; width:50px; height:23px; vertical-align:middle; ">환자명</caption>
  1250. <input id="opt_hometel" ref="/root/main/patinfo/patinfolist/hometel" class="output_fix" disabled="true" style="left:282px; top:47px; width:95px; height:19px; "/>
  1251. <input id="opt_mpphontel" ref="/root/main/patinfo/patinfolist/mpphontel" class="output_fix" disabled="true" style="left:431px; top:47px; width:124px; height:19px; "/>
  1252. <caption id="caption7" class="cell_1" style="left:558px; top:45px; width:50px; height:23px; vertical-align:middle; ">집주소</caption>
  1253. <caption id="caption16" class="cell_1" style="left:140px; top:45px; width:43px; height:23px; vertical-align:middle; ">S/A</caption>
  1254. <caption id="caption8" class="cell_1" style="left:380px; top:45px; width:50px; height:23px; vertical-align:middle; ">핸드폰</caption>
  1255. <input id="opt_age" ref="/root/main/patinfo/patinfolist/age" class="output_fix" disabled="true" style="left:184px; top:47px; width:25px; height:19px; text-align:center; "/>
  1256. <line id="line1" class="line_1" style="x1:0px; y1:41px; x2:1193px; y2:41px; "/>
  1257. <button id="button5" class="btn5_letter7" style="left:995px; top:78px; width:97px; height:19px; ">
  1258. <caption>자동출력시작</caption>
  1259. <script type="javascript" ev:event="DOMActivate">
  1260. <![CDATA[
  1261. caption9.visible = true;
  1262. clockTimer = window.setInterval("fPrint()", 10000);
  1263. ]]>
  1264. </script>
  1265. </button>
  1266. <button id="button6" class="btn5_letter7" style="left:1093px; top:78px; width:97px; height:19px; ">
  1267. <caption>자동출력종료</caption>
  1268. <script type="javascript" ev:event="DOMActivate">
  1269. <![CDATA[
  1270. caption9.visible = false;
  1271. window.clearInterval(clockTimer);
  1272. ]]>
  1273. </script>
  1274. </button>
  1275. <caption id="caption9" visibility="hidden" style="left:755px; top:73px; width:145px; height:22px; font-size:12pt; color:#ff6600; text-align:center; ">자동출력 진행중....</caption>
  1276. <select id="checkbox1" ref="/root/send/data/deptcdflag" class="checkbox_search" overflow="visible" appearance="full" style="left:806px; top:14px; width:40px; height:15px; border-style:none; ">
  1277. <choices>
  1278. <item>
  1279. <label>NM</label>
  1280. <value>NM</value>
  1281. </item>
  1282. </choices>
  1283. <script type="javascript" ev:event="xforms-value-changed">
  1284. <![CDATA[
  1285. button5.disabled = true; //자동출력시작 비활성화
  1286. button6.disabled = true; //자동출력종료 비활성화
  1287. ]]>
  1288. </script>
  1289. </select>
  1290. <button id="button7" class="btn5_letter5" style="left:919px; top:78px; width:75px; height:19px; ">
  1291. <caption>목록출력</caption>
  1292. <script type="javascript" ev:event="DOMActivate">
  1293. <![CDATA[
  1294. var tmpcnt =0 ;
  1295. for (var i =0 ; i < grd_mainordlist1.selectedRows ; i++){
  1296. tmpcnt = i+1 ;
  1297. model.makeValue("/root/main/prntRexinfo/detail[" + tmpcnt + "]/pid", model.getValue("/root/main/booklist/detail[" + grd_mainordlist1.selectedrow(i) + "]/pid")); //등록번호
  1298. model.makeValue("/root/main/prntRexinfo/detail[" + tmpcnt + "]/hngnm", model.getValue("/root/main/booklist/detail[" + grd_mainordlist1.selectedrow(i) + "]/hngnm")); // 환자명
  1299. model.makeValue("/root/main/prntRexinfo/detail[" + tmpcnt + "]/modality", model.getValue("/root/main/booklist/detail[" + grd_mainordlist1.selectedrow(i) + "]/modality")); // 필름구분
  1300. model.makeValue("/root/main/prntRexinfo/detail[" + tmpcnt + "]/lenddeptcd", model.getValue("/root/main/booklist/detail[" + grd_mainordlist1.selectedrow(i) + "]/lenddeptcd")); // 판독요청과
  1301. model.makeValue("/root/main/prntRexinfo/detail[" + tmpcnt + "]/lendrid", model.getValue("/root/main/booklist/detail[" + grd_mainordlist1.selectedrow(i) + "]/lendrid")); // 대출요청자
  1302. model.makeValue("/root/main/prntRexinfo/detail[" + tmpcnt + "]/lendapptm", model.getValue("/root/main/booklist/detail[" + grd_mainordlist1.selectedrow(i) + "]/lendapptm")); // 판독요청자
  1303. model.makeValue("/root/main/prntRexinfo/detail[" + tmpcnt + "]/lendgoal", model.getValue("/root/main/booklist/detail[" + grd_mainordlist1.selectedrow(i) + "]/lendgoal")); // 판독요청일
  1304. model.makeValue("/root/main/prntRexinfo/detail[" + tmpcnt + "]/lendgoalnm", grd_mainordlist1.labelMatrix(grd_mainordlist1.selectedrow(i), grd_mainordlist1.colRef("lendgoal")) ); // 대출목적
  1305. }
  1306. //exeReportPreview("RPAEF00201", "XMLSTR", "", "", "true","","","","","true");
  1307. exeReportPreview("RPAEF00201", "XMLSTR", "", "", "false","","","","","false");
  1308. ]]>
  1309. </script>
  1310. </button>
  1311. <button id="btn_case3" class="btn_sw" group="tab" selected="true" style="left:174px; top:75px; width:166px; height:22px; ">
  1312. <caption>진료 예약자 판독 현황 조회</caption>
  1313. <toggle case="case3" ev:event="onclick"/>
  1314. <script type="javascript" ev:event="DOMActivate">
  1315. <![CDATA[
  1316. model.toggle("case3");
  1317. btn_case1.selected = false;
  1318. btn_case2.selected = false;
  1319. btn_case3.selected = true;
  1320. cap_modal2.visible = false; // 영상검사내역Modality Box Title
  1321. modality2.visible = false; // 영상검사내역Modality Box
  1322. // 진료예약자 판독현황 조회 탭일때는 조건 변경하기
  1323. fChngSetMenu();
  1324. ]]>
  1325. </script>
  1326. </button>
  1327. <button id="btn_excel" class="btn4_letter3" style="left:345px; top:75px; width:68px; height:22px; ">
  1328. <caption>Excel</caption>
  1329. <script type="javascript" ev:event="DOMActivate">
  1330. <![CDATA[
  1331. var file = window.fileDialog("save","","true","","xls","Excel Files(*.xls)|*.xls");
  1332. if(file == "") return;
  1333. if (btn_case1.selected == true) {
  1334. grd_mainordlist1.saveExcel(file, "sheet1");
  1335. } else {
  1336. if (btn_case2.selected == true){
  1337. datagrid2.saveExcel(file, "sheet1");
  1338. } else {
  1339. grd_booklistordd.saveExcel(file, "sheet1");
  1340. }
  1341. }
  1342. ]]>
  1343. </script>
  1344. </button>
  1345. <input id="ipt_srchdate1" ref="/root/send/data2/srchdate1" class="input_default" visibility="hidden" inputtype="date" style="left:75px; top:15px; width:85px; height:19px; ">
  1346. <script type="javascript" ev:event="xforms-value-changed">
  1347. <![CDATA[
  1348. ipt_execd.value= model.getValue("/root/send/data2/srchdate1").toDate().getAddDate(-15,"D").getDateFormat("YYYYMMDD");
  1349. ipt_execd2.value= model.getValue("/root/send/data2/srchdate1").toDate().getAddDate(-1,"D").getDateFormat("YYYYMMDD");
  1350. ]]>
  1351. </script>
  1352. </input>
  1353. <input id="ipt_srchdate2" ref="/root/send/data2/srchdate2" class="input_default" visibility="hidden" inputtype="date" style="left:165px; top:15px; width:85px; height:19px; "/>
  1354. <caption id="caption10" class="search_name" visibility="hidden" style="left:6px; top:13px; width:70px; height:17px; vertical-align:middle; ">진료일자</caption>
  1355. <select1 id="combo1" ref="/root/send/data2/section" navindex="5" appearance="minimal" style="left:1075px; top:13px; width:100px; height:19px; ">
  1356. <choices>
  1357. <itemset nodeset="/root/init/cmb_section/initsection">
  1358. <label ref="sectionnm"/>
  1359. <value ref="sectionid"/>
  1360. </itemset>
  1361. </choices>
  1362. </select1>
  1363. <caption id="caption12" class="search_name" visibility="hidden" style="left:652px; top:13px; width:83px; height:17px; vertical-align:middle; ">영상구분</caption>
  1364. <select1 id="cmb_modality" ref="/root/send/data2/modality" navindex="5" visibility="hidden" appearance="minimal" style="left:737px; top:15px; width:115px; height:19px; ">
  1365. <choices>
  1366. <item>
  1367. <label>-- 전체 --</label>
  1368. <value/>
  1369. </item>
  1370. <item>
  1371. <label>GR</label>
  1372. <value>GR</value>
  1373. </item>
  1374. <item>
  1375. <label>DR</label>
  1376. <value>DR</value>
  1377. </item>
  1378. <item>
  1379. <label>CT</label>
  1380. <value>CT</value>
  1381. </item>
  1382. <item>
  1383. <label>MRI</label>
  1384. <value>MRI</value>
  1385. </item>
  1386. <item>
  1387. <label>ANGIO</label>
  1388. <value>ANGIO</value>
  1389. </item>
  1390. <item>
  1391. <label>SP</label>
  1392. <value>SP</value>
  1393. </item>
  1394. <item>
  1395. <label>SONO</label>
  1396. <value>SONO</value>
  1397. </item>
  1398. <item>
  1399. <label>BMD</label>
  1400. <value>BMD</value>
  1401. </item>
  1402. <item>
  1403. <label>NM</label>
  1404. <value>NM</value>
  1405. </item>
  1406. <item>
  1407. <label>MAMMO</label>
  1408. <value>MAMMO</value>
  1409. </item>
  1410. </choices>
  1411. </select1>
  1412. <caption id="caption13" class="search_name" visibility="hidden" style="left:257px; top:13px; width:70px; height:17px; vertical-align:middle; ">진료과</caption>
  1413. <caption id="caption14" class="search_name" visibility="hidden" style="left:477px; top:13px; width:70px; height:17px; vertical-align:middle; ">진료의</caption>
  1414. <caption id="caption15" class="search_name" style="left:983px; top:14px; width:90px; height:17px; vertical-align:middle; ">SECTION:</caption>
  1415. <select1 id="cmb_orddr" ref="/root/send/data2/drid" class="combo_search" visibility="hidden" appearance="minimal" style="left:547px; top:15px; width:98px; height:19px; ">
  1416. <choices>
  1417. <itemset nodeset="/root/init/cmb_orddr/initexecorddr">
  1418. <label ref="execorddrcdnm"/>
  1419. <value ref="execorddrcdid"/>
  1420. </itemset>
  1421. </choices>
  1422. </select1>
  1423. <select1 id="cmb_orddept" ref="/root/send/data2/deptcd" class="combo_search" visibility="hidden" appearance="minimal" style="left:328px; top:15px; width:140px; height:19px; ">
  1424. <choices>
  1425. <itemset nodeset="/root/init/cmb_orddept/initexecorddept">
  1426. <label ref="execorddeptcdnm"/>
  1427. <value ref="execorddeptcdid"/>
  1428. </itemset>
  1429. </choices>
  1430. <script type="javascript" ev:event="xforms-value-changed">
  1431. <![CDATA[
  1432. fChngSrchDrId();
  1433. ]]>
  1434. </script>
  1435. </select1>
  1436. <button id="btn_data2searh" class="btn1_letter5" visibility="hidden" style="left:1090px; top:13px; width:92px; height:17px; ">
  1437. <caption>미판독조회</caption>
  1438. <script type="javascript" ev:event="DOMActivate">
  1439. <![CDATA[
  1440. if (model.getValue("/root/send/data2/srchdate1") == ""){
  1441. messageBox("시작 진료일자는 필수 입력항목입니다.", "E999", "");
  1442. return;
  1443. }
  1444. if (isDate(model.getValue("/root/send/data2/srchdate1")) == false){
  1445. messageBox("진료 시작일의 날짜 형식이 잘못 입력되었습니다.", "E999", "");
  1446. return;
  1447. }
  1448. /*
  1449. if (model.getValue("/root/send/data2/srchdate2") == ""){
  1450. messageBox("종료 진료일자는 필수 입력항목입니다.", "E999", "");
  1451. return;
  1452. }
  1453. if (isDate(model.getValue("/root/send/data2/srchdate2")) == false){
  1454. messageBox("진료 시작일의 날짜 형식이 잘못 입력되었습니다.", "E999", "");
  1455. return;
  1456. }
  1457. if (model.getValue("/root/send/data2/srchdate1") != model.getValue("/root/send/data2/srchdate2")){
  1458. messageBox("진료일자의 조회 기간은 1일 조회입니다.", "E999", "");
  1459. return;
  1460. }
  1461. */
  1462. /*
  1463. if (model.getValue("/root/send/data2/deptcd") == ""){
  1464. var srchLength1 = model.instances(0).selectNodes( "/root/init/cmb_orddept/initexecorddept" ).length;
  1465. var strlist ="";
  1466. for ( var i = 1; i <= srchLength1; i++ ) {
  1467. if ( model.getValue("/root/init/cmb_orddept/initexecorddept["+ i +"]/execorddeptcdid") != "" ) {
  1468. strlist += model.getValue("/root/init/cmb_orddept/initexecorddept["+ i +"]/execorddeptcdid")+",";
  1469. }
  1470. }
  1471. model.makeValue("/root/send/data2/deptstrlist", strlist);
  1472. model.refresh();
  1473. }
  1474. */
  1475. //if (model.getValue("/root/send/data2/deptcd") == ""){
  1476. // messageBox("진료과는 필수 입력항목입니다.", "E999", "");
  1477. // return;
  1478. //}
  1479. // 미판독 내역조회
  1480. submit("TRAEF00202");
  1481. //model.resetInstanceNode("/root/send/data2/deptstrlist");
  1482. //model.refresh();
  1483. ]]>
  1484. </script>
  1485. </button>
  1486. <select1 id="chk_eckbox2" ref="/root/send/data/exegb" class="checkbox_search" appearance="full" cols="5" overflow="visible" style="left:418px; top:78px; width:305px; height:20px; border-style:none; ">
  1487. <choices>
  1488. <item>
  1489. <label>전체</label>
  1490. <value>0</value>
  1491. </item>
  1492. <item>
  1493. <label>판독요청</label>
  1494. <value>1</value>
  1495. </item>
  1496. <item>
  1497. <label>미판독</label>
  1498. <value>2</value>
  1499. </item>
  1500. <item>
  1501. <label>판독완료</label>
  1502. <value>3</value>
  1503. </item>
  1504. </choices>
  1505. </select1>
  1506. <caption id="cap_execdd" class="search_name" visibility="hidden" style="left:913px; top:75px; width:76px; height:17px; vertical-align:middle; ">실시일자</caption>
  1507. <input id="ipt_execd" ref="/root/send/data2/excuexectodd" class="input_default" visibility="hidden" inputtype="date" style="left:1000px; top:75px; width:85px; height:19px; "/>
  1508. <input id="ipt_execd2" ref="/root/send/data2/excuexectodd2" class="input_default" visibility="hidden" inputtype="date" style="left:1090px; top:75px; width:85px; height:19px; "/>
  1509. <select1 id="rdo_prcpgenrflag" ref="/root/send/data2/prcpgenrflag" class="radio_search" visibility="hidden" appearance="full" cellspacing="5" cols="3" rows="1" overflow="visible" style="left:755px; top:77px; width:150px; height:20px; border-style:none; ">
  1510. <choices>
  1511. <item>
  1512. <label>전체</label>
  1513. <value/>
  1514. </item>
  1515. <item>
  1516. <label>입원</label>
  1517. <value>I</value>
  1518. </item>
  1519. <item>
  1520. <label>외래</label>
  1521. <value>O</value>
  1522. </item>
  1523. </choices>
  1524. </select1>
  1525. <caption id="cap_modal2" class="search_name" visibility="hidden" style="left:740px; top:77px; width:83px; height:17px; vertical-align:middle; ">영상구분</caption>
  1526. <select1 id="modality2" ref="/root/send/data/modality" visibility="hidden" appearance="minimal" style="left:819px; top:76px; width:85px; height:19px; ">
  1527. <choices>
  1528. <item>
  1529. <label>-- 전체 --</label>
  1530. <value/>
  1531. </item>
  1532. <item>
  1533. <label>GR</label>
  1534. <value>GR</value>
  1535. </item>
  1536. <item>
  1537. <label>DR</label>
  1538. <value>DR</value>
  1539. </item>
  1540. <item>
  1541. <label>CT</label>
  1542. <value>CT</value>
  1543. </item>
  1544. <item>
  1545. <label>MRI</label>
  1546. <value>MRI</value>
  1547. </item>
  1548. <item>
  1549. <label>ANGIO</label>
  1550. <value>ANGIO</value>
  1551. </item>
  1552. <item>
  1553. <label>SP</label>
  1554. <value>SP</value>
  1555. </item>
  1556. <item>
  1557. <label>SONO</label>
  1558. <value>SONO</value>
  1559. </item>
  1560. <item>
  1561. <label>BMD</label>
  1562. <value>BMD</value>
  1563. </item>
  1564. <item>
  1565. <label>NM</label>
  1566. <value>NM</value>
  1567. </item>
  1568. <item>
  1569. <label>MAMMO</label>
  1570. <value>MAMMO</value>
  1571. </item>
  1572. </choices>
  1573. </select1>
  1574. <button id="button1" class="btn5_letter2" disabled="true" visibility="hidden" style="left:975px; top:45px; width:42px; height:19px; ">
  1575. <caption>반납승인</caption>
  1576. <script type="javascript" ev:event="DOMActivate">
  1577. <![CDATA[
  1578. fSaveData1();
  1579. ]]>
  1580. </script>
  1581. </button>
  1582. <button id="button2" class="btn5_letter2" disabled="true" visibility="hidden" style="left:1020px; top:45px; width:42px; height:19px; ">
  1583. <caption>대출신청서</caption>
  1584. <script type="javascript" ev:event="DOMActivate">
  1585. <![CDATA[
  1586. if (grd_mainordlist1.row > 0){
  1587. model.setValue("/root/main/printinfo/printlist/pid", model.getValue("/root/main/booklist/detail[" + grd_mainordlist1.row + "]/pid"));
  1588. model.setValue("/root/main/printinfo/printlist/hngnm", model.getValue("/root/main/booklist/detail[" + grd_mainordlist1.row + "]/hngnm"));
  1589. model.setValue("/root/main/printinfo/printlist/modality", model.getValue("/root/main/booklist/detail[" + grd_mainordlist1.row + "]/modality"));
  1590. model.setValue("/root/main/printinfo/printlist/lenddeptcd", model.getValue("/root/main/booklist/detail[" + grd_mainordlist1.row + "]/lenddeptcd"));
  1591. model.setValue("/root/main/printinfo/printlist/lendrid", model.getValue("/root/main/booklist/detail[" + grd_mainordlist1.row + "]/lendrid"));
  1592. model.setValue("/root/main/printinfo/printlist/lendgoal", grd_mainordlist1.labelMatrix(grd_mainordlist1.row, grd_mainordlist1.colRef("lendgoal")));
  1593. model.setValue("/root/main/printinfo/printlist/lendapptm", model.getValue("/root/main/booklist/detail[" + grd_mainordlist1.row + "]/lendapptm"));
  1594. model.refresh();
  1595. //setParameter("reportprintyn", "");
  1596. //exeReportPreview("RPAEF00200", "XMLSTR", "/root/main/printinfo/printlist");
  1597. //exeReportPreview("RPAEF00200", "XMLSTR", "/root/main/printinfo/printlist", "", "true", "", "", "", "", "", "", "", "", "", "", "", "", "0");
  1598. exeReportPreview("RPAEF00200", "XMLSTR", "/root/main/printinfo/printlist", "", "true", "", "", "", "", "true","", "", "", "", "", "", "", "printpaper=8;");
  1599. //if (getParameter("reportprintyn") == "Y"){
  1600. fSaveData2();
  1601. }else{
  1602. messageBox("출력할 행을 선택한 후 작업하시기 바랍니다.", "E999", "");
  1603. }
  1604. ]]>
  1605. </script>
  1606. </button>
  1607. </group>
  1608. </xhtml:body>
  1609. </xhtml:html>