123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460 |
- <?xml version="1.0" encoding="utf-8" standalone="no"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SPPMC01701" position="absolute 0 0 800 600" titletext="장애 유형 및 등급별 중증 관리" onload="SPPMC01701_onload">
- <Layouts>
- <Layout>
- <Tab id="switch1" position="absolute 0 12 784 574" style="buttonbackground:stretch 10,10;background:stretch 10,26;border:0 solid #808080ff ;" anchor="default" tabindex="0">
- <Tabpages>
- <Tabpage id="sprd" selected="true" anchor="default">
- <Layouts>
- <Layout>
- <Grid id="grd_sprd" taborder="0" binddataset="ds_main_sprdlist_sprdinfo" useinputpanel="false" position="absolute 0 6 784 549" style="align:center ;">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="40"/>
- </Columns>
- <Rows>
- <Row size="24" band="head"/>
- <Row size="24"/>
- </Rows>
- <Band id="head">
- <Cell/>
- </Band>
- <Band id="body">
- <Cell celltype="head"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Shape id="line1" class="line_10" position="absolute 0 1 784 5"/>
- </Layout>
- </Layouts>
- </Tabpage>
- <Tabpage id="hist" anchor="default">
- <Layouts>
- <Layout>
- <Shape id="line9" class="line_10" linetype="horizontal" position="absolute 0 1 784 5" style="" anchor="default"/>
- <Grid id="grd_hist" binddataset="ds_main_histlist_histinfo" position="absolute 0 5 784 549" style="align:center ;" autofittype="col">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="24"/>
- <Column size="110"/>
- <Column size="55"/>
- <Column size="90"/>
- <Column size="90"/>
- <Column size="0"/>
- <Column size="65"/>
- <Column size="0"/>
- <Column size="50"/>
- <Column size="120"/>
- <Column size="0"/>
- <Column size="50"/>
- <Column size="120"/>
- </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="최초등록자ID"/>
- <Cell col="8" text="등록자"/>
- <Cell col="9" text="등록일시"/>
- <Cell col="10" text="최종수정자ID"/>
- <Cell col="11" text="수정자"/>
- <Cell col="12" text="수정일시"/>
- </Band>
- <Band id="body">
- <Cell celltype="head"/>
- <Cell col="1" displaytype="combo" edittype="combo" style="align:left middle;" text="bind:handcapflag" combodataset="ds_init_P0307list_P0307" combocodecol="cdid" combodatacol="cdnm"/>
- <Cell col="2" displaytype="combo" edittype="combo" style="align:left middle;" text="bind:handcapgrde" combodataset="ds_init_P0308list_P0308" combocodecol="cdid" combodatacol="cdnm"/>
- <Cell col="3" displaytype="date" edittype="date" style="align:left middle;" text="bind:fromdd" mask="yyyy-MM-dd" calendardisplaynulltype="nulltext"/>
- <Cell col="4" displaytype="date" edittype="date" style="align:left middle;" text="bind:todd" mask="yyyy-MM-dd" calendardisplaynulltype="nulltext"/>
- <Cell col="5" style="align:left middle;" text="bind:bftodd"/>
- <Cell col="6" displaytype="combo" edittype="combo" style="align:left middle;" text="bind:slflag" combodataset="ds_init_sllist_slinfo" combocodecol="value" combodatacol="label"/>
- <Cell col="7" style="align:left middle;" text="bind:fstrgstrid"/>
- <Cell col="8" style="align:left middle;" text="bind:fstrgstrnm"/>
- <Cell col="9" displaytype="date" style="align:left middle;" text="bind:fstrgstdt" mask="yyyy-MM-dd HH:mm:ss" calendardisplaynulltype="nulltext"/>
- <Cell col="10" style="align:left middle;" text="bind:lastupdtrid"/>
- <Cell col="11" style="align:left middle;" text="bind:lastupdtrnm"/>
- <Cell col="12" displaytype="date" style="align:left middle;" text="bind:lastupdtdt" mask="yyyy-MM-dd HH:mm:ss" calendardisplaynulltype="nulltext"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- </Layout>
- </Layouts>
- </Tabpage>
- </Tabpages>
- </Tab>
- <Static id="caption6" class="tit_1" position="absolute 0 0 260 25" style="" text="치과영역 중증 및 경증 장애 분류 기준"/>
- <Button id="btn_save" class="btn4" position="absolute 670 575 726 597" style="" text="저장" onclick="btn_save_onclick"/>
- <Button id="btn_close" class="btn4" position="absolute 728 575 784 597" style="" text="닫기" onclick="btn_close_onclick"/>
- <CheckBox datacolumn="datacolumn" codecolumn="codecolumn" columncount="-1" rowcount="-1" id="chk_hist" position="absolute 710 7 784 25" style="align:left ;" titletext="CheckBox List" text="이력 관리" scrollbars="none" cellspacing="2" vcellspacing="0" itemWidth="100" itemHeight="100" truevalue="Y" falsevalue="N">
- <Dataset id="innerdataset">
- <ColumnInfo>
- <Column id="codecolumn"/>
- <Column id="datacolumn"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="codecolumn">Y</Col>
- <Col id="datacolumn">이력 관리</Col>
- </Row>
- </Rows>
- </Dataset>
- </CheckBox>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_main_sprdlist_sprdinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo/>
- </Dataset>
- <Dataset id="ds_main_histlist_histinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo>
- <Column id="handcapflag" type="STRING" size="256"/>
- <Column id="handcapgrde" type="STRING" size="256"/>
- <Column id="fromdd" type="STRING" size="256"/>
- <Column id="todd" type="STRING" size="256"/>
- <Column id="bftodd" type="STRING" size="256"/>
- <Column id="slflag" type="STRING" size="256"/>
- <Column id="fstrgstrid" type="STRING" size="256"/>
- <Column id="fstrgstrnm" type="STRING" size="256"/>
- <Column id="fstrgstdt" type="STRING" size="256"/>
- <Column id="lastupdtrid" type="STRING" size="256"/>
- <Column id="lastupdtrnm" type="STRING" size="256"/>
- <Column id="lastupdtdt" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="handcapflag"/>
- <Col id="handcapgrde"/>
- <Col id="fromdd"/>
- <Col id="todd"/>
- <Col id="bftodd"/>
- <Col id="slflag"/>
- <Col id="fstrgstrid"/>
- <Col id="fstrgstrnm"/>
- <Col id="fstrgstdt"/>
- <Col id="lastupdtrid"/>
- <Col id="lastupdtrnm"/>
- <Col id="lastupdtdt"/>
- </Row>
- </Rows>
- </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_init" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo/>
- </Dataset>
- <Dataset id="ds_temp" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo>
- <Column id="temp" type="STRING" size="256"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo>
- <Column id="histflag" type="STRING" size="256"/>
- <Column id="updtstr" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="histflag"/>
- <Col id="updtstr"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_init_P0308list_P0308" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo>
- <Column id="cdnm" type="STRING" size="256"/>
- <Column id="cdid" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="cdnm"/>
- <Col id="cdid"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_init_sllist_slinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <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">N</Col>
- </Row>
- <Row>
- <Col id="label">중증</Col>
- <Col id="value">S</Col>
- </Row>
- <Row>
- <Col id="label">경증</Col>
- <Col id="value">L</Col>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_init_P0307list_P0307" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo>
- <Column id="cdnm" type="STRING" size="256"/>
- <Column id="cdid" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="cdnm"/>
- <Col id="cdid"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_temp_headinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_temp_sprdlist_sprdinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_temp_histlist_histinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- </Objects>
- <Bind>
- <BindItem id="item0" compid="chk_hist" propid="value" datasetid="ds_send" columnid="histflag"/>
- </Bind>
- <Script type="xscript4.0"><![CDATA[include "com_commonxp::comm_main.xjs";
- include "com_basiccodexp::ZBC001.xjs";
- var arErrorCode = new HashArray();
- var ON_LOAD = true;
- function fSearch() {
- ds_main_sprdlist_sprdinfo.clearData(); ds_main_sprdlist_sprdinfo.addRow();
- //switch1.sprd.grd_sprd.refresh();
- var cols = switch1.sprd.grd_sprd.getFormatColCount();
- for (var i = cols - 1; i >= 1; i--) {
- switch1.sprd.grd_sprd.deleteContentsCol(i); //.de.removeColumn(false);
- }
- //switch1.sprd.grd_sprd.refresh();
- ds_main_histlist_histinfo.clearData(); ds_main_histlist_histinfo.addRow();
- //grd_switch1.hist.refresh();
- // if (!submit("TRPMC01702", false)) {
- var oParam = {};
- oParam.id = "TRPMC01702";
- oParam.service = "patinfomngtapp.HandcapPat";
- oParam.method = "reqGetHandcapClass";
- oParam.outds = "ds_temp_headinfo=head ds_temp_sprdlist_sprdinfo=sprd ds_temp_histlist_histinfo=hist";
- oParam.async = false;
- oParam.callback = "cf_TRPMC01702";
- tranf_submit(oParam);
- if(arErrorCode.pop("TRPMC01702") < 0) {
- return;
- }
- // 이력 그리드 세팅
- ds_main_histlist_histinfo.clearData();
- ds_main_histlist_histinfo.copyData(ds_temp_histlist_histinfo);
- //grd_switch1.hist.refresh();
- var attr = ds_temp_headinfo.getColumn(0, "attr");
- if (attr == null || attr.length < 1) {
- return;
- }
- var attrArr = attr.split("^");
- var width = ds_temp_headinfo.getColumn(0, "width");
- var widthArr = width.split("^");
- var hIdx = switch1.sprd.grd_sprd.rowheader != "" ? 1 : 0;
-
- var caption = ds_temp_headinfo.getColumn(0, "caption");
- var captionArr = caption.split("^");
-
- for (var i = 0; i < attrArr.length; i++) {
- var icol = switch1.sprd.grd_sprd.appendContentsCol("body", false); // .addColumn(attrArr[i], false);
- var propertyArr = attrArr[i].split(";");
- for(var j = 0; j < propertyArr.length; j++) {
-
- var subPropertyArr = propertyArr[j].split(":");
- var strKey = String(subPropertyArr[0]).trim();
- var strValue = String(subPropertyArr[1]).trim();
- if(subPropertyArr.length > 1) {
- if( strKey == "ref") {
- switch1.sprd.grd_sprd.setCellProperty("body", icol, "text", "bind:" + strValue);
- }
- if(strKey == "type") {
- if(strValue == "combo") {
- switch1.sprd.grd_sprd.setCellProperty("body", icol, "displaytype", "combo");
- switch1.sprd.grd_sprd.setCellProperty("body", icol, "edittype", "combo");
- switch1.sprd.grd_sprd.setCellProperty("body", icol, "combodataset", "ds_init_sllist_slinfo");
- switch1.sprd.grd_sprd.setCellProperty("body", icol, "combocodecol", "value");
- switch1.sprd.grd_sprd.setCellProperty("body", icol, "combodatacol", "label");
- }
- else if(strValue == "output") {
- switch1.sprd.grd_sprd.setCellProperty("body", icol, "displaytype", "normal");
- switch1.sprd.grd_sprd.setCellProperty("body", icol, "editype", "none");
- }
- }
- if(strKey == "text-align") {
- if(strValue == "center") {
- switch1.sprd.grd_sprd.setCellProperty("body", icol, "align", "center middle");
- }
- else {
- switch1.sprd.grd_sprd.setCellProperty("body", icol, "align", "left middel");
- }
-
- }
- // if(strKey == "id") {
- // switch1.sprd.grd_sprd.setCellProperty("body", icol, "text", "bind:" + strValue);
- // }
-
- }
- else {
- subPropertyArr = propertyArr[j].split("=");
- if(subPropertyArr[0] == "visibility" && subPropertyArr[0] == "hidden") {
- switch1.sprd.grd_sprd.setFormatColProperty(icol, "size", "0");
- }
-
- }
- }
- }
-
- switch1.sprd.grd_sprd.setFormatColProperty(0, "size", 24);
- for (var i = 1; i <= widthArr.length; i++) {
- switch1.sprd.grd_sprd.setFormatColProperty(i, "size", widthArr[i - 1]);
- }
-
- for (var i = 1; i <= captionArr.length; i++) {
- switch1.sprd.grd_sprd.setCellProperty("head", i, "text", captionArr[i - 1]);
- }
- //switch1.sprd.grd_sprd.caption = ds_temp_headinfo.getColumn(0, "caption");
- //switch1.sprd.grd_sprd.refresh();
- // if (ON_LOAD) {
- // for (var i = 3; i < switch1.sprd.grd_sprd.cols; i++) {
- // var id = eval(switch1.sprd.grd_sprd.colAttribute(i, "ref"));
- //
- // var choices = id.createChild("xforms:choices", "");
- //
- // var itemset = choices.createChild("xforms:itemset", "nodeset:ds_init_sllist_slinfo");
- // itemset.createChild("xforms:label", "ref:label");
- // itemset.createChild("xforms:value", "ref:value");
- // }
- // }
- //
- // for (var i = 1; i <= cnt; i++) {
- // for (var j = 3; j < switch1.sprd.grd_sprd.cols; j++) {
- // switch1.sprd.grd_sprd.cellComboNodeset(i, j) = "ds_init_sllist_slinfo";
- // }
- // }
- ds_main_sprdlist_sprdinfo.clearData();
- ds_main_sprdlist_sprdinfo.copyData(ds_temp_sprdlist_sprdinfo);
- //switch1.sprd.grd_sprd.refresh();
- var cnt = ds_main_sprdlist_sprdinfo.rowcount;
-
- //switch1.sprd.grd_sprd.insertContentsCol("body", 0);
- switch1.sprd.grd_sprd.redraw();
- //switch1.sprd.grd_sprd.refresh();
- }
- function cf_TRPMC01702(sSvcId, nErrorCode, sErrorMsg) {
- arErrorCode.push(sSvcId, nErrorCode);
- }
- function SPPMC01701_onload(obj:Form, e:LoadEventInfo) {
- frmf_initForm(obj);
- grdf_initGrid(switch1.sprd.grd_sprd);
- grdf_initGrid(switch1.hist.grd_hist);
-
- //grdf_setGridSort(grd_XXX);
- grdf_setRowTypeIcon(switch1.sprd.grd_sprd, 0);
- grdf_setRowTypeIcon(switch1.hist.grd_hist, 0);
- var arrParam = [
- {dsNm: "ds_init_P0307list_P0307", cdGrpId: "P0307"}
- ,{dsNm: "ds_init_P0308list_P0308", cdGrpId: "P0308"}
- ];
-
- appf_getCodeList(arrParam );
- fSearch();
- ON_LOAD = false;
- }
- function btn_save_onclick(obj:Button, e:ClickEventInfo) {
- var str = "";
- if (ds_send.getColumn(0, "histflag") == "Y") {
- //str = grd_switch1.hist.getUpdateData();
- var updateDs = grdf_getGridUpdateData(switch1.hist.grd_hist, "all");
- grdf_setStatusColumn(updateDs, "m");
- str = dsf_getDsCSV(updateDs);
- } else {
- //str = switch1.sprd.grd_sprd.getUpdateData();
- var updateDs = grdf_getGridUpdateData(switch1.sprd.grd_sprd, "all");
- grdf_setStatusColumn(updateDs, "m");
- str = dsf_getDsCSV(updateDs);
- }
- str = str.replace(/\▦/g, "▥").replace(/\▩/g, "▤");
-
- ds_send.setColumn( 0, "updtstr", str);
-
- //submit("TXPMC01703");
- var oParam = {};
- oParam.id = "TXPMC01703";
- oParam.service = "patinfomngtapp.HandcapPat";
- oParam.method = "reqExeSetHandcapClass";
- oParam.inds = "req=ds_send";
- oParam.async = false;
- tranf_submit(oParam);
- fSearch();
- }
- function btn_close_onclick(obj:Button, e:ClickEventInfo) {
- this.close();
- }
- function chk_hist_onkillfocus(obj:cp_checkboxList, e:KillFocusEventInfo) {
- if (ds_send.getColumn(0, "histflag") == "Y") {
- //model.toggle("switch1.hist");
- switch1.tabindex = 1;
- } else {
- //model.toggle("switch1.sprd");
- switch1.tabindex = 0;
- }
- }
- ]]></Script>
- </Form>
- </FDL>
|