123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SMLPR01800" position="absolute 0 0 1195 754" titletext="검사결과 이미지등록" oninit="SMLPR01800_oninit" onload="SMLPR01800_onload">
- <Layouts>
- <Layout>
- <Button id="btn_save" taborder="1" text="저장" class="btn4" position="absolute 1136 1 1192 23" anchor="top right" onclick="btn_save_onclick"/>
- <Static id="caption6" text="검사결과 이미지등록" class="tit_1" position="absolute 0 0 157 25" anchor="left top"/>
- <Static id="caption4" text="접수목록" class="tit_2" position="absolute 0 68 74 85" anchor="left top"/>
- <Shape id="line1" linetype="horizontal" class="line_1" position="absolute 0 87 410 93" style="strokepen:3 solid #33bbbbff;"/>
- <Div id="group2" taborder="2" position="absolute 0 25 1195 60" class="div_SA" anchor="left top right">
- <Layouts>
- <Layout>
- <Shape id="line13" linetype="vertical" class="line_4" position="absolute 1105 7 1111 29" anchor="top right"/>
- <Edit id="ipt_seaval" taborder="11" class="input_search" position="absolute 617 8 715 27" anchor="left top" onkeyup="group2_ipt_seaval_onkeyup"/>
- <Static id="caption3" text="등록번호 :" class="search_name" position="absolute 526 9 612 26" anchor="left top"/>
- <Static id="caption5" text="~" class="search_no_b" position="absolute 979 8 991 25" anchor="top right"/>
- <Button id="btn_sea" taborder="12" text="조회" class="btn1" position="absolute 1123 7 1179 29" anchor="top right" onclick="group2_btn_sea_onclick"/>
- <Calendar id="ipt_cnclfromdd" taborder="13" class="input_s_essential" position="absolute 876 8 976 27" mask="yyyy-mm-dd" anchor="top right"/>
- <Calendar id="ipt_cncltodd" taborder="14" class="input_s_essential" position="absolute 995 8 1095 27" mask="yyyy-mm-dd" anchor="top right" onkeyup="group2_ipt_cncltodd_onkeyup"/>
- <Combo id="cbo_ptnocd" taborder="15" innerdataset="ds_init_cbo_ptnocd" codecolumn="ptnocd" datacolumn="ptnonm" position="absolute 109 8 265 27" anchor="left top"/>
- <Edit id="ipt_fromptno" taborder="16" class="text_center" position="absolute 298 8 348 27" anchor="left top"/>
- <Static id="caption1" text="병리번호 :" class="search_name" position="absolute 15 9 105 26" anchor="left top"/>
- <Static id="caption7" text="~" class="search_no_b" position="absolute 353 10 365 27" anchor="left top"/>
- <Edit id="input1" taborder="17" class="text_center" position="absolute 396 8 446 27" anchor="left top"/>
- <Edit id="input2" taborder="18" class="text_center" position="absolute 366 8 393 27" anchor="left top"/>
- <Edit id="ipt_fromyear" taborder="19" class="text_center" position="absolute 268 8 295 27" anchor="left top"/>
- <Static id="cap_refdd" text="접수일자 :" class="search_name" position="absolute 787 9 873 26" anchor="top right"/>
- </Layout>
- </Layouts>
- </Div>
- <Grid id="grd_ptnolist" class="datagrid2" taborder="3" binddataset="ds_grd_ptnolist" useinputpanel="false" position="absolute 0 91 410 481" anchor="left top" oncellclick="grd_ptnolist_oncellclick">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="24"/>
- <Column size="26"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="80"/>
- <Column size="65"/>
- <Column size="55"/>
- <Column size="124"/>
- <Column size="100"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- </Columns>
- <Rows>
- <Row size="24" band="head"/>
- <Row size="24"/>
- </Rows>
- <Band id="head">
- <Cell/>
- <Cell col="1" text="선 택"/>
- <Cell col="2" text="기관코드"/>
- <Cell col="3" text="병리번호"/>
- <Cell col="4" text="병리번호"/>
- <Cell col="5" text="등록번호"/>
- <Cell col="6" text="환자명"/>
- <Cell col="7" text="검사명"/>
- <Cell col="8" text="인종/민족"/>
- <Cell col="9" text="rsltrgstdd"/>
- <Cell col="10" text="rsltrgstno"/>
- <Cell col="11" text="readdd"/>
- </Band>
- <Band id="body">
- <Cell celltype="head" text="expr:currow + 1"/>
- <Cell col="1" displaytype="checkbox" edittype="checkbox" text="bind:choi"/>
- <Cell col="2" text="bind:instcd"/>
- <Cell col="3" text="bind:ptno"/>
- <Cell col="4" class="text_center" text="bind:dispptno"/>
- <Cell col="5" class="text_center" text="bind:pid"/>
- <Cell col="6" class="text_center" text="bind:patnm"/>
- <Cell col="7" style="align:left middle;" text="bind:testnmlist"/>
- <Cell col="8" text="bind:humspec"/>
- <Cell col="9" class="text_center" text="bind:rsltrgstdd"/>
- <Cell col="10" class="text_center" text="bind:rsltrgstno"/>
- <Cell col="11" text="bind:readdd"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Static id="caption2" text="이미지목록" class="tit_2" position="absolute 0 493 90 510"/>
- <Static id="caption8" text="이미지" class="tit_2" position="absolute 414 68 480 84"/>
- <Shape id="line3" linetype="horizontal" class="line_1" position="absolute 415 86 1193 92" style="strokepen:3 solid #33bbbbff;" anchor="left top right"/>
- <Button id="btn_delrow" taborder="4" text="행삭제" class="btn2" position="absolute 357 490 410 509" onclick="btn_delrow_onclick"/>
- <Button id="btn_addrow" taborder="5" text="행추가" class="btn2" position="absolute 302 490 355 509" onclick="btn_addrow_onclick"/>
- <ImageViewer id="img_source" taborder="6" visible="false" position="absolute 775 66 815 86"/>
- <Grid id="grd_imglist" taborder="8" binddataset="ds_grd_imglist" useinputpanel="false" position="absolute 0 516 410 751" anchor="left top bottom" oncellclick="grd_imglist_oncellclick" style="align:center middle;">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="0" band="left"/>
- <Column size="0" band="left"/>
- <Column size="0" band="left"/>
- <Column size="0" band="left"/>
- <Column size="0" band="left"/>
- <Column size="22" band="left"/>
- <Column size="70"/>
- <Column size="60"/>
- <Column size="70"/>
- <Column size="30"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="490"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- </Columns>
- <Rows>
- <Row size="24" band="head"/>
- <Row size="24"/>
- </Rows>
- <Band id="head">
- <Cell text="instcd"/>
- <Cell col="1" text="pid"/>
- <Cell col="2" text="bizflagcd"/>
- <Cell col="3" text="ptno"/>
- <Cell col="4" text="등록일자"/>
- <Cell col="5"/>
- <Cell col="6" text="등록시간"/>
- <Cell col="7" text="등록자ID"/>
- <Cell col="8" text="등록자"/>
- <Cell col="9" style="align:center middle;" text="찾기"/>
- <Cell col="10" text="imgno"/>
- <Cell col="11" text="imgseqno"/>
- <Cell col="12" text="파일명"/>
- <Cell col="13" text="rsltimg"/>
- <Cell col="14" text="caption1"/>
- <Cell col="15" text="caption2"/>
- </Band>
- <Band id="body">
- <Cell text="bind:instcd"/>
- <Cell col="1" text="bind:pid"/>
- <Cell col="2" text="bind:bizflagcd"/>
- <Cell col="3" text="bind:ptno"/>
- <Cell col="4" text="bind:rgstdd"/>
- <Cell col="5"/>
- <Cell col="6" text="bind:rgsttm"/>
- <Cell col="7" text="bind:rgstrid"/>
- <Cell col="8" text="bind:rgstrnm"/>
- <Cell col="9" edittype="none" style="align:center middle;padding: ;backgroundimage:URL('theme://images\theme_violet\icon_glassSearch4_N.PNG');" text="bind:dummy" expandimage="URL('theme://images\theme_violet\icon_glassSearch4_N.PNG')"/>
- <Cell col="10" text="bind:imgno"/>
- <Cell col="11" text="bind:imgseqno"/>
- <Cell col="12" text="bind:imgpath"/>
- <Cell col="13" text="bind:rsltimg"/>
- <Cell col="14" text="bind:exists"/>
- <Cell col="15" text="bind:orgimgpath"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Shape id="line2" linetype="horizontal" class="line_1" position="absolute 0 512 410 518" style="strokepen:3 solid #33bbbbff;"/>
- <ImageViewer id="img_src" taborder="9" position="absolute 415 90 1193 750" anchor="all" stretch="fit"/>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_init_cbo_ptnocd" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="ptnonm" type="STRING"/>
- <Column id="ptnocd" type="STRING"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_grd_ptnolist" firefirstcount="0" firenextcount="0" useclientlayout="true" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="choi" type="STRING"/>
- <Column id="instcd" type="STRING"/>
- <Column id="ptno" type="STRING"/>
- <Column id="dispptno" type="STRING"/>
- <Column id="pid" type="STRING"/>
- <Column id="patnm" type="STRING"/>
- <Column id="testnmlist" type="STRING"/>
- <Column id="humspec" type="STRING"/>
- <Column id="rsltrgstdd" type="STRING"/>
- <Column id="rsltrgstno" type="STRING"/>
- <Column id="readdd" type="STRING"/>
- <Column id="imgno" type="STRING" size="256"/>
- <Column id="bizflagcd" type="STRING" size="256"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_grd_imglist" firefirstcount="0" firenextcount="0" useclientlayout="true" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="instcd" type="STRING"/>
- <Column id="pid" type="STRING"/>
- <Column id="bizflagcd" type="STRING"/>
- <Column id="ptno" type="STRING"/>
- <Column id="rgstdd" type="STRING"/>
- <Column id="rgsttm" type="STRING"/>
- <Column id="rgstrid" type="STRING"/>
- <Column id="rgstrnm" type="STRING"/>
- <Column id="dummy" type="STRING"/>
- <Column id="imgno" type="STRING"/>
- <Column id="imgseqno" type="STRING"/>
- <Column id="imgpath" type="STRING"/>
- <Column id="rsltimg" type="BLOB"/>
- <Column id="exists" type="STRING"/>
- <Column id="orgimgpath" type="STRING"/>
- <Column id="status" type="STRING" size="256"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_data_sysdtinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="sysdd" type="STRING" size="256"/>
- <Column id="systm" type="STRING" size="256"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_init" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="acptfromdd" type="STRING" size="256"/>
- <Column id="acpttodd" type="STRING" size="256"/>
- <Column id="refmthdcd" type="STRING" size="256"/>
- <Column id="refval" type="STRING" size="256"/>
- <Column id="ptnocode" type="STRING" size="256"/>
- <Column id="fromyear" type="STRING" size="256"/>
- <Column id="fromptno" type="STRING" size="256"/>
- <Column id="toyear" type="STRING" size="256"/>
- <Column id="toptno" type="STRING" size="256"/>
- <Column id="sysdt" type="STRING" size="256"/>
- <Column id="ptnocd" type="STRING" size="256"/>
- <Column id="imgsrc" type="BLOB" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- </Objects>
- <Bind>
- <BindItem id="item0" compid="group2.ipt_cncltodd" propid="value" datasetid="ds_init" columnid="acpttodd"/>
- <BindItem id="item1" compid="group2.ipt_cnclfromdd" propid="value" datasetid="ds_init" columnid="acptfromdd"/>
- <BindItem id="item2" compid="group2.ipt_seaval" propid="value" datasetid="ds_init" columnid="refval"/>
- <BindItem id="item3" compid="group2.input1" propid="value" datasetid="ds_init" columnid="toptno"/>
- <BindItem id="item4" compid="group2.input2" propid="value" datasetid="ds_init" columnid="toyear"/>
- <BindItem id="item5" compid="group2.ipt_fromptno" propid="value" datasetid="ds_init" columnid="fromptno"/>
- <BindItem id="item6" compid="group2.ipt_fromyear" propid="value" datasetid="ds_init" columnid="fromyear"/>
- <BindItem id="item7" compid="group2.cbo_ptnocd" propid="value" datasetid="ds_init" columnid="ptnocode"/>
- <BindItem id="item8" compid="img_src" propid="image" datasetid="ds_init" columnid="imgsrc"/>
- </Bind>
- <Script type="xscript4.0"><![CDATA[/***************************************************************************************
- * System Name :
- * Job Name :
- * Creator :
- * Make Date : 2015-11-13
- * Description :
- *---------------------------------------------------------------------------------------
- * Modify Date Modifier Modify Description
- *---------------------------------------------------------------------------------------
- * 2015-11-13 Live Converter TF->XP
- *
- *---------------------------------------------------------------------------------------
- ****************************************************************************************/
- include "com_commonxp::comm_main.xjs";
- function SMLPR01800_oninit(obj:Form, e:InitEventInfo)
- {
- frmf_initForm(obj);
- }
- function SMLPR01800_onload(obj:Form, e:LoadEventInfo)
- {
- grdf_initGrid(grd_ptnolist);
- grdf_initGrid(grd_imglist);
- grdf_setRowTypeIcon(grd_imglist, 5);
-
- fExeInitialize();
-
- if(frmf_checkOpener())
- {
- var param = opener.frmf_getParameter("opener_parameter_id");
- if( !utlf_isNull(param))
- {
- condarray = param.split("▦");
- ds_init.setColumn(0, "refval", condarray[0]);
- ds_init.setColumn(0, "ptnocode", condarray[1]);
- ds_init.setColumn(0, "fromyear", condarray[2]);
- ds_init.setColumn(0, "fromptno", condarray[3]);
- ds_init.setColumn(0, "toyear", condarray[2]);
- ds_init.setColumn(0, "toptno", condarray[3]);
- if( !utlf_isNull(ds_init.getColumn(0, "refval")) || !utlf_isNull(ds_init.getColumn(0, "ptnocode")))
- {
- fGetPtNoList();
- }
- }
- }
- }
- function fExeInitialize()
- {
- var sCurDate = "";
-
- dsf_createDsRow("ds_send", [{col: "instcd", val: sysf_getUserInfo("dutplceinstcd")}]);
-
- var oParam = {};
- oParam.id = "TRLPZ00102";
- oParam.service = "plgycomnusemngtapp.BaseInfoCode";
- oParam.method = "reqGetSystemDateTimeInformation";
- oParam.inds = "refData=ds_send";
- oParam.outds = "ds_data_sysdtinfo=sysdtinfo";
- oParam.async = false;
- //oParam.callback = "cf_TRLPZ00102";
- tranf_submit(oParam);
-
- dsf_createDsRow("ds_send", [{col : "instcd", val : sysf_getUserInfo("dutplceinstcd")}
- ,{col : "refflagcd", val : "0"}]);
-
- var oParam = {};
- oParam.id = "TRLPZ00109";
- oParam.service = "plgycomnusemngtapp.BaseInfoCode";
- oParam.method = "reqGetPtNoCdList";
- oParam.inds = "refdata=ds_send";
- oParam.outds = "ds_init_cbo_ptnocd=rsltlist";
- oParam.async = false;
- //oParam.callback = "cf_TRLPZ00109";
- tranf_submit(oParam);
- var sCurDate = ds_data_sysdtinfo.getColumn(0, "sysdd");
- ds_init.setColumn(0, "acptfromdd", ds_data_sysdtinfo.getColumn(0, "sysdd"));
- ds_init.setColumn(0, "acpttodd", ds_data_sysdtinfo.getColumn(0, "sysdd"));
- ds_init.setColumn(0, "refmthdcd", "1");
- ds_init.setColumn(0, "refval", "");
- ds_init.setColumn(0, "ptnocode", "");
- ds_init.setColumn(0, "fromyear", sCurDate.substr(2,2));
- ds_init.setColumn(0, "toyear", sCurDate.substr(2,2));
- ds_init.setColumn(0, "fromptno", "");
- ds_init.setColumn(0, "toptno", "");
- }
- function fGetPtNoList()
- {
- var sTemp = "";
- var sFromDD = ds_init.getColumn(0, "acptfromdd");
- var sToDD = ds_init.getColumn(0, "acpttodd");
-
- if( !utlf_isNull(ds_init.getColumn(0, "ptnocode")))
- {
- if( utlf_isNull(ds_init.getColumn(0, "fromyear")))
- {
- ds_init.setColumn(0, "fromyear", sFromDD.substr(2,2));
- }
- else
- {
- sTemp = ds_init.getColumn(0, "fromyear");
- ds_init.setColumn(0, "fromyear", sTemp.getLeftPad(2, "0"));
- }
-
- if( utlf_isNull(ds_init.getColumn(0, "toyear")))
- {
- ds_init.setColumn(0, "toyear", sToDD.substr(2,2));
- }
- else
- {
- sTemp = ds_init.getColumn(0, "toyear");
- ds_init.setColumn(0, "toyear", sTemp.getLeftPad(2, "0"));
- }
- if( utlf_isNull(ds_init.getColumn(0, "fromptno")))
- {
- ds_init.setColumn(0, "fromptno", "000000");
- }
- else
- {
- sTemp = ds_init.getColumn(0, "fromptno");
- ds_init.setColumn(0, "fromptno", sTemp.getLeftPad(6, "0"));
- }
- if( utlf_isNull(ds_init.getColumn(0, "toptno")))
- {
- ds_init.setColumn(0, "toptno", "999999");
- }
- else
- {
- sTemp = ds_init.getColumn(0, "toptno");
- ds_init.setColumn(0, "toptno", sTemp.getLeftPad(6, "0"));
- }
- }
-
- sTemp = ds_init.getColumn(0, "ptnocode");
- dsf_createDsRow("ds_send", [{col : "instcd", val : sysf_getUserInfo("dutplceinstcd")}
- ,{col : "acptfromdd", val : ds_init.getColumn(0, "acptfromdd")}
- ,{col : "acpttodd", val : ds_init.getColumn(0, "acpttodd")}
- ,{col : "refmthdcd", val : ds_init.getColumn(0, "refmthdcd")}
- ,{col : "refval", val : ds_init.getColumn(0, "refval")}
- ,{col : "ptnocode", val : sTemp.replace("-", "")}
- ,{col : "fromyear", val : ds_init.getColumn(0, "fromyear")}
- ,{col : "fromptno", val : ds_init.getColumn(0, "fromptno")}
- ,{col : "toyear", val : ds_init.getColumn(0, "toyear")}
- ,{col : "toptno", val : ds_init.getColumn(0, "toptno")}]);
-
- var oParam = {};
- oParam.id = "TRLPR01801";
- oParam.service = "plgyrsltmngtapp.TestRsltRgst";
- oParam.method = "reqGetPtNoList";
- oParam.inds = "reqdata=ds_send";
- oParam.outds = "ds_grd_ptnolist=refrslt";
- oParam.async = false;
- //oParam.callback = "cf_TRLPR01801";
- tranf_submit(oParam);
-
- if(grd_ptnolist.rowcount == 2)
- {
- ds_grd_ptnolist.rowposition = 1;
- fExePtNoListChoi(1);
- }
-
- if(grd_imglist.rowcount == 2)
- {
- ds_grd_ptnolist.rowposition = 1;
- fExeImgListChoi(1);
- }
- }
- //접수목록 선택 처리
- function fExePtNoListChoi(pRowNo)
- {
- fExePtNoChoi(pRowNo);
-
- if(grd_imglist.rowcount == 1)
- {
- fExeImgListChoi(0);
- }
- }
- //이미지목록 선택 처리
- function fExeImgListChoi(pRowNo)
- {
- fExeImgChoi(pRowNo);
- }
- //이미지 선택 처리
- function fExeImgChoi(pRow)
- {
- if(grd_imglist.currentcol == "9")
- {
- fGetAppImg(pRow);
- }
- else
- {
- fExeImgDisp(pRow);
- }
- }
- //선택 이미지 보여주기 처리 함수
- function fExeImgDisp(pRow)
- {
- ds_init.setColumn(0, "imgsrc", ds_grd_imglist.getColumn(pRow, "rsltimg"));
- }
- //접수 병리번호 선택 처리
- function fExePtNoChoi(pRow)
- {
- var iFindNo = 0;
- var sNode = ds_grd_ptnolist;
-
- if( grd_ptnolist.currentcol != 0)
- {
- for(var iNo = 0; iNo < ds_grd_ptnolist.rowcount; iNo++)
- {
- ds_grd_ptnolist.setColumn(iNo, "choi", "false");
- }
- ds_grd_ptnolist.setColumn(pRow, "choi", "true");
- }
- else
- {
- var iFindNo = ds_grd_ptnolist.findRow("choi", "true");
- if (iFindNo <= 0)
- {
- //img_src.src = "";
- ds_init.setColumn(0, "imgsrc", "");
- //img_src.refresh();
- }
- }
- ds_send.clearData();
- dsf_createDsRow("ds_send", [{col : "instcd", val : sysf_getUserInfo("dutplceinstcd")}
- ,{col : "pid", val : ds_grd_ptnolist.getColumn(pRow, "pid")}
- ,{col : "ptno", val : ds_grd_ptnolist.getColumn(pRow, "ptno")}
- ,{col : "bizflagcd", val : 'PR'}
- ,{col : "imgno", val : "0"}
- ,{col : "imgseqno", val : "0"}]);
- var oParam = {};
- oParam.id = "TRLPR01802";
- oParam.service = "plgyrsltmngtapp.TestRsltRgst";
- oParam.method = "reqGetImgInfo";
- oParam.inds = "reqData=ds_send";
- oParam.outds = "ds_grd_imglist=refrslt";
- oParam.async = false;
- //oParam.callback = "cf_TRLPR01802";
- tranf_submit(oParam);
- }
- function fExeAddRow()
- {
- for(var iNo = 0; iNo < ds_grd_ptnolist.rowcount; iNo++)
- {
- if(ds_grd_ptnolist.getColumn(iNo, "choi") == "true")
- {
- if( utlf_isNull(ds_grd_ptnolist.getColumn(iNo, "readdd")) || ds_grd_ptnolist.getColumn(iNo, "readdd") == "-")
- {
- }
- else
- {
- sysf_messageBox("최종진단된 결과이미지는 수정할 수 없습니다.", "E999");
- return;
- }
- }
- }
- var addRow = ds_grd_imglist.addRow();
- fExeImgRowSet(addRow);
- }
- function fExeImgRowSet(pRowNo)
- {
- var iNo = 0;
- var iFindNo = ds_grd_ptnolist.findRow("choi", "true");
- trace("iFindNo = " + iFindNo);
- var sNode = ds_grd_imglist;
- var sSrcNode = ds_grd_ptnolist;
-
- if(pRowNo ==0)
- {
- ds_grd_imglist.setColumn(pRowNo, "instcd", sysf_getUserInfo("dutplceinstcd"));
- ds_grd_imglist.setColumn(pRowNo, "pid", ds_grd_ptnolist.getColumn(iFindNo, "pid"));
- ds_grd_imglist.setColumn(pRowNo, "bizflagcd", "PR");
- ds_grd_imglist.setColumn(pRowNo, "ptno", ds_grd_ptnolist.getColumn(iFindNo, "ptno"));
- ds_grd_imglist.setColumn(pRowNo, "rgstdd", "-");
- ds_grd_imglist.setColumn(pRowNo, "rgsttm", "-");
- ds_grd_imglist.setColumn(pRowNo, "rgstrid", "-");
- ds_grd_imglist.setColumn(pRowNo, "rgstrnm", "-");
- ds_grd_imglist.setColumn(pRowNo, "imgno", "0");
- ds_grd_imglist.setColumn(pRowNo, "imgseqno", "0");
- ds_grd_imglist.setColumn(pRowNo, "imgpath", " ");
- ds_grd_imglist.setColumn(pRowNo, "rsltimg", " ");
- ds_grd_imglist.setColumn(pRowNo, "exists", "N");
- ds_grd_imglist.setColumn(pRowNo, "orgimgpath", "");
- }
- else
- {
- iNo = Number(pRowNo) - 1;
- ds_grd_imglist.setColumn(pRowNo, "instcd", ds_grd_imglist.getColumn(iNo, "instcd"));
- ds_grd_imglist.setColumn(pRowNo, "pid", ds_grd_imglist.getColumn(iNo, "pid"));
- ds_grd_imglist.setColumn(pRowNo, "bizflagcd", ds_grd_imglist.getColumn(iNo, "bizflagcd"));
- ds_grd_imglist.setColumn(pRowNo, "ptno", ds_grd_imglist.getColumn(iNo, "ptno"));
- ds_grd_imglist.setColumn(pRowNo, "rgstdd", ds_data_sysdtinfo.getColumn(0, "sysdd"));
- ds_grd_imglist.setColumn(pRowNo, "rgsttm", ds_data_sysdtinfo.getColumn(0, "systm"));
- ds_grd_imglist.setColumn(pRowNo, "rgstrid", sysf_getUserInfo("userid"));
- ds_grd_imglist.setColumn(pRowNo, "rgstrnm", sysf_getUserInfo("usernm"));
- ds_grd_imglist.setColumn(pRowNo, "imgno", ds_grd_imglist.getColumn(iNo, "imgno"));
- ds_grd_imglist.setColumn(pRowNo, "imgseqno", "0");
- ds_grd_imglist.setColumn(pRowNo, "imgpath", " ");
- ds_grd_imglist.setColumn(pRowNo, "rsltimg", " ");
- ds_grd_imglist.setColumn(pRowNo, "exists", "N");
- ds_grd_imglist.setColumn(pRowNo, "orgimgpath", "");
- }
- fGetAppImg(pRowNo);
- }
- //이미지 선택 처리
- function fGetAppImg(pRow)
- {
- var fd = new FileDialog;
- fd.filter = "JPEG Files(*.jpg)|*.jpg|GIF Files(*.gif)|*.gif|BMP Files(*.bmp)|*.bmp";
-
- var vFile = fd.open("FileOpen", FileDialog.LOAD);
-
- if(utlf_isNull(vFile))
- {
- return;
- }
-
- //파일 열기
- vFile.open(VirtualFile.openRead | VirtualFile.openBinary);
- vFile.seek(0,VirtualFile.seekBegin);
- //데이터 BLOB으로 만들기
- var bData = new Buffer(vFile.read(vFile.getFileSize()));
- ds_grd_imglist.setColumn(pRow, "imgpath", vFile.path+vFile.filename);
- ds_grd_imglist.setColumn(pRow, "rsltimg", bData.data);
- ds_init.setColumn(0, "imgsrc", bData.data);
- }
-
- function fExeDelRow()
- {
- for(var iNo = 0; iNo < ds_grd_ptnolist.rowcount; iNo++)
- {
- if(ds_grd_ptnolist.getColumn(iNo, "choi") == "true")
- {
- if( utlf_isNull(ds_grd_ptnolist.getColumn(iNo, "readdd")) || ds_grd_ptnolist.getColumn(iNo, "readdd") == "-")
- {
- }
- else
- {
- sysf_messageBox("최종진단된 결과이미지는 수정할 수 없습니다.", "E999");
- return;
- }
- }
- }
-
- sNode= ds_grd_imglist;
-
- if(ds_grd_imglist.getColumn(ds_grd_imglist.rowposition, "exists") == "N")
- {
- ds_grd_imglist.deleteRow(ds_grd_imglist.rowposition);
- }
- else
- {
- ds_grd_imglist.setColumn(ds_grd_imglist.rowposition, "exists", "D");
- var arrPostion = new Array();
- arrPostion[0] = ds_grd_imglist.rowposition;
- grdf_setStatus(grd_imglist, "D", arrPostion);
- }
- }
-
- function fExeImgSave()
- {
- var re = /\\/g;
- var iRowNo = 1;
- var sNode = ds_grd_imglist;
- var sImgPath = "";
- var sRowNo = ds_grd_ptnolist.rowposition;
-
- for(var iNo = 0; iNo < ds_grd_ptnolist.rowcount; iNo++)
- {
- if(ds_grd_ptnolist.getColumn(iNo, "choi") == "true")
- {
- if( utlf_isNull(ds_grd_ptnolist.getColumn(iNo, "readdd")) || ds_grd_ptnolist.getColumn(iNo, "readdd") == "-")
- {
- }
- else
- {
- sysf_messageBox("최종진단된 결과이미지는 수정할 수 없습니다.", "E999");
- return;
- }
- }
- }
-
- if(sRowNo < 0)
- {
- sysf_messageBox("접수목록에서 검사를 선택하여 주세요.", "E999");
- return;
- }
-
- dsf_createDs("ds_imglist");
- trace("ds_grd_imglist.rowcount = " +ds_grd_imglist.rowcount);
- for(var iNo = 0; iNo < ds_grd_imglist.rowcount; iNo++)
- {
- if(ds_grd_imglist.getColumn(iNo, "exists") =="D")
- {
- ds_grd_imglist.setColumn(iNo, "status", "d");
- ds_imglist.copyData(ds_grd_imglist, true);
- }
- else
- {
- ds_grd_imglist.setColumn(iNo, "status", "i");
- ds_grd_imglist.setColumn(iNo, "imgseqno", iRowNo++);
- ds_imglist.copyData(ds_grd_imglist, true);
- }
- }
-
- //return;
- var oParam = {};
- oParam.id = "TXLPR01801";
- oParam.service = "plgyrsltmngtapp.TestRsltRgst";
- oParam.method = "reqExeImgList";
- oParam.inds = "reqData=ds_imglist";
- oParam.async = false;
- //oParam.callback = "cf_TXLPR01801";
- tranf_submit(oParam);
-
- fExePtNoChoi(sRowNo);
-
- ds_init.setColumn(0, "imgsrc", "");
- }
- //조회
- function group2_btn_sea_onclick(obj:Button, e:ClickEventInfo)
- {
- fGetPtNoList();
- }
- function group2_ipt_cncltodd_onkeyup(obj:Calendar, e:KeyEventInfo)
- {
- if(e.keycode == 13)
- {
- fGetPtNoList();
- }
- }
- //접수목록 선택 처리
- function grd_ptnolist_oncellclick(obj:Grid, e:GridClickEventInfo)
- {
- fExePtNoListChoi(ds_grd_ptnolist.rowposition);
- }
- //행추가
- function btn_addrow_onclick(obj:Button, e:ClickEventInfo)
- {
- fExeAddRow();
- }
- //행삭제
- function btn_delrow_onclick(obj:Button, e:ClickEventInfo)
- {
- fExeDelRow();
- }
- //저장
- function btn_save_onclick(obj:Button, e:ClickEventInfo)
- {
- fExeImgSave();
- }
- //이미지 목록 찾기
- function grd_imglist_oncellclick(obj:Grid, e:GridClickEventInfo)
- {
- if(obj.currentcol == 9)
- {
- fGetAppImg(ds_grd_imglist.rowposition);
- }
-
- for(var iNo = 0; iNo < ds_grd_ptnolist.rowcount; iNo++)
- {
- //if(model.getValue("/root/main/ptnoinfo/ptnolist["+ iNo +"]/choi") == "true")
- if(ds_grd_ptnolist.getColumn(iNo, "choi") == "true")
- {
- //if((model.getValue("/root/main/ptnoinfo/ptnolist["+ iNo +"]/readdd") == "") || (model.getValue("/root/main/ptnoinfo/ptnolist["+ iNo +"]/readdd") == "-"))
- if( utlf_isNull(ds_grd_ptnolist.getColumn(iNo, "readdd")) || ds_grd_ptnolist.getColumn(iNo, "readdd") == "-")
- {
- }
- else
- {
- sysf_messageBox("최종진단된 결과이미지는 수정할 수 없습니다.", "E999");
- return;
- }
- }
- }
- fExeImgListChoi(ds_grd_imglist.rowposition);
- }
- function group2_ipt_seaval_onkeyup(obj:Edit, e:KeyEventInfo)
- {
- if(e.keycode ==13)
- {
- ds_init.setColumn(0, "refval", group2.ipt_seaval.value);
- fGetPtNoList();
- }
- }
- ]]></Script>
- </Form>
- </FDL>
|