123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SMPMC06700" position="absolute 0 0 1005 797" titletext="산재후유증상관리" onload="SMPMC06700_onload" oninit="SMPMC06700_oninit">
- <Layouts>
- <Layout>
- <Static id="caption6" text="산재후유증상관리" class="tit_1" position="absolute 0 0 151 24"/>
- <Div id="group2" taborder="1" class="div_SA" position="absolute 0 24 1000 64">
- <Layouts>
- <Layout>
- <Static id="caption2" text="후유진단코드:" class="search_name" position="absolute 7 12 114 29"/>
- <Shape id="line13" linetype="vertical" class="line_4" position="absolute 906 6 912 31"/>
- <Button id="btn_search" taborder="6" text="조회" class="btn1" position="absolute 925 9 981 31" onclick="group2_btn_search_onclick"/>
- <Static id="caption3" text="코드형태:" class="search_name" position="absolute 194 11 278 28"/>
- <Static id="caption4" text="시작일자:" class="search_name" position="absolute 339 12 421 29"/>
- <Edit id="ipt_pid" taborder="7" class="input_s_essential" position="absolute 108 10 177 29" autoselect="true" onkeydown="group2_ipt_pid_onkeydown"/>
- <Calendar id="input37" taborder="8" class="input_default" position="absolute 409 10 494 29"/>
- <Static id="caption14" text="종료일자:" class="search_name" position="absolute 511 12 593 29"/>
- <Calendar id="input1" taborder="9" class="input_default" position="absolute 581 10 666 29"/>
- <CheckBox id="bool1" taborder="10" value="N" truevalue="Y" falsevalue="N" position="absolute 695 9 710 29"/>
- <Static id="caption5" text="이력포함" position="absolute 716 13 771 28"/>
- <Combo id="combo1" taborder="11" codecolumn="codecolumn" datacolumn="datacolumn" class="combo_default" position="absolute 267 10 317 29">
- <Dataset id="innerdataset">
- <ColumnInfo>
- <Column id="codecolumn"/>
- <Column id="datacolumn"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="codecolumn">-</Col>
- <Col id="datacolumn">전체</Col>
- </Row>
- <Row>
- <Col id="codecolumn">M</Col>
- <Col id="datacolumn">상위형</Col>
- </Row>
- <Row>
- <Col id="codecolumn">S</Col>
- <Col id="datacolumn">하위형</Col>
- </Row>
- </Rows>
- </Dataset>
- </Combo>
- </Layout>
- </Layouts>
- </Div>
- <Static id="caption1" text="산재후유증상진단리스트" class="tit_2" position="absolute 0 327 169 344"/>
- <Shape id="line1" class="line_1" position="absolute 0 343 1000 349" style="strokepen:3 solid #33bbbbff;"/>
- <Grid id="grd_permanentsymp" class="datagrid2" taborder="2" binddataset="ds_main_permanentsymplist_permanentsymp" useinputpanel="false" position="absolute 0 348 1000 763" autoenter="select" cellsizingtype="col" oncellclick="grd_permanentsymp_oncellclick">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="24"/>
- <Column size="67"/>
- <Column size="98"/>
- <Column size="42"/>
- <Column size="85"/>
- <Column size="85"/>
- <Column size="40"/>
- <Column size="70"/>
- <Column size="70"/>
- <Column size="70"/>
- <Column size="70"/>
- <Column size="70"/>
- <Column size="70"/>
- <Column size="70"/>
- <Column size="70"/>
- </Columns>
- <Rows>
- <Row size="31" 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="적용대상"/>
- <Cell col="9" text="관리내용"/>
- <Cell col="10" text="참고사항"/>
- <Cell col="11" text="최초 등록일시"/>
- <Cell col="12" text="최초등록자"/>
- <Cell col="13" text="최종 수정일시"/>
- <Cell col="14" text="최종수정자"/>
- </Band>
- <Band id="body">
- <Cell celltype="head"/>
- <Cell col="1" style="align:left middle;" text="bind:psdiagcd" enable="false"/>
- <Cell col="2" style="align:left top;padding:3 0 0 3;" text="bind:psdiagnm" enable="false"/>
- <Cell col="3" displaytype="combo" style="align:center middle;" text="bind:cdtypeflag" combodataset="ds_cmb_cdtypeflag" combocodecol="value" combodatacol="label" enable="false"/>
- <Cell col="4" displaytype="date" style="align:center middle;" text="bind:fromdd" calendardisplaynulltype="nulltext" enable="false"/>
- <Cell col="5" displaytype="date" style="align:center middle;" text="bind:todd" calendardisplaynulltype="nulltext" enable="false"/>
- <Cell col="6" displaytype="combo" style="align:center middle;" text="bind:endyn" combodataset="ds_cmb_endyn" combocodecol="value" combodatacol="label" enable="false"/>
- <Cell col="7" style="align:left middle;padding:3 0 0 3;" text="bind:mngtscop" enable="false"/>
- <Cell col="8" style="align:left middle;padding:3 0 0 3;" text="bind:apptrgt" enable="false"/>
- <Cell col="9" style="align:left middle;padding:3 0 0 3;" text="bind:mngtcnts" enable="false"/>
- <Cell col="10" style="align:left middle;padding:3 0 0 3;" text="bind:comments" enable="false"/>
- <Cell col="11" displaytype="date" style="align:left middle;padding:3 0 0 3;" text="bind:fstrgstdt" mask="yyyy-MM-dd HH:mm" calendardisplaynulltype="nulltext" enable="false"/>
- <Cell col="12" style="align:left middle;padding:0 0 0 3;" text="bind:fstrgstrid" enable="false"/>
- <Cell col="13" displaytype="date" style="align:left middle;padding:3 0 0 3;" text="bind:lastupdtdt" mask="yyyy-MM-dd HH:mm" calendardisplaynulltype="nulltext" enable="false"/>
- <Cell col="14" style="align:left middle;padding:0 0 0 3;" text="bind:lastupdtrid" enable="false"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Button id="btn_insicmt1" taborder="3" text="행추가" class="btn2" position="absolute 810 324 863 343" onclick="btn_insicmt1_onclick"/>
- <Button id="btn_saveicmt" taborder="4" text="저 장" class="btn5" position="absolute 923 70 998 89" onclick="btn_saveicmt_onclick"/>
- <Button id="btn_insicmt2" taborder="5" text="행삽입" class="btn2" position="absolute 756 324 809 343" onclick="btn_insicmt2_onclick"/>
- <Button id="btn_delicmt" taborder="6" text="행삭제" class="btn5" position="absolute 864 324 917 343" onclick="btn_delicmt_onclick"/>
- <Button id="btn_excelicmt" taborder="7" text="엑셀저장" class="btn7" position="absolute 918 324 998 343" onclick="btn_excelicmt_onclick"/>
- <Combo id="cbo_insukind1" taborder="8" codecolumn="codecolumn" datacolumn="datacolumn" class="combo_default" position="absolute 937 95 996 114">
- <Dataset id="innerdataset">
- <ColumnInfo>
- <Column id="codecolumn"/>
- <Column id="datacolumn"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="codecolumn">M</Col>
- <Col id="datacolumn">상위형</Col>
- </Row>
- <Row>
- <Col id="codecolumn">S</Col>
- <Col id="datacolumn">하위형</Col>
- </Row>
- </Rows>
- </Dataset>
- </Combo>
- <Shape id="line12" class="line_3" position="absolute 0 313 1000 319"/>
- <Static id="caption12" text="코드형태" class="cell_1" position="absolute 875 94 935 117"/>
- <Shape id="line16" class="line_1" position="absolute 0 89 1000 95" style="strokepen:3 solid #33bbbbff;"/>
- <TextArea id="textarea1" taborder="9" class="input_essential" position="absolute 91 120 995 166" maxlength="166" wordwrap="word" style="padding:2 5 2 8;"/>
- <Static id="caption7" text="관리범위" class="cell_1" position="absolute 0 120 90 167"/>
- <Shape id="line4" class="line_2" position="absolute 0 116 1000 122"/>
- <Static id="caption9" text="후유증산진단명" class="cell_1" position="absolute 205 94 301 117"/>
- <Edit id="input3" taborder="10" class="input_essential" position="absolute 302 96 874 115" maxlength="66" autoselect="true"/>
- <Edit id="ipt_psdiagcd" taborder="11" class="input_essential" position="absolute 92 96 202 115"/>
- <Static id="caption11" text="후유진단코드" class="cell_1" position="absolute 0 94 90 117"/>
- <Shape id="line2" class="line_2" position="absolute 0 166 1000 172"/>
- <TextArea id="textarea2" taborder="12" class="input_essential" position="absolute 91 170 995 211" maxlength="333" autoselect="true" wordwrap="word" style="padding:2 5 2 8;"/>
- <Static id="caption8" text="적용대상" class="cell_1" position="absolute 0 170 90 211"/>
- <Shape id="line3" class="line_2" position="absolute 0 210 1000 216"/>
- <TextArea id="textarea3" taborder="13" class="input_essential" position="absolute 91 214 995 292" maxlength="1000" autoselect="true" wordwrap="word" style="padding:2 5 2 8;"/>
- <Static id="caption10" text="관리내용" class="cell_1" position="absolute 0 214 90 292"/>
- <Static id="caption13" text="산재후유증상진단" class="tit_2" position="absolute 0 73 160 89"/>
- <Shape id="line5" class="line_2" position="absolute 0 291 1000 297"/>
- <Edit id="input2" taborder="14" position="absolute 92 295 995 314" autoselect="true" maxlength="333"/>
- <Static id="caption15" text="참고사항" class="cell_1" position="absolute 0 295 91 314"/>
- <Shape id="line32" class="line_6" position="absolute 0 766 999 772"/>
- <Button id="button1" taborder="15" text="초기화" class="btn4" position="absolute 816 770 884 792" onclick="button1_onclick"/>
- <Button id="btn_confirm" taborder="16" text="확인" class="btn4" position="absolute 885 770 941 792" onclick="btn_confirm_onclick"/>
- <Button id="btn_cancel" taborder="17" text="취소" class="btn4" position="absolute 942 770 998 792" onclick="btn_cancel_onclick"/>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_send_perref" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="psdiagcd" type="STRING" size="256"/>
- <Column id="cdtypeflag" type="STRING" size="256"/>
- <Column id="fromdd" type="STRING" size="256"/>
- <Column id="todd" type="STRING" size="256"/>
- <Column id="history" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="psdiagcd"/>
- <Col id="cdtypeflag"/>
- <Col id="fromdd"/>
- <Col id="todd"/>
- <Col id="history"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_main_uptpermanentsymp" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="psdiagcd" type="STRING" size="256"/>
- <Column id="psdiagnm" type="STRING" size="256"/>
- <Column id="cdtypeflag" type="STRING" size="256"/>
- <Column id="mngtscop" type="STRING" size="256"/>
- <Column id="apptrgt" type="STRING" size="256"/>
- <Column id="mngtcnts" type="STRING" size="256"/>
- <Column id="comments" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="psdiagcd"/>
- <Col id="psdiagnm"/>
- <Col id="cdtypeflag"/>
- <Col id="mngtscop"/>
- <Col id="apptrgt"/>
- <Col id="mngtcnts"/>
- <Col id="comments"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_main_permanentsymplist_permanentsymp" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="psdiagcd" type="STRING" size="256" sumtext="후유증상진단코드"/>
- <Column id="psdiagnm" type="STRING" size="256" sumtext="후유증상진단명"/>
- <Column id="cdtypeflag" type="STRING" size="256" sumtext="코드구분"/>
- <Column id="fromdd" type="STRING" size="256" sumtext="시작일자"/>
- <Column id="todd" type="STRING" size="256" sumtext="종료일자"/>
- <Column id="endyn" type="STRING" size="256" sumtext="종료여부"/>
- <Column id="mngtscop" type="STRING" size="256" sumtext="관리범위"/>
- <Column id="apptrgt" type="STRING" size="256" sumtext="적용대상"/>
- <Column id="mngtcnts" type="STRING" size="256" sumtext="관리내용"/>
- <Column id="comments" type="STRING" size="256" sumtext="참고사항"/>
- <Column id="fstrgstdt" type="STRING" size="256" sumtext="최초등록일"/>
- <Column id="fstrgstrid" type="STRING" size="256" sumtext="최초등록자"/>
- <Column id="lastupdtdt" type="STRING" size="256" sumtext="최종수정일"/>
- <Column id="lastupdtrid" type="STRING" size="256" sumtext="최종수정자"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_cmb_cdtypeflag" 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">M</Col>
- </Row>
- <Row>
- <Col id="label">하위형</Col>
- <Col id="value">S</Col>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_cmb_endyn" 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">Y</Col>
- <Col id="value">Y</Col>
- </Row>
- <Row>
- <Col id="label">N</Col>
- <Col id="value">N</Col>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_send_setlist_setinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_hidden_setcheckrow" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="row" type="STRING" size="256"/>
- <Column id="status" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="row"/>
- <Col id="status"/>
- </Row>
- </Rows>
- </Dataset>
- </Objects>
- <Bind>
- <BindItem id="item7" compid="cbo_insukind1" propid="value" datasetid="ds_main_uptpermanentsymp" columnid="cdtypeflag"/>
- <BindItem id="item8" compid="textarea1" propid="value" datasetid="ds_main_uptpermanentsymp" columnid="mngtscop"/>
- <BindItem id="item6" compid="input3" propid="value" datasetid="ds_main_uptpermanentsymp" columnid="psdiagnm"/>
- <BindItem id="item5" compid="ipt_psdiagcd" propid="value" datasetid="ds_main_uptpermanentsymp" columnid="psdiagcd"/>
- <BindItem id="item9" compid="textarea2" propid="value" datasetid="ds_main_uptpermanentsymp" columnid="apptrgt"/>
- <BindItem id="item10" compid="textarea3" propid="value" datasetid="ds_main_uptpermanentsymp" columnid="mngtcnts"/>
- <BindItem id="item0" compid="group2.combo1" propid="value" datasetid="ds_send_perref" columnid="cdtypeflag"/>
- <BindItem id="item1" compid="group2.ipt_pid" propid="value" datasetid="ds_send_perref" columnid="psdiagcd"/>
- <BindItem id="item2" compid="group2.input37" propid="value" datasetid="ds_send_perref" columnid="fromdd"/>
- <BindItem id="item3" compid="group2.input1" propid="value" datasetid="ds_send_perref" columnid="todd"/>
- <BindItem id="item4" compid="group2.bool1" propid="value" datasetid="ds_send_perref" columnid=""/>
- <BindItem id="item11" compid="input2" propid="value" datasetid="ds_main_uptpermanentsymp" columnid=""/>
- </Bind>
- <Script type="xscript4.0"><![CDATA[/***************************************************************************************
- * System Name :
- * Job Name :
- * Creator :
- * Make Date : 2016-05-24
- * Description :
- *---------------------------------------------------------------------------------------
- * Modify Date Modifier Modify Description
- *---------------------------------------------------------------------------------------
- * 2016-05-24 Live Converter TF->XP
- *
- *---------------------------------------------------------------------------------------
- ****************************************************************************************/
- include "com_commonxp::comm_main.xjs"
- include "com_basiccodexp::ZBC001.xjs"
- include "com_zipcodexp::ZBP001.xjs"
- include "pam_pamcomnxp::PAM.xjs"
- var arErrorCode = new HashArray();
- function SMPMC06700_oninit(obj:Form, e:InitEventInfo)
- {
- frmf_initForm(obj);
- }
- function SMPMC06700_onload(obj:Form, e:LoadEventInfo)
- {
- grdf_initGrid(grd_permanentsymp);
- grdf_setRowTypeIcon(grd_permanentsymp, 0);
-
- var arrParam1 = [{ dsNm: "ds_init_P0028list_P0028", cdGrpId: "P0028"}];
- appf_getCodeList(arrParam1);
-
- fInitialize();
- }
- function fInitialize()
- {
- ds_send_perref.clearData();
- ds_send_perref.addRow();
-
- ds_send_perref.setColumn(0, "cdtypeflag","-");
- ds_send_perref.setColumn(0, "history","N");
-
- ds_main_uptpermanentsymp.clearData();
- ds_main_uptpermanentsymp.addRow();
- //초기화시리스트 공백 row를 삭제한다.
- ds_main_permanentsymplist_permanentsymp.clearData();
- }
- function group2_ipt_pid_onkeydown(obj:Edit, e:KeyEventInfo)
- {
- if(e.keycode == 13)
- {
- obj.updateToDataset();
- group2.btn_search.click();
- }
- }
- function group2_btn_search_onclick(obj:Button, e:ClickEventInfo)
- {
- var psdiagcd = ds_send_perref.getColumn(0, "psdiagcd");
- var cdtypeflag = ds_send_perref.getColumn(0, "cdtypeflag");
- var fromdd = ds_send_perref.getColumn(0, "fromdd");
- var todd = ds_send_perref.getColumn(0, "todd");
- var history = ds_send_perref.getColumn(0, "history");
-
- if(utlf_isNull(psdiagcd) && utlf_isNull(cdtypeflag) && utlf_isNull(fromdd) && utlf_isNull(todd) && utlf_isNull(history))
- {
- sysf_messageBox("전체조회","I009");
- fSearch();
- }
- else
- {
- fSearch();
- }
- }
- function fSearch()
- {
- var oParam = {};
- oParam.id = "TRPMC06701";
- oParam.service = "patinfomngtapp.IndusPat";
- oParam.method = "reqGetPermanentSympInfo";
- oParam.inds = "req=ds_send_perref";
- oParam.outds = "ds_main_permanentsymplist_permanentsymp=grdpermanentsymp";
- oParam.async = false;
- //oParam.callback = "cf_TRPMC06701";
- tranf_submit(oParam);
- }
- function btn_saveicmt_onclick(obj:Button, e:ClickEventInfo)
- {
- ipt_psdiagcd.enable = true;
-
- var row = ds_main_permanentsymplist_permanentsymp.rowposition;
- var status = ds_main_permanentsymplist_permanentsymp.getRowType(row);
- var currentdate = utlf_getCurrentDate();
-
- var psdiagcd = ds_main_uptpermanentsymp.getColumn(0, "psdiagcd");
- var psdiagnm = ds_main_uptpermanentsymp.getColumn(0, "psdiagnm");
- var cdtypeflag = ds_main_uptpermanentsymp.getColumn(0, "cdtypeflag");
- var mngtscop = ds_main_uptpermanentsymp.getColumn(0, "mngtscop");
- var apptrgt = ds_main_uptpermanentsymp.getColumn(0, "apptrgt");
- var mngtcnts = ds_main_uptpermanentsymp.getColumn(0, "mngtcnts");
- var comments = ds_main_uptpermanentsymp.getColumn(0, "comments");
-
- if(utlf_isNull(psdiagcd) && utlf_isNull(psdiagnm) && utlf_isNull(cdtypeflag) && utlf_isNull(mngtscop) && utlf_isNull(apptrgt) && utlf_isNull(mngtcnts) && utlf_isNull(comments))
- {
- alert("입력/수정할 data를 확인해주세요");
- }
-
- if(status == 2)
- {
- ds_main_permanentsymplist_permanentsymp.setColumn(row, "fromdd", currentdate);
- ds_main_permanentsymplist_permanentsymp.setColumn(row, "todd", "99991231");
- ds_main_permanentsymplist_permanentsymp.setColumn(row, "endyn", "N");
- }
- else if(status == 1)
- {
- var listpsdiagcd = ds_main_permanentsymplist_permanentsymp.getColumn(ds_main_permanentsymplist_permanentsymp.rowposition, "psdiagcd")
- if(utlf_isNull(listpsdiagcd) && listpsdiagcd == "" && listpsdiagcd ==" ")
- {
- }
- else
- {
- ds_main_permanentsymplist_permanentsymp.updatecontrol = false;
- ds_main_permanentsymplist_permanentsymp.setRowType(row, "u");
- ds_main_permanentsymplist_permanentsymp.updatecontrol = true;
- }
- }
-
- ds_main_permanentsymplist_permanentsymp.setColumn(row, "psdiagcd", psdiagcd);
- ds_main_permanentsymplist_permanentsymp.setColumn(row, "psdiagnm", psdiagnm);
- ds_main_permanentsymplist_permanentsymp.setColumn(row, "cdtypeflag", cdtypeflag);
- ds_main_permanentsymplist_permanentsymp.setColumn(row, "mngtscop", mngtscop);
- ds_main_permanentsymplist_permanentsymp.setColumn(row, "apptrgt", apptrgt);
- ds_main_permanentsymplist_permanentsymp.setColumn(row, "mngtcnts", mngtcnts);
- ds_main_permanentsymplist_permanentsymp.setColumn(row, "comments", comments);
-
- var updategrid = grdf_getGridUpdateData(grd_permanentsymp);
- grdf_setStatusColumn(updategrid, "status");
- ds_send_setlist_setinfo.copyData(updategrid, true);
- var oParam = {};
- oParam.id = "TXPMC06701";
- oParam.service = "patinfomngtapp.IndusPat";
- oParam.method = "reqSetPermanentSympInfo";
- oParam.inds = "setinfo=ds_send_setlist_setinfo";
- oParam.outds = "";
- oParam.async = false;
- oParam.callback = "cf_TXPMC06701";
- tranf_submit(oParam);
- if(arErrorCode.pop("TXPMC06701") > -1)
- {
- fInitialize();
- ds_send_perref.setColumn(0, "psdiagcd",psdiagcd);
-
- var oParam = {};
- oParam.id = "TRPMC06701";
- oParam.service = "patinfomngtapp.IndusPat";
- oParam.method = "reqGetPermanentSympInfo";
- oParam.inds = "req=ds_send_perref";
- oParam.outds = "ds_main_permanentsymplist_permanentsymp=grdpermanentsymp";
- oParam.async = false;
- //oParam.callback = "cf_TRPMC06701";
- tranf_submit(oParam);
- }
- //grd_permanentsymp.selectionMode = "";
- }
- function cf_TXPMC06701(sSvcId, nErrorCode, sErrorMsg)
- {
- arErrorCode.push(sSvcId, nErrorCode);
- }
- function fBaseSet()
- {
- ds_main_uptpermanentsymp.setColumn(0, "psdiagcd","");
- ds_main_uptpermanentsymp.setColumn(0, "psdiagnm","-");
- ds_main_uptpermanentsymp.setColumn(0, "cdtypeflag","M");
- ds_main_uptpermanentsymp.setColumn(0, "mngtscop","-");
- ds_main_uptpermanentsymp.setColumn(0, "apptrgt","-");
- ds_main_uptpermanentsymp.setColumn(0, "mngtcnts","-");
- ds_main_uptpermanentsymp.setColumn(0, "comments","-");
- }
- function btn_insicmt2_onclick(obj:Button, e:ClickEventInfo)
- {
- ipt_psdiagcd.enable = true;
- //초기 row값
- var orgrow = ds_main_permanentsymplist_permanentsymp.insertRow(ds_main_permanentsymplist_permanentsymp.rowposition+1);
- ds_hidden_setcheckrow.setColumn(0, "row", orgrow);
- ds_hidden_setcheckrow.setColumn(0, "status", ds_main_permanentsymplist_permanentsymp.getRowType(orgrow));
-
- ipt_psdiagcd.setFocus();
- fBaseSet();
- }
- function btn_insicmt1_onclick(obj:Button, e:ClickEventInfo)
- {
- ipt_psdiagcd.enable = true;
- //초기 row값
- var orgrow = ds_main_permanentsymplist_permanentsymp.addRow();
- ds_hidden_setcheckrow.setColumn(0, "row", orgrow);
- ds_hidden_setcheckrow.setColumn(0, "status", ds_main_permanentsymplist_permanentsymp.getRowType(orgrow));
-
- ipt_psdiagcd.setFocus();
-
- fBaseSet();
- }
- function btn_delicmt_onclick(obj:Button, e:ClickEventInfo)
- {
- if(sysf_messageBox("선택하신 후유증상진단코드를 ","Q001") == 6)
- {
- var cur_row = ds_main_permanentsymplist_permanentsymp.rowposition;
-
- if(ds_main_permanentsymplist_permanentsymp.getRowType(cur_row) != 2)
- {
- ds_main_permanentsymplist_permanentsymp.updatecontrol = false;
- ds_main_permanentsymplist_permanentsymp.setRowType(cur_row, "d");
- ds_main_permanentsymplist_permanentsymp.updatecontrol = true;
-
- var updategrid = grdf_getGridUpdateData(grd_permanentsymp);
- grdf_setStatusColumn(updategrid, "status");
- ds_send_setlist_setinfo.copyData(updategrid, true);
- var oParam = {};
- oParam.id = "TXPMC06701";
- oParam.service = "patinfomngtapp.IndusPat";
- oParam.method = "reqSetPermanentSympInfo";
- oParam.inds = "setinfo=ds_send_setlist_setinfo";
- oParam.outds = "";
- oParam.async = false;
- oParam.callback = "cf_TXPMC06701";
- tranf_submit(oParam);
-
- if(arErrorCode.pop("TXPMC06701") > -1)
- {
- var oParam = {};
- oParam.id = "TRPMC06701";
- oParam.service = "patinfomngtapp.IndusPat";
- oParam.method = "reqGetPermanentSympInfo";
- oParam.inds = "req=ds_send_perref";
- oParam.outds = "ds_main_permanentsymplist_permanentsymp=grdpermanentsymp";
- oParam.async = false;
- //oParam.callback = "cf_TRPMC06701";
- tranf_submit(oParam);
- }
- }
- else
- {
- ds_main_permanentsymplist_permanentsymp.deleteRow(cur_row);
- }
- }
- else
- {
- sysf_messageBox("삭제작업을 취소 ","I001")
- }
- }
- function btn_excelicmt_onclick(obj:Button, e:ClickEventInfo)
- {
- grdf_exportExcel(grd_pmchicmt, "excel", "grd_pmchicmt", true, "", 'user', true);
- }
- function grd_permanentsymp_oncellclick(obj:Grid, e:GridClickEventInfo)
- {
- ipt_psdiagcd.enable = false;
-
- //초기 row값
- var orgrow = ds_main_permanentsymplist_permanentsymp.rowposition;
- ds_hidden_setcheckrow.setColumn(0, "row", orgrow);
- ds_hidden_setcheckrow.setColumn(0, "status", ds_main_permanentsymplist_permanentsymp.getRowType(orgrow));
-
- ds_main_uptpermanentsymp.setColumn(0, "psdiagcd", ds_main_permanentsymplist_permanentsymp.getColumn(orgrow, "psdiagcd"));
- ds_main_uptpermanentsymp.setColumn(0, "psdiagnm", ds_main_permanentsymplist_permanentsymp.getColumn(orgrow, "psdiagnm"));
- ds_main_uptpermanentsymp.setColumn(0, "cdtypeflag", ds_main_permanentsymplist_permanentsymp.getColumn(orgrow, "cdtypeflag"));
- ds_main_uptpermanentsymp.setColumn(0, "mngtscop", ds_main_permanentsymplist_permanentsymp.getColumn(orgrow, "mngtscop"));
- ds_main_uptpermanentsymp.setColumn(0, "apptrgt", ds_main_permanentsymplist_permanentsymp.getColumn(orgrow, "apptrgt"));
- ds_main_uptpermanentsymp.setColumn(0, "mngtcnts", ds_main_permanentsymplist_permanentsymp.getColumn(orgrow, "mngtcnts"));
- ds_main_uptpermanentsymp.setColumn(0, "comments", ds_main_permanentsymplist_permanentsymp.getColumn(orgrow, "comments"));
- }
- function button1_onclick(obj:Button, e:ClickEventInfo)
- {
- fInitialize();
- }
- function btn_confirm_onclick(obj:Button, e:ClickEventInfo)
- {
- if ( frmf_checkOpener() )
- {
- // row = grd_vippatappinfo.row;
- // opener.model.makeNode("/root/main/popupendflag");
- // opener.model.setValue("/root/main/popupendflag", "cancel");
- //
- // if( row > 0 )
- // {
- // if( getNodesetCount("/root/main/vippatbaseinfo/vippatbaseinfolist") > 0 )
- // {
- // opener.model.copyNode("/root/main/vippatbaseinfo/vippatbaseinfolist", grd_vippatappinfo.getNode( row ));
- // opener.model.makeNode("/root/main/popupendflag");
- // opener.model.setValue("/root/main/popupendflag", "ok");
- // }
- // }
- // else
- // {
- // sysf_messageBox("행이 정확히 선택되지", "E007");
- // }
- }
- else
- {
- sysf_messageBox("상위화면이 변경되어 데이터를 가져올 수", "I004");
- }
- this.close();
- }
- function btn_cancel_onclick(obj:Button, e:ClickEventInfo)
- {
- var receiveref = eval("opener.ds_main");
- opener.dsf_makeValue(receiveref, "popupendflag", "string", "cancel", 0);
- this.close();
- }
- ]]></Script>
- </Form>
- </FDL>
|