SMLPD00100_슬라이드반납대출.xrw 73 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <!--
  3. * 제 목 : SMLPD00100_슬라이드반납대출.xrw
  4. * 설 명 : 슬라이드 대출반납등록
  5. * 설 계 자 : (주)에이씨케이 - 유동철
  6. * 작 성 자 : (주)에이씨케이 - 유동철
  7. * 작 성 일 : 2007.10.06
  8. * 수정이력 :
  9. * 기 타 :
  10. -->
  11. <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/css" ?>
  12. <xhtml:html xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.w3.org/2002/01/xforms" xmlns:ev="http://www.w3.org/2001/xml-events">
  13. <xhtml:head>
  14. <xhtml:title>슬라이드 대출반납</xhtml:title>
  15. <model id="model1">
  16. <instance id="instance1">
  17. <root xmlns="">
  18. <main>
  19. <csteslid>
  20. <csteslidlist>
  21. <choi/>
  22. <instcd/>
  23. <ptno/>
  24. <dispptno/>
  25. <spcseqno/>
  26. <csteno/>
  27. <slidno/>
  28. <pid/>
  29. <patnm/>
  30. <slidcnts/>
  31. <appdeptcd/>
  32. <appid/>
  33. <rrgstno/>
  34. <psptno/>
  35. <hometel/>
  36. <mpphontel/>
  37. <lenddd/>
  38. <lendno/>
  39. </csteslidlist>
  40. </csteslid>
  41. <lendrtn>
  42. <lendrtnlist>
  43. <choi/>
  44. <instcd/>
  45. <ptno/>
  46. <dispptno/>
  47. <spcseqno/>
  48. <csteno/>
  49. <slidno/>
  50. <slidcnts/>
  51. <stats/>
  52. <pid/>
  53. <lenddd/>
  54. <lendno/>
  55. <appdd/>
  56. <appno/>
  57. <lendflagcd/>
  58. </lendrtnlist>
  59. </lendrtn>
  60. <detllendrtn>
  61. <lendinfo>
  62. <lenddd/>
  63. <lendtm/>
  64. <lendflag/>
  65. <lenddept/>
  66. <lendchrg/>
  67. <cnsltdr/>
  68. <lendplce/>
  69. <lendresncd/>
  70. <pid/>
  71. <patnm/>
  72. <appnm/>
  73. <rrgstno/>
  74. <cntctelno/>
  75. <patrela/>
  76. <rtnschedd/>
  77. <acptnm/>
  78. <lendrtncmt/>
  79. <rtnnm/>
  80. <rtnrregno/>
  81. <rtncntctelno/>
  82. <rtnpatrela/>
  83. <rtndd/>
  84. <rtntm/>
  85. <rtnacptnm/>
  86. <rem/>
  87. <lendno/>
  88. <imgrgstdd/>
  89. <imgno/>
  90. <imgseqno/>
  91. <rsltimg/>
  92. </lendinfo>
  93. <rtninfo>
  94. </rtninfo>
  95. </detllendrtn>
  96. <plgyprcpinfo>
  97. <plgyprcplist>
  98. <choi/>
  99. <patnm/>
  100. <ptno/>
  101. <relaptno/>
  102. <prcpnm/>
  103. <spcnm/>
  104. <orddeptnm/>
  105. <prcpdd/>
  106. <acptdd/>
  107. <readdd/>
  108. <readdrnm/>
  109. <dispptno/>
  110. <disprelaptno/>
  111. <blockcnts/>
  112. <slidecnts/>
  113. <grosdrnm/>
  114. <reqcnts/>
  115. <pid/>
  116. <reqfrmno/>
  117. <apcacptseqno/>
  118. <csteno/>
  119. <slidno/>
  120. <ptno/>
  121. <instcd/>
  122. <relaptno/>
  123. <prcpdd/>
  124. <prcpno/>
  125. <rrgstno/>
  126. <mpphontel/>
  127. <lenddd/>
  128. <lendno/>
  129. <slidseqno/>
  130. <lendtm/>
  131. <lendflagcd/>
  132. <lenddeptcd/>
  133. <lendid/>
  134. <cnstdrid/>
  135. <lendplce/>
  136. <lendresncd/>
  137. <appnm/>
  138. <lendrrgstno/>
  139. <cntctelno/>
  140. <patrela/>
  141. <rtnschedd/>
  142. <imgrgstdd/>
  143. <imgno/>
  144. <imgseqno/>
  145. <rsltimg/>
  146. <rtnflagcd/>
  147. <rcptflag/>
  148. </plgyprcplist>
  149. </plgyprcpinfo>
  150. <slideinfo>
  151. <slidelist>
  152. <choi/>
  153. <ptno/>
  154. <spcacptseqno/>
  155. <csteno/>
  156. <slidno/>
  157. <blockcnts/>
  158. <slidecnts/>
  159. </slidelist>
  160. </slideinfo>
  161. </main>
  162. <send/>
  163. <init>
  164. <workflag>1</workflag>
  165. <fromdd/>
  166. <todd/>
  167. <refflag>1</refflag>
  168. <refval/>
  169. <lendflagcd/>
  170. <sysdt>
  171. <sysdtinfo>
  172. <sysdd/>
  173. <systm/>
  174. </sysdtinfo>
  175. </sysdt>
  176. <orddeptlist>
  177. <dept>
  178. <deptcd/>
  179. <depthngnm>
  180. <![CDATA[내과]]>
  181. </depthngnm>
  182. </dept>
  183. </orddeptlist>
  184. <userinfo>
  185. <userlist>
  186. <usercombo>
  187. <usernm>김은숙</usernm>
  188. <userid>10205568</userid>
  189. </usercombo>
  190. </userlist>
  191. </userinfo>
  192. <resncd>
  193. <resncdlist>
  194. <instcd/>
  195. <baseflagcd/>
  196. <resncd/>
  197. <resncnts/>
  198. </resncdlist>
  199. </resncd>
  200. <cnstdr>
  201. <cnsltlist>
  202. <instcd/>
  203. <hospnm/>
  204. <dutydeptnm/>
  205. <cnstdrid/>
  206. <cnstdrnm/>
  207. <cntctelno/>
  208. </cnsltlist>
  209. </cnstdr>
  210. <acptddflag/>
  211. <popupmenu>
  212. <item>
  213. <name>슬라이드 등록/변경</name>
  214. <func>fSetSlideChoi</func>
  215. </item>
  216. </popupmenu>
  217. </init>
  218. <hidden>
  219. </hidden>
  220. </root>
  221. </instance>
  222. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  223. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  224. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  225. <script type="javascript" src="../../../lis/commonweb/js/LPZ001.js"/>
  226. <script type="javascript" src="../../../com/userdeptinfoweb/js/ZSU001.js"/>
  227. <script type="javascript" src="../../../com/departmentcodeweb/js/ZSD001.js"/>
  228. <script type="javascript" ev:event="xforms-ready">
  229. <![CDATA[
  230. fExeInitialize();
  231. ]]>
  232. </script>
  233. <submission id="TRLPZ00102" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/init/sysdt/sysdtinfo"/>
  234. <submission id="TRLPZ00103" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/init/resncd/resncdlist"/>
  235. <submission id="TRLPD00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/csteslid/csteslidlist"/>
  236. <submission id="TXLPD00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/message"/>
  237. <submission id="TRZSU10105" mediatype="application/x-www-form-urlencoded" method="post"/>
  238. <submission id="TRZSD00109" mediatype="application/x-www-form-urlencoded" method="post"/>
  239. <submission id="TRLPC01201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/init/cnstdr/cnsltlist"/>
  240. <submission id="TRLPD00102" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/detllendrtn/lendinfo"/>
  241. <submission id="TRLPD00705" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/plgyprcpinfo/plgyprcplist"/>
  242. <submission id="TRLPZ00105" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/init/userinfo/userinfolist"/>
  243. <submission id="TRLPD00706" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/slideinfo/slidelist"/>
  244. <submission id="TXLPD00102" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/hidden"/>
  245. </model>
  246. <script type="javascript">
  247. <![CDATA[
  248. /* @group : 슬라이드 반납대출등록 화면
  249. * @ver : 2007.10.06 (CMCDEV-0001)
  250. * @by : 유동철(ACK)
  251. * @-----------------------------------
  252. * @type : function
  253. * @access : public
  254. * @desc : 화면초기화 함수
  255. */
  256. function fExeInitialize() {
  257. //------------------------------------------------------
  258. model.removeNodeset("/root/main/csteslid/csteslidlist");
  259. model.removeNodeset("/root/main/lendrtn/lendrtnlist");
  260. //---------------
  261. // 시스템일시 조회
  262. model.removeNodeset("/root/send");
  263. model.makeValue("/root/send/instcd", getUserInfo("dutplceinstcd"));
  264. submit("TRLPZ00102", false);
  265. //--------------------------------------------
  266. model.makeValue("/root/init/workflag", "0"); // 대출(0), 반납(1)
  267. model.makeValue("/root/init/fromdd", model.getValue("/root/init/sysdt/sysdtinfo/sysdd"));
  268. model.makeValue("/root/init/todd", model.getValue("/root/init/sysdt/sysdtinfo/sysdd"));
  269. model.makeValue("/root/init/lendflagcd", "1"); // 원내(0), 원외(1)
  270. model.makeValue("/root/init/refval", ""); // 검색값
  271. model.makeValue("/root/init/refflag", "1"); // 병리번호(0), 등록번호(1)
  272. //----------------------------------------
  273. var instcd = getUserInfo("dutplceinstcd");
  274. var standard_yn = "orduseyn";
  275. var ord_deptflag = 'D';
  276. var rslt_ref = "/root/init/orddeptlist";
  277. var sort_field = "dispseq";
  278. var sort_method = "asc";
  279. zbcfGetDeptCodeList(instcd, standard_yn, ord_deptflag, rslt_ref, sort_field, sort_method);
  280. //--------------------
  281. // 대출사유 목록 조회
  282. model.makeValue("/root/send/baseflagcd", "'L1'");
  283. submit("TRLPZ00103", false);
  284. model.removeNodeset("/root/init/resncd/resncdlist[resncd='ZZZZ']");
  285. //-------------------
  286. // 자문의사 목록 조회
  287. model.makeValue("/root/send/delflagcd", "0");
  288. model.makeValue("/root/send/refflag", "0");
  289. model.makeValue("/root/send/refval", "");
  290. //submit("TRLPC01201");
  291. // 의사목록 조회....
  292. model.makeValue("/root/send/instcd", getUserInfo("dutplceinstcd"));
  293. model.makeValue("/root/send/userdeptcd", "-");
  294. model.makeValue("/root/send/doctjobgradcd", "-"); // 예문 추가시 의사만 보일 수 있도록
  295. model.makeValue("/root/send/teamjobgradcd", "-");
  296. submit("TRLPZ00105");
  297. //---------------------------------------------
  298. grd_csteslidlist.fixedcellcheckbox(0,0) = true;
  299. grd_lendrtnlist.fixedcellcheckbox(0,0) = true;
  300. //--------------
  301. model.refresh();
  302. }
  303. /* @group : 슬라이드 반납대출등록 화면
  304. * @ver : 2007.10.06 (CMCDEV-0001)
  305. * @by : 유동철(ACK)
  306. * @-----------------------------------
  307. * @type : function
  308. * @access : public
  309. * @desc : 카세트/슬라이드 대출리스트조회 함수
  310. */
  311. function fGetCsteSlidList() {
  312. if(model.getValue("/root/init/refval") == "") {
  313. messageBox("등록번호를 입력하여 주세요.", "I999");
  314. return;
  315. }
  316. //--------------------------------
  317. model.removeNodeset("/root/send");
  318. model.removeNodeset("/root/main/csteslid/csteslidlist");
  319. model.removeNodeset("/root/main/lendrtn/lendrtnlist");
  320. model.resetInstanceNode("/root/main/detllendrtn/lendinfo");
  321. //---------------------------------------------------------------------
  322. model.makeValue("/root/send/instcd", getUserInfo("dutplceinstcd"));
  323. model.makeValue("/root/send/workflagcd", model.getValue("/root/init/workflag"));
  324. model.makeValue("/root/send/lendflagcd", model.getValue("/root/init/lendflagcd"));
  325. model.makeValue("/root/send/acptfromdd", model.getValue("/root/init/fromdd")); // 접수시작일자
  326. model.makeValue("/root/send/acpttodd", model.getValue("/root/init/todd")); // 접수종료일자
  327. model.makeValue("/root/send/refflagcd", model.getValue("/root/init/refflag"));
  328. model.makeValue("/root/send/refval", model.getValue("/root/init/refval"));
  329. //submit("TRLPD00101");
  330. model.makeValue("/root/send/acptddflag", model.getValue("/root/init/acptddflag"));
  331. model.makeValue("/root/send/pid", model.getValue("/root/init/refval"));
  332. submit("TRLPD00705");
  333. //반납일경우 반납된 슬라이드는 색으로 구분
  334. grd_plgyprcplist.rebuildStyle();
  335. if(model.getValue("/root/init/workflag") == "1") {
  336. for(var iRowNo = 1 ; iRowNo < grd_plgyprcplist.rows ; iRowNo++) {
  337. if(model.getValue("/root/main/plgyprcpinfo/plgyprcplist["+ iRowNo +"]/rtnflagcd") == "1") {
  338. grd_plgyprcplist.rowstyle(iRowNo, "data", "background-color") = "#00CC66";
  339. }
  340. }
  341. }
  342. }
  343. /* @group : 슬라이드 반납대출등록 화면
  344. * @ver : 2007.10.06 (CMCDEV-0001)
  345. * @by : 유동철(ACK)
  346. * @-----------------------------------
  347. * @type : function
  348. * @access : public
  349. * @desc : 카세트/슬라이드 대출항목 선택 함수
  350. */
  351. function fExeCsteSlidChoi() {
  352. var iFindNo = 0;
  353. var sNode = "/root/main/csteslid/csteslidlist";
  354. var sDetlNode = "/root/main/detllendrtn/lendinfo";
  355. //---------------------------------------------------------------------------------------------------------------------------
  356. if(grd_csteslidlist.row > 0 && grd_csteslidlist.isCell(event.target) && grd_csteslidlist.row >= grd_csteslidlist.fixedRows) {
  357. if (model.getValue(sNode+"["+grd_csteslidlist.row+"]/choi") == "true") {
  358. //-------------
  359. fChangeImage(); // 컬럼 노드를 base64형식으로 변환
  360. //------------------
  361. // 대출상세정보 검색
  362. if (model.getValue("/root/init/workflag") == "1") {
  363. if (model.getValue(sNode+"["+grd_csteslidlist.row+"]/lenddd") != model.getValue(sDetlNode+"/lenddd") ||
  364. model.getValue(sNode+"["+grd_csteslidlist.row+"]/lendno") != model.getValue(sDetlNode+"/lendno")) {
  365. //--------------------------------------------------------------------------------------------
  366. if (model.getValue(sDetlNode+"/lenddd") == "-" || model.getValue(sDetlNode+"/lenddd") == "") {
  367. // Continue
  368. } else {
  369. if (messageBox("다른 대출건을 선택하셨습니다! 대출/반납목록이 초기화됩니다.", "Q004") == 7) {
  370. return false;
  371. }
  372. }
  373. //-------------------------------------------------
  374. // 대출 일자/번호가 다를경우 선택목록을 초기화한다.
  375. model.removeNodeset("/root/main/lendrtn/lendrtnlist");
  376. grd_lendrtnlist.refresh();
  377. model.removeNodeset("/root/send");
  378. model.makeValue("/root/send/instcd", getUserInfo("dutplceinstcd"));
  379. model.makeValue("/root/send/lenddd", model.getValue(sNode+"["+grd_csteslidlist.row+"]/lenddd"));
  380. model.makeValue("/root/send/lendno", model.getValue(sNode+"["+grd_csteslidlist.row+"]/lendno"));
  381. model.makeValue("/root/send/pid", model.getValue(sNode+"["+grd_csteslidlist.row+"]/pid"));
  382. submit("TRLPD00102");
  383. }
  384. }
  385. //-------------
  386. fChangeImage(); // 이미지 표시
  387. //---------------
  388. fExeAppendNode();
  389. } else {
  390. iFindNo = grd_csteslidlist.findRow("true", 1, 0, false, false);
  391. if (iFindNo <= 0) {
  392. model.removeNodeset("/root/main/lendrtn/lendrtnlist");
  393. model.resetInstanceNode("/root/main/detllendrtn/lendinfo");
  394. }
  395. //--------------
  396. model.refresh();
  397. }
  398. }
  399. }
  400. /* @group : 슬라이드 반납대출등록 화면
  401. * @ver : 2007.10.06 (CMCDEV-0001)
  402. * @by : 유동철(ACK)
  403. * @-----------------------------------
  404. * @type : function
  405. * @access : public
  406. * @desc : 카세트슬라이드 대출항목 선택 함수
  407. */
  408. function fExeAppendNode() {
  409. var curCol = grd_csteslidlist.col;
  410. var vCurSelRow = grd_csteslidlist.row;
  411. var vCurInsRow = 0;
  412. var sSrcNode = "/root/main/csteslid/csteslidlist";
  413. var sDescNode = "/root/main/lendrtn/lendrtnlist";
  414. var iFindNo = 0;
  415. var sRtnDD = model.getValue("/root/init/sysdt/sysdtinfo/sysdd");
  416. sRtnDD = sRtnDD.toDate().getAddDate(1,"M").getDateFormat("YYYYMMDD");
  417. //---------------
  418. if(curCol == 0) {
  419. //-----------------------
  420. // 존재하는 노드인지 검사
  421. iFindNo = fExeFindRow(vCurSelRow, sDescNode,
  422. model.getValue(sSrcNode+"["+vCurSelRow+"]/instcd"),
  423. model.getValue(sSrcNode+"["+vCurSelRow+"]/ptno"),
  424. model.getValue(sSrcNode+"["+vCurSelRow+"]/spcseqno"),
  425. model.getValue(sSrcNode+"["+vCurSelRow+"]/csteno"),
  426. model.getValue(sSrcNode+"["+vCurSelRow+"]/slidno"));
  427. //-----------------------------------------
  428. // 선택이 true/false가 되었을 경우의 action
  429. if(model.getValue(sSrcNode+"[" + vCurSelRow + "]/choi") == "true") {
  430. //----------------
  431. if (iFindNo > 0) {
  432. messageBox("대출/반납 목록에 존재하는 슬라이드 입니다. 추가 ", "E001");
  433. return false;
  434. } else {
  435. grd_lendrtnlist.addRow();
  436. vCurInsRow = grd_lendrtnlist.row;
  437. //-------------------------------------------
  438. // 선택된 대출/반납 항목값을 저장할 노느 생성
  439. model.makeValue(sDescNode+"["+vCurInsRow+"]/choi", "true");
  440. model.makeValue(sDescNode+"["+vCurInsRow+"]/instcd", model.getValue(sSrcNode+"["+vCurSelRow+"]/instcd"));
  441. model.makeValue(sDescNode+"["+vCurInsRow+"]/ptno", model.getValue(sSrcNode+"["+vCurSelRow+"]/ptno"));
  442. model.makeValue(sDescNode+"["+vCurInsRow+"]/dispptno", model.getValue(sSrcNode+"["+vCurSelRow+"]/dispptno"));
  443. model.makeValue(sDescNode+"["+vCurInsRow+"]/spcseqno", model.getValue(sSrcNode+"["+vCurSelRow+"]/spcseqno"));
  444. model.makeValue(sDescNode+"["+vCurInsRow+"]/csteno", model.getValue(sSrcNode+"["+vCurSelRow+"]/csteno"));
  445. model.makeValue(sDescNode+"["+vCurInsRow+"]/slidno", model.getValue(sSrcNode+"["+vCurSelRow+"]/slidno"));
  446. model.makeValue(sDescNode+"["+vCurInsRow+"]/slidcnts", model.getValue(sSrcNode+"["+vCurSelRow+"]/slidcnts"));
  447. model.makeValue(sDescNode+"["+vCurInsRow+"]/stats", "0");
  448. model.makeValue(sDescNode+"["+vCurInsRow+"]/pid", model.getValue(sSrcNode+"["+vCurSelRow+"]/pid"));
  449. model.makeValue(sDescNode+"["+vCurInsRow+"]/lenddd", model.getValue(sSrcNode+"["+vCurSelRow+"]/lenddd"));
  450. model.makeValue(sDescNode+"["+vCurInsRow+"]/lendno", model.getValue(sSrcNode+"["+vCurSelRow+"]/lendno"));
  451. model.makeValue(sDescNode+"["+vCurInsRow+"]/appdd", model.getValue(sSrcNode+"["+vCurSelRow+"]/appdd"));
  452. model.makeValue(sDescNode+"["+vCurInsRow+"]/appno", model.getValue(sSrcNode+"["+vCurSelRow+"]/appno"));
  453. //-------------------------------------------------------------------
  454. if (model.getValue("/root/main/detllendrtn/lendinfo/lenddd") == "" ||
  455. model.getValue("/root/main/detllendrtn/lendinfo/lenddd") == "-") {
  456. model.makeValue("/root/main/detllendrtn/lendinfo/lendflag", model.getValue("/root/init/lendflagcd"));
  457. model.makeValue("/root/main/detllendrtn/lendinfo/lenddept", model.getValue(sSrcNode+"["+vCurSelRow+"]/appdeptcd"));
  458. model.makeValue("/root/main/detllendrtn/lendinfo/lendchrg", model.getValue(sSrcNode+"["+vCurSelRow+"]/appid"));
  459. model.makeValue("/root/main/detllendrtn/lendinfo/cnsltdr", "");
  460. model.makeValue("/root/main/detllendrtn/lendinfo/lendplce", "");
  461. model.makeValue("/root/main/detllendrtn/lendinfo/lendresncd", "");
  462. model.makeValue("/root/main/detllendrtn/lendinfo/pid", model.getValue(sSrcNode+"["+vCurSelRow+"]/pid"));
  463. model.makeValue("/root/main/detllendrtn/lendinfo/patnm", model.getValue(sSrcNode+"["+vCurSelRow+"]/patnm"));
  464. model.makeValue("/root/main/detllendrtn/lendinfo/appnm", model.getValue(sSrcNode+"["+vCurSelRow+"]/patnm"));
  465. model.makeValue("/root/main/detllendrtn/lendinfo/rrgstno", model.getValue(sSrcNode+"["+vCurSelRow+"]/rrgstno"));
  466. model.makeValue("/root/main/detllendrtn/lendinfo/cntctelno", model.getValue(sSrcNode+"["+vCurSelRow+"]/mpphontel"));
  467. model.makeValue("/root/main/detllendrtn/lendinfo/patrela", "본인");
  468. model.makeValue("/root/main/detllendrtn/lendinfo/rtnschedd", sRtnDD);
  469. model.makeValue("/root/main/detllendrtn/lendinfo/acptnm", "");
  470. //------------------------------------------------------------------
  471. if (model.getValue("/root/main/detllendrtn/lendinfo/imgno") == "") {
  472. model.makeValue("/root/main/detllendrtn/lendinfo/imgno", "0");
  473. }
  474. }
  475. }
  476. }
  477. //------------------------
  478. grd_lendrtnlist.refresh();
  479. }
  480. //--------------
  481. model.refresh();
  482. }
  483. /* @group : 슬라이드 반납대출등록 화면
  484. * @ver : 2007.10.06 (CMCDEV-0001)
  485. * @by : 유동철(ACK)
  486. * @-----------------------------------
  487. * @type : function
  488. * @access : public
  489. * @desc : 기존 대출 슬라이드 검색 함수
  490. */
  491. function fExeFindRow(vCurSelRow, sDescNode, sInstCd, sPtNo, sSpcSeqNo, sCsteNo, sSlidNo) {
  492. var iFindNo = -1;
  493. var iMaxCnt = getNodesetCount(sDescNode);
  494. //--------------------------------------
  495. for (var iNo=1; iNo <= iMaxCnt; iNo++) {
  496. if (sInstCd == model.getValue(sDescNode+"["+iNo+"]/instcd")) {
  497. if (sPtNo == model.getValue(sDescNode+"["+iNo+"]/ptno")) {
  498. if (sSpcSeqNo == model.getValue(sDescNode+"["+iNo+"]/spcseqno")) {
  499. if (sCsteNo == model.getValue(sDescNode+"["+iNo+"]/csteno")) {
  500. if (sSlidNo == model.getValue(sDescNode+"["+iNo+"]/slidno")) {
  501. iFindNo = iNo;
  502. break;
  503. }
  504. }
  505. }
  506. }
  507. }
  508. }
  509. //-------------
  510. return iFindNo;
  511. }
  512. /* @group : 슬라이드 반납대출등록 화면
  513. * @ver : 2007.10.06 (CMCDEV-0001)
  514. * @by : 유동철(ACK)
  515. * @-----------------------------------
  516. * @type : function
  517. * @access : public
  518. * @desc : 대출/반납목록 선택 처리 함수
  519. */
  520. function fExeLendListChoi() {
  521. var sNode = "/root/main/lendrtn/lendrtnlist";
  522. if(grd_lendrtnlist.row > 0 && grd_lendrtnlist.isCell(event.target) && grd_lendrtnlist.row >= grd_lendrtnlist.fixedRows) {
  523. //-----------------------------
  524. if (grd_lendrtnlist.col == 0) {
  525. //------------------------------------
  526. // 작업구분이 대출(0)인 경우 노드 생성
  527. if (model.getValue(sNode+"["+grd_lendrtnlist.row+"]/lendno") == "0") {
  528. if (model.getValue(sNode+"["+grd_lendrtnlist.row+"]/choi") == "false") {
  529. grd_lendrtnlist.deleteRow(grd_lendrtnlist.row);
  530. }
  531. }
  532. }
  533. }
  534. }
  535. /* @group : 슬라이드 반납대출등록 화면
  536. * @ver : 2007.10.08 (CMCDEV-0001)
  537. * @by : 유동철(ACK)
  538. * @-----------------------------------
  539. * @type : function
  540. * @access : public
  541. * @desc : 대출구분 변경 처리 함수
  542. */
  543. function fExeLendFlagChoi() {
  544. if (model.getValue("/root/init/workflag") == "0") {
  545. if (model.getValue("/root/init/lendflagcd") == "0") {
  546. cap_ddnm.text = "신청일자 :";
  547. } else {
  548. cap_ddnm.text = "접수일자 :";
  549. }
  550. //btn_retn.disabled = true;
  551. btn_upd.disabled = true;
  552. btn_save.value = "대출";
  553. } else {
  554. cap_ddnm.text = "대출일자 :";
  555. //btn_retn.disabled = false;
  556. btn_upd.disabled = false;
  557. btn_save.value = "반납";
  558. }
  559. //------------------------------------------------------
  560. model.removeNodeset("/root/main/csteslid/csteslidlist");
  561. model.removeNodeset("/root/main/lendrtn/lendrtnlist");
  562. model.resetInstanceNode("/root/main/detllendrtn/lendinfo");
  563. fGetCsteSlidList();
  564. //--------------
  565. model.refresh();
  566. }
  567. /* @group : 슬라이드 반납대출등록 화면
  568. * @ver : 2007.10.08 (CMCDEV-0001)
  569. * @by : 유동철(ACK)
  570. * @-----------------------------------
  571. * @type : function
  572. * @access : public
  573. * @desc : 슬라이드 대출정보 저장 처리 함수
  574. */
  575. function fExeLendSave(pBizFlagCd) {
  576. var node = "";
  577. //test
  578. grd_plgyprcplist.clearStatus();
  579. for(var iRowNo = 1 ; iRowNo < grd_plgyprcplist.rows ; iRowNo++) {
  580. if(model.getValue("/root/main/plgyprcpinfo/plgyprcplist["+ iRowNo +"]/choi") == "true") {
  581. if(model.getValue("/root/main/plgyprcpinfo/plgyprcplist["+ iRowNo +"]/csteno") == "") {
  582. grd_plgyprcplist.clearStatus();
  583. messageBox("선택된 처방들 중 슬라이드가 지정되지 않은 처방이 존재합니다.("+ iRowNo +")", "E999");
  584. fGetCsteSlidList();
  585. return;
  586. }
  587. grd_plgyprcplist.addStatus(iRowNo, "update");
  588. //의뢰지정보저장
  589. //node = instance1.selectSingleNode("/root/main/plgyprcpinfo/plgyprcplist["+ iRowNo +"]/reqcnts/reqfrminfo");
  590. //model.setValue("/root/main/plgyprcpinfo/plgyprcplist["+ iRowNo +"]/reqcnts", node.xml, true);
  591. model.resetInstanceNode("/root/main/plgyprcpinfo/plgyprcplist["+ iRowNo +"]/rsltimg");
  592. }
  593. }
  594. //model.makeValue("/root/send/test", grd_plgyprcplist.getUpdateData("update"));
  595. //alert(model.getValue("/root/send/test"));
  596. //------------------------------------
  597. model.makeNode("/root/send/lendinfo");
  598. model.makeNode("/root/send/rtninfo");
  599. copyNodesetType("/root/send/lendinfo", "/root/main/detllendrtn/lendinfo");
  600. copyNodesetType("/root/send/rtninfo", "/root/main/detllendrtn/rtninfo");
  601. model.makeValue("/root/send/lendinfo/workflagcd", model.getValue("/root/init/workflag"));
  602. model.makeValue("/root/send/lendinfo/instcd", getUserInfo("dutplceinstcd"));
  603. model.makeValue("/root/send/lendinfo/lendflagcd", "L1");
  604. model.makeValue("/root/send/lendinfo/bizflagcd", pBizFlagCd);
  605. //model.makeValue("/root/send/csteslidlist", grd_lendrtnlist.getUpdateData());
  606. model.makeValue("/root/send/csteslidlist", grd_plgyprcplist.getUpdateData("update"));
  607. //-----------
  608. setAlertOn();
  609. if(submit("TXLPD00101")) {
  610. fGetCsteSlidList();
  611. }
  612. return;
  613. /*
  614. var bState = false;
  615. var sSrcNode = "/root/main/lendrtn/lendrtnlist";
  616. //--------------------------------
  617. model.removeNodeset("/root/send");
  618. //----------------------------
  619. grd_lendrtnlist.clearStatus();
  620. for (var iNo=1; iNo <= getNodesetCount(sSrcNode); iNo++) {
  621. if (model.getValue(sSrcNode+"["+iNo+"]/choi") == "true") {
  622. model.makeValue(sSrcNode+"["+iNo+"]/lendflagcd", model.getValue("/root/main/detllendrtn/lendinfo/lendflag"));
  623. grd_lendrtnlist.addStatus(iNo, "insert");
  624. bState = true;
  625. }
  626. }
  627. //------------
  628. if (!bState) {
  629. messageBox("대출/반납목록에 슬라이드가 존재하지 않습니다. 대출/반납을 등록 ", "E001");
  630. return false;
  631. }
  632. //------------------------------------------------------------------
  633. // if (model.getValue("/root/main/detllendrtn/lendinfo/imgno") == " ") {
  634. // model.setValue("/root/main/detllendrtn/lendinfo/imgno", '0');
  635. // }
  636. //------------------------------------
  637. model.makeNode("/root/send/lendinfo");
  638. model.makeNode("/root/send/rtninfo");
  639. copyNodesetType("/root/send/lendinfo", "/root/main/detllendrtn/lendinfo");
  640. copyNodesetType("/root/send/rtninfo", "/root/main/detllendrtn/rtninfo");
  641. model.makeValue("/root/send/lendinfo/workflagcd", model.getValue("/root/init/workflag"));
  642. model.makeValue("/root/send/lendinfo/instcd", getUserInfo("dutplceinstcd"));
  643. model.makeValue("/root/send/lendinfo/lendflagcd", "L1");
  644. model.makeValue("/root/send/lendinfo/bizflagcd", pBizFlagCd);
  645. model.makeValue("/root/send/csteslidlist", grd_lendrtnlist.getUpdateData());
  646. //-----------
  647. setAlertOn();
  648. if (submit("TXLPD00101")) {
  649. if (pBizFlagCd == "0") {
  650. model.removeNodeset("/root/main/csteslid/csteslidlist");
  651. model.removeNodeset("/root/main/lendrtn/lendrtnlist");
  652. model.resetInstanceNode("/root/main/detllendrtn/lendinfo");
  653. }
  654. }
  655. */
  656. //--------------
  657. model.refresh();
  658. }
  659. /* @group : 슬라이드 반납대출등록 화면
  660. * @ver : 2007.10.08 (CMCDEV-0001)
  661. * @by : 유동철(ACK)
  662. * @-----------------------------------
  663. * @type : function
  664. * @access : public
  665. * @desc : 대출 부서별 사용자 검색 처리 함수
  666. */
  667. function fExeLendDeptChoi() {
  668. var deptcd = model.getValue("/root/main/detllendrtn/lendinfo/lenddept");
  669. zsufGetUserInfoCombo(deptcd, "/root/init/userinfo/userlist", "_D");
  670. model.refresh();
  671. }
  672. /* @group : 슬라이드 반납대출등록 화면
  673. * @ver : 2007.10.09 (CMCDEV-0001)
  674. * @by : 유동철(ACK)
  675. * @-----------------------------------
  676. * @type : function
  677. * @access : public
  678. * @desc : 대출 확인증 출력 처리 함수
  679. */
  680. function fExeLendCnfmPrnt() {
  681. var sLendDD = "";
  682. var sRtnDD = "";
  683. var sListNode = "/root/main/plgyprcpinfo/plgyprcplist";
  684. var sInfoNode = "/root/main/detllendrtn/lendinfo";
  685. var sDescNode = "/root/temp/lendprnt/lendprntlist";
  686. //----------------------------------------------------------------------------------
  687. //if (model.getValue("/root/main/detllendrtn/lendinfo/lendflag") != "1") return false;
  688. //------------------------------------
  689. if (getNodesetCount(sListNode) <= 0) {
  690. messageBox("확인증에 표시될 내용이 없습니다! 확인증을 출력 ", "E001");
  691. return false;
  692. }
  693. //---------------------------
  694. model.makeNode("/root/temp");
  695. model.makeNode("/root/temp/lendprnt");
  696. model.makeNode("/root/temp/lendprnt/lendprntlist");
  697. //----------------------------------------------------
  698. copyNodesetType(sDescNode, sListNode+"[choi='true']");
  699. //--------------------------------------------
  700. sRtnDD = model.getValue(sInfoNode+"/rtnschedd");
  701. if (model.getValue(sInfoNode+"/lenddd") == "-" || model.getValue(sInfoNode+"/lenddd") == "") {
  702. sLendDD = getCurrentDate();
  703. } else {
  704. sLendDD = model.getValue(sInfoNode+"/lenddd");
  705. }
  706. //-----------------------------------------------------------------------------------------
  707. sRtnDD = sRtnDD.substr(0,4)+" 년 "+sRtnDD.substr(4,2)+" 월 "+sRtnDD.substr(6,2) + " 일";
  708. sLendDD = sLendDD.toDate().getDateFormat("YYYY/MM/DD");
  709. //---------------------------------------------------------
  710. for (var iNo=1; iNo <= getNodesetCount(sDescNode); iNo++) {
  711. model.makeValue(sDescNode+"["+iNo+"]/lenddd", sLendDD);
  712. model.makeValue(sDescNode+"["+iNo+"]/lendplce", model.getValue(sInfoNode+"/lendplce"));
  713. model.makeValue(sDescNode+"["+iNo+"]/lendresn", model.getValue("/root/init/resncd/resncdlist[resncd='"+model.getValue(sInfoNode+"/lendresncd")+"']/resncnts"));
  714. model.makeValue(sDescNode+"["+iNo+"]/pid", model.getValue(sInfoNode+"/pid"));
  715. model.makeValue(sDescNode+"["+iNo+"]/patnm", model.getValue(sInfoNode+"/patnm"));
  716. model.makeValue(sDescNode+"["+iNo+"]/appnm", model.getValue(sInfoNode+"/appnm"));
  717. model.makeValue(sDescNode+"["+iNo+"]/cntctelno", model.getValue(sInfoNode+"/cntctelno"));
  718. model.makeValue(sDescNode+"["+iNo+"]/patrela", model.getValue(sInfoNode+"/patrela"));
  719. model.makeValue(sDescNode+"["+iNo+"]/rtnschedd", sRtnDD);
  720. model.makeValue(sDescNode+"["+iNo+"]/lendrtncmt", model.getValue(sInfoNode+"/lendrtncmt"));
  721. }
  722. //-----------------------------------------------------------------------------------
  723. exeReportPreview("RPLPD00100", "XMLSTR", "", "", "false", "", "", "", "", "false", "", "");
  724. //exeReportPreview("RPLPP00200", "XMLSTR", "", "", "true", "", "", "", "", "false", "", "grp_prnt");
  725. }
  726. /* @group : 슬라이드 반납대출등록 화면
  727. * @ver : 2007.11.14 (CMCDEV-0001)
  728. * @by : 유동철(ACK)
  729. * @-----------------------------------
  730. * @type : function
  731. * @access : public
  732. * @desc : 신청자 이미지 정보 처리 함수
  733. */
  734. function fExeAppImgPopupCall() {
  735. var iFindNo = grd_plgyprcplist.findRow("true", 1, 1, false, false);
  736. if (iFindNo <= 0) {
  737. messageBox("처방목록에서 환자를 ", "C002");
  738. return false;
  739. }
  740. //---------------------------------------------------------------------------------------------------------
  741. setParameter("SPLPP01900_pid", model.getValue("/root/main/detllendrtn/lendinfo/pid"));
  742. setParameter("SPLPP01900_ptno", "-");
  743. setParameter("SPLPP01900_rgstdd", model.getValue("/root/main/detllendrtn/lendinfo/imgrgstdd"));
  744. // setParameter("SPLPP01900_rgstdd", model.getValue("/root/init/sysdt/sysdtinfo/sysdd"));
  745. setParameter("SPLPP01900_rgsttm", model.getValue("/root/main/detllendrtn/lendinfo/imgrgsttm"));
  746. setParameter("SPLPP01900_rgstrid", model.getValue("/root/main/detllendrtn/lendinfo/imgrgstrid"));
  747. setParameter("SPLPP01900_imgno", model.getValue("/root/main/detllendrtn/lendinfo/imgno"));
  748. setParameter("SPLPP01900_bizflagcd", "PD");
  749. setParameter("SPLPP01900_node", "/root/main/detllendrtn/lendinfo/rsltimg");
  750. //----------------------------------------------------
  751. modal("SPLPP02600", "", "", "", "SPLPP02600", "", "");
  752. //-------------
  753. fChangeImage();
  754. model.refresh();
  755. }
  756. /* @group : 슬라이드 반납대출등록 화면
  757. * @ver : 2007.11.14 (CMCDEV-0001)
  758. * @by : 유동철(ACK)
  759. * @-----------------------------------
  760. * @type : function
  761. * @access : public
  762. * @desc : 이미지 보여주기 처리 함수
  763. */
  764. function fChangeImage() {
  765. setImageRefInstance("/root/main/detllendrtn/lendinfo/rsltimg");
  766. img_source.refresh();
  767. }
  768. /* @group : 슬라이드 등록
  769. * @ver : 2007.11.14 (CMCDEV-0001)
  770. * @by : 유동철(ACK)
  771. * @-----------------------------------
  772. * @type : function
  773. * @access : public
  774. * @desc : 의뢰지에 슬라이드번호 등록할 슬라이드 선택.
  775. */
  776. function fSetSlideChoi() {
  777. //카세트/슬라이드목록 활성화
  778. grp_sldelist.visible = true;
  779. model.removeNodeset("/root/send");
  780. model.makeValue("/root/send/instcd", getUserInfo("dutplceinstcd"));
  781. model.makeValue("/root/send/ptno", model.getValue("/root/main/plgyprcpinfo/plgyprcplist["+ grd_plgyprcplist.row +"]/relaptno"));
  782. submit("TRLPD00706"); //슬라이드 목록조회
  783. }
  784. /* @group : 슬라이드 등록
  785. * @ver : 2007.11.14 (CMCDEV-0001)
  786. * @by : 유동철(ACK)
  787. * @-----------------------------------
  788. * @type : function
  789. * @access : public
  790. * @desc : 의뢰지에 슬라이드번호 등록.
  791. */
  792. function fSetSlideRgst() {
  793. var iFirstRow = grd_plgyprcplist.selectedRow(0);
  794. var iLasrRow = grd_plgyprcplist.selectedRow(grd_plgyprcplist.selectedRows-1)
  795. var sPtno = "";
  796. grd_plgyprcplist.clearStatus();
  797. for(var iRowNo = iLasrRow ; iRowNo >= iFirstRow ; iRowNo--) {
  798. if(iLasrRow == iRowNo) {
  799. sPtno = model.getValue("/root/main/plgyprcpinfo/plgyprcplist["+ iRowNo +"]/relaptno");
  800. }
  801. if(sPtno != model.getValue("/root/main/plgyprcpinfo/plgyprcplist["+ iRowNo +"]/relaptno")) {
  802. grd_plgyprcplist.clearStatus();
  803. messageBox("선택된 처방들 중 서로 다른 관련병리번호가 존재 합니다. ", "E999");
  804. fGetCsteSlidList();
  805. return;
  806. }
  807. grd_plgyprcplist.addStatus(iRowNo, "update");
  808. }
  809. model.makeValue("/root/send/blockcnts", model.getValue("/root/hidden/slideinfo/blockcnts"));
  810. model.makeValue("/root/send/slidecnts", model.getValue("/root/hidden/slideinfo/slidecnts"));
  811. model.makeValue("/root/send/spcacptseqno", model.getValue("/root/hidden/slideinfo/spcacptseqno"));
  812. model.makeValue("/root/send/csteno", model.getValue("/root/hidden/slideinfo/csteno"));
  813. model.makeValue("/root/send/slidno", model.getValue("/root/hidden/slideinfo/slidno"));
  814. model.makeValue("/root/send/csteslidlist", grd_plgyprcplist.getUpdateData("update"));
  815. if(submit("TXLPD00102")) {
  816. fGetCsteSlidList();
  817. }
  818. }
  819. ]]>
  820. </script>
  821. </xhtml:head>
  822. <xhtml:body guideline="1,0;2,0;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  823. <group id="grp_tle" style="left:0px; top:0px; width:1195px; height:13px; ">
  824. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:157px; height:14px; ">슬라이드 반납/대출등록</caption>
  825. </group>
  826. <group id="grp_biz" scroll="auto" style="left:0px; top:40; width:1195px; height:744px; ">
  827. <datagrid id="grd_plgyprcplist" nodeset="/root/main/plgyprcpinfo/plgyprcplist" class="datagrid2" caption="선&#xA;택^환자명^병리번호^관련병리번호^블록^슬라&#xA;이드^육안&#xA;검사의^검사명^검체명^진료과^처방의^수납&#xA;구분^처방일자^접수일자^판독일자^판독의^rrgstno1^rrgstno2^sex^brthdd^orddd^workflagcd^orddrid^reqcnts^pid^spcacptseqno^csteno^slidno^reqfrmno^ptno^instcd^relaptno^prcpdd^prcpno^rrgstno^mpphontel^lenddd^lendno^slidseqno^lendtm^lendflagcd^lenddeptcd^lendid^cnstdrid^lendplce^lendresncd^appnm^lendrrgstno^cntctelno^patrela^rtnschedd^rtnflagcd" colsep="^" colwidth="26, 57, 85, 85, 45, 45, 55, 252, 124, 49, 55, 51, 80, 80, 80, 55, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:0px; top:75px; width:800px; height:665px; ">
  828. <col checkvalue="true,false" ref="choi" type="checkbox"/>
  829. <col ref="patnm"/>
  830. <col ref="dispptno"/>
  831. <col ref="disprelaptno"/>
  832. <col ref="blockcnts"/>
  833. <col ref="slidecnts"/>
  834. <col ref="grosdrnm"/>
  835. <col ref="testnm"/>
  836. <col ref="spcnm"/>
  837. <col ref="orddeptnm"/>
  838. <col ref="orddrnm"/>
  839. <col ref="rcptflag"/>
  840. <col ref="prcpdd" format="yyyy-mm-dd"/>
  841. <col ref="acptdd" format="yyyy-mm-dd"/>
  842. <col ref="readdd" format="yyyy-mm-dd"/>
  843. <col ref="readdrnm"/>
  844. <col ref="rrgstno1" visibility="hidden"/>
  845. <col ref="rrgstno2" visibility="hidden"/>
  846. <col ref="sex" visibility="hidden"/>
  847. <col ref="brthdd" visibility="hidden"/>
  848. <col ref="orddd" visibility="hidden"/>
  849. <col ref="workflagcd" visibility="hidden"/>
  850. <col ref="orddrid" visibility="hidden"/>
  851. <col ref="reqcnts" visibility="hidden"/>
  852. <col ref="pid" visibility="hidden"/>
  853. <col ref="spcacptseqno" visibility="hidden"/>
  854. <col ref="csteno" visibility="hidden"/>
  855. <col ref="slidno" visibility="hidden"/>
  856. <col ref="reqfrmno" visibility="hidden"/>
  857. <col ref="ptno" visibility="hidden"/>
  858. <col ref="instcd" visibility="hidden"/>
  859. <col ref="relaptno" visibility="hidden"/>
  860. <col ref="prcpdd" visibility="hidden"/>
  861. <col ref="prcpno" visibility="hidden"/>
  862. <col ref="rrgstno" visibility="hidden"/>
  863. <col ref="mpphontel" visibility="hidden"/>
  864. <col ref="lenddd" visibility="hidden"/>
  865. <col ref="lendno" visibility="hidden"/>
  866. <col ref="slidseqno" visibility="hidden"/>
  867. <col ref="lendtm" visibility="hidden"/>
  868. <col ref="lendflagcd" visibility="hidden"/>
  869. <col ref="lenddeptcd" visibility="hidden"/>
  870. <col ref="lendid" visibility="hidden"/>
  871. <col ref="cnstdrid" visibility="hidden"/>
  872. <col ref="lendplce" visibility="hidden"/>
  873. <col ref="lendresncd" visibility="hidden"/>
  874. <col ref="appnm" visibility="hidden"/>
  875. <col ref="lendrrgstno" visibility="hidden"/>
  876. <col ref="cntctelno" visibility="hidden"/>
  877. <col ref="patrela" visibility="hidden"/>
  878. <col ref="rtnschedd" visibility="hidden"/>
  879. <col ref="rtnflagcd" visibility="hidden"/>
  880. <script type="javascript" ev:event="onaftersort">
  881. <![CDATA[
  882. grd_plgyprcplist.gridToInstance();
  883. ]]>
  884. </script>
  885. <script type="javascript" ev:event="onclick">
  886. <![CDATA[
  887. grp_sldelist.visible = false;
  888. var sSrcNode = "/root/main/plgyprcpinfo/plgyprcplist";
  889. var sRtnDD = getCurrentDate();
  890. //---------------------------------------------------------------------------------------------------------------------------
  891. if(grd_plgyprcplist.row > 0 && grd_plgyprcplist.isCell(event.target) && grd_plgyprcplist.row >= grd_plgyprcplist.fixedRows) {
  892. if (model.getValue(sSrcNode+"["+grd_plgyprcplist.row+"]/choi") == "true") {
  893. if (model.getValue("/root/init/workflag") == "0") {
  894. model.makeValue("/root/main/detllendrtn/lendinfo/lendflag", model.getValue("/root/init/lendflagcd"));
  895. model.makeValue("/root/main/detllendrtn/lendinfo/lenddept", model.getValue(sSrcNode+"["+grd_plgyprcplist.row+"]/appdeptcd"));
  896. model.makeValue("/root/main/detllendrtn/lendinfo/lendchrg", model.getValue(sSrcNode+"["+grd_plgyprcplist.row+"]/appid"));
  897. model.makeValue("/root/main/detllendrtn/lendinfo/cnsltdr", "");
  898. model.makeValue("/root/main/detllendrtn/lendinfo/lendplce", "");
  899. model.makeValue("/root/main/detllendrtn/lendinfo/lendresncd", "");
  900. model.makeValue("/root/main/detllendrtn/lendinfo/pid", model.getValue(sSrcNode+"["+grd_plgyprcplist.row+"]/pid"));
  901. model.makeValue("/root/main/detllendrtn/lendinfo/patnm", model.getValue(sSrcNode+"["+grd_plgyprcplist.row+"]/pathngnm"));
  902. model.makeValue("/root/main/detllendrtn/lendinfo/appnm", model.getValue(sSrcNode+"["+grd_plgyprcplist.row+"]/pathngnm"));
  903. model.makeValue("/root/main/detllendrtn/lendinfo/rrgstno", model.getValue(sSrcNode+"["+grd_plgyprcplist.row+"]/rrgstno"));
  904. model.makeValue("/root/main/detllendrtn/lendinfo/cntctelno", model.getValue(sSrcNode+"["+grd_plgyprcplist.row+"]/mpphontel"));
  905. model.makeValue("/root/main/detllendrtn/lendinfo/patrela", "본인");
  906. model.makeValue("/root/main/detllendrtn/lendinfo/rtnschedd", sRtnDD);
  907. model.makeValue("/root/main/detllendrtn/lendinfo/acptnm", "");
  908. model.makeValue("/root/main/detllendrtn/lendinfo/ptno", model.getValue(sSrcNode+"["+grd_plgyprcplist.row+"]/ptno"));
  909. } else {
  910. //서로다른 대출내역이 선택되었는지 체크
  911. if(model.getValue("/root/main/detllendrtn/lendinfo/lenddd") != "" && model.getValue("/root/main/detllendrtn/lendinfo/lenddd") != "-") {
  912. if(model.getValue(sSrcNode+"["+grd_plgyprcplist.row+"]/lenddd") != model.getValue("/root/main/detllendrtn/lendinfo/lenddd")
  913. || model.getValue(sSrcNode+"["+grd_plgyprcplist.row+"]/lendno") != model.getValue("/root/main/detllendrtn/lendinfo/lendno")) {
  914. messageBox("다른 대출건을 선택하셨습니다!", "I999");
  915. model.setValue(sSrcNode+"["+grd_plgyprcplist.row+"]/choi", "false");
  916. return false;
  917. }
  918. }
  919. model.resetInstanceNode("/root/main/detllendrtn/lendinfo");
  920. model.makeValue("/root/main/detllendrtn/lendinfo/lenddd", model.getValue(sSrcNode+"["+grd_plgyprcplist.row+"]/lenddd"));
  921. model.makeValue("/root/main/detllendrtn/lendinfo/lendno", model.getValue(sSrcNode+"["+grd_plgyprcplist.row+"]/lendno"));
  922. model.makeValue("/root/main/detllendrtn/lendinfo/lendtm", model.getValue(sSrcNode+"["+grd_plgyprcplist.row+"]/lendtm"));
  923. model.makeValue("/root/main/detllendrtn/lendinfo/lendflag", model.getValue(sSrcNode+"["+grd_plgyprcplist.row+"]/lendflagcd"));
  924. model.makeValue("/root/main/detllendrtn/lendinfo/lenddept", model.getValue(sSrcNode+"["+grd_plgyprcplist.row+"]/lenddeptcd"));
  925. model.makeValue("/root/main/detllendrtn/lendinfo/lendchrg", model.getValue(sSrcNode+"["+grd_plgyprcplist.row+"]/lendid"));
  926. model.makeValue("/root/main/detllendrtn/lendinfo/cnsltdr", model.getValue(sSrcNode+"["+grd_plgyprcplist.row+"]/cnstdrid"));
  927. model.makeValue("/root/main/detllendrtn/lendinfo/lendplce", model.getValue(sSrcNode+"["+grd_plgyprcplist.row+"]/lendplce"));
  928. model.makeValue("/root/main/detllendrtn/lendinfo/lendresncd", model.getValue(sSrcNode+"["+grd_plgyprcplist.row+"]/lendresncd"));
  929. model.makeValue("/root/main/detllendrtn/lendinfo/rrgstno", model.getValue(sSrcNode+"["+grd_plgyprcplist.row+"]/lendrrgstno"));
  930. model.makeValue("/root/main/detllendrtn/lendinfo/cntctelno", model.getValue(sSrcNode+"["+grd_plgyprcplist.row+"]/cntctelno"));
  931. model.makeValue("/root/main/detllendrtn/lendinfo/patrela", model.getValue(sSrcNode+"["+grd_plgyprcplist.row+"]/patrela"));
  932. model.makeValue("/root/main/detllendrtn/lendinfo/rtnschedd", model.getValue(sSrcNode+"["+grd_plgyprcplist.row+"]/rtnschedd"));
  933. model.makeValue("/root/main/detllendrtn/lendinfo/appnm", model.getValue(sSrcNode+"["+grd_plgyprcplist.row+"]/appnm"));
  934. model.makeValue("/root/main/detllendrtn/lendinfo/pid", model.getValue(sSrcNode+"["+grd_plgyprcplist.row+"]/pid"));
  935. model.makeValue("/root/main/detllendrtn/lendinfo/patnm", model.getValue(sSrcNode+"["+grd_plgyprcplist.row+"]/pathngnm"));
  936. model.makeValue("/root/main/detllendrtn/lendinfo/ptno", model.getValue(sSrcNode+"["+grd_plgyprcplist.row+"]/ptno"));
  937. model.makeValue("/root/main/detllendrtn/lendinfo/imgrgstdd", model.getValue(sSrcNode+"["+grd_plgyprcplist.row+"]/imgrgstdd"));
  938. model.makeValue("/root/main/detllendrtn/lendinfo/imgno", model.getValue(sSrcNode+"["+grd_plgyprcplist.row+"]/imgno"));
  939. model.makeValue("/root/main/detllendrtn/lendinfo/imgseqno", model.getValue(sSrcNode+"["+grd_plgyprcplist.row+"]/imgseqno"));
  940. model.makeValue("/root/main/detllendrtn/lendinfo/rsltimg", model.getValue(sSrcNode+"["+grd_plgyprcplist.row+"]/rsltimg"));
  941. model.makeValue("/root/main/detllendrtn/lendinfo/rtnrregno", model.getValue(sSrcNode+"["+grd_plgyprcplist.row+"]/rtnrrgstno"));
  942. model.makeValue("/root/main/detllendrtn/lendinfo/rtncntctelno", model.getValue(sSrcNode+"["+grd_plgyprcplist.row+"]/rtncntctelno"));
  943. model.makeValue("/root/main/detllendrtn/lendinfo/rtnpatrela", model.getValue(sSrcNode+"["+grd_plgyprcplist.row+"]/rtnpatrela"));
  944. model.makeValue("/root/main/detllendrtn/lendinfo/lendrtncmt", model.getValue(sSrcNode+"["+grd_plgyprcplist.row+"]/lendrtncmt"));
  945. model.makeValue("/root/main/detllendrtn/lendinfo/rtnnm", model.getValue(sSrcNode+"["+grd_plgyprcplist.row+"]/rtnnm"));
  946. model.makeValue("/root/main/detllendrtn/lendinfo/rtndd", model.getValue(sSrcNode+"["+grd_plgyprcplist.row+"]/rtndd"));
  947. model.makeValue("/root/main/detllendrtn/lendinfo/rtntm", model.getValue(sSrcNode+"["+grd_plgyprcplist.row+"]/rtntm"));
  948. fChangeImage();
  949. //서로 같은 대출 내역은 자동으로 선택하여 준다.
  950. for(var iRowNo = 1 ; iRowNo < grd_plgyprcplist.rows ; iRowNo++) {
  951. if(model.getValue(sSrcNode+"["+iRowNo+"]/lenddd") == model.getValue("/root/main/detllendrtn/lendinfo/lenddd")
  952. && model.getValue(sSrcNode+"["+iRowNo+"]/lendno") == model.getValue("/root/main/detllendrtn/lendinfo/lendno")) {
  953. model.setValue("/root/main/plgyprcpinfo/plgyprcplist["+ iRowNo +"]/choi", "true");
  954. }
  955. }
  956. }
  957. } else {
  958. var iChk = grd_plgyprcplist.findRow("true", 1, 1, true, true);
  959. if(iChk == -1) {
  960. model.resetInstanceNode("/root/main/detllendrtn/lendinfo");
  961. }
  962. }
  963. }
  964. model.refresh();
  965. ]]>
  966. </script>
  967. <script type="javascript" ev:event="onmousedown">
  968. <![CDATA[
  969. setPopupMenu("grd_plgyprcplist", false, "/root/init/popupmenu/item", "name", "func");
  970. ]]>
  971. </script>
  972. <script type="javascript" ev:event="DOMFocusOut">
  973. <![CDATA[
  974. initPopupMenu();
  975. ]]>
  976. </script>
  977. </datagrid>
  978. <group id="grp_search" style="left:0px; top:10px; width:1194px; height:36px; vertical-align:top; ">
  979. <shape id="roundrect1" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1193px; height:36px; background-color:#fffbf2; border-color:#ffd799; "/>
  980. <input id="input1" ref="/root/init/fromdd" class="input_search" navindex="3" inputtype="date" style="left:533px; top:9px; width:100px; height:19px; "/>
  981. <caption id="caption3" class="search_name" style="left:15px; top:10px; width:90px; height:17px; ">작업구분 :</caption>
  982. <line id="line13" class="line_4" style="x1:1107px; y1:7px; x2:1107px; y2:29px; "/>
  983. <input id="input25" ref="/root/init/todd" class="input_search" navindex="4" inputtype="date" style="left:654px; top:9px; width:100px; height:19px; "/>
  984. <caption id="caption34" class="search_no_b" style="left:638px; top:10px; width:12px; height:17px; ">~</caption>
  985. <caption id="caption4" class="search_name" style="left:804px; top:10px; width:90px; height:17px; ">검색조건 :</caption>
  986. <button id="btn_sea" class="btn1_letter2" navindex="7" style="left:1123px; top:7px; width:56px; height:22px; ">
  987. <caption>조회</caption>
  988. <script type="javascript" ev:event="DOMActivate">
  989. <![CDATA[
  990. fGetCsteSlidList();
  991. ]]>
  992. </script>
  993. </button>
  994. <input id="ipt_refval" ref="/root/init/refval" class="input_s_essential" navindex="6" style="left:992px; top:9px; width:100px; height:19px; ">
  995. <script type="javascript" ev:event="onkeypress">
  996. <![CDATA[
  997. if(event.keyCode == 13) {
  998. model.setValue("/root/init/refval", ipt_refval.currentText);
  999. ipt_refval.refresh();
  1000. //--------------------------- 조회 호출
  1001. fGetCsteSlidList();
  1002. }
  1003. ]]>
  1004. </script>
  1005. </input>
  1006. <caption id="caption35" class="search_name" style="left:224px; top:11px; width:90px; height:17px; ">대출구분 :</caption>
  1007. <select1 id="cmb_workflagcd" ref="/root/init/workflag" navindex="1" appearance="minimal" style="left:106px; top:9px; width:75px; height:19px; ">
  1008. <choices>
  1009. <item>
  1010. <label>대출</label>
  1011. <value>0</value>
  1012. </item>
  1013. <item>
  1014. <label>반납</label>
  1015. <value>1</value>
  1016. </item>
  1017. </choices>
  1018. <script type="javascript" ev:event="xforms-value-changed">
  1019. <![CDATA[
  1020. fExeLendFlagChoi();
  1021. ]]>
  1022. </script>
  1023. </select1>
  1024. <select1 id="cmb_lendflagcd" ref="/root/init/lendflagcd" navindex="2" appearance="minimal" style="left:315px; top:10px; width:75px; height:19px; ">
  1025. <choices>
  1026. <item>
  1027. <label>원내</label>
  1028. <value>0</value>
  1029. </item>
  1030. <item>
  1031. <label>원외</label>
  1032. <value>1</value>
  1033. </item>
  1034. </choices>
  1035. <script type="javascript" ev:event="xforms-value-changed">
  1036. <![CDATA[
  1037. fExeLendFlagChoi();
  1038. ]]>
  1039. </script>
  1040. </select1>
  1041. <select1 id="cmb_refflagcd" ref="/root/init/refflag" navindex="5" appearance="minimal" style="left:895px; top:9px; width:94px; height:19px; ">
  1042. <choices>
  1043. <item>
  1044. <label>병리번호</label>
  1045. <value>0</value>
  1046. </item>
  1047. <item>
  1048. <label>등록번호</label>
  1049. <value>1</value>
  1050. </item>
  1051. </choices>
  1052. </select1>
  1053. <caption id="cap_ddnm" class="search_name" style="left:440px; top:10px; width:90px; height:17px; ">접수일자 :</caption>
  1054. <select id="checkbox1" ref="/root/init/acptddflag" overflow="visible" appearance="full" style="left:422px; top:11px; width:20px; height:20px; border-style:none; ">
  1055. <choices>
  1056. <item>
  1057. <label/>
  1058. <value>1</value>
  1059. </item>
  1060. </choices>
  1061. </select>
  1062. </group>
  1063. <datagrid id="grd_lendrtnlist" nodeset="/root/main/lendrtn/lendrtnlist" class="datagrid2" visibility="hidden" caption="선&#xA;택^instcd^ptno^병리번호^순번^Cassette no^Slide no^슬라이드^상태^caption1^lenddd^lendno^appdd^appno^lendflagcd" colsep="^" colwidth="40, 0, 0, 80, 0, 0, 0, 182, 73, 0, 0, 0, 0, 0, 0" mergecellsfixedrows="bycolrec" rowsep="|" navindex="9" style="left:405px; top:550px; width:125px; height:105px; ">
  1064. <col ref="choi" type="checkbox"/>
  1065. <col ref="instcd"/>
  1066. <col ref="ptno"/>
  1067. <col ref="dispptno" type="output"/>
  1068. <col ref="spcseqno" type="output"/>
  1069. <col ref="csteno" type="output"/>
  1070. <col ref="slidno" type="output"/>
  1071. <col ref="slidcnts" type="output"/>
  1072. <col ref="stats" type="combo">
  1073. <choices>
  1074. <item>
  1075. <label>정상</label>
  1076. <value>0</value>
  1077. </item>
  1078. <item>
  1079. <label>파손</label>
  1080. <value>1</value>
  1081. </item>
  1082. </choices>
  1083. </col>
  1084. <col ref="pid"/>
  1085. <col ref="lenddd"/>
  1086. <col ref="lendno"/>
  1087. <col ref="appdd"/>
  1088. <col ref="appno"/>
  1089. <col ref="lendflagcd"/>
  1090. <script type="javascript" ev:event="onclick">
  1091. <![CDATA[
  1092. fExeLendListChoi();
  1093. ]]>
  1094. </script>
  1095. </datagrid>
  1096. <caption id="caption1" class="tit_2" visibility="hidden" style="left:410px; top:530px; width:300px; height:13px; ">대출/반납 List</caption>
  1097. <caption id="caption32" class="tit_2" visibility="hidden" style="left:4px; top:530px; width:200px; height:13px; ">Cassette/Slide List</caption>
  1098. <datagrid id="grd_csteslidlist" nodeset="/root/main/csteslid/csteslidlist" class="datagrid2" visibility="hidden" caption="선&#xA;택^instcd^ptno^병리번호^spcseqno^Cassette^Slide^등록번호^환자명^슬라이드^appdeptcd^appid^rrgstno^psptno^hometel^mpphontel^lenddd^lendno" colsep="^" colwidth="40, 0, 0, 80, 0, 0, 0, 80, 80, 100, 0, 0, 0, 0, 0, 0, 0, 0" ellipsis="true" mergecellsfixedrows="bycolrec" rowheight="32" rowsep="|" navindex="8" style="left:4px; top:550px; width:172px; height:125px; ">
  1099. <col ref="choi" type="checkbox"/>
  1100. <col ref="instcd"/>
  1101. <col ref="ptno" type="output"/>
  1102. <col ref="dispptno"/>
  1103. <col ref="spcseqno"/>
  1104. <col ref="csteno" type="output"/>
  1105. <col ref="slidno" type="output"/>
  1106. <col ref="pid" type="output"/>
  1107. <col ref="patnm" type="output"/>
  1108. <col ref="slidcnts" type="output"/>
  1109. <col ref="appdeptcd"/>
  1110. <col ref="appid"/>
  1111. <col ref="rrgstno"/>
  1112. <col ref="psptno"/>
  1113. <col ref="hometel"/>
  1114. <col ref="mpphontel"/>
  1115. <col ref="lenddd"/>
  1116. <col ref="lendno"/>
  1117. <script type="javascript" ev:event="onclick">
  1118. <![CDATA[
  1119. fExeCsteSlidChoi();
  1120. ]]>
  1121. </script>
  1122. </datagrid>
  1123. <group id="grp_lend" style="left:805px; top:56px; width:390px; height:688px; ">
  1124. <caption id="caption5" class="tit_2" style="left:5px; top:0px; width:300px; height:14px; ">대출/반입 정보</caption>
  1125. <line id="line2" class="line_1" style="x1:0px; y1:15px; x2:390px; y2:15px; "/>
  1126. <caption id="caption7" class="tit_2" style="left:5px; top:393px; width:300px; height:13px; ">반납/반환 정보</caption>
  1127. <line id="line3" class="line_1" style="x1:0px; y1:408px; x2:390px; y2:408px; "/>
  1128. <caption id="caption23" class="cell_1" style="left:198px; top:21px; width:90px; height:23px; text-align:left; vertical-align:middle; padding-left:10; ">대출시간</caption>
  1129. <line id="line4" class="line_2" style="x1:0px; y1:43px; x2:390px; y2:43px; "/>
  1130. <line id="line5" class="line_2" style="x1:0px; y1:67px; x2:390px; y2:67px; "/>
  1131. <line id="line6" class="line_2" style="x1:0px; y1:91px; x2:390px; y2:91px; "/>
  1132. <line id="line7" class="line_2" style="x1:0px; y1:115px; x2:390px; y2:115px; "/>
  1133. <line id="line8" class="line_2" style="x1:0px; y1:139px; x2:390px; y2:139px; "/>
  1134. <line id="line10" class="line_2" style="x1:0px; y1:163px; x2:390px; y2:163px; "/>
  1135. <line id="line11" class="line_2" style="x1:0px; y1:187px; x2:390px; y2:187px; "/>
  1136. <caption id="caption15" class="cell_1" style="left:198px; top:189px; width:90px; height:23px; text-align:left; vertical-align:middle; padding-left:5px; ">환자명</caption>
  1137. <line id="line14" class="line_2" style="x1:0px; y1:263px; x2:390px; y2:263px; "/>
  1138. <line id="line15" class="line_2" style="x1:0px; y1:287px; x2:390px; y2:287px; "/>
  1139. <line id="line16" class="line_2" style="x1:0px; y1:311px; x2:390px; y2:311px; "/>
  1140. <line id="line17" class="line_2" style="x1:0px; y1:335px; x2:390px; y2:335px; "/>
  1141. <line id="line18" class="line_2" style="x1:0px; y1:359px; x2:390px; y2:359px; "/>
  1142. <caption id="caption24" class="tit_2" style="left:5px; top:221px; width:110px; height:13px; ">신청자 정보</caption>
  1143. <line id="line20" class="line_1" style="x1:0px; y1:236px; x2:390px; y2:236px; "/>
  1144. <line id="line21" class="line_2" style="x1:0px; y1:435px; x2:390px; y2:435px; "/>
  1145. <line id="line22" class="line_2" style="x1:0px; y1:459px; x2:390px; y2:459px; "/>
  1146. <line id="line23" class="line_2" style="x1:0px; y1:483px; x2:390px; y2:483px; "/>
  1147. <line id="line24" class="line_2" style="x1:0px; y1:507px; x2:390px; y2:507px; "/>
  1148. <line id="line25" class="line_2" style="x1:0px; y1:531px; x2:390px; y2:531px; "/>
  1149. <line id="line26" class="line_3" style="x1:0px; y1:687px; x2:390px; y2:687px; "/>
  1150. <line id="line27" class="line_2" style="x1:0px; y1:555px; x2:390px; y2:555px; "/>
  1151. <caption id="caption33" class="cell_1" style="left:198px; top:509px; width:90px; height:23px; text-align:left; vertical-align:middle; padding-left:5px; ">반납시간</caption>
  1152. <output id="opt_lenddd" ref="/root/main/detllendrtn/lendinfo/lenddd" class="output_fix" navindex="10" inputtype="date" showmask="true" appearance="output" mask="exclude" style="left:95px; top:22px; width:100px; height:19px; text-align:center; vertical-align:middle; "/>
  1153. <output id="opt_lendtm" ref="/root/main/detllendrtn/lendinfo/lendtm" class="output_fix" navindex="11" format="hh:nn:ss" showmask="true" appearance="output" mask="exclude" style="left:290px; top:22px; width:100px; height:19px; text-align:center; vertical-align:middle; "/>
  1154. <select1 id="rdo_lendflag" ref="/root/main/detllendrtn/lendinfo/lendflag" class="radio_search" navindex="12" appearance="full" cellspacing="22" cols="5" overflow="visible" style="left:95px; top:48px; width:267px; height:13px; border-style:none; ">
  1155. <choices>
  1156. <item>
  1157. <label>원내</label>
  1158. <value>0</value>
  1159. </item>
  1160. <item>
  1161. <label>원본</label>
  1162. <value>1</value>
  1163. </item>
  1164. <item>
  1165. <label>자문의</label>
  1166. <value>2</value>
  1167. </item>
  1168. <item>
  1169. <label>재제작</label>
  1170. <value>3</value>
  1171. </item>
  1172. </choices>
  1173. </select1>
  1174. <select1 id="cmb_lenddept" ref="/root/main/detllendrtn/lendinfo/lenddept" class="combo_default" navindex="13" appearance="minimal" style="left:95px; top:70px; width:295px; height:19px; ">
  1175. <choices>
  1176. <itemset nodeset="/root/init/orddeptlist/dept">
  1177. <label ref="depthngnm"/>
  1178. <value ref="deptcd"/>
  1179. </itemset>
  1180. </choices>
  1181. <script type="javascript" ev:event="xforms-value-changed">
  1182. <![CDATA[
  1183. fExeLendDeptChoi();
  1184. ]]>
  1185. </script>
  1186. </select1>
  1187. <input id="ipt_lendplce" ref="/root/main/detllendrtn/lendinfo/lendplce" class="input_default" navindex="16" mask="exclude" showmask="true" style="left:95px; top:142px; width:295px; height:19px; vertical-align:middle; "/>
  1188. <select1 id="cmb_lendrsn" ref="/root/main/detllendrtn/lendinfo/lendresncd" class="combo_default" navindex="17" appearance="minimal" style="left:95px; top:166px; width:295px; height:19px; ">
  1189. <choices>
  1190. <itemset nodeset="/root/init/resncd/resncdlist">
  1191. <label ref="resncnts"/>
  1192. <value ref="resncd"/>
  1193. </itemset>
  1194. </choices>
  1195. </select1>
  1196. <input id="ipt_pid" ref="/root/main/detllendrtn/lendinfo/pid" class="input_default" navindex="18" mask="exclude" showmask="true" style="left:95px; top:190px; width:100px; height:19px; text-align:center; vertical-align:middle; "/>
  1197. <input id="ipt_patnm" ref="/root/main/detllendrtn/lendinfo/patnm" class="input_default" navindex="19" maxlength="30" style="left:290px; top:190px; width:100px; height:19px; text-align:center; vertical-align:middle; "/>
  1198. <input id="ipt_lend_rregno" ref="/root/main/detllendrtn/lendinfo/rrgstno" accesskey="ipt_rregno" class="input_default" navindex="21" style="left:95px; top:266px; width:295px; height:19px; text-align:center; vertical-align:middle; "/>
  1199. <input id="ipt_lend_appnm" ref="/root/main/detllendrtn/lendinfo/appnm" class="input_default" navindex="20" maxlength="30" style="left:95px; top:242px; width:295px; height:19px; text-align:center; vertical-align:middle; "/>
  1200. <input id="ipt_lend_cntctelno" ref="/root/main/detllendrtn/lendinfo/cntctelno" class="input_default" navindex="22" style="left:95px; top:290px; width:295px; height:19px; text-align:center; vertical-align:middle; "/>
  1201. <input id="ipt_lend_patrela" ref="/root/main/detllendrtn/lendinfo/patrela" class="input_default" navindex="23" style="left:95px; top:314px; width:295px; height:19px; text-align:center; vertical-align:middle; "/>
  1202. <input id="ipt_lend_rtnfcstdd" ref="/root/main/detllendrtn/lendinfo/rtnschedd" class="input_default" navindex="24" format="yyyy-mm-dd" mask="exclude" showmask="true" style="left:95px; top:338px; width:295px; height:19px; text-align:center; vertical-align:middle; "/>
  1203. <output id="opt_lend_acptnm" ref="/root/main/detllendrtn/lendinfo/acptnm" class="output_fix" navindex="25" format="hh:nn:ss" showmask="true" appearance="output" mask="exclude" style="left:95px; top:362px; width:295px; height:19px; text-align:center; vertical-align:middle; "/>
  1204. <input id="ipt_rtn_rtnnm" ref="/root/main/detllendrtn/lendinfo/rtnnm" class="input_default" navindex="26" style="left:95px; top:414px; width:295px; height:19px; text-align:center; vertical-align:middle; "/>
  1205. <input id="ipt_rtn_rregno" ref="/root/main/detllendrtn/lendinfo/rtnrregno" class="input_default" navindex="27" style="left:95px; top:438px; width:295px; height:19px; text-align:center; vertical-align:middle; "/>
  1206. <input id="ipt_rtn_cntctelno" ref="/root/main/detllendrtn/lendinfo/rtncntctelno" class="input_default" navindex="28" style="left:95px; top:462px; width:295px; height:19px; text-align:center; vertical-align:middle; "/>
  1207. <input id="ipt_rtn_patrela" ref="/root/main/detllendrtn/lendinfo/rtnpatrela" class="input_default" navindex="29" style="left:95px; top:486px; width:295px; height:19px; text-align:center; vertical-align:middle; "/>
  1208. <output id="opt_rtn_rtndd" ref="/root/main/detllendrtn/lendinfo/rtndd" class="output_fix" navindex="30" format="yyyy-mm-dd" showmask="true" appearance="output" mask="exclude" style="left:95px; top:510px; width:100px; height:19px; text-align:center; vertical-align:middle; "/>
  1209. <output id="opt_rtn_rtntm" ref="/root/main/detllendrtn/lendinfo/rtntm" class="output_fix" navindex="31" format="hh:nn:ss" showmask="true" appearance="output" mask="exclude" style="left:290px; top:510px; width:100px; height:19px; text-align:center; vertical-align:middle; "/>
  1210. <output id="opt_rtn_acptnm" ref="/root/main/detllendrtn/lendinfo/rtnacptnm" class="output_fix" navindex="32" showmask="true" appearance="output" mask="exclude" style="left:95px; top:534px; width:295px; height:19px; text-align:center; vertical-align:middle; "/>
  1211. <textarea id="tar_rtn_rem" ref="/root/main/detllendrtn/lendinfo/lendrtncmt" navindex="33" style="left:95px; top:558px; width:295px; height:127px; "/>
  1212. <caption id="caption10" class="cell_1" style="left:0px; top:93px; width:92px; height:23px; text-align:left; vertical-align:middle; padding-left:5px; ">대출자</caption>
  1213. <caption id="caption11" class="cell_1" style="left:0px; top:117px; width:92px; height:23px; text-align:left; vertical-align:middle; padding-left:5px; ">자문의</caption>
  1214. <caption id="caption12" class="cell_1" style="left:0px; top:141px; width:92px; height:23px; text-align:left; vertical-align:middle; padding-left:5px; ">대출 의뢰과</caption>
  1215. <caption id="caption13" class="cell_1" style="left:0px; top:165px; width:92px; height:23px; text-align:left; vertical-align:middle; padding-left:5px; ">대출사유</caption>
  1216. <caption id="caption14" class="cell_1" style="left:0px; top:21px; width:92px; height:23px; text-align:left; vertical-align:middle; padding-left:10; ">대출일자</caption>
  1217. <caption id="caption16" class="cell_1" style="left:0px; top:189px; width:92px; height:23px; text-align:left; vertical-align:middle; padding-left:5px; ">등록번호</caption>
  1218. <caption id="caption8" class="cell_1" style="left:0px; top:69px; width:92px; height:23px; text-align:left; vertical-align:middle; padding-left:5px; ">대출과</caption>
  1219. <caption id="caption9" class="cell_1" style="left:0px; top:45px; width:92px; height:23px; text-align:left; vertical-align:middle; padding-left:5px; ">대출구분</caption>
  1220. <caption id="caption30" class="cell_1" style="left:0px; top:461px; width:92px; height:23px; text-align:left; vertical-align:middle; padding-left:5px; ">연락처</caption>
  1221. <caption id="caption31" class="cell_1" style="left:0px; top:557px; width:92px; height:130px; text-align:left; vertical-align:middle; padding-left:5px; ">비고</caption>
  1222. <caption id="caption20" class="cell_1" style="left:0px; top:313px; width:92px; height:23px; text-align:left; vertical-align:middle; padding-left:5px; ">환자와의 관계</caption>
  1223. <caption id="caption21" class="cell_1" style="left:0px; top:337px; width:92px; height:23px; text-align:left; vertical-align:middle; padding-left:5px; ">반납예정일</caption>
  1224. <caption id="caption22" class="cell_1" style="left:0px; top:361px; width:92px; height:23px; text-align:left; vertical-align:middle; padding-left:5px; ">인계인</caption>
  1225. <caption id="caption25" class="cell_1" style="left:0px; top:485px; width:92px; height:23px; text-align:left; vertical-align:middle; padding-left:5px; ">환자와의 관계</caption>
  1226. <caption id="caption26" class="cell_1" style="left:0px; top:509px; width:92px; height:23px; text-align:left; vertical-align:middle; padding-left:5px; ">반납일자</caption>
  1227. <caption id="caption27" class="cell_1" style="left:0px; top:533px; width:92px; height:23px; text-align:left; vertical-align:middle; padding-left:5px; ">인수인</caption>
  1228. <caption id="caption28" class="cell_1" style="left:0px; top:413px; width:92px; height:23px; text-align:left; vertical-align:middle; padding-left:5px; ">반납자성명</caption>
  1229. <caption id="caption17" class="cell_1" style="left:0px; top:241px; width:92px; height:23px; text-align:left; vertical-align:middle; padding-left:5px; ">신청자</caption>
  1230. <caption id="caption29" class="cell_1" style="left:0px; top:437px; width:92px; height:23px; text-align:left; vertical-align:middle; padding-left:5px; ">주민증/면허증</caption>
  1231. <caption id="caption18" class="cell_1" style="left:0px; top:265px; width:92px; height:23px; text-align:left; vertical-align:middle; padding-left:5px; ">주민증/면허증</caption>
  1232. <caption id="caption19" class="cell_1" style="left:0px; top:289px; width:92px; height:23px; text-align:left; vertical-align:middle; padding-left:5px; ">연락처</caption>
  1233. <line id="line9" class="line_3" style="x1:0px; y1:211px; x2:390px; y2:211px; "/>
  1234. <output id="output1" ref="/root/main/detllendrtn/lendinfo/lendno" class="output_fix" navindex="11" visibility="hidden" format="hh:nn:ss" showmask="true" appearance="output" mask="exclude" style="left:270px; top:5px; width:100px; height:19px; text-align:center; vertical-align:middle; "/>
  1235. <button id="button1" class="btn2_letter5" style="left:315px; top:216px; width:75px; height:19px; ">
  1236. <caption>이미지등록</caption>
  1237. <script type="javascript" ev:event="DOMActivate">
  1238. <![CDATA[
  1239. fExeAppImgPopupCall();
  1240. ]]>
  1241. </script>
  1242. </button>
  1243. <output id="output2" ref="/root/main/detllendrtn/lendinfo/imgrgstdd" class="output_fix" navindex="11" visibility="hidden" showmask="true" appearance="output" mask="exclude" style="left:95px; top:215px; width:20px; height:19px; text-align:center; vertical-align:middle; "/>
  1244. <output id="output3" ref="/root/main/detllendrtn/lendinfo/imgno" class="output_fix" navindex="11" visibility="hidden" showmask="true" appearance="output" mask="exclude" style="left:120px; top:215px; width:20px; height:19px; text-align:center; vertical-align:middle; "/>
  1245. <output id="output4" ref="/root/main/detllendrtn/lendinfo/imgseqno" class="output_fix" navindex="11" visibility="hidden" format="hh:nn:ss" showmask="true" appearance="output" mask="exclude" style="left:145px; top:215px; width:20px; height:19px; text-align:center; vertical-align:middle; "/>
  1246. <output id="output5" ref="/root/main/detllendrtn/lendinfo/rsltimg" class="output_fix" navindex="11" visibility="hidden" format="hh:nn:ss" showmask="true" appearance="output" mask="exclude" style="left:170px; top:215px; width:20px; height:19px; text-align:center; vertical-align:middle; "/>
  1247. <img id="img_source" ref="/root/main/detllendrtn/lendinfo/rsltimg" style="left:292px; top:215px; width:20px; height:20px; background-stretch:stretch; border-color:#808080; border-style:solid; "/>
  1248. <line id="line19" class="line_3" style="x1:0px; y1:383px; x2:390px; y2:383px; "/>
  1249. <select1 id="cmb_csltdr" ref="/root/main/detllendrtn/lendinfo/cnsltdr" class="combo_default" navindex="15" visibility="hidden" appearance="minimal" style="left:20px; top:10px; width:295px; height:19px; ">
  1250. <choices>
  1251. <itemset nodeset="/root/init/cnstdr/cnsltlist">
  1252. <label ref="cnstdrnm"/>
  1253. <value ref="cnstdrid"/>
  1254. </itemset>
  1255. </choices>
  1256. </select1>
  1257. <input id="ipt_csltdr" ref="/root/main/detllendrtn/lendinfo/cnsltdr" class="input_default" navindex="16" mask="exclude" maxbyte="6" showmask="true" style="left:95px; top:118px; width:295px; height:19px; vertical-align:middle; "/>
  1258. <select1 id="cmb_lendchrg" ref="/root/main/detllendrtn/lendinfo/lendchrg" class="combo_default" navindex="14" visibility="hidden" appearance="minimal" style="left:20px; top:35px; width:295px; height:19px; ">
  1259. <choices>
  1260. <itemset nodeset="/root/init/userinfo/userlist/usercombo">
  1261. <label ref="usernm"/>
  1262. <value ref="userid"/>
  1263. </itemset>
  1264. </choices>
  1265. </select1>
  1266. <select1 id="cmb_grostestid" ref="/root/main/detllendrtn/lendinfo/lendchrg" class="combo_default" navindex="6" appearance="minimal" style="left:95px; top:94px; width:295px; height:19px; ">
  1267. <choices>
  1268. <itemset nodeset="/root/init/userinfo/userinfolist[jobkindcd='9']">
  1269. <label ref="usernm"/>
  1270. <value ref="userid"/>
  1271. </itemset>
  1272. </choices>
  1273. </select1>
  1274. </group>
  1275. <line id="line29" class="line_1" style="x1:-5px; y1:70px; x2:800px; y2:70px; "/>
  1276. <caption id="caption2" class="tit_2" style="left:0px; top:55px; width:290px; height:14px; ">대출처방 목록</caption>
  1277. <group id="grp_sldelist" visibility="hidden" style="left:115px; top:160px; width:565px; height:340px; ">
  1278. <datagrid id="grd_slidelist" nodeset="/root/main/slideinfo/slidelist" class="datagrid2" autoresize="true" caption="선&#xA;택^병리번호^검체번호^블록번호^슬라이드번호^블록표시내용^슬라이드표시내용" colsep="^" colwidth="20, 108, 67, 67, 82, 82, 109" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheight="32" rowsep="|" navindex="13" style="left:5px; top:25px; width:555px; height:285px; ">
  1279. <col checkvalue="true,false" ref="choi" type="checkbox"/>
  1280. <col ref="ptno"/>
  1281. <col ref="spcacptseqno"/>
  1282. <col ref="csteno"/>
  1283. <col ref="slidno"/>
  1284. <col ref="blockcnts"/>
  1285. <col ref="slidecnts"/>
  1286. <script type="javascript" ev:event="xforms-value-changed">
  1287. <![CDATA[
  1288. if(model.getValue("/root/main/slideinfo/slidelist["+ grd_slidelist.row +"]/choi") == "true") {
  1289. for(var iRowNo = 1 ; iRowNo < grd_slidelist.rows ; iRowNo++) {
  1290. if(iRowNo != grd_slidelist.row) {
  1291. model.setValue("/root/main/slideinfo/slidelist["+ iRowNo+"]/choi", "false");
  1292. }
  1293. }
  1294. model.removeNodeset("/root/hidden/slideinfo");
  1295. model.makeValue("/root/hidden/slideinfo/blockcnts", model.getValue("/root/main/slideinfo/slidelist["+ grd_slidelist.row +"]/blockcnts"));
  1296. model.makeValue("/root/hidden/slideinfo/slidecnts", model.getValue("/root/main/slideinfo/slidelist["+ grd_slidelist.row +"]/slidecnts"));
  1297. model.makeValue("/root/hidden/slideinfo/spcacptseqno", model.getValue("/root/main/slideinfo/slidelist["+ grd_slidelist.row +"]/spcacptseqno"));
  1298. model.makeValue("/root/hidden/slideinfo/csteno", model.getValue("/root/main/slideinfo/slidelist["+ grd_slidelist.row +"]/csteno"));
  1299. model.makeValue("/root/hidden/slideinfo/slidno", model.getValue("/root/main/slideinfo/slidelist["+ grd_slidelist.row +"]/slidno"));
  1300. model.makeValue("/root/hidden/slideinfo/check", "Y");
  1301. } else {
  1302. model.removeNodeset("/root/hidden/slideinfo");
  1303. }
  1304. ]]>
  1305. </script>
  1306. </datagrid>
  1307. <caption id="caption36" class="tit_2" style="left:5px; top:5px; width:200px; height:14px; ">카세트/슬라이드 목록</caption>
  1308. <line id="line1" class="line_1" style="x1:5px; y1:20px; x2:560px; y2:20px; "/>
  1309. <button id="button2" class="btn4_letter2" navindex="19" style="left:445px; top:315px; width:56px; height:22px; ">
  1310. <caption>확인</caption>
  1311. <script type="javascript" ev:event="DOMActivate">
  1312. <![CDATA[
  1313. var ichk = grd_slidelist.findRow("true", 0, 0, false, true);
  1314. if(ichk <= 0) {
  1315. messageBox("블록/슬라이드를 선택하지 않으셨습니다.", "I007");
  1316. return;
  1317. }
  1318. grp_sldelist.visible = false;
  1319. //의뢰지에 슬라이드 번호 저장.
  1320. fSetSlideRgst();
  1321. ]]>
  1322. </script>
  1323. </button>
  1324. <button id="button3" class="btn4_letter2" navindex="19" style="left:505px; top:315px; width:56px; height:22px; ">
  1325. <caption>닫기</caption>
  1326. <script type="javascript" ev:event="DOMActivate">
  1327. <![CDATA[
  1328. grp_sldelist.visible = false;
  1329. ]]>
  1330. </script>
  1331. </button>
  1332. </group>
  1333. </group>
  1334. <group id="grp_btn" style="left:0px; top:13; width:1195px; height:27px; ">
  1335. <button id="btn_cnfmcert" class="btn4_letter3" navindex="34" style="left:1003px; top:3px; width:68px; height:22px; ">
  1336. <caption>확인증</caption>
  1337. <script type="javascript" ev:event="DOMActivate">
  1338. <![CDATA[
  1339. fExeLendCnfmPrnt();
  1340. ]]>
  1341. </script>
  1342. </button>
  1343. <button id="btn_save" class="btn4_letter2" navindex="35" style="left:1074px; top:3; width:56px; height:22px; ">
  1344. <caption>대출</caption>
  1345. <script type="javascript" ev:event="DOMActivate">
  1346. <![CDATA[
  1347. fExeLendSave("0");
  1348. ]]>
  1349. </script>
  1350. </button>
  1351. <button id="btn_upd" class="btn4_letter2" disabled="true" navindex="36" style="left:1133px; top:3; width:56px; height:22px; ">
  1352. <caption>수정</caption>
  1353. <script type="javascript" ev:event="DOMActivate">
  1354. <![CDATA[
  1355. fExeLendSave("1");
  1356. ]]>
  1357. </script>
  1358. </button>
  1359. <line id="line28" class="line_6" style="x1:0px; y1:25; x2:1194px; y2:25; "/>
  1360. </group>
  1361. </xhtml:body>
  1362. </xhtml:html>