123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317 |
- <?xml version="1.0" encoding="utf-8" standalone="no"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml" />
- <Form id="SMPIS00800" position="absolute 0 0 1211 784" titletext="유알스코프" onload="SMPIS00800_onload">
- <Layouts>
- <Layout>
- <Div id="group1" position="absolute 0 0 1190 13" style="">
- <Layouts>
- <Layout>
- <Static id="caption1" class="tit_1" position="absolute 0 0 173 14" style="" text="유알스코프" />
- </Layout>
- </Layouts>
- </Div>
- <Div id="group2" scrollbars="" position="absolute 0 13 1190 745" style="">
- <Layouts>
- <Layout>
- <Div id="group4" position="absolute 0 645 1190 680" style="align: top;">
- <Layouts>
- <Layout>
- <Shape id="roundrect2" anchor="default" type="roundrectangle" position="absolute 0 0 1190 35" style="" />
- <Static id="caption5" class="search_name" position="absolute 10 10 86 27" style="" text="진료년월" />
- <Calendar id="ipt_ordym" class="input_search" taborder="1" mask="yyyy-mm" position="absolute 100 10 180 29" style="" anchor="default" />
- <Shape id="line2" class="line_4" linetype="vertical" position="absolute 954 5 957 24" style="" anchor="default" />
- <Button id="button1" class="btn1_letter2" taborder="2" position="absolute 980 5 1036 27" style="" text="생성" onclick="group2_group4_button1_onclick" />
- <Button id="button6" class="btn1_letter6" taborder="2" position="absolute 1070 5 1174 27" style="" text="배치결과확인" onclick="group2_group4_button6_onclick" />
- <Static id="caption4" class="search_name" position="absolute 210 10 286 27" style="" text="내원유형" />
- <Radio datacolumn="datacolumn" codecolumn="codecolumn" columncount="-1" rowcount="-1" id="rdo_ioflag" class="radio_search" position="absolute 295 10 475 29" style="">
- <Dataset id="innerdataset">
- <ColumnInfo>
- <Column id="codecolumn" />
- <Column id="datacolumn" />
- </ColumnInfo>
- <Rows>
- <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>
- </Layout>
- </Layouts>
- </Div>
- <Static id="caption12" class="tit_2" position="absolute 0 15 100 28" style="" text="진료과 마스터" />
- <Button id="button2" class="btn2_letter4" position="absolute 1120 12 1184 31" style="" text="엑셀저장" onclick="group2_button2_onclick" />
- <Grid id="grd_orddept" binddataset="ds_main_grdlist_orddeptlist" class="datagrid2" position="absolute 0 35 1190 275" style="">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="105" />
- <Column size="161" />
- <Column size="88" />
- <Column size="105" />
- <Column size="107" />
- </Columns>
- <Rows>
- <Row size="24" band="head" />
- <Row size="24" />
- </Rows>
- <Band id="head">
- <Cell text="세부진료과 코드" />
- <Cell col="1" text="세부진료과명" />
- <Cell col="2" text="심평원 공통
진료과목 코드" />
- <Cell col="3" text="코드의 종료 년월" />
- <Cell col="4" text="새로운 대체 코드" />
- </Band>
- <Band id="body">
- <Cell text="bind:deptcd" />
- <Cell col="1" text="bind:depthngnm" />
- <Cell col="2" text="bind:reqdeptno" />
- <Cell col="3" text="bind:valitodd" />
- <Cell col="4" text="bind:newcode" />
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Button id="button3" class="btn1_letter2" taborder="2" position="absolute 1055 10 1111 32" style="" text="조회" onclick="group2_button3_onclick" />
- <Button id="button4" class="btn2_letter4" position="absolute 1120 300 1184 319" style="" text="엑셀저장" onclick="group2_button4_onclick" />
- <Button id="button5" class="btn1_letter2" taborder="2" position="absolute 1055 298 1111 320" style="" text="조회" onclick="group2_button5_onclick" />
- <Static id="caption2" class="tit_2" position="absolute 0 303 100 316" style="" text="의사 마스터" />
- <Grid id="grd_drmst" binddataset="ds_main_grdlist_drlist" class="datagrid2" position="absolute 0 323 1190 585" style="">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="87" />
- <Column size="65" />
- <Column size="111" />
- <Column size="67" />
- <Column size="103" />
- </Columns>
- <Rows>
- <Row size="24" band="head" />
- <Row size="24" />
- </Rows>
- <Band id="head">
- <Cell text="의사코드" />
- <Cell col="1" text="의사이름" />
- <Cell col="2" text="세부진료과 코드" />
- <Cell col="3" text="직위" />
- <Cell col="4" text="코드의 종료 년월" />
- </Band>
- <Band id="body">
- <Cell text="bind:userid" />
- <Cell col="1" text="bind:usernm" />
- <Cell col="2" text="bind:dutplcecd" />
- <Cell col="3" text="bind:position" />
- <Cell col="4" text="bind:todd" />
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Static id="caption3" class="tit_2" position="absolute 0 620 113 633" style="" text="세부진료과 파일" />
- </Layout>
- </Layouts>
- </Div>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_main_grdlist_orddeptlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo>
- <Column id="deptcd" type="STRING" size="256" />
- <Column id="depthngnm" type="STRING" size="256" />
- <Column id="reqdeptno" type="STRING" size="256" />
- <Column id="valitodd" type="STRING" size="256" />
- <Column id="newcode" type="STRING" size="256" />
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="deptcd"></Col>
- <Col id="depthngnm"></Col>
- <Col id="reqdeptno"></Col>
- <Col id="valitodd"></Col>
- <Col id="newcode"></Col>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_main_grdlist_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" />
- <Column id="dutplcecd" type="STRING" size="256" />
- <Column id="position" type="STRING" size="256" />
- <Column id="todd" type="STRING" size="256" />
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="userid"></Col>
- <Col id="usernm"></Col>
- <Col id="dutplcecd"></Col>
- <Col id="position"></Col>
- <Col id="todd"></Col>
- </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="ordym" type="STRING" size="256" />
- <Column id="srchkind" type="STRING" size="256" />
- <Column id="ioflag" type="STRING" size="256" />
- </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_grdlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo />
- </Dataset>
- </Objects>
- <Bind>
- <BindItem id="item0" compid="group2.group4.ipt_ordym" propid="value" datasetid="ds_send" columnid="ordym" />
- <BindItem id="item1" compid="group2.group4.rdo_ioflag" propid="value" datasetid="ds_send" columnid="ioflag" />
- </Bind>
- <Script type="xscript4.0"><![CDATA[function SMPIS00800_onload(obj:Form, e:LoadEventInfo) {
- frmf_initForm(obj);
- //grdf_initGrid(grd_XXX);
- //grdf_setGridSort(grd_XXX);
- //grdf_setRowTypeIcon(grd_XXX, 0_컬럼위치값);
- // 화면 초기화
- fInitialize();
- }
- include '../../.._com_commonweb_js_common.js'
- include '../../.._com_commonweb_js_utilHelper.js'
- include '../../.._com_commonweb_js_numericHelper.js'
- include '../../.._com_commonweb_js_stringHelper.js'
- include '../../.._com_commonweb_js_dateHelper.js'
- include '../../.._com_basiccodeweb_js_ZBC001.js'
- include '../../.._com_commonweb_js_tfHelper.js'
- include '../../.._com_batchinfoweb_js_ZSB001.js'
- // 화면 초기화
- function fInitialize()
- {
- ds_main_grdlist_orddeptlist.clearData(); // 그리드 초기화
- ds_main_grdlist_drlist.clearData(); // 그리드 초기화
- group2.group4.rdo_ioflag.select(0);
- //model.refresh();
- }
- function fSearch()
- {
- dsf_makeValue( ds_tmp, "tmpdept", "string", "" );
- dsf_makeValue( ds_tmp, "tmpdr", "string", "" );
- model.copyNode("ds_tmp_tmpdept","ds_main_grdlist[1]"); // submit이 하나로 날아가서 기존의 노드를 다 날려 먹는다
- model.copyNode("ds_tmp_tmpdr","ds_main_grdlist[2]"); // 그래서 조회 후 기존의 데이터를 다시 뿌려준다.
- // submit("TRPIS00800");
- var oParam = {};
- oParam.id = "TRPIS00800";
- oParam.service = "aftjudgstatapp.UrScope";
- oParam.method = "reqGetUrScope";
- oParam.inds = "req=ds_";
- oParam.outds = "ds_=orddeptlist ds_=drlist";
- oParam.async = false;
- oParam.callback = "cf_TRPIS00800";
- tranf_submit(oParam);
- /*
- function cf_TRPIS00800(sSvcId, nErrorCode, sErrorMsg) {
- if(nErrorCode < 0) return;
- }
- function cf_TRPIS00800(sSvcId, nErrorCode, sErrorMsg) {
- arErrorCode.push(sSvcId, nErrorCode);
- }
- arErrorCode.pop("TRPIS00800") > -1
- arErrorCode.pop("TRPIS00800") < 0
- */
- if ( ds_send.getColumn(0, "srchkind") == "dr") {
- ds_main_grdlist.copyRow( 1, ds_tmp_tmpdept, 0);
- } else if ( ds_send.getColumn(0, "srchkind") == "orddept") {
- ds_main_grdlist.copyRow( 2, ds_tmp_tmpdr, 0);
- } else {
- ds_main_grdlist.copyRow( 1, ds_tmp_tmpdept, 0);
- ds_main_grdlist.copyRow( 2, ds_tmp_tmpdr, 0);
- }
- //model.refresh();
- }
- function group2_group4_button1_onclick(obj:Button, e:ClickEventInfo) {
- if (group2.group4.ipt_ordym.value != "") {
- ds_send.setColumn( 0, "srchkind","orddetail");
- fSearch();
- } else {
- sysf_messageBox("진료년월 조건은 ", "I003");
- }
- }
- function group2_group4_button6_onclick(obj:Button, e:ClickEventInfo) {
- var todd = utlf_getCurrentDate();
- todd = todd.toDate().getAddDate(+1, 'D');
- zsbfOpenBatchLogPopup("aftjudgstatmgr.UrScopeBatch",utlf_getCurrentDate(),todd.getDateFormat());
- }
- function group2_button2_onclick(obj:Button, e:ClickEventInfo) {
- if (group2.grd_orddept.rows > 1) {
- var fileName = window.fileDialog("save", "", false, "진료과마스터_" + utlf_getCurrentDate(), "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
- if (fileName != "") {
- //datagrid.saveExcel의 7번째 인자 값(boolean) : 그리드의 col type=combo일 경우 엑셀저장내용이 lable 또는 value로 설정 함
- grdf_exportExcel(// grd_clbsmast, "Sheet1", fileName, false, "" , 'user' , true);
- group2.grd_orddept.saveExcel(fileName, "sheetname:;colhiddenextend:false;rowhiddenextend:false;", true, true, "", "", true);
- }
- } else {
- sysf_messageBox("엑셀저장할 대상이 ", "I004"); ///엑셀저장할 대상자가 없습니다.
- }
- }
- function group2_button3_onclick(obj:Button, e:ClickEventInfo) {
- ds_send.setColumn( 0, "srchkind","orddept");
- fSearch();
- }
- function group2_button4_onclick(obj:Button, e:ClickEventInfo) {
- if (group2.grd_drmst.rows > 1) {
- var fileName = window.fileDialog("save", "", false, "의사마스터_" + utlf_getCurrentDate(), "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
- if (fileName != "") {
- //datagrid.saveExcel의 7번째 인자 값(boolean) : 그리드의 col type=combo일 경우 엑셀저장내용이 lable 또는 value로 설정 함
- grdf_exportExcel(// grd_clbsmast, "Sheet1", fileName, false, "" , 'user' , true);
- group2.grd_drmst.saveExcel(fileName, "sheetname:;colhiddenextend:false;rowhiddenextend:false;", true, true, "", "", true);
- }
- } else {
- sysf_messageBox("엑셀저장할 대상이 ", "I004"); ///엑셀저장할 대상자가 없습니다.
- }
- }
- function group2_button5_onclick(obj:Button, e:ClickEventInfo) {
- ds_send.setColumn( 0, "srchkind","dr");
- fSearch();
- }
- ]]></Script>
- </Form>
- </FDL>
|