123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <!--
- * 제 목 : SMLPR01800_검사결과이미지.xrw
- * 설 명 : 검사결과이미지 화면
- * 설 계 자 : (주)에이씨케이 - 유동철
- * 작 성 자 : (주)에이씨케이 - 유동철
- * 작 성 일 : 2007.11.14
- * 수정이력 :
- * 기 타 :
- -->
- <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/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>
- <ptnoinfo>
- <ptnolist>
- <choi/>
- <instcd/>
- <ptno/>
- <dispptno/>
- <pid/>
- <patnm/>
- <testnmlist/>
- <rsltrgstdd/>
- <rsltrgstno/>
- <readdd/>
- <humspec/>
- </ptnolist>
- </ptnoinfo>
- <imginfo>
- <imglist>
- <instcd/>
- <pid/>
- <bizflagcd/>
- <ptno/>
- <rgstdd/>
- <rgsttm/>
- <rgstrid/>
- <rgstrnm/>
- <imgno/>
- <imgseqno/>
- <imgpath/>
- <rsltimg/>
- <dummy/>
- <exists/>
- <orgimgpath/>
- </imglist>
- </imginfo>
- </main>
- <send/>
- <init>
- <acptfromdd/>
- <acpttodd/>
- <refmthdcd/>
- <refval/>
- <ptnocode/>
- <fromyear/>
- <fromptno/>
- <toyear/>
- <toptno/>
- <sysdt>
- <sysdtinfo>
- <sysdd/>
- <systm/>
- </sysdtinfo>
- </sysdt>
- <ptnocd>
- <ptnocdlist>
- <instcd/>
- <ptnocd/>
- <ptnonm/>
- </ptnocdlist>
- </ptnocd>
- <imgsrc/>
- <popupmenu>
- <item>
- <nm>행삭제</nm>
- <funt>fExeDelRow</funt>
- </item>
- <item>
- <nm>행삽입</nm>
- <funt>fExeAppendRow</funt>
- </item>
- </popupmenu>
- </init>
- <hidden>
- </hidden>
- <message/>
- </root>
- </instance>
- <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" ev:event="xforms-ready">
- <![CDATA[
- fExeInitialize();
-
- //추가 박중규 2008.09.23
- //결과등록화면에서 parameter를 받기 위해서 추가.
- if (checkOpener()) { //opener 검사
- var param = opener.javascript.getParameter("opener_parameter_id"); //opener parameter value를 get
- if(param != "") { // opener parameter value가 있는 경우
- //parameter value를 이용하여 프로그램 수행
- condarray = param.split("▦");
- model.setValue("/root/init/refval", condarray[0]);
- model.setValue("/root/init/ptnocode", condarray[1]);
- model.setValue("/root/init/fromyear", condarray[2]);
- model.setValue("/root/init/fromptno", condarray[3]);
- model.setValue("/root/init/toyear", condarray[2]);
- model.setValue("/root/init/toptno", condarray[3]);
-
- if(model.getValue("/root/init/refval") != "" || model.getValue("/root/init/ptnocode") != "") {
- btn_sea.dispatch("DOMActivate");
- }
-
-
- }
- }
- ]]>
- </script>
- <submission id="TRLPZ00102" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/init/sysdt/sysdtinfo"/>
- <submission id="TRLPZ00109" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/init/ptnocd/ptnocdlist"/>
- <submission id="TRLPR01801" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/ptnoinfo/ptnolist"/>
- <submission id="TRLPR01802" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/imginfo/imglist"/>
- <submission id="TXLPR01801" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/message"/>
- </model>
- <script type="javascript">
- <![CDATA[
-
- /* @group : 검사결과이미지 화면
- * @ver : 2007.11.15 (CMCDEV-0001)
- * @by : 유동철(ACK)
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 화면초기화 함수
- */
- function fExeInitialize() {
- var sCurDate = "";
-
- //--------------------------------------------------
- model.removeNodeset("/root/main/ptnoinfo/ptnolist");
- model.removeNodeset("/root/main/imginfo/imglist");
-
- //----------------
- // 시스템일자 조회
- model.removeNodeset("/root/send");
- model.makeValue("/root/send/instcd", getUserInfo("dutplceinstcd"));
- submit("TRLPZ00102", false);
- submit("TRLPZ00109");
- //------------------------------------------------------------
- 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/refmthdcd", "1"); // 검색방법(등록번호)
- model.makeValue("/root/init/refval", ""); // 검색값
- 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.refresh();
- }
-
- /* @group : 검사결과이미지 화면
- * @ver : 2007.11.14 (CMCDEV-0001)
- * @by : 유동철(ACK)
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 접수목록 조회 처리 함수
- */
- function fGetPtNoList() {
-
- 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.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/refmthdcd", model.getValue("/root/init/refmthdcd"));
- model.makeValue("/root/send/refval", model.getValue("/root/init/refval"));
- 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("TRLPR01801")) {
- if(grd_ptnolist.rows == 2) {
- grd_ptnolist.row = 1;
- fExePtNoListChoi(1);
- }
-
- if(grd_imglist.rows == 2) {
- grd_imglist.row = 1;
- fExeImgListChoi(1);
- }
-
-
- }
- }
-
-
- /* @group : 검사결과이미지
- * @ver : 2007.11.14 (CMCDEV-0001)
- * @by : 유동철(ACK)
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 검색값을 입력하고 Enter키를 누를 경우 처리 Function
- */
- function fExeInputKey() {
- if(event.keyCode == 13) {
- model.makeValue("/root/init/refval", ipt_seaval.currentText);
- ipt_seaval.refresh();
- //-------------
- fGetPtNoList();
- }
- }
-
- /* @group : 검사결과이미지
- * @ver : 2007.11.16 (CMCDEV-0001)
- * @by : 유동철(ACK)
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 접수목록 선택 처리 Function
- */
- function fExePtNoListChoi(pRowNo) {
-
- //if(grd_ptnolist.row > 0 && grd_ptnolist.isCell(event.target) && grd_ptnolist.row >= grd_ptnolist.fixedRows) {
- // fExePtNoChoi(grd_ptnolist.row);
- //}
- if(pRowNo > 0 && pRowNo >= grd_ptnolist.fixedRows) {
- fExePtNoChoi(pRowNo);
-
- if(grd_imglist.rows == 2 && grd_ptnolist.isCell(event.target)) {
- fExeImgListChoi(1);
- }
- }
- }
-
- /* @group : 검사결과이미지
- * @ver : 2007.11.16 (CMCDEV-0001)
- * @by : 유동철(ACK)
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 접수 병리번호 선택 처리 Function
- */
- function fExePtNoChoi(pRow) {
-
- var iFindNo = 0;
- var sNode = "/root/main/ptnoinfo/ptnolist";
-
-
- //--------------------------
- if (grd_ptnolist.col != 1) {
-
- //-----------------------------------------------------
- for (var iNo=1; iNo <= getNodesetCount(sNode); iNo++) {
- model.setValue(sNode+"["+iNo+"]/choi", "false");
- }
- //----------------------------------------------
- model.setValue(sNode+"["+pRow+"]/choi", "true");
-
- } else {
- iFindNo = grd_ptnolist.findRow("true", 1, 1, false, false);
- if (iFindNo <= 0) {
- model.removeNodeset("/root/main/imginfo/imglist");
- img_src.src = "";
- img_src.refresh();
- grd_imglist.refresh();
- }
- }
-
- //----------------
- // 이미지목록 조회
- model.removeNodeset("/root/send");
- model.removeNodeset("/root/main/imginfo/imglist");
- grd_imglist.refresh();
-
- //--------------------------------------------------------------------
- model.makeValue("/root/send/instcd", getUserInfo("dutplceinstcd"));
- model.makeValue("/root/send/pid", model.getValue(sNode+"["+pRow+"]/pid"));
- model.makeValue("/root/send/ptno", model.getValue(sNode+"["+pRow+"]/ptno"));
- model.makeValue("/root/send/bizflagcd", "'PR'");
- model.makeValue("/root/send/imgno", "0");
- model.makeValue("/root/send/imgseqno", "0");
- submit("TRLPR01802");
- }
-
- /* @group : 검사결과이미지
- * @ver : 2007.11.16 (CMCDEV-0001)
- * @by : 유동철(ACK)
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 이미지목록 선택 처리 Function
- */
- function fExeImgListChoi(pRowNo) {
-
- //if(grd_imglist.row > 0 && grd_imglist.isCell(event.target) && grd_imglist.row >= grd_imglist.fixedRows) {
- // fExeImgChoi(grd_imglist.row);
- //}
- if(pRowNo > 0 && pRowNo >= grd_imglist.fixedRows) {
- fExeImgChoi(pRowNo);
- }
- }
-
- /* @group : 검사결과이미지
- * @ver : 2007.11.16 (CMCDEV-0001)
- * @by : 유동철(ACK)
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 이미지 선택 처리 Function
- */
- function fExeImgChoi(pRow) {
-
- //----------------------
- // 찾기버튼 클릭 시 처리
- if (grd_imglist.col == "9")
- {
- fGetAppImg(pRow);
- } else {
- fExeImgDisp(pRow);
- }
- }
-
- /* @group : 검사결과이미지
- * @ver : 2007.11.16 (CMCDEV-0001)
- * @by : 유동철(ACK)
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 이미지 선택 처리 Function
- */
- function fGetAppImg(pRow) {
-
- var sFileName = openImageFileDialog();
-
- //--------------------------------
- if (sFileName == "") return false;
-
- //----------------------------
- fExeChngImg(sFileName, pRow);
- }
-
- /* @group : 검사결과이미지
- * @ver : 2007.11.16 (CMCDEV-0001)
- * @by : 유동철(ACK)
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 이미지 보여주기 처리 함수
- */
- function fExeChngImg(imgsrc, pRow) {
-
- setImageRefInstance("/root/main/imginfo/imglist["+pRow+"]/rsltimg");
- setImageRefInstance("/root/init/imgsrc");
-
- img_source.src = imgsrc;
- var imgData = img_source.getbase64data();
- //var imgSize = getImageSize(imgsrc);
-
- model.makeValue("/root/main/imginfo/imglist["+pRow+"]/rsltimg", imgData ,true);
- model.makeValue("/root/init/imgsrc", imgData ,true);
- model.makeValue("/root/main/imginfo/imglist["+pRow+"]/imgpath", imgsrc);
-
- /* -----------------------------------------
- * 사진 사이즈를 화면에 맞추기 위해서
- * style : stretch 추가
- img_src.attribute("width") = null;
- img_src.attribute("height") = null;
- grp_img.attribute("overflow") = "scroll";
- ------------------------------------------ */
-
- img_src.refresh();
- model.refresh();
- }
-
- /* @group : 검사결과이미지
- * @ver : 2007.11.16 (CMCDEV-0001)
- * @by : 유동철(ACK)
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 선택 이미지 보여주기 처리 함수
- */
- function fExeImgDisp(pRow) {
-
- setImageRefInstance("/root/main/imginfo/imglist["+pRow+"]/rsltimg");
- setImageRefInstance("/root/init/imgsrc");
- model.makeValue("/root/init/imgsrc", model.getValue("/root/main/imginfo/imglist["+pRow+"]/rsltimg"));
- /* ---------------------------------
- img_src.attribute("width") = null;
- img_src.attribute("height") = null;
- img_src.refresh();
- grp_img.attribute("overflow") = "scroll";
- --------------------------------- */
- img_src.refresh();
- model.refresh();
- }
-
- /* @group : 검사결과이미지
- * @ver : 2007.11.16 (CMCDEV-0001)
- * @by : 유동철(ACK)
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 이미지 그리드 행추가 처리 함수
- */
- function fExeAddRow() {
-
- for (var iNo=1; iNo <= getNodesetCount("/root/main/ptnoinfo/ptnolist"); iNo++) {
- if(model.getValue("/root/main/ptnoinfo/ptnolist["+ iNo +"]/choi") == "true") {
- if((model.getValue("/root/main/ptnoinfo/ptnolist["+ iNo +"]/readdd") == "") || (model.getValue("/root/main/ptnoinfo/ptnolist["+ iNo +"]/readdd") == "-")) {
-
- } else {
- messageBox("최종진단된 결과이미지는 수정할 수 없습니다.", "E999");
- return;
- }
- }
- }
-
- grd_imglist.addRow();
- fExeImgRowSet(getNodesetCount("/root/main/imginfo/imglist"));
- }
-
- /* @group : 검사결과이미지
- * @ver : 2007.11.16 (CMCDEV-0001)
- * @by : 유동철(ACK)
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 이미지 그리드 행삽입 처리 함수
- */
- function fExeAppendRow() {
- for (var iNo=1; iNo <= getNodesetCount("/root/main/ptnoinfo/ptnolist"); iNo++) {
- if(model.getValue("/root/main/ptnoinfo/ptnolist["+ iNo +"]/choi") == "true") {
- if((model.getValue("/root/main/ptnoinfo/ptnolist["+ iNo +"]/readdd") == "") || (model.getValue("/root/main/ptnoinfo/ptnolist["+ iNo +"]/readdd") == "-")) {
-
- } else {
- messageBox("최종진단된 결과이미지는 수정할 수 없습니다.", "E999");
- return;
- }
- }
- }
- grd_imglist.insertRow(grd_imglist.row, "after");
- fExeImgRowSet(grd_imglist.row);
- }
- /* @group : 검사결과이미지
- * @ver : 2007.11.19 (CMCDEV-0001)
- * @by : 유동철(ACK)
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 이미지 그리드 정보 설정 처리 함수
- */
- function fExeImgRowSet(pRowNo) {
- var iNo = 0;
- var iFindNo = grd_ptnolist.findRow("true", 1, 1, false, false);
- var sNode = "/root/main/imginfo/imglist";
- var sSrcNode = "/root/main/ptnoinfo/ptnolist";
-
- //----------------
- if (pRowNo == 1) {
- model.makeValue(sNode+"["+pRowNo+"]/instcd", getUserInfo("dutplceinstcd"));
- model.makeValue(sNode+"["+pRowNo+"]/pid", model.getValue(sSrcNode+"["+iFindNo+"]/pid"));
- model.makeValue(sNode+"["+pRowNo+"]/bizflagcd", "PR");
- model.makeValue(sNode+"["+pRowNo+"]/ptno", model.getValue(sSrcNode+"["+iFindNo+"]/ptno"));
- model.makeValue(sNode+"["+pRowNo+"]/rgstdd", "-");
- model.makeValue(sNode+"["+pRowNo+"]/rgsttm", "-");
- model.makeValue(sNode+"["+pRowNo+"]/rgstrid", "-");
- model.makeValue(sNode+"["+pRowNo+"]/rgstrnm", "-");
- model.makeValue(sNode+"["+pRowNo+"]/imgno", "0");
- model.makeValue(sNode+"["+pRowNo+"]/imgseqno", "0");
- model.makeValue(sNode+"["+pRowNo+"]/imgpath", " ");
- model.makeValue(sNode+"["+pRowNo+"]/rsltimg", " ");
- model.makeValue(sNode+"["+pRowNo+"]/exists", "N");
- model.makeValue(sNode+"["+pRowNo+"]/orgimgpath", "");
- } else {
- //-----------------------
- iNo = Number(pRowNo) - 1;
-
- //-----------------------------------------------------------------------------------------
- model.makeValue(sNode+"["+pRowNo+"]/instcd", model.getValue(sNode+"["+iNo+"]/instcd"));
- model.makeValue(sNode+"["+pRowNo+"]/pid", model.getValue(sNode+"["+iNo+"]/pid"));
- model.makeValue(sNode+"["+pRowNo+"]/bizflagcd", model.getValue(sNode+"["+iNo+"]/bizflagcd"));
- model.makeValue(sNode+"["+pRowNo+"]/ptno", model.getValue(sNode+"["+iNo+"]/ptno"));
- model.makeValue(sNode+"["+pRowNo+"]/rgstdd", model.getValue("/root/init/sysdt/sysdtinfo/sysdd"));
- model.makeValue(sNode+"["+pRowNo+"]/rgsttm", model.getValue("/root/init/sysdt/sysdtinfo/systm"));
- model.makeValue(sNode+"["+pRowNo+"]/rgstrid", getUserInfo("userid"));
- model.makeValue(sNode+"["+pRowNo+"]/rgstrnm", getUserInfo("usernm"));
- model.makeValue(sNode+"["+pRowNo+"]/imgno", model.getValue(sNode+"["+iNo+"]/imgno"));
- model.makeValue(sNode+"["+pRowNo+"]/imgseqno", "0");
- model.makeValue(sNode+"["+pRowNo+"]/imgpath", " ");
- model.makeValue(sNode+"["+pRowNo+"]/rsltimg", " ");
- model.makeValue(sNode+"["+pRowNo+"]/exists", "N");
- model.makeValue(sNode+"["+pRowNo+"]/orgimgpath", "");
- }
-
- //-----------------
- fGetAppImg(pRowNo);
- }
-
-
- /* @group : 검사결과이미지
- * @ver : 2007.11.16 (CMCDEV-0001)
- * @by : 유동철(ACK)
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 이미지 그리드 행삭제 처리 함수
- */
- function fExeDelRow() {
-
- for (var iNo=1; iNo <= getNodesetCount("/root/main/ptnoinfo/ptnolist"); iNo++) {
- if(model.getValue("/root/main/ptnoinfo/ptnolist["+ iNo +"]/choi") == "true") {
- if((model.getValue("/root/main/ptnoinfo/ptnolist["+ iNo +"]/readdd") == "") || (model.getValue("/root/main/ptnoinfo/ptnolist["+ iNo +"]/readdd") == "-")) {
-
- } else {
- messageBox("최종진단된 결과이미지는 수정할 수 없습니다.", "E999");
- return;
- }
- }
- }
-
- sNode = "/root/main/imginfo/imglist";
-
- //----------------------------------------------------------------
- if (model.getValue(sNode+"["+grd_imglist.row+"]/exists") == "N") {
- grd_imglist.deleteRow(grd_imglist.row);
- } else {
- model.setValue(sNode+"["+grd_imglist.row+"]/exists", "D");
- grd_imglist.addStatus(grd_imglist.row, "delete");
- grd_imglist.rowstyle(grd_imglist.row, "data", "background-color") = "#ff7c80";
- //grd_imglist.refresh();
- }
- }
-
- /* @group : 검사결과이미지
- * @ver : 2007.11.16 (CMCDEV-0001)
- * @by : 유동철(ACK)
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 이미지 저장 처리 함수
- */
- function fExeImgSave() {
-
- var re = /\\/g; // i:1회실행, g:모두실행, gi:전역실행(대소문자 안가림)
- var iRowNo = 1;
- var sNode = "/root/main/imginfo/imglist";
- var sImgPath = "";
- var sRowNo = grd_ptnolist.row;
-
- for (var iNo=1; iNo <= getNodesetCount("/root/main/ptnoinfo/ptnolist"); iNo++) {
- if(model.getValue("/root/main/ptnoinfo/ptnolist["+ iNo +"]/choi") == "true") {
- if((model.getValue("/root/main/ptnoinfo/ptnolist["+ iNo +"]/readdd") == "") || (model.getValue("/root/main/ptnoinfo/ptnolist["+ iNo +"]/readdd") == "-")) {
-
- } else {
- messageBox("최종진단된 결과이미지는 수정할 수 없습니다.", "E999");
- return;
- }
- }
- }
-
- //추가 박중규 2008.09.25
- if(sRowNo < 1) {
- messageBox("접수목록에서 검사를 선택하여 주세요.", "E999");
- return;
- }
-
- //------------------------
- grd_imglist.clearStatus();
- for (var iNo=1; iNo <= getNodesetCount(sNode); iNo++) {
-
- //----------------------------------------------------
- if (model.getValue(sNode+"["+iNo+"]/exists") == "D") {
- grd_imglist.addStatus(iNo, "delete");
-
- } else {
- grd_imglist.addStatus(iNo, "insert");
- model.setValue(sNode+"["+iNo+"]/imgseqno", iRowNo++);
- }
-
- //---------------------------------------------------
- //sImgPath = model.getValue(sNode+"["+iNo+"]/imgpath");
- //model.setValue(sNode+"["+iNo+"]/imgpath", sImgPath.replace(re, "\"));
- }
-
- //--------------------------------
- model.removeNodeset("/root/send");
- model.makeValue("/root/send/imglist", grd_imglist.getUpdateData());
-
- //-------------------------
- if (submit("TXLPR01801")) {
- fExePtNoChoi(sRowNo);
- model.makeValue("/root/init/imgsrc", "");
- img_src.refresh();
- }
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body visibility="visible" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <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="btn_save" class="btn4_letter2" navindex="7" style="left:1139; top:3; width:56px; height:22px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- fExeImgSave();
- ]]>
- </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:410px; 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; "/>
- <input id="ipt_seaval" ref="/root/init/refval" class="input_search" navindex="6" maxlength="10" style="left:617px; top:8px; width:98px; height:19px; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- fExeInputKey();
- ]]>
- </script>
- </input>
- <caption id="caption3" class="search_name" style="left:526px; top:9px; width:86px; height:17px; ">등록번호 :</caption>
- <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[
- fGetPtNoList();
- ]]>
- </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:156px; 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:298px; 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:351px; top:8px; width:12px; height:17px; ">~</caption>
- <input id="input1" ref="/root/init/toptno" class="text_center" navindex="5" maxlength="6" style="left:396px; top:8px; width:50px; height:19px; "/>
- <input id="input2" ref="/root/init/toyear" class="text_center" navindex="4" maxlength="2" style="left:366px; top:8px; width:27px; height:19px; "/>
- <input id="ipt_fromyear" ref="/root/init/fromyear" class="text_center" navindex="2" maxlength="2" style="left:268px; top:8px; width:27px; height:19px; "/>
- <caption id="cap_refdd" class="search_name" style="left:787px; top:9px; width:86px; height:17px; ">접수일자 :</caption>
- </group>
- <datagrid id="grd_ptnolist" nodeset="/root/main/ptnoinfo/ptnolist" class="datagrid2" caption="선
택^기관코드^병리번호^병리번호^등록번호^환자명^검사명^인종/민족^rsltrgstdd^rsltrgstno^readdd" colsep="^" colwidth="26, 0, 0, 80, 65, 55, 124, 100, 0, 0, 0" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" navindex="11" style="left:0px; top:75px; width:410px; height:390px; ">
- <col ref="choi" type="checkbox"/>
- <col ref="instcd"/>
- <col ref="ptno"/>
- <col class="text_center" ref="dispptno"/>
- <col class="text_center" ref="pid"/>
- <col class="text_center" ref="patnm"/>
- <col ref="testnmlist"/>
- <col ref="humspec"/>
- <col class="text_center" ref="rsltrgstdd"/>
- <col class="text_center" ref="rsltrgstno"/>
- <col ref="readdd"/>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_ptnolist.gridToInstance();
- ]]>
- </script>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- fExePtNoListChoi(grd_ptnolist.row);
- ]]>
- </script>
- </datagrid>
- <caption id="caption2" class="tit_2" style="left:0px; top:480px; width:146px; height:13px; ">이미지목록</caption>
- <caption id="caption8" class="tit_2" style="left:418px; top:55px; width:146px; height:13px; ">이미지</caption>
- <line id="line3" class="line_1" style="x1:414px; y1:69px; x2:1194px; y2:69px; "/>
- <button id="btn_delrow" class="btn2_letter3" navindex="11" style="left:357px; top:474px; width:53px; height:19px; ">
- <caption>행삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fExeDelRow();
- ]]>
- </script>
- </button>
- <button id="btn_addrow" class="btn2_letter3" navindex="11" style="left:302px; top:474px; width:53px; height:19px; ">
- <caption>행추가</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fExeAddRow();
- ]]>
- </script>
- </button>
- <img id="img_source" visibility="hidden" style="left:775px; top:50px; width:40px; height:20px; background-stretch:stretch; border-style:solid; "/>
- <group id="grp_img" style="left:415px; top:73px; width:780px; height:664px; background-stretch:no-stretch; ">
- <img id="img_src" ref="/root/init/imgsrc" style="left:0px; top:1px; width:778px; height:660px; background-stretch:stretch; border-style:solid; "/>
- </group>
- <datagrid id="grd_imglist" nodeset="/root/main/imginfo/imglist" caption="instcd^pid^bizflagcd^ptno^등록일자^등록시간^등록자ID^등록자^찾기^imgno^imgseqno^파일명^rsltimg^caption1^caption2" colsep="^" colwidth="0, 0, 0, 0, 0, 70, 60, 70, 35, 0, 0, 490, 0, 0, 0" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" style="left:0px; top:500px; width:410px; height:235px; ">
- <col ref="instcd"/>
- <col ref="pid"/>
- <col ref="bizflagcd"/>
- <col ref="ptno"/>
- <col ref="rgstdd"/>
- <col ref="rgsttm" style="text-align:center; "/>
- <col ref="rgstrid" style="text-align:center; "/>
- <col ref="rgstrnm" style="text-align:center; "/>
- <col ref="dummy" style="background-image:../../../com/commonweb/images/icon_search.gif; background-position:center; "/>
- <col ref="imgno"/>
- <col ref="imgseqno"/>
- <col ref="imgpath"/>
- <col ref="rsltimg"/>
- <col ref="exists"/>
- <col ref="orgimgpath"/>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- for (var iNo=1; iNo <= getNodesetCount("/root/main/ptnoinfo/ptnolist"); iNo++) {
- if(model.getValue("/root/main/ptnoinfo/ptnolist["+ iNo +"]/choi") == "true") {
- if((model.getValue("/root/main/ptnoinfo/ptnolist["+ iNo +"]/readdd") == "") || (model.getValue("/root/main/ptnoinfo/ptnolist["+ iNo +"]/readdd") == "-")) {
-
- } else {
- messageBox("최종진단된 결과이미지는 수정할 수 없습니다.", "E999");
- return;
- }
- }
- }
-
- fExeImgListChoi(grd_imglist.row);
- ]]>
- </script>
- <script type="javascript" ev:event="onmousedown">
- <![CDATA[
- setPopupMenu("grd_imglist", false, "/root/init/popupmenu/item", "nm", "funt");
- ]]>
- </script>
- <script type="javascript" ev:event="DOMFocusOut">
- <![CDATA[
- initPopupMenu();
- ]]>
- </script>
- </datagrid>
- <line id="line2" class="line_1" style="x1:0px; y1:495px; x2:410px; y2:495px; "/>
- </group>
- </xhtml:body>
- </xhtml:html>
|