123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SMADB03100" position="absolute 0 0 1195 665" titletext="특수조제실 마스터" oninit="SMADB03100_oninit" onload="SMADB03100_onload">
- <Layouts>
- <Layout>
- <Static id="caption19" text="특수조제실 마스터" class="tit_1" position="absolute 0 0 145 25"/>
- <Button id="btn_save" taborder="1" text="저장" class="btn4" position="absolute 1137 2 1193 24" onclick="btn_save_onclick" anchor="top right"/>
- <Div id="group2" taborder="2" style="align:center top;" class="div_SA" position="absolute 0 25 1193 65" anchor="left top right">
- <Layouts>
- <Layout>
- <Static id="caption3" text="약품종류 :" class="search_name" position="absolute 15 13 86 30" anchor="default"/>
- <Combo id="cmb_srchmthdflag" taborder="1" codecolumn="cdid" datacolumn="cdnm" class="combo_search" position="absolute 89 10 224 31" anchor="default" innerdataset="@ds_spcldrug" onitemchanged="group2_cmb_srchmthdflag_onitemchanged"/>
- <Static id="caption1" text="약품코드 :" class="search_name" position="absolute 290 12 361 30" anchor="default"/>
- <Edit id="ipt_srchmthdcd" taborder="2" class="input_search" position="absolute 364 10 554 31" anchor="default"/>
- <Shape id="line13" linetype="vertical" class="line_4" position="absolute 1093 9 1099 34" anchor="top right"/>
- <Button id="btn_seamthd" taborder="3" text="조회" class="btn1" position="absolute 1113 10 1173 32" anchor="top right" onclick="group2_btn_seamthd_onclick"/>
- </Layout>
- </Layouts>
- </Div>
- <Grid id="grd_mthdlist" taborder="3" binddataset="ds_grd_mthdlist" useinputpanel="false" autofittype="col" position="absolute 0 90 1193 663" anchor="all" cellsizingtype="both" autoenter="key" extendsizetype="row">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="25" band="left"/>
- <Column size="92"/>
- <Column size="88"/>
- <Column size="271"/>
- <Column size="0"/>
- <Column size="72"/>
- <Column size="57"/>
- <Column size="73"/>
- <Column size="48"/>
- <Column size="57"/>
- <Column size="213"/>
- <Column size="37"/>
- <Column size="75"/>
- <Column size="68"/>
- <Column size="60"/>
- <Column size="75"/>
- </Columns>
- <Rows>
- <Row size="24" band="head"/>
- <Row size="24"/>
- </Rows>
- <Band id="head">
- <Cell/>
- <Cell col="1" text="약품종류"/>
- <Cell col="2" text="약품코드"/>
- <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="비고1"/>
- <Cell col="11" text="차광"/>
- <Cell col="12" text="보관"/>
- <Cell col="13" text="총VOL제외"/>
- <Cell col="14" text="유효기간2"/>
- <Cell col="15" text="보관2"/>
- </Band>
- <Band id="body">
- <Cell celltype="head"/>
- <Cell col="1" displaytype="combo" edittype="combo" style="align:left middle;padding:0 0 0 5;" text="bind:spcldrug" combodataset="ds_spcldrug" combocodecol="cdid" combodatacol="cdnm"/>
- <Cell col="2" style="align:left middle;padding:0 0 0 5;" text="bind:drugcd"/>
- <Cell col="3" style="align:left middle;padding:0 0 0 5;" text="bind:ordnm"/>
- <Cell col="4" displaytype="text" edittype="text" style="align:left middle;padding:0 0 0 5;" text="bind:lblnm"/>
- <Cell col="5" displaytype="combo" edittype="combo" style="align:left middle;padding:0 0 0 5;" text="bind:lblgrup" combodataset="ds_lblgrup" combocodecol="cdid" combodatacol="cdnm"/>
- <Cell col="6" displaytype="checkbox" edittype="checkbox" text="bind:lblprntyn" expr="expr:(lblprntyn=="Y"||lblprntyn==1)?1:0"/>
- <Cell col="7" displaytype="number" edittype="text" editfilter="number,char" style="align:right middle;padding:0 5 0 0;" text="bind:reconvol" editautoselect="true" editlimitbymask="decimal"/>
- <Cell col="8" displaytype="text" edittype="text" text="bind:reconunit" editautoselect="true"/>
- <Cell col="9" displaytype="normal" edittype="text" editfilter="digit" style="align:right middle;padding:0 5 0 0;" text="bind:valitime" editlimit="5" editautoselect="true"/>
- <Cell col="10" displaytype="text" edittype="text" style="align:left middle;padding:0 0 0 5;" text="bind:lblcnts1" editautoselect="true"/>
- <Cell col="11" displaytype="checkbox" edittype="checkbox" text="bind:keepmthd2" expr="expr:(keepmthd2=="Y"||keepmthd2==1)?1:0"/>
- <Cell col="12" displaytype="combo" edittype="combo" style="align:left middle;padding:0 0 0 5;" text="bind:keepmthd" combodataset="ds_keepmthd" combocodecol="cdid" combodatacol="cdnm"/>
- <Cell col="13" displaytype="checkbox" edittype="checkbox" text="bind:totvolexptyn" expr="expr:(totvolexptyn=="Y"||totvolexptyn==1)?1:0"/>
- <Cell col="14" edittype="text" style="align:right;" text="bind:keeptime"/>
- <Cell col="15" displaytype="combo" edittype="combo" text="bind:lblcnts3" combodataset="ds_keepmthd" combocodecol="cdid" combodatacol="cdnm"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_grd_mthdlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="spcldrug" type="STRING"/>
- <Column id="drugcd" type="STRING"/>
- <Column id="ordnm" type="STRING"/>
- <Column id="lblnm" type="STRING"/>
- <Column id="lblgrup" type="STRING"/>
- <Column id="lblprntyn" type="STRING"/>
- <Column id="reconvol" type="STRING"/>
- <Column id="reconunit" type="STRING"/>
- <Column id="valitime" type="STRING"/>
- <Column id="lblcnts1" type="STRING"/>
- <Column id="keepmthd2" type="STRING"/>
- <Column id="keepmthd" type="STRING"/>
- <Column id="totvolexptyn" type="STRING"/>
- <Column id="lblcnts3" type="STRING" size="256"/>
- <Column id="keeptime" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- <Dataset id="ds_A0017" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_spcldrug" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="cdid" type="STRING" size="256"/>
- <Column id="cdnm" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="cdnm">조제TPN</Col>
- <Col id="cdid">T</Col>
- </Row>
- <Row>
- <Col id="cdnm">소아TPN</Col>
- <Col id="cdid">B</Col>
- </Row>
- <Row>
- <Col id="cdnm">완제품TPN</Col>
- <Col id="cdid">Q</Col>
- </Row>
- <Row>
- <Col id="cdid">D</Col>
- <Col id="cdnm">항암제(특조실)</Col>
- </Row>
- <Row>
- <Col id="cdnm">무균조제(특조실)</Col>
- <Col id="cdid">C</Col>
- </Row>
- <Row>
- <Col id="cdnm">면역억제제</Col>
- <Col id="cdid">1</Col>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_lblgrup" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="cdid" type="STRING" size="256"/>
- <Column id="cdnm" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="cdid">ID</Col>
- <Col id="cdnm">항암제</Col>
- </Row>
- <Row>
- <Col id="cdid">IT</Col>
- <Col id="cdnm">TPN</Col>
- </Row>
- <Row>
- <Col id="cdid">IB</Col>
- <Col id="cdnm">소아TPN</Col>
- </Row>
- <Row>
- <Col id="cdid">IC</Col>
- <Col id="cdnm">무균조제</Col>
- </Row>
- <Row>
- <Col id="cdid">IG</Col>
- <Col id="cdnm">IVGV Mix</Col>
- </Row>
- <Row>
- <Col id="cdnm">면역억제제</Col>
- <Col id="cdid">IN</Col>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_keepmthd" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="cdid" type="STRING" size="256"/>
- <Column id="cdnm" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="cdid"/>
- <Col id="cdnm"/>
- </Row>
- <Row>
- <Col id="cdid">1</Col>
- <Col id="cdnm">실온보관</Col>
- </Row>
- <Row>
- <Col id="cdid">3</Col>
- <Col id="cdnm">냉장보관</Col>
- </Row>
- <Row>
- <Col id="cdid">5</Col>
- <Col id="cdnm">냉장불가</Col>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="srchspcldrug" type="STRING" size="256"/>
- <Column id="srchmthdcd" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="srchspcldrug">D</Col>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_send_req" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- </Objects>
- <Bind>
- <BindItem id="item0" compid="group2.cmb_srchmthdflag" propid="value" datasetid="ds_send" columnid="srchspcldrug"/>
- <BindItem id="item1" compid="group2.ipt_srchmthdcd" propid="value" datasetid="ds_send" columnid="srchmthdcd"/>
- </Bind>
- <Script type="xscript4.0"><![CDATA[/***************************************************************************************
- * System Name :
- * Job Name :
- * Creator :
- * Make Date : 2015-11-02
- * Description :
- *---------------------------------------------------------------------------------------
- * Modify Date Modifier Modify Description
- *---------------------------------------------------------------------------------------
- * 2015-11-02 Live Converter TF->XP
- *
- *---------------------------------------------------------------------------------------
- ****************************************************************************************/
- include "com_commonxp::comm_main.xjs";
- var arErrorCode = new HashArray();
- /******************************************************************
- * Argument :
- * Description : 초기화
- ******************************************************************/
- function SMADB03100_oninit(obj:Form, e:InitEventInfo)
- {
- frmf_initForm(obj);
- }
- function SMADB03100_onload(obj:Form, e:LoadEventInfo)
- {
- //List 0번째 상태값 설정
- grdf_setRowTypeIcon(grd_mthdlist, 0);
-
- //권한관리
- btn_save.enable = frmf_checkAuth("X"); //저장
-
- appf_getCodeList( [{dsNm: "ds_A0017", cdGrpId: "A0017"}], true );
-
- group2_btn_seamthd_onclick();
-
- grdf_initGrid(grd_mthdlist);
- var instcd = sysf_getUserInfo("dutplceinstcd");
-
- if(instcd=="031") {
- grd_mthdlist.setFormatColProperty(14, "size", 0);
- grd_mthdlist.setFormatColProperty(15, "size", 0);
- }
- }
- /******************************************************************
- * Argument :
- * Description : 조회
- ******************************************************************/
- function group2_btn_seamthd_onclick(obj:Button, e:ClickEventInfo)
- {
- var oParam = {};
- oParam.id = "TRADB03101";
- oParam.service = "pharmacybaseapp.DrugCode";
- oParam.method = "reqGetSpclDrugList";
- oParam.inds = "req=ds_send";
- oParam.outds = "ds_grd_mthdlist=item";
- oParam.async = false;
- oParam.callback = "cf_TRADB03101";
- tranf_submit(oParam);
- }
- function cf_TRADB03101(sSvcId, nErrorCode, sErrorMsg) {
- arErrorCode.push(sSvcId, nErrorCode);
- }
- /******************************************************************
- * Argument :
- * Description : 저장
- ******************************************************************/
- function btn_save_onclick(obj:Button, e:ClickEventInfo)
- {
- if( sysf_messageBox("변경사항", "Q002") != 6 ){
- return;
- }
-
- var oDsUpdate = grdf_getGridUpdateData(grd_mthdlist);
-
- if( oDsUpdate.rowcount < 1 ){
- sysf_messageBox("변경된 데이터가 없습니다.","I");
- return;
- }
-
- grdf_setStatusColumn(oDsUpdate, "m"); // 각행의 status에 rowType 값에 따라 'i', 'u', 'd'로 업데이트 시켜준다
- ds_send_req.copyData(oDsUpdate, true);
-
- for( var i = 0; i < ds_send_req.rowcount; i++ ){
- var getLblprntyn = ds_send_req.getColumn(i, "lblprntyn");
- var getKeepmthd2 = ds_send_req.getColumn(i, "keepmthd2");
- var getTotvolexptyn = ds_send_req.getColumn(i, "totvolexptyn");
-
- if( getLblprntyn == "1" || getLblprntyn == "Y" ) ds_send_req.setColumn(i, "getLblprntyn", "Y"); else ds_send_req.setColumn(i, "getLblprntyn", "N");
- if( getKeepmthd2 == "1" || getKeepmthd2 == "Y" ) ds_send_req.setColumn(i, "getKeepmthd2", "Y"); else ds_send_req.setColumn(i, "getKeepmthd2", "N");
- if( getTotvolexptyn == "1" || getTotvolexptyn == "Y" ) ds_send_req.setColumn(i, "getTotvolexptyn", "Y"); else ds_send_req.setColumn(i, "getTotvolexptyn", "N");
- }
-
- dsf_setTypeFormat(ds_send_req, "reconvol:FLOAT^valitime:INT^keeptime:INT");
- var oParam = {};
- oParam.id = "TXADB03101";
- oParam.service = "pharmacybaseapp.DrugCode";
- oParam.method = "reqExeSpclDrug";
- oParam.inds = "req=ds_send_req";
- oParam.outds = "ds_grd_mthdlist=item";
- oParam.async = false;
- oParam.callback = "cf_TXADB03101";
- tranf_submit(oParam);
-
- //조회
- group2_btn_seamthd_onclick();
- }
- function cf_TXADB03101(sSvcId, nErrorCode, sErrorMsg) {
- arErrorCode.push(sSvcId, nErrorCode);
- }
- function group2_cmb_srchmthdflag_onitemchanged(obj:Combo, e:ItemChangeEventInfo)
- {
- group2_btn_seamthd_onclick();
- }
- ]]></Script>
- </Form>
- </FDL>
|