SMLPB00200_Cassette일괄출력.xrw 60 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <!--
  3. * 제 목 : SMLPB00200_Cassette일괄발행.xrw
  4. * 설 명 : 슬라이드일괄출력 화면
  5. * 설 계 자 : (주)에이씨케이 - 유동철
  6. * 작 성 자 : (주)에이씨케이 - 유동철
  7. * 작 성 일 : 2007.04.23
  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>Cassette일괄발행</xhtml:title>
  15. <model id="model1">
  16. <instance id="instance1">
  17. <root xmlns="">
  18. <main>
  19. <acptptno>
  20. <acptptnolist>
  21. <choi/>
  22. <instcd/>
  23. <ptno/>
  24. <dispptno/>
  25. <spcacptdd/>
  26. <spcacptno/>
  27. <spcacptseqno/>
  28. <spcnm/>
  29. <maxcsteno/>
  30. <bfcstecnt/>
  31. <afcstecnt/>
  32. <delcstecnt/>
  33. <cstecharinpt/>
  34. <cstecharchoi/>
  35. <cstecharno/>
  36. <cstekindcd/>
  37. <hoppno/>
  38. <grosdrnm/>
  39. <testnmlist/>
  40. <spccd/>
  41. <spchistno/>
  42. <acptdd/>
  43. <acptno/>
  44. <maxcstecnts/>
  45. <cstecharuserinpt/>
  46. </acptptnolist>
  47. </acptptno>
  48. <isscste>
  49. <isscstelist>
  50. <choi/>
  51. <instcd/>
  52. <ptno/>
  53. <dispptno/>
  54. <spcacptdd/>
  55. <spcacptno/>
  56. <spcacptseqno/>
  57. <csteno/>
  58. <cstekindcd/>
  59. <cstecnts/>
  60. <tisscnt/>
  61. <hoppno/>
  62. <maxcsteno/>
  63. <bizflagcd/>
  64. <scrno/>
  65. <acptdd/>
  66. <acptno/>
  67. <testcd/>
  68. <acptitemno/>
  69. <slidno/>
  70. <spccd/>
  71. <spchistno/>
  72. <statsinclflagcd/>
  73. </isscstelist>
  74. </isscste>
  75. <cstestats>
  76. <cstestatslist>
  77. <instcd/>
  78. <cstekind/>
  79. <cstecnt/>
  80. <slidcnt/>
  81. </cstestatslist>
  82. </cstestats>
  83. <eqinfo>
  84. <caeqlist>
  85. <eqnm/>
  86. <eqip/>
  87. <eqport/>
  88. <eqflag/>
  89. <eqseqno/>
  90. <resncd/>
  91. <baseflagcd/>
  92. </caeqlist>
  93. <slideqlist>
  94. <eqnm/>
  95. <eqip/>
  96. <eqport/>
  97. <eqflag/>
  98. <eqseqno/>
  99. <resncd/>
  100. <baseflagcd/>
  101. </slideqlist>
  102. </eqinfo>
  103. <slideinfo>
  104. <slidelist>
  105. <instcd/>
  106. <ptno/>
  107. <spcacptdd/>
  108. <spcacptno/>
  109. <spcacptseqno/>
  110. <csteno/>
  111. <bloccnts/>
  112. <prntcsscnts/>
  113. <slidno/>
  114. <cstekindcd/>
  115. <cstecnts/>
  116. <workattr/>
  117. <prntcsscnts/>
  118. <cstecnts/>
  119. <ipttype/>
  120. <maxcsteno/>
  121. <bizflagcd/>
  122. <acptdd/>
  123. <acptno/>
  124. <testcd/>
  125. <acptitemno/>
  126. <scrno/>
  127. <spccd/>
  128. <spchistno/>
  129. <statsinclflagcd/>
  130. <relaptno/>
  131. <bloccnts/>
  132. <reladispptno/>
  133. <workflagcd/>
  134. <dispptno/>
  135. <prtnblocnm/>
  136. </slidelist>
  137. </slideinfo>
  138. </main>
  139. <send>
  140. <slideflag/>
  141. </send>
  142. <init>
  143. <ptnocode/>
  144. <fromyear/>
  145. <fromptno/>
  146. <toyear/>
  147. <toptno/>
  148. <acptfromdd/>
  149. <acpttodd/>
  150. <seameth/>
  151. <seaval/>
  152. <ptnofrom/>
  153. <ptnoto/>
  154. <sysdt>
  155. <sysdtinfo>
  156. <sysdd/>
  157. <systm/>
  158. </sysdtinfo>
  159. </sysdt>
  160. <userinfo>
  161. <userinfolist>
  162. <userid/>
  163. <usernm/>
  164. <jobkindcd/>
  165. </userinfolist>
  166. </userinfo>
  167. <hospenv>
  168. <hospenvinfo>
  169. <instcd/>
  170. <lendrtnterm/>
  171. <recvqualmthdcd/>
  172. <plgydeptcd/>
  173. <plgyteamcd/>
  174. <doctjobgradcd/>
  175. <teamjobgradcd/>
  176. <csteeqmtip/>
  177. <csteeqmtport/>
  178. <slideqmtip/>
  179. <slideqmtport/>
  180. </hospenvinfo>
  181. </hospenv>
  182. <resncd>
  183. <resncdlist>
  184. <instcd/>
  185. <baseflagcd/>
  186. <resncd/>
  187. <resncnts/>
  188. </resncdlist>
  189. </resncd>
  190. <ptnocd>
  191. <ptnocdlist>
  192. <instcd/>
  193. <ptnocd/>
  194. <ptnonm/>
  195. </ptnocdlist>
  196. </ptnocd>
  197. <cstechar>
  198. <cstecharlist>
  199. <no>1</no>
  200. <cnts>C</cnts>
  201. </cstecharlist>
  202. </cstechar>
  203. <cstecharno>
  204. <cstecharnolist>
  205. <no>1</no>
  206. <cnts>이중번호</cnts>
  207. </cstecharnolist>
  208. </cstecharno>
  209. <choicstechar/>
  210. <choicstekindcd/>
  211. <choichopperval/>
  212. <eqseqno/>
  213. <slideflag/>
  214. <slideeqseqno/>
  215. </init>
  216. <hidden>
  217. <userdeptcd/>
  218. </hidden>
  219. </root>
  220. </instance>
  221. <script type="javascript" ev:event="xforms-ready">
  222. <![CDATA[
  223. fExeInitialize();
  224. ]]>
  225. </script>
  226. <submission id="TRLPZ00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/init/hospenv/hospenvinfo"/>
  227. <submission id="TRLPZ00102" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/init/sysdt/sysdtinfo"/>
  228. <submission id="TRLPZ00103" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/init/resncd/resncdlist"/>
  229. <submission id="TRLPZ00105" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/init/userinfo/userinfolist"/>
  230. <submission id="TRLPB00201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/acptptno/acptptnolist"/>
  231. <submission id="TRLPB00202" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/cstestats/cstestatslist"/>
  232. <submission id="TXLPB00201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/slideinfo/slidelist"/>
  233. <submission id="TRLPZ00109" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/init/ptnocd/ptnocdlist"/>
  234. <submission id="TRLPC01802" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/eqinfo"/>
  235. </model>
  236. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  237. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  238. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  239. <script type="javascript" src="../../../com/commonweb/js/numericHelper.js"/>
  240. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  241. <script type="javascript" src="../../../lis/commonweb/js/LPZ001.js"/>
  242. <script type="javascript">
  243. <![CDATA[
  244. //---------------
  245. // Socket연결상태
  246. var isConnected = false;
  247. //카세트, 슬라이드 출력 여부
  248. var sCasteSlideflag = "C";
  249. //장비 인터페이스출력완료 여부 표시
  250. var sEqFinish = "N";
  251. var interval_id = "";
  252. var bParentWindow = false;
  253. /* @group : Cassette일괄출력
  254. * @ver : 2007.02.12 (CMCDEV-0001)
  255. * @by : 유동철(ACK)
  256. * @-----------------------------------
  257. * @type : function
  258. * @access : public
  259. * @desc : 초기화 Function
  260. */
  261. function fExeInitialize() {
  262. var iMaxNo = 0;
  263. var sCurDate = "";
  264. //---------------------
  265. // Instance Node 초기화
  266. model.removeNodeset("/root/main/acptptno/acptptnolist"); // 병리번호리스트 초기화
  267. model.removeNodeset("/root/main/isscste/isscstelist"); // 발행 및 삭제Cassette리스트 초기화
  268. model.removeNodeset("/root/init/ptnocd/ptnocdlist");
  269. //--------------------------------
  270. model.removeNodeset("/root/send");
  271. model.makeValue("/root/send/instcd", getUserInfo("dutplceinstcd"));
  272. submit("TRLPZ00101", false);
  273. submit("TRLPZ00109", false);
  274. //---------------------------------------------------------
  275. // 병원환경정보를 취득하여 병리과와 병리팀 코드를 편집한다.
  276. lpzfUserDeptCd("/root/init/hospenv/hospenvinfo", "/root/hidden");
  277. //-------------------------------------------------------------------------------------
  278. model.makeValue("/root/send/userdeptcd", model.getValue("/root/hidden/userdeptcd"));
  279. model.makeValue("/root/send/doctjobgradcd", model.getValue("/root/init/hospenv/hospenvinfo/doctjobgradcd"));
  280. model.makeValue("/root/send/teamjobgradcd", model.getValue("/root/init/hospenv/hospenvinfo/teamjobgradcd"));
  281. submit("TRLPZ00105", false);
  282. //------------------------------------------
  283. // Cassette(블록) 및 Slide(슬라이드) 목록 조회
  284. model.makeValue("/root/send/baseflagcd", "'81'");
  285. submit("TRLPZ00103");
  286. model.removeNodeset("/root/init/resncd/resncdlist[resncd='ZZZZ']");
  287. //------------------
  288. // Cassette내용 분리
  289. lpzfExeCsteCntsSplit("/root/init/resncd/resncdlist");
  290. iMaxNo = getNodesetCount("/root/init/cstechar/cstecharlist");
  291. model.makeValue("/root/init/cstechar/cstecharlist["+(Number(iMaxNo)+1)+"]/no", "Z");
  292. model.makeValue("/root/init/cstechar/cstecharlist["+(Number(iMaxNo)+1)+"]/cnts", "");
  293. //블록 장비 조회
  294. model.makeValue("/root/send/instcd", getUserInfo("dutplceinstcd")); //instcd
  295. model.makeValue("/root/send/seaflagcd", "0"); //"0:전체, 1:카세트, 2:슬라이드"
  296. submit("TRLPC01802");
  297. cmb_slideqlist.select(0);
  298. cmb_slid.select(0);
  299. //---------------------
  300. // 시스템 현재일시를 조회
  301. fExeSysDtSet();
  302. //------------------------------------------------------------
  303. sCurDate = model.getValue("/root/init/sysdt/sysdtinfo/sysdd");
  304. model.makeValue("/root/init/ptnocode", "");
  305. model.makeValue("/root/init/fromyear", sCurDate.substr(2,2));
  306. model.makeValue("/root/init/toyear", sCurDate.substr(2,2));
  307. model.makeValue("/root/init/fromptno", "");
  308. model.makeValue("/root/init/toptno", "");
  309. //----------------------------------------
  310. model.setValue("/root/init/seameth", "1"); // 검색방법 초기화(0:병리번호, 1:등록번호)
  311. model.setValue("/root/init/seaval", ""); // 검색값 초기화
  312. model.setValue("/root/init/ptnocode", "-");
  313. cbo_ptnocd.visible = true;
  314. //-----------------------------------------
  315. grd_ptnolist.fixedcellcheckbox(0,0) = true;
  316. //-------------
  317. model.refresh();
  318. //---------------------------------------------
  319. // 일반검사결과등록 화면에서 호출했을 경우 처리
  320. // 2010-11-13 : YDC
  321. if (window.parent == null) {
  322. // Continue
  323. } else {
  324. if ( opener.javascript.getParameter("SMLPB00200_ptno") != "") {
  325. //--------------------
  326. bParentWindow = true;
  327. //------------------------------------------------------------
  328. var sPtNo = opener.javascript.getParameter("SMLPB00200_ptno");
  329. model.makeValue("/root/init/acptfromdd", opener.javascript.getParameter("SMLPB00200_acptdd"));
  330. model.makeValue("/root/init/acpttodd", opener.javascript.getParameter("SMLPB00200_acptdd"));
  331. model.makeValue("/root/init/pid", opener.javascript.getParameter("SMLPB00200_pid"));
  332. model.makeValue("/root/init/ptnocode", sPtNo.substr(0, sPtNo.length-8) );
  333. model.makeValue("/root/init/fromyear", sPtNo.substr(sPtNo.length-8, 2) )
  334. model.makeValue("/root/init/fromptno", sPtNo.substr(sPtNo.length-6, 6) );
  335. model.makeValue("/root/init/toyear", sPtNo.substr(sPtNo.length-8, 2) )
  336. model.makeValue("/root/init/toptno", sPtNo.substr(sPtNo.length-6, 6) );
  337. //----------------
  338. fGetAcptSpcList();
  339. }
  340. }
  341. }
  342. /* @group : Cassette일괄출력
  343. * @ver : 2007.02.12 (CMCDEV-0001)
  344. * @by : 유동철(ACK)
  345. * @-----------------------------------
  346. * @type : function
  347. * @access : public
  348. * @desc : 시스템일시 설정 처리 Function
  349. */
  350. function fExeSysDtSet() {
  351. //-------------------
  352. submit("TRLPZ00102"); // 시스템 현재일시를 조회
  353. model.makeValue("/root/init/acptfromdd", model.getValue("/root/init/sysdt/sysdtinfo/sysdd"));
  354. model.makeValue("/root/init/acpttodd", model.getValue("/root/init/sysdt/sysdtinfo/sysdd"));
  355. }
  356. /* @group : Cassette일괄출력
  357. * @ver : 2007.05.23 (CMCDEV-0001)
  358. * @by : 유동철(ACK)
  359. * @-----------------------------------
  360. * @type : function
  361. * @access : public
  362. * @desc : 접수검체 목록 조회 처리 Function
  363. */
  364. function fGetAcptSpcList() {
  365. var sTemp = "";
  366. var sSysDD = model.getValue("/root/init/sysdt/sysdtinfo/sysdd");
  367. var sFromDD = model.getValue("/root/init/acptfromdd");
  368. var sToDD = model.getValue("/root/init/acpttodd");
  369. //--------------------------------
  370. model.removeNodeset("/root/send");
  371. model.removeNodeset("/root/main/acptptno/acptptnolist");
  372. //model.removeNodeset("/root/main/isscste/isscstelist");
  373. /*
  374. //-------------------------------------------------
  375. if (model.getValue("/root/init/ptnofrom") == "") {
  376. model.setValue("/root/init/ptnofrom", sSysDD.substr(2,2) + "000001");
  377. }
  378. //-------------------------------------------------
  379. if (model.getValue("/root/init/ptnoto") == "") {
  380. model.setValue("/root/init/ptnoto", sSysDD.substr(2,2) + "999999");
  381. }
  382. */
  383. //------------------------------------------------
  384. if (model.getValue("/root/init/ptnocode") != "") {
  385. //------------------------------------------------
  386. if (model.getValue("/root/init/fromyear") == "") {
  387. model.makeValue("/root/init/fromyear", sFromDD.substr(2,2));
  388. } else {
  389. sTemp = model.getValue("/root/init/fromyear");
  390. model.makeValue("/root/init/fromyear", sTemp.getLeftPad(2, "0"));
  391. }
  392. //----------------------------------------------
  393. if (model.getValue("/root/init/toyear") == "") {
  394. model.makeValue("/root/init/toyear", sToDD.substr(2,2));
  395. } else {
  396. sTemp = model.getValue("/root/init/toyear");
  397. model.makeValue("/root/init/toyear", sTemp.getLeftPad(2, "0"));
  398. }
  399. //------------------------------------------------
  400. if (model.getValue("/root/init/fromptno") == "") {
  401. model.makeValue("/root/init/fromptno", "000000");
  402. } else {
  403. sTemp = model.getValue("/root/init/fromptno");
  404. model.makeValue("/root/init/fromptno", sTemp.getLeftPad(6, "0"));
  405. }
  406. //----------------------------------------------
  407. if (model.getValue("/root/init/toptno") == "") {
  408. model.makeValue("/root/init/toptno", "999999");
  409. } else {
  410. sTemp = model.getValue("/root/init/toptno");
  411. model.makeValue("/root/init/toptno", sTemp.getLeftPad(6, "0"));
  412. }
  413. }
  414. //--------------------------------------------
  415. sTemp = model.getValue("/root/init/ptnocode");
  416. //---------------------------------------------------------------------
  417. model.makeValue("/root/send/instcd", getUserInfo("dutplceinstcd"));
  418. model.makeValue("/root/send/acptfromdd", model.getValue("/root/init/acptfromdd"));
  419. model.makeValue("/root/send/acpttodd", model.getValue("/root/init/acpttodd"));
  420. model.makeValue("/root/send/seamthd", model.getValue("/root/init/seameth"));
  421. model.makeValue("/root/send/seaval", model.getValue("/root/init/seaval"));
  422. model.makeValue("/root/send/ptnocode", sTemp.replace("-", ""));
  423. model.makeValue("/root/send/fromyear", model.getValue("/root/init/fromyear"));
  424. model.makeValue("/root/send/fromptno", model.getValue("/root/init/fromptno"));
  425. model.makeValue("/root/send/toyear", model.getValue("/root/init/toyear"));
  426. model.makeValue("/root/send/toptno", model.getValue("/root/init/toptno"));
  427. //---------------------------
  428. submit("TRLPB00201", false);
  429. //-------------------
  430. if (bParentWindow) {
  431. var sNode = "/root/main/acptptno/acptptnolist";
  432. //-----------------------------------------------------------------
  433. for (var iRowNo = 1; iRowNo <= getNodesetCount(sNode); iRowNo++) {
  434. model.makeValue(sNode+"["+iRowNo+"]/choi", "true");
  435. model.makeValue(sNode+"["+iRowNo+"]/cstekindcd", "9999");
  436. }
  437. }
  438. //--------------
  439. model.refresh();
  440. }
  441. /* @group : Cassette일괄출력
  442. * @ver : 2007.05.23 (CMCDEV-0001)
  443. * @by : 유동철(ACK)
  444. * @-----------------------------------
  445. * @type : function
  446. * @access : public
  447. * @desc : 블럭 생성정보 전달 처리 Function
  448. */
  449. function fExeInfoSend() {
  450. var iCurCnt = -1;
  451. var iIssCnt = -1;
  452. var iDelCnt = -1;
  453. var iLastRowNo = -1;
  454. var iLastCsteNo = -1;
  455. var iLoopCnt = -1;
  456. var iSpcSeqNo = 0;
  457. var iCsteNo = 0;
  458. var sCsteNo = "0";
  459. var sCsteCnts = "";
  460. var sAfCsteCnt = "";
  461. var bCsteStat = false;
  462. //--------------------------------------------------
  463. var strSrcNode = "/root/main/acptptno/acptptnolist";
  464. var strDescNode = "/root/main/isscste/isscstelist";
  465. //-------------------------------------------------------------------
  466. for (var iRowNo=1; iRowNo <= getNodesetCount(strSrcNode); iRowNo++) {
  467. if (model.getValue(strSrcNode+"["+iRowNo+"]/choi") == "true") {
  468. //-------------------------------------------------------------------
  469. sAfCsteCnt = model.getValue(strSrcNode+"[" + iRowNo + "]/afcstecnt");
  470. //-----------------------
  471. // 숫자인지 문자인지 검사
  472. if ( sAfCsteCnt.isNumber() ) {
  473. iIssCnt = Number(sAfCsteCnt);
  474. } else {
  475. sAfCsteCnt = sAfCsteCnt.toUpperCase();
  476. iIssCnt = Number(sAfCsteCnt.charCodeAt(0)) - 64;
  477. }
  478. //--------------------------------------------------------------------------
  479. iDelCnt = Number(model.getValue(strSrcNode+"[" + iRowNo + "]/delcstecnt"));
  480. //------------------------------------------------------
  481. // 발행블록수 와 삭제 블록수가 동시에 입력되면 처리불가
  482. if (iIssCnt > 0 && iDelCnt > 0) {
  483. messageBox("발행 블록 수 와 삭제 블록 수 를 동시에 처리", "E001");
  484. return false;
  485. }
  486. //---------------------------------
  487. // 발행 블록 수 를 입력한 경우 처리
  488. if (iIssCnt > 0 || iDelCnt > 0) {
  489. //----------------------------------------
  490. iLastRowNo = getNodesetCount(strDescNode);
  491. //----------------------------------------------------------------
  492. if (model.getValue(strSrcNode+"[" + iRowNo + "]/maxcsteno") == "-" || model.getValue(strSrcNode+"[" + iRowNo + "]/maxcsteno") == "") {
  493. iLastCsteNo = 0;
  494. } else {
  495. iLastCsteNo = Number(model.getValue(strSrcNode+"[" + iRowNo + "]/maxcsteno"));
  496. //iLastCsteNo = 0;
  497. }
  498. //----------------------------------
  499. if (iIssCnt > 0) iLoopCnt = iIssCnt;
  500. if (iDelCnt > 0) iLoopCnt = iDelCnt;
  501. //--------------------------------------
  502. for (var iNo=1; iNo <= iLoopCnt; iNo++) {
  503. grd_isscstelist.addRow();
  504. //-------------------------------------------
  505. iCurCnt = Number(iLastRowNo)+Number(iNo);
  506. //--------------------------------------------------------------------
  507. model.makeValue(strDescNode+"[" + iCurCnt + "]/choi", "true");
  508. model.makeValue(strDescNode+"[" + iCurCnt + "]/instcd", model.getValue(strSrcNode+"[" + iRowNo + "]/instcd"));
  509. model.makeValue(strDescNode+"[" + iCurCnt + "]/ptno", model.getValue(strSrcNode+"[" + iRowNo + "]/ptno"));
  510. model.makeValue(strDescNode+"[" + iCurCnt + "]/dispptno", model.getValue(strSrcNode+"[" + iRowNo + "]/dispptno"));
  511. model.makeValue(strDescNode+"[" + iCurCnt + "]/spcacptdd", model.getValue(strSrcNode+"[" + iRowNo + "]/spcacptdd"));
  512. model.makeValue(strDescNode+"[" + iCurCnt + "]/spcacptno", model.getValue(strSrcNode+"[" + iRowNo + "]/spcacptno"));
  513. model.makeValue(strDescNode+"[" + iCurCnt + "]/spcacptseqno", model.getValue(strSrcNode+"[" + iRowNo + "]/spcacptseqno"));
  514. //----------------
  515. if (iIssCnt > 0) {
  516. iCsteNo = Number(iNo)+Number(iLastCsteNo);
  517. //----------------
  518. bCsteStat = false;
  519. //-----------------
  520. if (iIssCnt == 1) {
  521. if (iRowNo > 1) {
  522. if (Number(model.getValue(strSrcNode+"[" + Number(iRowNo-1) + "]/afcstecnt")) == 1) {
  523. bCsteStat = true;
  524. }
  525. }
  526. }
  527. //--------------------------------------------------------
  528. sCsteNo = (iNo+iLastCsteNo).toString().getLeftPad(3, "0");
  529. } else if (iDelCnt > 0) {
  530. iCsteNo = Number(iLastCsteNo);
  531. sCsteNo = (iLastCsteNo).toString().getLeftPad(3, "0");
  532. iLastCsteNo--;
  533. }
  534. //-------------------------------------------------------------------------------
  535. iSpcSeqNo = Number(model.getValue(strSrcNode+"[" + iRowNo + "]/spcacptseqno"));
  536. sCsteCnts = model.getValue("/root/init/resncd/resncdlist[resncd='" + model.getValue(strSrcNode+"[" + iRowNo + "]/cstekindcd") + "']/resncnts");
  537. //-------------------------------
  538. if ( sCsteCnts == "신규번호" ) {
  539. iCsteNo = iNo;
  540. }
  541. //---------------------------------------------
  542. // Cassette Type을 분석하여 Cassette내용을 표시
  543. if (bCsteStat) {
  544. //sCsteCnts = lpzfExeCsteCnt(sCsteCnts, iSpcSeqNo, iSpcSeqNo);
  545. sCsteCnts = lpzfExeCsteCnt(sCsteCnts, iSpcSeqNo, Number(iCsteNo));
  546. } else {
  547. sCsteCnts = lpzfExeCsteCnt(sCsteCnts, iSpcSeqNo, Number(iCsteNo));
  548. }
  549. if(model.getValue(strSrcNode+"[" + iRowNo + "]/cstecharuserinpt") != "") {
  550. sCsteCnts = model.getValue(strSrcNode+"[" + iRowNo + "]/cstecharuserinpt") + sCsteCnts;
  551. }
  552. model.makeValue(strDescNode+"[" + iCurCnt + "]/cstecnts", sCsteCnts);
  553. //-----------------------------------------------------------------
  554. /*
  555. switch (model.getValue(strSrcNode+"[" + iRowNo + "]/cstekindcd")) {
  556. case "1001" : // No
  557. model.makeValue(strDescNode+"[" + iCurCnt + "]/cstecnts", iSpcSeqNo + "-" + Number(iCsteNo));
  558. break;
  559. case "1002" : // FSP
  560. model.makeValue(strDescNode+"[" + iCurCnt + "]/cstecnts", sCsteCnts + " " + Number(iCsteNo));
  561. break;
  562. default :
  563. model.makeValue(strDescNode+"[" + iCurCnt + "]/cstecnts", sCsteCnts);
  564. }
  565. */
  566. model.makeValue(strDescNode+"[" + iCurCnt + "]/csteno", sCsteNo);
  567. model.makeValue(strDescNode+"[" + iCurCnt + "]/cstekindcd", model.getValue(strSrcNode+"[" + iRowNo + "]/cstekindcd"));
  568. model.makeValue(strDescNode+"[" + iCurCnt + "]/tisscnt", "1");
  569. model.makeValue(strDescNode+"[" + iCurCnt + "]/hoppno", model.getValue(strSrcNode+"[" + iRowNo + "]/hoppno"));
  570. model.makeValue(strDescNode+"[" + iCurCnt + "]/maxcsteno", model.getValue(strSrcNode+"[" + iRowNo + "]/maxcsteno"));
  571. model.makeValue(strDescNode+"[" + iCurCnt + "]/scrno", "10");
  572. model.makeValue(strDescNode+"[" + iCurCnt + "]/acptdd", model.getValue(strSrcNode+"[" + iRowNo + "]/acptdd"));
  573. model.makeValue(strDescNode+"[" + iCurCnt + "]/acptno", model.getValue(strSrcNode+"[" + iRowNo + "]/acptno"));
  574. model.makeValue(strDescNode+"[" + iCurCnt + "]/testcd", "-");
  575. model.makeValue(strDescNode+"[" + iCurCnt + "]/acptitemno", "0");
  576. model.makeValue(strDescNode+"[" + iCurCnt + "]/slidno", "000");
  577. model.makeValue(strDescNode+"[" + iCurCnt + "]/spccd", model.getValue(strSrcNode+"[" + iRowNo + "]/spccd"));
  578. model.makeValue(strDescNode+"[" + iCurCnt + "]/spchistno", model.getValue(strSrcNode+"[" + iRowNo + "]/spchistno"));
  579. model.makeValue(strDescNode+"[" + iCurCnt + "]/statsinclflagcd", "0");
  580. }
  581. }
  582. }
  583. }
  584. //--------------
  585. model.refresh();
  586. }
  587. /* @group : Cassette일괄출력
  588. * @ver : 2007.05.24 (CMCDEV-0001)
  589. * @by : 유동철(ACK)
  590. * @-----------------------------------
  591. * @type : function
  592. * @access : public
  593. * @desc : 블럭 생성정보 전달 처리 Function
  594. */
  595. function fExeCsteIssDel(pBizFlagCd) {
  596. //--------------------------------
  597. model.removeNodeset("/root/send");
  598. //--------------------------------
  599. //카세트 삭제
  600. if(pBizFlagCd == "DELETE") {
  601. //----------------------------
  602. grd_ptnolist.clearStatus();
  603. //----------------------------------------------------------------------------------------
  604. for (var iRowNo=1; iRowNo <= getNodesetCount("/root/main/acptptno/acptptnolist"); iRowNo++) {
  605. if (model.getValue("/root/main/acptptno/acptptnolist[" + iRowNo + "]/choi") == "true") {
  606. model.makeValue("/root/main/acptptno/acptptnolist[" + iRowNo + "]/bizflagcd", pBizFlagCd);
  607. model.makeValue("/root/main/acptptno/acptptnolist[" + iRowNo + "]/scrno", "10");
  608. grd_ptnolist.addStatus(iRowNo, "insert");
  609. }
  610. }
  611. //-------------------------------------------------------------------------
  612. model.makeValue("/root/send/isscstelist", grd_ptnolist.getUpdateData());
  613. if (submit("TXLPB00201")) {
  614. messageBox("Cassette(블럭) 삭제가 ", "I002");
  615. //------------------------------------
  616. // Cassette(블럭) 생성 후 자료 초기화
  617. fGetAcptSpcList();
  618. }
  619. } else {
  620. if(getNodesetCount("/root/main/isscste/isscstelist") < 1) {
  621. messageBox("Cassette 발행 목록을 입력", "I008");
  622. return;
  623. }
  624. //----------------------------
  625. grd_isscstelist.clearStatus();
  626. //----------------------------------------------------------------------------------------
  627. for (var iRowNo=1; iRowNo <= getNodesetCount("/root/main/isscste/isscstelist"); iRowNo++) {
  628. if (model.getValue("/root/main/isscste/isscstelist[" + iRowNo + "]/choi") == "true") {
  629. model.makeValue("/root/main/isscste/isscstelist[" + iRowNo + "]/bizflagcd", pBizFlagCd);
  630. model.makeValue("/root/main/isscste/isscstelist[" + iRowNo + "]/scrno", "10");
  631. model.makeValue("/root/main/isscste/isscstelist[" + iRowNo + "]/statsinclflagcd", model.getValue("/root/main/isscste/isscstelist[" + iRowNo + "]/hoppno"));
  632. model.makeValue("/root/main/isscste/isscstelist[" + iRowNo + "]/slideflag", model.getValue("/root/init/slideflag")); //슬라이드 출력여부
  633. grd_isscstelist.addStatus(iRowNo, "insert");
  634. }
  635. }
  636. //-------------------------------------------------------------------------
  637. model.makeValue("/root/send/isscstelist", grd_isscstelist.getUpdateData());
  638. if (submit("TXLPB00201")) {
  639. messageBox("Cassette(블럭) 발행이 ", "I002");
  640. //--------------------------------
  641. // Cassette Labeler 장비 Interface
  642. if (pBizFlagCd == "C") {
  643. sEqFinish = "N";
  644. sCasteSlideflag = "C";
  645. fExeSocketSend();
  646. //슬라이드도 동시에 출력
  647. if(model.getValue("/root/init/slideflag") == "Y") {
  648. interval_id = window.setinterval("fPrtnSlide()", 1000);
  649. }
  650. }
  651. //------------------------------------
  652. // Cassette(블럭) 생성 후 자료 초기화
  653. //model.removeNodeset("/root/main/isscste/isscstelist");
  654. fGetAcptSpcList();
  655. }
  656. }
  657. }
  658. /* @group : Cassette일괄출력
  659. * @ver : 2007.05.24 (CMCDEV-0001)
  660. * @by : 유동철(ACK)
  661. * @-----------------------------------
  662. * @type : function
  663. * @access : public
  664. * @desc : 발행 및 삭제Cassette목록 초기화 처리 Function
  665. */
  666. function fExeIssDelListInitialize() {
  667. model.removeNodeset("/root/main/isscste/isscstelist");
  668. grd_isscstelist.rebuild();
  669. }
  670. /* @group : Cassette일괄출력
  671. * @ver : 2007.05.24 (CMCDEV-0001)
  672. * @by : 유동철(ACK)
  673. * @-----------------------------------
  674. * @type : function
  675. * @access : public
  676. * @desc : 발행 Cassette목록을 장비로 전송 Function
  677. */
  678. function fExeSocketSend() {
  679. var sSendMsg = "";
  680. //-----------------------------------------------
  681. var sInfoNode = "/root/init/hospenv/hospenvinfo";
  682. var sCsteNode = "/root/main/isscste/isscstelist";
  683. //var sCsteIP = model.getValue(sInfoNode+"/csteeqmtip");
  684. //var sCstePort = model.getValue(sInfoNode+"/csteeqmtport");
  685. var sCsteIP = "";
  686. var sCstePort = "";
  687. //장비IP set
  688. if(sCasteSlideflag == "C") { //카세트
  689. for(var iRowNo = 1 ; iRowNo <= getNodesetCount("/root/main/eqinfo/caeqlist") ; iRowNo++){
  690. if(model.getValue("/root/init/eqseqno") == model.getValue("/root/main/eqinfo/caeqlist["+ iRowNo +"]/eqseqno")) {
  691. sCsteIP = model.getValue("/root/main/eqinfo/caeqlist["+ iRowNo +"]/eqip");
  692. sCstePort = model.getValue("/root/main/eqinfo/caeqlist["+ iRowNo +"]/eqport");
  693. }
  694. }
  695. } else { //슬라이드
  696. for(var iRowNo = 1 ; iRowNo <= getNodesetCount("/root/main/eqinfo/slideqlist") ; iRowNo++){
  697. if(model.getValue("/root/init/slideeqseqno") == model.getValue("/root/main/eqinfo/slideqlist["+ iRowNo +"]/eqseqno")) {
  698. sCsteIP = model.getValue("/root/main/eqinfo/slideqlist["+ iRowNo +"]/eqip");
  699. sCstePort = model.getValue("/root/main/eqinfo/slideqlist["+ iRowNo +"]/eqport");
  700. }
  701. }
  702. }
  703. //------------------------------------
  704. if (sCsteIP == "" || sCsteIP == "-") {
  705. messageBox("Cassette(블럭)장비의 IP주소가 없습니다. 병원별 환경설정에서 ", "C001");
  706. return false;
  707. }
  708. //----------------------------------------
  709. if (sCstePort == "" || sCstePort == "-") {
  710. messageBox("Cassette(블럭)장비의 Port번호가 없습니다. 병원별 환경설정에서 ", "C001");
  711. return false;
  712. }
  713. //---------------------------------
  714. socket.connect(sCsteIP, sCstePort);
  715. }
  716. /* @group : Cassette일괄출력
  717. * @ver : 2007.05.24 (CMCDEV-0001)
  718. * @by : 유동철(ACK)
  719. * @-----------------------------------
  720. * @type : function
  721. * @access : public
  722. * @desc :검색방법 선택 처리 Function
  723. */
  724. function fExeRefMthdChange() {
  725. switch (model.getValue("/root/init/seameth")) {
  726. case "0" : model.toggle("caseptno");
  727. cbo_ptnocd.visible = true;
  728. break;
  729. case "1" : model.toggle("casepid");
  730. cbo_ptnocd.visible = false;
  731. break;
  732. }
  733. }
  734. /* @group : Cassette일괄출력
  735. * @ver : 2008.01.03 (CMCDEV-0001)
  736. * @by : 유동철(ACK)
  737. * @-----------------------------------
  738. * @type : function
  739. * @access : public
  740. * @desc : Cassette 변경 처리 Function
  741. */
  742. function fExeCsteChange() {
  743. var iNo = grd_ptnolist.row;
  744. var sCsteCnts = "";
  745. var sResnCnts = "";
  746. var sCsteChar = "";
  747. var sCsteCharNo = "";
  748. var sNode = "/root/main/acptptno/acptptnolist";
  749. var sCharList = "/root/init/cstechar/cstecharlist";
  750. var sNoList = "/root/init/cstecharno/cstecharnolist";
  751. var re = /([!-~]*)*/g;
  752. var matchMatrix = "";
  753. var bState = false;
  754. //-------------------------
  755. switch (grd_ptnolist.col) {
  756. case grd_ptnolist.colRef("cstecharinpt") :
  757. case grd_ptnolist.colRef("cstecharchoi") :
  758. sCsteChar = model.getValue(sCharList+"[no='"+model.getValue(sNode+"["+iNo+"]/cstecharchoi")+"']/cnts");
  759. sCsteCharNo = model.getValue(sNoList+"[no='"+model.getValue(sNode+"["+iNo+"]/cstecharno")+"']/cnts");
  760. //----------------------------------
  761. matchMatrix = sCsteCharNo.match(re);
  762. //-------------
  763. bState = false;
  764. for(j = 0; j < (matchMatrix.length-1); j++) {
  765. tmpStr = matchMatrix[j] + "";
  766. tmpLen = tmpStr.length;
  767. //---------------------------
  768. if (tmpStr.getTrim() == "") {
  769. bState = true;
  770. break;
  771. }
  772. }
  773. //----------------------------------------------------------
  774. if (model.getValue(sNode+"["+iNo+"]/cstecharchoi") == "Z") {
  775. if (model.getValue(sNode+"["+iNo+"]/cstecharno") == "-") {
  776. model.setValue(sNode+"["+iNo+"]/cstekindcd", "-"); // 수정 2008.08.26
  777. return false;
  778. } else {
  779. sCsteCnts = sCsteCharNo;
  780. }
  781. } else {
  782. if (bState) {
  783. sCsteCnts = sCsteCharNo;
  784. } else {
  785. sCsteCnts = sCsteChar + "." + sCsteCharNo;
  786. }
  787. }
  788. //--------------------------------------------------------------------------------------
  789. for (var iRowNo=1; iRowNo < getNodesetCount("/root/init/resncd/resncdlist"); iRowNo++) {
  790. sResnCnts = model.getValue("/root/init/resncd/resncdlist["+iRowNo+"]/resncnts");
  791. sResnCnts = sResnCnts.getTrim().replace("\n", "");
  792. if (sCsteCnts == sResnCnts) {
  793. model.setValue(sNode+"["+iNo+"]/cstekindcd", model.getValue("/root/init/resncd/resncdlist["+iRowNo+"]/resncd"));
  794. break;
  795. }
  796. //-------- 수정 2008.08.26 ---------------
  797. //root/init/resncd/resncdlist에 일치하는 경우가 없는 경우 sNode+"["+iNo+"]/cstekindcd 초기값 set
  798. if((iRowNo+1) == getNodesetCount("/root/init/resncd/resncdlist")) {
  799. model.setValue(sNode+"["+iNo+"]/cstekindcd", "-");
  800. }
  801. //-----------------------------------------
  802. }
  803. break;
  804. }
  805. }
  806. /* @group : Cassette일괄출력
  807. * @ver : 2008.01.11 (CMCDEV-0001)
  808. * @by : 유동철(ACK)
  809. * @-----------------------------------
  810. * @type : function
  811. * @access : public
  812. * @desc : 등록번호 입력 처리 Function
  813. */
  814. function fExeRefValKeyPress() {
  815. //-----------------------
  816. if(event.keyCode == 13) {
  817. model.makeValue("/root/init/refval", ipt_seaval.currentText);
  818. ipt_seaval.refresh();
  819. //----------------
  820. fGetAcptSpcList();
  821. }
  822. }
  823. /* @group : Cassette일괄출력
  824. * @ver : 2008.10.22 (CMCDEV-0001)
  825. * @by : 하만석(ACK)
  826. * @-----------------------------------
  827. * @type : function
  828. * @access : public
  829. * @desc : Hopper 변경 일괄 처리 Function
  830. */
  831. function fExeHopperKind() {
  832. var sNode = "/root/main/acptptno/acptptnolist"; // datagrid 설정
  833. //-----------------------------------------------------
  834. for (var iNo=1; iNo <= getNodesetCount(sNode); iNo++) {
  835. if (model.getValue(sNode+"["+iNo+"]/choi") == "true") { // grid 에서 선택된 항목만 hopper 값 변경
  836. model.setValue(sNode+"["+iNo+"]/hoppno", model.getValue("/root/init/choichopperval"));
  837. }
  838. }
  839. //---------------------
  840. grd_ptnolist.refresh();
  841. }
  842. function fExeCsteCharChoi() {
  843. var sNode = "/root/main/acptptno/acptptnolist";
  844. //-----------------------------------------------------
  845. for (var iNo=1; iNo <= getNodesetCount(sNode); iNo++) {
  846. if (model.getValue(sNode+"["+iNo+"]/choi") == "true") {
  847. model.setValue(sNode+"["+iNo+"]/cstecharchoi", model.getValue("/root/init/choicstechar"));
  848. }
  849. }
  850. //---------------------
  851. grd_ptnolist.refresh();
  852. }
  853. function fExeCsteCharKind() {
  854. var sNode = "/root/main/acptptno/acptptnolist";
  855. //-----------------------------------------------------
  856. for (var iNo=1; iNo <= getNodesetCount(sNode); iNo++) {
  857. if (model.getValue(sNode+"["+iNo+"]/choi") == "true") {
  858. model.setValue(sNode+"["+iNo+"]/cstekindcd", model.getValue("/root/init/choicstekindcd"));
  859. }
  860. }
  861. //---------------------
  862. grd_ptnolist.refresh();
  863. }
  864. function fExeToPtNoKeyPress() {
  865. //-----------------------
  866. if(event.keyCode == 13) {
  867. model.makeValue("/root/init/toptno", ipt_toptno.currentText);
  868. ipt_toptno.refresh();
  869. //----------------
  870. fGetAcptSpcList();
  871. }
  872. }
  873. /* @group : Cassette일괄출력
  874. * @ver : 2008.09.05 (CMCDEV-0001)
  875. * @by : 유동철(ACK)
  876. * @-----------------------------------
  877. * @type : function
  878. * @access : public
  879. * @desc : 블럭 및 슬라이드 건수 조회 처리 Function
  880. */
  881. function fGetCsteStats() {
  882. var sNode = "/root/main/cstestats/cstestatslist";
  883. //-----------------------
  884. grp_stats.visible = true;
  885. //--------------------------------
  886. model.removeNodeset("/root/send");
  887. model.removeNodeset(sNode);
  888. //-------------------
  889. model.makeValue("/root/send/instcd", getUserInfo("dutplceinstcd"));
  890. model.makeValue("/root/send/fromdd", model.getValue("/root/init/acptfromdd"));
  891. model.makeValue("/root/send/todd", model.getValue("/root/init/acpttodd"));
  892. submit("TRLPB00202");
  893. }
  894. function fExeHeaderChoi(pBizFlagCd) {
  895. var sNode = "/root/main/acptptno/acptptnolist";
  896. //--------------
  897. // 전체선택 처리
  898. if (grd_ptnolist.row == 0 && grd_ptnolist.col == 0) {
  899. //-----------------------------------------------------
  900. for (var iNo=1; iNo <= getNodesetCount(sNode); iNo++) {
  901. if (pBizFlagCd == "S") {
  902. model.setValue(sNode+"["+iNo+"]/choi", "true");
  903. } else {
  904. model.setValue(sNode+"["+iNo+"]/choi", "false");
  905. }
  906. }
  907. }
  908. //---------------------
  909. grd_ptnolist.refresh();
  910. }
  911. function fPrtnSlide() {
  912. //카세트 출력이 완료 되었는지 확인 후 슬라이드 출력.
  913. if(sEqFinish == "Y") {
  914. sCasteSlideflag = "S";
  915. fExeSocketSend();
  916. sEqFinish = "N";
  917. window.clearinterval(interval_id);
  918. }
  919. }
  920. ]]>
  921. </script>
  922. </xhtml:head>
  923. <xhtml:body guideline="1,1195;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  924. <group id="grp_tle" style="left:0px; top:0px; width:1195px; height:13px; ">
  925. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:150px; height:14px; ">Cassette일괄발행</caption>
  926. </group>
  927. <group id="grp_biz" scroll="auto" style="left:0px; top:40; width:1195px; height:744px; ">
  928. <group id="grp_sea" style="left:0px; top:10px; width:1194px; height:35px; vertical-align:top; ">
  929. <shape id="roundrect1" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1194px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
  930. <caption id="caption2" class="search_name" style="left:797; top:9px; width:86px; height:17px; ">접수일자 :</caption>
  931. <caption id="caption5" class="search_no_b" style="left:983; top:10px; width:12px; height:17px; ">~</caption>
  932. <line id="line13" class="line_4" style="x1:1107px; y1:7px; x2:1107px; y2:29px; "/>
  933. <input id="ipt_acptddfrom" ref="/root/init/acptfromdd" class="input_s_essential" navindex="7" inputtype="date" format="yyyy-mm-dd" mask="exclude" showmask="true" style="left:886; top:8px; width:94px; height:19px; ">
  934. <script type="javascript" ev:event="xforms-value-changed">
  935. <![CDATA[
  936. lpzfExeDateChange(ipt_fromyear, "/root/init/acptfromdd", "/root/init/fromyear");
  937. ]]>
  938. </script>
  939. </input>
  940. <input id="ipt_acptddto" ref="/root/init/acpttodd" class="input_s_essential" navindex="8" inputtype="date" format="yyyy-mm-dd" mask="exclude" showmask="true" style="left:998; top:8px; width:94px; height:19px; ">
  941. <script type="javascript" ev:event="xforms-value-changed">
  942. <![CDATA[
  943. lpzfExeDateChange(ipt_toyear, "/root/init/acpttodd", "/root/init/toyear");
  944. ]]>
  945. </script>
  946. </input>
  947. <caption id="caption1" class="search_name" style="left:535px; top:9px; width:86px; height:17px; ">등록번호 :</caption>
  948. <button id="btn_sea" accesskey="f4" class="btn1_letter2" navindex="9" style="left:1123px; top:7px; width:56px; height:22px; ">
  949. <caption>조회</caption>
  950. <script type="javascript" ev:event="DOMActivate">
  951. <![CDATA[
  952. fGetAcptSpcList();
  953. ]]>
  954. </script>
  955. </button>
  956. <select1 id="cbo_ptnocd" ref="/root/init/ptnocode" navindex="1" appearance="minimal" editmode="search" style="left:109px; top:8px; width:151px; height:19px; ">
  957. <choices>
  958. <itemset nodeset="/root/init/ptnocd/ptnocdlist">
  959. <label ref="ptnonm"/>
  960. <value ref="ptnocd"/>
  961. </itemset>
  962. </choices>
  963. </select1>
  964. <input id="ipt_fromptno" ref="/root/init/fromptno" class="text_center" navindex="3" maxlength="6" style="left:293px; top:8px; width:50px; height:19px; "/>
  965. <caption id="caption9" class="search_name" style="left:15px; top:9px; width:90px; height:17px; ">병리번호 :</caption>
  966. <caption id="caption10" class="search_no_b" style="left:346px; top:8px; width:12px; height:17px; ">~</caption>
  967. <input id="ipt_fromyear" ref="/root/init/fromyear" class="text_center" navindex="2" maxlength="2" style="left:263px; top:8px; width:27px; height:19px; "/>
  968. <input id="ipt_seaval" ref="/root/init/seaval" class="input_search" navindex="6" style="left:624px; top:8px; width:93px; height:19px; ">
  969. <script type="javascript" ev:event="onkeypress">
  970. <![CDATA[
  971. fExeRefValKeyPress();
  972. ]]>
  973. </script>
  974. </input>
  975. <input id="ipt_toyear" ref="/root/init/toyear" class="text_center" navindex="4" maxlength="2" style="left:361px; top:8px; width:27px; height:19px; "/>
  976. <input id="ipt_toptno" ref="/root/init/toptno" class="text_center" navindex="5" maxlength="6" style="left:391px; top:8px; width:50px; height:19px; ">
  977. <script type="javascript" ev:event="onkeypress">
  978. <![CDATA[
  979. fExeToPtNoKeyPress();
  980. ]]>
  981. </script>
  982. </input>
  983. </group>
  984. <line id="line1" class="line_1" style="x1:0px; y1:69px; x2:715px; y2:69px; "/>
  985. <caption id="caption3" class="tit_2" style="left:5px; top:54px; width:139px; height:14px; ">병리번호 목록</caption>
  986. <datagrid id="grd_ptnolist" nodeset="/root/main/acptptno/acptptnolist" class="datagrid2" caption="선&#xA;택^기관코드^ptno^병리번호^검체접수일자^검체접수번호^검체&#xA;번호^검 체 명^최종&#xA;번호^기존&#xA;블록수^최종내용^발행할&#xA;블록수^삭제&#xA;블록수^Cassette&#xA;문자(입력)^Cassette&#xA;문자^Cassette&#xA;문자1^Cassette&#xA;종류^Cassette&#xA;종류^Hopper^육 안&#xA;검사의사^검사명^spccd^spchistno^acptdd^acptno" colsep="^" colwidth="40, 0, 0, 80, 0, 0, 40, 0, 0, 0, 100, 50, 0, 0, 70, 70, 0, 70, 60, 0, 181, 0, 0, 0, 0" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheight="32" rowsep="|" selectionmode="free" navindex="10" style="left:0px; top:74px; width:715px; height:653; ">
  987. <col ref="choi" type="checkbox"/>
  988. <col ref="instcd"/>
  989. <col ref="ptno"/>
  990. <col class="text_center" ref="dispptno"/>
  991. <col ref="spcacptdd"/>
  992. <col ref="spcacptno"/>
  993. <col class="text_center" ref="spcacptseqno"/>
  994. <col ref="spcnm"/>
  995. <col class="text_center" ref="maxcsteno"/>
  996. <col class="text_center" ref="bfcstecnt"/>
  997. <col ref="maxcstecnts"/>
  998. <col class="text_center" ref="afcstecnt" type="input" maxlength="2"/>
  999. <col class="text_center" ref="delcstecnt" type="input" format="##" mask="exclude" maxlength="2" showmask="true"/>
  1000. <col ref="cstecharinpt" type="input" maxlength="5"/>
  1001. <col ref="cstecharuserinpt" type="input"/>
  1002. <col ref="cstecharchoi" type="combo" visibility="hidden">
  1003. <choices>
  1004. <itemset nodeset="/root/init/cstechar/cstecharlist">
  1005. <label ref="cnts"/>
  1006. <value ref="no"/>
  1007. </itemset>
  1008. </choices>
  1009. </col>
  1010. <col ref="cstecharno" type="combo">
  1011. <choices>
  1012. <itemset nodeset="/root/init/cstecharno/cstecharnolist">
  1013. <label ref="cnts"/>
  1014. <value ref="no"/>
  1015. </itemset>
  1016. </choices>
  1017. </col>
  1018. <col ref="cstekindcd" type="combo">
  1019. <choices>
  1020. <itemset nodeset="/root/init/resncd/resncdlist">
  1021. <label ref="resncnts"/>
  1022. <value ref="resncd"/>
  1023. </itemset>
  1024. </choices>
  1025. </col>
  1026. <col ref="hoppno" type="combo">
  1027. <choices>
  1028. <item>
  1029. <label>1</label>
  1030. <value>1</value>
  1031. </item>
  1032. <item>
  1033. <label>2</label>
  1034. <value>2</value>
  1035. </item>
  1036. <item>
  1037. <label>3</label>
  1038. <value>3</value>
  1039. </item>
  1040. <item>
  1041. <label>4</label>
  1042. <value>4</value>
  1043. </item>
  1044. <item>
  1045. <label>5</label>
  1046. <value>5</value>
  1047. </item>
  1048. <item>
  1049. <label>6</label>
  1050. <value>6</value>
  1051. </item>
  1052. </choices>
  1053. </col>
  1054. <col class="text_center" ref="grosdrnm"/>
  1055. <col ref="testnmlist"/>
  1056. <col ref="spccd"/>
  1057. <col ref="spchistno"/>
  1058. <col ref="acptdd"/>
  1059. <col ref="acptno"/>
  1060. <script type="javascript" ev:event="xforms-value-changed">
  1061. <![CDATA[
  1062. fExeCsteChange();
  1063. /*
  1064. //포커스 이동. && (grd_ptnolist.isCell(event.target))
  1065. if ( (grd_ptnolist.row >= grd_ptnolist.fixedRows) ) {
  1066. //if(event.keyCode == 13) {
  1067. if( grd_ptnolist.col == grd_ptnolist.colRef("cstekindcd")){
  1068. grd_ptnolist.col = grd_ptnolist.colRef("hoppno");
  1069. grd_ptnolist.editCell();
  1070. }
  1071. //}
  1072. }
  1073. */
  1074. ]]>
  1075. </script>
  1076. <script type="javascript" ev:event="onaftersort">
  1077. <![CDATA[
  1078. grd_ptnolist.gridToInstance();
  1079. ]]>
  1080. </script>
  1081. <script type="javascript" ev:event="xforms-select">
  1082. <![CDATA[
  1083. fExeHeaderChoi("S");
  1084. ]]>
  1085. </script>
  1086. <script type="javascript" ev:event="xforms-deselect">
  1087. <![CDATA[
  1088. fExeHeaderChoi("D");
  1089. ]]>
  1090. </script>
  1091. <script type="javascript" ev:event="onkeyup">
  1092. <![CDATA[
  1093. if ( (grd_ptnolist.row >= grd_ptnolist.fixedRows) && (grd_ptnolist.isCell(event.target))) {
  1094. if(event.keyCode == 13) {
  1095. if( grd_ptnolist.col == grd_ptnolist.colRef("afcstecnt")){
  1096. grd_ptnolist.col = grd_ptnolist.colRef("cstecharuserinpt");
  1097. grd_ptnolist.editCell();
  1098. } else if(grd_ptnolist.col == grd_ptnolist.colRef("cstecharuserinpt")) {
  1099. grd_ptnolist.col = grd_ptnolist.colRef("cstekindcd");
  1100. grd_ptnolist.editCell();
  1101. }
  1102. }
  1103. }
  1104. ]]>
  1105. </script>
  1106. </datagrid>
  1107. <caption id="caption7" class="tit_2" style="left:724px; top:54px; width:194px; height:14px; ">Cassette 발행 목록</caption>
  1108. <line id="line2" class="line_1" style="x1:719px; y1:69px; x2:1194px; y2:69px; "/>
  1109. <button id="btn_addcste" class="btn2_letter4" navindex="12" style="left:651px; top:49px; width:64px; height:19px; ">
  1110. <caption>정보전달</caption>
  1111. <script type="javascript" ev:event="DOMActivate">
  1112. <![CDATA[
  1113. fExeInfoSend();
  1114. ]]>
  1115. </script>
  1116. </button>
  1117. <datagrid id="grd_isscstelist" nodeset="/root/main/isscste/isscstelist" class="datagrid2" caption="선&#xA;택^기관코드^병리번호^병리번호^검체접수일자^검체접수번호'^검체&#xA;번호^블럭&#xA;번호^블럭&#xA;종류^Cassette내용^조직&#xA;갯수^Hopper^maxcsteno^bizflagcd^scrno^acptdd^acptno^testcd^acptitemno^slidno^spccd^spchistno^statsinclflagcd^slideflag" colsep="^" colwidth="30, 0, 0, 100, 0, 0, 0, 0, 0, 242, 0, 80, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 100" dataheight="23" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheight="32" rowsep="|" navindex="13" style="left:719px; top:74px; width:475px; height:653px; ">
  1118. <col ref="choi" type="checkbox"/>
  1119. <col ref="instcd"/>
  1120. <col ref="ptno"/>
  1121. <col class="text_center" ref="dispptno"/>
  1122. <col ref="spcacptdd"/>
  1123. <col ref="spcacptno"/>
  1124. <col class="text_center" ref="spcacptseqno"/>
  1125. <col class="text_center" ref="csteno"/>
  1126. <col ref="cstekindcd" type="combo">
  1127. <choices>
  1128. <itemset nodeset="/root/init/resncd/resncdlist">
  1129. <label ref="resncnts"/>
  1130. <value ref="resncd"/>
  1131. </itemset>
  1132. </choices>
  1133. </col>
  1134. <col ref="cstecnts" type="input"/>
  1135. <col class="text_center" ref="tisscnt" type="input"/>
  1136. <col ref="hoppno" type="combo">
  1137. <choices>
  1138. <item>
  1139. <label>1</label>
  1140. <value>1</value>
  1141. </item>
  1142. <item>
  1143. <label>2</label>
  1144. <value>2</value>
  1145. </item>
  1146. <item>
  1147. <label>3</label>
  1148. <value>3</value>
  1149. </item>
  1150. <item>
  1151. <label>4</label>
  1152. <value>4</value>
  1153. </item>
  1154. <item>
  1155. <label>5</label>
  1156. <value>5</value>
  1157. </item>
  1158. <item>
  1159. <label>6</label>
  1160. <value>6</value>
  1161. </item>
  1162. </choices>
  1163. </col>
  1164. <col ref="maxcsteno"/>
  1165. <col ref="bizflagcd"/>
  1166. <col ref="scrno"/>
  1167. <col ref="acptdd"/>
  1168. <col ref="acptno"/>
  1169. <col ref="testcd"/>
  1170. <col ref="acptitemno"/>
  1171. <col ref="slidno"/>
  1172. <col ref="spccd"/>
  1173. <col ref="spchistno"/>
  1174. <col ref="statsinclflagcd"/>
  1175. <col ref="slideflag" visibility="hidden"/>
  1176. <script type="javascript" ev:event="onaftersort">
  1177. <![CDATA[
  1178. grd_isscstelist.gridToInstance();
  1179. ]]>
  1180. </script>
  1181. <script type="javascript" ev:event="onkeyup">
  1182. <![CDATA[
  1183. //엔터 입력시 한줄아래 Cassette내용으로 포커스를 이동시켜준다.
  1184. if ( (grd_isscstelist.row >= grd_isscstelist.fixedRows) && (grd_isscstelist.isCell(event.target)) && (grd_isscstelist.col == grd_isscstelist.colRef("cstecnts"))) {
  1185. if(event.keyCode == 13) {
  1186. if(grd_isscstelist.row < (Number(grd_isscstelist.rows) - 1)){
  1187. grd_isscstelist.row = Number(grd_isscstelist.row) + 1;
  1188. grd_isscstelist.editCell();
  1189. }
  1190. }
  1191. }
  1192. ]]>
  1193. </script>
  1194. </datagrid>
  1195. <button id="btn_clear" class="btn2_letter3" navindex="14" style="left:1141px; top:49px; width:53px; height:19px; ">
  1196. <caption>초기화</caption>
  1197. <script type="javascript" ev:event="DOMActivate">
  1198. <![CDATA[
  1199. fExeIssDelListInitialize();
  1200. ]]>
  1201. </script>
  1202. </button>
  1203. <object id="socket" clsid="{81e9de7e-90be-4958-bbda-ac731c05aba8}" visibility="hidden" style="left:600px; top:40px; width:35px; height:30px; ">
  1204. <!-- 소켓 받은 메시지 이벤트 -->
  1205. <script type="javascript" ev:event="OnReceive(nDataLength, szID)">
  1206. <![CDATA[
  1207. ]]>
  1208. </script>
  1209. <!-- 소켓 에러 이벤트 -->
  1210. <script type="javascript" ev:event="OnError(lError, szMsg)">
  1211. <![CDATA[
  1212. alert("Error code = " + lError+"\nError Message : "+szMsg);
  1213. socket.close(); // 소켓 닫기
  1214. isConnected = false; // 접속 여부 false
  1215. sEqFinish = "Y";
  1216. ]]>
  1217. </script>
  1218. <!-- 소켓 연결 이벤트 -->
  1219. <script type="javascript" ev:event="OnConnect(szID)">
  1220. <![CDATA[
  1221. isConnected = true; // 접속 여부 false
  1222. if(sCasteSlideflag == "C") {
  1223. //카세트 출력
  1224. var sCsteNode = "/root/main/isscste/isscstelist";
  1225. //------------------------------------------------------------------
  1226. for (var iRowNo=1; iRowNo <= getNodesetCount(sCsteNode); iRowNo++) {
  1227. if (model.getValue(sCsteNode+"["+iRowNo+"]/choi") == "true") {
  1228. sSendMsg = "";
  1229. sSendMsg += model.getValue(sCsteNode+"["+iRowNo+"]/ptno") + "▦"; // 병리번호
  1230. sSendMsg += model.getValue(sCsteNode+"["+iRowNo+"]/dispptno") + "▦"; // 표시병리번호
  1231. sSendMsg += model.getValue(sCsteNode+"["+iRowNo+"]/spcacptseqno") + "▦"; // 검체일련번호
  1232. sSendMsg += model.getValue(sCsteNode+"["+iRowNo+"]/csteno") + "▦"; // 블럭번호
  1233. sSendMsg += "000" + "▦"; // 슬라이드번호
  1234. sSendMsg += model.getValue(sCsteNode+"["+iRowNo+"]/cstecnts") + "▦"; // 블럭내용
  1235. sSendMsg += model.getValue(sCsteNode+"["+iRowNo+"]/hoppno") + "▦"; // Hopper번호
  1236. sSendMsg += "C" + "▩";
  1237. socket.sendString(sSendMsg); // 전송한다.
  1238. }
  1239. }
  1240. //----------------------------------------------------
  1241. model.removeNodeset(sCsteNode);
  1242. grd_isscstelist.refresh();
  1243. } else {
  1244. var sCsteNode = "/root/main/slideinfo/slidelist";
  1245. var iMaxRowCnt = getNodesetCount(sCsteNode);
  1246. //------------------------------------------------------------------
  1247. for (var iRowNo=1 ; iRowNo <= iMaxRowCnt ; iRowNo++) {
  1248. sSendMsg = "";
  1249. sSendMsg += model.getValue(sCsteNode+"["+iRowNo+"]/ptno") + "▦"; // 병리번호
  1250. sSendMsg += model.getValue(sCsteNode+"["+iRowNo+"]/dispptno") + "▦"; // 표시병리번호
  1251. sSendMsg += model.getValue(sCsteNode+"["+iRowNo+"]/spcacptseqno") + "▦"; // 검체일련번호
  1252. sSendMsg += model.getValue(sCsteNode+"["+iRowNo+"]/csteno") + "▦"; // 블럭
  1253. sSendMsg += "001" + "▦"; // 슬라이드번호
  1254. sSendMsg += model.getValue(sCsteNode+"["+iRowNo+"]/prtnblocnm") + "▦"; // 블럭내용
  1255. sSendMsg += model.getValue(sCsteNode+"["+iRowNo+"]/cstecnts") + "▦";
  1256. //------------------
  1257. // 전송종료여부 설정
  1258. if (iRowNo == iMaxRowCnt) {
  1259. sSendMsg += "Y" + "▦";
  1260. } else {
  1261. sSendMsg += "N" + "▦";
  1262. }
  1263. //--------------------------------------------------------------
  1264. sSendMsg += model.getValue(sCsteNode+"["+iRowNo+"]/pid") + "▦"; // 환자번호
  1265. sSendMsg += model.getValue(sCsteNode+"["+iRowNo+"]/hngnm") + "▦"; // 환자명
  1266. sSendMsg += "-" + "▩";
  1267. socket.sendString(sSendMsg); // 전송한다.
  1268. }
  1269. //-----------------------------
  1270. model.removeNodeset(sCsteNode);
  1271. }
  1272. //----------
  1273. // 소켓 닫기
  1274. socket.close();
  1275. isConnected = false; // 접속 여부 false
  1276. sEqFinish = "Y";
  1277. ]]>
  1278. </script>
  1279. <!-- 소켓 close 이벤트 -->
  1280. <script type="javascript" ev:event="OnClose(szID)">
  1281. <![CDATA[
  1282. isConnected = false; // 접속 여부 false
  1283. sEqFinish = "Y";
  1284. ]]>
  1285. </script>
  1286. </object>
  1287. <select1 id="cmb_cstechar" ref="/root/init/choicstechar" navindex="11" visibility="hidden" appearance="minimal" style="left:310px; top:49px; width:70px; height:19px; ">
  1288. <choices>
  1289. <itemset nodeset="/root/init/cstechar/cstecharlist">
  1290. <label ref="cnts"/>
  1291. <value ref="no"/>
  1292. </itemset>
  1293. </choices>
  1294. <script type="javascript" ev:event="xforms-value-changed">
  1295. <![CDATA[
  1296. fExeCsteCharChoi();
  1297. ]]>
  1298. </script>
  1299. </select1>
  1300. <select1 id="cmb_hopkind" ref="/root/init/choichopperval" appearance="minimal" style="left:452px; top:49px; width:60px; height:19px; ">
  1301. <choices>
  1302. <item>
  1303. <label>1</label>
  1304. <value>1</value>
  1305. </item>
  1306. <item>
  1307. <label>2</label>
  1308. <value>2</value>
  1309. </item>
  1310. <item>
  1311. <label>3</label>
  1312. <value>3</value>
  1313. </item>
  1314. <item>
  1315. <label>4</label>
  1316. <value>4</value>
  1317. </item>
  1318. <item>
  1319. <label>5</label>
  1320. <value>5</value>
  1321. </item>
  1322. <item>
  1323. <label>6</label>
  1324. <value>6</value>
  1325. </item>
  1326. </choices>
  1327. <script type="javascript" ev:event="xforms-value-changed">
  1328. <![CDATA[
  1329. fExeHopperKind();
  1330. ]]>
  1331. </script>
  1332. </select1>
  1333. <select1 id="cmb_cstekind" ref="/root/init/choicstekindcd" appearance="minimal" style="left:381px; top:49px; width:70px; height:19px; ">
  1334. <choices>
  1335. <itemset nodeset="/root/init/resncd/resncdlist">
  1336. <label ref="resncnts"/>
  1337. <value ref="resncd"/>
  1338. </itemset>
  1339. </choices>
  1340. <script type="javascript" ev:event="xforms-value-changed">
  1341. <![CDATA[
  1342. fExeCsteCharKind();
  1343. ]]>
  1344. </script>
  1345. </select1>
  1346. <group id="grp_stats" visibility="hidden" style="left:75; top:0; width:325px; height:296px; border-color:#ff00ff; border-width:2px; border-style:solid; ">
  1347. <button id="btn_exit" class="btn4_letter2" style="left:262px; top:270px; width:56px; height:22px; background-image:../../../com/commonweb/images/btn4_letter2.gif; ">
  1348. <caption>닫기</caption>
  1349. <script type="javascript" ev:event="DOMActivate">
  1350. <![CDATA[
  1351. grp_stats.visible = false;
  1352. ]]>
  1353. </script>
  1354. </button>
  1355. <datagrid id="grd_stats" nodeset="/root/main/cstestats/cstestatslist" class="datagrid2" caption="기관코드^블럭종류^블럭수^슬라이드수" colsep="^" colwidth="0, 130, 80, 80" mergecellsfixedrows="bycolrec" rowsep="|" style="left:5px; top:5px; width:313px; height:262px; ">
  1356. <col ref="instcd"/>
  1357. <col ref="cstekind"/>
  1358. <col class="text_right" ref="cstecnt" format="#,###" mask="exclude" showmask="true"/>
  1359. <col class="text_right" ref="slidcnt" format="#,###" mask="exclude" showmask="true"/>
  1360. </datagrid>
  1361. </group>
  1362. <caption id="caption4" class="cell_1" style="left:937px; top:49px; width:65px; height:19px; text-align:left; vertical-align:middle; padding-left:10px; ">출력장비</caption>
  1363. <select1 id="cmb_slideqlist" ref="/root/init/eqseqno" appearance="minimal" style="left:1004px; top:49px; width:134px; height:19px; ">
  1364. <choices>
  1365. <itemset nodeset="/root/main/eqinfo/caeqlist">
  1366. <label ref="eqnm"/>
  1367. <value ref="eqseqno"/>
  1368. </itemset>
  1369. </choices>
  1370. </select1>
  1371. <datagrid id="datagrid1" nodeset="/root/main/slideinfo/slidelist" visibility="hidden" caption="instcd^ptno^spcacptdd^spcacptno^spcacptseqno^csteno^bloccnts^prntcsscnts^slidno^cstekindcd^cstecnts^workattr^prntcsscnts^cstecnts^ipttype^maxcsteno^bizflagcd^acptdd^acptno^testcd^acptitemno^scrno^spccd^spchistno^statsinclflagcd^relaptno^bloccnts^reladispptno^workflagcd^dispptno^prtnblocnm" colsep="^" colwidth="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" mergecellsfixedrows="bycolrec" rowsep="|" style="left:200px; top:375px; width:890px; height:240px; ">
  1372. <col ref="instcd"/>
  1373. <col ref="ptno"/>
  1374. <col ref="spcacptdd"/>
  1375. <col ref="spcacptno"/>
  1376. <col ref="spcacptseqno"/>
  1377. <col ref="csteno"/>
  1378. <col ref="bloccnts"/>
  1379. <col ref="prntcsscnts"/>
  1380. <col ref="slidno"/>
  1381. <col ref="cstekindcd"/>
  1382. <col ref="cstecnts"/>
  1383. <col ref="workattr"/>
  1384. <col ref="prntcsscnts"/>
  1385. <col ref="cstecnts"/>
  1386. <col ref="ipttype"/>
  1387. <col ref="maxcsteno"/>
  1388. <col ref="bizflagcd"/>
  1389. <col ref="acptdd"/>
  1390. <col ref="acptno"/>
  1391. <col ref="testcd"/>
  1392. <col ref="acptitemno"/>
  1393. <col ref="scrno"/>
  1394. <col ref="spccd"/>
  1395. <col ref="spchistno"/>
  1396. <col ref="statsinclflagcd"/>
  1397. <col ref="relaptno"/>
  1398. <col ref="bloccnts"/>
  1399. <col ref="reladispptno"/>
  1400. <col ref="workflagcd"/>
  1401. <col ref="dispptno"/>
  1402. <col ref="prtnblocnm"/>
  1403. </datagrid>
  1404. </group>
  1405. <group id="grp_btn" style="left:0px; top:13; width:1195px; height:27px; ">
  1406. <button id="btn_save" class="btn4_letter2" style="left:1138px; top:3; width:56px; height:22px; ">
  1407. <caption>삭제</caption>
  1408. <script type="javascript" ev:event="DOMActivate">
  1409. <![CDATA[
  1410. // 카세트 및 슬라이드 삭제여부 확인
  1411. if ( messageBox("선택한 Cassette(블럭) 삭제를", "Q004") == 6 ) {
  1412. fExeCsteIssDel("DELETE");
  1413. }
  1414. ]]>
  1415. </script>
  1416. </button>
  1417. <line id="line17" class="line_6" style="x1:0px; y1:25; x2:1194px; y2:25; "/>
  1418. <button id="btn_create" accesskey="f2" class="btn4_letter2" navindex="16" style="left:1079px; top:3; width:56px; height:22px; ">
  1419. <caption>발행</caption>
  1420. <script type="javascript" ev:event="DOMActivate">
  1421. <![CDATA[
  1422. fExeCsteIssDel("C");
  1423. ]]>
  1424. </script>
  1425. </button>
  1426. <button id="btn_cstestats" class="btn4_letter4" navindex="15" style="left:0; top:3px; width:56px; height:22px; ">
  1427. <caption>블럭통계</caption>
  1428. <script type="javascript" ev:event="DOMActivate">
  1429. <![CDATA[
  1430. fGetCsteStats();
  1431. grp_stats.visible = true;
  1432. ]]>
  1433. </script>
  1434. </button>
  1435. <caption id="cap_slide" style="left:951px; top:6px; width:124px; height:15px; ">슬라이드동시발행여부</caption>
  1436. <bool id="bol_slideflag" checkvalue="Y,N" ref="/root/init/slideflag" style="left:930px; top:4px; width:30px; height:20px; ">
  1437. <script type="javascript" ev:event="xforms-value-changed">
  1438. <![CDATA[
  1439. if(model.getValue("/root/init/slideflag") == "Y") {
  1440. cap_slid.visible = true;
  1441. cmb_slid.visible = true;
  1442. } else {
  1443. cap_slid.visible = false;
  1444. cmb_slid.visible = false;
  1445. }
  1446. cap_slid.refresh();
  1447. cmb_slid.refresh();
  1448. ]]>
  1449. </script>
  1450. </bool>
  1451. <caption id="cap_slid" class="cell_1" visibility="hidden" style="left:723px; top:4px; width:65px; height:19px; text-align:left; vertical-align:middle; padding-left:10px; ">출력장비</caption>
  1452. <select1 id="cmb_slid" ref="/root/init/slideeqseqno" visibility="hidden" appearance="minimal" style="left:790px; top:4px; width:134px; height:19px; ">
  1453. <choices>
  1454. <itemset nodeset="/root/main/eqinfo/slideqlist">
  1455. <label ref="eqnm"/>
  1456. <value ref="eqseqno"/>
  1457. </itemset>
  1458. </choices>
  1459. </select1>
  1460. </group>
  1461. </xhtml:body>
  1462. </xhtml:html>