123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.css" ?>
- <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">
- <xhtml:head>
- <xhtml:title>슬라이드 일괄발행</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <main>
- <isscste>
- <isscstelist>
- <choi/>
- <dispptno/>
- <cstecnts/>
- <afslidcnt/>
- <delslidcnt/>
- <prntstat/>
- <maxslidno/>
- <spcacptdd/>
- <spcacptno/>
- <spcacptseqno/>
- <spcnm/>
- <csteno/>
- <bfslidcnt/>
- <acptdd/>
- <acptno/>
- <spccd/>
- <spchistno/>
- <workflagcd/>
- <prtnblocnm/>
- <instcd/>
- <ptno/>
- <scrno/>
- <bizflagcd/>
- <pid/>
- <patnm/>
- </isscstelist>
- </isscste>
- <issslid>
- <issslidlist>
- <choi/>
- <ptnochoi/>
- <instcd/>
- <ptno/>
- <dispptno/>
- <spcacptdd/>
- <spcacptno/>
- <spcacptseqno/>
- <csteno/>
- <prntcsscnts/>
- <slidno/>
- <cstekindcd/>
- <cstecnts/>
- <workattr/>
- <ipttype/>
- <maxcsteno/>
- <bizflagcd/>
- <acptdd/>
- <acptno/>
- <testcd/>
- <acptitemno/>
- <scrno/>
- <spccd/>
- <spchistno/>
- <statsinclflagcd/>
- <relaptno/>
- <bloccnts/>
- <reladispptno/>
- <workflagcd/>
- <csteorgcnts/>
- <pid/>
- <patnm/>
- </issslidlist>
- </issslid>
- <eqinfo>
- <caeqlist>
- <eqnm/>
- <eqip/>
- <eqport/>
- <eqflag/>
- <eqseqno/>
- <resncd/>
- <baseflagcd/>
- </caeqlist>
- <slideqlist>
- <eqnm/>
- <eqip/>
- <eqport/>
- <eqflag/>
- <eqseqno/>
- <resncd/>
- <baseflagcd/>
- </slideqlist>
- </eqinfo>
- </main>
- <send/>
- <init>
- <ptnocode/>
- <fromyear/>
- <fromptno/>
- <toyear/>
- <toptno/>
- <acptfromdd/>
- <acpttodd/>
- <seameth/>
- <seaval/>
- <blockind/>
- <prtflag/>
- <sysdt>
- <sysdtinfo>
- <sysdd/>
- <systm/>
- </sysdtinfo>
- </sysdt>
- <ptnocd>
- <ptnocdlist>
- <instcd/>
- <ptnocd/>
- <ptnonm/>
- </ptnocdlist>
- </ptnocd>
- <userinfo>
- <userinfolist>
- <userid/>
- <usernm/>
- <jobkindcd/>
- </userinfolist>
- </userinfo>
- <hospenv>
- <hospenvinfo>
- <instcd/>
- <lendrtnterm/>
- <recvqualmthdcd/>
- <plgydeptcd/>
- <plgyteamcd/>
- <doctjobgradcd/>
- <teamjobgradcd/>
- </hospenvinfo>
- </hospenv>
- <resncd>
- <resncdlist>
- <instcd/>
- <baseflagcd/>
- <resncd/>
- <resncnts/>
- </resncdlist>
- </resncd>
- <testcd>
- <testcdlist>
- <instcd/>
- <ptno/>
- <acptdd/>
- <acptno/>
- <acptitemno/>
- <testcd/>
- <testnm/>
- <workflagcd/>
- <workattr/>
- </testcdlist>
- </testcd>
- <isscnt/>
- <eqseqno/>
- <blocslidcmd/>
- <bloccmb/>
- <slidcmb/>
- <popupmenu>
- <item>
- <name>선택</name>
- <func>fSelectList</func>
- </item>
- <item>
- <name>해제</name>
- <func>fDeSelectList</func>
- </item>
- </popupmenu>
- <popupmenu2>
- <item>
- <name>선택</name>
- <func>fSelectSlideList</func>
- </item>
- <item>
- <name>해제</name>
- <func>fDeSelectSlideList</func>
- </item>
- </popupmenu2>
- <choicstekindcd/>
- <bcodeprnt/>
- <prntyn/>
- <seabasecd/>
- </init>
- <hidden>
- <userdeptcd/>
- <prtndirect>1</prtndirect>
- </hidden>
- <temp>
- <testcd>
- <testcdlist>
- <instcd/>
- <ptno/>
- <acptdd/>
- <acptno/>
- <acptitemno/>
- <testcd/>
- <testnm/>
- <workflagcd/>
- <workattr/>
- </testcdlist>
- </testcd>
- <sendallyn/>
- <ext/>
- <resncd>
- <resncdlist/>
- </resncd>
- </temp>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- fExeInitialize();
- ]]>
- </script>
- <submission id="TRLPZ00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/init/hospenv/hospenvinfo"/>
- <submission id="TRLPZ00102" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/init/sysdt/sysdtinfo"/>
- <submission id="TRLPZ00103" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/init/resncd/resncdlist"/>
- <submission id="TRLPZ00105" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/init/userinfo/userinfolist"/>
- <submission id="TRLPZ00109" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/init/ptnocd/ptnocdlist"/>
- <submission id="TRLPB00701" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/isscste/isscstelist"/>
- <submission id="TXLPB00701" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/message"/>
- <submission id="TRLPB00702" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/init/testcd/testcdlist"/>
- <submission id="TRLPC01802" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/eqinfo"/>
- <submission id="TXLPB00702" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/message"/>
- </model>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
- <script type="javascript" src="../../../lis/commonweb/js/LPZ001.js"/>
- <script type="javascript">
- <![CDATA[
- var sRefPtno = ""; //오른쪽 마우스 버튼을 이용하여 관련검사조회시 사용.
-
- /* @group : 슬라이드 일괄발행
- * @ver : 2007.02.12 (CMCDEV-0001)
- * @by : 유동철(ACK)
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 초기화 Function
- */
- function fExeInitialize() {
-
- var sCurDate = "";
-
- //---------------------
- // Instance Node 초기화
- model.removeNodeset("/root/main/isscste/isscstelist"); // 발행 Cassette(블럭) 목록 초기화
- model.removeNodeset("/root/main/issslid/issslidlist"); // 발행 및 삭제 슬라이드목록 초기화
-
- //--------------------------------
- model.removeNodeset("/root/send");
- model.makeValue("/root/send/instcd", getUserInfo("dutplceinstcd"));
- submit("TRLPZ00101", false);
- submit("TRLPZ00109", false);
-
- //---------------------------------------------------------
- // 병원환경정보를 취득하여 병리과와 병리팀 코드를 편집한다.
- lpzfUserDeptCd("/root/init/hospenv/hospenvinfo", "/root/hidden");
- //----------------------------------------------------------------------------------
- model.makeValue("/root/send/userdeptcd", model.getValue("/root/hidden/userdeptcd"));
- model.makeValue("/root/send/doctjobgradcd", model.getValue("/root/init/hospenv/hospenvinfo/doctjobgradcd"));
- model.makeValue("/root/send/teamjobgradcd", model.getValue("/root/init/hospenv/hospenvinfo/teamjobgradcd"));
- submit("TRLPZ00105", false);
-
- //------------------------------------------
- // Cassette(블록), Slide(슬라이드), 블록번호, 슬라이드내용 목록 조회
- model.makeValue("/root/send/baseflagcd", "'82', 'S1', 'S2'");
- submit("TRLPZ00103");
- model.removeNodeset("/root/init/resncd/resncdlist[resncd='ZZZZ']");
-
- //슬라이드 장비 조회
- model.makeValue("/root/send/instcd", getUserInfo("dutplceinstcd")); //instcd
- model.makeValue("/root/send/seaflagcd", "0"); //"0:전체, 1:카세트, 2:슬라이드"
- submit("TRLPC01802");
- cmb_slideqlist.select(0);
-
- //---------------------
- // 시스템 현재일시를 조회
- fExeSysDtSet();
-
- //------------------------------------------------------------
- sCurDate = model.getValue("/root/init/sysdt/sysdtinfo/sysdd");
-
- //-------------------------------------------
- model.makeValue("/root/init/seameth", "1"); // 검색방법 초기화(0:병리번호, 1:등록번호)
- model.makeValue("/root/init/seaval", ""); // 검색값 초기화
- model.makeValue("/root/init/blockind", "0"); // 블럭종류(0:일반,1:가상)
- model.makeValue("/root/init/ptnocode", "");
- model.makeValue("/root/init/fromyear", sCurDate.substr(2,2));
- model.makeValue("/root/init/toyear", sCurDate.substr(2,2));
- model.makeValue("/root/init/fromptno", "");
- model.makeValue("/root/init/toptno", "");
- model.makeValue("/root/init/prtflag", "1");
- model.makeValue("/root/init/prntyn", "1"); // 슬라이드 발행된 자료만 조회
- model.makeValue("/root/init/bcodeprnt", "B"); // Zebra바코드 출력(Default)
- model.makeValue("/root/init/seabasecd", "1"); // 1:조직만 조회
-
- chballyn.value = 'Y';
-
- grd_issslidlist.fixedcellcheckbox(0, 1) = true;
- grd_cstelist.fixedcellcheckbox(0, 2) = true;
-
- //-------------
- model.refresh();
- }
-
- /* @group : 슬라이드 일괄발행
- * @ver : 2007.02.12 (CMCDEV-0001)
- * @by : 유동철(ACK)
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 시스템일시 설정 처리 Function
- */
- function fExeSysDtSet() {
- //-------------------
- submit("TRLPZ00102"); // 시스템 현재일시를 조회
-
- model.makeValue("/root/init/acptfromdd", model.getValue("/root/init/sysdt/sysdtinfo/sysdd"));
- model.makeValue("/root/init/acpttodd", model.getValue("/root/init/sysdt/sysdtinfo/sysdd"));
- }
-
- /* @group : 슬라이드 일괄발행
- * @ver : 2007.05.23 (CMCDEV-0001)
- * @by : 유동철(ACK)
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 접수검체 목록 조회 처리 Function
- */
- function fGetIssCsteList() {
- var sTemp = "";
- var sRefVal = model.getValue("/root/init/seaval");
- var sFromDD = model.getValue("/root/init/acptfromdd");
- var sToDD = model.getValue("/root/init/acpttodd");
-
- //------------------------------------------
- // 등록번호는 최소 4자리 이상 입력하여야 함.
- if (sRefVal.length> 0) {
- if (sRefVal.length < 4) {
- messageBox("등록번호는 최소 4자 이상 입력하여 주십시오! 조회를 ", "E001");
- return false;
- }
- }
-
- //------------------------------------------------
- if (model.getValue("/root/init/ptnocode") != "") {
-
- //------------------------------------------------
- if (model.getValue("/root/init/fromyear") == "") {
- model.makeValue("/root/init/fromyear", sFromDD.substr(2,2));
- } else {
- sTemp = model.getValue("/root/init/fromyear");
- model.makeValue("/root/init/fromyear", sTemp.getLeftPad(2, "0"));
- }
-
- //----------------------------------------------
- if (model.getValue("/root/init/toyear") == "") {
- model.makeValue("/root/init/toyear", sToDD.substr(2,2));
- } else {
- sTemp = model.getValue("/root/init/toyear");
- model.makeValue("/root/init/toyear", sTemp.getLeftPad(2, "0"));
- }
-
- //------------------------------------------------
- if (model.getValue("/root/init/fromptno") == "") {
- model.makeValue("/root/init/fromptno", "000000");
- } else {
- sTemp = model.getValue("/root/init/fromptno");
- model.makeValue("/root/init/fromptno", sTemp.getLeftPad(6, "0"));
- }
-
- //----------------------------------------------
- if (model.getValue("/root/init/toptno") == "") {
- model.makeValue("/root/init/toptno", "999999");
- } else {
- sTemp = model.getValue("/root/init/toptno");
- model.makeValue("/root/init/toptno", sTemp.getLeftPad(6, "0"));
- }
- }
-
- //--------------------------------------------
- sTemp = model.getValue("/root/init/ptnocode");
-
- //--------------------------------
- model.removeNodeset("/root/send");
- model.removeNodeset("/root/main/isscste/isscstelist");
-
- //---------------------------------------------------------------------
- model.makeValue("/root/send/instcd", getUserInfo("dutplceinstcd"));
- model.makeValue("/root/send/acptfromdd", model.getValue("/root/init/acptfromdd"));
- model.makeValue("/root/send/acpttodd", model.getValue("/root/init/acpttodd"));
- model.makeValue("/root/send/seamthd", model.getValue("/root/init/seameth"));
- model.makeValue("/root/send/seaval", model.getValue("/root/init/seaval"));
- model.makeValue("/root/send/blockind", model.getValue("/root/init/blockind"));
- model.makeValue("/root/send/ptnocode", sTemp.replace("-", ""));
- model.makeValue("/root/send/fromyear", model.getValue("/root/init/fromyear"));
- model.makeValue("/root/send/fromptno", model.getValue("/root/init/fromptno"));
- model.makeValue("/root/send/toyear", model.getValue("/root/init/toyear"));
- model.makeValue("/root/send/toptno", model.getValue("/root/init/toptno"));
- model.makeValue("/root/send/seabasecd", model.getValue("/root/init/seabasecd"));
-
- //---------------------------
- submit("TRLPB00701", false);
-
- if ( model.getValue("/root/init/prntyn") == "1" ) {
- model.removeNodeset("/root/main/isscste/isscstelist[maxslidno != '000']");
- }
-
- //---------------------
- grd_cstelist.refresh();
- model.refresh();
- }
-
- /* @group : 슬라이드 일괄발행
- * @ver : 2007.05.23 (CMCDEV-0001)
- * @by : 유동철(ACK)
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 슬라이드 생성정보 전달 처리 Function
- */
- function fExeInfoSend()
- {
- var iCurCnt = -1;
- var iIssCnt = -1;
- var iDelCnt = -1;
- var iLastRowNo = -1;
- var iLastSlidNo = -1;
- var iLoopCnt = -1;
- var sPtNo = "";
- var sTempPtNo = "";
- var sPrtnCsStr = "";
-
- var strCssNm = ""; // 정보전달시 중복 블럭 삭제..
- var strCssTxt = ""; // 중복블럭 카세트 내용
-
- //-------------------------------------------------
- var strSrcNode = "/root/main/isscste/isscstelist";
- var strDescNode = "/root/main/issslid/issslidlist";
-
- //-------------------------------------------------------------------
- for (var iRowNo=1; iRowNo <= getNodesetCount(strSrcNode); iRowNo++)
- {
- if ( model.getValue(strSrcNode+"["+iRowNo+"]/choi") == "true") {
- //--------------------------------------------------------------------------
- iIssCnt = parseInt(model.getValue(strSrcNode+"[" + iRowNo + "]/afslidcnt"));
- iDelCnt = parseInt(model.getValue(strSrcNode+"[" + iRowNo + "]/delslidcnt"));
-
- //----------------------------------------------------------
- // 발행Slide 수 와 삭제 Slide 수 가 동시에 입력되면 처리불가
- if (iIssCnt > 0 && iDelCnt > 0)
- {
- messageBox("발행 슬라이드 수 와 삭제 슬라이드 수 를 동시에 처리", "E001");
- return false;
- }
-
- //---------------------------------
- // 발행 블록 수 를 입력한 경우 처리
- if (iIssCnt > 0 || iDelCnt > 0)
- {
- //----------------------------------------------------------------
- if (sTempPtNo != model.getValue(strSrcNode+"[" + iRowNo + "]/ptno"))
- {
- sPtNo += "'" + model.getValue(strSrcNode+"[" + iRowNo + "]/ptno") + "', "
- sTempPtNo = model.getValue(strSrcNode+"[" + iRowNo + "]/ptno");
- }
-
- //----------------------------------------
- iLastRowNo = getNodesetCount(strDescNode);
- iLastSlidNo = parseInt(model.getValue(strSrcNode+"[" + iRowNo + "]/maxslidno"));
- // iLastSlidNo = 0;
- model.makeValue(strSrcNode+"[" + iRowNo + "]/prntstat", "true")
-
- //----------------------------------
- if (iIssCnt > 0) iLoopCnt = iIssCnt;
- if (iDelCnt > 0) iLoopCnt = iDelCnt;
-
- //--------------------------------------
- for (var iNo=1; iNo <= iLoopCnt; iNo++)
- {
- grd_issslidlist.addRow(false,true);
-
- //-----------------------------------------
- iCurCnt = Number(iLastRowNo)+parseInt(iNo);
-
- //--------------------------------------------------------------------
- model.makeValue(strDescNode+"[" + iCurCnt + "]/choi", "true");
- model.makeValue(strDescNode+"[" + iCurCnt + "]/ptnochoi", "false");
- model.makeValue(strDescNode+"[" + iCurCnt + "]/instcd", model.getValue(strSrcNode+"[" + iRowNo + "]/instcd"));
- model.makeValue(strDescNode+"[" + iCurCnt + "]/ptno", model.getValue(strSrcNode+"[" + iRowNo + "]/ptno"));
- model.makeValue(strDescNode+"[" + iCurCnt + "]/dispptno", model.getValue(strSrcNode+"[" + iRowNo + "]/dispptno"));
- model.makeValue(strDescNode+"[" + iCurCnt + "]/spcacptdd", model.getValue(strSrcNode+"[" + iRowNo + "]/spcacptdd"));
- model.makeValue(strDescNode+"[" + iCurCnt + "]/spcacptno", model.getValue(strSrcNode+"[" + iRowNo + "]/spcacptno"));
- model.makeValue(strDescNode+"[" + iCurCnt + "]/spcacptseqno", model.getValue(strSrcNode+"[" + iRowNo + "]/spcacptseqno"));
-
- if (model.getValue("/root/init/blockind") == "0") {
- model.makeValue(strDescNode+"[" + iCurCnt + "]/csteno", model.getValue(strSrcNode+"[" + iRowNo + "]/csteno"));
- } else {
- model.makeValue(strDescNode+"[" + iCurCnt + "]/csteno", "000");
- }
-
- //----------------
- if (iIssCnt > 0)
- {
- model.makeValue(strDescNode+"[" + iCurCnt + "]/slidno", (iNo+iLastSlidNo).toString().getLeftPad(3, "0"));
- }
- else if (iDelCnt > 0)
- {
- model.makeValue(strDescNode+"[" + iCurCnt + "]/slidno", (iLastSlidNo).toString().getLeftPad(3, "0"));
- iLastSlidNo--;
- }
-
- //---------------------------------------------------------------
- switch ( model.getValue(strSrcNode+"["+iRowNo + "]/workflagcd") )
- {
- case "1001" :
- case "1002" :
- model.makeValue(strDescNode+"["+iCurCnt+"]/cstekindcd", "1001");
- model.makeValue(strDescNode+"["+iCurCnt+"]/cstecnts", "");
- break;
-
- case "1003" :
- if (iLoopCnt > 1) {
- if (iNo == 1) {
- //model.makeValue(strDescNode+"["+iCurCnt+"]/cstekindcd", "1001");
- model.makeValue(strDescNode+"["+iCurCnt+"]/cstekindcd", "1002");
- model.makeValue(strDescNode+"["+iCurCnt+"]/cstecnts", "");
- } else {
- model.makeValue(strDescNode+"["+iCurCnt+"]/cstekindcd", "1002");
- model.makeValue(strDescNode+"["+iCurCnt+"]/cstecnts", "");
- }
- } else {
- model.makeValue(strDescNode+"["+iCurCnt+"]/cstekindcd", "1002");
- model.makeValue(strDescNode+"["+iCurCnt+"]/cstecnts", "");
- }
- break;
-
- default :
- model.makeValue(strDescNode+"["+iCurCnt+"]/cstekindcd", "1001");
- model.makeValue(strDescNode+"["+iCurCnt+"]/cstecnts", "H&E");
- break;
- }
-
- model.makeValue(strDescNode+"["+iCurCnt+"]/tisscnt", "1");
- model.makeValue(strDescNode+"["+iCurCnt+"]/maxslidno", model.getValue(strSrcNode+"[" + iRowNo + "]/maxslidno"));
- model.makeValue(strDescNode+"["+iCurCnt+"]/acptdd", model.getValue(strSrcNode+"[" + iRowNo + "]/acptdd"));
- model.makeValue(strDescNode+"["+iCurCnt+"]/acptno", model.getValue(strSrcNode+"[" + iRowNo + "]/acptno"));
- model.makeValue(strDescNode+"["+iCurCnt+"]/spccd", model.getValue(strSrcNode+"[" + iRowNo + "]/spccd"));
- model.makeValue(strDescNode+"["+iCurCnt+"]/spchistno", model.getValue(strSrcNode+"[" + iRowNo + "]/spchistno"));
- model.makeValue(strDescNode+"["+iCurCnt+"]/testcd", "-");
- model.makeValue(strDescNode+"["+iCurCnt+"]/acptitemno", "0");
- model.makeValue(strDescNode+"["+iCurCnt+"]/workattr", "-");
- model.makeValue(strDescNode+"["+iCurCnt+"]/scrno", "20");
- model.makeValue(strDescNode+"["+iCurCnt+"]/statsinclflagcd", "0");
- model.makeValue(strDescNode+"["+iCurCnt+"]/relaptno", "-");
- model.makeValue(strDescNode+"["+iCurCnt+"]/bloccnts", model.getValue(strSrcNode+"["+iRowNo+"]/cstecnts"));
- model.makeValue(strDescNode+"["+iCurCnt+"]/workflagcd", model.getValue(strSrcNode+"["+iRowNo+"]/workflagcd"));
- model.makeValue(strDescNode+"["+iCurCnt+"]/pid", model.getValue(strSrcNode+"["+iRowNo+"]/pid"));
- model.makeValue(strDescNode+"["+iCurCnt+"]/patnm", model.getValue(strSrcNode+"["+iRowNo+"]/patnm"));
-
- //sPrtnCsStr = model.getValue(strSrcNode+"["+iRowNo+"]/prtnblocnm");
- //if (sPrtnCsStr.length < 1 )
- //{
- if ( model.getValue(strSrcNode+"["+iRowNo + "]/workflagcd") == "1003" ) {
- model.makeValue(strDescNode+"["+iCurCnt+"]/prntcsscnts", "A");
- } else {
- model.makeValue(strDescNode+"["+iCurCnt+"]/prntcsscnts", model.getValue(strSrcNode+"["+iRowNo+"]/cstecnts"));
- }
- //}
- //else
- //{
- // model.makeValue(strDescNode+"["+iCurCnt+"]/prntcsscnts", sPrtnCsStr);
- //}
- }
- }
- }
-
- //-------------------
- // 전달된 블럭 초기화
- model.makeValue(strSrcNode+"["+iRowNo+"]/choi", "false");
- }
- //--------------
- model.refresh();
- }
-
- /* @group : 슬라이드 일괄발행
- * @ver : 2007.05.24 (CMCDEV-0001)
- * @by : 유동철(ACK)
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 블럭 생성정보 전달 처리 Function
- */
- function fExeSlidIssDel(pBizFlagCd) {
-
- var sRelaPtNo = "";
-
- //--------------------------------
- model.removeNodeset("/root/send");
-
- //--------------------------------
- //카세트 및 슬라이드 삭제
- if(pBizFlagCd == "SMLPB00700_D") {
- //----------------------------
- grd_cstelist.clearStatus();
- //----------------------------------------------------------------------------------------
- for (var iRowNo=1; iRowNo <= getNodesetCount("/root/main/isscste/isscstelist"); iRowNo++) {
-
- if (model.getValue("/root/main/isscste/isscstelist[" + iRowNo + "]/choi") == "true") {
- model.makeValue("/root/main/isscste/isscstelist[" + iRowNo + "]/bizflagcd", pBizFlagCd);
- model.makeValue("/root/main/isscste/isscstelist[" + iRowNo + "]/scrno", "20");
- grd_cstelist.addStatus(iRowNo, "delete");
- }
- }
-
- //-------------------------------------------------------------------------
- model.makeValue("/root/send/isscstelist", grd_cstelist.getUpdateData());
-
- if (submit("TXLPB00702")) {
- messageBox("Cassette(블럭) 및 슬라이드(Slide) 삭제가 ", "I002");
-
- //------------------------------------
- // 슬라이드(Slide) 생성 후 자료 초기화
- fGetIssCsteList();
- }
-
- } else {
-
- //----------------------------
- grd_issslidlist.clearStatus();
-
- //----------------------------------------------------------------------------------------
- for (var iRowNo=1; iRowNo <= getNodesetCount("/root/main/issslid/issslidlist"); iRowNo++) {
- if (model.getValue("/root/main/issslid/issslidlist[" + iRowNo + "]/choi") == "true") {
- model.makeValue("/root/main/issslid/issslidlist[" + iRowNo + "]/bizflagcd", pBizFlagCd);
- model.makeValue("/root/main/issslid/issslidlist[" + iRowNo + "]/scrno", "20");
- grd_issslidlist.addStatus(iRowNo, "insert");
- }
- }
-
- //-------------------------------------------------------------------------
- model.makeValue("/root/send/issslidlist", grd_issslidlist.getUpdateData());
- if (submit("TXLPB00701")) {
- messageBox("슬라이드(Slide) 발행 및 삭제가 ", "I002");
-
- //-----------------------------
- // Slide Labeler 장비 Interface
- if (pBizFlagCd == "SMLPB00700_C") {
- fExeSlidIss();
- }
-
- //-------------------------------------
- // 슬라이드(Slide) 생성 후 자료 초기화
- //model.removeNodeset("/root/main/issslid/issslidlist");
- //grd_issslidlist.rebuild();
- fGetIssCsteList();
- }
- }
- }
-
- /* @group : 슬라이드 일괄발행
- * @ver : 2007.05.24 (CMCDEV-0001)
- * @by : 유동철(ACK)
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 발행 및 삭제Cassette목록 초기화 처리 Function
- */
- function fExeIssDelListInitialize() {
- model.removeNodeset("/root/main/issslid/issslidlist");
- grd_issslidlist.rebuild();
- }
-
- /* @group : 슬라이드 일괄발행
- * @ver : 2007.05.24 (CMCDEV-0001)
- * @by : 유동철(ACK)
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 발행 및 삭제Cassette목록 초기화 처리 Function
- */
- function fExeKeyPress() {
-
- var iInputVal = -1;
- var strNode = "/root/main/issslid/issslidlist";
-
- //-------------------------------
- //if (grd_issslidlist.col == 12) {
- //줄번호생성으로 수정
- // if (grd_issslidlist.col == 13) {
- if (grd_issslidlist.col == 14) {
-
- //----------------------------------------------------------------------------------------
- if (model.getValue(strNode + "[" + grd_issslidlist.row + "]/ipttype") == "") return false;
-
- //----------------------------------------------------------------------------
- iInputVal = model.getValue(strNode + "[" + grd_issslidlist.row + "]/ipttype");
- iInputVal = iInputVal.getLeftPad(1, "1000");
- //---------------------------------------------
- iInputVal = Number("1000") + Number(iInputVal);
- if (event.keyCode == 13) {
-
- model.makeValue(strNode+"["+grd_issslidlist.row+"]/cstekindcd", iInputVal);
- //----------------------
- if (iInputVal == 1001) {
- model.makeValue(strNode+"["+grd_issslidlist.row+"]/cstecnts", "");
- } else {
- model.makeValue(strNode+"["+grd_issslidlist.row+"]/cstecnts", model.getValue("/root/init/resncd/resncdlist[resncd='"+iInputVal+"']/resncnts"));
- }
-
- if (getNodesetCount("/root/main/issslid/issslidlist") > grd_issslidlist.row) {
- grd_issslidlist.row += 1;
- //grd_issslidlist.col= 12;
- // grd_issslidlist.col= 13; //줄번호생성으로 수정
- grd_issslidlist.col= 14;
- grd_issslidlist.editCell();
- }
- }
- }
- }
- /* @group : 슬라이드 일괄발행
- * @ver : 2007.05.28 (CMCDEV-0001)
- * @by : 유동철(ACK)
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : Cassette목록 Click 처리 Function
- */
- function fExeCsteListClick() {
-
- var sState = "";
- var sSrcNode = "/root/main/isscste/isscstelist";
- var sDescNode = "/root/main/issslid/issslidlist";
-
- //--------------------------------------
- if (grd_cstelist.row <= 0) return false;
- if (model.getValue("/root/main/isscste/isscstelist[" + grd_cstelist.row + "]/ptno") == "") return false;
-
- //------------------------------------------------------------------
- for (var iRowNo=1; iRowNo <= getNodesetCount(sDescNode); iRowNo++) {
- if (model.getValue(sSrcNode+"[" + grd_cstelist.row + "]/ptno") == model.getValue(sDescNode+"[" + iRowNo + "]/ptno")) {
- model.makeValue(sDescNode + "[" + iRowNo + "]/choi", model.getValue(sSrcNode+"[" + grd_cstelist.row + "]/prntstat"));
- }
- }
- }
-
- /* @group : 슬라이드 일괄발행
- * @ver : 2007.05.28 (CMCDEV-0001)
- * @by : 유동철(ACK)
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 검사항목 선택 처리 Function
- */
- function fExeTestCdChange(pRowNo) {
-
- var sWorkAttr = "";
- var strSrcNode = "/root/temp/testcd/testcdlist";
- var strSrcNode2 = "/root/init/testcd/testcdlist";
- var strDescNode = "/root/main/issslid/issslidlist";
- var strPopupNode = "/root/temp/popupmenu/item";
-
- switch (grd_issslidlist.col) {
- //case 9 :
- // case 10 : // 줄번호 생성으로 수정
- case 11:
- if (model.getValue(strDescNode+"["+pRowNo+"]/cstekindcd") == "1001") {
- model.makeValue(strDescNode + "[" + pRowNo + "]/cstecnts", "");
- } else {
- model.makeValue(strDescNode + "[" + pRowNo + "]/cstecnts", model.getValue("/root/init/resncd/resncdlist[resncd='" + model.getValue(strDescNode + "[" + pRowNo + "]/cstekindcd") + "']/resncnts"));
- }
-
- model.makeValue(strDescNode + "[" + pRowNo + "]/acptdd", "-");
- model.makeValue(strDescNode + "[" + pRowNo + "]/acptno", "0");
- model.makeValue(strDescNode + "[" + pRowNo + "]/testcd", "-");
- model.makeValue(strDescNode + "[" + pRowNo + "]/acptitemno", "0");
- model.makeValue(strDescNode + "[" + pRowNo + "]/relaptno", "-");
- model.makeValue(strDescNode + "[" + pRowNo + "]/workattr", "");
- break;
-
- //case 10 : cstekindcd
- case grd_issslidlist.colRef("cstekindcd") :
- if (model.getValue(strDescNode+"["+pRowNo+"]/cstekindcd") == "1009" ||
- model.getValue(strDescNode+"["+pRowNo+"]/cstekindcd") == "1010" ||
- model.getValue(strDescNode+"["+pRowNo+"]/cstekindcd") == "1011") { // 조직
- fExePtNoTestNmSet(model.getValue(strDescNode+"["+pRowNo+"]/ptno"), strSrcNode2, strPopupNode);
-
- } else if (model.getValue(strDescNode+"["+pRowNo+"]/workflagcd") == "1001") { // 조직
-
- if (model.getValue(strDescNode+"["+pRowNo+"]/cstekindcd") == "1001") { // H&E
- model.setValue(strDescNode+"["+pRowNo+"]/cstecnts", "");
- } else {
- model.setValue(strDescNode+"["+pRowNo+"]/cstecnts", model.getValue("/root/init/resncd/resncdlist[resncd='"+model.getValue(strDescNode+"["+pRowNo+"]/cstekindcd")+"']/resncnts"));
- }
- } else if (model.getValue(strDescNode+"["+pRowNo+"]/workflagcd") == "1003") {
- if (model.getValue(strDescNode+"["+pRowNo+"]/cstekindcd") == "1002") { // H&E
- model.setValue(strDescNode+"["+pRowNo+"]/cstecnts", "");
- } else {
- model.setValue(strDescNode+"["+pRowNo+"]/cstecnts", model.getValue("/root/init/resncd/resncdlist[resncd='"+model.getValue(strDescNode+"["+pRowNo+"]/cstekindcd")+"']/resncnts"));
- }
- }
- break;
-
- //case 12 :
- // case 13 : // 줄번호 생성으로 수정
- case 14 :
- sWorkAttr = model.getValue(strDescNode + "[" + pRowNo + "]/workattr");
- model.makeValue(strDescNode + "[" + pRowNo + "]/cstekindcd", model.getValue(strSrcNode + "[workattr='" + sWorkAttr + "']/workflagcd"));
- model.makeValue(strDescNode + "[" + pRowNo + "]/cstecnts", model.getValue(strSrcNode + "[workattr='" + sWorkAttr + "']/testnm"));
- model.makeValue(strDescNode + "[" + pRowNo + "]/acptdd", model.getValue(strSrcNode + "[workattr='" + sWorkAttr + "']/acptdd"));
- model.makeValue(strDescNode + "[" + pRowNo + "]/acptno", model.getValue(strSrcNode + "[workattr='" + sWorkAttr + "']/acptno"));
- model.makeValue(strDescNode + "[" + pRowNo + "]/testcd", model.getValue(strSrcNode + "[workattr='" + sWorkAttr + "']/testcd"));
- model.makeValue(strDescNode + "[" + pRowNo + "]/acptitemno", model.getValue(strSrcNode + "[workattr='" + sWorkAttr + "']/acptitemno"));
- model.makeValue(strDescNode + "[" + pRowNo + "]/relaptno", model.getValue(strSrcNode + "[workattr='" + sWorkAttr + "']/ptno"));
- //-------------------------------------
- // 선택된 검사항목은 삭제(재 선택 불가)
- //model.removeNodeset(strSrcNode +"[workattr='" + sWorkAttr + "']");
- //model.removeNodeset(strSrcNode2+"[workattr='" + sWorkAttr + "' && ptno='" + model.getValue(strDescNode + "[" + pRowNo + "]/ptno") + "']");
-
- break;
- }
-
- //-------------
- model.refresh();
- }
-
- /* @group : 슬라이드 일괄발행
- * @ver : 2007.05.28 (CMCDEV-0001)
- * @by : 유동철(ACK)
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : ComboBox 선택 처리 Function
- */
- function fExeComboSelect(pRowNo) {
-
- var sPtNo = "";
- var iFindNo = 0;
- var strSrcNode = "/root/init/testcd/testcdlist";
- var strSrcNode2 = "/root/temp/popupmenu/item";
- var strDescNode = "/root/main/issslid/issslidlist";
- //----------------------------
- switch (grd_issslidlist.col) {
-
- /*
- //선택병리번호를 클릭하였을 경우 가져오던 관련병리검사들을 오른쪽 마우스를 클릭하였을 경우로 변경.
- case 1 :
- fExePtNoChoi(pRowNo);
-
- //------------------------------------------------------------
- sPtNo = model.getValue(strDescNode + "[" + pRowNo + "]/ptno");
- fExePtNoTestNmSet(sPtNo, strSrcNode, strSrcNode2);
- break;
- */
- //case 9 :
- // case 10 :
- case 11 : // 줄번호 생성으로 수정
- break;
-
- //case 12 :
- // case 13 : // 줄번호 생성으로 수정
- case 13 :
-
- // //----------------------------------------------------------------
- // iFindNo = grd_issslidlist.findRow("true", 1, 1, "false", "false");
- //
- // //------------------------------------------------------------
- // sPtNo = model.getValue(strDescNode + "[" + pRowNo + "]/ptno");
- //
- // //------------------------
- // if (Number(iFindNo) > 0) {
- //
- // //--------------------------------------------------------------
- // if (model.getValue(strDescNode+"["+iFindNo+"]/ptno") != sPtNo) {
- // fExePtNoChoi(pRowNo);
- // } else {
- // return false;
- // }
- // } else {
- // fExePtNoChoi(pRowNo);
- // }
- //
- // //------------------------------------------------
- // fExePtNoTestNmSet(sPtNo, strSrcNode, strSrcNode2);
-
- //----
- break;
- }
-
- //-------------
- //grd_issslidlist.rebuild();
- model.refresh();
- }
-
- function fExePtNoTestNmSet(pPtNo, pSrcNode, pPopupNode) {
-
- model.removeNodeset(pSrcNode);
- model.makeNode(pSrcNode);
- //-------------------------
- // 병리번호별 검사항목 조회
- model.makeValue("/root/send/instcd", getUserInfo("dutplceinstcd"));
- model.makeValue("/root/send/ptno", pPtNo);
- model.makeValue("/root/send/bizflagcd", "0"); // 0:자신포함, 1:자신불포함
- submit("TRLPB00702");
-
- //----------------------------
- // model.removeNodeset(pSrcNode);
- model.removeNodeset("/root/temp/testcd/testcdlist");
- model.removeNodeset("/root/temp/popupmenu/item");
-
- //---------------------------------------------
- model.makeNode("/root/temp/testcd/testcdlist");
- copyNodesetType("/root/temp/testcd/testcdlist", pSrcNode);
-
- //---------------------------------------------------------------------------------------
- for (var iRowNo=1; iRowNo <= getNodesetCount("/root/temp/testcd/testcdlist"); iRowNo++) {
- model.makeValue(pPopupNode + "[" + iRowNo + "]/nm", model.getValue("/root/temp/testcd/testcdlist[" + iRowNo + "]/testnm"));
- model.makeValue(pPopupNode + "[" + iRowNo + "]/funt", iRowNo);
- }
- }
-
- /* @group : 슬라이드 일괄발행
- * @ver : 2007.10.16 (CMCDEV-0001)
- * @by : 유동철(ACK)
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 팝업 선택 처리 Function
- */
- function fExePtNoChoi(pRowNo) {
-
- var sPtNo = "";
- var sNode = "/root/main/issslid/issslidlist";
-
- //-----------------------
- // 선택된 병리번호 초기화
- for (var iNo=1; iNo <= getNodesetCount(sNode); iNo++) {
- model.setValue(sNode+"["+iNo+"]/ptnochoi", "false");
- }
- //------------------------------------------------
- sPtNo = model.getValue(sNode+"["+pRowNo+"]/ptno");
- for (var iNo=1; iNo <= getNodesetCount(sNode); iNo++) {
-
- //-------------------------------------------------------
- if (model.getValue(sNode+"["+iNo+"]/ptno") == sPtNo) {
- model.setValue(sNode+"["+iNo+"]/ptnochoi", "true");
- }
- }
-
- //------------------------
- grd_issslidlist.refresh();
- }
-
- /* @group : 슬라이드 일괄발행
- * @ver : 2007.10.16 (CMCDEV-0001)
- * @by : 유동철(ACK)
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 팝업 선택 처리 Function
- */
- function fExePopupClick(pRowNo) {
-
- var iRowNo = grd_issslidlist.row;
- var sSrcNode = "/root/temp/testcd/testcdlist";
- var sDescNode = "/root/main/issslid/issslidlist";
-
- //----------------------------------------------------------------------------------------------------
- model.makeValue(sDescNode+"["+iRowNo+"]/acptdd", model.getValue(sSrcNode+"["+ pRowNo+"]/acptdd"));
- model.makeValue(sDescNode+"["+iRowNo+"]/acptno", model.getValue(sSrcNode+"["+ pRowNo+"]/acptno"));
- model.makeValue(sDescNode+"["+iRowNo+"]/acptitemno", model.getValue(sSrcNode+"["+ pRowNo+"]/acptitemno"));
- model.makeValue(sDescNode+"["+iRowNo+"]/testcd", model.getValue(sSrcNode+"["+ pRowNo+"]/testcd"));
- model.makeValue(sDescNode+"["+iRowNo+"]/workattr", model.getValue(sSrcNode+"["+ pRowNo+"]/testnm"));
- model.makeValue(sDescNode+"["+iRowNo+"]/cstecnts", model.getValue(sSrcNode+"["+ pRowNo+"]/testnm"));
-
- if (model.getValue(sDescNode+"["+iRowNo+"]/dispptno") == model.getValue(sSrcNode+"["+ pRowNo+"]/dispptno")) {
- model.makeValue(sDescNode+"["+iRowNo+"]/relaptno", "-");
- model.makeValue(sDescNode+"["+iRowNo+"]/reladispptno", "-");
- } else {
- model.makeValue(sDescNode+"["+iRowNo+"]/relaptno", model.getValue(sSrcNode+"["+ pRowNo+"]/ptno"));
- model.makeValue(sDescNode+"["+iRowNo+"]/reladispptno", model.getValue(sSrcNode+"["+ pRowNo+"]/dispptno"));
- }
-
- //-----------------------------------------------------------
- switch (model.getValue(sSrcNode+"["+ pRowNo+"]/workflagcd")) {
- case "1004" : model.makeValue(sDescNode+"["+iRowNo+"]/cstekindcd", "1009");
- break;
- case "1005" : model.makeValue(sDescNode+"["+iRowNo+"]/cstekindcd", "1010");
- break;
- case "1006" : model.makeValue(sDescNode+"["+iRowNo+"]/cstekindcd", "1011");
- break;
- default : model.makeValue(sDescNode+"["+iRowNo+"]/cstekindcd", "1001");
- }
-
- //------------------------
- grd_issslidlist.refresh();
- }
-
- /* @group : 슬라이드 일괄발행
- * @ver : 2007.10.16 (CMCDEV-0001)
- * @by : 유동철(ACK)
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 등록번호 입력 키 처리 Function
- */
- function fExeRefValInput() {
-
- if(event.keyCode == 13) {
- model.setValue("/root/init/seaval", ipt_seaval.currentText);
- ipt_seaval.refresh();
-
- //----------------
- fGetIssCsteList();
- }
- }
-
- //-----------------------------
- // Socket으로 슬라이드정보 전송
- function fExeSlidSend() {
-
- var iMaxRowCnt = 0;
- var iIssRowCnt = 0;
- var sSlidNode = "/root/main/issslid/issslidlist";
-
- //--------------------------------------
- iMaxRowCnt = getNodesetCount(sSlidNode);
-
-
- //-------------------
- // 발행대상 건수 검사
- for (var iRowNo=1; iRowNo <= iMaxRowCnt; iRowNo++) {
-
- //-------------------------------------------------------------------
- if (model.getValue(sSlidNode + "[" + iRowNo + "]/choi") == "true") {
- iIssRowCnt++;
- }
- }
-
- if(model.getValue("/root/hidden/prtndirect") != "2") {
- //정방향출력
- for (var iRowNo=1; iRowNo <= iMaxRowCnt; iRowNo++) {
- if(model.getValue(sSlidNode+"["+iRowNo+"]/choi") == "true") {
-
- sSendMsg = "";
- sSendMsg += model.getValue(sSlidNode+"["+iRowNo+"]/ptno") + "▦"; // 병리번호
- sSendMsg += model.getValue(sSlidNode+"["+iRowNo+"]/dispptno") + "▦"; // 표시병리번호
- sSendMsg += model.getValue(sSlidNode+"["+iRowNo+"]/spcacptseqno") + "▦"; // 검체일련번호
- sSendMsg += model.getValue(sSlidNode+"["+iRowNo+"]/csteno") + "▦"; // 블럭번호
- sSendMsg += model.getValue(sSlidNode+"["+iRowNo+"]/slidno") + "▦"; // 슬라이드번호
- //sSendMsg += model.getValue(sSlidNode+"["+iRowNo+"]/bloccnts") + "▦"; // 블럭내용
- sSendMsg += model.getValue(sSlidNode+"["+iRowNo+"]/prntcsscnts") + "▦"; // 블럭내용
- sSendMsg += model.getValue(sSlidNode+"["+iRowNo+"]/cstecnts") + "▦"; // 슬라이드내용
-
- //------------------
- // 전송종료여부 설정
- if (iRowNo == iIssRowCnt) {
- sSendMsg += "Y" + "▦";
- } else {
- sSendMsg += "N" + "▦";
- }
-
- //-----------------------------------------------------------------------
- //sSendMsg += model.getValue(sSlidNode+"["+iRowNo+"]/reladispptno") + "▦"; // 관련병리번호
- sSendMsg += model.getValue(sSlidNode+"["+iRowNo+"]/pid") + "▦"; // 환자번호
- sSendMsg += model.getValue(sSlidNode+"["+iRowNo+"]/patnm") + "▦"; // 환자명
-
- // if (model.getValue("/root/init/prtflag") == "0") {
- // sSendMsg += "SM" + "▩";
- // } else {
- // sSendMsg += "SB" + "▩";
- // }
-
- if (chk_bcodeprnt.value == "B") { // 바코드출력여부 (B :출력, -: 미출력)
- sSendMsg += "B" + "▩";
- } else {
- sSendMsg += "-" + "▩";
- }
-
- //--------------------------
- socket.sendString(sSendMsg); // 전송한다.
- }
- }
- } else {
- //역방향 출력
- for (var iRowNo=iMaxRowCnt ; iRowNo >= 1; iRowNo--) {
- if(model.getValue(sSlidNode+"["+iRowNo+"]/choi") == "true") {
-
- sSendMsg = "";
- sSendMsg += model.getValue(sSlidNode+"["+iRowNo+"]/ptno") + "▦"; // 병리번호
- sSendMsg += model.getValue(sSlidNode+"["+iRowNo+"]/dispptno") + "▦"; // 표시병리번호
- sSendMsg += model.getValue(sSlidNode+"["+iRowNo+"]/spcacptseqno") + "▦"; // 검체일련번호
- sSendMsg += model.getValue(sSlidNode+"["+iRowNo+"]/csteno") + "▦"; // 블럭번호
- sSendMsg += model.getValue(sSlidNode+"["+iRowNo+"]/slidno") + "▦"; // 슬라이드번호
- //sSendMsg += model.getValue(sSlidNode+"["+iRowNo+"]/bloccnts") + "▦"; // 블럭내용
- sSendMsg += model.getValue(sSlidNode+"["+iRowNo+"]/prntcsscnts") + "▦"; // 블럭내용
- sSendMsg += model.getValue(sSlidNode+"["+iRowNo+"]/cstecnts") + "▦"; // 슬라이드내용
- sSendMsg += model.getValue("/root/init/bcodeprnt") + "▦"; // 바코드출력여부 (B :출력, -: 미출력)
-
- //------------------
- // 전송종료여부 설정
- if (iRowNo == iIssRowCnt) {
- sSendMsg += "Y" + "▦";
- } else {
- sSendMsg += "N" + "▦";
- }
-
- //-----------------------------------------------------------------------
- //sSendMsg += model.getValue(sSlidNode+"["+iRowNo+"]/reladispptno") + "▦"; // 관련병리번호
- sSendMsg += model.getValue(sSlidNode+"["+iRowNo+"]/pid") + "▦"; // 환자번호
- sSendMsg += model.getValue(sSlidNode+"["+iRowNo+"]/patnm") + "▦"; // 환자명
-
- // if (model.getValue("/root/init/prtflag") == "0") {
- // sSendMsg += "SM" + "▩";
- // } else {
- // sSendMsg += "SB" + "▩";
- // }
-
- if (chk_bcodeprnt.value == "B") { // 바코드출력여부 (B :출력, -: 미출력)
- sSendMsg += "B" + "▩";
- } else {
- sSendMsg += "-" + "▩";
- }
-
- //--------------------------
- socket.sendString(sSendMsg); // 전송한다.
- }
- }
- }
-
- //-----------------------------
- model.removeNodeset(sSlidNode);
-
- //----------
- // 소켓 닫기
- socket.close();
- }
-
- /* @group : 슬라이드일괄출력 화면
- * @ver : 2007.06.26 (CMCDEV-0001)
- * @by : 유동철(ACK)
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 슬라이드 목록을 장비에 출력 처리 함수
- */
- function fExeSlidIss() {
-
- var sInfoNode = "/root/init/hospenv/hospenvinfo";
- var sSlidBcIP = "";
- var sSlidBcPort = "";
-
- /*
- //------------------------------------------------
- switch (model.getValue("/root/init/prtflag")) {
- case "0" :
- sSlidBcIP = model.getValue("/root/init/hospenv/hospenvinfo/slideqmtip");
- sSlidBcPort = model.getValue("/root/init/hospenv/hospenvinfo/slideqmtport");
- break;
-
- case "1" :
- sSlidBcIP = model.getValue("/root/init/hospenv/hospenvinfo/slidbceqmtip");
- sSlidBcPort = model.getValue("/root/init/hospenv/hospenvinfo/slidbceqmtport");
- break;
-
- case "2" :
- sSlidBcIP = model.getValue("/root/init/hospenv/hospenvinfo/slidbceqmtip2");
- sSlidBcPort = model.getValue("/root/init/hospenv/hospenvinfo/slidbceqmtport2");
- break;
- }
- */
-
- //장비IP set
- for(var iRowNo = 1 ; iRowNo <= getNodesetCount("/root/main/eqinfo/slideqlist") ; iRowNo++){
- if(model.getValue("/root/init/eqseqno") == model.getValue("/root/main/eqinfo/slideqlist["+ iRowNo +"]/eqseqno")) {
- sSlidBcIP = model.getValue("/root/main/eqinfo/slideqlist["+ iRowNo +"]/eqip");
- sSlidBcPort = model.getValue("/root/main/eqinfo/slideqlist["+ iRowNo +"]/eqport");
- }
- }
-
- //----------------------------------------
- if (sSlidBcIP == "" || sSlidBcIP == "-") {
- messageBox("슬라이드 라벨지 장비의 IP주소가 없습니다. 병원별 환경설정에서 ", "C001");
- return false;
- }
- //--------------------------------------------
- if (sSlidBcPort == "" || sSlidBcPort == "-") {
- messageBox("슬라이드 라벨지 장비의 Port번호가 없습니다. 병원별 환경설정에서 ", "C001");
- return false;
- }
- //-------------------------------------
- socket.connect(sSlidBcIP, sSlidBcPort);
- }
-
- function fExeIssCntKeyPress() {
-
- var sNode = "/root/main/isscste/isscstelist";
-
- //-----------------------
- if(event.keyCode == 13) {
- model.setValue("/root/init/isscnt", ipt_isscnt.currentText);
- ipt_isscnt.refresh();
-
- //----------------------------------------------------------
- if (model.getValue("/root/init/isscnt") == "") return false;
-
- //-----------------------------------------------------
- for (var iNo=1; iNo <= getNodesetCount(sNode); iNo++) {
-
- if ( model.getValue(sNode+"["+iNo+"]/choi") == "true") {
- model.setValue(sNode+"["+iNo+"]/afslidcnt", model.getValue("/root/init/isscnt"));
- model.setValue(sNode+"["+iNo+"]/choi", "false");
- }
- }
-
- //---------------------
- grd_cstelist.refresh();
- }
-
- //-------------
- model.refresh();
- }
-
- /* @group : 슬라이드 내용 합
- * @ver : 2009.03.16 (CMCDEV-0001)
- * @by : 하만석(ACK)
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 슬라이드 내용을 일괄 합
- */
- function fExeSumSlideCnt(fRowNo, lRowNo)
- {
- var sLastBlocCnts = model.getValue("/root/main/issslid/issslidlist["+ lRowNo +"]/bloccnts");
- var sLastPtno = model.getValue("/root/main/issslid/issslidlist["+ lRowNo +"]/ptno");
- var sNewBlocCnts = "";
- var sCurBlocCnts = "";
- var sChkYN = "Y";
-
- if ((lRowNo - fRowNo) > 0) {
-
- for(var iNo = lRowNo ; iNo >= fRowNo ; iNo--) {
- sCurBlocCnts = model.getValue("/root/main/issslid/issslidlist["+ iNo +"]/bloccnts");
-
- if((iNo == fRowNo) || (sLastPtno != model.getValue("/root/main/issslid/issslidlist["+ (Number(iNo)-1) +"]/ptno"))) {
-
- if(sLastPtno == model.getValue("/root/main/issslid/issslidlist["+ iNo +"]/ptno")) {
-
- if(sChkYN == "Y" && lRowNo != iNo) {
- sNewBlocCnts = sCurBlocCnts + "-" + sLastBlocCnts;
- model.setValue("/root/main/issslid/issslidlist["+ iNo +"]/prntcsscnts", sNewBlocCnts);
- }
-
- } else {
-
- if(sChkYN == "Y" ) {
- fExeSumSlideCnt(fRowNo, iNo);
- sChkYN = "N";
- }
-
- }
-
- } else {
-
- if(sChkYN == "Y") {
- grd_issslidlist.deleteRow (iNo, false);
- }
- }
-
- }
-
- grd_issslidlist.refresh();
- }
- }
-
- /* @group : 슬라이드 내용 합
- * @ver : 2009.04.13 (CMCDEV-0001)
- * @by : 하만석(ACK)
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 블록번호, 슬라이드내용 일괄 입력
- */
- function fSetBlocSlidCnt(pFlag) {
-
- for(var iRowNo = 1 ; iRowNo <= getNodesetCount("/root/main/issslid/issslidlist") ; iRowNo++){
- if(model.getValue("/root/main/issslid/issslidlist["+ iRowNo +"]/choi") == "true") {
-
- if(pFlag == "B") {
- model.setValue("/root/main/issslid/issslidlist["+ iRowNo +"]/prntcsscnts", model.getValue("/root/init/bloccmb"));
- } else if(pFlag == "C"){
- model.setValue("/root/main/issslid/issslidlist["+ iRowNo +"]/cstecnts", model.getValue("/root/init/slidcmb"));
- }
-
- }
- }
- grd_issslidlist.refresh();
- }
-
-
- /* @group : 슬라이드 일괄발행
- * @ver : 2009.09.29 (CMCDEV-0001)
- * @by : 박상환(평화이즈)
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 다중 선택 함수
- */
- function fSelectList() {
- var iFirstRow = grd_cstelist.selectedRow(0);
- var iLasrRow = grd_cstelist.selectedRow(grd_cstelist.selectedRows-1);
-
- for(var iNo = iLasrRow ; iNo >= iFirstRow ; iNo--) {
- model.setValue("/root/main/isscste/isscstelist["+ iNo +"]/choi", "true");
- }
- grd_cstelist.refresh();
- }
-
- /* @group : 슬라이드 일괄발행
- * @ver : 2009.09.29 (CMCDEV-0001)
- * @by : 박상환(평화이즈)
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 다중 선택 함수
- */
- function fDeSelectList() {
-
- var iFirstRow = grd_cstelist.selectedRow(0);
- var iLasrRow = grd_cstelist.selectedRow(grd_cstelist.selectedRows-1);
-
- for(var iRowNo = iLasrRow ; iRowNo >= iFirstRow ; iRowNo--) {
-
- model.setValue("/root/main/isscste/isscstelist["+ iRowNo +"]/choi", "false");
-
- }
- grd_cstelist.refresh();
- }
-
- /* @group : 슬라이드 일괄발행
- * @ver : 2009.09.29 (CMCDEV-0001)
- * @by : 박상환(평화이즈)
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 다중 선택 함수
- */
- function fSelectSlideList() {
- var iFirstRow = grd_issslidlist.selectedRow(0);
- var iLasrRow = grd_issslidlist.selectedRow(grd_issslidlist.selectedRows-1);
-
- for(var iNo = iLasrRow ; iNo >= iFirstRow ; iNo--) {
- model.makeValue("/root/main/issslid/issslidlist["+ iNo +"]/choi", "true");
- }
- grd_issslidlist.refresh();
- }
-
- /* @group : 슬라이드 일괄발행
- * @ver : 2009.09.29 (CMCDEV-0001)
- * @by : 박상환(평화이즈)
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 다중 선택 함수
- */
- function fDeSelectSlideList() {
-
- var iFirstRow = grd_issslidlist.selectedRow(0);
- var iLasrRow = grd_issslidlist.selectedRow(grd_issslidlist.selectedRows-1);
-
- for(var iRowNo = iLasrRow ; iRowNo >= iFirstRow ; iRowNo--) {
-
- model.makeValue("/root/main/issslid/issslidlist["+ iRowNo +"]/choi", "false");
-
- }
- grd_issslidlist.refresh();
- }
-
- /* @group : 슬라이드 일괄발행
- * @ver : 2009.09.29 (CMCDEV-0001)
- * @by : 박상환(평화이즈)
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 슬라이드종류일괄 변경
- */
- function fExeSlidCharKind() {
-
- var sNode = "/root/main/issslid/issslidlist";
-
- //-----------------------------------------------------
- for (var iNo=1; iNo <= getNodesetCount(sNode); iNo++) {
-
- if (model.getValue(sNode+"["+iNo+"]/choi") == "true") {
- model.setValue(sNode+"["+iNo+"]/cstekindcd", model.getValue("/root/init/choicstekindcd"));
- }
- }
-
- //---------------------
- grd_issslidlist.refresh();
- }
-
-
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body guideline="1,1195;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <script type="javascript" ev:event="onmenu">
- <![CDATA[
- fExePopupClick(event.description);
- ]]>
- </script>
- <group id="grp_tle" style="left:0px; top:0px; width:1195px; height:13px; ">
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:240px; height:14px; ">슬라이드 일괄발행</caption>
- </group>
- <group id="grp_biz" scroll="auto" style="left:0px; top:40; width:1195px; height:744px; ">
- <select1 id="cmb_prnteqmt" ref="/root/init/prtflag" visibility="hidden" appearance="minimal" style="left:725px; top:50px; width:134px; height:19px; ">
- <choices>
- <item>
- <label>슬라이드 라벨러</label>
- <value>0</value>
- </item>
- <item>
- <label>라벨 프린터1</label>
- <value>1</value>
- </item>
- <item>
- <label>라벨 프린터2</label>
- <value>2</value>
- </item>
- </choices>
- </select1>
- <group id="grp_sea" style="left:0px; top:10px; width:1194px; height:35px; vertical-align:top; ">
- <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; "/>
- <caption id="caption2" class="search_name" style="left:732px; top:9px; width:86px; height:17px; ">접수일자 :</caption>
- <caption id="caption5" class="search_no_b" style="left:918px; top:10px; width:12px; height:17px; ">~</caption>
- <line id="line13" class="line_4" style="x1:1107px; y1:7px; x2:1107px; y2:29px; "/>
- <input id="ipt_acptddfrom" ref="/root/init/acptfromdd" class="input_s_essential" navindex="8" inputtype="date" format="yyyy-mm-dd" mask="exclude" showmask="true" style="left:821px; top:8px; width:94px; height:19px; "/>
- <input id="ipt_acptddto" ref="/root/init/acpttodd" class="input_s_essential" navindex="9" inputtype="date" format="yyyy-mm-dd" mask="exclude" showmask="true" style="left:933px; top:8px; width:94px; height:19px; "/>
- <caption id="caption1" class="search_name" style="left:533px; top:9px; width:86px; height:17px; ">등록번호 :</caption>
- <button id="btn_sea" class="btn1_letter2" navindex="10" style="left:1123px; top:7px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fGetIssCsteList();
- ]]>
- </script>
- </button>
- <input id="ipt_seaval" ref="/root/init/seaval" class="input_search" navindex="1" style="left:625px; top:8px; width:93px; height:19px; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- fExeRefValInput();
- ]]>
- </script>
- </input>
- <select1 id="cbo_ptnocd" ref="/root/init/ptnocode" navindex="2" appearance="minimal" editmode="search" style="left:100px; top:8px; width:151px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/ptnocd/ptnocdlist">
- <label ref="ptnonm"/>
- <value ref="ptnocd"/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption10" class="search_no_b" style="left:337px; top:8px; width:12px; height:17px; ">~</caption>
- <input id="ipt_fromptno" ref="/root/init/fromptno" class="text_center" navindex="4" maxlength="6" style="left:284px; top:8px; width:50px; height:19px; "/>
- <input id="input1" ref="/root/init/toptno" class="text_center" navindex="6" maxlength="6" style="left:382px; top:8px; width:50px; height:19px; "/>
- <input id="input2" ref="/root/init/toyear" class="text_center" navindex="5" maxlength="2" style="left:352px; top:8px; width:27px; height:19px; "/>
- <caption id="caption9" class="search_name" style="left:6px; top:9px; width:90px; height:17px; ">병리번호 :</caption>
- <input id="ipt_fromyear" ref="/root/init/fromyear" class="text_center" navindex="3" maxlength="2" style="left:254px; top:8px; width:27px; height:19px; "/>
- <select1 id="combo1" ref="/root/init/blockind" navindex="7" appearance="minimal" style="left:434px; top:8px; width:86px; height:19px; ">
- <choices>
- <item>
- <label>CELL블럭</label>
- <value>0</value>
- </item>
- <item>
- <label>가상블럭</label>
- <value>1</value>
- </item>
- </choices>
- </select1>
- <select id="chk_prntyn" ref="/root/init/prntyn" overflow="visible" appearance="full" style="left:1037px; top:10px; width:55px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>미발행</label>
- <value>1</value>
- </item>
- </choices>
- </select>
- </group>
- <line id="line1" class="line_1" style="x1:0px; y1:69px; x2:365px; y2:69px; "/>
- <caption id="caption3" class="tit_2" style="left:5px; top:54px; width:190px; height:14px; ">Cassette 목록</caption>
- <datagrid id="grd_cstelist" nodeset="/root/main/isscste/isscstelist" class="datagrid2" caption="기관코드^ptno^^병리번호^검체접수일자^검체접수번호^검체
번호^검 체 명^Cassette
번호^Cassette내용^기존
Slide수^발행할
Slide수^삭제할
Slide수^출력^caption1^슬라이드최종번호^scrno^bizflagcd^workflagcd^acptdd^acptno^spccd^spchistno^pid^patnm" colsep="^" colwidth="0, 0, 34, 90, 0, 0, 0, 0, 0, 130, 0, 50, 0, 0, 0, 55, 0, 0, 0, 0, 0, 0, 0, 0, 0" dataheight="23" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheight="32" rowsep="|" selectionmode="byrow" navindex="11" style="left:0px; top:74px; width:365px; height:653px; ">
- <col ref="instcd"/>
- <col ref="ptno"/>
- <col ref="choi" type="checkbox"/>
- <col class="text_center" ref="dispptno"/>
- <col ref="spcacptdd"/>
- <col ref="spcacptno"/>
- <col class="text_center" ref="spcacptseqno"/>
- <col ref="spcnm"/>
- <col class="text_center" ref="csteno"/>
- <col ref="cstecnts"/>
- <col class="text_center" ref="bfslidcnt"/>
- <col class="text_center" ref="afslidcnt" type="input" format="##" mask="exclude" maxlength="2" showmask="true"/>
- <col class="text_center" ref="delslidcnt" type="input" visibility="hidden" format="##" mask="exclude" maxlength="2" showmask="true"/>
- <col ref="prntstat" type="checkbox" visibility="hidden"/>
- <col ref="prntcsscnts" visibility="hidden"/>
- <col ref="maxslidno"/>
- <col ref="scrno" visibility="hidden"/>
- <col ref="bizflagcd" visibility="hidden"/>
- <col ref="workflagcd"/>
- <col ref="acptdd"/>
- <col ref="acptno"/>
- <col ref="spccd"/>
- <col ref="spchistno"/>
- <col ref="pid"/>
- <col ref="patnm"/>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- fExeCsteListClick();
- ]]>
- </script>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_cstelist.gridToInstance();
- ]]>
- </script>
- <script type="javascript" ev:event="onmousedown">
- <![CDATA[
- if ( (grd_cstelist.mouseRow >= grd_cstelist.fixedRows) && (grd_cstelist.isCell(event.target))) {
- setPopupMenu("grd_cstelist", false, "/root/init/popupmenu/item", "name", "func");
- }
- ]]>
- </script>
- <script type="javascript" ev:event="DOMFocusOut">
- <![CDATA[
- initPopupMenu();
- ]]>
- </script>
- </datagrid>
- <caption id="caption7" class="tit_2" style="left:372px; top:54px; width:194px; height:13px; ">발행 및 삭제 슬라이드 목록</caption>
- <line id="line2" class="line_1" style="x1:367px; y1:69px; x2:1195px; y2:69px; "/>
- <button id="btn_addcste" class="btn2_letter4" navindex="12" style="left:300px; top:49px; width:64px; height:19px; ">
- <caption>정보전달</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fExeInfoSend();
- ]]>
- </script>
- </button>
- <datagrid id="grd_issslidlist" nodeset="/root/main/issslid/issslidlist" class="datagrid2" caption="^선택
병리번호^기관코드^병리번호^병리번호^검체접수일자^검체접수번호'^검체번호^Cassette
번호^Cassette
내용^Cassette
출력^슬라이드
번호^슬라이드
종류^슬라이드내용^검사항목명^Block번호^슬라이드내용^종류입력^maxcsteno^bizflagcd^acptdd^acptno^testcd^acptitemno^scrno^spccd^spchistno^statsinclflagcd^relaptno^bloccnts^reladispptno^workflagcd^pid^patnm" colsep="^" colwidth="43, 0, 0, 0, 90, 0, 0, 0, 0, 67, 0, 60, 80, 0, 160, 147, 160, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0" dataheight="23" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="32" rowsep="|" navindex="13" style="left:367px; top:75px; width:828px; height:653px; ">
- <col ref="choi" type="checkbox"/>
- <col ref="ptnochoi" type="checkbox"/>
- <col ref="instcd"/>
- <col ref="ptno"/>
- <col class="text_center" ref="dispptno"/>
- <col ref="spcacptdd"/>
- <col ref="spcacptno"/>
- <col class="text_center" ref="spcacptseqno"/>
- <col class="text_center" ref="csteno"/>
- <col ref="bloccnts"/>
- <col ref="prntcsscnts" type="input"/>
- <col class="text_center" ref="slidno"/>
- <col ref="cstekindcd" type="combo">
- <choices>
- <itemset nodeset="/root/init/resncd/resncdlist[baseflagcd='82']">
- <label ref="resncnts"/>
- <value ref="resncd"/>
- </itemset>
- </choices>
- </col>
- <col ref="cstecnts" type="input"/>
- <col ref="workattr"/>
- <col ref="prntcsscnts" type="input"/>
- <col ref="cstecnts" type="input"/>
- <col class="text_center" ref="ipttype" type="input" maxlength="4"/>
- <col ref="maxcsteno"/>
- <col ref="bizflagcd"/>
- <col ref="acptdd"/>
- <col ref="acptno"/>
- <col ref="testcd"/>
- <col ref="acptitemno"/>
- <col ref="scrno"/>
- <col ref="spccd"/>
- <col ref="spchistno"/>
- <col ref="statsinclflagcd"/>
- <col ref="relaptno"/>
- <col ref="bloccnts"/>
- <col ref="reladispptno"/>
- <col ref="workflagcd"/>
- <col ref="pid"/>
- <col ref="patnm"/>
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- fExeKeyPress();
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
-
- if ( grd_issslidlist.col != 1 ) {
- //fExeTestCdChange(grd_issslidlist.row);
- }
- ]]>
- </script>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- if ( grd_issslidlist.col != 1 ) {
- fExeComboSelect(grd_issslidlist.row);
- }
- ]]>
- </script>
- <script type="javascript" ev:event="onmousedown">
- <![CDATA[
- /*
- //--------------------------------------
- //관련검사명 조회
- var sPtNo = "";
- var strSrcNode = "/root/init/testcd/testcdlist";
- var strSrcNode2 = "/root/temp/popupmenu/item";
-
- if ( (grd_issslidlist.mouseRow >= grd_issslidlist.fixedRows) && (grd_issslidlist.isCell(event.target))) {
- if((grd_issslidlist.mouseCol ==grd_issslidlist.colRef("workattr"))
- || (grd_issslidlist.mouseCol == 17)) {
- // || (grd_issslidlist.mouseCol == 16)) { //줄번호생성으로 수정
-
- grd_issslidlist.row = grd_issslidlist.mouseRow;
- sPtNo = model.getValue("/root/main/issslid/issslidlist["+ grd_issslidlist.row +"]/ptno");
- if( sPtNo != sRefPtno) {
-
- fExePtNoTestNmSet(sPtNo, strSrcNode, strSrcNode2);
- sRefPtno = sPtNo;
- }
- }
- }
- //--------------------------------------
-
- var iFirstRow = grd_issslidlist.selectedRow(0); // drag 첫 row
- var iLasrRow = grd_issslidlist.selectedRow(grd_issslidlist.selectedRows-1); // drag 마지막 row
-
- if (grd_issslidlist.mouseCol == grd_issslidlist.colRef("bloccnts"))
- {
- fExeSumSlideCnt(iFirstRow, iLasrRow);
- }
- else
- {
- // setPopupMenu(ctrlID, onmenuEvent, itemNodeset, label, value)
- fExeComboSelect(grd_issslidlist.mouseRow);
- setPopupMenu("grd_issslidlist", true, "/root/temp/popupmenu/item", "nm", "funt");
- }
- */
- setPopupMenu("grd_issslidlist", false, "/root/init/popupmenu2/item", "name", "func");
- ]]>
- </script>
- <script type="javascript" ev:event="DOMFocusOut">
- <![CDATA[
- initPopupMenu();
- ]]>
- </script>
- <script type="javascript" ev:event="onbeforesort">
- <![CDATA[
- grd_issslidlist.gridToInstance();
- ]]>
- </script>
- <script type="javascript" ev:event="onbuttonclick">
- <![CDATA[
-
- ]]>
- </script>
- </datagrid>
- <button id="btn_clear" class="btn2_letter3" navindex="14" style="left:1141px; top:49px; width:53px; height:19px; ">
- <caption>초기화</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fExeIssDelListInitialize();
- ]]>
- </script>
- </button>
- <object id="socket" clsid="{81e9de7e-90be-4958-bbda-ac731c05aba8}" visibility="hidden" style="left:625px; top:45px; width:35px; height:30px; ">
- <!-- 소켓 받은 메시지 이벤트 -->
- <script type="javascript" ev:event="OnReceive(nDataLength, szID)">
- <![CDATA[
- ]]>
- </script>
- <!-- 소켓 에러 이벤트 -->
- <script type="javascript" ev:event="OnError(lError, szMsg)">
- <![CDATA[
- alert("Error code = " + lError+"\nError Message : "+szMsg);
- socket.close(); // 소켓 닫기
- isConnected = false; // 접속 여부 false
- ]]>
- </script>
- <!-- 소켓 연결 이벤트 -->
- <script type="javascript" ev:event="OnConnect(szID)">
- <![CDATA[
- fExeSlidSend();
- ]]>
- </script>
- <!-- 소켓 close 이벤트 -->
- <script type="javascript" ev:event="OnClose(szID)">
- <![CDATA[
- isConnected = false; // 접속 여부 false
- ]]>
- </script>
- </object>
- <input id="ipt_isscnt" ref="/root/init/isscnt" maxlength="3" format="#,###" style="left:245px; top:49px; width:50px; height:19px; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- fExeIssCntKeyPress();
- ]]>
- </script>
- </input>
- <select id="chballyn" ref="/root/temp/sendallyn" visibility="hidden" overflow="visible" appearance="full" style="left:115px; top:45px; width:45px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>선택</label>
- <value>Y</value>
- </item>
- </choices>
- </select>
- <button id="button102" class="icon_left" style="left:560px; top:49px; width:26px; height:19px; ">
- <caption/>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- grd_issslidlist.colHidden(grd_issslidlist.colRef("slidno")) = true;
- grd_issslidlist.colHidden(grd_issslidlist.colRef("cstekindcd")) = true;
- cmb_cstekind.visible = false;
- cmb_blocno.attribute("left") = "748";
- cmb_slidcnts.attribute("left") = "895";
- cmb_blocno.refresh();
- cmb_slidcnts.refresh();
- ]]>
- </script>
- </button>
- <button id="button103" class="icon_right" style="left:587px; top:49px; width:26px; height:19px; ">
- <caption/>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- grd_issslidlist.colHidden(grd_issslidlist.colRef("slidno")) = false;
- grd_issslidlist.colHidden(grd_issslidlist.colRef("cstekindcd")) = false;
- cmb_cstekind.visible = true;
- cmb_blocno.attribute("left") = "887";
- cmb_slidcnts.attribute("left") = "1034";
- cmb_blocno.refresh();
- cmb_slidcnts.refresh();
- ]]>
- </script>
- </button>
- <select1 id="cmb_blocno" ref="/root/init/bloccmb" appearance="minimal" style="left:887px; top:49px; width:115px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/resncd/resncdlist[baseflagcd='S1']">
- <label ref="resncnts"/>
- <value ref="resncnts"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fSetBlocSlidCnt("B");
- ]]>
- </script>
- </select1>
- <select1 id="cmb_slidcnts" ref="/root/init/slidcmb" appearance="minimal" style="left:1034px; top:49px; width:100px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/resncd/resncdlist[baseflagcd='S2']">
- <label ref="resncnts"/>
- <value ref="resncnts"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- //fSetBlocSlidCnt("C");
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
- fSetBlocSlidCnt("C");
-
- //------------------
- for (var iNo=1; iNo <= getNodesetCount("/root/main/issslid/issslidlist"); iNo++) {
- model.makeValue("/root/main/issslid/issslidlist["+iNo+"]/choi", "false");
- }
-
- //------------------------
- //grd_issslidlist.refresh();
- model.refresh();
- ]]>
- </script>
- </select1>
- <select1 id="cmb_cstekind" ref="/root/init/choicstekindcd" appearance="minimal" style="left:648px; top:49px; width:80px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/resncd/resncdlist[baseflagcd='82']">
- <label ref="resncnts"/>
- <value ref="resncd"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fExeSlidCharKind();
- ]]>
- </script>
- </select1>
- </group>
- <group id="grp_btn" style="left:0px; top:13; width:1195px; height:27px; ">
- <button id="btn_save" class="btn4_letter2" navindex="16" style="left:1138px; top:3; width:56px; height:22px; ">
- <caption>삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- // 카세트 및 슬라이드 삭제여부 확인
- if ( messageBox("선택한 Cassette의 슬라이드(Slide) 삭제를", "Q004") == 6 ) {
- fExeSlidIssDel("SMLPB00700_D");
- }
- ]]>
- </script>
- </button>
- <button id="button1" class="btn4_letter2" navindex="15" style="left:1079px; top:3; width:56px; height:22px; ">
- <caption>발행</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fExeSlidIssDel("SMLPB00700_C");
- ]]>
- </script>
- </button>
- <line id="line17" class="line_6" style="x1:0px; y1:25; x2:1194px; y2:25; "/>
- <select1 id="radio1" ref="/root/hidden/prtndirect" appearance="full" cellspacing="4" cols="2" overflow="visible" style="left:1000px; top:6px; width:70px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>정</label>
- <value>1</value>
- </item>
- <item>
- <label>역</label>
- <value>2</value>
- </item>
- </choices>
- </select1>
- <caption id="caption11" class="cell_1" style="left:935px; top:4px; width:65px; height:19px; text-align:left; vertical-align:middle; padding-left:10px; ">발행순서</caption>
- <caption id="caption4" class="cell_1" style="left:728px; top:4px; width:65px; height:19px; text-align:left; vertical-align:middle; padding-left:10px; ">출력장비</caption>
- <select1 id="cmb_slideqlist" ref="/root/init/eqseqno" appearance="minimal" style="left:795px; top:4px; width:134px; height:19px; ">
- <choices>
- <itemset nodeset="/root/main/eqinfo/slideqlist">
- <label ref="eqnm"/>
- <value ref="eqseqno"/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption8" class="cell_1" style="left:555px; top:5px; width:122px; height:19px; text-align:left; vertical-align:middle; padding-left:10px; ">ZEBRA바코드출력</caption>
- <select id="chk_bcodeprnt" ref="/root/init/bcodeprnt" overflow="visible" appearance="full" style="left:680px; top:5px; width:45px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label/>
- <value>B</value>
- </item>
- </choices>
- </select>
- <select id="chk_seabasecd" ref="/root/init/seabasecd" overflow="visible" appearance="full" style="left:253px; top:5px; width:100px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>조직대상</label>
- <value>1</value>
- </item>
- </choices>
- </select>
- </group>
- </xhtml:body>
- </xhtml:html>
|