123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SMABC02100" position="absolute 0 0 1201 775" titletext="공통마감" oninit="SMABC02100_oninit" onload="SMABC02100_onload">
- <Layouts>
- <Layout>
- <Div position="absolute 0 0 1195 25" id="group1">
- <Layouts>
- <Layout>
- <Static text="공통마감(M-SET)" position="absolute 0 0 196 25" id="caption1" class="tit_1"/>
- </Layout>
- </Layouts>
- </Div>
- <Div position="absolute 0 45 1195 775" id="group5" scrollbars="autoboth">
- <Layouts>
- <Layout>
- <Div position="absolute 0 10 1194 45" align="align:center top;" id="group6" class="div_SA">
- <Layouts>
- <Layout>
- <Static text="일자" position="absolute 6 8 75 25" id="caption2" class="search_name"/>
- <Static text="Acting 부서" position="absolute 241 8 337 25" id="caption3" class="search_name"/>
- <Calendar position="absolute 47 6 147 25" id="ipt_execdd" class="input_default" autoselect="true" onchanged="group5_group6_ipt_execdd_onchanged"/>
- <Radio position="absolute 521 5 691 25" id="radio1" columncount="3" codecolumn="codecolumn" datacolumn="datacolumn" onitemchanged="group5_group6_radio1_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">Y</Col>
- <Col id="datacolumn">실행</Col>
- </Row>
- <Row>
- <Col id="codecolumn">N</Col>
- <Col id="datacolumn">미실행</Col>
- </Row>
- </Rows>
- </Dataset>
- </Radio>
- <Combo position="absolute 859 6 949 25" id="combo2" class="combo_search" innerdataset="ds_init_combo2" datacolumn="name" codecolumn="id" onitemchanged="group5_group6_combo2_onitemchanged"/>
- <Static text="구 분" position="absolute 801 8 877 25" id="caption4" class="search_name"/>
- <Combo position="absolute 327 6 487 25" id="combo1" innerdataset="ds_init_combo1" datacolumn="depthngnm" codecolumn="suppdeptcd" onitemchanged="group5_group6_combo1_onitemchanged"/>
- <Button position="absolute 1130 5 1186 27" id="btn_sea" class="btn1" text="조회" onclick="group5_group6_btn_sea_onclick"/>
- <Shape position="absolute 1123 4 1129 27" linetype="vertical" id="line2"/>
- </Layout>
- </Layouts>
- </Div>
- <Shape position="absolute 0 78 1194 84" linetype="vertical" id="line20" class="line_1"/>
- <Static text="액팅 리스트" position="absolute 5 66 165 87" id="caption8" class="tit_2"/>
- <Div position="absolute 800 55 1195 80" id="group2">
- <Layouts>
- <Layout>
- <Button position="absolute 340 5 393 24" id="button6" class="btn2" text="마감" onclick="group5_group2_button6_onclick"/>
- </Layout>
- </Layouts>
- </Div>
- <Grid position="absolute 0 85 1194 725" id="grd_projlist" binddataset="ds_grd_projlist">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="25" band="left"/>
- <Column size="61"/>
- <Column size="59"/>
- <Column size="35"/>
- <Column size="28"/>
- <Column size="0"/>
- <Column size="395"/>
- <Column size="63"/>
- <Column size="25"/>
- <Column size="111"/>
- <Column size="55"/>
- <Column size="99"/>
- <Column size="71"/>
- <Column size="120"/>
- <Column size="0"/>
- <Column size="100"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="100"/>
- </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="S/N"/>
- <Cell col="4"/>
- <Cell col="5" text="처방코드"/>
- <Cell col="6" text="처방명"/>
- <Cell col="7" text="상태"/>
- <Cell col="8" displaytype="checkbox" edittype="checkbox"/>
- <Cell col="9" text="수행시간"/>
- <Cell col="10" text="Acting"/>
- <Cell col="11" text="수행자"/>
- <Cell col="12" text="병실"/>
- <Cell col="13" text="마감일시"/>
- <Cell col="14" text="Action"/>
- <Cell col="15" text="처방일자"/>
- <Cell col="16" text="caption2"/>
- <Cell col="17" text="caption3"/>
- <Cell col="18" text="caption4"/>
- <Cell col="19" text="caption5"/>
- <Cell col="20" text="caption6"/>
- <Cell col="21" text="caption7"/>
- <Cell col="22" text="Note"/>
- </Band>
- <Band id="body">
- <Cell celltype="head" text="expr:currow + 1"/>
- <Cell col="1" displaytype="text" edittype="text" text="bind:pid" suppress="1" suppressalign="middle"/>
- <Cell col="2" text="bind:hngnm" suppress="1" suppressalign="middle"/>
- <Cell col="3" text="bind:sexage" suppress="1" suppressalign="middle"/>
- <Cell col="4" style="align:right;" text="bind:mset" suppress="2" suppressalign="middle"/>
- <Cell col="5" text="bind:prcpcd"/>
- <Cell col="6" style="align:left;" text="bind:prcpnm"/>
- <Cell col="7" text="bind:cdnm"/>
- <Cell col="8" displaytype="checkbox" edittype="checkbox" text="bind:check" expr="expr:(check == 'true' || check == '1')?1:0"/>
- <Cell col="9" displaytype="date" text="bind:execddtm" mask="yyyy-MM-dd HH:mm" calendardisplaynulltype="nulltext"/>
- <Cell col="10" text="bind:acting"/>
- <Cell col="11" text="bind:execrid"/>
- <Cell col="12" text="bind:roomcd"/>
- <Cell col="13" displaytype="date" text="bind:enddd" mask="yyyy-MM-dd HH:mm:ss" calendardisplaynulltype="nulltext"/>
- <Cell col="14" text="bind:action"/>
- <Cell col="15" text="bind:prcpdd"/>
- <Cell col="16" text="bind:prcpno"/>
- <Cell col="17" text="bind:prcphistno"/>
- <Cell col="18" text="bind:execprcpno"/>
- <Cell col="19" text="bind:instcd"/>
- <Cell col="20" text="bind:execdeptcd"/>
- <Cell col="21" text="bind:oiflag"/>
- <Cell col="22" style="align:left;" text="bind:note" wordwrap="char"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- </Layout>
- </Layouts>
- </Div>
- <Div position="absolute 0 13 1190 40" id="group3" scrollbars="none">
- <Layouts>
- <Layout>
- <Button position="absolute 1120 2 1188 24" id="button7" class="btn4" text="초기화" onclick="group3_button7_onclick"/>
- <Shape position="absolute 0 22 1189 28" linetype="horizontal" id="line1" class="line_6"/>
- </Layout>
- </Layouts>
- </Div>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_init_combo2" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="name" type="STRING"/>
- <Column id="id" type="STRING"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="name">전체</Col>
- <Col id="id">-</Col>
- </Row>
- <Row>
- <Col id="name">마감전</Col>
- <Col id="id">before</Col>
- </Row>
- <Row>
- <Col id="name">마감후</Col>
- <Col id="id">after</Col>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_init_combo1" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="depthngnm" type="STRING"/>
- <Column id="suppdeptcd" type="STRING"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_grd_projlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="pid" type="STRING"/>
- <Column id="hngnm" type="STRING"/>
- <Column id="sexage" type="STRING"/>
- <Column id="mset" type="STRING"/>
- <Column id="prcpcd" type="STRING"/>
- <Column id="prcpnm" type="STRING"/>
- <Column id="cdnm" type="STRING"/>
- <Column id="check" type="STRING"/>
- <Column id="execddtm" type="STRING"/>
- <Column id="acting" type="STRING"/>
- <Column id="execrid" type="STRING"/>
- <Column id="roomcd" type="STRING"/>
- <Column id="enddd" type="STRING"/>
- <Column id="action" type="STRING"/>
- <Column id="prcpdd" type="STRING"/>
- <Column id="prcpno" type="STRING"/>
- <Column id="prcphistno" type="STRING"/>
- <Column id="execprcpno" type="STRING"/>
- <Column id="instcd" type="STRING"/>
- <Column id="execdeptcd" type="STRING"/>
- <Column id="oiflag" type="STRING"/>
- <Column id="note" type="STRING"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_cond" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="basecd" type="STRING" size="256"/>
- <Column id="execdd" type="STRING" size="256"/>
- <Column id="exeflag" type="STRING" size="256"/>
- <Column id="flag" type="STRING" size="256"/>
- <Column id="deptcd" type="STRING" size="256"/>
- <Column id="basesuppdeptcd" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="basecd"/>
- <Col id="execdd"/>
- <Col id="exeflag">Y</Col>
- <Col id="flag"/>
- <Col id="deptcd"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_actingend_endlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="prcpdd" type="STRING" size="256"/>
- <Column id="prcpno" type="STRING" size="256"/>
- <Column id="prcphistno" type="STRING" size="256"/>
- <Column id="execprcpno" type="STRING" size="256"/>
- <Column id="instcd" type="STRING" size="256"/>
- <Column id="oiflag" type="STRING" size="256"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_actingend_endflagvalue" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="endflag" type="STRING" size="256"/>
- <Column id="execdd" type="STRING" size="256"/>
- <Column id="execdeptcd" type="STRING" size="256"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_result" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- </Objects>
- <Bind>
- <BindItem id="item0" compid="group5.group6.ipt_execdd" propid="value" datasetid="ds_cond" columnid="execdd"/>
- <BindItem id="item1" compid="group5.group6.combo1" propid="value" datasetid="ds_cond" columnid="deptcd"/>
- <BindItem id="item2" compid="group5.group6.radio1" propid="value" datasetid="ds_cond" columnid="exeflag"/>
- <BindItem id="item3" compid="group5.group6.combo2" propid="value" datasetid="ds_cond" columnid="flag"/>
- </Bind>
- <Script type="xscript4.0"><![CDATA[/***************************************************************************************
- * System Name :
- * Job Name :
- * Creator :
- * Make Date : 2015-11-13
- * Description :
- *---------------------------------------------------------------------------------------
- * Modify Date Modifier Modify Description
- *---------------------------------------------------------------------------------------
- * 2015-11-13 Live Converter TF->XP
- *
- *---------------------------------------------------------------------------------------
- ****************************************************************************************/
- include "com_commonxp::comm_main.xjs";
- include "ast_examcurexp::AEZ0001.xjs";
- function fInitialize(){
-
- lf_aezfSetSuppDeptcd(); //화면에서 현재부서정보 가져오기
-
- var today = utlf_getCurrentDate();
- ds_cond.setColumn(0,"execdd", today);
- ds_cond.setColumn(0,"basesuppdeptcd", frmf_getParameter("AST_DEPTCD"));
-
- //지원부서가져오기
- var oParam = {};
- oParam.id = "TRAEA00904";
- oParam.service = "examcurersrvapp.RsrvRef";
- oParam.method = "reqGetSuppDeptCdList";
- oParam.inds = "req=ds_cond";
- oParam.outds = "ds_init_combo1=item";
- oParam.async = false;
- //oParam.callback = "cf_TRAEA00904";
- tranf_submit(oParam);
-
- // 세션에서 부서 코드를 받아온다.
- var dutplcecd = sysf_getUserInfo("dutplcecd") ;
- //alert(" dutplcecd = " + dutplcecd );
-
- grdf_initGrid(group5.grd_projlist); //그리드 헤더에 체크박스 설정
-
- ds_grd_projlist.clearData();
- // 콤보에 전체선택 추가
- //addComboItem("combo1", "-전체-", "-", "above");
-
- if(dutplcecd == "1000000000"){
- dsf_addDsItem( ds_init_combo1, "suppdeptcd","depthngnm", "-전체-", "-", "above");
- }
-
- var combo1Index = 0;
-
- // AST 로 로그인 안했을 경우, 콤보박스에 해당 부서이름만 나오게 한다. (AST 로그인 시에는 콤보박스에서 부서 선택 가능)
- if(dutplcecd != "1000000000"){
- //var nodeList = root.selectNodes("/root/send/cond/deptcd");
- for(var i = 0; i < ds_init_combo1.rowcount; i++){
- if(ds_init_combo1.getColumn(i,"suppdeptcd") == dutplcecd){
- combo1Index = i;
- break;
- }
- }
- group5.group6.combo1.index = combo1Index;
- group5.group6.combo1.enable = false;
- }else{
- group5.group2.button6.visible = false;
- }
-
- group5.group6.combo2.index = 1; //마감전
- group5.group6.combo1.value = frmf_getParameter("AST_DEPTCD"); //내시경 선택
-
- }
- function fGetActingList(){
- ds_grd_projlist.clearData();
-
- if (!utlf_isNull(group5.group6.combo1.value)) {
- var oParam = {};
- oParam.id = "TRABC02004";
- oParam.service = "actingendapp.ActingEnd";
- oParam.method = "reqGetActingMsetEndList";
- oParam.inds = "req=ds_cond";
- oParam.outds = "ds_grd_projlist=proj";
- oParam.async = false;
- //oParam.callback = "cf_TRABC02004";
- tranf_submit(oParam);
- ds_grd_projlist.addColumn("check","string");
- grdf_setToolTipBind(group5.grd_projlist);
- }
- }
- function SMABC02100_oninit(obj:Form, e:InitEventInfo)
- {
- frmf_initForm(obj); // 화면공통
- }
- function SMABC02100_onload(obj:Form, e:LoadEventInfo)
- {
-
- grdf_initGrid(group5.grd_projlist);
- fInitialize();
- fGetActingList();
- }
- function group5_group6_ipt_execdd_onchanged(obj:Calendar, e:ChangeEventInfo)
- {
- fGetActingList();
- }
- function group5_group6_radio1_onitemchanged(obj:Radio, e:ItemChangeEventInfo)
- {
- obj.updateToDataset();
- if (ds_cond.getColumn(0,"deptcd") != "-" &&
- ds_cond.getColumn(0,"exeflag") == "Y" &&
- ds_cond.getColumn(0,"flag") =="before"){
- group5.group2.button6.visible = true;
- }else{
- group5.group2.button6.visible = false;
- }
- fGetActingList();
- }
- function group5_group6_combo2_onitemchanged(obj:Combo, e:ItemChangeEventInfo)
- {
- obj.updateToDataset();
- if (ds_cond.getColumn(0,"deptcd") != "-" &&
- ds_cond.getColumn(0,"exeflag") == "Y" &&
- ds_cond.getColumn(0,"flag") =="before"){
- group5.group2.button6.visible = true;
- }else{
- group5.group2.button6.visible = false;
- }
- fGetActingList();
- }
- function group5_group6_combo1_onitemchanged(obj:Combo, e:ItemChangeEventInfo)
- {
- obj.updateToDataset();
- if (ds_cond.getColumn(0,"deptcd") != "-" &&
- ds_cond.getColumn(0,"exeflag") == "Y" &&
- ds_cond.getColumn(0,"flag") =="before"){
- group5.group2.button6.visible = true;
- }else{
- group5.group2.button6.visible = false;
- }
- fGetActingList();
- }
- function group5_group6_btn_sea_onclick(obj:Button, e:ClickEventInfo)
- {
- if (ds_cond.getColumn(0,"deptcd") != "-" &&
- ds_cond.getColumn(0,"exeflag") == "Y" &&
- ds_cond.getColumn(0,"flag") =="before"){
- group5.group2.button6.visible = true;
- }else{
- group5.group2.button6.visible = false;
- }
- fGetActingList();
- }
- function group5_group2_button6_onclick(obj:Button, e:ClickEventInfo)
- {
- ds_actingend_endlist.clearData();
- var endListRow = -1;
-
- for(var i = 0; i < ds_grd_projlist.rowcount; i++){
- if(ds_grd_projlist.getColumn(i,"check") == "1"){
- endListRow = ds_actingend_endlist.addRow();
-
- ds_actingend_endlist.setColumn(endListRow,"prcpdd", ds_grd_projlist.getColumn(i,"prcpdd"));
- ds_actingend_endlist.setColumn(endListRow,"prcpno", ds_grd_projlist.getColumn(i,"prcpno"));
- ds_actingend_endlist.setColumn(endListRow,"prcphistno", ds_grd_projlist.getColumn(i,"prcphistno"));
- ds_actingend_endlist.setColumn(endListRow,"execprcpno", ds_grd_projlist.getColumn(i,"execprcpno"));
- ds_actingend_endlist.setColumn(endListRow,"instcd", ds_grd_projlist.getColumn(i,"instcd"));
- ds_actingend_endlist.setColumn(endListRow,"oiflag", ds_grd_projlist.getColumn(i,"oiflag"));
-
- }
- }
- ds_actingend_endflagvalue.clearData();
- // 체크된 행이 있으면 마감실행
- if(endListRow != -1){
- ds_actingend_endflagvalue.addRow();
-
- ds_actingend_endflagvalue.setColumn(0,"endflag", "A12");
-
-
- ds_actingend_endflagvalue.setColumn(0,"execdd", ds_cond.getColumn(0,"execdd"));
-
-
- ds_actingend_endflagvalue.setColumn(0,"execdeptcd", ds_cond.getColumn(0,"deptcd"));
-
- var oParam = {};
- oParam.id = "TRABC02003";
- oParam.service = "actingendapp.ActingEnd";
- oParam.method = "reqExeActingEnd";
- oParam.inds = "req=ds_actingend_endlist flag=ds_actingend_endflagvalue";
- oParam.outds = "ds_result=ret";
- oParam.async = false;
- oParam.callback = "cf_TRABC02003";
- tranf_submit(oParam);
- fGetActingList();
- alert("마감되었습니다");
- }
- }
- function group3_button7_onclick(obj:Button, e:ClickEventInfo)
- {
- fInitialize();
- }
- ]]></Script>
- </Form>
- </FDL>
|