123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SMLLP00600" position="absolute 0 0 1256 805" titletext="특이결과기록관리" onload="SMLLP00600_onload">
- <Layouts>
- <Layout>
- <Div id="group3" position="absolute 0 25 1256 805" anchor="all" positiontype="position">
- <Layouts>
- <Layout>
- <Grid id="grd_spcfrsltlist" position="absolute 0 72 1256 780" anchor="all" positiontype="position" binddataset="ds_grid_grd_spcfrsltlist" autofittype="col" autosizemergetype="colmerge" cellsizingtype="col" oncelldblclick="group3_grd_spcfrsltlist_oncelldblclick">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="30"/>
- <Column size="30"/>
- <Column size="104"/>
- <Column size="55"/>
- <Column size="60"/>
- <Column size="56"/>
- <Column size="84"/>
- <Column size="130"/>
- <Column size="60"/>
- <Column size="55"/>
- <Column size="0"/>
- <Column size="104"/>
- <Column size="55"/>
- <Column size="100"/>
- <Column size="184"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="55"/>
- </Columns>
- <Rows>
- <Row size="24" band="head"/>
- <Row size="24"/>
- </Rows>
- <Band id="head">
- <Cell celltype="head"/>
- <Cell col="1" displaytype="checkbox" edittype="checkbox"/>
- <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="통보자"/>
- <Cell col="10" text="보고의"/>
- <Cell col="11" text="통보시간"/>
- <Cell col="12" text="피통보자"/>
- <Cell col="13" text="확인일시"/>
- <Cell col="14" text="조치사항"/>
- <Cell col="15" text="bcno"/>
- <Cell col="16" text="testcd"/>
- <Cell col="17" text="전송건수"/>
- </Band>
- <Band id="body">
- <Cell celltype="head" expr="expr:currow+1"/>
- <Cell col="1" displaytype="checkbox" edittype="checkbox" text="bind:chio"/>
- <Cell col="2" text="bind:rgstdt" mask="expr:rgstdt==null?'':'####-##-## ##:##'"/>
- <Cell col="3" text="bind:patnm"/>
- <Cell col="4" displaytype="text" edittype="text" style="align:center;" text="bind:pid" editautoselect="true"/>
- <Cell col="5" text="bind:orddeptnm"/>
- <Cell col="6" text="bind:wardroom"/>
- <Cell col="7" style="align:left;" text="bind:tclsnm"/>
- <Cell col="8" style="align:left middle;" text="bind:testrslt"/>
- <Cell col="9" text="bind:notichrgnm"/>
- <Cell col="10" text="bind:cfmid"/>
- <Cell col="11" text="bind:notidt" mask="expr:notidt==null?'':'####-##-## ##:##'"/>
- <Cell col="12" text="bind:notitrgtnm"/>
- <Cell col="13" text="bind:cfmdt" mask="expr:cfmdt==null?'':'####-##-## ##:##'"/>
- <Cell col="14" style="align:left;" text="bind:measfact"/>
- <Cell col="15"/>
- <Cell col="16"/>
- <Cell col="17" text="bind:cvrcnt"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Shape id="line1" class="line_1" position="absolute 0 70 1194 70" anchor="default" positiontype="position" linetype="horizontal"/>
- <Static id="caption3" class="tit_2" position="absolute 0 52 139 72" anchor="default" positiontype="position" text="특이결과 조회"/>
- <Button id="button2" class="btn7" position="absolute 1188 49 1248 69" anchor="top right" positiontype="position" text="엑셀" onlbuttonup="button2_onlbuttonup"/>
- <Div id="group1" position="absolute 0 3 1256 45" anchor="left top right" positiontype="position" class="div_SA">
- <Layouts>
- <Layout>
- <Shape id="line3" class="line_4" position="absolute 1108 7 1108 29" anchor="default" linetype="vertical" positiontype="position"/>
- <Static id="caption2" class="search_name" position="absolute 8 10 76 30" anchor="default" text="등록일자" positiontype="position"/>
- <Button id="btn_Ref" class="btn1" position="absolute 1116 10 1172 30" anchor="top right" text="조회" onlbuttonup="btn_Ref_onlbuttonup" positiontype="position" onclick="group3_group1_btn_Ref_onclick"/>
- <Static id="caption11" position="absolute 185 11 197 28" anchor="default" text="~" positiontype="position"/>
- <Static id="caption1" class="search_name" visible="false" position="absolute 741 10 809 30" anchor="default" text="시행부서" positiontype="position"/>
- <Combo id="cmb_dept" visible="false" position="absolute 903 10 1011 30" anchor="default" innerdataset="@ds_init_lb0104" codecolumn="cd" datacolumn="nm" positiontype="position"/>
- <Calendar id="ipt_usdt" class="input_s_essential" position="absolute 82 10 182 30" anchor="default" dateformat="yyyy-MM-dd" value="null" positiontype="position"/>
- <Calendar id="ipt_uedt" class="input_s_essential" position="absolute 198 10 298 30" anchor="default" dateformat="yyyy-MM-dd" value="null" positiontype="position"/>
- <Combo id="combo1" visible="false" position="absolute 815 10 900 30" anchor="default" innerdataset="@ds_deptgbn" codecolumn="value" datacolumn="label" index="0" value="1" text="대분류" onitemchanged="group3_group1_combo1_onitemchanged" positiontype="position"/>
- <Combo id="combo2" visible="false" position="absolute 1007 10 1115 30" anchor="default" innerdataset="@ds_init_lb0102" codecolumn="cd" datacolumn="nm" positiontype="position"/>
- <Combo id="cmb_testLrgCd" class="combo_s_essential" position="absolute 489 10 599 30" anchor="default" innerdataset="@ds_init_lb0104" codecolumn="cd" datacolumn="nm" onitemchanged="group3_group1_cmb_testLrgCd_onitemchanged" positiontype="position"/>
- <Combo id="cmb_testMdlCd" class="combo_s_essential" position="absolute 602 10 717 30" anchor="default" innerdataset="@ds_init_lb0102" codecolumn="cd" datacolumn="nm" positiontype="position"/>
- <Static id="caption25" class="search_name" position="absolute 322 10 390 30" anchor="default" text="조회구분" positiontype="position"/>
- <Combo id="cmb_selectgbn" class="combo_search" visible="true" position="absolute 396 10 486 30" anchor="default" codecolumn="codecolumn" datacolumn="datacolumn" index="0" value="1" text="검사분류" onitemchanged="group3_group1_cmb_selectgbn_onitemchanged" positiontype="position">
- <Dataset id="innerdataset">
- <ColumnInfo>
- <Column id="codecolumn" size="256"/>
- <Column id="datacolumn" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="codecolumn">1</Col>
- <Col id="datacolumn">검사분류</Col>
- </Row>
- <Row>
- <Col id="codecolumn">2</Col>
- <Col id="datacolumn">시행부서</Col>
- </Row>
- </Rows>
- </Dataset>
- </Combo>
- <Button id="btn_reset" taborder="1" text="초기화" onlbuttonup="btn_reset_onlbuttonup" class="btn3" position="absolute 1176 10 1244 30" anchor="top right"/>
- </Layout>
- </Layouts>
- </Div>
- <Grid id="grd_spcfrsltlistEx" taborder="1" binddataset="ds_grid_grd_spcfrsltlist" useinputpanel="false" autofittype="none" position="absolute 150 172 840 439" anchor="all" cellsizingtype="col" visible="false">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="30"/>
- <Column size="104"/>
- <Column size="70"/>
- <Column size="70"/>
- <Column size="56"/>
- <Column size="84"/>
- <Column size="130"/>
- <Column size="60"/>
- <Column size="60"/>
- <Column size="60"/>
- <Column size="100"/>
- <Column size="60"/>
- <Column size="104"/>
- <Column size="184"/>
- <Column size="0"/>
- <Column size="0"/>
- </Columns>
- <Rows>
- <Row size="22" band="head"/>
- <Row size="20"/>
- </Rows>
- <Band id="head">
- <Cell celltype="head" text="No."/>
- <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="보고의"/>
- <Cell col="10" text="확인일시"/>
- <Cell col="11" text="피통보자"/>
- <Cell col="12" text="통보시간"/>
- <Cell col="13" text="조치사항"/>
- <Cell col="14" text="bcno"/>
- <Cell col="15" text="testcd"/>
- </Band>
- <Band id="body">
- <Cell celltype="head" expr="expr:currow+1"/>
- <Cell col="1" text="bind:rgstdt" mask="expr:rgstdt==null?'':'####-##-## ##:##'"/>
- <Cell col="2" text="bind:patnm"/>
- <Cell col="3" displaytype="text" text="bind:pid"/>
- <Cell col="4" text="bind:orddeptnm"/>
- <Cell col="5" text="bind:wardroom"/>
- <Cell col="6" style="align:left;" text="bind:tclsnm"/>
- <Cell col="7" text="bind:testrslt"/>
- <Cell col="8" text="bind:notichrgnm"/>
- <Cell col="9" text="bind:cfmid"/>
- <Cell col="10" text="bind:cfmdt" mask="expr:cfmdt=='-'?'':'####-##-## ##:##'"/>
- <Cell col="11" text="bind:notitrgtnm"/>
- <Cell col="12" text="bind:notidt" mask="expr:notidt==null?'':'####-##-## ##:##'"/>
- <Cell col="13" style="align:left;" text="bind:measfact"/>
- <Cell col="14"/>
- <Cell col="15"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- </Layout>
- </Layouts>
- </Div>
- <Button id="btn_print" taborder="1" text="출력" onclick="btn_print_onclick" class="btn6" position="absolute 1082 0 1138 20" anchor="top right"/>
- <Button id="but_del" taborder="2" text="삭제" onlbuttonup="but_del_onlbuttonup" class="btn4" position="absolute 1141 0 1197 20" anchor="top right"/>
- <Button id="btn_cnfm" taborder="3" text="확인" onlbuttonup="btn_cnfm_onlbuttonup" class="btn4" position="absolute 1200 0 1256 20" anchor="top right"/>
- <Static id="caption6" text="특이결과 기록관리" class="tit_1" position="absolute 2 2 157 27"/>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_init_lb0000" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="cd" type="STRING" size="256"/>
- <Column id="nm" type="STRING" size="256"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_init_lb0111" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="cd" type="STRING" size="256"/>
- <Column id="nm" type="STRING" size="256"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_init_lb0104" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="cd" type="STRING" size="256"/>
- <Column id="nm" type="STRING" size="256"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_init_lb0102" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="cd" type="STRING" size="256"/>
- <Column id="nm" type="STRING" size="256"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_init_lb0106" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="cd" type="STRING" size="256"/>
- <Column id="nm" type="STRING" size="256"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_selectgbn" firefirstcount="0" firenextcount="0" useclientlayout="true" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="label" type="STRING" size="256"/>
- <Column id="value" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="label">검사분류</Col>
- <Col id="value">1</Col>
- </Row>
- <Row>
- <Col id="label">시행부서</Col>
- <Col id="value">2</Col>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_deptgbn" firefirstcount="0" firenextcount="0" useclientlayout="true" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="label" type="STRING" size="256"/>
- <Column id="value" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="label">대분류</Col>
- <Col id="value">1</Col>
- </Row>
- <Row>
- <Col id="label">중분류</Col>
- <Col id="value">2</Col>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_grid_grd_spcfrsltlist" firefirstcount="0" firenextcount="0" useclientlayout="true" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false" onrowposchanged="ds_grid_grd_rslt_onrowposchanged">
- <ColumnInfo>
- <Column id="status" type="STRING" size="256"/>
- <column id="chio" type="STRING" size="256"/>
- <column id="rgstdt" type="STRING" size="256"/>
- <column id="patnm" type="STRING" size="256"/>
- <column id="pid" type="STRING" size="256"/>
- <column id="orddeptnm" type="STRING" size="256"/>
- <column id="wardroom" type="STRING" size="256"/>
- <column id="tclsnm" type="STRING" size="256"/>
- <column id="testrslt" type="STRING" size="256"/>
- <column id="notichrgnm" type="STRING" size="256"/>
- <column id="cfmid" type="STRING" size="256"/>
- <column id="cfmdt" type="STRING" size="256"/>
- <column id="notitrgtnm" type="STRING" size="256"/>
- <column id="notidt" type="STRING" size="256"/>
- <column id="measfact" type="STRING" size="256"/>
- <column id="bcno" type="STRING" size="256"/>
- <column id="testcd" type="STRING" size="256"/>
- <column id="cvrcnt" type="STRING" size="256"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_grid_grd_spcfrsltlistPrint" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false" onrowposchanged="ds_grid_grd_rslt_onrowposchanged">
- <ColumnInfo>
- <column id="chio" type="STRING" size="256"/>
- <column id="rgstdt" type="STRING" size="256"/>
- <column id="patnm" type="STRING" size="256"/>
- <column id="pid" type="STRING" size="256"/>
- <column id="orddept" type="STRING" size="256"/>
- <column id="wardroom" type="STRING" size="256"/>
- <column id="testitem" type="STRING" size="256"/>
- <column id="rslt" type="STRING" size="256"/>
- <column id="perchgr" type="STRING" size="256"/>
- <column id="cnfmr" type="STRING" size="256"/>
- <column id="cfmdt" type="STRING" size="256"/>
- <column id="notipsn" type="STRING" size="256"/>
- <column id="notitm" type="STRING" size="256"/>
- <column id="measfact" type="STRING" size="256"/>
- <column id="bcno" type="STRING" size="256"/>
- <column id="testcd" type="STRING" size="256"/>
- </ColumnInfo>
- </Dataset>
- </Objects>
- <Script type="xscript4.0"><![CDATA[/***************************************************************************************
- * System Name :
- * Job Name :
- * Creator :
- * Make Date : 2015-05-01
- * Description :
- *---------------------------------------------------------------------------------------
- * Modify Date Modifier Modify Description
- *---------------------------------------------------------------------------------------
- * 2015-05-01 Live Converter TF->XP
- *
- *---------------------------------------------------------------------------------------
- ****************************************************************************************/
-
- include "com_commonxp::comm_main.xjs";
- include "lis_commonxp::LLZ001.xjs";
- function SMLLP00600_onload(obj:Form, e:LoadEventInfo)
- {
- //폼 초기화 함수
- frmf_initForm(obj);
- grdf_initGrid(group3.grd_spcfrsltlist);
- lf_setstart();
-
- }
- function lf_setstart() {
-
- // grd_spcfrsltlist.fixedcellcheckbox(0, 1) = true;
-
- var curDate = utlf_getCurrentDate();
-
- // 사용자별 검사그룹 // 0102= 중분류 // 0104 대분류 // 0000 userdeptflagcd
- lf_getDbDeptcd("0000|0102|0104|0111|0106|","cbf_SMLLP00600");
-
- group3.group1.ipt_usdt.value = curDate;
- group3.group1.ipt_uedt.value = curDate;
- }
- function lf_getSpcfRslttreflist(){
-
- var refrgstsdd = group3.group1.ipt_usdt.value;
- var refrgstedd = group3.group1.ipt_uedt.value;
- var selectgbn = group3.group1.cmb_selectgbn.value;
- var testlrgcd = "";
- var testmdlcd = "";
- var sectcd = "";
- var tsectcd = "";
-
- if(selectgbn == "1"){
- testlrgcd = group3.group1.cmb_testLrgCd.value;
- testmdlcd = group3.group1.cmb_testMdlCd.value;
- }
- //조회구분 시행부서 선택시
- else if(selectgbn == "2"){
- sectcd = group3.group1.cmb_testLrgCd.value;
- tsectcd = group3.group1.cmb_testMdlCd.value;
- }
- var sInDsName = dsf_createDsRow("ds_temp_search"
- , [{col: "refrgstsdd", val:refrgstsdd }
- , {col: "refrgstedd", val:refrgstedd }
- , {col: "selectgbn", val:selectgbn }
- , {col: "testlrgcd", val:testlrgcd }
- , {col: "testmdlcd", val:testmdlcd }
- , {col: "sectcd", val:sectcd }
- , {col: "tsectcd", val:tsectcd }
- , {col: "deptflag", val:lgv_sUserdeptflagcd }
- ]);
- var oParam = {};
- oParam.id = "TRLLP00601";
- oParam.service = "refprintmngtapp.GeneralRefPrintMngt";
- oParam.method = "reqGetSpcfRslt";
- oParam.inds = "cond="+sInDsName;
- oParam.outds = "ds_grid_grd_spcfrsltlist=getSpcfRsltList";
- oParam.async = false;
- //oParam.callback = "cbf_SMLLP00600";
- tranf_submit(oParam);
-
- for(var i = 0; i < ds_grid_grd_spcfrsltlist.rowcount; i++)
- {
- var cfmdt = ds_grid_grd_spcfrsltlist.getColumn(i, "cfmdt");
- if( !utlf_isNull(cfmdt))
- {
- ds_grid_grd_spcfrsltlist.setColumn(i, "cfmdt", cfmdt.replace(" ",""));
- }
- }
- }
- function lf_exeEqmtdel(){
- for(i=0; i< ds_grid_grd_spcfrsltlist.rowcount; i++){
-
- if(ds_grid_grd_spcfrsltlist.getColumn(i, "chio") =="1"){
-
- ds_grid_grd_spcfrsltlist.setColumn(i, "status", "d");
- grdf_setStatus(group3.grd_spcfrsltlist, "D", i);
- }else{
- ds_grid_grd_spcfrsltlist.setColumn(i, "status", "");
- grdf_setStatus(group3.grd_spcfrsltlist, "", i);
- }
- }
-
- var oParam = {};
- oParam.id = "TXLLP00601";
- oParam.service = "refprintmngtapp.GeneralRefPrintMngt";
- oParam.method = "reqDelSpcfRslt";
- oParam.inds = "cond=ds_grid_grd_spcfrsltlist:U";
- oParam.async = false;
- oParam.typeStr = "m"
- oParam.callback = "cbf_SMLLP00600";
- tranf_submit(oParam);
- }
- function lf_exeEqmtSave() {
-
- for(i=0; i<ds_grid_grd_spcfrsltlist.rowcount; i++){
- if(ds_grid_grd_spcfrsltlist.getColumn(i, "chio") =="1"){
-
- ds_grid_grd_spcfrsltlist.setColumn(i, "status", "u");
- grdf_setStatus(group3.grd_spcfrsltlist, "U", i);
- }else{
- ds_grid_grd_spcfrsltlist.setColumn(i, "status", "");
- grdf_setStatus(group3.grd_spcfrsltlist, "", i);
- }
- }
-
- var oParam = {};
- oParam.id = "TXLLP00601";
- oParam.service = "refprintmngtapp.GeneralRefPrintMngt";
- oParam.method = "reqDelSpcfRslt";
- oParam.inds = "cond=ds_grid_grd_spcfrsltlist:U";
- oParam.async = false;
- oParam.typeStr = "m"
- oParam.callback = "cbf_SMLLP00600";
- tranf_submit(oParam);
-
- }
- //조회구분선택 검사분류,시행부서
- function lf_selectGbn(){
-
- // 검사분류 선택
- if(group3.group1.cmb_selectgbn.value=="1"){
- //첫번째 콤보에 대분류 셋팅
- group3.group1.cmb_testLrgCd.innerdataset="ds_init_lb0104";
- //두번째 콤보에 중분류 셋팅
- group3.group1.cmb_testMdlCd.innerdataset="ds_init_lb0102";
-
- //시행부서 선택
- } else {
- //첫번째 콤보에 계코드 셋팅
- group3.group1.cmb_testLrgCd.innerdataset="ds_init_lb0111";
- //두번째 콤보에 검사계코드 셋팅
- group3.group1.cmb_testMdlCd.innerdataset="ds_init_lb0106";
- }
- group3.group1.cmb_testLrgCd.codecolumn="cd";
- group3.group1.cmb_testLrgCd.datacolumn="nm";
- group3.group1.cmb_testMdlCd.codecolumn="cd";
- group3.group1.cmb_testMdlCd.datacolumn="nm";
-
- group3.group1.cmb_testLrgCd.index=0;
- group3.group1.cmb_testMdlCd.index=0;
- }
- //검사분류,시행부서 선택 시 세부 값 변경
- function lf_setSelect02(){
- var sSel01 = group3.group1.cmb_testLrgCd.value;
- var sFilter = "cd =='00' || etc01 =='" + sSel01 + "'";
- //검사분류선택
- if(group3.group1.cmb_selectgbn.value=="1"){
- group3.group1.cmb_testMdlCd.innerdataset="ds_init_lb0102";
- if (sSel01 != "00" ) {
- ds_init_lb0102.filter(sFilter);
- }
-
- //시행부서 선택
- } else {
- group3.group1.cmb_testMdlCd.innerdataset="ds_init_lb0106";
- if (sSel01 != "00" ) {
- ds_init_lb0106.filter(sFilter);
- }
- }
- group3.group1.cmb_testMdlCd.codecolumn="cd";
- group3.group1.cmb_testMdlCd.datacolumn="nm";
-
- group3.group1.cmb_testMdlCd.index=0;
- }
- // 초기화
- function lf_setInit() {
- this.reload();
- }
- // 시행부서 대분류,중분류 선택 처리
- function lf_comboAalue() {
- // 대분류
- if(group3.group1.combo1.value == "1"){
- group3.group1.cmb_dept.visible = true;
- group3.group1.combo2.visible = false;
-
- // 중분류
- }else{
- group3.group1.cmb_dept.visible = false;
- group3.group1.combo2.visible = true;
- }
- }
- // 엑셀 저장
- function lf_exeExcel(pGridId) {
- grdf_exportExcel(group3.grd_spcfrsltlistEx, lf_lisGetTitle(this) + "_" + "특이결과", "sheet1", false);
- }
- // callback 함수
- function cbf_SMLLP00600(strSvcID, nErrorCode, strErrorMag) {
-
- if(nErrorCode != 0) {
- sysf_messageBox("ID: "+ strSvcID + " Error: " + strErrorMag, "E009", "");
- }else{
- switch(strSvcID){
- case "TRLZZ00101":
- group3.group1.cmb_testLrgCd.index = 0;
- group3.group1.cmb_testMdlCd.index = 0;
- group3.group1.cmb_selectgbn.index = 0;
- grdf_initGrid(group3.grd_spcfrsltlist);
- break;
- case "TRLLP00601":
-
- break;
- case "TXLLP00601":
- lf_getSpcfRslttreflist();
- break;
- default:
- break;
- }
- }
- }
- function button2_onlbuttonup(obj:Button, e:MouseEventInfo)
- {
- lf_exeExcel();
- }
- function btn_Ref_onlbuttonup(obj:Button, e:MouseEventInfo)
- {
- lf_getSpcfRslttreflist();
- }
- function group3_group1_combo1_onitemchanged(obj:Combo, e:ItemChangeEventInfo)
- {
- lf_comboAalue();
- }
- function group3_group1_cmb_testLrgCd_onitemchanged(obj:Combo, e:ItemChangeEventInfo)
- {
- lf_setSelect02();
- }
- function group3_group1_cmb_selectgbn_onitemchanged(obj:Combo, e:ItemChangeEventInfo)
- {
- lf_selectGbn();
- }
- function btn_reset_onlbuttonup(obj:Button, e:MouseEventInfo)
- {
- lf_setInit();
- }
- function btn_print_onclick(obj:Button, e:ClickEventInfo)
- {
- ds_grid_grd_spcfrsltlistPrint.clearData();
- var addRw = 0;
- for(var i=0; i<ds_grid_grd_spcfrsltlist.rowcount; i++)
- {
- if(ds_grid_grd_spcfrsltlist.getColumn(i, "chio") == 1)
- {
- addRw = ds_grid_grd_spcfrsltlistPrint.addRow();
- ds_grid_grd_spcfrsltlistPrint.setColumn(addRw, "chio", ds_grid_grd_spcfrsltlist.getColumn(i,"chio"));
- ds_grid_grd_spcfrsltlistPrint.setColumn(addRw, "rgstdt", utlf_mid(ds_grid_grd_spcfrsltlist.getColumn(i,"rgstdt"),1,12));
- ds_grid_grd_spcfrsltlistPrint.setColumn(addRw, "patnm", ds_grid_grd_spcfrsltlist.getColumn(i,"patnm"));
- ds_grid_grd_spcfrsltlistPrint.setColumn(addRw, "pid", ds_grid_grd_spcfrsltlist.getColumn(i,"pid"));
- ds_grid_grd_spcfrsltlistPrint.setColumn(addRw, "orddept", ds_grid_grd_spcfrsltlist.getColumn(i,"orddeptnm"));
- ds_grid_grd_spcfrsltlistPrint.setColumn(addRw, "wardroom", ds_grid_grd_spcfrsltlist.getColumn(i,"wardroom"));
- ds_grid_grd_spcfrsltlistPrint.setColumn(addRw, "testitem", ds_grid_grd_spcfrsltlist.getColumn(i,"tclsnm"));
- ds_grid_grd_spcfrsltlistPrint.setColumn(addRw, "rslt", ds_grid_grd_spcfrsltlist.getColumn(i,"testrslt"));
- ds_grid_grd_spcfrsltlistPrint.setColumn(addRw, "perchgr", ds_grid_grd_spcfrsltlist.getColumn(i,"notichrgnm"));
- ds_grid_grd_spcfrsltlistPrint.setColumn(addRw, "cnfmr", ds_grid_grd_spcfrsltlist.getColumn(i,"cfmid"));
- ds_grid_grd_spcfrsltlistPrint.setColumn(addRw, "cfmdt", ds_grid_grd_spcfrsltlist.getColumn(i,"cfmdt"));
- ds_grid_grd_spcfrsltlistPrint.setColumn(addRw, "notipsn", ds_grid_grd_spcfrsltlist.getColumn(i,"notitrgtnm"));
- ds_grid_grd_spcfrsltlistPrint.setColumn(addRw, "notitm", utlf_mid(ds_grid_grd_spcfrsltlist.getColumn(i,"notidt"),1,12));
- ds_grid_grd_spcfrsltlistPrint.setColumn(addRw, "measfact", ds_grid_grd_spcfrsltlist.getColumn(i,"measfact"));
- ds_grid_grd_spcfrsltlistPrint.setColumn(addRw, "bcno", ds_grid_grd_spcfrsltlist.getColumn(i,"bcno"));
- ds_grid_grd_spcfrsltlistPrint.setColumn(addRw, "testcd", ds_grid_grd_spcfrsltlist.getColumn(i,"testcd"));
- }
- }
- var objDOM = rptf_createDOM(); // DOM 객체 설정
- rptf_setNodeListToDOM(objDOM, "root/main/spcfrsltreflist", ds_grid_grd_spcfrsltlistPrint); // 데이터셋 1
- var objParam = new Object();
- objParam.xml_data_XML1 = objDOM.documentElement.source; // 최상의노드 XML 스트링 추출
-
- var option = "open=1;save=1;directprint=0;print=1;zoom=0";
- rptf_exeReportPreview30(["RPLLP90200"],[objParam], option);
- }
- function btn_cnfm_onlbuttonup(obj:Button, e:MouseEventInfo)
- {
- lf_exeEqmtSave();
- }
- function but_del_onlbuttonup(obj:Button, e:MouseEventInfo)
- {
- lf_exeEqmtdel();
- }
- function group3_group1_btn_Ref_onclick(obj:Button, e:ClickEventInfo)
- {
-
- }
- function group3_grd_spcfrsltlist_oncelldblclick(obj:Grid, e:GridClickEventInfo)
- {
- var nRow = ds_grid_grd_spcfrsltlist.rowposition;
- if(nRow < 0){ return; }
-
- var sBcNo = ds_grid_grd_spcfrsltlist.getColumn(nRow, "bcno");
- if(utlf_isNull(sBcNo)) return;
-
- dsf_createDsRow( "ds_arg_SPLPR03000", [{col : "cvrtype", val : "L"} // CVR구분 L:진검
- ,{col : "refkey", val : ds_grid_grd_spcfrsltlist.getColumn(nRow, "bcno")}]); // 바코드번호
- var objArg = new Object();
- objArg.arg_ds_popup = ds_arg_SPLPR03000;
- frmf_modal("SPLPR03000", "SPLPR03000", objArg, null, null, null, null, null, null, null, null, null, "M");
- }
- ]]></Script>
- </Form>
- </FDL>
|