123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SPPID27000" position="absolute 0 0 949 641" titletext="협진 진료과 확인코드 관리" oninit="SPPID27000_oninit" onload="SPPID27000_onload">
- <Layouts>
- <Layout>
- <Button position="absolute 888 611 944 633" id="btn_cancel" class="btn4" text="종료" onclick="btn_cancel_onclick" anchor="right bottom"/>
- <Static id="cap_title" text="협진 진료과 확인코드 관리" class="tit_1" position="absolute 1 0 225 25"/>
- <Div id="group1" taborder="1" class="div_SA" position="absolute 1 26 941 66" anchor="left top right">
- <Layouts>
- <Layout>
- <Static id="caption30" text="확인코드 :" class="search_name" position="absolute 8 11 95 28" anchor="default"/>
- <Button id="btn_select" taborder="5" text="조회" class="btn1" position="absolute 875 10 931 32" onclick="group1_btn_select_onclick" anchor="top right"/>
- <Shape id="line3" linetype="vertical" class="line_4" position="absolute 857 4 863 37" anchor="top right"/>
- <Static id="caption2" text="진료과 :" class="search_name" position="absolute 268 11 355 28" anchor="default"/>
- <Combo id="cmb_orddeptcd" taborder="6" innerdataset="ds_init_cmb_orddeptcd" codecolumn="deptcd" datacolumn="depthngnm" class="combo_search" position="absolute 360 10 460 29" onitemchanged="group1_cmb_orddeptcd_onitemchanged" anchor="default"/>
- <Edit id="ipt_cnfmcd" taborder="7" position="absolute 100 10 200 29" onkeydown="group1_ipt_cnfmcd_onkeydown" anchor="default"/>
- <CheckBox id="chk1" taborder="8" class="checkbox_search" position="absolute 535 11 643 31" text="종료이력 포함" style="font:Dotum,9,bold;" truevalue="Y" falsevalue="N" anchor="default"/>
- </Layout>
- </Layouts>
- </Div>
- <Button id="button1" taborder="2" text="저장" class="btn5" position="absolute 902 72 944 91" anchor="top right" onclick="button1_onclick"/>
- <Button id="button3" taborder="3" text="행추가" class="btn2" position="absolute 848 72 901 91" onclick="button3_onclick" anchor="top right"/>
- <Button id="button2" taborder="4" text="행삭제" class="btn2" position="absolute 794 72 847 91" onclick="button2_onclick" anchor="top right"/>
- <Button id="btn_excelsave" taborder="5" text="엑셀저장" class="btn7" position="absolute 713 72 793 91" onclick="btn_excelsave_onclick" anchor="top right"/>
- <Static id="cap_judgtrgtman" text="협진 진료과 확인코드 리스트" class="tit_2" position="absolute 4 75 198 98"/>
- <Grid id="grd_cnstcdlist" class="datagrid3" taborder="7" binddataset="ds_grd_cnstcdlist" useinputpanel="false" position="absolute 4 96 944 610" anchor="all" onrbuttondown="grd_cnstcdlist_onrbuttondown" cellsizingtype="col" selecttype="multirow">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="24"/>
- <Column size="54"/>
- <Column size="40"/>
- <Column size="120"/>
- <Column size="120"/>
- <Column size="280"/>
- <Column size="100"/>
- <Column size="70"/>
- <Column size="70"/>
- <Column size="50"/>
- <Column size="100"/>
- <Column size="50"/>
- <Column size="105"/>
- </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="종료일자"/>
- <Cell col="9" text="등록자"/>
- <Cell col="10" text="등록일자"/>
- <Cell col="11" text="수정자"/>
- <Cell col="12" text="수정일자"/>
- </Band>
- <Band id="body">
- <Cell celltype="head"/>
- <Cell col="1" displaytype="text" edittype="text" text="bind:cnfmcd" enable="false"/>
- <Cell col="2" displaytype="text" edittype="text" text="bind:gubun" enable="false"/>
- <Cell col="3" displaytype="text" edittype="text" text="bind:cnfmhnm" enable="false"/>
- <Cell col="4" displaytype="text" edittype="text" text="bind:cnfmdnm" enable="false"/>
- <Cell col="5" displaytype="text" edittype="text" text="bind:cnfmenm"/>
- <Cell col="6" displaytype="combo" edittype="combo" text="bind:orddeptcd" combodataset="ds_init_cmb_orddeptcd" combocodecol="deptcd" combodatacol="depthngnm" enable="true"/>
- <Cell col="7" displaytype="date" edittype="date" style="align:center middle;" text="bind:fromdd" mask="yyyy-MM-dd"/>
- <Cell col="8" displaytype="date" edittype="date" style="align:center middle;" text="bind:todd" mask="yyyy-MM-dd" enable="false"/>
- <Cell col="9" displaytype="none" edittype="none" text="bind:fstrgstrid"/>
- <Cell col="10" displaytype="date" edittype="date" text="bind:fstrgstdt" mask="yyyy-MM-dd hh:mm"/>
- <Cell col="11" text="bind:lastupdtrid"/>
- <Cell col="12" displaytype="date" edittype="date" text="bind:lastupdtdt" mask="yyyy-MM-dd hh:mm"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Shape id="line1" linetype="horizontal" class="line_10" position="absolute 4 91 944 97" style="strokepen:3 solid #33bbbbff;" anchor="left top right"/>
- <PopupMenu id="pmn_menu1" position="absolute 970 144 1075 190" innerdataset="@ds_menu" idcolumn="func" levelcolumn="level" captioncolumn="label" onmenuclick="pmn_menu1_onmenuclick"/>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_init_cmb_orddeptcd" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="depthngnm" type="STRING"/>
- <Column id="deptcd" type="STRING"/>
- <Column id="deptengabbr" type="STRING" size="256"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_datagrid1" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="deptcd" type="STRING"/>
- <Column id="depthngnm" type="STRING"/>
- <Column id="deptengabbr" type="STRING"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_grd_cnstcdlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="cnfmcd" type="STRING"/>
- <Column id="gubun" type="STRING"/>
- <Column id="cnfmhnm" type="STRING"/>
- <Column id="cnfmdnm" type="STRING"/>
- <Column id="cnfmenm" type="STRING"/>
- <Column id="orddeptcd" type="STRING"/>
- <Column id="fromdd" type="STRING"/>
- <Column id="todd" type="STRING"/>
- <Column id="fstrgstrid" type="STRING"/>
- <Column id="fstrgstdt" type="STRING"/>
- <Column id="lastupdtrid" type="STRING"/>
- <Column id="lastupdtdt" type="STRING"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_main_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="orddeptcd" type="STRING" size="256"/>
- <Column id="cnstcdlist" type="STRING" size="256"/>
- <Column id="cnfmcd" type="STRING" size="256"/>
- <Column id="endyn" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- <Dataset id="ds_menu" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="label" type="STRING" size="256"/>
- <Column id="func" type="STRING" size="256"/>
- <Column id="level" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="label">행추가</Col>
- <Col id="func">fSpclGridInsertRow</Col>
- </Row>
- <Row>
- <Col id="label">행삭제</Col>
- <Col id="func">fSpclGridDeleteRow</Col>
- </Row>
- </Rows>
- </Dataset>
- </Objects>
- <Bind>
- <BindItem id="item0" compid="group1.ipt_cnfmcd" propid="value" datasetid="ds_main_send" columnid="cnfmcd"/>
- <BindItem id="item1" compid="group1.cmb_orddeptcd" propid="value" datasetid="ds_main_send" columnid="orddeptcd"/>
- <BindItem id="item2" compid="group1.chk1" propid="value" datasetid="ds_main_send" columnid="endyn"/>
- </Bind>
- <Script type="xscript4.0"><![CDATA[/***************************************************************************************
- * System Name :
- * Job Name :
- * Creator :
- * Make Date : 2016-05-24
- * Description :
- *---------------------------------------------------------------------------------------
- * Modify Date Modifier Modify Description
- *---------------------------------------------------------------------------------------
- * 2016-05-24 Live Converter TF->XP
- *
- *---------------------------------------------------------------------------------------
- ****************************************************************************************/
- include "com_commonxp::comm_main.xjs";
- include "pam_pamcomnxp::PAM001.xjs";
- function SPPID27000_oninit(obj:Form, e:InitEventInfo)
- {
- frmf_initForm(obj);
- }
- function SPPID27000_onload(obj:Form, e:LoadEventInfo)
- {
- grdf_initGrid(grd_cnstcdlist);
- grdf_setRowTypeIcon(grd_cnstcdlist, 0);
- fInitialize();
- }
- function fInitialize()
- {
- dsf_createDsRow("ds_send", [{col:"instcd", type:"STRING", size:256 , val :sysf_getUserInfo("dutplceinstcd") }
- , {col:"ordfildcd", type:"STRING", size:256}
- , {col:"ordflag", type:"STRING", size:256}]);
-
- var oParam = {};
- oParam.id = "TRPIJ00203";
- oParam.service = "bfjudgapp.InHospJudgTrgtMan";
- oParam.method = "reqGetDeptList";
- oParam.inds = "req=ds_send";
- oParam.outds = "ds_init_cmb_orddeptcd=deptlist";
- oParam.async = false;
- //oParam.callback = "cf_TRPIJ00203";
- tranf_submit(oParam);
-
- var arrParam1 = new Array();
- arrParam1 = [{dsNm: "ds_init_PK028list", cdGrpId: "PK028", showValue: false}];
- pamfGetCodeList(arrParam1, true, "");
-
- group1_btn_select_onclick();
- }
- //조회
- function group1_btn_select_onclick(obj:Button, e:ClickEventInfo)
- {
- fGetDocuList();
- }
- function fGetDocuList()
- {
- dsf_createDsRow("ds_send1", [{col:"cnfmcd", type:"STRING", size:256 , val : group1.ipt_cnfmcd.value}
- , {col:"orddeptcd", type:"STRING", size:256, val : group1.cmb_orddeptcd.value}
- , {col:"endyn", type:"STRING", size:256, val : group1.chk1.value}]);
-
- var oParam = {};
- oParam.id = "TRPID27000";
- oParam.service = "aftjudgapp.InAftJudg";
- oParam.method = "reqGetCnstDeptList";
- oParam.inds = "req=ds_send1";
- oParam.outds = "ds_grd_cnstcdlist=cnstcd";
- oParam.async = false;
- //oParam.callback = "cf_TRPID27000";
- tranf_submit(oParam);
- }
- function group1_ipt_cnfmcd_onkeydown(obj:Edit, e:KeyEventInfo)
- {
- if(e.keycode == 13)
- {
- fGetDocuList();
- }
- }
- function group1_cmb_orddeptcd_onitemchanged(obj:Combo, e:ItemChangeEventInfo)
- {
- fGetDocuList();
- }
- //엑셀저장
- function btn_excelsave_onclick(obj:Button, e:ClickEventInfo)
- {
- if (ds_grd_cnstcdlist.rowcount > 0)
- {
- grdf_exportExcel(grd_cnstcdlist, "exportExcel", "see");
- }
- else
- {
- sysf_messageBox("엑셀저장할 내역이", "I004"); ///엑셀저장할 내역이 없습니다.
- }
- }
- //행삭제
- function button2_onclick(obj:Button, e:ClickEventInfo)
- {
- fSpclGridDeleteRow();
- }
- //행추가
- function button3_onclick(obj:Button, e:ClickEventInfo)
- {
- fSpclGridInsertRow();
- }
- //행삭제이벤트
- function fSpclGridDeleteRow()
- {
- var SelectedRows = grdf_getSelectedRows(grd_cnstcdlist);
-
- for(var i = 0; i < SelectedRows.length; i++)
- {
- var sel = SelectedRows[i];
-
- var arrRow = new Array();
- arrRow[0] = sel;
- grdf_setStatus(grd_cnstcdlist, "D", arrRow);
- }
- }
- //행추가 이벤트
- function fSpclGridInsertRow()
- {
- var addRw = ds_grd_cnstcdlist.addRow();
- }
- //종료
- function btn_cancel_onclick(obj:Button, e:ClickEventInfo)
- {
- this.close();
- }
- //저장
- function button1_onclick(obj:Button, e:ClickEventInfo)
- {
- var updtdata = grdf_getGridUpdateData(grd_cnstcdlist);
-
- if(updtdata.rowcount == 0)
- {
- sysf_messageBox("변경된 데이터가","I004");
- return;
- }
-
- for(var i=0; i<ds_grd_cnstcdlist.rowcount; i++){
- if(ds_grd_cnstcdlist.getRowType(i) == 2 || ds_grd_cnstcdlist.getRowType(i) == 4)
- {
- trace(i);
- if(utlf_isNull(ds_grd_cnstcdlist.getColumn(i, "cnfmcd")) || utlf_isNull(ds_grd_cnstcdlist.getColumn(i, "todd")) || utlf_isNull(ds_grd_cnstcdlist.getColumn(i, "fromdd")) || utlf_isNull(ds_grd_cnstcdlist.getColumn(i, "fromdd")) || utlf_isNull(ds_grd_cnstcdlist.getColumn(i, "orddeptcd")))
- {
- var errmsg = "";
- if(utlf_isNull(ds_grd_cnstcdlist.getColumn(i, "cnfmcd")))
- {
- errmsg = "확인코드";
- }
- if(utlf_isNull(ds_grd_cnstcdlist.getColumn(i, "todd")))
- {
- errmsg = "종료일자";
- }
- if(utlf_isNull(ds_grd_cnstcdlist.getColumn(i, "fromdd")))
- {
- errmsg = "시작일자";
- }
- if(utlf_isNull(ds_grd_cnstcdlist.getColumn(i, "orddeptcd")))
- {
- errmsg = "진료과";
- }
- sysf_messageBox(errmsg+"는","I003");
- return false;
- }
- }
- }
-
- if(sysf_messageBox("저장", "S001") == 6)
- {
- var oParam = {};
- oParam.id = "TXPID27000";
- oParam.service = "aftjudgapp.InAftJudg";
- oParam.method = "reqExeCnstDeptList";
- oParam.inds = "req=ds_grd_cnstcdlist:U";
- oParam.outds = "ds_grd_cnstcdlist=cnstcd";
- oParam.async = false;
- oParam.callback = "cf_TXPID27000";
- tranf_submit(oParam);
- }
- }
- function cf_TXPID27000(sSvcId, nErrorCode, sErrorMsg) {
- if(nErrorCode < 0) return;
-
- sysf_messageBox("저장이","I002");
- fGetDocuList();
- }
- function grd_cnstcdlist_onrbuttondown(obj:Grid, e:GridMouseEventInfo)
- {
- pmn_menu1.trackPopup(e.screenX,e.screenY);
- }
- function pmn_menu1_onmenuclick(obj:PopupMenu, e:MenuClickEventInfo)
- {
- eval(e.id +"();");
- }
- ]]></Script>
- </Form>
- </FDL>
|