123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SPMNG00500" position="absolute 0 0 730 490" titletext="장비목록 조회" oninit="SPMNG00500_oninit" onload="SPMNG00500_onload">
- <Layouts>
- <Layout>
- <Div position="absolute 0 0 720 475" id="grp_biz" scrollbars="autoboth">
- <Layouts>
- <Layout>
- <Div position="absolute 0 0 720 35" align="align:center top;" id="grp_sea" class="div_SA">
- <Layouts>
- <Layout>
- <Button position="absolute 654 5 710 27" id="btn_search" class="btn1" text="조회" onclick="grp_biz_grp_sea_btn_search_onclick"/>
- <Shape position="absolute 636 5 642 27" linetype="vertical" id="line13" class="line_4"/>
- <Static text="기관코드 :" position="absolute 10 9 86 26" id="caption62" class="search_name"/>
- <Combo position="absolute 87 8 225 27" id="cmb_instcd" class="combo_essential" enable="false" innerdataset="@ds_init_instcd_Z0007" datacolumn="cdnm" codecolumn="cdid" onitemchanged="grp_biz_grp_sea_cmb_instcd_onitemchanged"/>
- </Layout>
- </Layouts>
- </Div>
- <Shape position="absolute 0 61 720 67" linetype="horizontal" id="line1" class="line_10"/>
- <Static text="장비코드내역" position="absolute 0 45 100 61" id="caption4" class="tit_2"/>
- <Grid position="absolute 0 66 720 475" id="grd_equipment" binddataset="ds_main_fixasetcdlist" cellsizingtype="both">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="20" band="left"/>
- <Column size="21"/>
- <Column size="80"/>
- <Column size="173"/>
- <Column size="100"/>
- <Column size="100"/>
- <Column size="127"/>
- <Column size="80"/>
- </Columns>
- <Rows>
- <Row size="24" band="head"/>
- <Row size="24"/>
- </Rows>
- <Band id="head">
- <Cell/>
- <Cell col="1" displaytype="checkbox" edittype="checkbox"/>
- <Cell col="2" text="장비코드"/>
- <Cell col="3" text="장비명"/>
- <Cell col="4" text="규격"/>
- <Cell col="5" text="모델"/>
- <Cell col="6" text="제조원"/>
- <Cell col="7" text="관리번호"/>
- </Band>
- <Band id="body">
- <Cell celltype="head" expr="expr:currow + 1"/>
- <Cell col="1" displaytype="checkbox" edittype="checkbox" text="bind:chkyn" expr="expr:chkyn == 'Y' || chkyn == '1' ? '1' : '0'"/>
- <Cell col="2" text="bind:fixasetcd"/>
- <Cell col="3" style="align:left;" text="bind:goodflaghngnm"/>
- <Cell col="4" style="align:left;" text="bind:goodspec"/>
- <Cell col="5" style="align:left;" text="bind:goodmodel"/>
- <Cell col="6" text="bind:prodcmpynm"/>
- <Cell col="7" style="align:left;" text="bind:mngtno"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Button position="absolute 655 40 719 59" id="btn_comfirm" class="btn2" text="선택적용" onclick="grp_biz_btn_comfirm_onclick"/>
- </Layout>
- </Layouts>
- </Div>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_init_instcd_Z0007" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="cdnm" type="STRING"/>
- <Column id="cdid" type="STRING"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_send_reqdata" 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="cntrdeptcd" type="STRING" size="256" sumtext="귀속부서"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- <Dataset id="ds_main_fixasetcdlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false" oncolumnchanged="ds_main_fixasetcdlist_oncolumnchanged">
- <ColumnInfo>
- <Column id="chkyn" type="STRING" size="256" sumtext="chk여부"/>
- <Column id="fixasetcd" type="STRING" size="256" sumtext="고정자산코드"/>
- <Column id="goodflaghngnm" type="STRING" size="256" sumtext="자산한글명"/>
- <Column id="goodmodel" type="STRING" size="256" sumtext="물품모델"/>
- <Column id="goodspec" type="STRING" size="256" sumtext="물품모델"/>
- <Column id="prodcmpynm" type="STRING" size="256" sumtext="제조원"/>
- <Column id="mngtno" 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="instcd" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- </Objects>
- <Bind>
- <BindItem id="item0" compid="grp_biz.grp_sea.cmb_instcd" propid="value" datasetid="ds_send" columnid="instcd"/>
- </Bind>
- <Script type="xscript4.0"><![CDATA[/***************************************************************************************
- * System Name : 경대 의료정보시스템
- * Job Name : emr_csrxp -> SPMNG00500
- * Creator : yjh
- * Make Date : 2017-07-06
- * Description :
- *---------------------------------------------------------------------------------------
- * Modify Date Modifier Modify Description
- *---------------------------------------------------------------------------------------
- * 2017-07-06 yjh TF->XP
- *
- *---------------------------------------------------------------------------------------
- ****************************************************************************************/
- //=======================================================================================
- // Lib Include
- //---------------------------------------------------------------------------------------
- include "com_commonxp::comm_main.xjs";
- include "mis_miscommonxp::MIS.xjs";
- //=======================================================================================
- // Global Form Variable
- //---------------------------------------------------------------------------------------
- //=======================================================================================
- // Function
- //---------------------------------------------------------------------------------------
- // 화면 open시와 초기화 버튼 클릭시 화면 초기화 기능을 수행한다.
- function fInitialize() {
- misfGridInit(grp_biz.grd_equipment);
-
- // misfComboComCdListMulti("Z0007", "cmb_instcd"); //기관코드,set 제제약 구분
- var arrParam = [{dsNm: "ds_init_instcd_Z0007", cdGrpId: "Z0007"}]
- appf_getCodeList(arrParam);
-
- grp_biz.grp_sea.cmb_instcd.value = sysf_getUserInfo("dutplceinstcd");
-
- grp_biz.grp_sea.btn_search.click();
- }
- function fCheckAuth() {
- btn_search.disabled = !checkAuth("R") ;
- btn_save.disabled = !checkAuth("X") ;
- }
- //=======================================================================================
- // Event
- //---------------------------------------------------------------------------------------
- /****************************************************************************************
- * Components : Form
- * Components ID : SPMNG00500
- * Event : oninit
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 화면 처음 초기화시
- ****************************************************************************************/
- function SPMNG00500_oninit(obj:Form, e:InitEventInfo)
- {
- frmf_initForm(obj); //폼 초기화
- }
- /****************************************************************************************
- * Components : Form
- * Components ID : SPMNG00500
- * Event : onload
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 화면 로딩 완료시
- ****************************************************************************************/
- function SPMNG00500_onload(obj:Form, e:LoadEventInfo)
- {
- grdf_setAllCheck(grp_biz.grd_equipment);
-
- fInitialize();
- }
- /****************************************************************************************
- * Components : Button
- * Components ID : btn_search
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 조회버튼 클릭시
- ****************************************************************************************/
- function grp_biz_grp_sea_btn_search_onclick(obj:Button, e:ClickEventInfo)
- {
- ds_send_reqdata.setColumn(0, "instcd", sysf_getUserInfo("dutplceinstcd")); // 기관 설정
- ds_send_reqdata.setColumn(0, "goodflag", "E"); // 물품 설정
- ds_send_reqdata.setColumn(0, "cntrdeptcd", "308%"); // 귀속부서 설정
-
- var oParam = {};
- oParam.id = "TRMNG00502";
- oParam.service = "csrapp.CsrMngt";
- oParam.method = "reqGetFixAsetcdByCond";
- oParam.inds = "req=ds_send_reqdata";
- oParam.outds = "ds_main_fixasetcdlist=fixasetcdlist";
- oParam.async = false;
- //oParam.callback = "cf_TRMNG00502";
- tranf_submit(oParam);
-
- dsf_setDefaultVal(ds_main_fixasetcdlist, "chkyn:N");
- }
- /****************************************************************************************
- * Components : Combo
- * Components ID : cmb_instcd
- * Event : onitemchanged
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 콤보 값 변경시
- ****************************************************************************************/
- function grp_biz_grp_sea_cmb_instcd_onitemchanged(obj:Combo, e:ItemChangeEventInfo)
- {
- grp_biz.grp_sea.btn_search.click();
- }
- /****************************************************************************************
- * Components : Button
- * Components ID : btn_comfirm
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 선택적용버튼 클릭시
- ****************************************************************************************/
- function grp_biz_btn_comfirm_onclick(obj:Button, e:ClickEventInfo)
- {
- var chkyn;
- var header = "fixasetcd▦goodflaghngnm▦prodcmpynm▦mngtno▩";
- var data = "";
- for( var i=0 ; i<ds_main_fixasetcdlist.rowcount ; i++ ){
- chkyn = ds_main_fixasetcdlist.getColumn(i, "chkyn");
- if(chkyn == "Y") {
- //copyNodesetType("/root/main/duplnode/fixasetcdlist", "/root/main/fixasetcdlist[" + i + "]", "after");
- data += utlf_transNullToEmpty(ds_main_fixasetcdlist.getColumn(i, "fixasetcd")) + "▦"
- + utlf_transNullToEmpty(ds_main_fixasetcdlist.getColumn(i, "goodflaghngnm")) + "▦"
- + utlf_transNullToEmpty(ds_main_fixasetcdlist.getColumn(i, "prodcmpynm")) + "▦"
- + utlf_transNullToEmpty(ds_main_fixasetcdlist.getColumn(i, "mngtno")) + "▩"
-
- }
- }
-
- if ( frmf_checkOpener() ) {
- opener.frmf_setParameter("SPMNG00500_", header+data);
-
- } else {
- var rtn = sysf_messageBox("상위화면을 찾을 수", "E001");
- }
-
- this.close();
- }
- function ds_main_fixasetcdlist_oncolumnchanged(obj:Dataset, e:DSColChangeEventInfo)
- {
- switch( e.columnid ){
- case "chkyn" :
- if( e.newvalue == "Y" || e.newvalue == "1" ){
- obj.setColumn(e.row, e.columnid, "Y");
- }else{
- obj.setColumn(e.row, e.columnid, "N");
- }
- break;
-
- default :
- break;
- }
- }
- ]]></Script>
- </Form>
- </FDL>
|