123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497 |
- <?xml version="1.0" encoding="utf-8" standalone="no"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SSMNA00100" position="absolute 0 0 1194 740" titletext="성분헌혈실 업무현황" onload="SSMNA00100_onload">
- <Layouts>
- <Layout>
- <Div id="grp_sea" position="absolute 0 26 1191 106" style="align: top;" class="div_SA" anchor="left top right">
- <Layouts>
- <Layout>
- <Shape id="line13" class="line_4" linetype="vertical" position="absolute 1035 12 1038 64" style="" anchor="top right"/>
- <Button id="btn_select" class="btn1" position="absolute 1121 27 1177 49" style="" text="집계" onclick="grp_sea_btn_select_onclick" anchor="top right"/>
- <Static id="caption3" class="search_name" position="absolute 300 15 375 32" style="align: middle;" text="구 분 :" anchor="left top"/>
- <Radio datacolumn="datacolumn" codecolumn="codecolumn" columncount="-1" rowcount="-1" id="rdo_ioflag" position="absolute 380 14 515 29" style="" onclick="grp_sea_rdo_ioflag_onclick" anchor="left top">
- <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">I</Col>
- <Col id="datacolumn">입원</Col>
- </Row>
- <Row>
- <Col id="codecolumn">O</Col>
- <Col id="datacolumn">외래</Col>
- </Row>
- </Rows>
- </Dataset>
- </Radio>
- <Static id="cap_dept" class="search_name" position="absolute 300 45 378 62" style="align: middle;" text="진료과 :" anchor="left top"/>
- <Combo innerdataset="@ds_hidden_indeptinfo" datacolumn="deptnm" codecolumn="deptcd" columncount="-1" rowcount="-1" id="cmb_dept" position="absolute 380 43 475 62" style="" onitemclick="grp_sea_cmb_dept_onitemclick" anchor="left top"/>
- <Static id="cap_dr" class="search_name" position="absolute 520 45 596 62" style="align: middle;" text="주치의 :" anchor="left top"/>
- <Combo innerdataset="ds_hidden_userinfo_drlist" datacolumn="usernm" codecolumn="userid" columncount="-1" rowcount="-1" id="cmb_dr" position="absolute 600 43 695 62" style="" onitemclick="grp_sea_cmb_dr_onitemclick" anchor="left top"/>
- <Static id="cmb_yymm" class="search_name" position="absolute 5 14 99 31" style="" text="검색기간 :" anchor="left top"/>
- <Calendar id="input2" class="input_search" mask="yyyy-MM" position="absolute 95 13 180 32" style="" anchor="left top" editformat="yyyy-MM" dateformat="yyyy-MM"/>
- <Combo innerdataset="@ds_hidden_wardinfo" datacolumn="deptnm" codecolumn="deptcd" columncount="-1" rowcount="-1" id="cmb_ward" position="absolute 770 43 865 62" style="" onitemclick="grp_sea_cmb_ward_onitemclick" anchor="left top"/>
- <Static id="cap_ward" class="search_name" position="absolute 705 45 771 62" style="align: middle;" text="병동 :" anchor="left top"/>
- <Calendar id="input1" class="input_search" mask="yyyy-mm" position="absolute 200 13 285 32" style="" anchor="left top" editformat="yyyy-MM" dateformat="yyyy-MM"/>
- <Static id="caption1" position="absolute 185 15 205 35" style="" text="~" anchor="left top"/>
- <Button id="button1" class="btn1" position="absolute 1053 27 1109 49" style="" text="조회" onclick="grp_sea_button1_onclick" anchor="top right"/>
- <Static id="caption2" position="absolute 185 47 205 67" style="" text="~" anchor="left top"/>
- <Calendar id="input3" class="input_search" mask="yyyy-mm" position="absolute 200 45 285 64" style="" anchor="left top" editformat="yyyy-MM" dateformat="yyyy-MM" value="null"/>
- <Static id="caption4" class="search_name" position="absolute 5 46 91 63" style="" text="비교기간 :" anchor="left top"/>
- <Calendar id="input4" class="input_search" mask="yyyy-mm" position="absolute 95 45 180 64" style="" anchor="left top" editformat="yyyy-MM" dateformat="yyyy-MM" value="null"/>
- </Layout>
- </Layouts>
- </Div>
- <Static id="caption6" text="성분헌혈실 업무현황" class="tit_1" position="absolute 0 0 201 26"/>
- <Grid id="datagrid1" taborder="1" binddataset="ds_main_workinfo" useinputpanel="false" oncellclick="grp_dnorSum_datagrid1_oncellclick" position="absolute 0 111 1191 736" anchor="all">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="95"/>
- <Column size="100"/>
- <Column size="65"/>
- <Column size="65"/>
- <Column size="65"/>
- <Column size="65"/>
- <Column size="65"/>
- <Column size="65"/>
- <Column size="65"/>
- <Column size="65"/>
- <Column size="65"/>
- <Column size="65"/>
- <Column size="65"/>
- <Column size="65"/>
- <Column size="65"/>
- <Column size="100"/>
- </Columns>
- <Rows>
- <Row size="24" band="head"/>
- <Row size="24"/>
- </Rows>
- <Band id="head">
- <Cell text="구분"/>
- <Cell col="1" text="세부항목"/>
- <Cell col="2" text="1월"/>
- <Cell col="3" text="2월"/>
- <Cell col="4" text="3월"/>
- <Cell col="5" text="4월"/>
- <Cell col="6" text="5월"/>
- <Cell col="7" text="6월"/>
- <Cell col="8" text="7월"/>
- <Cell col="9" text="8월"/>
- <Cell col="10" text="9월"/>
- <Cell col="11" text="10월"/>
- <Cell col="12" text="11월"/>
- <Cell col="13" text="12월"/>
- <Cell col="14" text="Total"/>
- <Cell col="15" text="증감율"/>
- </Band>
- <Band id="body">
- <Cell text="bind:lrgnm"/>
- <Cell col="1" text="bind:mdlnm"/>
- <Cell col="2" text="bind:d01"/>
- <Cell col="3" text="bind:d02"/>
- <Cell col="4" text="bind:d03"/>
- <Cell col="5" text="bind:d04"/>
- <Cell col="6" text="bind:d05"/>
- <Cell col="7" text="bind:d06"/>
- <Cell col="8" text="bind:d07"/>
- <Cell col="9" text="bind:d08"/>
- <Cell col="10" text="bind:d09"/>
- <Cell col="11" text="bind:d10"/>
- <Cell col="12" text="bind:d11"/>
- <Cell col="13" text="bind:d12"/>
- <Cell col="14" text="bind:totdd"/>
- <Cell col="15" text="bind:comptotdd"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_cond" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo>
- <Column id="ioflag" type="STRING" size="256"/>
- <Column id="deptcd" type="STRING" size="256"/>
- <Column id="wardcd" type="STRING" size="256"/>
- <Column id="drid" type="STRING" size="256"/>
- <Column id="fromdd" type="STRING" size="256"/>
- <Column id="todd" type="STRING" size="256"/>
- <Column id="compfdd" type="STRING" size="256"/>
- <Column id="comptdd" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="ioflag"/>
- <Col id="deptcd"/>
- <Col id="wardcd"/>
- <Col id="drid"/>
- <Col id="fromdd"/>
- <Col id="todd"/>
- <Col id="compfdd"/>
- <Col id="comptdd"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_hidden_userinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo/>
- </Dataset>
- <Dataset id="ds_main" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo/>
- </Dataset>
- <Dataset id="ds_main_workinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo>
- <Column id="worklist" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="worklist"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo>
- <Column id="send" type="STRING" size="256"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_hidden_userinfo_drlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo>
- <Column id="userid" type="STRING" size="256"/>
- <Column id="usernm" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="userid"/>
- <Col id="usernm"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_temp_deptinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_hidden_deptinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_hidden_drinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- </Objects>
- <Bind>
- <BindItem id="item0" compid="grp_sea.rdo_ioflag" propid="value" datasetid="ds_cond" columnid="ioflag"/>
- <BindItem id="item1" compid="grp_sea.cmb_dept" propid="value" datasetid="ds_cond" columnid="deptcd"/>
- <BindItem id="item2" compid="grp_sea.cmb_dr" propid="value" datasetid="ds_cond" columnid="drid"/>
- <BindItem id="item3" compid="grp_sea.input2" propid="value" datasetid="ds_cond" columnid="fromdd"/>
- <BindItem id="item4" compid="grp_sea.cmb_ward" propid="value" datasetid="ds_cond" columnid="wardcd"/>
- <BindItem id="item5" compid="grp_sea.input1" propid="value" datasetid="ds_cond" columnid="todd"/>
- <BindItem id="item6" compid="grp_sea.input3" propid="value" datasetid="ds_cond" columnid="comptdd"/>
- <BindItem id="item7" compid="grp_sea.input4" propid="value" datasetid="ds_cond" columnid="compfdd"/>
- </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 "sts_stsenrxp::MNA001.xjs";
- // include '../../.._com_departmentcodeweb_js_ZSD001.js'
- // include '../../.._emr_apumngtweb_js_APUCom.js'
- // include '../../.._sts_stsenrweb_js_MNA001.js'
- function SSMNA00100_onload(obj:Form, e:LoadEventInfo) {
- frmf_initForm(obj);
- //grdf_initGrid(grd_XXX);
- //grdf_setGridSort(grd_XXX);
- //grdf_setRowTypeIcon(grd_XXX, 0_컬럼위치값);
- fInit();
- }
- // header파일 중 SSMNA00100.js 파일 시작
- /********************************************************************************
- * _group : APU 업무현황
- * _ver : 2008.09.23
- * _by : dhkim
- * _desc : 성분헌혈실 업무현황 조회
- *********************************************************************************/
- var curYYYYMMStr = utlf_getCurrentDate().substring(0, 6);
- /**
- * create : 2008.09.23
- * desc : 화면을 초기화한다.
- */
- function fInit(){
- //노드 재생성;
- dsf_createDs("ds_hidden_outdeptinfo");
- dsf_createDs("ds_hidden_indeptinfo");
- dsf_createDs("ds_hidden_wardinfo");
-
- //노드 초기화
- ds_cond.clearData();
- ds_main_workinfo.clearData();
- ds_hidden_deptinfo.clearData();
- ds_hidden_wardinfo.clearData();
- ds_hidden_drinfo.clearData();
- var yyyymm = curYYYYMMStr; //default
- var ioflag = 'A'; //default
- fShowCondition(grp_sea.cap_ward, grp_sea.cmb_ward, grp_sea.cap_dept, grp_sea.cmb_dept, grp_sea.cap_dr, grp_sea.cmb_dr, ioflag);//조건 hidden_visible
- //진료과, 병동리스트조회
- fGetDeptInfo('O', yyyymm, ds_send, ds_hidden_outdeptinfo);//외래진료과
- fGetDeptInfo('I', yyyymm, ds_send, ds_hidden_indeptinfo); //입원진료과
- fGetDeptInfo('W', yyyymm, ds_send, ds_hidden_wardinfo); //병동
- //20081230
- dsf_makeValue( ds_cond, "fromdd", "string", curYYYYMMStr);//조회시작년월 : 현재년월
- dsf_makeValue( ds_cond, "todd", "string", curYYYYMMStr);//조회종료년월 : 현재년월
- //20090902 dhkim 비교기간 추가
- dsf_makeValue( ds_cond, "compfdd", "string", curYYYYMMStr);//비교시작년월 : 현재년월
- dsf_makeValue( ds_cond, "comptdd", "string", curYYYYMMStr);//비교종료년월 : 현재년월
- dsf_makeValue( ds_cond, "ioflag", "string", 'A');//외래입원구분 : 전체
- dsf_makeValue( ds_cond, "deptcd", "string", '');//진료과 : 전체
- dsf_makeValue( ds_cond, "wardcd", "string", '');//병동 : 전체
- dsf_makeValue( ds_cond, "drid", "string", '');//주치의 : 전체
- }
- /**
- * create : 2008.09.23
- * desc : 성분헌혈실 업무현황 조회
- */
- function fSearchApuWorkList(){
- //조회조건
- //var stdym = ds_cond.getColumn(0, "yyyymm");
- //20081230
- var fromdd = ds_cond.getColumn(0, "fromdd").substr(0,6);
- var todd = ds_cond.getColumn(0, "todd").substr(0,6);
- var ioflag = ds_cond.getColumn(0, "ioflag");
- var deptcd = ds_cond.getColumn(0, "deptcd");
- var drid = ds_cond.getColumn(0, "drid");
- var wardcd = ds_cond.getColumn(0, "wardcd");
- //20090902 dhkim 비교기간 추가
- var compfdd = ds_cond.getColumn(0, "compfdd").substr(0,6);
- var comptdd = ds_cond.getColumn(0, "comptdd").substr(0,6);
- //조회조건 널처리
- /*
- if(stdym == null || stdym == ''){
- stdym = curYYYYMMStr;
- }
- */
- //20081230
- if(utlf_isNull(fromdd)){
- fromdd = curYYYYMMStr;
- }
- if(utlf_isNull(todd)){
- todd = curYYYYMMStr;
- }
- if(utlf_isNull(ioflag)){
- ioflag = 'A';
- }
- if(utlf_isNull(deptcd)){
- deptcd = '';
- }
- if(utlf_isNull(drid)){
- drid = '';
- }
- if(utlf_isNull(wardcd)){
- wardcd == '';
- }
- if(ioflag == 'O'){
- if(!utlf_isNull(wardcd)){
- wardcd == '';
- }
- }
- if(ioflag == 'A'){
- deptcd = '';
- drid = '';
- wardcd = '';
- }
- if(utlf_isNull(deptcd)){
- drid = '';
- }
- //20090902 dhkim 비교기간 추가
- if(utlf_isNull(compfdd)){
- compfdd = curYYYYMMStr;
- }
- if(utlf_isNull(comptdd)){
- comptdd = curYYYYMMStr;
- }
- //20090902 dhkim 검색기간 최대 12개월로 blocking
- trace(todd)
- trace(fromdd)
- if(todd < fromdd){
- sysf_messageBox('검색시작년월이 검색종료년월보다 과거일자여야 합니다.', 'E999');
- return;
- }
- var dut = todd - fromdd;
- if(dut > 99){
- sysf_messageBox('검색기간은 최대 12개월까지만 조회가능합니다.', 'E999');
- return;
- }
- //20090902 dhkim 검색기간 최대 12개월로 blocking
- if(comptdd < compfdd){
- sysf_messageBox('비교시작년월이 비교종료년월보다 과거일자여야 합니다.', 'E999');
- return;
- }
- if(compfdd > todd){
- sysf_messageBox('비교시작년월이 검색종료년월보다 과거일자여야 합니다.', 'E999');
- return;
- }
- //20090902 dhkim 기간에 해당되는 월컬럼이 조회되도록 수정
- /**
- //20081230
- //같은 년도의 데이터만 조회가능
- if(fromdd.substring(0, 4) != todd.substring(0, 4)){
- sysf_messageBox('조회 시작년도와 종료년도를 동일하게 적용해 주십시오', 'E999');
- return;
- }
- */
- //request전 parameter send처리
- ds_send.clearData();
- //dsf_makeValue( ds_send, "stdym", "string", stdym + '%');
- //20081230
- dsf_makeValue( ds_send, "fromdd", "string", fromdd + '01');
- dsf_makeValue( ds_send, "todd", "string", todd + '31');
- dsf_makeValue( ds_send, "ioflag", "string", ioflag);
- dsf_makeValue( ds_send, "deptcd", "string", deptcd);
- dsf_makeValue( ds_send, "drid", "string", drid);
- dsf_makeValue( ds_send, "wardcd", "string", wardcd);
- dsf_makeValue( ds_send, "eqapuflag", "string", '1');//장비별_혈액불출별
- //20090902 dhkim 비교기간 추가
- dsf_makeValue( ds_send, "compfdd", "string", compfdd + '01');
- dsf_makeValue( ds_send, "comptdd", "string", comptdd + '31');
- var oParam = {};
- oParam.id = "TRSNA00103";
- oParam.service = "stsenrapp.StsApuMngt";
- oParam.method = "reqGetApuWorkList";
- oParam.inds = "req=ds_send";
- oParam.outds = "ds_main_workinfo=worklist";
- oParam.async = false;
- //oParam.callback = "cf_TRSNA00103";
- tranf_submit(oParam);
- //20090903 dhkim 검색기간에 맞게 그리드 월을 재정렬
- fSortColumn();
- //20081230
- // fShowTotal(datagrid1, datagrid1.cols, 3);
- }
- var cnt = 1;
- //20090903 dhkim 그리스 월컬럼 재정렬
- function fSortColumn(){
-
- // var colcnt = datagrid1.getCellCount("head")-2;
- // for(var i = 2; i < colcnt; i++){
- // datagrid1.setFormatColProperty( i, "size", "");
- // datagrid1.setFormatColProperty( i, "size", 0);
- // }
- //
- // var fromdd = ds_cond.getColumn(0, "fromdd");
- // var todd = ds_cond.getColumn(0, "todd");
- // var frommm = 0;
- // var tomm = 0;
- //
- // for(var i = 0; i <= utlf_diffMonth( fromdd,todd); i++){
- // frommm = utlf_addMonth(fromdd+"01", i)
- // trace(frommm);
- // datagrid1.setFormatColProperty( datagrid1.getBindCellIndex("body","d"+frommm.substr(4,6)) , "size", 65);
- // }
-
- }
- // header파일 중 SSMNA00100.js 파일 끝
- function grp_sea_btn_select_onclick(obj:Button, e:ClickEventInfo) {
- frmf_open("SSMNB00100", "", ""-"", "", "1", "15", "128", "", "", "", "", "", "M");
- }
- function grp_sea_rdo_ioflag_onclick(obj:Radio, e:ClickEventInfo) {
- fShowCondition("grp_sea.cap_ward", "grp_sea.cmb_ward", "grp_sea.cap_dept", "grp_sea.cmb_dept", "grp_sea.cap_dr", "grp_sea.cmb_dr", grp_sea.rdo_ioflag.value);
- }
- function grp_sea_cmb_dept_onitemclick(obj:Combo, e:ListBoxClickEventInfo) {
- var yyyymm = ds_cond.getColumn(0, "yyyymm");
- if(yyyymm == null || yyyymm == '' ){
- yyyymm = curYYYYMMStr;
- }
- fGetUserInfo(grp_sea.cmb_dept.value, yyyymm, 'ds_send', 'ds_hidden_userinfo');
- grp_sea.cmb_dr.value = '';
- fSearchApuWorkList();
- //model.refresh();
- }
- function grp_sea_cmb_dr_onitemclick(obj:Combo, e:ListBoxClickEventInfo) {
- fSearchApuWorkList();
- }
- function grp_sea_cmb_ward_onitemclick(obj:Combo, e:ListBoxClickEventInfo) {
- fSearchApuWorkList();
- }
- function grp_sea_button1_onclick(obj:Button, e:ClickEventInfo) {
- fSearchApuWorkList();
- }
- function grp_dnorSum_datagrid1_oncellclick(obj:Grid, e:GridClickEventInfo) {
- }
- ]]></Script>
- </Form>
- </FDL>
|