123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SPADB62600" position="absolute 0 0 482 409" titletext="문양검색" oninit="SPADB62600_oninit" onload="SPADB62600_onload">
- <Layouts>
- <Layout>
- <Div position="absolute 0 -1 481 379" id="grp_biz" scrollbars="autoboth">
- <Layouts>
- <Layout>
- <Grid position="absolute 0 27 481 329" align="align:center middle;" id="grd_shape" scrollbars="autoboth" binddataset="ds_main_shape" anchor="default" oncelldblclick="grp_biz_grd_shape_oncelldblclick">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="60"/>
- <Column size="0"/>
- <Column size="60"/>
- <Column size="0"/>
- <Column size="60"/>
- <Column size="0"/>
- <Column size="60"/>
- <Column size="0"/>
- <Column size="60"/>
- <Column size="0"/>
- <Column size="60"/>
- <Column size="0"/>
- <Column size="60"/>
- <Column size="0"/>
- <Column size="60"/>
- <Column size="0"/>
- </Columns>
- <Rows>
- <Row size="0" band="head"/>
- <Row size="60"/>
- </Rows>
- <Band id="head">
- <Cell/>
- <Cell col="1"/>
- <Cell col="2"/>
- <Cell col="3"/>
- <Cell col="4"/>
- <Cell col="5"/>
- <Cell col="6"/>
- <Cell col="7"/>
- <Cell col="8"/>
- <Cell col="9"/>
- <Cell col="10"/>
- <Cell col="11"/>
- <Cell col="12"/>
- <Cell col="13"/>
- <Cell col="14"/>
- <Cell col="15"/>
- </Band>
- <Band id="body">
- <Cell displaytype="normal" style="background:stretch;background2:stretch;selectbackground:stretch;backgroundimage:BIND(shapephot1);"/>
- <Cell col="1" displaytype="normal" text="bind:shapecd1"/>
- <Cell col="2" displaytype="normal" style="background:stretch;background2:stretch;selectbackground:stretch;backgroundimage:BIND(shapephot2);"/>
- <Cell col="3" displaytype="normal" style="background:stretch;background2:stretch;selectbackground:stretch;backgroundimage:BIND(shapephot2);" text="bind:shapecd2"/>
- <Cell col="4" displaytype="normal" style="background:stretch;background2:stretch;selectbackground:stretch;backgroundimage:BIND(shapephot3);"/>
- <Cell col="5" displaytype="normal" style="selectbackground: ;" text="bind:shapecd3"/>
- <Cell col="6" displaytype="normal" style="background:stretch;background2:stretch;selectbackground:stretch;backgroundimage:BIND(shapephot4);"/>
- <Cell col="7" displaytype="normal" style="selectbackground: ;" text="bind:shapecd4"/>
- <Cell col="8" displaytype="normal" style="background:stretch;background2:stretch;selectbackground:stretch;backgroundimage:BIND(shapephot5);"/>
- <Cell col="9" displaytype="normal" style="selectbackground: ;" text="bind:shapecd5"/>
- <Cell col="10" displaytype="normal" style="background:stretch;background2:stretch;selectbackground:stretch;backgroundimage:BIND(shapephot6);"/>
- <Cell col="11" displaytype="normal" style="selectbackground: ;" text="bind:shapecd6"/>
- <Cell col="12" displaytype="normal" style="background:stretch;background2:stretch;selectbackground:stretch;backgroundimage:BIND(shapephot7);"/>
- <Cell col="13" displaytype="normal" style="selectbackground: ;" text="bind:shapecd7"/>
- <Cell col="14" displaytype="normal" style="background:stretch;background2:stretch;selectbackground:stretch;backgroundimage:BIND(shapephot8);"/>
- <Cell col="15" text="bind:shapecd8"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Static text="문양검색" position="absolute 0 6 140 22" id="caption1" class="tit_2" anchor="default"/>
- <Shape position="absolute 0 22 481 28" linetype="horizontal" id="line1" class="line_1" anchor="default"/>
- <Shape position="absolute 1 374 481 380" linetype="horizontal" id="line7" class="line_6" anchor="default"/>
- <Radio position="absolute 0 329 481 373" align="align:center middle;" id="rdo_count" columncount="10" rowcount="2" innerdataset="@ds_init_count" datacolumn="label" codecolumn="value" anchor="default" onitemchanged="grp_biz_rdo_count_onitemchanged"/>
- <Shape id="line00" class="line_1" position="absolute 0 21 481 27"/>
- <Shape id="line02" class="line_1" position="absolute 0 23 481 29"/>
- </Layout>
- </Layouts>
- </Div>
- <Div position="absolute 0 376 480 403" id="grp_btn" scrollbars="autoboth">
- <Layouts>
- <Layout>
- <Button position="absolute 365 5 421 27" id="btn_cfm" class="btn4" text="확인" anchor="default" onclick="grp_btn_btn_cfm_onclick"/>
- <Button position="absolute 424 5 480 27" id="btn_can" class="btn4" text="취소" anchor="default" onclick="grp_btn_btn_can_onclick"/>
- </Layout>
- </Layouts>
- </Div>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_main_shape" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="shapephot1" type="BLOB" size="256"/>
- <Column id="shapecd1" type="STRING" size="256"/>
- <Column id="shapephot2" type="BLOB" size="256"/>
- <Column id="shapecd2" type="STRING" size="256"/>
- <Column id="shapephot3" type="BLOB" size="256"/>
- <Column id="shapecd3" type="STRING" size="256"/>
- <Column id="shapephot4" type="BLOB" size="256"/>
- <Column id="shapecd4" type="STRING" size="256"/>
- <Column id="shapephot5" type="BLOB" size="256"/>
- <Column id="shapecd5" type="STRING" size="256"/>
- <Column id="shapephot6" type="BLOB" size="256"/>
- <Column id="shapecd6" type="STRING" size="256"/>
- <Column id="shapephot7" type="BLOB" size="256"/>
- <Column id="shapecd7" type="STRING" size="256"/>
- <Column id="shapephot8" type="BLOB" size="256"/>
- <Column id="shapecd8" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="shapephot1"/>
- <Col id="shapecd1"/>
- <Col id="shapephot2"/>
- <Col id="shapecd2"/>
- <Col id="shapephot3"/>
- <Col id="shapecd3"/>
- <Col id="shapephot4"/>
- <Col id="shapecd4"/>
- <Col id="shapephot5"/>
- <Col id="shapecd5"/>
- <Col id="shapephot6"/>
- <Col id="shapecd6"/>
- <Col id="shapephot7"/>
- <Col id="shapecd7"/>
- <Col id="shapephot8"/>
- <Col id="shapecd8"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_send_srchinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="instcd" type="STRING" size="256"/>
- <Column id="fromcount" type="STRING" size="256"/>
- <Column id="tocount" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="instcd">031</Col>
- <Col id="fromcount"/>
- <Col id="tocount"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_init_count" firefirstcount="0" firenextcount="0" useclientlayout="false" 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/>
- </Rows>
- </Dataset>
- <Dataset id="ds_hidden" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="index" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- <Dataset id="ds_temp" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="shape" type="STRING" size="256"/>
- <Column id="shapecd" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="shape"/>
- <Col id="shapecd"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_hideen_receiveref" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- </Objects>
- <Bind>
- <BindItem id="item0" compid="grp_biz.rdo_count" propid="value" datasetid="ds_hidden" columnid="index"/>
- </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
- *
- *---------------------------------------------------------------------------------------
- ****************************************************************************************/
- //=======================================================================================
- // Lib Include
- //---------------------------------------------------------------------------------------
- include "com_commonxp::comm_main.xjs"
- //=======================================================================================
- // Global Form Variable
- //---------------------------------------------------------------------------------------
- //=======================================================================================
- // Function
- //---------------------------------------------------------------------------------------
- /****************************************************************************************
- * Argument : N/A
- * Description : 문양 데이터 조회
- ****************************************************************************************/
- function fGetShape() {
- var oParam = {};
- oParam.id = "TRADB62601";
- oParam.service = "pharmacyconsultapp.DrugId";
- oParam.method = "reqGetShape";
- oParam.inds = "req=ds_send_srchinfo";
- oParam.outds = "ds_main_shape=shape";
- oParam.async = false;
- //oParam.callback = "cf_TRADB62601";
- tranf_submit(oParam);
- }
- /****************************************************************************************
- * Argument : N/A
- * Description : 컬럼 인덱스로 바인드된 컬럼명 조회(text)
- ****************************************************************************************/
- function lf_getBindCellName1(oTrgtGrid, nColumnIndx){
- var sRtnText = "";
- var sTrgtText = oTrgtGrid.getCellProperty("body", nColumnIndx, "text");
- if(!utlf_isNull( sTrgtText)){
- sRtnText = sTrgtText.replace("bind:", "");
- }
- return sRtnText;
- }
- /****************************************************************************************
- * Argument : N/A
- * Description : 컬럼 인덱스로 바인드된 컬럼명 조회(backgroundimage)
- ****************************************************************************************/
- function lf_getBindCellName2(oTrgtGrid, nColumnIndx){
- var sRtnText = "";
- var sTrgtText = oTrgtGrid.getCellProperty("body", nColumnIndx, "backgroundimage");
- if(!utlf_isNull( sTrgtText)){
- sRtnText = sTrgtText.substr(5,sTrgtText.length-6);
- }
- return sRtnText;
- }
- //=======================================================================================
- // Event
- //---------------------------------------------------------------------------------------
- /****************************************************************************************
- * Components : Form
- * Components ID : SPADB62600
- * Event : oninit
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 화면 처음 초기화시 폼초기화
- ****************************************************************************************/
- function SPADB62600_oninit(obj:Form, e:InitEventInfo)
- {
- frmf_initForm(obj); // 폼 초기화
- }
- /****************************************************************************************
- * Components : Form
- * Components ID : SPADB62600
- * Event : onload
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 화면 처음 초기화시 폼초기화
- ****************************************************************************************/
- function SPADB62600_onload(obj:Form, e:LoadEventInfo)
- {
- try{
- ds_hideen_receiveref.copyData(arg_ds_hidden_receiveref);
- }catch(e){}
- var oParam = {};
- oParam.id = "TRADB62602";
- oParam.service = "pharmacyconsultapp.DrugId";
- oParam.method = "reqGetCount";
- oParam.inds = "req=ds_send_srchinfo";
- oParam.outds = "ds_init_count=count";
- oParam.async = false;
- //oParam.callback = "cf_TRADB62602";
- tranf_submit(oParam);
-
- ds_send_srchinfo.setColumn(0,"fromcount","1");
- ds_send_srchinfo.setColumn(0,"tocount" ,"40");
- ds_hidden.setColumn(0,"index", 1);
-
- fGetShape();
- }
- /****************************************************************************************
- * Components : Button
- * Components ID : grp_biz.btn_cfm
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 확인버튼으로 이미지 약품식별마스터 화면에 전달
- ****************************************************************************************/
- function grp_btn_btn_cfm_onclick(obj:Button, e:ClickEventInfo)
- {
- var cRow = ds_main_shape.rowposition;
- var cCol = grp_biz.grd_shape.currentcol;
- var shapecd = ds_main_shape.getColumn(cRow,lf_getBindCellName1(grp_biz.grd_shape,cCol+1));
- var shape = ds_main_shape.getColumn(cRow,lf_getBindCellName2(grp_biz.grd_shape,cCol));
- if(ds_hideen_receiveref.rowcount < 1) ds_hideen_receiveref.addRow();
-
- ds_hideen_receiveref.setColumn(0,"shapecd" ,shapecd);
- ds_hideen_receiveref.setColumn(0,"shape" ,shape);
-
- if(!utlf_isNull(shapecd)) {
- if(frmf_checkOpener()) {
- opener.ds_hidden_receiveshape.copyData(ds_hideen_receiveref);
- this.close();
- }else{
- sysf_messageBox("상위화면이 변경되어 데이터를 전달할 수 ","I004");
- }
- }else{
- sysf_messageBox("문양을","C002");
- }
- }
- /****************************************************************************************
- * Components : Button
- * Components ID : grp_biz.btn_can
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 취소버튼 클릭
- ****************************************************************************************/
- function grp_btn_btn_can_onclick(obj:Button, e:ClickEventInfo)
- {
- this.close();
- }
- /****************************************************************************************
- * Components : Grid
- * Components ID : grp_biz.grd_shape
- * Event : oncelldblclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 그리드 더블클릭으로 해당 이미지 모화면 전달
- ****************************************************************************************/
- function grp_biz_grd_shape_oncelldblclick(obj:Grid, e:GridClickEventInfo)
- {
- var ev = new ClickEventInfo;
- frmf_inputEnterKey("grp_btn.btn_cfm", "onclick", ev );
- }
- /****************************************************************************************
- * Components : Radio
- * Components ID : grp_biz.rdo_count
- * Event : onitemchanged
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description :
- ****************************************************************************************/
- function grp_biz_rdo_count_onitemchanged(obj:Radio, e:ItemChangeEventInfo)
- {
- var count = ds_hidden.getColumn(0,"index");
- ds_send_srchinfo.setColumn(0,"fromcount",(count*40)-39);
- ds_send_srchinfo.setColumn(0,"tocount" ,(count*40));
-
- fGetShape();
- }
- ]]></Script>
- </Form>
- </FDL>
|