123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SMMNP00580" position="absolute 0 0 900 720" titletext="수술실 카덱스 약품 기준자료" oninit="SMMNP00580_oninit" onload="SMMNP00580_onload">
- <Layouts>
- <Layout>
- <Div position="absolute 0 0 899 25" id="grp_tle">
- <Layouts>
- <Layout>
- <Static text="수술실 카덱스 약품 관리 기준자료 등록" position="absolute 8 0 276 25" id="cap_title" class="tit_1"/>
- </Layout>
- </Layouts>
- </Div>
- <Div position="absolute 5 25 900 715" id="group1">
- <Layouts>
- <Layout>
- <Shape id="roundrect5" type="roundrectangle" position="absolute 3 0 879 39"/>
- <Static text="약품명 :" position="absolute 21 11 111 28" id="caption4" class="search_name" anchor="default"/>
- <Edit position="absolute 115 10 545 29" id="ipt_srchnm" anchor="default" autoselect="true"/>
- <Grid position="absolute 5 70 880 335" id="grd_drugstndlist" binddataset="ds_main_stndlist_druglists_druglist" anchor="default" oncelldblclick="group1_grd_drugstndlist_oncelldblclick" selecttype="multirow" cellsizingtype="both">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="0"/>
- <Column size="90"/>
- <Column size="180"/>
- <Column size="100"/>
- <Column size="50"/>
- <Column size="55"/>
- <Column size="85"/>
- <Column size="265"/>
- <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="약품명"/>
- <Cell col="3" text="규격"/>
- <Cell col="4" text="단위"/>
- <Cell col="5" text="사용구분"/>
- <Cell col="6" text="제조원"/>
- <Cell col="7" text="수가명"/>
- <Cell col="8" text="allsizespecid"/>
- <Cell col="9" text="histno"/>
- <Cell col="10" text="histcd"/>
- </Band>
- <Band id="body">
- <Cell displaytype="checkbox" edittype="checkbox" text="bind:chkflag"/>
- <Cell col="1" style="align:left;" text="bind:goodcd"/>
- <Cell col="2" style="align:left;" text="bind:prcpnm" wordwrap="word"/>
- <Cell col="3" style="align:left;" text="bind:goodspec"/>
- <Cell col="4" style="align:left;" text="bind:prcpunit"/>
- <Cell col="5" style="align:left;" text="bind:useflag"/>
- <Cell col="6" style="align:left top;padding:6 2 0 2;" text="bind:prodcmpynm" wordwrap="word"/>
- <Cell col="7" style="align:left;" text="bind:calhngnm" wordwrap="word"/>
- <Cell col="8" text="bind:allsizespecid"/>
- <Cell col="9" text="bind:histno"/>
- <Cell col="10" text="bind:histcd"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Button position="absolute 740 345 782 364" id="button1" class="btn2" text="삭제" anchor="default" onclick="group1_button1_onclick"/>
- <Button position="absolute 815 340 871 362" id="button2" class="btn3" text="저장" anchor="default" onclick="group1_button2_onclick"/>
- <Grid position="absolute 5 370 880 685" id="grd_drugmnglist" binddataset="ds_main_mnglist_druglists_druglist" anchor="default" selecttype="multirow" cellsizingtype="both" autosizingtype="none" extendsizetype="row">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="24" band="left"/>
- <Column size="30"/>
- <Column size="90"/>
- <Column size="180"/>
- <Column size="100"/>
- <Column size="50"/>
- <Column size="55"/>
- <Column size="85"/>
- <Column size="265"/>
- <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"/>
- <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="allsizespecid"/>
- <Cell col="10" text="histno"/>
- <Cell col="11" text="histcd"/>
- </Band>
- <Band id="body">
- <Cell celltype="head"/>
- <Cell col="1" displaytype="checkbox" style="controlbackground:silver;" text="bind:chkflag" enable="false"/>
- <Cell col="2" style="align:left;" text="bind:goodcd"/>
- <Cell col="3" style="align:left;" text="bind:prcpnm" wordwrap="word"/>
- <Cell col="4" style="align:left;" text="bind:goodspec"/>
- <Cell col="5" style="align:left;" text="bind:prcpunit"/>
- <Cell col="6" style="align:left;" text="bind:useflag"/>
- <Cell col="7" style="align:left top;padding:6 2 0 2;" text="bind:prodcmpynm" wordwrap="word"/>
- <Cell col="8" style="align:left;" text="bind:calhngnm" wordwrap="word"/>
- <Cell col="9" text="bind:allsizespecid"/>
- <Cell col="10" text="bind:histno"/>
- <Cell col="11" text="bind:histcd"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- </Layout>
- </Layouts>
- </Div>
- <Button position="absolute 800 33 856 55" id="btn_srch" class="btn1" text="조회" onclick="btn_srch_onclick"/>
- <Shape position="absolute 786 32 792 57" linetype="vertical" id="line4"/>
- <Static text="약품 검색" position="absolute 10 74 92 90" id="caption2" class="tit_2"/>
- <Shape position="absolute 11 90 885 96" linetype="horizontal" id="line1" class="line_10"/>
- <Static text="등록 약품" position="absolute 10 374 92 390" id="caption1" class="tit_2"/>
- <Shape position="absolute 11 390 885 396" linetype="horizontal" id="line2" class="line_10"/>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_send_drugmnglist" 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="status"/>
- <Column id="chkflag" type="STRING" size="256" sumtext="체크상태"/>
- <Column id="goodcd" type="STRING" size="256" sumtext="물품코드"/>
- <Column id="prcpnm" type="STRING" size="256" sumtext="물품명"/>
- <Column id="goodspec" type="STRING" size="256" sumtext="규격"/>
- <Column id="prcpunit" type="STRING" size="256" sumtext="단위"/>
- <Column id="useflag" type="STRING" size="256" sumtext="사용구분"/>
- <Column id="prodcmpynm" type="STRING" size="256" sumtext="제조원"/>
- <Column id="calhngnm" type="STRING" size="256" sumtext="수가명"/>
- <Column id="allsizespecid" type="STRING" size="256" sumtext="ALLSIZE규격ID"/>
- <Column id="histno" type="STRING" size="256" sumtext="이력번호"/>
- <Column id="histcd" 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="prcpnm" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="prcpnm"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_main_stndlist_druglists_druglist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="N" type="STRING" size="256" sumtext=""/>
- <Column id="goodcd" type="STRING" size="256" sumtext="물품코드"/>
- <Column id="prcpnm" type="STRING" size="256" sumtext="물품명"/>
- <Column id="goodspec" type="STRING" size="256" sumtext="규격"/>
- <Column id="prcpunit" type="STRING" size="256" sumtext="단위"/>
- <Column id="useflag" type="STRING" size="256" sumtext="사용구분"/>
- <Column id="prodcmpynm" type="STRING" size="256" sumtext="제조원"/>
- <Column id="calhngnm" type="STRING" size="256" sumtext="수가명"/>
- <Column id="allsizespecid" type="STRING" size="256" sumtext="ALLSIZE규격ID"/>
- <Column id="histno" type="STRING" size="256" sumtext="이력번호"/>
- <Column id="histcd" type="STRING" size="256" sumtext="이력코드"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_main_mnglist_druglists_druglist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="N" type="STRING" size="256" sumtext=""/>
- <Column id="goodcd" type="STRING" size="256" sumtext="물품코드"/>
- <Column id="prcpnm" type="STRING" size="256" sumtext="물품명"/>
- <Column id="goodspec" type="STRING" size="256" sumtext="규격"/>
- <Column id="prcpunit" type="STRING" size="256" sumtext="단위"/>
- <Column id="useflag" type="STRING" size="256" sumtext="사용구분"/>
- <Column id="prodcmpynm" type="STRING" size="256" sumtext="제조원"/>
- <Column id="calhngnm" type="STRING" size="256" sumtext="수가명"/>
- <Column id="allsizespecid" type="STRING" size="256" sumtext="ALLSIZE규격ID"/>
- <Column id="histno" type="STRING" size="256" sumtext="이력번호"/>
- <Column id="histcd" type="STRING" size="256" sumtext="이력코드"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_main" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="srchdrugnm" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="srchdrugnm"/>
- </Row>
- </Rows>
- </Dataset>
- </Objects>
- <Bind>
- <BindItem id="item0" compid="group1.ipt_srchnm" propid="value" datasetid="ds_main" columnid="srchdrugnm"/>
- </Bind>
- <Script type="xscript4.0"><![CDATA[/***************************************************************************************
- * System Name : 경대 의료정보시스템
- * Job Name : emr_opanstxp -> SMMNP00580
- * Creator : yjh
- * Make Date : 2016-03-07
- * Description :
- *---------------------------------------------------------------------------------------
- * Modify Date Modifier Modify Description
- *---------------------------------------------------------------------------------------
- * 2016-03-07 yjh TF->XP
- *
- *---------------------------------------------------------------------------------------
- ****************************************************************************************/
- //=======================================================================================
- // Lib Include
- //---------------------------------------------------------------------------------------
- include "com_commonxp::comm_main.xjs";
- //=======================================================================================
- // Global Form Variable
- //---------------------------------------------------------------------------------------
- //=======================================================================================
- // Function
- //---------------------------------------------------------------------------------------
- /****************************************************************************************
- * Argument : N/A
- * Description :
- ****************************************************************************************/
- //=======================================================================================
- // Event
- //---------------------------------------------------------------------------------------
- /****************************************************************************************
- * Components : Form
- * Components ID : SMMNP00580
- * Event : oninit
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 화면 처음 초기화시
- ****************************************************************************************/
- function SMMNP00580_oninit(obj:Form, e:InitEventInfo)
- {
- frmf_initForm(obj); //폼 초기화
- }
- /****************************************************************************************
- * Components : Form
- * Components ID : SMMNP00580
- * Event : onload
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 화면 로딩 완료시
- ****************************************************************************************/
- function SMMNP00580_onload(obj:Form, e:LoadEventInfo)
- {
- grdf_setRowTypeIcon(group1.grd_drugmnglist, 0); //그리드 상태 아이콘 보여주기
-
- btn_srch.click();
- }
- /****************************************************************************************
- * Components : Button
- * Components ID : btn_srch
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 조회버튼 클릭시
- ****************************************************************************************/
- function btn_srch_onclick(obj:Button, e:ClickEventInfo)
- {
- var srchdrugnm = ds_main.getColumn(0, "srchdrugnm");
-
- ds_send.setColumn(0, "prcpnm", srchdrugnm);
-
- var oParam = {};
- oParam.id = "TRMNP00588";
- oParam.service = "opanstapp.OpAnstRec";
- oParam.method = "reqGetOpCdxDrugStandList";
- oParam.inds = "req=ds_send";
- oParam.outds = "ds_main_stndlist_druglists_druglist=druglist";
- oParam.async = false;
- //oParam.callback = "cf_TRMNP00588";
- tranf_submit(oParam);
-
- var oParam = {};
- oParam.id = "TRMNP00589";
- oParam.service = "opanstapp.OpAnstRec";
- oParam.method = "reqGetOpCdxDrugMngList";
- oParam.inds = "req=ds_send";
- oParam.outds = "ds_main_mnglist_druglists_druglist=druglist";
- oParam.async = false;
- oParam.callback = "cf_TRMNP00589";
- tranf_submit(oParam);
- }
- function cf_TRMNP00589(sSvcId, nErrorCode, sErrorMsg) {
- if(nErrorCode < 0) return;
-
- ds_main_mnglist_druglists_druglist.addColumn("chkflag", "string");
- }
- /****************************************************************************************
- * Components : Grid
- * Components ID : grd_drugstndlist
- * Event : oncelldblclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 그리드 셀 더블클릭시
- ****************************************************************************************/
- function group1_grd_drugstndlist_oncelldblclick(obj:Grid, e:GridClickEventInfo)
- {
- var currow = ds_main_stndlist_druglists_druglist.rowposition;
-
- var insGoodcd = ds_main_stndlist_druglists_druglist.getColumn(currow, "goodcd");
-
- for( var i=0 ; i<ds_main_mnglist_druglists_druglist.rowcount ; i++ ){
- var goodcd = ds_main_mnglist_druglists_druglist.getColumn(i, "goodcd");
-
- if (insGoodcd == goodcd ){
- sysf_messageBox("중복된 처방명을 등록 ","E001");
- return;
- }
- }
-
- ds_main_mnglist_druglists_druglist.enableevent = false;
- ds_main_mnglist_druglists_druglist.updatecontrol = false;
-
- var nRow = ds_main_mnglist_druglists_druglist.addRow();
- ds_main_mnglist_druglists_druglist.copyRow(nRow, ds_main_stndlist_druglists_druglist, currow);
-
- ds_main_mnglist_druglists_druglist.setColumn(nRow, "chkflag", "1");
-
- ds_main_mnglist_druglists_druglist.updatecontrol = true;
- ds_main_mnglist_druglists_druglist.enableevent = true;
- }
- /****************************************************************************************
- * Components : Button
- * Components ID : button1
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 삭제버튼 클릭시
- ****************************************************************************************/
- function group1_button1_onclick(obj:Button, e:ClickEventInfo)
- {
- ds_main_mnglist_druglists_druglist.deleteRow(ds_main_mnglist_druglists_druglist.rowposition);
- }
- /****************************************************************************************
- * Components : Button
- * Components ID : button2
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 저장버튼 클릭시
- ****************************************************************************************/
- function group1_button2_onclick(obj:Button, e:ClickEventInfo)
- {
- ds_main_mnglist_druglists_druglist.enableevent = false;
- ds_main_mnglist_druglists_druglist.updatecontrol = false;
-
- for( var i=0 ; i<ds_main_mnglist_druglists_druglist.rowcount ; i++ ){
- if( ds_main_mnglist_druglists_druglist.getColumn(i, "chkflag") == "1" ){
- ds_main_mnglist_druglists_druglist.setRowType(i, 2);
- }
- }
-
- ds_main_mnglist_druglists_druglist.updatecontrol = true;
- ds_main_mnglist_druglists_druglist.enableevent = true;
-
- grdf_setStatusColumn(ds_main_mnglist_druglists_druglist, "status");
- ds_send_drugmnglist.copyData(grdf_getGridUpdateData(group1.grd_drugmnglist, "all"));
-
- var oParam = {};
- oParam.id = "TXMNP00588";
- oParam.service = "opanstapp.OpAnstRec";
- oParam.method = "reqExeOpCdxDrugMngList";
- oParam.inds = "drugmnglist=ds_send_drugmnglist";
- //oParam.outds = "ds_=tmp";
- oParam.async = false;
- oParam.callback = "cf_TXMNP00588";
- tranf_submit(oParam);
- }
- function cf_TXMNP00588(sSvcId, nErrorCode, sErrorMsg) {
- if(nErrorCode < 0) return;
-
- btn_srch.click();
- }
- ]]></Script>
- </Form>
- </FDL>
|