123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.4">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SPMMD06200" position="absolute 0 0 499 650" titletext="검사정보" oninit="SPMMD06200_oninit" onload="SPMMD06200_onload">
- <Layouts>
- <Layout>
- <Div position="absolute 0 622 500 652" id="grp_btn">
- <Layouts>
- <Layout>
- <Button position="absolute 385 3 441 25" id="button7" class="btn4" text="등록" onclick="grp_btn_button7_onclick"/>
- <Button position="absolute 443 3 499 25" id="button3" class="btn4" text="닫기" onclick="grp_btn_button3_onclick"/>
- </Layout>
- </Layouts>
- </Div>
- <Grid position="absolute 130 59 500 450" id="grd_codelist" binddataset="ds_main_testlist" autofittype="col" oncelldblclick="grd_codelist_oncelldblclick" oncellclick="grd_codelist_oncellclick">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="32"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="70"/>
- <Column size="250"/>
- <Column size="0"/>
- </Columns>
- <Rows>
- <Row size="24" band="head"/>
- <Row size="24"/>
- </Rows>
- <Band id="head">
- <Cell text="선택"/>
- <Cell col="1" text="depth"/>
- <Cell col="2" text="grupcd"/>
- <Cell col="3" text="검사코드"/>
- <Cell col="4" text="검사명"/>
- <Cell col="5" text="단위"/>
- </Band>
- <Band id="body">
- <Cell text="bind:boolflag" edittype="checkbox" displaytype="checkbox"/>
- <Cell col="1" text="bind:depth"/>
- <Cell col="2" text="bind:grupcd"/>
- <Cell col="3" text="bind:itemcd"/>
- <Cell col="4" text="bind:itemnm"/>
- <Cell col="5" text="bind:unitnm"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Grid position="absolute 0 477 500 622" id="grd_selectlist" binddataset="ds_main_selecttestlist" onexpandup="grd_selectlist_onexpandup" oncelldblclick="grd_selectlist_oncelldblclick">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="0"/>
- <Column size="71"/>
- <Column size="121"/>
- <Column size="0"/>
- <Column size="95"/>
- <Column size="43"/>
- <Column size="30"/>
- <Column size="42"/>
- <Column size="30"/>
- <Column size="50"/>
- <Column size="0"/>
- <Column size="0"/>
- <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 text="grupcd"/>
- <Cell col="1" text="검사코드"/>
- <Cell col="2" text="검사명"/>
- <Cell col="3" text="spccd"/>
- <Cell col="4" text="검체 (전체:-)"/>
- <Cell col="5" colspan="2" text="하한치"/>
- <Cell col="7" colspan="2" text="상한치"/>
- <Cell col="9" text="단위"/>
- <Cell col="10" text="refseq"/>
- <Cell col="11" text="alertcdflag"/>
- <Cell col="12" text="alertrem"/>
- <Cell col="13" text="alertprecondyn"/>
- <Cell col="14" text="checkyn"/>
- <Cell col="15" text="m"/>
- </Band>
- <Band id="body">
- <Cell text="bind:testitemcd"/>
- <Cell col="1" text="bind:testcd"/>
- <Cell col="2" text="bind:testnm"/>
- <Cell col="3" text="bind:spccd"/>
- <Cell col="4" displaytype="text" edittype="expand" text="bind:spcnm" expandshow="show" expandsize="20"/>
- <Cell col="5" displaytype="text" edittype="text" text="bind:reflval"/>
- <Cell col="6" displaytype="combo" edittype="combo" text="bind:lvalappflag"/>
- <Cell col="7" displaytype="text" edittype="text" text="bind:refhval"/>
- <Cell col="8" displaytype="combo" edittype="combo" text="bind:hvalappflag"/>
- <Cell col="9" text="bind:unitnm"/>
- <Cell col="10" text="bind:refseq"/>
- <Cell col="11" text="bind:alertcdflag"/>
- <Cell col="12" text="bind:alertrem"/>
- <Cell col="13" text="bind:alertprecondyn"/>
- <Cell col="14" text="bind:checkyn"/>
- <Cell col="15" text="bind:m"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Button position="absolute 392 455 456 474" id="button6" class="btn2" text="항목추가" onclick="button6_onclick"/>
- <Static text="선택 검사항목" position="absolute 4 458 146 474" id="caption5" class="tit_2"/>
- <Static text="검사정보" position="absolute 0 0 142 16" id="caption14" class="tit_2"/>
- <Button position="absolute 458 455 500 474" id="button1" class="btn2" text="삭제" onclick="button1_onclick"/>
- <Grid position="absolute 0 59 130 450" id="grd_grouplist" binddataset="ds_main_grouplist" autofittype="col" oncelldblclick="grd_grouplist_oncelldblclick" oncellclick="grd_grouplist_oncellclick">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="112"/>
- </Columns>
- <Rows>
- <Row size="24" band="head"/>
- <Row size="24"/>
- </Rows>
- <Band id="head">
- <Cell text="검사 분류"/>
- </Band>
- <Band id="body">
- <Cell text="bind:nm"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Div id="grp_srch" taborder="4" position="absolute 0 19 500 57" class="div_SA2">
- <Layouts>
- <Layout>
- <Button id="btn_srchreq" taborder="0" text="조회" class="btn1" position="absolute 430 9 486 31" anchor="default" onclick="grp_srch_btn_srchreq_onclick"/>
- <Static id="caption4" text="검색 :" class="search_name" position="absolute 6 11 52 28" anchor="default"/>
- <Radio id="radio2" taborder="1" columncount="2" rowcount="0" codecolumn="codecolumn" datacolumn="datacolumn" position="absolute 56 9 192 29" anchor="default">
- <Dataset id="innerdataset">
- <ColumnInfo>
- <Column id="codecolumn"/>
- <Column id="datacolumn"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="codecolumn">C</Col>
- <Col id="datacolumn">검사코드</Col>
- </Row>
- <Row>
- <Col id="codecolumn">N</Col>
- <Col id="datacolumn">검사명</Col>
- </Row>
- </Rows>
- </Dataset>
- </Radio>
- <Edit id="input3" taborder="2" position="absolute 205 10 420 29" anchor="default" onkeydown="grp_srch_input3_onkeydown"/>
- </Layout>
- </Layouts>
- </Div>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_main_testlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="boolflag" type="STRING"/>
- <Column id="depth" type="STRING"/>
- <Column id="grupcd" type="STRING"/>
- <Column id="itemcd" type="STRING"/>
- <Column id="itemnm" type="STRING"/>
- <Column id="unitnm" type="STRING"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_main_selecttestlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="testitemcd" type="STRING"/>
- <Column id="testcd" type="STRING"/>
- <Column id="testnm" type="STRING"/>
- <Column id="spccd" type="STRING"/>
- <Column id="spcnm" type="STRING"/>
- <Column id="reflval" type="STRING"/>
- <Column id="lvalappflag" type="STRING"/>
- <Column id="refhval" type="STRING"/>
- <Column id="hvalappflag" type="STRING"/>
- <Column id="unitnm" type="STRING"/>
- <Column id="refseq" type="STRING"/>
- <Column id="alertcdflag" type="STRING"/>
- <Column id="alertrem" type="STRING"/>
- <Column id="alertprecondyn" type="STRING"/>
- <Column id="checkyn" type="STRING"/>
- <Column id="m" type="STRING"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_main_grouplist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="nm" type="STRING"/>
- </ColumnInfo>
- </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="prcpflag" type="STRING" size="256"/>
- <Column id="prcpcd" type="STRING" size="256"/>
- <Column id="alertcdflag" type="STRING" size="256"/>
- <Column id="testmdlcd" type="STRING" size="256"/>
- <Column id="userdeptflagcd" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="prcpflag">C</Col>
- <Col id="prcpcd"/>
- <Col id="alertcdflag"/>
- <Col id="testmdlcd"/>
- <Col id="userdeptflagcd"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_send_reqdata" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- </Objects>
- <Bind>
- <BindItem id="item0" compid="grp_srch.radio2" propid="value" datasetid="ds_main_cond" columnid="prcpflag"/>
- <BindItem id="item1" compid="grp_srch.input3" propid="value" datasetid="ds_main_cond" columnid="prcpcd"/>
- </Bind>
- <Script type="xscript4.0"><![CDATA[/***************************************************************************************
- * System Name :
- * Job Name :
- * Creator :
- * Make Date : 2015-03-27
- * Description :
- *---------------------------------------------------------------------------------------
- * Modify Date Modifier Modify Description
- *---------------------------------------------------------------------------------------
- * 2015-03-27 Live Converter TF->XP
- *
- *---------------------------------------------------------------------------------------
- ****************************************************************************************/
- //=======================================================================================
- // Lib Include
- //---------------------------------------------------------------------------------------
- include "com_commonxp::comm_main.xjs"
- var openflag = "";
- var arErrorCode = new HashArray();
- //=======================================================================================
- // Event
- //---------------------------------------------------------------------------------------
- /****************************************************************************************
- * Components : Form
- * Components ID : SPMMD06200
- * Event : oninit
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 화면 처음 초기화시 폼초기화
- ****************************************************************************************/
- function SPMMD06200_oninit(obj:Form, e:InitEventInfo)
- {
- frmf_initForm(obj); // 폼 초기화
- }
- /****************************************************************************************
- * Components : Form
- * Components ID : SPMMD06200
- * Event : onload
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 화면오픈시 폼load이후 실행
- ****************************************************************************************/
- function SPMMD06200_onload(obj:Form, e:LoadEventInfo)
- {
- var openflag = opener.ds_main_cond.getColumn(0,"condbutton");
- var sRow = "";
- var alertcdflag = "";
- alertcdflag = opener.ds_main_cond.getColumn(0,"alertcdflag");
- ds_main_cond.setColumn(0,"alertcdflag", alertcdflag);
- //사용부서구분코드(L:진단검사의학과, P:병리과, N:핵의학과-체외검사)
- if(alertcdflag == "01"){
- ds_main_cond.setColumn(0,"userdeptflagcd", "L");
- }else if(alertcdflag == "02"){
- ds_main_cond.setColumn(0,"userdeptflagcd", "N");
- }
-
- var oParam = {};
- oParam.id = "TRMMD06202";
- oParam.service = "cdssmngtapp.ClinicalRuleMngt";
- oParam.method = "reqGetTestClsList";
- oParam.inds = "req=ds_main_cond";
- oParam.outds = "ds_main_grouplist=grouplist";
- oParam.async = false;
- oParam.callback = "cf_TRMMD06202";
- tranf_submit(oParam);
-
- if( arErrorCode.pop("TRMMD06202") > -1 ){
- // grd_grouplist.isselected(1) = true;
- objects[grd_grouplist.binddataset].rowposition = 0;
- var cd = ds_main_grouplist.getColumn(0,"cd");
- ds_main_cond.setColumn(0,"testmdlcd", cd);
- }
- }
- /****************************************************************************************
- * Components : Edit
- * Components ID : grp_srch.input3
- * Event : onkeydown
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 조회조건 입력후 엔터로 조회실행
- ****************************************************************************************/
- function grp_srch_input3_onkeydown(obj:Edit, e:KeyEventInfo)
- {
- if(e.keycode == 13) {
- var ev = new ClickEventInfo;
- frmf_inputEnterKey("grp_srch.btn_srchreq", "onclick", ev );
- }
- }
- /****************************************************************************************
- * Components : Button
- * Components ID : grp_srch.btn_srchreq
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 조회버튼 클릭
- ****************************************************************************************/
- function grp_srch_btn_srchreq_onclick(obj:Button, e:ClickEventInfo)
- {
- getAllPrcpCd();
- }
- /****************************************************************************************
- * Components : Grid
- * Components ID : grd_grouplist
- * Event : oncelldblclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 검사분류 더블클릭하여 검사정보 조회
- ****************************************************************************************/
- function grd_grouplist_oncelldblclick(obj:Grid, e:GridClickEventInfo)
- {
- if( e.row > -1 ){
- getAllPrcpCd();
- }
- }
- /****************************************************************************************
- * Components : Grid
- * Components ID : grd_grouplist
- * Event : oncellclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 검사분류 클릭하여 조회조건 세팅
- ****************************************************************************************/
- function grd_grouplist_oncellclick(obj:Grid, e:GridClickEventInfo)
- {
- var currow = e.row;
- if( currow > -1 ){
- var cd = ds_main_grouplist.getColumn(currow,"cd");
- ds_main_cond.setColumn(0,"testmdlcd", cd);
- }
- }
- /****************************************************************************************
- * Components : Grid
- * Components ID : grd_codelist
- * Event : oncelldblclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 검사정보 더블클릭
- ****************************************************************************************/
- function grd_codelist_oncelldblclick(obj:Grid, e:GridClickEventInfo)
- {
- //2009.02.17 JJE 수정함
- var currow = e.row;
- if(currow > -1){
- ds_main_testlist.setColumn(currow,"boolflag","Y");
- e.col = 0;
- // grd_codelist.dispatch("onclick");
- var ev = new GridClickEventInfo;
- frmf_inputEnterKey("grd_codelist", "oncellclick", ev );
- fAppendDiagCD();
- }
- }
- /****************************************************************************************
- * Components : Grid
- * Components ID : grd_codelist
- * Event : oncellclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 검사정보 클릭
- ****************************************************************************************/
- function grd_codelist_oncellclick(obj:Grid, e:GridClickEventInfo)
- {
- var grdcol = e.col;
- var currow = e.row;
- var rows = obj.rowcount;
- var grdrow = rows - currow; //???
- var rowno = rows - 1; //???
-
- if ( currow > -1 ) {
- if (grdcol == 0) {
- var boolflag = ds_main_testlist.getColumn(currow,"boolflag");
- var org_grupyn = ds_main_testlist.getColumn(currow,"grupyn");
- var org_depth = parseInt(ds_main_testlist.getColumn(currow,"depth"));
- var depth = "";
- var grupyn = "";
-
- if (org_grupyn == "Y") { //그룹이면 - 하위코드까지 자동 체크 처리
- for(var i = 1 ; i < grdrow ; i ++ ) {
- currow = currow + 1;
- depth = parseInt(ds_main_testlist.getColumn(currow,"depth"));
- grupyn = ds_main_testlist.getColumn(currow,"grupyn");
- if (depth > org_depth) {
- if (currow <= rowno ) { //&& grupyn == "N"
- var boolflag = ds_main_testlist.getColumn(currow,"boolflag");
- if (boolflag == "Y") {
- ds_main_testlist.setColumn(currow,"boolflag", "N");
- } else {
- ds_main_testlist.setColumn(currow,"boolflag", "Y");
- }
- }
- } else{
- return;
- }
- }
- }
- }
- }
- }
- /****************************************************************************************
- * Components : Button
- * Components ID : button6
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 항목추가 버튼 클릭
- ****************************************************************************************/
- function button6_onclick(obj:Button, e:ClickEventInfo)
- {
- fAppendDiagCD();
- }
- /****************************************************************************************
- * Components : Button
- * Components ID : button1
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 선택 검사항목 삭제 버튼 클릭
- ****************************************************************************************/
- function button1_onclick(obj:Button, e:ClickEventInfo)
- {
- var selectedRowList = grdf_getSelectedRows(grd_selectlist);
- if( selectedRowList.length > 0 ){
- for (var i = selectedRowList.length-1 ; i >= 0 ; i--) {
- // model.removeNodeset("/root/main/selecttestinfo/selecttestlist[" + grd_selectlist.selectedrow(i) + "]");
- ds_main_selecttestlist.deleteRow(selectedRowList[i]);
- }
- // grd_selectlist.refresh();
- }
- }
- /****************************************************************************************
- * Components : Grid
- * Components ID : grd_selectlist
- * Event : onexpandup
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 선택검사항목 검체 버튼 클릭
- ****************************************************************************************/
- function grd_selectlist_onexpandup(obj:Grid, e:GridMouseEventInfo)
- {
- var grdcol = e.col;
- var currow = e.row;
- var rows = obj.rowcount;
- if ( currow > -1 ) {
- if( grdcol == grd_selectlist.getBindCellIndex("body","spcnm") ) {
- var testcd = ds_main_selecttestlist.getColumn(currow,"testcd");
- var testnm = ds_main_selecttestlist.getColumn(currow,"testnm");
- frmf_setParameter("SPMMO03400_param_tclsnm", testnm);
- frmf_setParameter("SPMMO03400_param_tclscd", testcd);
-
- // modal("SPMMO03400");
- frmf_modal("SPMMO03400","SPMMO03400",null,null,null,null,null,null,null,null,null,null,"M");
-
- if( !utlf_isNull(frmf_getParameter("SPMMO03400_rtn_spccd")) ){
- var spccd = frmf_getParameter("SPMMO03400_rtn_spccd");
- var spcnm = frmf_getParameter("SPMMO03400_rtn_spcscrnnm");
- var useyn = frmf_getParameter("SPMMO03400_rtn_useyn");
- ds_main_selecttestlist.setColumn(currow,"spccd", spccd);
- ds_main_selecttestlist.setColumn(currow,"spcnm", spcnm);
- }
-
- frmf_clearParameter("SPMMO03400_param_tclsnm");
- frmf_clearParameter("SPMMO03400_param_tclscd");
- frmf_clearParameter("SPMMO03400_rtn_spccd");
- frmf_clearParameter("SPMMO03400_rtn_spcscrnnm");
- frmf_clearParameter("SPMMO03400_rtn_useyn");
- }
- }
- }
- /****************************************************************************************
- * Components : Grid
- * Components ID : grd_selectlist
- * Event : oncelldblclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 선택검사항목 더블클릭
- ****************************************************************************************/
- function grd_selectlist_oncelldblclick(obj:Grid, e:GridClickEventInfo)
- {
- var grdcol = e.col;
- var currow = e.row;
- var rows = obj.rowcount;
- var srcrow = 0;
- var spccd = "";
- var spcnm = "";
- if (grdcol == grd_selectlist.getBindCellIndex("body","spcnm") ) {
- if ( currow == 0 ) {
- srcrow = currow + 1;
- spccd = ds_main_selecttestlist.getColumn(srcrow,"spccd");
- spcnm = ds_main_selecttestlist.getColumn(srcrow,"spcnm");
- } else if ( currow > 0 && currow < rows ) {
- srcrow = currow - 1;
- spccd = ds_main_selecttestlist.getColumn(srcrow,"spccd");
- spcnm = ds_main_selecttestlist.getColumn(srcrow,"spcnm");
- }
- ds_main_selecttestlist.setColumn(srcrow,"spccd", spccd);
- ds_main_selecttestlist.setColumn(srcrow,"spcnm", spcnm);
- }
- }
- /****************************************************************************************
- * Components : Button
- * Components ID : grp_btn.button7
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 등록버튼 클릭
- ****************************************************************************************/
- function grp_btn_button7_onclick(obj:Button, e:ClickEventInfo)
- {
- fSendItemCDList();
- }
- /****************************************************************************************
- * Components : Button
- * Components ID : grp_btn.button3
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 닫기버튼 클릭
- ****************************************************************************************/
- function grp_btn_button3_onclick(obj:Button, e:ClickEventInfo)
- {
- this.close();
- }
- //=======================================================================================
- // Function
- //---------------------------------------------------------------------------------------
- /****************************************************************************************
- * Function : cf_TRMMD06202
- * Description : TRMMD06202 콜백함수
- * Argument :
- * return type :
- * Creator :
- ****************************************************************************************/
- function cf_TRMMD06202(sSvcId, nErrorCode, sErrorMsg) {
- arErrorCode.push(sSvcId, nErrorCode);
- }
- /****************************************************************************************
- * Function : getAllPrcpCd
- * Description : 검사정보조회
- * Argument :
- * return type :
- * Creator :
- ****************************************************************************************/
- function getAllPrcpCd(){
- ds_send_reqdata.copyData(ds_main_cond);
-
- var oParam = {};
- oParam.id = "TRMMD06201";
- oParam.service = "cdssmngtapp.ClinicalRuleMngt";
- oParam.method = "reqGetTestItemList";
- oParam.inds = "req=ds_send_reqdata";
- oParam.outds = "ds_main_testlist=testlist";
- oParam.async = false;
- oParam.callback = "cf_TRMMD06201";
- tranf_submit(oParam);
- // submit("TRMMD06201", true);
- // setTree(grd_codelist, grd_codelist.colRef("depth"), grd_codelist.colRef("itemnm"), true);
- }
- /****************************************************************************************
- * Function : cf_TRMMD06201
- * Description : TRMMD06201 콜백함수
- * Argument :
- * return type :
- * Creator :
- ****************************************************************************************/
- function cf_TRMMD06201(sSvcId, nErrorCode, sErrorMsg) {
- if(nErrorCode < 0) return;
- dsf_setDefaultVal(ds_main_testlist, "boolflag:N");
- }
- /****************************************************************************************
- * Function : fAppendDiagCD
- * Description : 다수의 진단코드 선택 후, 진단추가버튼 클릭
- * : 1. check box에 선택된 진단을 추가
- * : 2. ctrl + mouse select로 선택된 진단을 추가
- * Argument :
- * return type :
- * Creator :
- ****************************************************************************************/
- function fAppendDiagCD(){
- var totrow = objects(grd_codelist.binddataset].rowcount;
- var addrownum = 0;
- for(var i = 0 ; i < totrow ; i++){
- var bflag = grd_codelist.getCellText(i,grd_codelist.getBindCellIndex("body","boolflag"));
- var grupyn = ds_main_testlist.getColumn(i,"grupyn");
- var rsltyn = ds_main_testlist.getColumn(i,"rsltyn");
- if( bflag == "Y" && grupyn == "N" && rsltyn == "Y" ){
- fAddDiag(i);
- }
- objects[grd_codelist.binddataset].setColumn(i,"boolflag","N");
- }
- // grd_selectlist.rebuild();
- // model.refresh();
- }
- /****************************************************************************************
- * Function : fAppendDiagCD
- * Description : 단일 진단코드 선택, 그리드 클릭
- * Argument : trgtrow - 현재 클릭한 그리드의 row 위치
- * return type :
- * Creator :
- ****************************************************************************************/
- function fAddDiag(trgtrow){
- var itemcd = ds_main_testlist.getColumn(trgtrow,"itemcd");
- var grupcd = ds_main_testlist.getColumn(trgtrow,"grupcd");
- var itemnm = ds_main_testlist.getColumn(trgtrow,"itemnm");
- var unitnm = ds_main_testlist.getColumn(trgtrow,"unitnm");
- //var fndrow = grd_selectlist.findRow(itemcd, 1, 0, "true", "true");
- //if(fndrow < 0){
- grd_selectlist.addRow(false);
- currow = grd_selectlist.row;
- dsf_makeValue(ds_main_selecttestlist,"testitemcd" ,"string", grupcd, currow);
- dsf_makeValue(ds_main_selecttestlist,"testcd" ,"string", itemcd, currow);
- dsf_makeValue(ds_main_selecttestlist,"testnm" ,"string", itemnm, currow);
- dsf_makeValue(ds_main_selecttestlist,"unitnm" ,"string", unitnm, currow);
- dsf_makeValue(ds_main_selecttestlist,"lvalappflag" ,"string", "U" , currow);
- dsf_makeValue(ds_main_selecttestlist,"hvalappflag" ,"string", "D" , currow);
- dsf_makeValue(ds_main_selecttestlist,"spccd" ,"string", "-" , currow);
- dsf_makeValue(ds_main_selecttestlist,"spcnm" ,"string", "-" , currow);
- //}
- }
- /************************************************************************************************
- 함수명 : setTree ()
- 인자 :
- Object gridObj - 그리드 오브텍트
- Integer levelcol - Depth 컬럼 위치
- Integer targetcol - 아웃라인 생성 컬럼 위치
- Boolean collapsed - Expand 설정
- Integer outlinebar - 아웃라인 형태 (0:트리구조로 보여지지 않음-일반컬럼)
- (1:트리를 연결하는 선보이지 않음/박스보임)
- (2:기본값-트리를 연결하는 선보임/박스보임)
- (3:트리를 연결하는 선보이지 않음/하위노드가 없으면 박스 보이지 않)
- (4:트리를 연결하는 선보임/하위노드가 없으면 박스 보이지 않음)
- (5:트리를 연결하는 선보이지 않음/박스보이지 않음)
- 결과값 :
- 함수설명 : 아웃라인 옵션 추가 - 2008.04.25 by hoya
- ************************************************************************************************
- 작 성 자 : 어 승옥
- 작 성 일 : 2006. 12. 01
- ************************************************************************************************/
- // function setTree( gridObj, levelcol, targetcol, collapsed, outlinebar ) {
- // // 그리드 아웃라이바 초기화
- // //gridObj.outlinebar=0;
- //
- // //tree 및 레벨설정
- // for(var i = gridObj.fixedRows; i < gridObj.rows; i++)
- // {
- // //gridObj.issubtotal(i) = true;
- // try {
- // gridObj.outlinelevel(i)=gridObj.valuematrix(i, levelcol); //인스턴스 levl 값임
- // } catch(e) {
- //
- // }
- // }
- //
- // // tree 대상 컬럼 및 형태 설정
- // gridObj.outlinecol=targetcol; //연결선이 표현되는 컬럼
- // if (outlinebar == "" || outlinebar == null) {
- // gridObj.outlinebar = 2;
- // } else {
- // gridObj.outlinebar=outlinebar; //연결선 형태 설정 (+ , - , 사각형 안보이게 하려면 0 으로 세팅)
- // }
- // gridObj.treecolor="#948777"
- //
- // // 자식 트리 접기
- // if(collapsed != null) {
- // setCollapsed(gridObj, collapsed);
- // }
- // }
- /****************************************************************************************
- * Function : fSendItemCDList
- * Description : 진단코드리스트 전달
- * Argument :
- * return type :
- * Creator :
- ****************************************************************************************/
- function fSendItemCDList(){
- if(frmf_checkOpener()){
- var condbutton = opener.ds_main_cond.getColumn(0,"condbutton");
- var alertcdflag = opener.ds_main_cond.getColumn(0,"alertcdflag");
-
- if (condbutton == "IF") {
- var sRows = objects[grd_selectlist.binddataset].rowcount;
- }
- if ( objects[grd_selectlist.binddataset].rowcount < 1 ) {
- sysf_messageBox ( "선택된 항목이", "I004" );
- }
-
- var header = "testitemcd▦testcd▦testnm▦hvalappflag▦lvalappflag▦refhval▦reflval▦unitnm▦refseq▦alertcdflag▦alertrem▦alertprecondyn▦checkyn▦m▦▦scndcondcd▦scndcondnm";
- var rtn = "";
- // var Select_Path = "/root/main/selecttestinfo/selecttestlist"; //ds_main_selecttestlist
- for (var i = 0; i < objects[grd_selectlist.binddataset].rowcount; i ++) {
- var testitemcd = ds_main_selecttestlist.getColumn(i,"testitemcd");
- var testcd = ds_main_selecttestlist.getColumn(i,"testcd");
- var testnm = ds_main_selecttestlist.getColumn(i,"testnm");
- var hvalappflag = ds_main_selecttestlist.getColumn(i,"hvalappflag");
- var lvalappflag = ds_main_selecttestlist.getColumn(i,"lvalappflag");
- var refhval = ds_main_selecttestlist.getColumn(i,"refhval");
- var reflval = ds_main_selecttestlist.getColumn(i,"reflval");
- var unitnm = ds_main_selecttestlist.getColumn(i,"unitnm");
- var refseq = ds_main_selecttestlist.getColumn(i,"refseq");
- var checkyn = ds_main_selecttestlist.getColumn(i,"checkyn");
- var m = ds_main_selecttestlist.getColumn(i,"m");
- var spccd = ds_main_selecttestlist.getColumn(i,"spccd");
- var spcnm = ds_main_selecttestlist.getColumn(i,"spcnm");
- if( utlf_isNull(spccd) ) spccd = "-";
-
- if ( condbutton == "IF") {
- var alertrem = testnm + " :" + reflval + "~" + refhval;
- var alertprecondyn = "Y";
-
- if ( utlf_isNull(reflval) && utlf_isNull(refhval) ) {
- sysf_messageBox("상한치, 하한치 값을", "C001");
- return;
- }
- if ( utlf_isNull(reflval)) {
- ds_main_selecttestlist.setColumn(i,"lvalappflag", "N");
- } else {
- if( ds_main_selecttestlist.getColumn(i,"lvalappflag") == "-" ){
- sysf_messageBox("하한치의 이상/이하를", "C002");
- return;
- }
- }
- if (utlf_isNull(refhval)) {
- ds_main_selecttestlist.setColumn(i,"hvalappflag", "N");
- } else {
- if( ds_main_selecttestlist.getColumn(i,"hvalappflag") == "-" ){
- sysf_messageBox("상한치의 이상/이하를", "C002");
- return;
- }
- }
- }else{
- var alertrem = ds_main_selecttestlist.getColumn(i,"alertrem");
- var alertprecondyn = "N";
- }
- rtn += "▩" + testitemcd + "▦" + testcd + "▦" + testnm + "▦" + hvalappflag + "▦" + lvalappflag+ "▦" + refhval + "▦" + reflval + "▦" + unitnm + "▦" + "▦" + alertcdflag + "▦" + alertrem + "▦" + alertprecondyn + "▦▦▦▦"+spccd+"▦"+spcnm;
- }
-
- if( !utlf_isNull(rtn) ) opener.frmf_setParameter( "SPMMD06100_detlinfo", header + rtn );
- this.close();
- }
- }
- ]]></Script>
- </Form>
- </FDL>
|