1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <!--
- * 제 목 : SMLPP00600_검체폐기대장.xrw
- * 설 명 : 검체폐기대장 화면
- * 설 계 자 : (주)에이씨케이 - 유동철
- * 작 성 자 : (주)에이씨케이 - 유동철
- * 작 성 일 : 2007.11.21
- * 수정이력 :
- * 기 타 :
- -->
- <?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>
- <wasteinfo>
- <wastelist>
- <choi/>
- <instcd/>
- <abnflagcd/>
- <abndg/>
- <abnseqno/>
- <wasteflagcd/>
- <wasteresncd/>
- <wasteresnnm/>
- <ptno/>
- <dispptno/>
- <spccd/>
- <spcnm/>
- <abndd/>
- <abntm/>
- <abnid/>
- <abnnm/>
- <abncustflagcd/>
- <abncustresncd/>
- <abnvol/>
- </wastelist>
- </wasteinfo>
- <abninfo1>
- <wastelist>
- <choi/>
- <instcd/>
- <abnflagcd/>
- <abndg/>
- <abnseqno/>
- <wasteflagcd/>
- <wasteresncd/>
- <wasteresnnm/>
- <ptno/>
- <dispptno/>
- <spccd/>
- <spcnm/>
- <abndd/>
- <abntm/>
- <abnid/>
- <abnnm/>
- <abncustflagcd/>
- <abncustresncd/>
- <abnvol/>
- </wastelist>
- </abninfo1>
- <abninfo2>
- <wastelist>
- <choi/>
- <instcd/>
- <abnflagcd/>
- <abndg/>
- <abnseqno/>
- <wasteflagcd/>
- <wasteresncd/>
- <wasteresnnm/>
- <ptno/>
- <dispptno/>
- <spccd/>
- <spcnm/>
- <abndd/>
- <abntm/>
- <abnid/>
- <abnnm/>
- <abncustflagcd/>
- <abncustresncd/>
- <abnvol/>
- </wastelist>
- </abninfo2>
- <saveinfo>
- <wastelist>
- <choi/>
- <instcd/>
- <abnflagcd/>
- <abndg/>
- <abnseqno/>
- <wasteflagcd/>
- <wasteresncd/>
- <wasteresnnm/>
- <ptno/>
- <dispptno/>
- <spccd/>
- <spcnm/>
- <abndd/>
- <abntm/>
- <abnid/>
- <abnnm/>
- <abncustflagcd/>
- <abncustresncd/>
- <abnvol/>
- <bizflagcd/>
- </wastelist>
- </saveinfo>
- <abninfo>
- <abnlist>
- <instcd/>
- <wasteresnnm/>
- <day01/>
- <day02/>
- <day03/>
- <day04/>
- <day05/>
- <day06/>
- <day07/>
- <day08/>
- <day09/>
- <day10/>
- <day11/>
- <day12/>
- <day13/>
- <day14/>
- <day15/>
- <day16/>
- <day17/>
- <day18/>
- <day19/>
- <day20/>
- <day21/>
- <day22/>
- <day23/>
- <day24/>
- <day25/>
- <day26/>
- <day27/>
- <day28/>
- <day29/>
- <day30/>
- <day31/>
- <daytot/>
- </abnlist>
- </abninfo>
- </main>
- <send/>
- <init>
- <ptnocode/>
- <fromyear/>
- <fromptno/>
- <toyear/>
- <toptno/>
- <refflagcd/>
- <acptfromdd/>
- <acpttodd/>
- <abnflagcd>0</abnflagcd>
- <sysdt>
- <sysdtinfo>
- <sysdd/>
- <systm/>
- </sysdtinfo>
- </sysdt>
- <ptnocd>
- <ptnocdlist>
- <instcd/>
- <ptnocd/>
- <ptnonm/>
- </ptnocdlist>
- </ptnocd>
- <resncd>
- <resncdist>
- <instcd/>
- <baseflagcd/>
- <resncd/>
- <resncnts/>
- </resncdist>
- </resncd>
- <abnvol1/>
- <abnvol2/>
- <custcd1/>
- <custcd2/>
- </init>
- <hidden>
- </hidden>
- <message/>
- </root>
- </instance>
- <bind id="bind1" ref="/root/main/abninfo1/wastelist/choi" readonly="../choi/@readonly = 'true'"/>
- <bind id="bind2" ref="/root/main/abninfo2/wastelist/abndd" readonly="../abndd/@readonly = 'true'"/>
- <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/dateHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
- <script type="javascript" src="../../../lis/commonweb/js/LPZ001.js"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- fExeInitialize();
- ]]>
- </script>
- <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="TRLPZ00109" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/init/ptnocd/ptnocdlist"/>
- <submission id="TRLPP00601" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/wasteinfo/wastelist"/>
- <submission id="TXLPP00601" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/message"/>
- <submission id="TRLPP00602" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/abninfo/abnlist"/>
- </model>
- <script type="javascript">
- <![CDATA[
-
- /* @group : 검체폐기대장 화면
- * @ver : 2007.11.21 (CMCDEV-0001)
- * @by : 유동철(ACK)
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 화면초기화 함수
- */
- function fExeInitialize() {
- var sCurDate = "";
-
- //----------------------------------------------------
- model.removeNodeset("/root/main/wasteinfo/wastelist");
- model.removeNodeset("/root/main/abninfo1/wastelist");
- model.removeNodeset("/root/main/abninfo2/wastelist");
-
- //----------------
- // 시스템일자 조회
- model.removeNodeset("/root/send");
- model.makeValue("/root/send/instcd", getUserInfo("dutplceinstcd"));
- submit("TRLPZ00102", false);
- submit("TRLPZ00109", false);
-
- //--------------------
- // 작업구분 목록 조회
- model.makeValue("/root/send/baseflagcd", "'61'");
- submit("TRLPZ00103");
- //---------------
- // 전체 노드 삭제
- model.removeNodeset("/root/init/resncd/resncdlist[resncd='ZZZZ']");
-
- //------------------------------------------------------------
- sCurDate = model.getValue("/root/init/sysdt/sysdtinfo/sysdd");
-
- //------------
- // 초기값 설정
- model.makeValue("/root/init/acptfromdd", model.getValue("/root/init/sysdt/sysdtinfo/sysdd")); // 접수일자(From)
- model.makeValue("/root/init/acpttodd", model.getValue("/root/init/sysdt/sysdtinfo/sysdd")); // 접수일자(To)
- model.makeValue("/root/init/abnflagcd", "2"); // 폐기물구분(0:액상,1:적출물)
- model.makeValue("/root/init/refflagcd", "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", "");
-
- //-------------------------------------------
- grd_wastelist1.fixedcellcheckbox(0,1) = true;
- grd_wastelist2.fixedcellcheckbox(0,1) = true;
-
- //-------------
- model.refresh();
- }
-
- /* @group : 검체폐기대장 화면
- * @ver : 2007.11.21 (CMCDEV-0001)
- * @by : 유동철(ACK)
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 취소대상 접수자료 조회 처리 함수
- */
- function fGetWasteList() {
-
- var sTemp = "";
- var sFromDD = model.getValue("/root/init/acptfromdd");
- var sToDD = model.getValue("/root/init/acpttodd");
-
- //------------------------------------------------
- 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/wasteinfo/wastelist");
- model.removeNodeset("/root/main/abninfo1/wastelist");
- model.removeNodeset("/root/main/abninfo2/wastelist");
-
- //----------------------------------------------------------------------
- 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/refflagcd", model.getValue("/root/init/refflagcd"));
- model.makeValue("/root/send/abnflagcd", model.getValue("/root/init/abnflagcd"));
- model.makeValue("/root/send/baseflagcd", "'60'");
- 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"));
-
- //-------------------------
- if (submit("TRLPP00601")) {
-
- //-------------------------------------------------------------------------
- if (getNodesetCount("/root/main/wasteinfo/wastelist[abnflagcd='0']") > 0) {
- model.makeNode("/root/main/abninfo1/wastelist");
- }
-
- //-------------------------------------------------------------------------
- if (getNodesetCount("/root/main/wasteinfo/wastelist[abnflagcd='1']") > 0) {
- model.makeNode("/root/main/abninfo2/wastelist");
- }
-
- //------------------------------------------------------------------------------------------------
- copyNodesetType("/root/main/abninfo1/wastelist", "/root/main/wasteinfo/wastelist[abnflagcd='0']");
- copyNodesetType("/root/main/abninfo2/wastelist", "/root/main/wasteinfo/wastelist[abnflagcd='1']");
-
- //----------------------------------------------------
- // 폐기된 자료는 폐기일자/업체/용량을 수정 불가로 처리
- if (model.getValue("/root/init/refflagcd") == "1") {
- grd_wastelist1.colDisabled(grd_wastelist1.colRef("abndd")) = true;
- grd_wastelist1.colDisabled(grd_wastelist1.colRef("abncustresncd")) = true;
- grd_wastelist1.colDisabled(grd_wastelist1.colRef("abnvol")) = true;
- grd_wastelist2.colDisabled(grd_wastelist2.colRef("abndd")) = true;
- grd_wastelist2.colDisabled(grd_wastelist2.colRef("abncustresncd")) = true;
- grd_wastelist2.colDisabled(grd_wastelist2.colRef("abnvol")) = true;
- } else {
- grd_wastelist1.colDisabled(grd_wastelist1.colRef("abndd")) = false;
- grd_wastelist1.colDisabled(grd_wastelist1.colRef("abncustresncd")) = false;
- grd_wastelist1.colDisabled(grd_wastelist1.colRef("abnvol")) = false;
- grd_wastelist2.colDisabled(grd_wastelist2.colRef("abndd")) = false;
- grd_wastelist2.colDisabled(grd_wastelist2.colRef("abncustresncd")) = false;
- grd_wastelist2.colDisabled(grd_wastelist2.colRef("abnvol")) = false;
- }
- }
-
- //--------------
- model.refresh();
- }
-
- /* @group : 검체폐기대장
- * @ver : 2007.11.21 (CMCDEV-0001)
- * @by : 유동철(ACK)
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 검체폐기대장 Excel저장 처리 Function
- */
- function fExeSaveToExcel() {
-
- // var sTemp = "";
- // var sFromDD = model.getValue("/root/init/acptfromdd");
- // var sToDD = model.getValue("/root/init/acpttodd");
- //
- // //------------------------------------------------
- // 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/abninfo/abnlist");
- //
- // //----------------------------------------------------------------------
- // 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/refflagcd", model.getValue("/root/init/refflagcd"));
- // model.makeValue("/root/send/abnflagcd", model.getValue("/root/init/abnflagcd"));
- // model.makeValue("/root/send/baseflagcd", "'60'");
- // 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"));
- //
- // //-------------------
- // submit("TRLPP00602");
-
- //-----------------------------------------------------------------------------------------
- // grd_abnlist.saveExcel("C:\\SMLPP00600_검체폐기대장_액상.xls", "폐기물(액상)", false, true);
- // grd_wastelist2.saveExcel("C:\\SMLPP00600_검체폐기대장_적출물.xls", "폐기물(적출물)", false, true);
- // messageBox("C:\\SMLPP00600_검체폐기대장.xls 파일이 생성이 ", "I002");
- lpzfExeSaveToExcel(grd_abnlist, "검체폐기대장_액상");
- lpzfExeSaveToExcel(grd_wastelist2, "검체폐기대장_적출물");
- }
-
- /* @group : 검체폐기대장
- * @ver : 2007.11.21 (CMCDEV-0001)
- * @by : 유동철(ACK)
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 조회구분 변경 처리 Function
- */
- function fExeRefFlagChng() {
-
- //--------------------------------------------------
- if (model.getValue("/root/init/refflagcd") == "0") {
- cap_refdd.text = "접수일자 : ";
- btn_cncl.visible = false;
- btn_save.visible = true;
- } else {
- cap_refdd.text = "폐기일자 : ";
- btn_cncl.visible = true;
- btn_save.visible = false;
- }
-
- //------------------
- cap_refdd.refresh();
- }
-
- /* @group : 검체폐기대장
- * @ver : 2007.11.20 (CMCDEV-0001)
- * @by : 유동철(ACK)
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 폐기물 저장 처리 Function
- */
- function fExeSave(pBizFlagCd) {
-
- var sNode = "/root/main/saveinfo/wastelist";
- var sNode1 = "/root/main/abninfo1/wastelist";
- var sNode2 = "/root/main/abninfo2/wastelist";
-
- //---------------------------
- grd_wastelist1.clearStatus();
- for (var iNo=1; iNo <= getNodesetCount(sNode1); iNo++) {
-
- //-----------------------------------------------------
- if (model.getValue(sNode1+"["+iNo+"]/choi") == "true") {
-
- //-----------------------
- // 폐기일자 입력여부 검사
- if (model.getValue(sNode1+"["+iNo+"]/abndd") == "") {
- messageBox("폐기(액상)목록의 폐기일자를 ", "C001");
- return false;
- }
-
- //-----------------------
- // 폐기용량 입력여부 검사
- if (model.getValue(sNode1+"["+iNo+"]/abnvol") == "" ||
- Number(model.getValue(sNode1+"["+iNo+"]/abnvol")) == 0) {
- messageBox("폐기(액상)목록의 폐기용량을 ", "C001");
- return false;
- }
- }
- }
-
- //---------------------------
- grd_wastelist2.clearStatus();
- for (var iNo=1; iNo <= getNodesetCount(sNode2); iNo++) {
-
- //-----------------------------------------------------
- if (model.getValue(sNode2+"["+iNo+"]/choi") == "true") {
-
- //-----------------------
- // 폐기일자 입력여부 검사
- if (model.getValue(sNode2+"["+iNo+"]/abndd") == "") {
- messageBox("폐기(적출물)목록의 폐기일자를 ", "C001");
- return false;
- }
-
- //-----------------------
- // 폐기용량 입력여부 검사
- if (model.getValue(sNode2+"["+iNo+"]/abnvol") == "" ||
- Number(model.getValue(sNode2+"["+iNo+"]/abnvol")) == 0) {
- messageBox("폐기(적출물)목록의 폐기용량을 ", "C001");
- return false;
- }
- }
- }
-
- //-------------------------
- model.removeNodeset(sNode);
-
- //------------------------------------------------
- if (getNodesetCount(sNode1+"[choi='true']") > 0) {
- model.makeNode(sNode);
- copyNodesetType(sNode, sNode1+"[choi='true']", "replace");
- }
-
- //-------------------------------
- if (getNodesetCount(sNode) > 0) {
- copyNodesetType(sNode, sNode2+"[choi='true']", "after");
- } else {
- model.makeNode(sNode);
- copyNodesetType(sNode, sNode2+"[choi='true']", "replace");
- }
-
- //-------------------------
- grd_savelist.clearStatus();
-
- //--------------------------------
- if (getNodesetCount(sNode) <= 0) {
- messageBox("저장대상 폐기물을 ", "C002");
- return false;
- } else {
- for (var iNo=1; iNo <= getNodesetCount(sNode); iNo++) {
- if (model.getValue(sNode+"["+iNo+"]/choi") == "true") {
- model.makeValue(sNode+"["+iNo+"]/bizflagcd", pBizFlagCd);
- grd_savelist.addStatus(iNo, "insert");
- }
- }
- }
-
- //---------------------
- grd_savelist.refresh();
-
-
- //--------------------------------
- model.removeNodeset("/root/send");
- model.makeValue("/root/send/wastelist", grd_savelist.getUpdateDataAll("i"));
- if (submit("TXLPP00601")) {
- model.removeNodeset(sNode1);
- model.removeNodeset(sNode2);
- model.removeNodeset("/root/main/wasteinfo/wastelist");
- }
-
- //--------------
- model.refresh();
- }
-
- /* @group : 검체폐기대장
- * @ver : 2007.11.22 (CMCDEV-0001)
- * @by : 유동철(ACK)
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 폐기물 그리드 선택 처리 Function
- */
- function fExeWasteClick(grdObj, pBizFlagCd, pAction) {
- if(grdObj.row > 0 && grdObj.isCell(event.target) && grdObj.row >= grdObj.fixedRows) {
- fExeWasteChoi(grdObj.row, grdObj.col, pBizFlagCd, pAction);
- }
- }
-
- /* @group : 검체폐기대장
- * @ver : 2007.11.22 (CMCDEV-0001)
- * @by : 유동철(ACK)
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 폐기물 선택 처리 Function
- */
- function fExeWasteChoi(pRow, pCol, pBizFlagCd, pAction) {
-
- var sNode = "/root/main/abninfo"+pBizFlagCd+"/wastelist";
-
- //-------------------------------
- // 폐기된 자료는 처리하지 않는다.
- if (model.getValue("/root/init/refflagcd") == "1") return false;
-
-
- //-------------
- switch (pCol) {
- case 1 :
- if (model.getValue(sNode+"["+pRow+"]/choi") == "true") {
- model.makeValue(sNode+"["+pRow+"]/abndd", getCurrentDate());
- model.makeValue(sNode+"["+pRow+"]/abntm", getCurrentTime());
- model.makeValue(sNode+"["+pRow+"]/abnid", getUserInfo("userid"));
- model.makeValue(sNode+"["+pRow+"]/abnnm", getUserInfo("usernm"));
- model.makeValue(sNode+"["+pRow+"]/abnvol", "0");
- } else {
- model.makeValue(sNode+"["+pRow+"]/abndd", " ");
- model.makeValue(sNode+"["+pRow+"]/abntm", " ");
- model.makeValue(sNode+"["+pRow+"]/abnid", " ");
- model.makeValue(sNode+"["+pRow+"]/abnnm", " ");
- model.makeValue(sNode+"["+pRow+"]/abnvol", "0");
- }
- break;
-
- case 13 :
- if (pAction == "2") {
- model.makeValue(sNode+"["+pRow+"]/abntm", getCurrentTime());
- model.makeValue(sNode+"["+pRow+"]/abnid", getUserInfo("userid"));
- model.makeValue(sNode+"["+pRow+"]/abnnm", getUserInfo("usernm"));
- }
- break;
- }
- }
-
- /* @group : 검체폐기대장
- * @ver : 2007.11.22 (CMCDEV-0001)
- * @by : 유동철(ACK)
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 폐기물 목록 선택 처리 Function
- */
- function fExeListChoi(grdObj, pRow, pCol, pBizFlagCd) {
- var sNode = "/root/main/abninfo"+pBizFlagCd+"/wastelist";
- //---------------------------------
- if (Number(pRow) > 0) return false;
- //-----------------------------------------------------
- for (var iNo=1; iNo <= getNodesetCount(sNode); iNo++) {
- model.makeValue(sNode+"["+iNo+"]/abndd", getCurrentDate());
- model.makeValue(sNode+"["+iNo+"]/abntm", getCurrentTime());
- model.makeValue(sNode+"["+iNo+"]/abnid", getUserInfo("userid"));
- model.makeValue(sNode+"["+iNo+"]/abnnm", getUserInfo("usernm"));
- model.makeValue(sNode+"["+iNo+"]/abnvol", "0");
- }
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body>
- <group id="grp_btn" style="left:0px; top:13; width:1195px; height:27px; ">
- <line id="line10" class="line_6" style="x1:0px; y1:25; x2:1194px; y2:25; "/>
- <button id="button13" class="btn6_letter5" navindex="15" style="left:5px; top:3px; width:92px; height:22px; ">
- <caption>EXCEL저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fExeSaveToExcel();
- ]]>
- </script>
- </button>
- <button id="btn_save" class="btn4_letter2" navindex="14" style="left:1138px; top:3px; width:56px; height:22px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fExeSave("1");
- ]]>
- </script>
- </button>
- <button id="btn_cncl" class="btn4_letter2" navindex="13" visibility="hidden" style="left:1080px; top:3px; width:56px; height:22px; ">
- <caption>취소</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fExeSave("2");
- ]]>
- </script>
- </button>
- </group>
- <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:220px; height:14px; ">폐기물현황</caption>
- </group>
- <group id="grp_biz" style="left:0; top:40; width:1195; height:744; ">
- <caption id="caption4" class="tit_2" style="left:5px; top:55px; width:146px; height:14px; ">폐기(액상)목록</caption>
- <line id="line1" class="line_1" style="x1:0px; y1:70px; x2:565px; y2:70px; "/>
- <group id="group2" style="left:0px; top:10px; width:1195px; 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; "/>
- <line id="line13" class="line_4" style="x1:1108px; y1:7px; x2:1108px; y2:29px; border-color:#ffe4bb; border-left-style:solid; "/>
- <caption id="caption5" class="search_no_b" style="left:979px; top:8px; width:12px; height:17px; ">~</caption>
- <button id="btn_sea" class="btn1_letter2" navindex="10" style="left:1123px; top:7px; width:56px; height:22px; background-image:../../../com/commonweb/images/btn1_letter2.gif; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fGetWasteList();
- ]]>
- </script>
- </button>
- <input id="ipt_cnclfromdd" ref="/root/init/acptfromdd" class="input_s_essential" navindex="8" inputtype="date" format="yyyy-mm-dd" mask="exclude" showmask="true" style="left:876px; top:8px; width:100px; height:19px; "/>
- <input id="ipt_cncltodd" ref="/root/init/acpttodd" class="input_s_essential" navindex="9" inputtype="date" format="yyyy-mm-dd" mask="exclude" showmask="true" style="left:995px; top:8px; width:100px; height:19px; "/>
- <select1 id="cbo_ptnocd" ref="/root/init/ptnocode" navindex="1" appearance="minimal" editmode="search" style="left:109px; top:8px; width:111px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/ptnocd/ptnocdlist">
- <label ref="ptnonm"/>
- <value ref="ptnocd"/>
- </itemset>
- </choices>
- </select1>
- <input id="ipt_fromptno" ref="/root/init/fromptno" class="text_center" navindex="3" maxlength="6" style="left:253px; top:8px; width:50px; height:19px; "/>
- <caption id="caption1" class="search_name" style="left:15px; top:9px; width:90px; height:17px; ">병리번호 :</caption>
- <caption id="caption7" class="search_no_b" style="left:306px; top:8px; width:12px; height:17px; ">~</caption>
- <input id="input1" ref="/root/init/toptno" class="text_center" navindex="5" maxlength="6" style="left:351px; top:8px; width:50px; height:19px; "/>
- <input id="input2" ref="/root/init/toyear" class="text_center" navindex="4" maxlength="2" style="left:321px; top:8px; width:27px; height:19px; "/>
- <input id="ipt_fromyear" ref="/root/init/fromyear" class="text_center" navindex="2" maxlength="2" style="left:223px; top:8px; width:27px; height:19px; "/>
- <caption id="caption8" class="search_name" style="left:600px; top:9px; width:99px; height:17px; ">폐기물구분 :</caption>
- <caption id="cap_refdd" class="search_name" style="left:787px; top:9px; width:93px; height:17px; ">접수일자 :</caption>
- <caption id="caption2" class="search_name" style="left:419px; top:9px; width:99px; height:17px; ">조회구분 :</caption>
- <select1 id="cmb_refflagcd" ref="/root/init/refflagcd" navindex="6" appearance="minimal" style="left:510px; top:8px; width:69px; height:19px; ">
- <choices>
- <item>
- <label>미폐기</label>
- <value>0</value>
- </item>
- <item>
- <label>폐기</label>
- <value>1</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fExeRefFlagChng();
- ]]>
- </script>
- </select1>
- <select1 id="cmb_abnflagcd" ref="/root/init/abnflagcd" navindex="7" appearance="minimal" style="left:701px; top:8px; width:69px; height:19px; ">
- <choices>
- <item>
- <label>액상</label>
- <value>0</value>
- </item>
- <item>
- <label>적출물</label>
- <value>1</value>
- </item>
- <item>
- <label>전체</label>
- <value>2</value>
- </item>
- </choices>
- </select1>
- </group>
- <datagrid id="grd_wastelist1" nodeset="/root/main/abninfo1/wastelist" class="datagrid2" caption="선
택^기관코드^abnflagcd^abndg^abnseqno^wasteflagcd^wasteresncd^폐기물^ptno^dispptno^spccd^spcnm^폐기일자^폐기
시간^abnid^인계자^abncustflagcd^폐기업체^용량(ℓ)" colsep="^" colwidth="40, 0, 0, 0, 0, 0, 0, 130, 0, 0, 0, 0, 84, 50, 0, 70, 0, 100, 52" dataheight="25" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" navindex="16" style="left:0px; top:75px; width:565px; height:668px; ">
- <col ref="choi" type="checkbox"/>
- <col ref="instcd"/>
- <col ref="abnflagcd"/>
- <col ref="abndg"/>
- <col ref="abnseqno"/>
- <col ref="wasteflagcd"/>
- <col ref="wasteresncd"/>
- <col ref="wasteresnnm"/>
- <col ref="ptno"/>
- <col ref="dispptno"/>
- <col ref="spccd"/>
- <col ref="spcnm"/>
- <col class="text_center" ref="abndd" type="inputdate" format="yyyy-mm-dd" mask="exclude" showmask="true"/>
- <col ref="abntm" format="hh:nn:ss" mask="exclude" showmask="true"/>
- <col ref="abnid"/>
- <col ref="abnnm"/>
- <col ref="abncustflagcd"/>
- <col ref="abncustresncd" type="combo">
- <choices>
- <itemset nodeset="/root/init/resncd/resncdlist[baseflagcd='61']">
- <label ref="resncnts"/>
- <value ref="resncd"/>
- </itemset>
- </choices>
- </col>
- <col class="text_right" ref="abnvol" type="input" format="#,###" mask="exclude" maxlength="4" showmask="true"/>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_wastelist1.gridToInstance();
- ]]>
- </script>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- fExeWasteClick(grd_wastelist1, "1", "1");
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fExeWasteChoi(grd_wastelist1.row, grd_wastelist1.col, "1", "2");
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
- fExeListChoi(grd_wastelist1, grd_wastelist1.row, grd_wastelist1.col, "1");
- ]]>
- </script>
- </datagrid>
- <datagrid id="grd_wastelist2" nodeset="/root/main/abninfo2/wastelist" class="datagrid2" caption="^기관코드^abnflagcd^abndg^abnseqno^wasteflagcd^wasteresncd^wasteresnnm^ptno^병리번호^spccd^검체^폐기일자^폐기
시간^abnid^인계자^abncustflagcd^폐기업체^용량(ℓ)" colsep="^" colwidth="40, 0, 0, 0, 0, 0, 0, 0, 0, 80, 0, 112, 84, 50, 0, 70, 0, 90, 52" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" navindex="17" style="left:568; top:75px; width:626px; height:668px; ">
- <col ref="choi" type="checkbox"/>
- <col ref="instcd"/>
- <col ref="abnflagcd"/>
- <col ref="abndg"/>
- <col ref="abnseqno"/>
- <col ref="wasteflagcd"/>
- <col ref="wasteresncd"/>
- <col ref="wasteresnnm"/>
- <col ref="ptno"/>
- <col class="text_center" ref="dispptno"/>
- <col ref="spccd"/>
- <col ref="spcnm"/>
- <col ref="abndd" type="inputdate"/>
- <col ref="abntm"/>
- <col ref="abnid"/>
- <col ref="abnnm"/>
- <col ref="abncustflagcd"/>
- <col ref="abncustresncd" type="combo">
- <choices>
- <itemset nodeset="/root/init/resncd/resncdlist">
- <label ref="resncnts"/>
- <value ref="resncd"/>
- </itemset>
- </choices>
- </col>
- <col class="text_right" ref="abnvol" type="input" format="#,###" mask="exclude" maxlength="4" showmask="true"/>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_wastelist2.gridToInstance();
- ]]>
- </script>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- fExeWasteClick(grd_wastelist2, "2", "1");
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fExeWasteChoi(grd_wastelist2.row, grd_wastelist2.col, "2", "2");
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
- fExeListChoi(grd_wastelist2, grd_wastelist2.row, grd_wastelist2.col, "2");
- ]]>
- </script>
- </datagrid>
- <caption id="caption3" class="tit_2" style="left:573px; top:55px; width:146px; height:14px; ">폐기(적출물)목록</caption>
- <line id="line2" class="line_1" style="x1:568px; y1:70px; x2:1194px; y2:70px; "/>
- <datagrid id="grd_savelist" nodeset="/root/main/saveinfo/wastelist" visibility="hidden" caption="선택^기관코드^abnflagcd^abndg^abnseqno^wasteflagcd^wasteresncd^폐기물^ptno^dispptno^spccd^spcnm^폐기일자^폐기
시간^abnid^폐기자^abncustflagcd^폐기업체^용량(ℓ)^bizflagcd" colsep="^" colwidth="100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" style="left:200px; top:50px; width:115px; height:45px; ">
- <col ref="choi" type="checkbox"/>
- <col ref="instcd"/>
- <col ref="abnflagcd"/>
- <col ref="abndg"/>
- <col ref="abnseqno"/>
- <col ref="wasteflagcd"/>
- <col ref="wasteresncd"/>
- <col ref="wasteresnnm"/>
- <col ref="ptno"/>
- <col ref="dispptno"/>
- <col ref="spccd"/>
- <col ref="spcnm"/>
- <col class="text_center" ref="abndd" type="inputdate" format="yyyy-mm-dd" mask="exclude" showmask="true"/>
- <col ref="abntm" format="hh:nn:ss" mask="exclude" showmask="true"/>
- <col ref="abnid"/>
- <col ref="abnnm"/>
- <col ref="abncustflagcd"/>
- <col ref="abncustresncd" type="combo"/>
- <col ref="abnvol" type="input" format="#,###" mask="exclude" maxlength="4" showmask="true"/>
- <col ref="bizflagcd"/>
- </datagrid>
- <datagrid id="grd_abnlist" nodeset="/root/main/abninfo/abnlist" visibility="hidden" caption="기관코드^폐기물^01^02^03^04^05^06^07^08^09^10^11^12^13^14^15^16^17^18^19^20^21^22^23^24^25^26^27^28^29^30^31^합계" colsep="^" colwidth="0, 173, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50,50, 50, 50, 50, 50, 50" mergecellsfixedrows="bycolrec" rowsep="|" style="left:370px; top:160px; width:665px; height:150px; ">
- <col ref="instcd"/>
- <col ref="wasteresnnm"/>
- <col class="text_right" ref="day01" format="#,###" mask="exclude" showmask="true"/>
- <col class="text_right" ref="day02" format="#,###" mask="exclude" showmask="true"/>
- <col class="text_right" ref="day03" format="#,###" mask="exclude" showmask="true"/>
- <col class="text_right" ref="day04" format="#,###" mask="exclude" showmask="true"/>
- <col class="text_right" ref="day05" format="#,###" mask="exclude" showmask="true"/>
- <col class="text_right" ref="day06" format="#,###" mask="exclude" showmask="true"/>
- <col class="text_right" ref="day07" format="#,###" mask="exclude" showmask="true"/>
- <col class="text_right" ref="day08" format="#,###" mask="exclude" showmask="true"/>
- <col class="text_right" ref="day09" format="#,###" mask="exclude" showmask="true"/>
- <col class="text_right" ref="day10" format="#,###" mask="exclude" showmask="true"/>
- <col class="text_right" ref="day11" format="#,###" mask="exclude" showmask="true"/>
- <col class="text_right" ref="day12" format="#,###" mask="exclude" showmask="true"/>
- <col class="text_right" ref="day13" format="#,###" mask="exclude" showmask="true"/>
- <col class="text_right" ref="day14" format="#,###" mask="exclude" showmask="true"/>
- <col class="text_right" ref="day15" format="#,###" mask="exclude" showmask="true"/>
- <col class="text_right" ref="day16" format="#,###" mask="exclude" showmask="true"/>
- <col class="text_right" ref="day17" format="#,###" mask="exclude" showmask="true"/>
- <col class="text_right" ref="day18" format="#,###" mask="exclude" showmask="true"/>
- <col class="text_right" ref="day19" format="#,###" mask="exclude" showmask="true"/>
- <col class="text_right" ref="day20" format="#,###" mask="exclude" showmask="true"/>
- <col class="text_right" ref="day21" format="#,###" mask="exclude" showmask="true"/>
- <col class="text_right" ref="day22" format="#,###" mask="exclude" showmask="true"/>
- <col class="text_right" ref="day23" format="#,###" mask="exclude" showmask="true"/>
- <col class="text_right" ref="day24" format="#,###" mask="exclude" showmask="true"/>
- <col class="text_right" ref="day25" format="#,###" mask="exclude" showmask="true"/>
- <col class="text_right" ref="day26" format="#,###" mask="exclude" showmask="true"/>
- <col class="text_right" ref="day27" format="#,###" mask="exclude" showmask="true"/>
- <col class="text_right" ref="day28" format="#,###" mask="exclude" showmask="true"/>
- <col class="text_right" ref="day29" format="#,###" mask="exclude" showmask="true"/>
- <col class="text_right" ref="day30" format="#,###" mask="exclude" showmask="true"/>
- <col class="text_right" ref="day31" format="#,###" mask="exclude" showmask="true"/>
- <col class="text_right" ref="daytot" format="#,###" mask="exclude" showmask="true"/>
- </datagrid>
- <input id="ipt_abnvol" ref="/root/init/abnvol2" format="#,###" style="left:1129px; top:50px; width:65px; height:19px; text-align:right; vertical-align:middle; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
-
- //---------------------------
- if ( event.keyCode == 13 ) {
- var sNode="/root/main/abninfo2/wastelist";
- var sVol = ipt_abnvol.currentText;
-
- model.makeValue("/root/init/abnvol2", sVol);
- ipt_abnvol.refresh();
-
-
- //-------------------------------------------------------
- for (var iNo=1; iNo <= getNodesetCount(sNode); iNo++) {
-
- if ( model.getValue(sNode+"["+iNo+"]/choi") == "true") {
- model.makeValue(sNode+"["+iNo+"]/abnvol", sVol);
- }
- }
-
- model.refresh();
- }
- ]]>
- </script>
- <script type="javascript" ev:event="onkeydown">
- <![CDATA[
- ]]>
- </script>
- </input>
- <select1 id="cbo_custcd" ref="/root/init/custcd2" appearance="minimal" style="left:1025px; top:50px; width:100px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/resncd/resncdlist">
- <label ref="resncnts"/>
- <value ref="resncd"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
- var sNode="/root/main/abninfo2/wastelist";
-
- //-------------------------------------------------------
- for (var iNo=1; iNo <= getNodesetCount(sNode); iNo++) {
-
- if ( model.getValue(sNode+"["+iNo+"]/choi") == "true") {
- model.makeValue(sNode+"["+iNo+"]/abncustflagcd", model.getValue("/root/init/resncd/resncdlist/baseflagcd") );
- model.makeValue(sNode+"["+iNo+"]/abncustresncd", model.getValue("/root/init/custcd1") );
- }
- }
-
- model.refresh();
-
- ]]>
- </script>
- </select1>
- <input id="ipt_abnvol1" ref="/root/init/abnvol1" format="#,###" style="left:500px; top:50px; width:65px; height:19px; text-align:right; vertical-align:middle; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
-
- //---------------------------
- if ( event.keyCode == 13 ) {
- var sNode="/root/main/abninfo1/wastelist";
- var sVol = ipt_abnvol1.currentText;
-
- model.makeValue("/root/init/abnvol1", sVol);
- ipt_abnvol1.refresh();
-
-
- //-------------------------------------------------------
- for (var iNo=1; iNo <= getNodesetCount(sNode); iNo++) {
-
- if ( model.getValue(sNode+"["+iNo+"]/choi") == "true") {
- model.makeValue(sNode+"["+iNo+"]/abnvol", sVol);
- }
- }
-
- model.refresh();
- }
- ]]>
- </script>
- <script type="javascript" ev:event="onkeydown">
- <![CDATA[
- ]]>
- </script>
- </input>
- <select1 id="cbo_custcd1" ref="/root/init/custcd1" appearance="minimal" style="left:395px; top:50px; width:100px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/resncd/resncdlist">
- <label ref="resncnts"/>
- <value ref="resncd"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
- var sNode="/root/main/abninfo1/wastelist";
-
- //-------------------------------------------------------
- for (var iNo=1; iNo <= getNodesetCount(sNode); iNo++) {
-
- if ( model.getValue(sNode+"["+iNo+"]/choi") == "true") {
- model.makeValue(sNode+"["+iNo+"]/abncustflagcd", model.getValue("/root/init/resncd/resncdlist/baseflagcd") );
- model.makeValue(sNode+"["+iNo+"]/abncustresncd", model.getValue("/root/init/custcd1") );
- }
- }
-
- model.refresh();
-
- ]]>
- </script>
- </select1>
- </group>
- </xhtml:body>
- </xhtml:html>
|