123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SMLLF10600" position="absolute 0 0 1182 757" titletext="사유코드관리" oninit="SMLLF10600_oninit" onload="SMLLF10600_onload">
- <Layouts>
- <Layout>
- <Static id="caption6" text="계산결과 검사항목별 수식정의 관리" class="tit_1" position="absolute 0 0 248 25"/>
- <Shape id="line17" linetype="horizontal" class="line_6" position="absolute 0 46 1179 52" style="strokepen:3 solid #9ebed4ff;" anchor="left top right"/>
- <Button id="btn_save" taborder="1" text="저장" class="btn4" position="absolute 1051 25 1107 47" onclick="btn_save_onclick" anchor="top right"/>
- <Button id="btn_clear" taborder="2" text="초기화" class="btn4" position="absolute 1110 25 1178 47" onclick="btn_clear_onclick" anchor="top right"/>
- <Shape id="line1" class="line_1" position="absolute 0 111 1180 117" style="strokepen:3 solid #33bbbbff;" anchor="left top right"/>
- <Static id="caption1" text="검사항목별 수식정의 리스트" class="tit_2" position="absolute 0 94 191 111"/>
- <Grid id="grd_calf" taborder="3" binddataset="ds_grd_calf" useinputpanel="false" position="absolute 0 115 1180 500" oncellclick="grd_calf_oncellclick" onkeyup="grd_calf_onkeyup" anchor="left top right" autofittype="col">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="27"/>
- <Column size="65"/>
- <Column size="165"/>
- <Column size="65"/>
- <Column size="90"/>
- <Column size="60"/>
- <Column size="60"/>
- <Column size="60"/>
- <Column size="60"/>
- <Column size="60"/>
- <Column size="60"/>
- <Column size="60"/>
- <Column size="60"/>
- <Column size="60"/>
- <Column size="60"/>
- <Column size="60"/>
- <Column size="110"/>
- <Column size="0"/>
- <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="인수1"/>
- <Cell col="7" text="인수2"/>
- <Cell col="8" text="인수3"/>
- <Cell col="9" text="인수4"/>
- <Cell col="10" text="인수5"/>
- <Cell col="11" text="인수6"/>
- <Cell col="12" text="인수7"/>
- <Cell col="13" text="인수8"/>
- <Cell col="14" text="인수9"/>
- <Cell col="15" text="인수10"/>
- <Cell col="16" text="적용검사분류코드"/>
- <Cell col="17" text="적용검사개수"/>
- <Cell col="18" text="계산형식"/>
- <Cell col="19" text="계산식내용"/>
- <Cell col="20" text="숨길꺼seq"/>
- </Band>
- <Band id="body">
- <Cell celltype="head"/>
- <Cell col="1" displaytype="text" edittype="text" text="bind:tclscd"/>
- <Cell col="2" style="align:left middle;" text="bind:tclsnm"/>
- <Cell col="3" displaytype="text" edittype="text" style="align:center middle;" text="bind:spccd"/>
- <Cell col="4" style="align:left middle;" text="bind:spcnm"/>
- <Cell col="5" displaytype="text" edittype="text" text="bind:acptcnt"/>
- <Cell col="6" displaytype="text" edittype="text" text="bind:acpt01"/>
- <Cell col="7" displaytype="text" edittype="text" text="bind:acpt02"/>
- <Cell col="8" displaytype="text" edittype="text" text="bind:acpt03"/>
- <Cell col="9" displaytype="text" edittype="text" text="bind:acpt04"/>
- <Cell col="10" displaytype="text" edittype="text" text="bind:acpt05"/>
- <Cell col="11" displaytype="text" edittype="text" text="bind:acpt06"/>
- <Cell col="12" displaytype="text" edittype="text" text="bind:acpt07"/>
- <Cell col="13" displaytype="text" edittype="text" text="bind:acpt08"/>
- <Cell col="14" displaytype="text" edittype="text" text="bind:acpt09"/>
- <Cell col="15" displaytype="text" edittype="text" text="bind:acpt10"/>
- <Cell col="16" displaytype="text" edittype="text" text="bind:apptclscd"/>
- <Cell col="17" text="bind:apptestcnt"/>
- <Cell col="18" text="bind:calformkind"/>
- <Cell col="19" text="bind:calformcnts"/>
- <Cell col="20" text="bind:resndispseq"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Div id="group1" taborder="4" class="div_SA2" position="absolute 0 50 1180 85" anchor="left top right">
- <Layouts>
- <Layout>
- <Shape id="line3" linetype="vertical" class="line_4" position="absolute 1105 7 1113 29" anchor="top right"/>
- <Static id="caption2" text="조회구분 :" class="search_name" position="absolute 610 10 700 27" anchor="top right"/>
- <Button id="btn_Ref" taborder="1" text="조회" class="btn1" position="absolute 1118 7 1174 29" onclick="group1_btn_Ref_onclick" anchor="top right"/>
- <Combo id="cmb_selectgbn" taborder="2" codecolumn="codecolumn" datacolumn="datacolumn" class="combo_search" position="absolute 705 9 795 28" anchor="top right">
- <Dataset id="innerdataset">
- <ColumnInfo>
- <Column id="codecolumn"/>
- <Column id="datacolumn"/>
- </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>
- <Combo id="cmb_select01" taborder="3" innerdataset="ds_init_cmb_select01" codecolumn="cd" datacolumn="nm" class="combo_s_essential" position="absolute 800 9 910 28" anchor="top right"/>
- <Combo id="cmb_select02" taborder="4" innerdataset="ds_init_cmb_select02" codecolumn="cd" datacolumn="nm" class="combo_s_essential" position="absolute 915 9 1068 28" anchor="top right"/>
- </Layout>
- </Layouts>
- </Div>
- <Button id="btn_addrow" taborder="5" text="행추가" class="btn2" position="absolute 1126 89 1179 108" onclick="btn_addrow_onclick" anchor="top right"/>
- <Static id="caption3" text="검사항목별 수식" class="tit_2" position="absolute 0 509 117 529"/>
- <TextArea id="textarea1" taborder="6" position="absolute 0 530 1179 755" anchor="all" autoselect="true"/>
- <Shape id="line2" linetype="horizontal" class="line_1" position="absolute 0 526 1179 532" style="strokepen:3 solid #33bbbbff;" anchor="left top right"/>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_grd_calf" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="tclscd" type="STRING"/>
- <Column id="tclsnm" type="STRING"/>
- <Column id="spccd" type="STRING"/>
- <Column id="spcnm" type="STRING"/>
- <Column id="acptcnt" type="STRING"/>
- <Column id="acpt01" type="STRING"/>
- <Column id="acpt02" type="STRING"/>
- <Column id="acpt03" type="STRING"/>
- <Column id="acpt04" type="STRING"/>
- <Column id="acpt05" type="STRING"/>
- <Column id="acpt06" type="STRING"/>
- <Column id="acpt07" type="STRING"/>
- <Column id="acpt08" type="STRING"/>
- <Column id="acpt09" type="STRING"/>
- <Column id="acpt10" type="STRING"/>
- <Column id="apptclscd" type="STRING"/>
- <Column id="apptestcnt" type="STRING"/>
- <Column id="calformkind" type="STRING"/>
- <Column id="calformcnts" type="STRING"/>
- <Column id="resndispseq" type="STRING"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_init_cmb_select01" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="nm" type="STRING"/>
- <Column id="cd" type="STRING"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_init_cmb_select02" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="nm" type="STRING"/>
- <Column id="cd" type="STRING"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_init_0117" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_init_0104" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_init_0102" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_init_0111" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_init_0106" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_hidden" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="selectgbn" type="STRING" size="256"/>
- <Column id="select01" type="STRING" size="256"/>
- <Column id="select02" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="selectgbn">1</Col>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="resncdkind" type="STRING" size="256"/>
- <Column id="calfdata" type="STRING" size="256"/>
- <Column id="codeflag" type="STRING" size="256"/>
- <Column id="selectgbn" type="STRING" size="256"/>
- <Column id="testcd" type="STRING" size="256"/>
- <Column id="sectcd" type="STRING" size="256"/>
- <Column id="testlrgcd" type="STRING" size="256"/>
- <Column id="testmdlcd" type="STRING" size="256"/>
- <Column id="t_tclscd" type="STRING" size="256"/>
- <Column id="t_spccd" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- <Dataset id="ds_getcalfspc" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="nm" type="STRING" size="256" sumtext="검사명"/>
- </ColumnInfo>
- </Dataset>
- </Objects>
- <Bind>
- <BindItem id="item0" compid="group1.cmb_selectgbn" propid="value" datasetid="ds_hidden" columnid="selectgbn"/>
- <BindItem id="item1" compid="group1.cmb_select01" propid="value" datasetid="ds_hidden" columnid="select01"/>
- <BindItem id="item2" compid="group1.cmb_select02" propid="value" datasetid="ds_hidden" columnid="select02"/>
- </Bind>
- <Script type="xscript4.0"><![CDATA[/***************************************************************************************
- * System Name :
- * Job Name :
- * Creator :
- * Make Date : 2015-11-09
- * Description :
- *---------------------------------------------------------------------------------------
- * Modify Date Modifier Modify Description
- *---------------------------------------------------------------------------------------
- * 2015-11-09 Live Converter TF->XP
- *
- *---------------------------------------------------------------------------------------
- ****************************************************************************************/
- include "com_commonxp::comm_main.xjs";
- function SMLLF10600_oninit(obj:Form, e:InitEventInfo)
- {
- frmf_initForm(obj);
- grdf_initGrid(grd_calf);
- grdf_setRowTypeIcon(grd_calf, 0)
- }
- function SMLLF10600_onload(obj:Form, e:LoadEventInfo)
- {
- // 사유코드 그리드 초기화
- var sInDsName = dsf_createDsRow("ds_temp_search", [{col: "codeflag", val: "0117|0104|0102|0111|0106|"}]); // 0117 사유코드관리
-
- //submit("TRLZZ00101");
- var oParam = {};
- oParam.id = "TRLZZ00101";
- oParam.service = "diagtestapplib.DiagTestBaseInfoMngt";
- oParam.method = "reqGetInitCodeInfo";
- oParam.inds = "cond="+sInDsName;
- oParam.outds = "ds_init_0117=0117 ds_init_0104=0104 ds_init_0102=0102 ds_init_0111=0111 ds_init_0106=0106";
- oParam.async = false;
- //oParam.callback = "cf_TRLZZ00101";
- tranf_submit(oParam);
-
- fSelectGbn();
- }
- function fSelectGbn()
- {
- //검사분류 선택
- if(group1.cmb_selectgbn.value == "1")
- {
- //첫번째 콤보에 대분류 셋팅
- group1.cmb_select01.innerdataset="ds_init_0104";
- group1.cmb_select01.codecolumn="cd";
- group1.cmb_select01.datacolumn="nm";
- //두번째 콤보에 중분류 셋팅
- ds_init_0102.filter("");
- group1.cmb_select02.innerdataset="ds_init_0102";
- group1.cmb_select02.codecolumn="cd";
- group1.cmb_select02.datacolumn="nm";
- }
- //시행부서 선택
- else if(group1.cmb_selectgbn.value== "2")
- {
- //첫번째 콤보에 계코드 셋팅
- group1.cmb_select01.innerdataset="ds_init_0111";
- group1.cmb_select01.codecolumn="cd";
- group1.cmb_select01.datacolumn="nm";
- //두번째 콤보에 검사계코드 셋팅
- ds_init_0106.filter("");
- group1.cmb_select02.innerdataset="ds_init_0106";
- group1.cmb_select02.codecolumn="cd";
- group1.cmb_select02.datacolumn="nm";
- }
- ds_hidden.setColumn(0, "select01", "00");
- ds_hidden.setColumn(0, "select02", "00");
- }
- //조회
- function group1_btn_Ref_onclick(obj:Button, e:ClickEventInfo)
- {
- fcalfList();
- }
- function fcalfList()
- {
- //조회구분 검사분류 선택시
- if(group1.cmb_selectgbn.value== "1")
- {
- ds_send.setColumn(0, "testlrgcd", ds_hidden.getColumn(0, "select01"));
- ds_send.setColumn(0, "testmdlcd", ds_hidden.getColumn(0, "select02"));
- }
- //조회구분 시행부서 선택시
- else if(group1.cmb_selectgbn.value== "2")
- {
- ds_send.setColumn(0, "sectcd", ds_hidden.getColumn(0, "select01"));
- ds_send.setColumn(0, "tsectcd", ds_hidden.getColumn(0, "select02"));
- }
- ds_send.setColumn(0, "selectgbn", group1.cmb_selectgbn.value);
-
- //submit("TRLLF01501");
- var oParam = {};
- oParam.id = "TRLLF01501";
- oParam.service = "diagtestbaseinfomngtapp.GeneralTestBaseInfoMngt";
- oParam.method = "reqGetcalfList";
- oParam.inds = "cond=ds_send";
- oParam.outds = "ds_grd_calf=getcalfcd";
- oParam.async = false;
- //oParam.callback = "cf_TRLLF01501";
- tranf_submit(oParam);
- }
- function grd_calf_oncellclick(obj:Grid, e:GridClickEventInfo)
- {
- if(ds_grd_calf.rowcount > 0)
- {
- textarea1.value = ds_grd_calf.getColumn(ds_grd_calf.rowposition, "calformcnts");
- }
- else
- {
- textarea1.text = "";
- }
- }
- function btn_addrow_onclick(obj:Button, e:ClickEventInfo)
- {
- ds_grd_calf.addRow();
- }
- function btn_save_onclick(obj:Button, e:ClickEventInfo)
- {
- fExecalf();
- }
- // 사유코드 수정, 등록
- function fExecalf()
- {
- if(ds_grd_calf.rowcount <= 0)
- {
- alert("저장 할 내용이 없습니다." ); // 할 수 없습니다.
- return;
- }
- var oParam = {};
- oParam.id = "TXLLF01501";
- oParam.service = "diagtestbaseinfomngtapp.GeneralTestBaseInfoMngt";
- oParam.method = "reqsetCalfList";
- oParam.inds = "cond=ds_send:U";
- oParam.async = false;
- //oParam.callback = "cf_TXLLF01501";
- tranf_submit(oParam);
-
- alert("저장되었습니다");
- fcalfList();
- }
- function btn_clear_onclick(obj:Button, e:ClickEventInfo)
- {
- fExeCancel();
- }
- function fExeCancel()
- {
- this.reload();
- }
- function grd_calf_onkeyup(obj:Grid, e:KeyEventInfo)
- {
- if(e.keycode == 13)
- {
- if(obj.currentcol == 1)
- {
- var ftclscd = ds_grd_calf.getColumn(ds_grd_calf.rowposition, "tclscd");
- ds_send.setColumn(0, "t_spccd", "");
- ds_send.setColumn(0, "t_tclscd", ftclscd);
- var oParam = {};
- oParam.id = "TRLLF01601";
- oParam.service = "diagtestbaseinfomngtapp.GeneralTestBaseInfoMngt";
- oParam.method = "reqGetcalfspcList";
- oParam.inds = "cond=ds_send";
- oParam.outds = "ds_getcalfspc=getcalfspc";
- oParam.async = false;
- //oParam.callback = "cf_TRLLF01601";
- tranf_submit(oParam);
- ds_grd_calf.setColumn(ds_grd_calf.rowposition, "tclsnm", ds_getcalfspc.getColumn(0, "nm"));
- }
- else if(obj.currentcol == 3)
- {
- var fspccd = ds_grd_calf.getColumn(0, "spccd");
- ds_send.setColumn(0, "t_tclscd", "");
- ds_send.setColumn(0, "t_spccd", fspccd);
- var oParam = {};
- oParam.id = "TRLLF01601";
- oParam.service = "diagtestbaseinfomngtapp.GeneralTestBaseInfoMngt";
- oParam.method = "reqGetcalfspcList";
- oParam.inds = "cond=ds_send";
- oParam.outds = "ds_getcalfspc=getcalfspc";
- oParam.async = false;
- //oParam.callback = "cf_TRLLF01601";
- tranf_submit(oParam);
- ds_grd_calf.setColumn(ds_grd_calf.rowposition, "spcnm", ds_getcalfspc.getColumn(0, "nm"));
- }
- }
- }
- ]]></Script>
- </Form>
- </FDL>
|