123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SMANT01100" position="absolute 0 0 1202 776" titletext="환자조건별조회" oninit="SMANT01100_oninit" onload="SMANT01100_onload">
- <Layouts>
- <Layout>
- <Div position="absolute 0 25 1194 85" align="align:center top;" id="group2" class="div_SA">
- <Layouts>
- <Layout>
- <Static text="분류 :" position="absolute 16 8 80 25" id="caption2" class="search_name"/>
- <Button position="absolute 1122 7 1178 29" id="btn_search" class="btn1" taborder="7" text="조회" onclick="group2_btn_search_onclick"/>
- <Shape position="absolute 1103 7 1109 29" linetype="vertical" id="line13"/>
- <Static text="식사명:" position="absolute 560 8 634 25" id="caption7" class="search_name"/>
- <Static text="휴일 :" position="absolute 16 35 80 52" id="caption23" class="search_name"/>
- <Static text="나 이 :" position="absolute 395 35 490 52" id="caption25" class="search_name"/>
- <Static text="섭취일수 :" position="absolute 560 35 646 52" id="caption26" class="search_name"/>
- <Edit readonly="true" position="absolute 627 7 695 26" id="opt_dietcd" class="output"/>
- <Button position="absolute 700 7 716 23" id="btn_dietcdpopup" class="icon_search" taborder="2" text="" onclick="group2_btn_dietcdpopup_onclick"/>
- <MaskEdit position="absolute 465 34 495 53" align="align:center middle;" id="ipt_fage" class="input_search" taborder="4" mask="999" autoselect="true"/>
- <Static text="~" position="absolute 499 37 521 52" id="caption28"/>
- <MaskEdit position="absolute 513 34 543 53" align="align:center middle;" id="ipt_tage" class="input_search" taborder="5" mask="999" autoselect="true"/>
- <MaskEdit position="absolute 646 34 685 53" align="align:center middle;" id="ipt_intkcnt" class="input_search" taborder="6" mask="999" autoselect="true"/>
- <Edit readonly="true" position="absolute 720 7 810 26" id="opt_dietnm" class="output"/>
- <Static text="검색일자 :" position="absolute 823 8 909 25" id="caption1" class="search_name"/>
- <Calendar position="absolute 910 7 995 26" align="align:center middle;" id="ipt_todd" class="input_default" autoselect="true"/>
- <Static text="~" position="absolute 997 10 1019 25" id="caption3"/>
- <Calendar position="absolute 1010 7 1095 26" align="align:center middle;" id="ipt_fromdd" class="input_default" autoselect="true"/>
- <Static text="중분류:" position="absolute 395 8 469 25" id="caption4" class="search_name"/>
- <Combo position="absolute 465 7 550 26" id="cmb_mdlcd" class="combo_s_essential" innerdataset="@ds_init_baseinfo_dietmdlcd_A0047" datacolumn="cdnm" codecolumn="cdid"/>
- <Static text="입원일자 :" position="absolute 823 35 910 52" id="caption5" class="search_name"/>
- <Calendar position="absolute 910 35 995 54" align="align:center middle;" id="ipt_indd" class="input_default" autoselect="true"/>
- <cp_checkboxList id="chk_dietlrgcd" titletext="CheckBox List" taborder="8" text="cp_checkboxList00" scrollbars="none" position="absolute 70 5 387 25" style="background:transparent; " col="1" row="1" cellspacing="2" vcellspacing="0" itemWidth="100" itemHeight="20" overflow="visible"/>
- <cp_checkboxList id="chk_holiday" titletext="CheckBox List" taborder="9" text="cp_checkboxList00" scrollbars="none" position="absolute 70 32 387 52" style="background:transparent; " col="1" row="1" cellspacing="2" vcellspacing="0" itemWidth="100" itemHeight="20" overflow="visible"/>
- </Layout>
- </Layouts>
- </Div>
- <Shape position="absolute 0 108 1194 114" linetype="horizontal" id="line1" class="line_10"/>
- <Static text="환자조건별조회" position="absolute 0 92 120 108" id="caption20" class="tit_2"/>
- <Button position="absolute 1142 89 1193 108" id="btn_excel" class="btn7" text="엑셀" onclick="btn_excel_onclick"/>
- <Grid position="absolute 0 113 1194 747" id="grd_patmeal" binddataset="ds_main_patmeal_patmeallist">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="24"/>
- <Column size="0"/>
- <Column size="50"/>
- <Column size="70"/>
- <Column size="70"/>
- <Column size="80"/>
- <Column size="180"/>
- <Column size="190"/>
- <Column size="170"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="80"/>
- <Column size="60"/>
- <Column size="60"/>
- <Column size="60"/>
- </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="remark"/>
- <Cell col="9" text="remark1"/>
- <Cell col="10" text="remark2"/>
- <Cell col="11" text="remark3"/>
- <Cell col="12" text="입원일"/>
- <Cell col="13" text="재원일수"/>
- <Cell col="14" text="섭취일수"/>
- <Cell col="15" text="초/재"/>
- </Band>
- <Band id="body">
- <Cell celltype="head" expr="currow + 1"/>
- <Cell col="1" text="bind:ward"/>
- <Cell col="2" text="bind:room"/>
- <Cell col="3" text="bind:pid"/>
- <Cell col="4" text="bind:hngnm"/>
- <Cell col="5" style="align:left top;padding:5 1 2 1;" text="bind:sex" wordwrap="word"/>
- <Cell col="6" style="align:left top;padding:5 1 2 1;" text="bind:dietnm" wordwrap="word"/>
- <Cell col="7" style="align:left top;padding:5 1 2 1;" text="bind:remfactnm" wordwrap="word"/>
- <Cell col="8" style="align:left top;padding:5 1 2 1;" text="bind:remark" wordwrap="word"/>
- <Cell col="9" text="bind:remark1"/>
- <Cell col="10" text="bind:remark2"/>
- <Cell col="11" text="bind:remark3"/>
- <Cell col="12" displaytype="date" text="bind:indd" calendardisplaynulltype="none"/>
- <Cell col="13" text="bind:incnt"/>
- <Cell col="14" text="bind:intkcnt"/>
- <Cell col="15" displaytype="combo" edittype="combo" style="padding:1 2 1 2;" text="bind:fsexamflag" combodataset="ds_init_baseinfo_fsexamflag_P0021" combocodecol="cdid" combodatacol="cdnm" enable="false"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Static id="caption6" text="환자조건별조회" class="tit_1" position="absolute 0 0 189 25"/>
- <Button id="btn_reset" taborder="1" text="초기화" class="btn4" position="absolute 1124 748 1192 770" onclick="btn_reset_onclick"/>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_main_patmeal_patmeallist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="ward" type="STRING" size="256"/>
- <Column id="room" type="STRING" size="256"/>
- <Column id="pid" type="STRING" size="256"/>
- <Column id="hngnm" type="STRING" size="256"/>
- <Column id="sex" type="STRING" size="256"/>
- <Column id="dietnm" type="STRING" size="256"/>
- <Column id="remfactnm" type="STRING" size="256"/>
- <Column id="remark" type="STRING" size="256"/>
- <Column id="remark1" type="STRING" size="256"/>
- <Column id="remark2" type="STRING" size="256"/>
- <Column id="remark3" type="STRING" size="256"/>
- <Column id="indd" type="STRING" size="256"/>
- <Column id="incnt" type="STRING" size="256"/>
- <Column id="intkcnt" type="STRING" size="256"/>
- <Column id="fsexamflag" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="ward"/>
- <Col id="room"/>
- <Col id="pid"/>
- <Col id="hngnm"/>
- <Col id="sex"/>
- <Col id="dietnm"/>
- <Col id="remfactnm"/>
- <Col id="remark"/>
- <Col id="remark1"/>
- <Col id="remark2"/>
- <Col id="remark3"/>
- <Col id="indd"/>
- <Col id="incnt"/>
- <Col id="intkcnt"/>
- <Col id="fsexamflag"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_main" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="popupendflag" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="popupendflag"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_send_reqdata" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="dietlrgcd" type="STRING" size="256"/>
- <Column id="dietmdlcd" type="STRING" size="256"/>
- <Column id="dietnm" type="STRING" size="256"/>
- <Column id="dietcd" type="STRING" size="256"/>
- <Column id="holiday" type="STRING" size="256"/>
- <Column id="holiday1" type="STRING" size="256"/>
- <Column id="holiday2" type="STRING" size="256"/>
- <Column id="holiday3" type="STRING" size="256"/>
- <Column id="fage" type="STRING" size="256"/>
- <Column id="tage" type="STRING" size="256"/>
- <Column id="intkcnt" type="STRING" size="256"/>
- <Column id="fromdd" type="STRING" size="256"/>
- <Column id="todd" type="STRING" size="256"/>
- <Column id="indd" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="dietlrgcd"/>
- <Col id="dietmdlcd"/>
- <Col id="dietnm"/>
- <Col id="dietcd"/>
- <Col id="holiday"/>
- <Col id="holiday1"/>
- <Col id="holiday2"/>
- <Col id="holiday3"/>
- <Col id="fage"/>
- <Col id="tage"/>
- <Col id="intkcnt"/>
- <Col id="fromdd"/>
- <Col id="todd"/>
- <Col id="indd"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_init_baseinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="dietlrgcd" type="STRING" size="256"/>
- <Column id="dietmdlcd" type="STRING" size="256"/>
- <Column id="fsexamflag" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="dietlrgcd"/>
- <Col id="dietmdlcd"/>
- <Col id="fsexamflag"/>
- </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="count" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="count"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_cmd" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="minimum" type="STRING" size="256"/>
- <Column id="join" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="minimum"/>
- <Col id="join"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_init_baseinfo_fsexamflag_P0021" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_init_baseinfo_dietmdlcd_A0047" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_init_baseinfo_dietlrgcd_A0046" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_chk_dietlrgcd" 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="value" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="label">일반식</Col>
- <Col id="value">Q1</Col>
- </Row>
- <Row>
- <Col id="label">치료식</Col>
- <Col id="value">Q2</Col>
- </Row>
- <Row>
- <Col id="label">멸균식</Col>
- <Col id="value">Q3</Col>
- </Row>
- <Row>
- <Col id="label">비급여식</Col>
- <Col id="value">Q4</Col>
- </Row>
- <Row>
- <Col id="label">금식</Col>
- <Col id="value">Q9</Col>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_chk_holiday" 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="value" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="label">토요일제외</Col>
- <Col id="value">1</Col>
- </Row>
- <Row>
- <Col id="label">일요일제외</Col>
- <Col id="value">2</Col>
- </Row>
- <Row>
- <Col id="label">공휴일제외</Col>
- <Col id="value">3</Col>
- </Row>
- </Rows>
- </Dataset>
- </Objects>
- <Bind>
- <BindItem id="item0" compid="group2.cmb_mdlcd" propid="value" datasetid="ds_send_reqdata" columnid="dietmdlcd"/>
- <BindItem id="item1" compid="group2.opt_dietcd" propid="value" datasetid="ds_send_reqdata" columnid="dietcd"/>
- <BindItem id="item2" compid="group2.opt_dietnm" propid="value" datasetid="ds_send_reqdata" columnid="dietnm"/>
- <BindItem id="item3" compid="group2.ipt_todd" propid="value" datasetid="ds_send_reqdata" columnid="fromdd"/>
- <BindItem id="item4" compid="group2.ipt_fromdd" propid="value" datasetid="ds_send_reqdata" columnid="todd"/>
- <BindItem id="item5" compid="group2.ipt_fage" propid="value" datasetid="ds_send_reqdata" columnid="fage"/>
- <BindItem id="item6" compid="group2.ipt_tage" propid="value" datasetid="ds_send_reqdata" columnid="tage"/>
- <BindItem id="item7" compid="group2.ipt_intkcnt" propid="value" datasetid="ds_send_reqdata" columnid="intkcnt"/>
- <BindItem id="item8" compid="group2.ipt_indd" propid="value" datasetid="ds_send_reqdata" columnid="indd"/>
- </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";
- var arErrorCode = new HashArray();
- function SMANT01100_oninit(obj:Form, e:InitEventInfo)
- {
- frmf_initForm(obj); //폼 초기화
- }
- function SMANT01100_onload(obj:Form, e:LoadEventInfo)
- {
- var sProp = "col=5,row=1,cellspacing=2,vcellspacing=0,itemWidth=-1,itemHeight=20,overflow='visible'";
- group2.chk_dietlrgcd.setInitComp(sProp, ds_chk_dietlrgcd,"value","label", "fn_chk_dietlrgcd");
-
- var sProp = "col=3,row=1,cellspacing=2,vcellspacing=0,itemWidth=-1,itemHeight=20,overflow='visible'";
- group2.chk_holiday.setInitComp(sProp, ds_chk_holiday,"value","label", "fn_chk_holiday");
- finit();
- //화면open시 공통코드 setting
- var arrParam = [{dsNm: "ds_init_baseinfo_dietlrgcd_A0046", cdGrpId: "A0046"},
- {dsNm: "ds_init_baseinfo_dietmdlcd_A0047", cdGrpId: "A0047"},
- {dsNm: "ds_init_baseinfo_fsexamflag_P0021", cdGrpId: "P0021"}];
- appf_getCodeList(arrParam);
- frmf_addComboItem( "group2.cmb_mdlcd", " ", "", "above" );
-
- ds_send_reqdata.setColumn(0, "indd","");
- }
- function fn_chk_dietlrgcd(){
- var getData = String(group2.chk_dietlrgcd.getData()).replace(","," ");
- ds_send_reqdata.setColumn(0, "dietlrgcd", getData);
-
- ds_send_reqdata.setColumn(0, "dietmdlcd", "");
- }
- function fn_chk_holiday(){
- var getData = String(group2.chk_holiday.getData()).replace(","," ");
- ds_send_reqdata.setColumn(0, "holiday", getData);
- }
- // 화면 초기화
- function finit() {
- ds_main_patmeal_patmeallist.clearData();
- ds_send_reqdata.clearData();
- ds_send_reqdata.addRow();
- ds_send_reqdata.setColumn(0, "fromdd", utlf_getCurrentDate());
- ds_send_reqdata.setColumn(0, "todd", utlf_getCurrentDate());
- }
- function group2_btn_search_onclick(obj:Button, e:ClickEventInfo)
- {
- if (datacheck() == false){
- return;
- }
- //휴일조건 분리하기
- if ( !utlf_isNull(ds_send_reqdata.getColumn(0, "holiday")) ) {
- var temp = ds_send_reqdata.getColumn(0, "holiday");
- for ( i = 0; i < temp.length; i+=2 ) {
- if ( temp.substr(i,1) == "1" ) {
- ds_send_reqdata.setColumn(0, "holiday1", "1");
- } else if ( temp.substr(i,1) == "2" ) {
- ds_send_reqdata.setColumn(0, "holiday2", "2");
- } else if ( temp.substr(i,1) == "3" ) {
- ds_send_reqdata.setColumn(0, "holiday3", "3");
- }
- }
- }
-
- readfunc(); //조회 함수
-
- ds_send_reqdata.setColumn(0, "holiday1", "");
- ds_send_reqdata.setColumn(0, "holiday2", "");
- ds_send_reqdata.setColumn(0, "holiday3", "");
- }
- function readfunc(){
- ds_main_patmeal_patmeallist.clearData();
- var oParam = {};
- oParam.id = "TRANT01101";
- oParam.service = "dietsumapp.PatMealSrch";
- oParam.method = "reqGetPatMealSrch";
- oParam.inds = "reqdata=ds_send_reqdata";
- oParam.outds = "ds_main_patmeal_patmeallist=patmeallist";
- oParam.async = false;
- tranf_submit(oParam);
-
- ds_main_patmeal_patmeallist.addColumn("remark", "string");
- //remark1,2,3의 내용을 ','로 연결하기
- for (var i = 0; i < ds_main_patmeal_patmeallist.rowcount; i++) {
- var remark = "";
- var remark1 = ds_main_patmeal_patmeallist.getColumn(i, "remark1");
- var remark2 = ds_main_patmeal_patmeallist.getColumn(i, "remark2");
- var remark3 = ds_main_patmeal_patmeallist.getColumn(i, "remark3");
-
- if ( !utlf_isNull(remark1) || !utlf_isNull(remark2) || !utlf_isNull(remark3) ) {
- if ( !utlf_isNull(remark1) ) {
- remark = remark + remark1 + ",";
- }
- if ( !utlf_isNull(remark2) ) {
- remark = remark + remark2 + ",";
- }
- if ( !utlf_isNull(remark3) ) {
- remark = remark + remark3 + ",";
- }
- remark = remark.substr(0, remark.length-1);
- ds_main_patmeal_patmeallist.setColumn(i, "remark", remark);
- }
- }
- }
- //조회조건 적합성 체크
- function datacheck() {
- if (utlf_isNull(ds_send_reqdata.getColumn(0, "dietlrgcd"))){
- sysf_messageBox("분류는 필수선택", "I009");
- return false;
- }
- var fromdd = ds_send_reqdata.getColumn(0, "fromdd");
- var todd = ds_send_reqdata.getColumn(0, "todd");
- if (utlf_getDateInterval(fromdd, todd) < 0) {
- sysf_messageBox("검색 시작일은 종료일보다 클 수", "I004");
- return;
- }
- if (utlf_isNull(ds_send_reqdata.getColumn(0, "fage")) || utlf_isNull(ds_send_reqdata.getColumn(0, "tage"))){
- }else{
- var iage1 = parseFloat(ds_send_reqdata.getColumn(0, "fage"));
- var iage2 = parseFloat(ds_send_reqdata.getColumn(0, "tage"));
- if (iage1 > iage2){
- sysf_messageBox("나이의 From~To 설정이", "E016");
- return false;
- }
- }
- }
- function group2_btn_dietcdpopup_onclick(obj:Button, e:ClickEventInfo)
- {
- var objArg = new Object();
- objArg.arg_ds_send_reqdata = ds_send_reqdata;
-
- frmf_modal("SPANT01100", "SPANT01100", objArg, null, "", 200, 200, null, null, null, null, null, "M");
-
- readfunc();
- }
- function btn_reset_onclick(obj:Button, e:ClickEventInfo)
- {
- finit();
- }
- function btn_excel_onclick(obj:Button, e:ClickEventInfo)
- {
- grdf_exportExcel(grd_patmeal, "PatMeal_list" + utlf_getCurrentDate(), "sheetname1" , true, "" , "" , true);
- }
- ]]></Script>
- </Form>
- </FDL>
|