123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SPMNP01806" position="absolute 0 0 695 595" titletext="응급CCD" oninit="SPMNP01806_oninit" onload="SPMNP01806_onload">
- <Layouts>
- <Layout>
- <Div position="absolute 0 0 680 25" id="group1">
- <Layouts>
- <Layout>
- <Static text="응급CCD BAG조회" position="absolute 0 0 150 25" id="caption6" class="tit_1"/>
- </Layout>
- </Layouts>
- </Div>
- <Div position="absolute 0 25 690 60" id="group2" class="div_SA">
- <Layouts>
- <Layout>
- <Button position="absolute 626 8 682 28" id="btn_search" class="btn1" taborder="6" text="조회" onclick="group2_btn_search_onclick" anchor="default"/>
- <Shape position="absolute 614 7 620 29" linetype="vertical" id="line13" class="line_4" anchor="default"/>
- <Radio position="absolute 95 8 220 28" id="radio1" visible="true" columncount="3" codecolumn="codecolumn" datacolumn="datacolumn" onitemchanged="group2_radio1_onitemchanged" anchor="default">
- <Dataset id="innerdataset">
- <ColumnInfo>
- <Column id="codecolumn"/>
- <Column id="datacolumn"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="codecolumn">G</Col>
- <Col id="datacolumn">그룹별</Col>
- </Row>
- <Row>
- <Col id="codecolumn">E</Col>
- <Col id="datacolumn">코드별</Col>
- </Row>
- </Rows>
- </Dataset>
- </Radio>
- <Static text="조회조건 :" position="absolute 15 8 110 28" id="caption1" class="search_name" visible="true" anchor="default"/>
- <Edit position="absolute 468 8 602 28" id="ipt_erbg" anchor="default" autoselect="true"/>
- <Combo position="absolute 222 8 322 28" id="cmb_grup" innerdataset="@ds_init_grupcdinfo_grupcdlist" datacolumn="cdnm" codecolumn="cdid" anchor="default"/>
- <Radio position="absolute 333 8 470 28" id="radio2" columncount="2" codecolumn="codecolumn" datacolumn="datacolumn" anchor="default">
- <Dataset id="innerdataset">
- <ColumnInfo>
- <Column id="codecolumn"/>
- <Column id="datacolumn"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="codecolumn">C</Col>
- <Col id="datacolumn">BAG코드</Col>
- </Row>
- <Row>
- <Col id="codecolumn">N</Col>
- <Col id="datacolumn">BAG명</Col>
- </Row>
- </Rows>
- </Dataset>
- </Radio>
- </Layout>
- </Layouts>
- </Div>
- <Tab position="absolute 0 71 690 591" id="switch1" class="tab_Normal">
- <Tabpages>
- <Tabpage id="case1">
- <Layouts>
- <Layout>
- <Grid position="absolute 0 0 690 506" id="grd_erbglist" binddataset="ds_main_erbginfo_erbglist" oncelldblclick="switch1_case1_grd_erbglist_oncelldblclick" oncellclick="switch1_case1_grd_erbglist_oncellclick" onenterdown="switch1_case1_grd_erbglist_onenterdown" selecttype="multirow" autoenter="key" cellsizebandtype="allband" cellsizingtype="both" extendsizetype="row">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="20" band="left"/>
- <Column size="40"/>
- <Column size="70"/>
- <Column size="250"/>
- <Column size="60"/>
- <Column size="100"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- </Columns>
- <Rows>
- <Row size="24" band="head"/>
- <Row size="24"/>
- </Rows>
- <Band id="head">
- <Cell/>
- <Cell col="1" text="선택"/>
- <Cell col="2" text="BAG코드"/>
- <Cell col="3" text="BAG명"/>
- <Cell col="4" text="수량"/>
- <Cell col="5" text="그룹선택"/>
- <Cell col="6"/>
- <Cell col="7"/>
- <Cell col="8"/>
- </Band>
- <Band id="body">
- <Cell celltype="head"/>
- <Cell col="1" displaytype="checkbox" edittype="checkbox" text="bind:chkyn"/>
- <Cell col="2" style="align:left;" text="bind:erbgcd"/>
- <Cell col="3" style="align:left;" text="bind:erbgnm"/>
- <Cell col="4" displaytype="number" edittype="masknumber" text="bind:goodqty" mask="#,###" editautoselect="true"/>
- <Cell col="5" displaytype="combo" edittype="combo" style="align:center;" text="bind:grupcd" combodataset="ds_init_grupcdinfo_grupcdlist" combocodecol="cdid" combodatacol="cdnm" combodisplayrowcount="20"/>
- <Cell col="6" text="bind:oproomcd"/>
- <Cell col="7" text="bind:cartgubn"/>
- <Cell col="8" text="bind:insukind"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Grid position="absolute 0 100 689 305" id="grd_setcode" visible="false" binddataset="ds_main_MmbhppdsLists_mmbhppdslist">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="25"/>
- <Column size="70"/>
- <Column size="35"/>
- <Column size="35"/>
- <Column size="300"/>
- <Column size="100"/>
- <Column size="90"/>
- <Column size="85"/>
- <Column size="50"/>
- <Column size="84"/>
- <Column size="53"/>
- <Column size="45"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <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/>
- <Cell col="1" text="처방코드"/>
- <Cell col="2" text="Size"/>
- <Cell col="3" text="산정"/>
- <Cell col="4" text="처방명"/>
- <Cell col="5" text="규격"/>
- <Cell col="6" text="모델"/>
- <Cell col="7" text="제조원"/>
- <Cell col="8" text="단위"/>
- <Cell col="9" text="거래처"/>
- <Cell col="10" text="사용구분"/>
- <Cell col="11" text="횟수"/>
- <Cell col="12"/>
- <Cell col="13"/>
- <Cell col="14"/>
- <Cell col="15"/>
- <Cell col="16"/>
- <Cell col="17"/>
- <Cell col="18"/>
- <Cell col="19"/>
- <Cell col="20"/>
- <Cell col="21"/>
- <Cell col="22"/>
- <Cell col="23"/>
- <Cell col="24"/>
- <Cell col="25"/>
- <Cell col="26"/>
- <Cell col="27"/>
- </Band>
- <Band id="body">
- <Cell text="bind:fcheck" edittype="checkbox" displaytype="checkbox"/>
- <Cell col="1" text="bind:goodcd"/>
- <Cell col="2" text="bind:allsizespecid"/>
- <Cell col="3" text="bind:calculyn"/>
- <Cell col="4" text="bind:goodengnm"/>
- <Cell col="5" text="bind:goodspec"/>
- <Cell col="6" text="bind:goodmodel"/>
- <Cell col="7" text="bind:prodcmpynm"/>
- <Cell col="8" text="bind:prcpunit"/>
- <Cell col="9" text="bind:custnm"/>
- <Cell col="10" enable="false" text="bind:useflag" edittype="combo" displaytype="combo"/>
- <Cell col="11" text="bind:drprcpetc8"/>
- <Cell col="12" text="bind:makernm"/>
- <Cell col="13" text="bind:instcd"/>
- <Cell col="14" text="bind:payflagcd"/>
- <Cell col="15" text="bind:prcpunit"/>
- <Cell col="16" text="bind:goodcls"/>
- <Cell col="17" text="bind:goodflag"/>
- <Cell col="18" text="bind:cureflag"/>
- <Cell col="19" text="bind:prcpclscd"/>
- <Cell col="20" text="bind:drugmthdspccd"/>
- <Cell col="21" text="bind:checkgoodcd"/>
- <Cell col="22" text="bind:goodqty"/>
- <Cell col="23" text="bind:acmlbaseqty"/>
- <Cell col="24" text="bind:reqmthd"/>
- <Cell col="25" text="bind:purcflag"/>
- <Cell col="26" text="bind:insuyn"/>
- <Cell col="27" text="bind:calcscorcd"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- </Layout>
- </Layouts>
- </Tabpage>
- <Tabpage id="case2">
- <Layouts>
- <Layout>
- <Grid position="absolute 0 0 673 480" id="grd_ergplist" binddataset="ds_main_erbginfo_erbglist" autoenter="select">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="40"/>
- <Column size="70"/>
- <Column size="70"/>
- <Column size="200"/>
- <Column size="60"/>
- <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" text="그룹구분"/>
- <Cell col="2" text="BAG코드"/>
- <Cell col="3" text="BAG명"/>
- <Cell col="4" text="수량"/>
- <Cell col="5"/>
- <Cell col="6"/>
- <Cell col="7"/>
- </Band>
- <Band id="body">
- <Cell displaytype="checkbox" edittype="checkbox" text="bind:chkyn"/>
- <Cell col="1" displaytype="combo" text="bind:grupcd" combodataset="ds_init_grupcdinfo_grupcdlist" combocodecol="cdid" combodatacol="cdnm" enable="false"/>
- <Cell col="2" style="align:left;" text="bind:erbgcd"/>
- <Cell col="3" style="align:left;" text="bind:erbgnm"/>
- <Cell col="4" displaytype="number" edittype="masknumber" text="bind:goodqty" mask="#,##0" editautoselect="true"/>
- <Cell col="5" text="bind:oproomcd"/>
- <Cell col="6" text="bind:cartgubn"/>
- <Cell col="7" text="bind:insukind"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- </Layout>
- </Layouts>
- </Tabpage>
- </Tabpages>
- </Tab>
- <Static id="caption1" position="absolute 5 79 26 101"/>
- <Button position="absolute 0 62 64 82" id="btn_grup" class="btn5" text="그룹저장" onclick="btn_grup_onclick"/>
- <Button position="absolute 586 62 690 82" id="button2" class="btn3" text="BAG상세조회" onclick="button2_onclick"/>
- <Button position="absolute 528 62 584 82" id="button1" class="btn3" text="추가" onclick="button1_onclick"/>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_send_reqdata" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="cdgrupid" type="STRING" size="256" sumtext="그룹아이디"/>
- <Column id="cdid" type="STRING" size="256" sumtext="아이디"/>
- <Column id="supcdid" type="STRING" size="256" sumtext="상위"/>
- <Column id="cdnm" type="STRING" size="256" sumtext="코드명"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- <Dataset id="ds_init_hardcodeinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="cdid" type="STRING" size="256" sumtext="단위코드"/>
- <Column id="cdnm" type="STRING" size="256" sumtext="단위명"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="cdgrupid" type="STRING" size="256" sumtext="그룹코드id"/>
- <Column id="srchflag" type="STRING" size="256" sumtext="조회조건"/>
- <Column id="srchgrup" type="STRING" size="256" sumtext="조회조건"/>
- <Column id="srcherbg" type="STRING" size="256" sumtext="조회조건"/>
- <Column id="erbgcd" type="STRING" size="256" sumtext="bag명"/>
- <Column id="oproomcd" type="STRING" size="256" sumtext=""/>
- <Column id="cartgubn" type="STRING" size="256" sumtext=""/>
- <Column id="insukind" type="STRING" size="256" sumtext=""/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- <Dataset id="ds_init_grupcdinfo_grupcdlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="cdid" type="STRING" size="256" sumtext="코드"/>
- <Column id="cdnm" type="STRING" size="256" sumtext="코드명"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_main_erbginfo_erbglist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false" oncolumnchanged="ds_main_erbginfo_erbglist_oncolumnchanged">
- <ColumnInfo>
- <Column id="chkyn" type="STRING" size="256" sumtext="선택YN"/>
- <Column id="erbgcd" type="STRING" size="256" sumtext="bag코드"/>
- <Column id="erbgnm" type="STRING" size="256" sumtext="bag명"/>
- <Column id="goodqty" type="STRING" size="256" sumtext="수량"/>
- <Column id="grupcd" type="STRING" size="256" sumtext="그룹코드"/>
- <Column id="oproomcd" type="STRING" size="256" sumtext=""/>
- <Column id="cartgubn" type="STRING" size="256" sumtext=""/>
- <Column id="insukind" type="STRING" size="256" sumtext=""/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_send_reqdata1" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="grupcd" type="STRING" size="256" sumtext="그룹코드id"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- <Dataset id="ds_temp_result" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="chkyn" type="STRING" size="256" sumtext="코드"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_send_reqdata_erbginfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="status" type="STRING" size="256" sumtext="식별자"/>
- <Column id="erbgcd" type="STRING" size="256" sumtext="응급CCDBAG 코드"/>
- <Column id="grupcd" type="STRING" size="256" sumtext="그룹코드"/>
- <Column id="erbgqty" type="INT" size="256" sumtext="수량"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_send_savedata_erbglist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="status" type="STRING" size="256" sumtext=""/>
- <Column id="chkyn" type="STRING" size="256" sumtext="선택유무"/>
- <Column id="erbgcd" type="STRING" size="256" sumtext=" 응급CCDBAG코드"/>
- <Column id="oproomcd" type="STRING" size="256" sumtext=" 수술방코드"/>
- <Column id="cartgubn" type="STRING" size="256" sumtext=" Cart 구분"/>
- <Column id="insukind" type="STRING" size="256" sumtext="보험여부"/>
- <Column id="payflagcd" type="STRING" size="256" sumtext="급비여부"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_main_MmbhppdsLists_mmbhppdslist" firefirstcount="0" firenextcount="0" useclientlayout="true" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="fcheck" type="STRING" size="256"/>
- <Column id="goodengnm" type="STRING" size="256" sumtext=" 01 물품명"/>
- <Column id="makernm" type="STRING" size="256" sumtext=" 02 제조원"/>
- <Column id="goodqty" type="BIGDECIMAL" size="256" sumtext=" 03 수량"/>
- <Column id="instcd" type="STRING" size="256" sumtext=" 04 기관코드"/>
- <Column id="goodcd" type="STRING" size="256" sumtext=" 05 물품코드"/>
- <Column id="allsizespecid" type="STRING" size="256" sumtext=" 06 Size 코드"/>
- <Column id="payflagcd" type="STRING" size="256" sumtext=" 07 급여구분"/>
- <Column id="goodspec" type="STRING" size="256" sumtext=" 08 Size내역"/>
- <Column id="goodmodel" type="STRING" size="256" sumtext=" 09 물품모델"/>
- <Column id="prcpunit" type="STRING" size="256" sumtext=" 10 처방단위"/>
- <Column id="goodcls" type="STRING" size="256" sumtext=" 11 물품(처치)구분"/>
- <Column id="custnm" type="STRING" size="256" sumtext=" 12 거래처"/>
- <Column id="useflag" type="STRING" size="256" sumtext=" 13 사용구분"/>
- <Column id="goodflag" type="STRING" size="256" sumtext=" 14 물품구분"/>
- <Column id="cureflag" type="STRING" size="256" sumtext=" 15 처치구분"/>
- <Column id="prcpclscd" type="STRING" size="256" sumtext=" 16 처방분류"/>
- <Column id="fcheck" type="STRING" size="256" sumtext=" 17 Check Flag"/>
- <Column id="drugmthdspccd" type="STRING" size="256" sumtext=" 18 투여방법 및 검체코드"/>
- <Column id="checkgoodcd" type="STRING" size="256" sumtext=" 19 CCR 물품코드"/>
- <Column id="stocqty" type="STRING" size="256" sumtext=" 20 현재 수술방 재고량"/>
- <Column id="acmlbaseqty" type="BIGDECIMAL" size="256" sumtext=" 21 기준 수량"/>
- <Column id="prcpclscd" type="STRING" size="256" sumtext=" 22 처방분류"/>
- <Column id="reqmthd" type="STRING" size="256" sumtext=" 23 청구방법"/>
- <Column id="purcflag" type="STRING" size="256" sumtext=" 24 구매구분"/>
- <Column id="calculyn" type="STRING" size="256" sumtext=" 25 산정여부"/>
- <Column id="insuyn" type="STRING" size="256" sumtext=" 26 보험여부"/>
- <Column id="calcscorcd" type="STRING" size="256" sumtext=" 27 수가코드"/>
- <!-- 20110111_KNUH_Start 일회용량,일회수량 추가. -->
- <Column id="drprcpetc7" type="STRING" size="256" sumtext=" 28 일회용량"/>
- <Column id="grupcd" type="STRING" size="256" sumtext="기왕증유무"/>
- <Column id="anamneflag" type="STRING" size="256" sumtext="기왕증유무"/>
- <Column id="subcretno" type="STRING" size="256" sumtext="부유형"/>
- <Column id="erbgcd" type="STRING" size="256" sumtext="부유형"/>
- <!-- 20110111_KNUH_End 일회용량,일회수량 추가. -->
- <Column id="drprcpetc8" type="STRING" size="256"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_send_savedata" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="oproomcd" type="STRING" size="256"/>
- <Column id="cartgubn" type="STRING" size="256"/>
- <Column id="insukind" 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="cartgubn" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- <Dataset id="ds_init_Wk1806_cond" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="payflagcd" type="STRING" size="256"/>
- <Column id="insukind" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- </Objects>
- <Bind>
- <BindItem id="item0" compid="group2.radio1" propid="value" datasetid="ds_send" columnid="srchflag"/>
- <BindItem id="item1" compid="group2.cmb_grup" propid="value" datasetid="ds_send" columnid="srchgrup"/>
- <BindItem id="item2" compid="group2.radio2" propid="value" datasetid="ds_send" columnid="srcherbg"/>
- <BindItem id="item3" compid="group2.ipt_erbg" propid="value" datasetid="ds_send" columnid="erbgcd"/>
- </Bind>
- <Script type="xscript4.0"><![CDATA[/***************************************************************************************
- * System Name : 경대 의료정보시스템
- * Job Name : emr_opanstxp -> SPMNP01806
- * Creator : yjh
- * Make Date : 2016-06-23
- * Description :
- *---------------------------------------------------------------------------------------
- * Modify Date Modifier Modify Description
- *---------------------------------------------------------------------------------------
- * 2016-06-23 yjh TF->XP
- *
- *---------------------------------------------------------------------------------------
- ****************************************************************************************/
- //=======================================================================================
- // Lib Include
- //---------------------------------------------------------------------------------------
- include "com_commonxp::comm_main.xjs";
- include "emr_opanstxp::SPMNP01801.xjs";
- //=======================================================================================
- // Global Form Variable
- //---------------------------------------------------------------------------------------
- //=======================================================================================
- // Function
- //---------------------------------------------------------------------------------------
- //=======================================================================================
- // Event
- //---------------------------------------------------------------------------------------
- /****************************************************************************************
- * Components : Form
- * Components ID : SPMNP01806
- * Event : oninit
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 화면 처음 초기화시
- ****************************************************************************************/
- function SPMNP01806_oninit(obj:Form, e:InitEventInfo)
- {
- frmf_initForm(obj); //폼 초기화
- }
- /****************************************************************************************
- * Components : Form
- * Components ID : SPMNP01806
- * Event : onload
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 화면 로딩 완료시
- ****************************************************************************************/
- function SPMNP01806_onload(obj:Form, e:LoadEventInfo)
- {
- ds_send.setColumn(0, "cdgrupid", "T63");
-
- sCartgubn = opener.frmf_getParameter("SPMNP01806_cartgubn");
- sOproomcd = opener.frmf_getParameter("SPMNP01806_oproomcd");
- //opener.javascript.setParameter("SPMNP01806_oproomcd","");
- sCartgubn = opener.frmf_getParameter("SPMNP01806_cartgubn");
- //opener.javascript.setParameter("SPMNP01806_cartgubn", "");
- sInsuKind = opener.frmf_getParameter("SPMNP01806_insukindcd");
- //opener.javascript.setParameter("SPMNP01806_insukindcd", "");
-
- ds_send_savedata.setColumn(0, "oproomcd", sOproomcd);
- ds_send_savedata.setColumn(0, "cartgubn", sCartgubn);
- ds_send_savedata.setColumn(0, "insukind", sInsuKind);
-
- ds_send.setColumn(0, "oproomcd", sOproomcd);
- ds_send.setColumn(0, "cartgubn", sCartgubn);
- ds_send.setColumn(0, "insukind", sInsuKind);
-
- ds_hidden.setColumn(0, "cartgubn", sCartgubn);
- ds_init_Wk1806_cond.setColumn(0, "insukind", sInsuKind);
- //model.removenode("/root/send");
- ds_send_reqdata.setColumn(0, "cdgrupid", "106");//병원별 Display 여부
- ds_send_reqdata.setColumn(0, "supcdid", "");//서브구분
- ds_send_reqdata.setColumn(0, "cdid", "");//서브구분
-
- grdf_setRowTypeIcon(switch1.case1.grd_erbglist, 0);
-
- var oParam = {};
- oParam.id = "TRMNP04903";
- oParam.service = "opanstapp.OpAnstRef";
- oParam.method = "reqGetOpCommonCd";
- oParam.inds = "reqdata=ds_send_reqdata";
- oParam.outds = "ds_init_hardcodeinfo=hardcodeinfo";
- oParam.async = false;
- //oParam.callback = "cf_TRMNP04903";
- tranf_submit(oParam);
-
- // model.makeValue("/root/send/reqdata/cdgrupid", "OP");
- // submit("TRMND03901");
-
- // model.makeNode("/root/init/basecodeinfo");
- // model.copynode("/root/init/basecodeinfo", "/root/main/baseinfo");
-
- ds_init_Wk1806_cond.setColumn(0, "payflagcd", utlf_transNullToEmpty(ds_init_hardcodeinfo.getColumn(0, "cdid")).substr(6, 1));
-
- var oParam = {};
- oParam.id = "TRMNP01807";
- oParam.service = "opanstapp.OpAnstCCrtGoodMngt";
- oParam.method = "reqGetGrupcdList";
- oParam.inds = "req=ds_send";
- oParam.outds = "ds_init_grupcdinfo_grupcdlist=grupcdlist";
- oParam.async = false;
- //oParam.callback = "cf_TRMNP01807";
- tranf_submit(oParam);
-
- group2.radio1.value = "E";
- group2.radio2.value = "N";
- group2_radio1_onitemchanged();
- }
- /****************************************************************************************
- * Components : Radio
- * Components ID : radio1
- * Event : onitemchanged
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 라디오 값 변경시
- ****************************************************************************************/
- function group2_radio1_onitemchanged(obj, e)
- {
- if( group2.radio1.value == "G" ){
- switch1.tabindex = 1;
- btn_grup.enable = false;
- // grd_ergplist.fixedcellcheckbox(0, grd_ergplist.colRef("chkyn")) = true;
- group2.radio2.visible = false;
- group2.ipt_erbg.visible = false;
- group2.cmb_grup.visible = true;
- } else if( group2.radio1.value == "E" ){
- switch1.tabindex = 0;
- btn_grup.enable = true;
- group2.radio2.visible = true;
- group2.ipt_erbg.visible = true;
- group2.cmb_grup.visible = false;
- }
- group2.btn_search.click();
- }
- /****************************************************************************************
- * Components : Button
- * Components ID : btn_search
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 조회버튼 클릭시
- ****************************************************************************************/
- function group2_btn_search_onclick(obj:Button, e:ClickEventInfo)
- {
- // 응급CCDBAG 코드, BAG명을 가져온다.
- // 조회조건에 따라 Grid, node, sql이 변경된다.
-
- var oParam = {};
- oParam.id = "TRMNP01806";
- oParam.service = "opanstapp.OpAnstCCrtGoodMngt";
- oParam.method = "reqGetErbgList";
- oParam.inds = "req=ds_send";
- oParam.outds = "ds_main_erbginfo_erbglist=erbglist";
- oParam.async = false;
- //oParam.callback = "cf_TRMNP01806";
- tranf_submit(oParam);
-
- ds_main_erbginfo_erbglist.enableevent = false;
- ds_main_erbginfo_erbglist.updatecontrol = false;
-
- for( var i=0 ; i<ds_main_erbginfo_erbglist.rowcount ; i++ ){
- if( ds_main_erbginfo_erbglist.getColumn(i, "chkyn") == "Y" ){
- ds_main_erbginfo_erbglist.setColumn(i, "chkyn", "1");
- }else{
- ds_main_erbginfo_erbglist.setColumn(i, "chkyn", "0");
- }
- }
-
- ds_main_erbginfo_erbglist.updatecontrol = true;
- ds_main_erbginfo_erbglist.enableevent = true;
-
- ds_main_erbginfo_erbglist.rowposition = -1;
- }
- /****************************************************************************************
- * Components : Dataset
- * Components ID : ds_main_erbginfo_erbglist
- * Event : oncolumnchanged
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 데이터셋 값 변경시
- ****************************************************************************************/
- function ds_main_erbginfo_erbglist_oncolumnchanged(obj:Dataset, e:DSColChangeEventInfo)
- {
- if( !utlf_isNull(ds_main_erbginfo_erbglist.getColumn(e.row, "grupcd")) ){
- ds_main_erbginfo_erbglist.setColumn(e.row, "goodqty", "1");
- }
- }
- /****************************************************************************************
- * Components : Dataset
- * Components ID : ds_main_erbginfo_erbglist
- * Event : oncolumnchanged
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 데이터셋 값 변경시
- ****************************************************************************************/
- function switch1_case1_grd_erbglist_oncelldblclick(obj:Grid, e:GridClickEventInfo)
- {
- var erbgcd = ds_main_erbginfo_erbglist.getColumn(e.row, "erbgcd");
-
- frmf_setParameter("SPMNP01807_erbgcd", erbgcd);
-
- frmf_open("SPMNP01807", "SPMNP01807", null, null, 1, 200, 300, null, null, null, null, null, "M"); //yjh
- }
- /****************************************************************************************
- * Components : Button
- * Components ID : button2
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : BAG상세조회 버튼 클릭시
- ****************************************************************************************/
- function button2_onclick(obj:Button, e:ClickEventInfo)
- {
- frmf_open("SPMNP01807", "SPMNP01807", null, null, 1, 200, 300, null, null, null, null, null, "M");
- }
- /****************************************************************************************
- * 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)
- {
- if( group2.radio1.value == "E" ){
- ds_send_savedata_erbglist.copyData(grdf_getGridUpdateData(switch1.case1.grd_erbglist));
- grdf_setStatusColumn(ds_send_savedata_erbglist, "status");
- } else if( group2.radio1.value == "G" ){
- ds_send_savedata_erbglist.copyData(grdf_getGridUpdateData(switch1.case2.grd_ergplist));
- grdf_setStatusColumn(ds_send_savedata_erbglist, "status");
- }
-
- for( var i=0 ; i<ds_send_savedata_erbglist.rowcount ; i++ ){
- if( ds_send_savedata_erbglist.getColumn(i, "chkyn") == "1" ){
- ds_send_savedata_erbglist.setColumn(i, "chkyn", "Y");
- }else{
- ds_send_savedata_erbglist.setColumn(i, "chkyn", "N");
- }
- }
-
- var oParam = {};
- oParam.id = "TRMNP01810";
- oParam.service = "opanstapp.OpAnstCCrtGoodMngt";
- oParam.method = "reqGetMmbhppdsErbg";
- oParam.inds = "req=ds_send_savedata_erbglist";
- oParam.outds = "ds_main_MmbhppdsLists_mmbhppdslist=mmbhppdslist";
- oParam.async = false;
- //oParam.callback = "cf_TRMNP01810";
- tranf_submit(oParam);
-
- for( var i=0 ; i<ds_main_MmbhppdsLists_mmbhppdslist.rowcount ; i++ ){
- ds_main_MmbhppdsLists_mmbhppdslist.setColumn(i, "fcheck", "1");
- ds_main_MmbhppdsLists_mmbhppdslist.setColumn(i, "drprcpetc8", ds_main_MmbhppdsLists_mmbhppdslist.getColumn(i, "goodqty"));
- }
- // }
- // }
- fCopyGood();
- }
- /****************************************************************************************
- * Components : Button
- * Components ID : btn_grup
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 그룹저장버튼 클릭시
- ****************************************************************************************/
- function btn_grup_onclick(obj:Button, e:ClickEventInfo)
- {
- var gruplist = "";
-
- ds_main_erbginfo_erbglist.enableevent = false;
- ds_main_erbginfo_erbglist.updatecontrol = false;
-
- for( var i=0 ; i<switch1.case1.grd_erbglist.rowcount ; i++ ){
- var grup = ds_main_erbginfo_erbglist.getColumn(i, "grupcd");
- if( utlf_isNull(grup) ){
- ds_main_erbginfo_erbglist.setRowType(i, 1);
- } else {
- ds_main_erbginfo_erbglist.setRowType(i, 2);
- }
-
- if( ds_main_erbginfo_erbglist.getRowType(i) == 2 ){
- ds_send_reqdata1.setColumn(0, "grupcd", grup);
-
- //기존 등록된 그룹코드가 있으면 해당 그룹코드를 삭제처리한다.
- var qty = ds_main_erbginfo_erbglist.getColumn(i, "goodqty");
-
- if( utlf_isNull(qty) ){
- ds_main_erbginfo_erbglist.updatecontrol = true;
- ds_main_erbginfo_erbglist.enableevent = true;
-
- alert("수량이 없습니다. 수량을 입력하세요.");
- return;
- }
-
- //기존 등록된 그룹코드인지 조회한다. (등록:Y)
- var oParam = {};
- oParam.id = "TRMNP01808";
- oParam.service = "opanstapp.OpAnstCCrtGoodMngt";
- oParam.method = "reqGetGrupcdChkInfo";
- oParam.inds = "req=ds_send_reqdata1";
- oParam.outds = "ds_temp_result=result";
- oParam.async = false;
- //oParam.callback = "cf_TRMNP01808";
- tranf_submit(oParam);
-
- var result = ds_temp_result.getColumn(0, "chkyn");
-
- if ( result == "Y") {
- var btn = sysf_messageBox("이미 등록된 그룹코드입니다. 진행시 기존 등록된 그룹코드는 삭제됩니다. 진행하시겠습니까?", "Q");
- if (btn == 6 ) {
- var oParam = {};
- oParam.id = "TXMNP01812";
- oParam.service = "opanstapp.OpAnstCCrtGoodMngt";
- oParam.method = "reqExeGrupcdInfo";
- oParam.inds = "delgrup=ds_send_reqdata1";
- oParam.outds = "";
- oParam.async = false;
- //oParam.callback = "cf_TXMNP01812";
- tranf_submit(oParam);
- } else {
- ds_main_erbginfo_erbglist.updatecontrol = true;
- ds_main_erbginfo_erbglist.enableevent = true;
-
- return;
- }
- // alert(grup + " 은 이미 등록된 그룹코드입니다. 계속 진행시 기존 등록된 그룹코드를 삭제합니다.");
- }
- }
- }
-
- ds_main_erbginfo_erbglist.updatecontrol = true;
- ds_main_erbginfo_erbglist.enableevent = true;
-
- ds_send_reqdata_erbginfo.assign(grdf_getGridUpdateData(switch1.case1.grd_erbglist));
- grdf_setStatusColumn(ds_send_reqdata_erbginfo, "status");
-
- ds_send_reqdata_erbginfo.updateColID("goodqty", "erbgqty");
-
- // 그룹코드를 저장한다.
- var oParam = {};
- oParam.id = "TXMNP01812";
- oParam.service = "opanstapp.OpAnstCCrtGoodMngt";
- oParam.method = "reqExeGrupcdInfo";
- oParam.inds = "delgrup=ds_send_reqdata_erbginfo";
- oParam.outds = "";
- oParam.async = false;
- //oParam.callback = "cf_TXMNP01812";
- tranf_submit(oParam);
-
- group2.btn_search.click();
- }
- function switch1_case1_grd_erbglist_oncellclick(obj:Grid, e:GridClickEventInfo)
- {
- if( e.col == 5 ){
- obj.showEditor(true);
- }
- }
- function switch1_case1_grd_erbglist_onenterdown(obj:Grid, e:GridEditEventInfo)
- {
- if( e.col == 4 ){
- obj.showEditor(false);
- }
- }
- ]]></Script>
- </Form>
- </FDL>
|