123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SPMNW17300" position="absolute 0 0 330 400" titletext="입원업무 체크리스트 조회기준" oninit="SPMNW17300_oninit" onload="SPMNW17300_onload">
- <Layouts>
- <Layout>
- <Button position="absolute 210 370 266 392" id="btn_save" class="btn4" text="저장" onclick="btn_save_onclick"/>
- <Static text="입원업무 체크리스트 조회기준" position="absolute 0 0 211 15" id="caption21" class="tit_2"/>
- <Grid position="absolute 0 45 325 360" id="grd_inchklist" binddataset="ds_main_inchkinfo_inchklist" cellsizingtype="col" scrollpixel="all" cellsizebandtype="allband">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="20" band="left"/>
- <Column size="220"/>
- <Column size="60"/>
- <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="chkward"/>
- </Band>
- <Band id="body">
- <Cell celltype="head" expr="expr:currow + 1"/>
- <Cell col="1" style="align:left;" text="bind:chknm"/>
- <Cell col="2" displaytype="checkbox" edittype="checkbox" text="bind:chkyn"/>
- <Cell col="3" text="bind:chkcd"/>
- <Cell col="4" text="bind:chkward"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Button position="absolute 270 370 326 392" id="button1" class="btn4" text="닫기" onclick="button1_onclick"/>
- <Shape position="absolute 0 40 325 46" linetype="horizontal" id="line4" class="line_10"/>
- <Shape position="absolute 0 15 325 21" linetype="horizontal" id="line1" class="line_10"/>
- <Static text="병 동" position="absolute 0 20 85 39" align="align:center middle;" id="caption7" class="cell_1"/>
- <Edit readonly="true" position="absolute 90 20 325 39" id="output1"/>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_main_inchkinfo_inchklist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="chknm" type="STRING"/>
- <Column id="chkyn" type="STRING"/>
- <Column id="chkcd" type="STRING"/>
- <Column id="chkward" type="STRING"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_send_req" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="instcd" type="STRING" size="256"/>
- <Column id="wardcd" type="STRING" size="256"/>
- <Column id="wardnm" type="STRING" size="256"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_send_save_inchklist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="chknm" type="STRING"/>
- <Column id="chkyn" type="STRING"/>
- <Column id="chkcd" type="STRING"/>
- <Column id="chkward" type="STRING"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_main_cond" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="instcd" type="STRING" size="256"/>
- <Column id="wardcd" type="STRING" size="256"/>
- <Column id="wardnm" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- </Objects>
- <Bind>
- <BindItem id="item0" compid="output1" propid="value" datasetid="ds_main_cond" columnid="wardnm"/>
- </Bind>
- <Script type="xscript4.0"><![CDATA[/***************************************************************************************
- * System Name : 경대 의료정보시스템
- * Job Name : emr_wardcarexp -> SPMNW17300
- * Creator : yjh
- * Make Date : 2017-01-10
- * Description :
- *---------------------------------------------------------------------------------------
- * Modify Date Modifier Modify Description
- *---------------------------------------------------------------------------------------
- * 2017-01-10 yjh TF->XP
- *
- *---------------------------------------------------------------------------------------
- ****************************************************************************************/
- //=======================================================================================
- // Lib Include
- //---------------------------------------------------------------------------------------
- include "com_commonxp::comm_main.xjs";
- //=======================================================================================
- // Global Form Variable
- //---------------------------------------------------------------------------------------
- //=======================================================================================
- // Function
- //---------------------------------------------------------------------------------------
- function fSearch() {
- ds_send_req.copyData(ds_main_cond);
-
- var oParam = {};
- oParam.id = "TRMNW17300";
- oParam.service = "wardcareapp.WardCareMngt";
- oParam.method = "reqGetInChkList";
- oParam.inds = "req=ds_send_req";
- oParam.outds = "ds_main_inchkinfo_inchklist=inchklist";
- oParam.async = false;
- //oParam.callback = "cf_TRMNW17300";
- tranf_submit(oParam);
-
- ds_main_inchkinfo_inchklist.rowposition = -1;
-
- ds_main_inchkinfo_inchklist.enableevent = false;
- ds_main_inchkinfo_inchklist.updatecontrol = false;
-
- for( var i=0 ; i<ds_main_inchkinfo_inchklist.rowcount ; i++ ){
- if( ds_main_inchkinfo_inchklist.getColumn(i, "chkyn") == "Y" ){
- ds_main_inchkinfo_inchklist.setColumn(i, "chkyn", "1");
- }else{
- ds_main_inchkinfo_inchklist.setColumn(i, "chkyn", "0");
- }
- }
-
- ds_main_inchkinfo_inchklist.updatecontrol = true;
- ds_main_inchkinfo_inchklist.enableevent = true;
-
- }
- function fSave() {
-
- ds_main_inchkinfo_inchklist.enableevent = false;
- ds_main_inchkinfo_inchklist.updatecontrol = false;
-
- for (var i = 0 ; i < grd_inchklist.rowcount; i++) {
- ds_main_inchkinfo_inchklist.setColumn(i, "chkward", ds_main_inchkinfo_inchklist.getColumn(i, "chkcd")+ds_main_cond.getColumn(0, "wardcd"));
- }
-
- ds_main_inchkinfo_inchklist.updatecontrol = true;
- ds_main_inchkinfo_inchklist.enableevent = true;
-
- var data = grdf_getGridUpdateData(grd_inchklist, "all") ;
-
- if(utlf_isNull(data) || data.rowcount == 0) {
- sysf_messageBox("저장 할 내용이", "I004");
- return;
- }
-
- ds_send_save_inchklist.copyData(data);
-
- for( var i=0 ; i<ds_send_save_inchklist.rowcount ; i++ ){
- if( ds_send_save_inchklist.getColumn(i, "chkyn") == "1" ){
- ds_send_save_inchklist.setColumn(i, "chkyn", "Y");
- }else{
- ds_send_save_inchklist.setColumn(i, "chkyn", "N");
- }
- }
-
- var oParam = {};
- oParam.id = "TXMNW17300";
- oParam.service = "wardcareapp.WardCareMngt";
- oParam.method = "reqSetInChkInfo";
- oParam.inds = "inchklist=ds_send_save_inchklist";
- oParam.outds = "";
- oParam.async = false;
- //oParam.callback = "cf_TXMNW17300";
- tranf_submit(oParam);
-
- fSearch();
- }
- //=======================================================================================
- // Event
- //---------------------------------------------------------------------------------------
- /****************************************************************************************
- * Components : Form
- * Components ID : SPMNW17300
- * Event : oninit
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 화면 처음 초기화시
- ****************************************************************************************/
- function SPMNW17300_oninit(obj:Form, e:InitEventInfo)
- {
- frmf_initForm(obj); //폼 초기화
- }
- /****************************************************************************************
- * Components : Form
- * Components ID : SPMNW17300
- * Event : onload
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 화면 로딩 완료시
- ****************************************************************************************/
- function SPMNW17300_onload(obj:Form, e:LoadEventInfo)
- {
- if(frmf_checkOpener() ) {
- var instcd = sysf_getUserInfo("dutplceinstcd");
- var wardcd = opener.frmf_getParameter("PARAM1");
- var wardnm = opener.frmf_getParameter("PARAM2");
-
- ds_main_cond.setColumn(0, "instcd",instcd);
- ds_main_cond.setColumn(0, "wardcd",wardcd);
- ds_main_cond.setColumn(0, "wardnm",wardnm);
-
- }
-
- fSearch();
- }
- /****************************************************************************************
- * Components : Button
- * Components ID : btn_save
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 저장버튼 클릭시
- ****************************************************************************************/
- function btn_save_onclick(obj:Button, e:ClickEventInfo)
- {
- fSave();
- }
- /****************************************************************************************
- * Components : Button
- * Components ID : button1
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 닫기버튼 클릭시
- ****************************************************************************************/
- function button1_onclick(obj:Button, e:ClickEventInfo)
- {
- this.close();
- }
- ]]></Script>
- </Form>
- </FDL>
|