123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SPMNP01500" position="absolute 0 0 439 610" titletext="수술명조회" onload="SPMNP01500_onload">
- <Layouts>
- <Layout>
- <Div position="absolute 0 13 439 607" id="group5" scrollbars="autoboth">
- <Layouts>
- <Layout>
- <Grid position="absolute 4 15 434 594" treeusecheckbox="false" autofit="col" id="trv_opcode" anchor="default" binddataset="ds_main_optreelists_optreelist" oncelldblclick="group5_trv_opcode_oncelldblclick">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="122"/>
- </Columns>
- <Rows>
- <Row size="24"/>
- <Row size="24"/>
- </Rows>
- <Band id="body">
- <Cell displaytype="tree" edittype="tree" text="bind:opgname" treelevel="bind:depth"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Shape position="absolute 3 10 435 16" linetype="horizontal" id="line1" class="line_1" style="strokepen:3 solid #33bbbbff;" anchor="default"/>
- </Layout>
- </Layouts>
- </Div>
- <Static text="수술명조회" position="absolute 0 0 107 23" id="caption6" class="tit_1"/>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_main_optreelists_optreelist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="depth" type="STRING" size="256"/>
- <Column id="opgrp1" type="STRING" size="256"/>
- <Column id="opgrp2" type="STRING" size="256"/>
- <Column id="opgrp3" type="STRING" size="256"/>
- <Column id="opgrp4" type="STRING" size="256"/>
- <Column id="opcode" type="STRING" size="256"/>
- <Column id="instcd" type="STRING" size="256"/>
- <Column id="opgname" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="depth"/>
- <Col id="opgrp1"/>
- <Col id="opgrp2"/>
- <Col id="opgrp3"/>
- <Col id="opgrp4"/>
- <Col id="opcode"/>
- <Col id="instcd"/>
- <Col id="opgname"/>
- </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="treeflag" type="STRING" size="256"/>
- <Column id="instcd" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="treeflag">N</Col>
- <Col id="instcd">012</Col>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_Cond" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="opcode" type="STRING" size="256"/>
- <Column id="opname" type="STRING" size="256"/>
- <Column id="oplist" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="opcode"/>
- <Col id="opname"/>
- <Col id="oplist"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_send_result_indxcdlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="levl" type="STRING" size="256" sumtext="레벨"/>
- <Column id="indxcd" type="STRING" size="256" sumtext="index코드"/>
- <Column id="upindxcd" type="STRING" size="256" sumtext="상위index코드"/>
- <Column id="hngnm" type="STRING" size="256" sumtext="index한글명"/>
- <Column id="engnm" type="STRING" size="256" sumtext="index영문명"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- </Objects>
- <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"
- /*
- 버튼 컨트롤들을 클릭했을때 공통으로 타는 함수입니다.
- control : "search" 는 조회 버튼 클릭
- "init"은 신규 버튼 클릭
- "save"는 저장 버튼 클릭
- grid : 그리드 컨트롤을 넘겨줍니다.
- param : 기타 param을 넘겨줍니다.
- */
- function fClicked(control, grid, param){
- if ("search" == control){
- fSearchClick(grid, param);
- ds_send.clearData(); ds_send.addRow();
- } else if ("init" == control){
- //model.reset();
- } else {
- sysf_messageBox("처리를 수행","E002");
- }
- //model.refresh();
- }
- /*
- 조회버튼 클릭 타는 함수입니다.
- grid.explorerbar = "sortshow" sort설정합니다.
- ipt_usercdnm_flag는 검색조건의 사용자코드 or 사용자명입니다.
- radio1은 사용자코드 or 사용자명 선택 라디오 버튼입니다.
- submit을 날립니다.
- .
- */
- function fSearchClick(grid,param){
- ds_send.clearData();
- dsf_makeValue( ds_send, "instcd", "string", ,"012");
- dsf_makeValue( ds_send, "treeflag", "string", "N");
- //submit("TRMNP01502");
-
- var oParam = {};
- oParam.id = "TRMNP01502";
- oParam.service = "opanstapp.OpAnstStocMngt";
- oParam.method = "reqGetIndxList";
- oParam.inds = "reqdata=ds_send";
- oParam.outds = "ds_send_result_indxcdlist=indxcdlist";
- oParam.async = false;
- oParam.callback = "cf_TRMNP01502";
- tranf_submit(oParam);
- }
- function fResetNode(node, destinationelement){
- // model.setValue(node + "/" + destinationelement, "");
- alert(model.elementName("_root_main_item"));
- }
-
- /*
- model.getValue(); 를 함수로 만들었습니다.
- param1 : node는 grid의 xPath입니다.
- param2 : row는 grid에서 선택한 row값입니다.
- param3 : element는 getvalue할 해당 element 명입니다.
- 해당 getvalue값을 return 해줍니다.
- return 하지 않으면 해당값을 가져올 수 없습니다.
- */
- function fGetValue(node, row, element) {
- var rtnValue = eval(node).getColumn( row, element);
- return rtnValue;
- }
-
- /*
- model.setValue();를 함수로 만들었습니다.
- param1 : node는 setvalue할 컨트롤의 xPath입니다.
- param2 : destinationelement는 setvalue할 element명 입니다.
- param3 : sourceelement는 setvalue할 값입니다.
- */
- function fSetValue(node, destinationelement, sourceelement) {
- eval(node).setColumn( 0, destinationelement, sourceelement);
- }
- function fDblclick(pIdx) {
- var xPath ="ds_main_optreelists_optreelist";
-
- var Idx = pIdx; // pIdx + 1;
- var sDepth = eval(xPath).getColumn( Idx, "depth");
-
- if (sDepth != "3" ) {
- return;
- }
- //var clscd = ds_main_cond.getColumn(0, "clscd");
- //ds_main_cond.setColumn( 0, "clsnm", ds_main_educclslist_educclslistinfo.lookupExpr(clscd == '" + clscd + "'", "clsnm"));
-
- var iParam_code = fGetValue(xPath, Idx, "opcode" );
- var iParam_name = fGetValue(xPath, Idx, "opgname");
-
-
- var iParam = iParam_code + "|" + iParam_name;
-
- // alert(iParam);
-
- opener.frmf_setParameter("SendData", iParam);
- this.close();
- }
-
-
- function SPMNP01500_onload(obj:Form, e:LoadEventInfo)
- {
- frmf_initForm(obj); //폼 초기화
- grdf_initGrid(this.group5.trv_opcode);
-
- fSearchClick();
- }
- function group5_trv_opcode_oncelldblclick(obj:Grid, e:GridClickEventInfo)
- {
- fDblclick(group5.trv_opcode.currentrow);
- }]]></Script>
- </Form>
- </FDL>
|