123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SMLPP02200" position="absolute 0 0 1256 805" titletext="정도관리 상세내역" oninit="SMLPP02200_oninit" onload="SMLPP02200_onload">
- <Layouts>
- <Layout>
- <Static id="caption6" text="정도관리 상세내역" class="tit_1" position="absolute 0 3 142 28"/>
- <Button id="btn_excel" taborder="1" text="EXCEL저장" onlbuttonup="btn_excel_onlbuttonup" class="btn7" position="absolute 1155 72 1256 92" anchor="top right" onclick="btn_excel_onclick"/>
- <Div id="group2" taborder="2" style="align:center top;" class="div_SA" position="absolute 0 29 1256 71" anchor="left top right">
- <Layouts>
- <Layout>
- <Shape id="line13" linetype="vertical" class="line_4" position="absolute 1108 7 1108 29" anchor="default"/>
- <Button id="btn_sea" taborder="9" text="조회" class="btn1" position="absolute 1190 10 1246 30" anchor="top right" onclick="group2_btn_sea_onclick"/>
- <Combo id="cbo_ptnocd" taborder="12" position="absolute 84 10 240 30" innerdataset="@ds_cond_ptnocode" codecolumn="ptnocd" datacolumn="ptnonm" anchor="default"/>
- <Edit id="ipt_fromptno" taborder="13" class="text_center" position="absolute 273 10 323 30" anchor="default" oneditclick="group2_ipt_fromptno_oneditclick"/>
- <Static id="caption1" text="병리번호" class="search_name" position="absolute 8 10 76 30" anchor="default"/>
- <Edit id="ipt_fromyear" taborder="14" class="text_center" position="absolute 243 10 270 30" anchor="default"/>
- <Static id="caption2" text="~" class="search_no_b" position="absolute 323 10 339 30" style="align:center;" anchor="default"/>
- <Edit id="ipt_toptno" taborder="15" class="text_center" position="absolute 369 10 419 30" anchor="default"/>
- <Edit id="ipt_toyear" taborder="16" class="text_center" position="absolute 339 10 366 30" anchor="default"/>
- <Static id="caption3" text="담당의" class="search_name" visible="false" position="absolute 443 10 498 30" anchor="default"/>
- <Combo id="cmb_chrgdrid" taborder="17" visible="false" position="absolute 506 10 626 30" innerdataset="@ds_cond_userinfolist" codecolumn="userid" datacolumn="usernm" index="-1" anchor="default"/>
- <Static id="caption5" text="~" position="absolute 1051 10 1067 30" style="align:center;" anchor="default"/>
- <Calendar id="ipt_cnclfromdd" taborder="10" class="input_s_essential" position="absolute 951 10 1051 30" mask="####-##-##" dateformat="yyyy-MM-dd" value="null" anchor="default"/>
- <Calendar id="ipt_cncltodd" taborder="11" class="input_s_essential" position="absolute 1067 10 1167 30" mask="####-##-##" dateformat="yyyy-MM-dd" anchor="default" onkeyup="group2_ipt_cncltodd_onkeyup"/>
- <Static id="cap_refdd" text="접수일자" class="search_name" position="absolute 875 10 943 30" anchor="default"/>
- </Layout>
- </Layouts>
- </Div>
- <Button id="button2" taborder="3" text="확장" onlbuttonup="button2_onlbuttonup" class="btn2" position="absolute 1108 72 1152 92" anchor="top right" onclick="button2_onclick"/>
- <Static id="caption4" text="상세내역" class="tit_2" position="absolute 2 76 75 92"/>
- <Grid id="grd_grdelist" taborder="4" useinputpanel="false" position="absolute 0 96 1256 805" anchor="all" binddataset="ds_grid_grd_grdelist" autofittype="col" cellsizingtype="row">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="0" band="left"/>
- <Column size="30" band="left"/>
- <Column size="60"/>
- <Column size="80"/>
- <Column size="90"/>
- <Column size="100"/>
- <Column size="383"/>
- <Column size="510"/>
- </Columns>
- <Rows>
- <Row size="27" band="head"/>
- <Row size="20"/>
- </Rows>
- <Band id="head">
- <Cell text="기관코드"/>
- <Cell col="1"/>
- <Cell col="2" text="접수일"/>
- <Cell col="3" text="등록일"/>
- <Cell col="4" text="병리번호"/>
- <Cell col="5" text="정도구분명"/>
- <Cell col="6" text="정도관리명"/>
- <Cell col="7" text="정도사유명"/>
- </Band>
- <Band id="body">
- <Cell class="text_center"/>
- <Cell col="1" celltype="head" expr="expr:currow+1"/>
- <Cell col="2" text="bind:acptdd"/>
- <Cell col="3" text="bind:rgstdd"/>
- <Cell col="4" class="text_center" text="bind:dispptno"/>
- <Cell col="5" class="text_left" text="bind:baseflagnm"/>
- <Cell col="6" style="align:left;" class="text_left" text="bind:grdegrupnm"/>
- <Cell col="7" style="align:left;" class="text_left" text="bind:resncnts"/>
- <Cell col="8"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Shape id="line1" class="line_10" position="absolute 0 93 1255 97" anchor="left top right"/>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_cond_ptnocode" 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="ptnocd" type="STRING" size="256"/>
- <Column id="ptnonm" type="STRING" size="256"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_grid_grd_grdelist" firefirstcount="0" firenextcount="0" useclientlayout="true" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <column id="instcd" type="STRING" size="256"/>
- <column id="dispptno" type="STRING" size="256"/>
- <column id="baseflagnm" type="STRING" size="256"/>
- <column id="grdegrupnm" type="STRING" size="256"/>
- <Column id="resncnts" type="STRING" size="256"/>
- <Column id="acptdd" type="STRING" size="256"/>
- <Column id="rgstdd" type="STRING" size="256"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_data_sysdtinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="sysdd" type="STRING" size="256"/>
- <Column id="systm" type="STRING" size="256"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_data_hospenvinfo" firefirstcount="0" firenextcount="0" useclientlayout="true" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false" onrowposchanged="ds_grid_grd_spclist_onrowposchanged">
- <ColumnInfo>
- <column id="instcd" type="STRING" size="256"/>
- <column id="lendrtnterm" type="STRING" size="256"/>
- <column id="recvqualmthdcd" type="STRING" size="256"/>
- <column id="plgydeptcd" type="STRING" size="256"/>
- <column id="plgyteamcd" type="STRING" size="256"/>
- <column id="doctjobgradcd" type="STRING" size="256"/>
- <column id="teamjobgradcd" type="STRING" size="256"/>
- <column id="csteeqmtip" type="STRING" size="256"/>
- <column id="csteeqmtport" type="STRING" size="256"/>
- <column id="slideqmtip" type="STRING" size="256"/>
- <column id="norcptacptyn" type="STRING" size="256"/>
- <column id="slidbceqmtip" type="STRING" size="256"/>
- <column id="acptreaddr" type="STRING" size="256"/>
- <column id="slidbceqmtip2" type="STRING" size="256"/>
- <column id="slidbceqmtport2" type="STRING" size="256"/>
- <column id="repttitl" type="STRING" size="256"/>
- <column id="repttitl2" type="STRING" size="256"/>
- <column id="plgyrecroom1" type="STRING" size="256"/>
- <column id="plgyrecroom2" type="STRING" size="256"/>
- <column id="ptnoacptflag" type="STRING" size="256"/>
- <column id="autoacptflagcd" type="STRING" size="256"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_cond_userinfolist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <column id="choi" type="STRING" size="256"/>
- <column id="dutplceinstcd" type="STRING" size="256"/>
- <column id="userid" type="STRING" size="256"/>
- <column id="usernm" type="STRING" size="256"/>
- <column id="jobkindcd" type="STRING" size="256"/>
- <column id="userabbr" type="STRING" size="256"/>
- <column id="mpphonno" type="STRING" size="256"/>
- <column id="dutunitcd" type="STRING" size="256"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_init" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="acptfromdd" type="STRING" size="256"/>
- <Column id="acpttodd" type="STRING" size="256"/>
- <Column id="refmthdcd" type="STRING" size="256"/>
- <Column id="refval" type="STRING" size="256"/>
- <Column id="ptnocode" type="STRING" size="256"/>
- <Column id="fromyear" type="STRING" size="256"/>
- <Column id="fromptno" type="STRING" size="256"/>
- <Column id="toyear" type="STRING" size="256"/>
- <Column id="toptno" type="STRING" size="256"/>
- <Column id="chrgdrid" type="STRING" size="256"/>
- <Column id="refflagcd" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="acptfromdd"/>
- <Col id="acpttodd"/>
- <Col id="refmthdcd"/>
- <Col id="refval"/>
- <Col id="ptnocode"/>
- <Col id="fromyear"/>
- <Col id="fromptno"/>
- <Col id="toyear"/>
- <Col id="toptno"/>
- <Col id="chrgdrid"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_hidden" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="detlrefcrite" type="STRING" size="256"/>
- <Column id="userdeptcd" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- </Objects>
- <Bind>
- <BindItem id="item0" compid="group2.cbo_ptnocd" propid="value" datasetid="ds_init" columnid="ptnocode"/>
- <BindItem id="item1" compid="group2.ipt_fromyear" propid="value" datasetid="ds_init" columnid="fromyear"/>
- <BindItem id="item2" compid="group2.ipt_fromptno" propid="value" datasetid="ds_init" columnid="fromptno"/>
- <BindItem id="item3" compid="group2.ipt_toyear" propid="value" datasetid="ds_init" columnid="toyear"/>
- <BindItem id="item4" compid="group2.ipt_toptno" propid="value" datasetid="ds_init" columnid="toptno"/>
- <BindItem id="item5" compid="group2.cmb_chrgdrid" propid="value" datasetid="ds_init" columnid="chrgdrid"/>
- <BindItem id="item6" compid="group2.ipt_cnclfromdd" propid="value" datasetid="ds_init" columnid="acptfromdd"/>
- <BindItem id="item7" compid="group2.ipt_cncltodd" propid="value" datasetid="ds_init" columnid="acpttodd"/>
- </Bind>
- <Script type="xscript4.0"><![CDATA[/***************************************************************************************
- * System Name : KU2.0
- * Job Name :
- * File Name : SMLPP02200_정도관리상세내역.xfdl
- * Creator :
- * Make Date : 2015-11-16
- *
- * Description :
- *---------------------------------------------------------------------------------------
- * Modify Date Modifier Modify Description
- *---------------------------------------------------------------------------------------
- * 2015-11-16 DBS Converting Program(TF->XP)
- *
- *---------------------------------------------------------------------------------------
- ****************************************************************************************/
- //=======================================================================================
- // Lib Include
- //---------------------------------------------------------------------------------------
- include "com_commonxp::comm_main.xjs";
- include "lis_commonxp::LZZ001.xjs";
- include "lis_commonxp::LPZ001.xjs";
- var instcd = "";
- var gRowSize = 0; // 정도관리명 목록 확장 구분
- var refval = "";
-
- function SMLPP02200_oninit(obj:Form, e:InitEventInfo)
- {
- frmf_initForm(obj);
-
- }
- function SMLPP02200_onload(obj:Form, e:LoadEventInfo)
- {
- lf_exeInitialize();
- }
- function lf_exeInitialize()
- {
- var sCurDate = "";
-
- ds_grid_grd_grdelist.clearData();
-
- instcd = sysf_getUserInfo("dutplceinstcd");
-
- dsf_createDsRow("ds_temp_search", [{col: "instcd", val:instcd }]);
-
- // 서브밋호출
- var oParam = {};
- oParam.id = "TRLPZ00101";
- oParam.service = "plgycomnusemngtapp.BaseInfoCode";
- oParam.method = "reqGetHospitalEnvironmentSetInfo";
- oParam.inds = "refData=ds_temp_search";
- oParam.outds = "ds_data_hospenvinfo=hospenvinfo";
- oParam.async = false;
- //oParam.callback = "cbf_SMLPP02200";
- tranf_submit(oParam);
-
- var oParam = {};
- oParam.id = "TRLPZ00102";
- oParam.service = "plgycomnusemngtapp.BaseInfoCode";
- oParam.method = "reqGetSystemDateTimeInformation";
- oParam.inds = "refData=ds_temp_search";
- oParam.outds = "ds_data_sysdtinfo=sysdtinfo";
- oParam.async = false;
- //oParam.callback = "cf_TRLPZ00102";
- tranf_submit(oParam);
-
- ds_temp_search.clear();
- dsf_createDsRow("ds_temp_search", [{col: "instcd", val : instcd }
- ,{col : "refflagcd", val : "0"}]);
-
- var oParam = {};
- oParam.id = "TRLPZ00109";
- oParam.service = "plgycomnusemngtapp.BaseInfoCode";
- oParam.method = "reqGetPtNoCdList";
- oParam.inds = "refdata=ds_temp_search";
- oParam.outds = "ds_cond_ptnocode=rsltlist";
- oParam.async = false;
- //oParam.callback = "cf_TRLPZ00109";
- tranf_submit(oParam);
-
- lpzfUserDeptCd(ds_data_hospenvinfo, ds_hidden);
-
- dsf_createDsRow( "ds_send", [{col : "userdeptcd", val : ds_hidden.getColumn(0, "userdeptcd")}
- ,{col : "doctjobgradcd", val : ds_data_hospenvinfo.getColumn(0, "doctjobgradcd")}
- ,{col : "teamjobgradcd", val : ds_data_hospenvinfo.getColumn(0, "teamjobgradcd")}]);
-
- var oParam = {};
- oParam.id = "TRLPZ00105";
- oParam.service = "plgycomnusemngtapp.BaseInfoCode";
- oParam.method = "reqGetUserInfoList";
- oParam.inds = "refdata=ds_send";
- oParam.outds = "ds_cond_userinfolist=reflist";
- oParam.async = false;
- //oParam.callback = "cf_TRLPZ00105";
- tranf_submit(oParam);
-
- var iMaxRow = Number(ds_cond_userinfolist.rowcount) +1;
- // 노드생성
- ds_cond_userinfolist.setColumn(Number(iMaxRow), "userid", "");
- ds_cond_userinfolist.setColumn(Number(iMaxRow), "usernm", "전체");
- ds_cond_userinfolist.setColumn(Number(iMaxRow), "jobkindcd", "1");
- sCurDate = ds_data_sysdtinfo.getColumn(0, "sysdd");
-
- // 초기값 설정
- ds_init.setColumn(0, "acptfromdd", ds_data_sysdtinfo.getColumn(0, "sysdd")); // 등록일자(From)
- ds_init.setColumn(0, "acpttodd", ds_data_sysdtinfo.getColumn(0, "sysdd")); // 등록일자(To)
- ds_init.setColumn(0, "chrgdrid", ""); // 담당의ID
- ds_init.setColumn(0, "refval", ""); // 검색값
- ds_init.setColumn(0, "ptnocode", "");
- ds_init.setColumn(0, "fromyear", sCurDate.substr(2,2));
- ds_init.setColumn(0, "fromptno", "");
- ds_init.setColumn(0, "toyear", sCurDate.substr(2,2));
- ds_init.setColumn(0, "toptno", "");
-
- }
- //조회버튼
- function group2_btn_sea_onclick(obj:Button, e:ClickEventInfo)
- {
- lf_getGrdeList();
- }
- function group2_ipt_cncltodd_onkeyup(obj:Calendar, e:KeyEventInfo)
- {
- if(e.keycode == 13)
- {
- lf_getGrdeList();
- }
- }
- //조회
- function lf_getGrdeList()
- {
- var sNode = ds_grid_grd_grdelist;
- var sTemp = "";
- var sFromDD = ds_init.getColumn(0, "acptfromdd");
- var sToDD = ds_init.getColumn(0, "acpttodd");
-
- if(!utlf_isNull(ds_init.getColumn(0, "ptnocode")))
- {
- if(utlf_isNull(ds_init.getColumn(0, "fromyear")))
- {
- ds_init.getColumn(0, "fromyear", sFromDD.substr(2,2));
- }
- else
- {
- sTemp = ds_init.getColumn(0, "fromyear");
- ds_init.setColumn(0, "fromyear", sTemp.getLeftPad(2, "0"));
- }
- if( utlf_isNull(ds_init.getColumn(0, "fromptno")))
- {
- ds_init.setColumn(0, "fromptno", "000000");
- }
- else
- {
- sTemp = ds_init.getColumn(0, "fromptno");
- ds_init.setColumn(0, "fromptno", sTemp.getLeftPad(6, "0"));
- }
- if( utlf_isNull(ds_init.getColumn(0, "toyear")))
- {
- ds_init.setColumn(0, "toyear", sToDD.substr(2,2));
- }
- else
- {
- sTemp = ds_init.getColumn(0, "toyear");
- ds_init.setColumn(0, "toyear", sTemp.getLeftPad(2, "0"));
- }
-
- if( utlf_isNull(ds_init.getColumn(0, "toptno")))
- {
- ds_init.setColumn(0, "toptno", "999999");
- }
- else
- {
- sTemp = ds_init.getColumn(0, "toptno");
- ds_init.setColumn(0, "toptno", sTemp.getLeftPad(6, "0"));
- }
- }
-
- sTemp = ds_init.getColumn(0, "ptnocode");
-
-
- dsf_createDsRow("ds_temp_search", [{col: "instcd", val : sysf_getUserInfo("dutplceinstcd") }
- , {col: "grdefromdd", val : ds_init.getColumn(0, "acptfromdd") }
- , {col: "grdetodd", val : ds_init.getColumn(0, "acpttodd") }
- , {col: "chrgdrid", val : ds_init.getColumn(0, "chrgdrid") }
- , {col: "ptnocode", val : sTemp.replace("-", "")}
- , {col: "fromyear", val : ds_init.getColumn(0, "fromyear")}
- , {col: "fromptno", val : ds_init.getColumn(0, "fromptno")}
- , {col: "toyear", val : ds_init.getColumn(0, "toyear")}
- , {col: "toptno", val : ds_init.getColumn(0, "toptno")}
- , {col :"refflagcd", val : ds_init.getColumn(0, "refflagcd")}]);
- // 서브밋호출
- var oParam = {};
- oParam.id = "TRLPP02201";
- oParam.service = "plgyrefmngtapp.AcptSpecRef";
- oParam.method = "reqGetGrdeDetlList";
- oParam.inds = "refData=ds_temp_search";
- oParam.outds = "ds_grid_grd_grdelist=refrslt";
- oParam.async = false;
- //oParam.callback = "cbf_SMLPP02200";
- tranf_submit(oParam);
- }
- //확장버튼
- function button2_onclick(obj:Button, e:ClickEventInfo)
- {
- lf_exeResizeRow()
- }
- // 정도관리명 row 크기 변경
- function lf_exeResizeRow()
- {
- // 초기상태
- if(gRowSize == 0)
- {
- grd_grdelist.autosizingtype = "row";
- gRowSize = 1;
- }
- else if(gRowSize == 1)
- {
- grd_grdelist.autosizingtype = "none";
- gRowSize = 0;
- }
- }
- // 그리드 자료 Excel로 저장 처리 function
- function lf_exeSaveToExcel()
- {
- grdf_exportExcel(grd_grdelist, "정도관리 상세내역", "정도관리 상세내역", true);
- }
- function btn_excel_onclick(obj:Button, e:ClickEventInfo)
- {
- lf_exeSaveToExcel();
- }
- ]]></Script>
- </Form>
- </FDL>
|