123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SPMMB00600" position="absolute 0 0 1150 761" titletext="진단연계수술관리" oninit="SPMMB00600_oninit" onload="SPMMB00600_onload">
- <Layouts>
- <Layout>
- <Static text="진단" position="absolute 238 16 409 33" align="align:center middle;" id="caption27" class="tit_2"/>
- <Static text="SET" position="absolute 0 16 50 33" align="align:center middle;" id="caption1" class="tit_2"/>
- <Radio position="absolute 122 14 220 33" id="radio1" columncount="2" rowcount="1" codecolumn="codecolumn" datacolumn="datacolumn" onitemchanged="radio1_onitemchanged">
- <Dataset id="innerdataset">
- <ColumnInfo>
- <Column id="codecolumn"/>
- <Column id="datacolumn"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="codecolumn">P</Col>
- <Col id="datacolumn">개인</Col>
- </Row>
- <Row>
- <Col id="codecolumn">D</Col>
- <Col id="datacolumn">과</Col>
- </Row>
- </Rows>
- </Dataset>
- </Radio>
- <Static text="진단연계수술" position="absolute 701 16 801 33" align="align:center middle;" id="caption2" class="tit_2"/>
- <Grid position="absolute 234 35 695 759" id="grd_diaglinklist" binddataset="ds_main_diaglinklist" oncelldblclick="grd_diaglinklist_oncelldblclick" onenteredit="grd_diaglinklist_onenteredit" onenterdown="grd_diaglinklist_onenterdown">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="44"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="100"/>
- <Column size="309"/>
- <Column size="0"/>
- </Columns>
- <Rows>
- <Row size="24" band="head"/>
- <Row size="24"/>
- </Rows>
- <Band id="head">
- <Cell/>
- <Cell col="1" text="setno"/>
- <Cell col="2" text="settypecd"/>
- <Cell col="3" text="diagcd"/>
- <Cell col="4" text="진단코드"/>
- <Cell col="5" text="진단명"/>
- <Cell col="6" text="orgdiagcd"/>
- </Band>
- <Band id="body">
- <Cell displaytype="combo" edittype="combo" text="bind:status" combodataset="ds_cmb_status" combocodecol="value" combodatacol="label"/>
- <Cell col="1" text="bind:setno"/>
- <Cell col="2" text="bind:settypecd"/>
- <Cell col="3" text="bind:diagcd"/>
- <Cell col="4" displaytype="text" edittype="text" text="bind:dispdiagcd"/>
- <Cell col="5" displaytype="text" edittype="text" text="bind:diagengnm"/>
- <Cell col="6" text="bind:orgdiagcd"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Button position="absolute 606 13 648 32" id="btn_deldiag" class="btn2" text="삭제" onclick="btn_deldiag_onclick"/>
- <Grid position="absolute 699 35 1148 759" id="grd_oplinklist" binddataset="ds_main_oplinklist" onrbuttondown="grd_oplinklist_onrbuttondown" onenteredit="grd_oplinklist_onenteredit" onenterdown="grd_oplinklist_onenterdown">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="44"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="100"/>
- <Column size="298"/>
- </Columns>
- <Rows>
- <Row size="24" band="head"/>
- <Row size="24"/>
- </Rows>
- <Band id="head">
- <Cell/>
- <Cell col="1" text="setno"/>
- <Cell col="2" text="settypecd"/>
- <Cell col="3" text="opcd"/>
- <Cell col="4" text="diagcd"/>
- <Cell col="5" text="수술코드"/>
- <Cell col="6" text="수술명"/>
- </Band>
- <Band id="body">
- <Cell displaytype="combo" edittype="combo" text="bind:status" combodataset="ds_cmb_status" combocodecol="value" combodatacol="label"/>
- <Cell col="1" text="bind:setno"/>
- <Cell col="2" text="bind:settypecd"/>
- <Cell col="3" text="bind:opcd"/>
- <Cell col="4" text="bind:diagcd"/>
- <Cell col="5" displaytype="text" edittype="text" text="bind:dispopcd"/>
- <Cell col="6" displaytype="text" edittype="text" text="bind:opengnm"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Button position="absolute 650 13 692 32" id="btn_savediag" class="btn5" text="저장" onclick="btn_savediag_onclick"/>
- <Button position="absolute 1058 13 1100 32" id="btn_delop" class="btn2" text="삭제" onclick="btn_delop_onclick"/>
- <Button position="absolute 1102 13 1144 32" id="btn_saveop" class="btn5" text="저장" onclick="btn_saveop_onclick"/>
- <Button position="absolute 247 39 263 55" id="btn_diag" class="icon_search" visible="true" text="" onclick="btn_diag_onclick"/>
- <Button position="absolute 713 39 729 55" id="btn_op" class="icon_search" visible="true" text="" onclick="btn_op_onclick"/>
- <Grid id="trv_prmsprcpsetlist" taborder="1" useinputpanel="false" position="absolute 0 35 230 759" binddataset="ds_main_prmsprcpsetlist" onlbuttonup="trv_prmsprcpsetlist_onlbuttonup" onrbuttondown="trv_prmsprcpsetlist_onrbuttondown" treeusecheckbox="false" treeuseexpandkey="true" treeinitstatus="expand,all" autofittype="col">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="227"/>
- </Columns>
- <Rows>
- <Row size="24"/>
- </Rows>
- <Band id="body">
- <Cell displaytype="tree" edittype="tree" text="bind:setnm" treelevel="bind:levl"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Div position="absolute 6 190 224 245" id="group1" visible="false" style="background:#99ccffff;border:1 solid #808080ff ;">
- <Layouts>
- <Layout>
- <Static text="폴더명" position="absolute 5 7 54 27" align="align:center middle;" id="caption4" style="font:Dotum,9,bold;"/>
- <Edit position="absolute 55 7 209 26" id="ipt_setnm" class="input_default" onkeydown="group1_ipt_setnm_onkeydown"/>
- <Button position="absolute 122 29 164 48" id="btn_cnfm" class="btn2" text="확인" onclick="group1_btn_cnfm_onclick"/>
- <Button position="absolute 166 29 208 48" id="button3" class="btn2" text="취소" onclick="group1_button3_onclick"/>
- </Layout>
- </Layouts>
- </Div>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_main_diaglinklist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="status" type="STRING"/>
- <Column id="setno" type="STRING"/>
- <Column id="settypecd" type="STRING"/>
- <Column id="diagcd" type="STRING"/>
- <Column id="dispdiagcd" type="STRING"/>
- <Column id="diagengnm" type="STRING"/>
- <Column id="orgdiagcd" type="STRING"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_main_oplinklist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="status" type="STRING"/>
- <Column id="setno" type="STRING"/>
- <Column id="settypecd" type="STRING"/>
- <Column id="opcd" type="STRING"/>
- <Column id="diagcd" type="STRING"/>
- <Column id="dispopcd" type="STRING"/>
- <Column id="opengnm" type="STRING"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_main_prmsprcpsetlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="levl" type="STRING" size="256"/>
- <Column id="setno" type="STRING" size="256"/>
- <Column id="supsetno" type="STRING" size="256"/>
- <Column id="sortno" type="STRING" size="256"/>
- <Column id="setkindcd" type="STRING" size="256"/>
- <Column id="setclscd" type="STRING" size="256"/>
- <Column id="settrgtcd" type="STRING" size="256"/>
- <Column id="setnm" type="STRING" size="256"/>
- <Column id="settypecd" type="STRING" size="256"/>
- <Column id="ioflag" type="STRING" size="256"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_cmb_status" 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>
- <Col id="label">-</Col>
- <Col id="value">-</Col>
- </Row>
- <Row>
- <Col id="label">신규</Col>
- <Col id="value">i</Col>
- </Row>
- <Row>
- <Col id="label">수정</Col>
- <Col id="value">u</Col>
- </Row>
- <Row>
- <Col id="label">삭제</Col>
- <Col id="value">d</Col>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_main_cond" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="reqflag" type="STRING" size="256"/>
- <Column id="ioflag" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="reqflag">D</Col>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_main_iptbox" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="setnm" type="STRING" size="256"/>
- <Column id="setno" type="STRING" size="256"/>
- <Column id="diagcd" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- <Dataset id="ds_send_reqdata" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_hidden_prmsprcpsetlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="status" type="STRING" size="256"/>
- <Column id="levl" type="STRING" size="256"/>
- <Column id="setno" type="STRING" size="256"/>
- <Column id="supsetno" type="STRING" size="256"/>
- <Column id="sortno" type="STRING" size="256"/>
- <Column id="setkindcd" type="STRING" size="256"/>
- <Column id="setclscd" type="STRING" size="256"/>
- <Column id="settrgtcd" type="STRING" size="256"/>
- <Column id="setnm" type="STRING" size="256"/>
- <Column id="settypecd" type="STRING" size="256"/>
- <Column id="ioflag" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- <Dataset id="ds_send_savedata" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_selected" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="setno" type="STRING" size="256"/>
- <Column id="diagcd" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- <Dataset id="ds_temp_selectdiaglist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- </Objects>
- <Bind>
- <BindItem id="item0" compid="radio1" propid="value" datasetid="ds_main_cond" columnid="reqflag"/>
- <BindItem id="item1" compid="group1.ipt_setnm" propid="value" datasetid="ds_main_iptbox" columnid="setnm"/>
- </Bind>
- <Script type="xscript4.0"><![CDATA[/***************************************************************************************
- * System Name :
- * Job Name :
- * Creator :
- * Make Date : 2015-02-03
- * Description :
- *---------------------------------------------------------------------------------------
- * Modify Date Modifier Modify Description
- *---------------------------------------------------------------------------------------
- * 2015-02-03 Live Converter TF->XP
- *
- *---------------------------------------------------------------------------------------
- ****************************************************************************************/
- //=======================================================================================
- // Lib Include
- //---------------------------------------------------------------------------------------
- include "com_commonxp::comm_main.xjs"
- include "emr_prcpmngtxp::MMOCommon.xjs"
- include "emr_prcpmngtxp::SPMMB00600.xjs"
- var cusorY = 0;
- //=======================================================================================
- // Event
- //---------------------------------------------------------------------------------------
- /****************************************************************************************
- * Components : Form
- * Components ID : SPMMB00600
- * Event : oninit
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 화면 처음 초기화시 폼초기화
- ****************************************************************************************/
- function SPMMB00600_oninit(obj:Form, e:InitEventInfo)
- {
- frmf_initForm(obj); // 폼 초기화
- }
- /****************************************************************************************
- * Components : Form
- * Components ID : SPMMB00600
- * Event : onload
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 화면오픈시 폼load이후 실행
- ****************************************************************************************/
- function SPMMB00600_onload(obj:Form, e:LoadEventInfo)
- {
- fInitialize_SPMMB00600();
- frmf_createPopupMenu("popupmenu"
- ,"fPopupMenu"
- ,[{id: "N", level: "0", title: "새폴더"}
- ,{id: "R", level: "0", title: "폴더이름 바꾸기"}
- ,{id: "D", level: "0", title: "폴더삭제"}
- ]
- );
- frmf_createPopupMenu("gridmenu"
- ,"fSelectOpCD"
- ,[{id: "S", level: "0", title: "선택"}
- ]
- );
- }
- /****************************************************************************************
- * Components : Radio
- * Components ID : radio1
- * Event : onitemchanged
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description :
- ****************************************************************************************/
- function radio1_onitemchanged(obj:Radio, e:ItemChangeEventInfo)
- {
- fClearDiagOpGrd();
- fReqDiagOpCoordSETTree(e.postvalue);
- }
- /****************************************************************************************
- * Components : Grid
- * Components ID : trv_prmsprcpsetlist
- * Event : onrbuttondown
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : Set 트리 우클릭하여 팝업메뉴 실행
- ****************************************************************************************/
- function trv_prmsprcpsetlist_onrbuttondown(obj:Grid, e:GridMouseEventInfo)
- {
- if(e.row > -1) {
- ds_main_prmsprcpsetlist.rowposition = e.row;
- cusorY = e.clientY;
- popupmenu.trackPopup(e.screenX,e.screenY);
- }
- }
- /****************************************************************************************
- * Components : Grid
- * Components ID : trv_prmsprcpsetlist
- * Event : onlbuttonup
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : Set 트리 클릭하여 선택
- ****************************************************************************************/
- function trv_prmsprcpsetlist_onlbuttonup(obj:Grid, e:GridMouseEventInfo)
- {
- if(e.row > -1) {
- fSelectTreeView();
- }
- }
- /****************************************************************************************
- * Components : Edit
- * Components ID : group1.ipt_setnm
- * Event : onkeydown
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 폴더명 입력후 엔터/ESC 입력
- ****************************************************************************************/
- function group1_ipt_setnm_onkeydown(obj:Edit, e:KeyEventInfo)
- {
- if(e.keycode == 13) {
- var ev = new ClickEventInfo;
- frmf_inputEnterKey("group1.btn_cnfm", "onclick", ev );
- }
-
- if(e.keycode == 27){
- group1.visible = false;
- //model.setFocus("trv_etcprmsprcpsetlist");
- trv_prmsprcpsetlist.setFocus();
- return;
- }
- }
- /****************************************************************************************
- * Components : Button
- * Components ID : group1.btn_cnfm
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 폴더명 입력그룹 확인버튼 클릭
- ****************************************************************************************/
- function group1_btn_cnfm_onclick(obj:Button, e:ClickEventInfo)
- {
- group1.visible = false;
- //model.setFocus("trv_etcprmsprcpsetlist");
- trv_prmsprcpsetlist.setFocus();
- fSavePrmsDiagSet();
- }
- /****************************************************************************************
- * Components : Button
- * Components ID : group1.button3
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 폴더명 입력그룹 취소버튼 클릭
- ****************************************************************************************/
- function group1_button3_onclick(obj:Button, e:ClickEventInfo)
- {
- group1.visible = false;
- }
- /****************************************************************************************
- * Components : Grid
- * Components ID : grd_diaglinklist
- * Event : oncelldblclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 진단그리드 더블클릭
- ****************************************************************************************/
- function grd_diaglinklist_oncelldblclick(obj:Grid, e:GridClickEventInfo)
- {
- var curcol = e.col;
- var diagcd = ds_main_diaglinklist.getColumn(e.row,"diagcd");
- if(e.row > -1 && !utlf_isNull(diagcd)) {
- fClkGrdDiagLinkList(curcol);
- }
- }
- /****************************************************************************************
- * Components : Grid
- * Components ID : grd_diaglinklist
- * Event : onenteredit
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 진단그리드 편집시작
- ****************************************************************************************/
- function grd_diaglinklist_onenteredit(obj:Grid, e:GridEditEventInfo)
- {
- gDIAGCOL = e.col;
- }
- /****************************************************************************************
- * Components : Grid
- * Components ID : grd_diaglinklist
- * Event : onenterdown
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 진단그리드 편집후 엔터 입력
- ****************************************************************************************/
- function grd_diaglinklist_onenterdown(obj:Grid, e:GridEditEventInfo)
- {
- fSearchDiagTermCD();
- }
- /****************************************************************************************
- * Components : Button
- * Components ID : btn_deldiag
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 진단 삭제버튼 클릭
- ****************************************************************************************/
- function btn_deldiag_onclick(obj:Button, e:ClickEventInfo)
- {
- fClkBtnDel(grd_diaglinklist);
- }
- /****************************************************************************************
- * Components : Button
- * Components ID : btn_savediag
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 진단 저장버튼 클릭
- ****************************************************************************************/
- function btn_savediag_onclick(obj:Button, e:ClickEventInfo)
- {
- ds_send_savedata.clear();
- ds_send_savedata.copyData(ds_main_diaglinklist);
-
- var oParam = {};
- oParam.id = "TXMMB00605";
- oParam.service = "prcpbaseapp.PrmsPrcpMngt";
- oParam.method = "reqSaveDiagLinkOpSetList";
- oParam.inds = "req=ds_send_savedata";
- oParam.outds = "ds_main_diaglinklist=diaglinklist";
- oParam.async = false;
- oParam.callback = "cf_TXMMB00605";
- tranf_submit(oParam);
- // if(submit("TXMMB00605")==true){
- // grd_diaglinklist.addRow();
- // }
- }
- /****************************************************************************************
- * Function : cf_TXMMB00605
- * Description : TXMMB00605 콜백 함수
- * Argument :
- * return type :
- * Creator :
- ****************************************************************************************/
- function cf_TXMMB00605(sSvcId, nErrorCode, sErrorMsg) {
- if(nErrorCode < 0) return;
- ds_main_diaglinklist.addRow();
- }
- /****************************************************************************************
- * Components : Button
- * Components ID : btn_diag
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 진단 돋보기 버튼 클릭
- ****************************************************************************************/
- function btn_diag_onclick(obj:Button, e:ClickEventInfo)
- {
- var xpt = this.position.left + 50;
- var ypt = this.position.top + 80;
- // var coord = getRelativeCoordinate ( xpt, ypt );
- // var mon = coord[0];
- // xpt = coord[1];
- // ypt = coord[2];
- var mon = (sysf_getCurrentMonitorNumber()==1) ? 2 : 1;
- frmf_setParameter("SPMMO03200_diagParam", "Y");
- // modal("SPMMO03200", mon,xpt,ypt,"SPMMO03200", "", "", "", false);
- frmf_modal("SPMMO03200", "SPMMO03200", "", "", mon,xpt,ypt, "", "", "", "", "", "M");
- var useyn = frmf_getParameter("SPMMO03200_rtn_useyn");
- if(useyn == "Y") {
- var setno = ds_selected.getColumn(0,"setno");
- var reqflag = ds_main_cond.getColumn(0,"reqflag");
- if(reqflag == "P"){ //개인
- settypecd = "A";
- }else{
- settypecd = "B";
- }
-
- // var nodeList = model.instance1.selectNodes("/root/temp/selectdiaglist");
- var totcnt = ds_temp_selectdiaglist.rowcount;
- for(var i = 0; i < totcnt ; i++) {
- var currow = ds_main_diaglinklist.rowposition;
- ds_main_diaglinklist.setColumn(currow,"status" , "i");
- ds_main_diaglinklist.setColumn(currow,"dispdiagcd", ds_temp_selectdiaglist.getColumn(i,"dispdiagcd"));
- ds_main_diaglinklist.setColumn(currow,"diagcd" , ds_temp_selectdiaglist.getColumn(i,"diagcd"));
- ds_main_diaglinklist.setColumn(currow,"diagengnm" , ds_temp_selectdiaglist.getColumn(i,"diagengnm"));
- ds_main_diaglinklist.setColumn(currow,"setno" , setno);
- ds_main_diaglinklist.setColumn(currow,"settypecd" , settypecd);
- ds_main_diaglinklist.setColumn(currow,"orgdiagcd" , ds_temp_selectdiaglist.getColumn(i,"orgdiagcd"));
- // grd_diaglinklist.addRow(true, true);
- ds_main_diaglinklist.addRow();
- }
- }
- }
- /****************************************************************************************
- * Components : Grid
- * Components ID : grd_oplinklist
- * Event : onrbuttondown
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 진단연계수술 그리드 우클릭하여 팝업 띄우기
- ****************************************************************************************/
- function grd_oplinklist_onrbuttondown(obj:Grid, e:GridMouseEventInfo)
- {
- if(e.row > -1) {
- ds_main_prmsprcpsetlist.rowposition = e.row;
- // cusorY = e.clientY;
- gridmenu.trackPopup(e.screenX,e.screenY);
- }
- }
- /****************************************************************************************
- * Components : Grid
- * Components ID : grd_oplinklist
- * Event : onenteredit
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 진단연계수술그리드 편집시작
- ****************************************************************************************/
- function grd_oplinklist_onenteredit(obj:Grid, e:GridEditEventInfo)
- {
- gOPCOL = e.col;
- }
- /****************************************************************************************
- * Components : Grid
- * Components ID : grd_oplinklist
- * Event : onenterdown
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 진단연계수술그리드 편집후 엔터 입력
- ****************************************************************************************/
- function grd_oplinklist_onenterdown(obj:Grid, e:GridEditEventInfo)
- {
- fSearchOpTermCD();
- }
- /****************************************************************************************
- * Components : Button
- * Components ID : btn_delop
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 진단연계수술 삭제 버튼 클릭
- ****************************************************************************************/
- function btn_delop_onclick(obj:Button, e:ClickEventInfo)
- {
- fClkBtnDel(grd_oplinklist);
- }
- /****************************************************************************************
- * Components : Button
- * Components ID : btn_saveop
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 진단연계수술 저장 버튼 클릭
- ****************************************************************************************/
- function btn_saveop_onclick(obj:Button, e:ClickEventInfo)
- {
- ds_send_savedata.clear();
- ds_send_savedata.copyData(ds_main_oplinklist);
- // submit("TXMMB00606");
- var oParam = {};
- oParam.id = "TXMMB00606";
- oParam.service = "prcpbaseapp.PrmsPrcpMngt";
- oParam.method = "reqSaveDiagLinkOpDetlList";
- oParam.inds = "req=ds_send_savedata";
- oParam.outds = "ds_main_oplinklist=oplinklist";
- oParam.async = false;
- oParam.callback = "";
- tranf_submit(oParam);
-
- ds_main_oplinklist.addRow();
- }
- /****************************************************************************************
- * Components : Button
- * Components ID : btn_op
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 진단연계수술 돋보기 버튼 클릭
- ****************************************************************************************/
- function btn_op_onclick(obj:Button, e:ClickEventInfo)
- {
- var xpt = this.position.left + 50;
- var ypt = this.position.top + 80;
- // var coord = getRelativeCoordinate ( xpt, ypt );
- // var mon = coord[0];
- // xpt = coord[1];
- // ypt = coord[2];
- var mon = (sysf_getCurrentMonitorNumber()==1) ? 2 : 1;
- frmf_setParameter("SPMMO03300_opParam", "Y");
- // modal("SPMMO03200", mon,xpt,ypt,"SPMMO03200", "", "", "", false);
- frmf_modal("SPMMO03300", "SPMMO03300", "", "", mon,xpt,ypt, "", "", "", "", "", "M");
-
- var useyn = frmf_getParameter("SPMMO03300_rtn_useyn");
- if(useyn == "Y") {
- var reqflag = ds_main_cond.getColumn(0,"reqflag");
- if(reqflag == "P"){ //개인
- settypecd = "A";
- }else{
- settypecd = "B";
- }
- // var nodeList = model.instance1.selectNodes("/root/temp/selectoplist");
- var totcnt = ds_temp_selectoplist.rowcount;
- for(var i = 0; i <= totcnt ; i++) {
- var currow = ds_main_oplinklist.rowcount-1;
- ds_main_oplinklist.setColumn(currow,"status" , "i");
- ds_main_oplinklist.setColumn(currow,"setno" , ds_selected.getColumn(0,"setno"));
- ds_main_oplinklist.setColumn(currow,"settypecd" , settypecd);
- ds_main_oplinklist.setColumn(currow,"diagcd" , ds_selected.getColumn(0,"diagcd"));
- ds_main_oplinklist.setColumn(currow,"opcd" , ds_temp_selectoplist.getColumn(i,"opcd"));
- ds_main_oplinklist.setColumn(currow,"dispopcd" , ds_temp_selectoplist.getColumn(i,"dispopcd"));
- ds_main_oplinklist.setColumn(currow,"opengnm" , ds_temp_selectoplist.getColumn(i,"opengnm"));
- ds_main_oplinklist.addRow();
- }
- }
- }
- ]]></Script>
- </Form>
- </FDL>
|