123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SPMMD02000" position="absolute 0 0 350 709" titletext="New Form" oninit="SPMMD02000_oninit" onload="SPMMD02000_onload">
- <Layouts>
- <Layout>
- <Static id="caption3" text="Classification" class="tit_2" position="absolute 0 0 115 20"/>
- <Grid id="grd_lrgno" taborder="1" binddataset="ds_grd_lrgno" useinputpanel="false" position="absolute 0 20 350 309" autofittype="col" oncellclick="grd_lrgno_oncellclick">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="332"/>
- <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="대분류"/>
- <Cell col="1"/>
- <Cell col="2"/>
- <Cell col="3"/>
- </Band>
- <Band id="body">
- <Cell style="align:left middle;" text="bind:lrgnm"/>
- <Cell col="1" text="bind:lrgno"/>
- <Cell col="2" text="bind:antibioflag"/>
- <Cell col="3" text="bind:refseq"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Grid id="grd_mdlno" taborder="2" binddataset="ds_grd_mdlno" useinputpanel="false" position="absolute 0 315 350 469" autofittype="col" oncellclick="grd_mdlno_oncellclick">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="332"/>
- <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="중분류"/>
- <Cell col="1"/>
- <Cell col="2"/>
- <Cell col="3"/>
- </Band>
- <Band id="body">
- <Cell style="align:left middle;" text="bind:mdlnm"/>
- <Cell col="1" text="bind:mdlno"/>
- <Cell col="2" text="bind:lrgno"/>
- <Cell col="3" text="bind:refseq"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Grid id="grd_smlno" taborder="3" binddataset="ds_grd_smlno" useinputpanel="false" position="absolute 0 475 350 709" autofittype="col" oncellclick="grd_smlno_oncellclick">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="332"/>
- <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="소분류"/>
- <Cell col="1"/>
- <Cell col="2"/>
- <Cell col="3"/>
- </Band>
- <Band id="body">
- <Cell style="align:left middle;" text="bind:smlnm"/>
- <Cell col="1" text="bind:smlno"/>
- <Cell col="2" text="bind:mdlno"/>
- <Cell col="3" text="bind:refseq"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_hidden" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="resnflagno" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="resnflagno">13</Col>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_send_reqdata" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="resnflagno" type="INT" size="256" sumtext="항생제구분번호"/>
- <Column id="lrgno" type="STRING" size="256" sumtext="대분류번호"/>
- <Column id="mdlno" type="INT" size="256" sumtext="중분류번호"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_antibiolrgnolist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="lrgno" type="STRING" size="256" sumtext="대분류번호"/>
- <Column id="antibioflag" type="STRING" size="256" sumtext="항생제구분번호"/>
- <Column id="lrgnm" type="STRING" size="256" sumtext="대분류명"/>
- <Column id="refseq" type="STRING" size="256" sumtext="조회순서"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_antibiomdlnolist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="lrgno" type="STRING" size="256" sumtext="대분류번호"/>
- <Column id="mdlno" type="STRING" size="256" sumtext="중분류번호"/>
- <Column id="mdlnm" type="STRING" size="256" sumtext="중분류명"/>
- <Column id="refseq" type="STRING" size="256" sumtext="조회순서"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_antibiosmlnolist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="smlno" type="STRING" size="256" sumtext="소분류번호"/>
- <Column id="mdlno" type="STRING" size="256" sumtext="중분류번호"/>
- <Column id="smlnm" type="STRING" size="256" sumtext="소분류명"/>
- <Column id="smlcomment" type="STRING" size="256" sumtext="비고"/>
- <Column id="refseq" type="STRING" size="256" sumtext="조회순서"/>
- <Column id="drugkind" type="STRING" size="256" sumtext="약품종류코드"/>
- </ColumnInfo>
- </Dataset>
- </Objects>
- <Script type="xscript4.0"><![CDATA[/***************************************************************************************
- * System Name :
- * Job Name :
- * Creator :
- * Make Date : 2014-12-18
- * Description :
- *---------------------------------------------------------------------------------------
- * Modify Date Modifier Modify Description
- *---------------------------------------------------------------------------------------
- * 2014-12-18 Live Converter TF->XP
- *
- *---------------------------------------------------------------------------------------
- ****************************************************************************************/
- include "com_commonxp::comm_main.xjs";
- var oOpener;
- function SPMMD02000_oninit(obj:Form, e:InitEventInfo)
- {
- frmf_initForm(obj);
- }
- function SPMMD02000_onload(obj:Form, e:LoadEventInfo)
- {
- oOpener = this.getOwnerFrame().form;
-
- oOpener.fInit();
-
- fGetLrgNo();
- fGetMdlNo(ds_antibiolrgnolist.rowposition);
- fGetSmlNo(ds_antibiomdlnolist.rowposition);
- fGetRecommNo(ds_antibiosmlnolist.rowposition);
- }
- function fGetLrgNo(){
- if( !utlf_isNull(ds_hidden.getColumn(0, "resnflagno")) ){
- ds_send_reqdata.clearData();
- ds_send_reqdata.addRow();
- ds_send_reqdata.setColumn(0, "resnflagno", ds_hidden.getColumn(0, "resnflagno"));
- //model.makeValue("/root/send/reqdata/lrgno", opener.model.getValue("/root/main/cond/lrgno"));
-
- var oParam = {};
- oParam.id = "TRMMD01601";
- oParam.service = "prcpmngtapp.AntiBioPrcpMngt";
- oParam.method = "reqGetAntiBioLrgNoList";
- oParam.inds = "req=ds_send_reqdata";
- oParam.outds = "ds_antibiolrgnolist=info";
- oParam.async = false;
- tranf_submit(oParam);
-
- var lrgSelectedCnt = 0;
- for( var idx = 0; idx < ds_antibiolrgnolist.rowcount; idx++ ){
- if(oOpener.ds_main_cond.getColumn(0, "lrgno") == ds_antibiolrgnolist.getColumn(idx, "lrgno")) {
- lrgSelectedCnt = idx;
- break;
- }
- }
-
- ds_antibiolrgnolist.rowposition = lrgSelectedCnt;
- /*
- if(grd_lrgno.rows - grd_lrgno.fixedRows > 0){
- grd_lrgno.select(1,1) = true;
- }
- */
- }
- }
- function fGetMdlNo(grdRow){
- if(ds_antibiolrgnolist.rowcount > 0){
- ds_send_reqdata.clearData();
- ds_send_reqdata.addRow();
- ds_antibiomdlnolist.clearData();
- //opener.javascript.fInit();
-
- // 대분류 파라메터 세팅
- /*if(clickyn == 'Y') { // 대분류에서 선택시 클릭된 값 세팅
- model.makeValue("/root/send/reqdata/lrgno", model.getValue("/root/main/antibiolrgnolist/info["+ grdRow + "]/lrgno"));
- } else {
- if(opener.model.getValue("/root/main/cond/lrgno") == "") { // 처음 로드시 1 세팅
- model.makeValue("/root/send/reqdata/lrgno", model.getValue("/root/main/antibiolrgnolist/info["+ grdRow + "]/lrgno"));
- } else { // 검색시 더블클릭된 값 세팅
- model.makeValue("/root/send/reqdata/lrgno", opener.model.getValue("/root/main/cond/lrgno"));
- }
- }
- */
- ds_send_reqdata.setColumn(0, "lrgno", ds_antibiolrgnolist.getColumn(grdRow, "lrgno"));
-
- var oParam = {};
- oParam.id = "TRMMD01602";
- oParam.service = "prcpmngtapp.AntiBioPrcpMngt";
- oParam.method = "reqGetAntiBioMdlNoList";
- oParam.inds = "req=ds_send_reqdata";
- oParam.outds = "ds_antibiomdlnolist=info";
- oParam.async = false;
- tranf_submit(oParam);
- var mdlSelectedCnt = 0;
- for( var idx = 0; idx < ds_antibiomdlnolist.rowcount; idx++ ){
- if(oOpener.ds_main_cond.getColumn(0, "mdlno") == ds_antibiomdlnolist.getColumn(idx, "mdlno")) {
- mdlSelectedCnt = idx;
- }
- }
- ds_antibiomdlnolist.rowposition = mdlSelectedCnt;
- }
- }
- function fGetSmlNo(grdRow){
- if(ds_antibiomdlnolist.rowcount > 0){
- ds_send_reqdata.clearData();
- ds_send_reqdata.addRow();
-
- ds_send_reqdata.setColumn(0, "mdlno", ds_antibiomdlnolist.getColumn(grdRow, "mdlno"));
-
- var oParam = {};
- oParam.id = "TRMMD01603";
- oParam.service = "prcpmngtapp.AntiBioPrcpMngt";
- oParam.method = "reqGetAntiBioSmlNoList";
- oParam.inds = "req=ds_send_reqdata";
- oParam.outds = "ds_antibiosmlnolist=info";
- oParam.async = false;
- tranf_submit(oParam);
-
- var smlSelectedCnt = 0;
- for( var idx = 0; idx < ds_antibiosmlnolist.rowcount; idx++ ){
- if(oOpener.ds_main_cond.getColumn(0, "smlno") == ds_antibiosmlnolist.getColumn(idx, "smlno")) {
- smlSelectedCnt = idx;
- }
- }
- ds_antibiosmlnolist.rowposition = smlSelectedCnt;
- }
- }
- function fGetRecommNo(grdRow){
- if(ds_antibiosmlnolist.rowcount > 0){
- oOpener.fRecommendedList(ds_hidden.getColumn(0, "resnflagno"), ds_antibiosmlnolist.getColumn(grdRow, "smlno"), ds_antibiosmlnolist.getColumn(grdRow, "drugkind"));
- }
- }
- function grd_lrgno_oncellclick(obj:Grid, e:GridClickEventInfo)
- {
- if( e.row < 0 || e.col < 0 ) return;
-
- oOpener.fInit();
- fGetMdlNo(e.row);
- fGetSmlNo(0);
- fGetRecommNo(0);
- }
- function grd_mdlno_oncellclick(obj:Grid, e:GridClickEventInfo)
- {
- if( e.row < 0 || e.col < 0 ) return;
-
- oOpener.fInit();
- fGetSmlNo(e.row);
- fGetRecommNo(0);
- }
- function grd_smlno_oncellclick(obj:Grid, e:GridClickEventInfo)
- {
- if( e.row < 0 || e.col < 0 ) return;
-
- oOpener.fInit();
- fGetRecommNo(e.row);
- }
- ]]></Script>
- </Form>
- </FDL>
|