123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SMMMI00920" position="absolute 0 0 1100 500" titletext="당직 중복 조회" oninit="SMMMI00920_oninit" onload="SMMMI00920_onload">
- <Layouts>
- <Layout>
- <Grid id="grd_workduplist" taborder="3" binddataset="ds_workduplist" useinputpanel="false" selecttype="multiarea" cellsizingtype="col" autofittype="none" oncelldblclick="grp_right_grd_workschelist_oncelldblclick" position="absolute 0 27 1100 500" anchor="all">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="70"/>
- <Column size="50"/>
- <Column size="40"/>
- <Column size="100"/>
- <Column size="60"/>
- <Column size="60"/>
- <Column size="100"/>
- <Column size="100"/>
- <Column size="55"/>
- <Column size="55"/>
- <Column size="55"/>
- <Column size="55"/>
- <Column size="55"/>
- <Column size="55"/>
- <Column size="55"/>
- <Column size="55"/>
- <Column size="55"/>
- <Column size="55"/>
- <Column size="55"/>
- <Column size="55"/>
- <Column size="55"/>
- <Column size="55"/>
- <Column size="55"/>
- <Column size="55"/>
- <Column size="40"/>
- <Column size="40"/>
- <Column size="40"/>
- <Column size="40"/>
- </Columns>
- <Rows>
- <Row size="24" band="head"/>
- <Row size="22"/>
- </Rows>
- <Band id="head">
- <Cell text="일자"/>
- <Cell col="1" text="요일"/>
- <Cell col="2" text="근무"/>
- <Cell col="3" text="부서"/>
- <Cell col="4" text="사번" taborder="undefined"/>
- <Cell col="5" text="성명" taborder="undefined"/>
- <Cell col="6" text="근무시작"/>
- <Cell col="7" text="근무종료"/>
- <Cell col="8" text="권역외상"/>
- <Cell col="9" text="심혈관"/>
- <Cell col="10" text="뇌혈관"/>
- <Cell col="11" text="TICU"/>
- <Cell col="12" text="EICU"/>
- <Cell col="13" text="MICU"/>
- <Cell col="14" text="CCU"/>
- <Cell col="15" text="SU"/>
- <Cell col="16" text="NSICU"/>
- <Cell col="17" text="SICU"/>
- <Cell col="18" text="CICU"/>
- <Cell col="19" text="NICU"/>
- <Cell col="20" text="NICU"/>
- <Cell col="21" text="PICU"/>
- <Cell col="22" text="ICU"/>
- <Cell col="23" text="W63"/>
- <Cell col="24" text="내신"/>
- <Cell col="25" text="외심"/>
- <Cell col="26" text="심뇌"/>
- <Cell col="27" text="W45"/>
- </Band>
- <Band id="body">
- <Cell displaytype="date" text="bind:workdd"/>
- <Cell col="1" text="bind:datenm"/>
- <Cell col="2" text="bind:dutycd"/>
- <Cell col="3" text="bind:deptnm"/>
- <Cell col="4" displaytype="normal" text="bind:userid" calendardisplaynulltype="none"/>
- <Cell col="5" text="bind:usernm"/>
- <Cell col="6" displaytype="normal" text="bind:fromdt" mask="##-## ##:##"/>
- <Cell col="7" displaytype="normal" text="bind:todt" mask="##-## ##:##"/>
- <Cell col="8" style="align:center middle;" text="bind:traumayn"/>
- <Cell col="9" text="bind:c01yn"/>
- <Cell col="10" text="bind:c02yn"/>
- <Cell col="11" style="align:center middle;" text="bind:ticuyn"/>
- <Cell col="12" style="align:center middle;" text="bind:eicuyn"/>
- <Cell col="13" style="align:center middle;" text="bind:micuyn"/>
- <Cell col="14" style="align:center middle;" text="bind:ccuyn"/>
- <Cell col="15" style="align:center middle;" text="bind:suyn"/>
- <Cell col="16" style="align:center middle;" text="bind:nsicuyn"/>
- <Cell col="17" style="align:center middle;" text="bind:sicuyn"/>
- <Cell col="18" style="align:center middle;" text="bind:cicuyn"/>
- <Cell col="19" style="align:center middle;" text="bind:nicuyn"/>
- <Cell col="20" text="bind:nicu032yn"/>
- <Cell col="21" text="bind:picu032yn"/>
- <Cell col="22" text="bind:icu032yn"/>
- <Cell col="23" text="bind:w63032yn"/>
- <Cell col="24" text="bind:a13yn"/>
- <Cell col="25" text="bind:a14yn"/>
- <Cell col="26" text="bind:a15yn"/>
- <Cell col="27" text="bind:w45032yn"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Static id="cpt_worktitle" text="당직중복 조회" class="tit_2" position="absolute 0 5 323 21" anchor="left top"/>
- <Shape id="line3" class="line_10" position="absolute 0 18 1100 30" anchor="left top right"/>
- <Button id="btn_excel" taborder="4" text="Excel" onclick="btn_excel_onclick" class="btn7" position="absolute 1037 1 1100 21" anchor="top right"/>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_cond" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="flag" type="STRING" size="256"/>
- <Column id="superyn" type="STRING" size="256"/>
- <Column id="authyn" type="STRING" size="256"/>
- <Column id="basedd" type="STRING" size="256"/>
- <Column id="authdeptcd" type="STRING" size="256"/>
- <Column id="workcd" type="STRING" size="256"/>
- <Column id="worktype" type="STRING" size="256"/>
- <Column id="orddeptcd" type="STRING" size="256"/>
- <Column id="appuseryn" type="STRING" size="256"/>
- <Column id="instcd" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- <Dataset id="ds_workduplist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="instcd" type="STRING" size="256" sumtext="당직일자"/>
- <Column id="workdd" type="STRING" size="256" sumtext="당직일자"/>
- <Column id="datenm" type="STRING" size="256" sumtext="당직일자"/>
- <Column id="dutycd" type="STRING" size="256" sumtext="당직일자"/>
- <Column id="deptcd" type="STRING" size="256" sumtext="당직일자"/>
- <Column id="deptnm" type="STRING" size="256" sumtext="당직일자"/>
- <Column id="userid" type="STRING" size="256" sumtext="당직일자"/>
- <Column id="usernm" type="STRING" size="256" sumtext="요일"/>
- <Column id="fromdt" type="STRING" size="256" sumtext="당직 시작시간"/>
- <Column id="todt" type="STRING" size="256" sumtext="당직 종료시간"/>
- <Column id="traumayn" type="STRING" size="256" sumtext="권역외상"/>
- <Column id="c01yn" type="STRING" size="256" sumtext="심혈관"/>
- <Column id="c02yn" type="STRING" size="256" sumtext="뇌혈관"/>
- <Column id="ticuyn" type="STRING" size="256" sumtext="TICU"/>
- <Column id="micuyn" type="STRING" size="256" sumtext="MICU"/>
- <Column id="eicuyn" type="STRING" size="256" sumtext="EICU"/>
- <Column id="ccuyn" type="STRING" size="256" sumtext="CCU"/>
- <Column id="suyn" type="STRING" size="256" sumtext="SU"/>
- <Column id="nsicuyn" type="STRING" size="256" sumtext="NSICU"/>
- <Column id="sicuyn" type="STRING" size="256" sumtext="SICU"/>
- <Column id="cicuyn" type="STRING" size="256" sumtext="CICU"/>
- <Column id="nicuyn" type="STRING" size="256" sumtext="NICU"/>
- <Column id="nicu032yn" type="STRING" size="256" sumtext="칠곡NICU"/>
- <Column id="picu032yn" type="STRING" size="256" sumtext="칠곡PICU"/>
- <Column id="icu032yn" type="STRING" size="256" sumtext="칠곡ICU"/>
- <Column id="w63032yn" type="STRING" size="256" sumtext="칠곡63병동"/>
- <Column id="a13yn" type="STRING" size="256" sumtext="내과신경외과"/>
- <Column id="a14yn" type="STRING" size="256" sumtext="외과심혈관외과"/>
- <Column id="a15yn" type="STRING" size="256" sumtext="심뇌혈관응급치료실"/>
- <Column id="w45032yn" type="STRING" size="256" sumtext="칠곡45병동"/>
- </ColumnInfo>
- </Dataset>
- </Objects>
- <Bind>
- <BindItem id="item2" compid="group3.group4.cmb_orddeptcd" propid="value" datasetid="ds_cond" columnid="orddeptcd"/>
- <BindItem id="item3" compid="group3.group1.cpt_worktitle" propid="text" datasetid="ds_main_titleinfo" columnid="worktitle"/>
- <BindItem id="item10" compid="group3.group4.ipt_srchdd" propid="value" datasetid="ds_cond" columnid="srchdd"/>
- <BindItem id="item1" compid="SMMMI00920" propid="text" datasetid="ds_cond" columnid="srchdd"/>
- </Bind>
- <Script type="xscript4.0"><![CDATA[/***************************************************************************************
- * System Name : 경대 의료정보시스템
- * Job Name :
- * Creator : 엄영만
- * Make Date : 2018-05-21
- * Description :
- ****************************************************************************************/
- //=======================================================================================
- // Lib Include
- //---------------------------------------------------------------------------------------
- include "com_commonxp::comm_main.xjs";
- include "emr_prcpmngtxp::MMOCommon.xjs";
- include "emr_prcpmngtxp::MMO001.xjs";
- //=======================================================================================
- // Global Form Variable
- //---------------------------------------------------------------------------------------
- //이전 셀의 행,열 인덱스를 저장하는 변수
- var col = -1;
- var row = -1;
- var arErrorCode = new HashArray();
-
- //=======================================================================================
- // Function
- //---------------------------------------------------------------------------------------
- //=======================================================================================
- // Event
- //---------------------------------------------------------------------------------------
- function SMMMI00920_oninit(obj:Form, e:InitEventInfo)
- {
- frmf_initForm(obj); //폼 초기화
- grdf_initGrid(grd_workduplist);
- }
- function SMMMI00920_onload(obj:Form, e:LoadEventInfo)
- {
- grdf_setToolTipBind(grd_workduplist);
-
- ds_cond.copyData(arg_cond);
-
- ds_cond.addColumn("instcd", "string", "256");
- ds_cond.setColumn(0, "instcd", sysf_getUserInfo("dutplceinstcd"));
-
- setOrderInfoOfCol(grd_workduplist); // 컬럼 설정
-
- fgetWorkDupList();
- }
- function setOrderInfoOfCol(grid:Grid){
-
- var refdata = "";
- var sizedata = "";
- var frozencol = "todt";
-
- if(sysf_getUserInfo("dutplceinstcd") == "031") {
- refdata = "workdd^datenm^dutycd^deptnm^userid^usernm^fromdt^todt^traumayn^c01yn^c02yn^ticuyn^eicuyn^micuyn^ccuyn^suyn^nsicuyn^sicuyn^cicuyn^nicuyn^nicu032yn^picu032yn^icu032yn^w63032yn^a13yn^a14yn^a15yn^w45032yn";
- sizedata = "70^50^40^100^60^60^100^100^55^55^55^55^55^55^55^55^55^55^55^55^0^0^0^0^55^55^55^0";
- } else if(sysf_getUserInfo("dutplceinstcd") == "032") {
- refdata = "workdd^datenm^dutycd^deptnm^userid^usernm^fromdt^todt^traumayn^c01yn^c02yn^ticuyn^eicuyn^micuyn^ccuyn^suyn^nsicuyn^sicuyn^cicuyn^nicuyn^nicu032yn^picu032yn^icu032yn^w63032yn^a13yn^a14yn^a15yn^w45032yn";
- sizedata = "70^50^40^100^60^60^100^100^0^0^0^0^0^0^0^0^0^0^0^0^55^55^55^55^0^0^0^55";
- }
-
- if(utlf_isNull(refdata) || utlf_isNull(sizedata)) return;
- var refarr = refdata.split("^");
- var sizearr = sizedata.split("^");
- var nFrozenCols = grid.getBindCellIndex("body", frozencol);
-
- var oGridDataSet = eval(grid.binddataset);
- grid.enableevent = false;
- grid.enableredraw = false;
- //try {
- if(!utlf_isNull(nFrozenCols)) {
- for(var i = oGridDataSet.colcount - 1; i >= 0; i--) {
- if(i <= nFrozenCols)
- grid.setFormatColProperty(i, "band", "body");
- }
- }
-
- for(var i = 1; i < grid.getFormatColCount(); i++) {
- grid.setFormatColProperty(i, "size", 0);
- }
- for(var i = 0; i < refarr.length; i++) {
- var nCol = i;
-
- var colText = refarr[i];
- var col = grid.getBindCellIndex("body", colText);
- if(col == -1) continue;
-
- if(i != col) {
- var headText = grid.getCellProperty("head", col, "text");
- var bodyText = new Array();
- for(var j = 0; j < gridProperty.length; j++) {
- var cellval = grid.getCellProperty("body", col, gridProperty[j]);
- bodyText[j] = cellval;
- }
- grid.deleteContentsCol(col);
-
- nCol = grid.insertContentsCol(i);
- grid.setCellProperty("head", nCol, "text", headText);
-
- for(var j = 0; j < gridProperty.length; j++) {
- if(!utlf_isNull(bodyText[j])) {
- grid.setCellProperty("body", nCol, gridProperty[j], bodyText[j]);
- }
- }
- }
-
- grid.setFormatColProperty(nCol, "size", sizearr[i]);
- grid.setFormatColProperty(nCol, "band", "body");
- }
- if(!utlf_isNull(nFrozenCols)) {
- for(var i = 0; i < oGridDataSet.colcount; i++) {
- if(i <= nFrozenCols)
- grid.setFormatColProperty(i, "band", "left");
- else
- break;
- }
- }
- //} finally {
- grid.enableevent = true;
- grid.enableredraw = true;
- //}
- }
- function fgetWorkDupList() {
- var sWorkCd = ds_cond.getColumn(0, "workcd");
- var sWorkType = ds_cond.getColumn(0, "worktype");
- var sOrdDeptCd = ds_cond.getColumn(0, "orddeptcd");
-
- if(utlf_isNull(sWorkCd) || sWorkCd == "-"){
- sysf_messageBox("선택된 당직이 없습니다.", "E999");
- this.close();
- return;
- }
- if(sWorkType == "D" && (utlf_isNull(sOrdDeptCd) || sOrdDeptCd == "-")){
- sysf_messageBox("선택된 진료과가 없습니다.", "E999");
- this.close();
- return;
- }
-
- var oParam = {};
- oParam.id = "TRMMI00911";
- oParam.service = "prcpinfoapp.PrcpInfoEtcMngt";
- oParam.method = "reqGetWorkDupList";
- oParam.inds = "req=ds_cond";
- oParam.outds = "ds_workduplist=result";
- oParam.async = false;
- oParam.callback = "cf_TRMMI00911";
- tranf_submit(oParam);
-
- if( arErrorCode.pop("TRMMI00911") < 0 ){
- sysf_messageBox("당직 중복 조회를 실패하였습니다.", "E999");
- return false;
- }
- }
- function cf_TRMMI00911(sSvcId, nErrorCode, sErrorMsg) {
- arErrorCode.push(sSvcId, nErrorCode);
- }
- function btn_excel_onclick(obj:Button, e:ClickEventInfo)
- {
- grdf_exportExcel(grd_workduplist, "당직 중복 조회", "당직중복", false, null, "user", true);
- }
- function SMMMI00920_onmouseenter(obj:Form, e:MouseEventInfo)
- {
-
- }
- ]]></Script>
- </Form>
- </FDL>
|