123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SMPIC90200" position="absolute 0 0 1172 250" titletext="물품조회(행위재료)" oninit="SMPIC90200_oninit" onload="SMPIC90200_onload">
- <Layouts>
- <Layout>
- <Static text="그룹수가 내 싱글수가 조회" position="absolute 0 8 192 24" id="caption1" class="tit_2"/>
- <Shape position="absolute 0 35 1170 41" linetype="horizontal" id="line1" class="line_10"/>
- <Grid position="absolute 0 40 1170 250" id="grd_gresult" binddataset="ds_hidden_rscdgood_rscdgoodlist" cellsizebandtype="allband" cellsizingtype="col">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="20" band="left"/>
- <Column size="36"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="93"/>
- <Column size="29"/>
- <Column size="188"/>
- <Column size="146"/>
- <Column size="96"/>
- <Column size="45"/>
- <Column size="106"/>
- <Column size="100"/>
- <Column size="68"/>
- <Column size="0"/>
- <Column size="131"/>
- <Column size="0"/>
- <Column size="111"/>
- </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" colspan="2" text="물품코드" taborder="undefined"/>
- <Cell col="6" text="물품명"/>
- <Cell col="7" text="규격"/>
- <Cell col="8" text="제품단가"/>
- <Cell col="9" text="수량"/>
- <Cell col="10" text="모델"/>
- <Cell col="11" text="EDICD"/>
- <Cell col="12" text="수불단위"/>
- <Cell col="13" text="주거래처명"/>
- <Cell col="14" text="주거래처명"/>
- <Cell col="15" text="보조거래처명"/>
- <Cell col="16" text="보조거래처명"/>
- </Band>
- <Band id="body">
- <Cell celltype="head" expr="expr:currow + 1"/>
- <Cell col="1" displaytype="checkbox" edittype="checkbox" text="bind:select" expr="expr:select == '1' || select == 'Y' ? '1' : '0'"/>
- <Cell col="2" displaytype="none" edittype="none" text="bind:instcd"/>
- <Cell col="3" displaytype="none" edittype="none" text="bind:goodflag"/>
- <Cell col="4" edittype="none" text="bind:goodcd"/>
- <Cell col="5" edittype="none" text="bind:allsizespecid"/>
- <Cell col="6" edittype="none" style="align:left;" text="bind:goodnm"/>
- <Cell col="7" edittype="none" style="align:left;" text="bind:goodspec"/>
- <Cell col="8" displaytype="number" edittype="none" text="bind:goodunitcost" mask="#,###"/>
- <Cell col="9" displaytype="number" text="bind:drugqty" mask="#,###.##"/>
- <Cell col="10" edittype="none" style="align:left;" text="bind:goodmodel"/>
- <Cell col="11" edittype="none" text="bind:edicd"/>
- <Cell col="12" edittype="none" text="bind:deliveunit"/>
- <Cell col="13" displaytype="none" edittype="none" text="bind:maincustlastsuplplce"/>
- <Cell col="14" edittype="none" style="align:left;" text="bind:maincustlastsuplplcenm"/>
- <Cell col="15" displaytype="none" edittype="none" style="align:left;" text="bind:suppcustcd"/>
- <Cell col="16" edittype="none" style="align:left;" text="bind:suppcustnm"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Combo position="absolute 1043 6 1090 25" id="cmb_goodflag" visible="false" innerdataset="@ds_init_init_goodflag" datacolumn="cdid" codecolumn="cdnm"/>
- <Edit position="absolute 1095 6 1140 25" id="ipt_instcd" visible="false" autoselect="true"/>
- <Grid position="absolute 1055 185 1135 237" id="grd_synomcode" visible="false" binddataset="ds_template_resdata_actdata">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="67"/>
- </Columns>
- <Rows>
- <Row size="24" band="head"/>
- <Row size="24"/>
- </Rows>
- <Band id="head">
- <Cell text="actcd"/>
- </Band>
- <Band id="body">
- <Cell text="bind:actcd"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Edit position="absolute 1145 6 1165 25" id="ipt_allsizespecid" visible="false" autoselect="true"/>
- <Shape id="roundrect1" type="roundrectangle" position="absolute 190 1 1170 31"/>
- <Button position="absolute 1115 6 1157 25" id="btn_goodinsert" class="btn2" enable="false" text="추가" onclick="btn_goodinsert_onclick"/>
- <Button position="absolute 1045 5 1101 27" id="btn_goodsearch" class="btn1" text="조회" onclick="btn_goodsearch_onclick"/>
- <Static text="그룹수가코드 :" position="absolute 202 7 310 24" id="caption2" class="search_name"/>
- <Edit position="absolute 595 7 1020 26" id="ipt_goodnm" autoselect="true" onkeyup="ipt_goodnm_onkeyup" enable="false"/>
- <Shape position="absolute 1030 8 1036 26" linetype="vertical" id="line2" class="line_4"/>
- <Static text="그룹수가명(한글) :" position="absolute 465 8 598 25" id="caption5" class="search_name"/>
- <Button id="btn_subsearch01" taborder="1" class="icon_search" position="absolute 427 8 443 24" onclick="btn_subsearch01_onclick" visible="false"/>
- <Edit position="absolute 310 7 425 26" id="ipt_goodcd" autoselect="true" onkeyup="ipt_goodcd_onkeyup"/>
- <Edit position="absolute 310 7 445 26" id="input1" autoselect="true" enable="false"/>
- <Edit id="input2" taborder="2" position="absolute 1060 160 1160 179" visible="false"/>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_init_init_goodflag" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="cdid" type="STRING"/>
- <Column id="cdnm" type="STRING"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_template_resdata_actdata" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="actcd" type="STRING"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_subsend_rscdgoodlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="instcd" type="STRING" size="256" sumtext="기관코드 "/>
- <Column id="goodflag" type="STRING" size="256" sumtext="물품구분 "/>
- <Column id="goodcd" type="STRING" size="256" sumtext="물품코드 "/>
- <Column id="goodnm" type="STRING" size="256" sumtext="물품명 "/>
- <Column id="refcond" type="STRING" size="256" sumtext="조회조건 "/>
- <Column id="purcdmnddd" type="STRING" size="256" sumtext="시행일자 "/>
- <Column id="actcd" type="STRING" size="256" sumtext="행위처방코드 "/>
- <Column id="goodnm2" type="STRING" size="256"/>
- <Column id="basedd" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- <Dataset id="ds_hidden_rscdgood_rscdgoodlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false" oncolumnchanged="ds_hidden_rscdgood_rscdgoodlist_oncolumnchanged">
- <ColumnInfo>
- <Column id="goodcd" type="STRING" size="256" sumtext="물품코드 "/>
- <Column id="goodflag" type="STRING" size="256" sumtext="물품구분 "/>
- <Column id="goodnm" type="STRING" size="256" sumtext="물품명 "/>
- <Column id="goodspec" type="STRING" size="256" sumtext="물품규격 "/>
- <Column id="goodmodel" type="STRING" size="256" sumtext="모델 "/>
- <Column id="deliveunit" type="STRING" size="256" sumtext="수불단위(R0039) "/>
- <Column id="edicd" type="STRING" size="256" sumtext="EDI코드 "/>
- <Column id="maincustlastsuplplce" type="STRING" size="256" sumtext="최종공급처 "/>
- <Column id="suppcustcd" type="STRING" size="256" sumtext="보조거래처코드 "/>
- <Column id="goodunitcost" type="STRING" size="256" sumtext="제품단가 "/>
- <Column id="maincustlastsuplplcenm" type="STRING" size="256" sumtext="주거래처명 "/>
- <Column id="suppcustnm" type="STRING" size="256" sumtext="보조거래처명 "/>
- <Column id="allsizespecid" type="STRING" size="256" sumtext="allsizeid "/>
- <Column id="drugqty" type="STRING" size="256" sumtext="수량 "/>
- </ColumnInfo>
- </Dataset>
- </Objects>
- <Bind>
- <BindItem id="item0" compid="ipt_goodcd" propid="value" datasetid="ds_subsend_rscdgoodlist" columnid="actcd"/>
- <BindItem id="item1" compid="ipt_goodnm" propid="value" datasetid="ds_subsend_rscdgoodlist" columnid="goodnm2"/>
- <BindItem id="item2" compid="input1" propid="value" datasetid="ds_subsend_rscdgoodlist" columnid="actcd"/>
- <BindItem id="item3" compid="input2" propid="value" datasetid="ds_subsend_rscdgoodlist" columnid="basedd"/>
- </Bind>
- <Script type="xscript4.0"><![CDATA[/***************************************************************************************
- * System Name : 경대 의료정보시스템
- * Job Name : pam_actmatrxp -> SMPIC90200
- * Creator : yjh
- * Make Date : 2017-11-09
- * Description :
- *---------------------------------------------------------------------------------------
- * Modify Date Modifier Modify Description
- *---------------------------------------------------------------------------------------
- * 2017-11-09 yjh TF->XP
- *
- *---------------------------------------------------------------------------------------
- ****************************************************************************************/
- //=======================================================================================
- // Lib Include
- //---------------------------------------------------------------------------------------
- include "com_commonxp::comm_main.xjs";
- include "pam_actmatrxp::SMPIC90000.xjs";
- //=======================================================================================
- // Global Form Variable
- //---------------------------------------------------------------------------------------
- //=======================================================================================
- // Function
- //---------------------------------------------------------------------------------------
- function fItemAllChoice( vFlag ) {
- if( fGridItemCheck()!=true ) return;
- for( cnt = grd_gresult.fixedRows; cnt < grd_gresult.rows ; cnt++ ) {
- grd_gresult.valueMatrix( cnt, grd_gresult.colRef("select")) = vFlag;
- if (grd_gresult.valueMatrix( cnt, grd_gresult.colRef("select")) == "Y"){
- grd_gresult.rowStatus(cnt) = "2";
- }else{
- grd_gresult.rowStatus(cnt) = "0";
- }
- }
- }
- function fActcdSearch(actcd, hngnm) {
-
- // 싱글수가를 개별로 조회할 수 없도록 처리 by 조중래 20170530
- // var goodcd = model.getValue(ipt_goodcd.attribute("ref"));
- // var goodnm = model.getValue(ipt_goodnm.attribute("ref"));
- //
- // if(goodcd == "" && goodnm == "") {
-
- if (!utlf_isNull(actcd)) {
-
- ds_subsend_rscdgoodlist.setColumn(0, "actcd", actcd);
- ds_subsend_rscdgoodlist.setColumn(0, "goodnm2", hngnm);
-
- fSmGridInit(grd_gresult);
-
- var oParam = {};
- oParam.id = "TRPIC90001";
- oParam.service = "actmatrapp.ActMatrMngt";
- oParam.method = "reqGetGoodListByCond";
- oParam.inds = "req=ds_subsend_rscdgoodlist";
- oParam.outds = "ds_hidden_rscdgood_rscdgoodlist=rscdgoodlist";
- oParam.async = false;
- //oParam.callback = "cf_TRPIC90001";
- tranf_submit(oParam);
-
- if( utlf_isNull(ds_hidden_rscdgood_rscdgoodlist.getColumnInfo("select")) ){
- ds_hidden_rscdgood_rscdgoodlist.addColumn("select", "string");
- }
-
- ds_hidden_rscdgood_rscdgoodlist.updatecontrol = false;
-
- dsf_setDefaultVal(ds_hidden_rscdgood_rscdgoodlist, "select:N");
-
- ds_hidden_rscdgood_rscdgoodlist.updatecontrol = true;
- }
- //model.setValue("/root/subsend/rscdgoodlist/actcd","");
- // }
- }
- //=======================================================================================
- // Event
- //---------------------------------------------------------------------------------------
- /****************************************************************************************
- * Components : Form
- * Components ID : SMPIC90200
- * Event : oninit
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 화면 처음 초기화시
- ****************************************************************************************/
- function SMPIC90200_oninit(obj:Form, e:InitEventInfo)
- {
- frmf_initForm(obj); //폼 초기화
- }
- /****************************************************************************************
- * Components : Form
- * Components ID : SMPIC90200
- * Event : onload
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 화면 로딩 완료시
- ****************************************************************************************/
- function SMPIC90200_onload(obj:Form, e:LoadEventInfo)
- {
- ds_subsend_rscdgoodlist.setColumn(0, "instcd" ,sysf_getUserInfo("dutplceinstcd"));
- }
- /****************************************************************************************
- * Components : Dataset
- * Components ID : ds_hidden_rscdgood_rscdgoodlist
- * Event : oncolumnchanged
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 데이터셋 값 변경시
- ****************************************************************************************/
- function ds_hidden_rscdgood_rscdgoodlist_oncolumnchanged(obj:Dataset, e:DSColChangeEventInfo)
- {
- switch( e.columnid ){
- case "select" :
- if( e.newvalue == "1" || e.newvalue == "Y" ){
- obj.setColumn(e.row, e.columnid, "Y");
- //btn_goodinsert.click();
- }else{
- obj.setColumn(e.row, e.columnid, "N");
- }
-
- break;
-
- default :
- break;
- }
- }
- /****************************************************************************************
- * Components : Button
- * Components ID : btn_goodinsert
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 추가버튼 클릭시
- ****************************************************************************************/
- function btn_goodinsert_onclick(obj:Button, e:ClickEventInfo)
- {
- var acode = ds_template_resdata_actdata.getColumn(ds_template_resdata_actdata.rowcount-1, "actcd");
- if(utlf_isNull(acode)){
- fsetting();
- }
- }
- /****************************************************************************************
- * Components : Button
- * Components ID : btn_goodsearch
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 조회버튼 클릭시
- ****************************************************************************************/
- function btn_goodsearch_onclick(obj:Button, e:ClickEventInfo)
- {
- var spath = ds_hidden_rscdgood_rscdgoodlist;
- var rpath = ds_subsend_rscdgoodlist;
- fSmGridInit(grd_gresult);
- //model.makeValue(spath+"goodcd", goodcd);
- //model.makeValue(spath+"goodnm", goodnm);
-
- var oParam = {};
- oParam.id = "TRPIC90001";
- oParam.service = "actmatrapp.ActMatrMngt";
- oParam.method = "reqGetGoodListByCond";
- oParam.inds = "req=ds_subsend_rscdgoodlist";
- oParam.outds = "ds_hidden_rscdgood_rscdgoodlist=rscdgoodlist";
- oParam.async = false;
- //oParam.callback = "cf_TRPIC90001";
- tranf_submit(oParam);
-
- if( utlf_isNull(ds_hidden_rscdgood_rscdgoodlist.getColumnInfo("select")) ){
- ds_hidden_rscdgood_rscdgoodlist.addColumn("select", "string");
- }
-
- ds_hidden_rscdgood_rscdgoodlist.updatecontrol = false;
-
- dsf_setDefaultVal(ds_hidden_rscdgood_rscdgoodlist, "select:N");
-
- ds_hidden_rscdgood_rscdgoodlist.updatecontrol = true;
- }
- /****************************************************************************************
- * Components : Button
- * Components ID : btn_subsearch01
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 돋보기버튼 클릭시
- ****************************************************************************************/
- function btn_subsearch01_onclick(obj:Button, e:ClickEventInfo)
- {
- fSmGridInit(grd_gresult);
- fSmOpenPopUpListByWndName("ds_subsend_rscdgoodlist", ipt_goodcd,"","goodcd,goodnm","SPRSD00210");
- }
- /****************************************************************************************
- * Components : Edit
- * Components ID : ipt_goodcd
- * Event : onkeyup
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 에디터 키 입력시
- ****************************************************************************************/
- function ipt_goodcd_onkeyup(obj:Edit, e:KeyEventInfo)
- {
- if( e.keycode == 13 ){
- obj.updateToDataset();
-
- btn_goodsearch.click();
- }
- }
- /****************************************************************************************
- * Components : Edit
- * Components ID : ipt_goodnm
- * Event : onkeyup
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 에디터 키 입력시
- ****************************************************************************************/
- function ipt_goodnm_onkeyup(obj:Edit, e:KeyEventInfo)
- {
- if( e.keycode == 13 ){
- obj.updateToDataset();
-
- btn_goodsearch.click();
- }
- }
- ]]></Script>
- </Form>
- </FDL>
|