123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SPMNG02800" position="absolute 0 0 790 555" titletext="린넨물품(물류)조회" oninit="SPMNG02800_oninit" onload="SPMNG02800_onload">
- <Layouts>
- <Layout>
- <Div position="absolute 0 0 782 520" id="group3" scrollbars="autoboth">
- <Layouts>
- <Layout>
- <Div position="absolute 0 0 780 30" id="group2" class="div_SA">
- <Layouts>
- <Layout>
- <Button position="absolute 719 4 775 26" id="btn_search" class="btn1" text="조회" onclick="group3_group2_btn_search_onclick"/>
- <Shape position="absolute 712 0 718 29" linetype="vertical" id="line13" class="line_4"/>
- <Static text="조회조건 :" position="absolute 10 6 96 23" id="caption2" class="search_name"/>
- <Radio position="absolute 90 5 225 25" id="radio1" columncount="2" codecolumn="codecolumn" datacolumn="datacolumn">
- <Dataset id="innerdataset">
- <ColumnInfo>
- <Column id="codecolumn"/>
- <Column id="datacolumn"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="codecolumn">C</Col>
- <Col id="datacolumn">물품코드</Col>
- </Row>
- <Row>
- <Col id="codecolumn">N</Col>
- <Col id="datacolumn">물품명</Col>
- </Row>
- </Rows>
- </Dataset>
- </Radio>
- <Edit position="absolute 235 5 390 24" id="ipt_good" class="input_search" autoselect="true"/>
- <Static text="구분 :" position="absolute 410 6 466 23" id="caption3" class="search_name"/>
- <Radio position="absolute 465 5 675 25" id="rdo_goodflag" columncount="4" codecolumn="codecolumn" datacolumn="datacolumn" onitemchanged="group3_group2_rdo_goodflag_onitemchanged">
- <Dataset id="innerdataset">
- <ColumnInfo>
- <Column id="codecolumn"/>
- <Column id="datacolumn"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="codecolumn">A</Col>
- <Col id="datacolumn">전체</Col>
- </Row>
- <Row>
- <Col id="codecolumn">L</Col>
- <Col id="datacolumn">L</Col>
- </Row>
- <Row>
- <Col id="codecolumn">K</Col>
- <Col id="datacolumn">K</Col>
- </Row>
- <Row>
- <Col id="codecolumn">E</Col>
- <Col id="datacolumn">E</Col>
- </Row>
- </Rows>
- </Dataset>
- </Radio>
- </Layout>
- </Layouts>
- </Div>
- <Static text="린넨물품(물류)조회" position="absolute 0 44 148 60" id="caption1" class="tit_2"/>
- <Shape position="absolute 0 60 780 66" linetype="horizontal" id="line1" class="line_10"/>
- <Grid position="absolute 0 65 780 520" id="grd_rscdlist" binddataset="ds_main_rscdlist" oncelldblclick="group3_grd_rscdlist_oncelldblclick">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="20" band="left"/>
- <Column size="20"/>
- <Column size="100"/>
- <Column size="160"/>
- <Column size="160"/>
- <Column size="60"/>
- <Column size="80"/>
- <Column size="80"/>
- <Column size="70"/>
- <Column size="0"/>
- </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="모델명"/>
- <Cell col="8" text="불출단위"/>
- <Cell col="9"/>
- </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" style="align:left;" text="bind:goodcd"/>
- <Cell col="3" style="align:left top;padding:4 2 2 2;" text="bind:goodnm" wordwrap="word"/>
- <Cell col="4" style="align:left top;padding:4 2 2 2;" text="bind:goodengnm" wordwrap="word"/>
- <Cell col="5" style="align:left;" text="bind:useyn"/>
- <Cell col="6" style="align:left top;padding:4 2 2 2;" text="bind:goodspec" wordwrap="word"/>
- <Cell col="7" style="align:left;" text="bind:goodmodel"/>
- <Cell col="8" style="align:left top;padding:4 2 2 2;" text="bind:deliveunit" wordwrap="word"/>
- <Cell col="9" text="bind:instcd"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- </Layout>
- </Layouts>
- </Div>
- <Div position="absolute 0 521 780 548" id="group1" scrollbars="autoboth">
- <Layouts>
- <Layout>
- <Button position="absolute 661 2 717 24" id="btn_confirm" class="btn4" text="확인" onclick="group1_btn_confirm_onclick"/>
- <Button position="absolute 720 2 776 24" id="btn_cancel" class="btn4" text="취소" onclick="group1_btn_cancel_onclick"/>
- <Shape position="absolute 0 0 518 6" linetype="horizontal" id="line32" class="line_6"/>
- </Layout>
- </Layouts>
- </Div>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_main_rscdlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false" oncolumnchanged="ds_main_rscdlist_oncolumnchanged">
- <ColumnInfo>
- <Column id="chkyn" type="STRING"/>
- <Column id="goodcd" type="STRING"/>
- <Column id="goodnm" type="STRING"/>
- <Column id="goodengnm" type="STRING"/>
- <Column id="useyn" type="STRING"/>
- <Column id="goodspec" type="STRING"/>
- <Column id="goodmodel" type="STRING"/>
- <Column id="deliveunit" type="STRING"/>
- <Column id="instcd" 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="goodcd" type="STRING" size="256" sumtext="물품코드"/>
- <Column id="srchflag" type="STRING" size="256" sumtext="조회조건"/>
- <Column id="goodflag" type="STRING" size="256" sumtext="조회조건"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- </Objects>
- <Bind>
- <BindItem id="item0" compid="group3.group2.radio1" propid="value" datasetid="ds_send_reqdata" columnid="srchflag"/>
- <BindItem id="item1" compid="group3.group2.ipt_good" propid="value" datasetid="ds_send_reqdata" columnid="goodcd"/>
- <BindItem id="item2" compid="group3.group2.rdo_goodflag" propid="value" datasetid="ds_send_reqdata" columnid="goodflag"/>
- </Bind>
- <Script type="xscript4.0"><![CDATA[/***************************************************************************************
- * System Name : 경대 의료정보시스템
- * Job Name : emr_csrxp -> SPMNG02800
- * Creator : yjh
- * Make Date : 2017-08-16
- * Description :
- *---------------------------------------------------------------------------------------
- * Modify Date Modifier Modify Description
- *---------------------------------------------------------------------------------------
- * 2017-08-16 yjh TF->XP
- *
- *---------------------------------------------------------------------------------------
- ****************************************************************************************/
- //=======================================================================================
- // Lib Include
- //---------------------------------------------------------------------------------------
- include "com_commonxp::comm_main.xjs";
- include "mis_miscommonxp::MIS.xjs";
- //=======================================================================================
- // Global Form Variable
- //---------------------------------------------------------------------------------------
- //=======================================================================================
- // Function
- //---------------------------------------------------------------------------------------
- function fSettingGoodList(pnode) {
- var codynode = instance1.selectNodes(pnode + "/*");
-
- var addRow = grd_deptlist.rows - grd_deptlist.fixedRows;
-
- for (var j = 1; j <= codynode.length; j++)
- {
- if(addRow > grd_deptlist.rows - grd_deptlist.fixedRows)
- {
- misfGridIUD(grd_deptlist,"A");
- addRow = grd_deptlist.rows - grd_deptlist.fixedRows;
- }
- model.setValue(grd_deptlist.nodeset + "[" + addRow + "]/deptcd" , model.getValue(pnode +"/" + "grd_deptlist" + "[" + j + "]/deptcd"));
- model.setValue(grd_deptlist.nodeset + "[" + addRow + "]/deptnm" , model.getValue(pnode +"/" + "grd_deptlist" + "[" + j + "]/depthngnm"));
- model.setValue(grd_deptlist.nodeset + "[" + addRow + "]/supdeptcd" , cmb_dept.value);
- model.setValue(grd_deptlist.nodeset + "[" + addRow + "]/supdeptnm" , cmb_dept.label);
- model.setValue(grd_deptlist.nodeset + "[" + addRow + "]/userid" , getUserInfo("userid"));
- model.setValue(grd_deptlist.nodeset + "[" + addRow + "]/useyn" , "Y");
- addRow = addRow + 1;
- }
- model.recalculate();
- model.refresh();
- }
- //=======================================================================================
- // Event
- //---------------------------------------------------------------------------------------
- /****************************************************************************************
- * Components : Form
- * Components ID : SPMNG02800
- * Event : oninit
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 화면 처음 초기화시
- ****************************************************************************************/
- function SPMNG02800_oninit(obj:Form, e:InitEventInfo)
- {
- frmf_initForm(obj); //폼 초기화
- }
- /****************************************************************************************
- * Components : Form
- * Components ID : SPMNG02800
- * Event : onload
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 화면 로딩 완료시
- ****************************************************************************************/
- function SPMNG02800_onload(obj:Form, e:LoadEventInfo)
- {
- grdf_initGrid(group3.grd_rscdlist);
-
- group3.group2.rdo_goodflag.value = "L";
- group3.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 group3_group2_btn_search_onclick(obj:Button, e:ClickEventInfo)
- {
- if (!utlf_isNull(group3.group2.ipt_good.value)) {
- if (utlf_isNull(group3.group2.radio1.value)) {
- alert("조회조건을 선택하세요");
- return;
- }
- }
-
- var oParam = {};
- oParam.id = "TRMNG02802";
- oParam.service = "csrapp.CsrDryMngt";
- oParam.method = "reqGetRscdList";
- oParam.inds = "req=ds_send_reqdata";
- oParam.outds = "ds_main_rscdlist=rscdlist";
- oParam.async = false;
- //oParam.callback = "cf_TRMNG02802";
- tranf_submit(oParam);
- }
- /****************************************************************************************
- * Components : Radio
- * Components ID : rdo_goodflag
- * Event : onitemchanged
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 라디오 값 변경시
- ****************************************************************************************/
- function group3_group2_rdo_goodflag_onitemchanged(obj:Radio, e:ItemChangeEventInfo)
- {
- group3.group2.btn_search.click();
- }
- /****************************************************************************************
- * Components : Grid
- * Components ID : grd_rscdlist
- * Event : oncelldblclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 그리드 셀 더블클릭시
- ****************************************************************************************/
- function group3_grd_rscdlist_oncelldblclick(obj:Grid, e:GridClickEventInfo)
- {
- group1.btn_confirm.click();
- }
- /****************************************************************************************
- * Components : Button
- * Components ID : btn_confirm
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 확인버튼 클릭시
- ****************************************************************************************/
- function group1_btn_confirm_onclick(obj:Button, e:ClickEventInfo)
- {
- if(ds_main_rscdlist.rowcount == 0)
- {
- sysf_messageBox("적용할 내역이","I004");
- this.close();
- return;
- }
- //var iParam = model.getValue(grd_rscdlist.nodeset);
-
- var nodelist = ds_main_rscdlist.filter("chkyn=='Y'");
-
- var rCVS = dsf_getDsCSV(ds_main_rscdlist);
- if ( frmf_checkOpener() ) {
- opener.frmf_setParameter("SPMNG02800_", rCVS);
- } else {
- var rtn = sysf_messageBox("상위화면을 찾을 수", "E001");
- }
- this.close();
- }
- /****************************************************************************************
- * Components : Button
- * Components ID : btn_cancel
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 취소버튼 클릭시
- ****************************************************************************************/
- function group1_btn_cancel_onclick(obj:Button, e:ClickEventInfo)
- {
- misfPopUpListCancel();
- }
- function ds_main_rscdlist_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>
|