123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SMABO01500" position="absolute 0 0 1201 785" titletext="BMT 환자 이식 차수관리" oninit="SMABO01500_oninit" onload="SMABO01500_onload">
- <Layouts>
- <Layout>
- <Static id="caption6" text="차수관리" class="tit_1" position="absolute 0 0 164 25"/>
- <Button id="btn_prt" taborder="1" text="출력" class="btn6" position="absolute 0 26 56 48" onclick="btn_prt_onclick"/>
- <Button id="btn_save" taborder="2" text="저장" class="btn4" position="absolute 1137 26 1193 48" anchor="top right" onclick="btn_save_onclick"/>
- <Static id="caption1" text="BMT 리스트" class="tit_2" position="absolute 0 119 100 140"/>
- <Shape id="line1" class="line_10" position="absolute 0 135 1194 141" anchor="left top right"/>
- <Div id="grp_sea" taborder="3" class="div_SA2" position="absolute 0 49 1194 109" anchor="left top right">
- <Layouts>
- <Layout>
- <Static id="caption2" text="기간(이식일) :" class="search_name" position="absolute 15 7 127 24"/>
- <Static id="caption3" text="승인구분 :" class="search_name" position="absolute 364 7 450 24"/>
- <Static id="caption4" text="진단명 :" class="search_name" position="absolute 567 7 640 24"/>
- <Static id="caption5" text="~" class="search_no_b" position="absolute 233 7 245 24"/>
- <Shape id="line13" linetype="vertical" class="line_4" position="absolute 1104 8 1110 51" anchor="top right"/>
- <Static id="caption33" text="Stem Cell Source :" class="search_name" position="absolute 758 7 909 24"/>
- <Combo id="combo1" taborder="1" codecolumn="codecolumn" datacolumn="datacolumn" class="combo_search" position="absolute 452 7 552 26">
- <Dataset id="innerdataset">
- <ColumnInfo>
- <Column id="codecolumn"/>
- <Column id="datacolumn"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="codecolumn"/>
- <Col id="datacolumn"/>
- </Row>
- <Row>
- <Col id="codecolumn">1</Col>
- <Col id="datacolumn">급여</Col>
- </Row>
- <Row>
- <Col id="codecolumn">2</Col>
- <Col id="datacolumn">비급여</Col>
- </Row>
- <Row>
- <Col id="codecolumn">3</Col>
- <Col id="datacolumn">사후승인</Col>
- </Row>
- </Rows>
- </Dataset>
- </Combo>
- <Combo id="combo2" taborder="2" innerdataset="@ds_init_cmbinfo_lrglist_item" codecolumn="hsctlrgcd" datacolumn="hsctlrgnm" class="combo_search" position="absolute 643 7 743 26"/>
- <Combo id="combo5" taborder="3" innerdataset="@ds_init_cmbinfo_scs_A0162" codecolumn="hsctmdlcd" datacolumn="hsctmdlnm" class="combo_search" position="absolute 912 7 1012 26"/>
- <Combo id="combo3" taborder="4" innerdataset="@ds_init_cmbinfo_trnptkind_A0161" codecolumn="cdid" datacolumn="cdnm" class="combo_search" position="absolute 452 34 552 53"/>
- <Static id="caption7" text="이식종류 :" class="search_name" position="absolute 364 34 450 51"/>
- <Combo id="combo4" taborder="5" innerdataset="@ds_init_cmbinfo_btype_M0376" codecolumn="cdid" datacolumn="cdnm" class="combo_search" position="absolute 643 34 743 53"/>
- <Static id="caption8" text="혈액형 :" class="search_name" position="absolute 567 34 640 51"/>
- <Static id="caption9" text="성별 :" class="search_name" position="absolute 758 34 818 51"/>
- <Combo id="combo6" taborder="6" innerdataset="@ds_init_cmbinfo_sex_P0313" codecolumn="cdid" datacolumn="cdnm" class="combo_search" position="absolute 821 32 891 51"/>
- <Button id="btn_sea" taborder="7" text="조회" class="btn1" position="absolute 1123 19 1179 41" anchor="top right" onclick="grp_sea_btn_sea_onclick"/>
- <Calendar id="ipt_trnptfromdd" taborder="8" autoselect="true" autoskip="true" class="input_s_essential" position="absolute 130 7 230 26"/>
- <Calendar id="ipt_trnpttodd" taborder="9" autoselect="true" autoskip="true" class="input_s_essential" position="absolute 249 7 349 26"/>
- <Edit id="output5" taborder="10" readonly="true" class="output" position="absolute 289 35 319 54"/>
- <Edit id="output6" taborder="11" readonly="true" class="output" position="absolute 322 35 352 54"/>
- <Edit id="output17" taborder="12" readonly="true" class="output" position="absolute 206 35 286 54"/>
- <Static id="caption16" text="등록번호 :" class="search_name" position="absolute 15 36 101 53"/>
- <Edit id="ipt_pid" taborder="13" autoselect="true" autoskip="true" class="input_essential" position="absolute 104 35 204 54" onkeyup="grp_sea_ipt_pid_onkeyup"/>
- <Static id="caption17" text="급여 :" class="search_name" position="absolute 906 34 966 51"/>
- <Combo id="combo7" taborder="14" codecolumn="codecolumn" datacolumn="datacolumn" class="combo_search" position="absolute 969 32 1039 51">
- <Dataset id="innerdataset">
- <ColumnInfo>
- <Column id="codecolumn"/>
- <Column id="datacolumn"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="codecolumn"/>
- <Col id="datacolumn"/>
- </Row>
- <Row>
- <Col id="codecolumn">1</Col>
- <Col id="datacolumn">급여</Col>
- </Row>
- <Row>
- <Col id="codecolumn">2</Col>
- <Col id="datacolumn">비급여</Col>
- </Row>
- </Rows>
- </Dataset>
- </Combo>
- <Button id="btn_pid" taborder="15" onclick="grp_sea_btn_pid_onclick" position="absolute 188 38 201 51"/>
- </Layout>
- </Layouts>
- </Div>
- <Static id="caption10" text="차수관리" class="tit_2" position="absolute 0 734 90 755" anchor="left bottom"/>
- <Shape id="line2" class="line_10" position="absolute 0 750 1194 756" anchor="left right bottom"/>
- <Static id="caption31" text="등록번호" class="cell_1" position="absolute 0 755 90 778" anchor="left bottom"/>
- <Edit id="output25" taborder="4" readonly="true" class="output" position="absolute 92 757 172 776" anchor="left bottom" style="align:center middle;"/>
- <Edit id="output1" taborder="5" readonly="true" class="output" position="absolute 175 757 255 776" anchor="left bottom" style="align:center middle;"/>
- <Static id="caption11" text="회차" class="cell_1" position="absolute 259 755 349 778" anchor="left bottom"/>
- <Edit id="output2" taborder="6" readonly="true" class="output" position="absolute 351 757 411 776" anchor="left bottom" style="align:center middle;"/>
- <Static id="caption12" text="이식일자" class="cell_1" position="absolute 415 755 505 778" anchor="left bottom"/>
- <MaskEdit id="output3" taborder="7" readonly="true" type="string" mask="####-##-##" maskchar=" " trimtype="both" position="absolute 508 757 588 776" style="align:center middle;" align="align:center middle;" anchor="left bottom"/>
- <Static id="caption13" text="Total" class="cell_1" position="absolute 591 755 681 778" anchor="left bottom"/>
- <Static id="caption14" text="AUTO/ALLO" class="cell_1" position="absolute 747 755 837 778" anchor="left bottom"/>
- <Static id="caption15" text="이식종류" class="cell_1" position="absolute 903 755 993 778" anchor="left bottom"/>
- <Edit id="output4" taborder="8" readonly="true" class="output" position="absolute 995 757 1130 776" anchor="left bottom" style="align:center middle;"/>
- <Button id="button3" taborder="9" text="선택차수지우기" class="btn2" position="absolute 1097 731 1194 750" anchor="right bottom" onclick="button3_onclick"/>
- <Button id="button4" taborder="10" text="차수자동생성" class="btn2" position="absolute 1008 731 1094 750" anchor="right bottom" onclick="button4_onclick" tooltiptext="Total과 Auto/Allo 차수 생성"/>
- <Shape id="line127" class="line_3" position="absolute 0 777 1194 783" anchor="left right bottom"/>
- <Button id="btn_excsave" taborder="11" text="엑셀저장" class="btn7" position="absolute 1113 115 1193 135" anchor="top right" onclick="btn_excsave_onclick"/>
- <Grid id="grd_patlist" class="datagrid2" taborder="12" binddataset="ds_main_trnptdgmngt_trnptdglist" autoenter="select" useinputpanel="false" cellsizingtype="col" position="absolute 0 140 1194 725" anchor="all" oncellclick="grd_patlist_oncellclick">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="29"/>
- <Column size="52"/>
- <Column size="67"/>
- <Column size="71"/>
- <Column size="113"/>
- <Column size="74"/>
- <Column size="73"/>
- <Column size="50"/>
- <Column size="81"/>
- <Column size="150"/>
- <Column size="30"/>
- <Column size="60"/>
- <Column size="36"/>
- <Column size="39"/>
- <Column size="45"/>
- <Column size="65"/>
- <Column size="39"/>
- <Column size="45"/>
- <Column size="100"/>
- <Column size="100"/>
- <Column size="42"/>
- <Column size="42"/>
- <Column size="45"/>
- <Column size="89"/>
- <Column size="104"/>
- <Column size="103"/>
- <Column size="100"/>
- </Columns>
- <Rows>
- <Row size="36" band="head"/>
- <Row size="24"/>
- </Rows>
- <Band id="head">
- <Cell/>
- <Cell col="1" text="Total 차수"/>
- <Cell col="2" text="AUTO 및 ALLO차수"/>
- <Cell col="3" text="Kind 차수"/>
- <Cell col="4" text="이식종류"/>
- <Cell col="5" text="Stem Cell Source"/>
- <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="혈액형"/>
- <Cell col="15" text="GVHD"/>
- <Cell col="16" text="생존 여부"/>
- <Cell col="17" text="이식후 생존일"/>
- <Cell col="18" text="사인"/>
- <Cell col="19" text="공여자명"/>
- <Cell col="20" text="공여자 성별"/>
- <Cell col="21" text="공여자 나이"/>
- <Cell col="22" text="공여자 혈액형"/>
- <Cell col="23" text="공여자 등록번호"/>
- <Cell col="24" text="UNIT"/>
- <Cell col="25" text="병실"/>
- <Cell col="26" text="진료과"/>
- </Band>
- <Band id="body">
- <Cell celltype="head" expr="currow+1"/>
- <Cell col="1" displaytype="text" edittype="text" style="align:center middle;" text="bind:totdg"/>
- <Cell col="2" displaytype="text" edittype="text" style="align:center middle;" text="bind:autoallodg"/>
- <Cell col="3" displaytype="text" edittype="text" style="align:center middle;" text="bind:allotrnptkinddg"/>
- <Cell col="4" displaytype="combo" style="align:center middle;" text="bind:trnptkind" combodataset="ds_init_cmbinfo_trnptkind_A0161" combocodecol="cdid" combodatacol="cdnm" enable="false"/>
- <Cell col="5" displaytype="combo" style="align:center middle;" text="bind:scs" combodataset="ds_init_cmbinfo_scs_A0162" combocodecol="hsctlrgcd" combodatacol="hsctlrgnm" enable="false"/>
- <Cell col="6" displaytype="date" text="bind:trnptdd" calendardisplaynulltype="nulltext"/>
- <Cell col="7" displaytype="combo" edittype="combo" text="bind:insukind" combodataset="ds_cmb_insukind" combocodecol="value" combodatacol="label"/>
- <Cell col="8" text="bind:hngnm"/>
- <Cell col="9" displaytype="combo" edittype="combo" style="align:center middle;" text="bind:diagcd1" combodataset="ds_init_cmbinfo_lrglist_item" combocodecol="hsctlrgcd" combodatacol="hsctlrgnm" combodisplayrowcount="20"/>
- <Cell col="10" text="bind:trnptdg"/>
- <Cell col="11" text="bind:pid"/>
- <Cell col="12" displaytype="combo" style="align:center middle;" text="bind:sex" combodataset="ds_init_cmbinfo_sex_P0313" combocodecol="cdid" combodatacol="cdnm" enable="false"/>
- <Cell col="13" text="bind:trnptage"/>
- <Cell col="14" displaytype="combo" style="align:center middle;" text="bind:pattrnptafbtype" combodataset="ds_init_cmbinfo_btype_M0376" combocodecol="cdid" combodatacol="cdnm" enable="false"/>
- <Cell col="15" text="bind:gvhd"/>
- <Cell col="16" text="bind:dethyn"/>
- <Cell col="17" text="bind:trnptbfdays"/>
- <Cell col="18" displaytype="combo" edittype="combo" style="align:center middle;" text="bind:dethresn" combodataset="ds_init_cmbinfo_dethresn_A0186" combocodecol="hsctmdlcd" combodatacol="hsctmdlnm" combodisplayrowcount="20"/>
- <Cell col="19" text="bind:dnornm"/>
- <Cell col="20" displaytype="combo" style="align:center middle;" text="bind:dnorsex" combodataset="ds_init_cmbinfo_sex_P0313" combocodecol="cdid" combodatacol="cdnm" enable="false"/>
- <Cell col="21" text="bind:dnorage"/>
- <Cell col="22" displaytype="combo" style="align:center middle;" text="bind:dnorbtype" combodataset="ds_init_cmbinfo_btype_M0376" combocodecol="cdid" combodatacol="cdnm" enable="false"/>
- <Cell col="23" text="bind:dnorpid"/>
- <Cell col="24" displaytype="combo" style="align:center middle;" text="bind:trnptwardcd" combodataset="ds_init_cmbinfo_trnptwardcd_A0479" combocodecol="hsctmdlcd" combodatacol="hsctmdlnm" enable="false"/>
- <Cell col="25" displaytype="combo" style="align:center middle;" text="bind:trnptroomcd" combodataset="ds_init_cmbinfo_trnptroomcd_A0480" combocodecol="hsctmdlcd" combodatacol="hsctmdlnm" enable="false"/>
- <Cell col="26" displaytype="combo" style="align:center middle;" text="bind:deptcd" combodataset="ds_init_cmbinfo_deptcd_A0478" combocodecol="cdid" combodatacol="cdnm" enable="false"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Button id="button1" taborder="13" text="Allo Kind 차수자동생성" class="btn2" position="absolute 864 731 1005 750" anchor="right bottom" onclick="button1_onclick" tooltiptext="Allo Kind 차수 생성"/>
- <Button id="button2" taborder="14" text="전체차수지우기" class="btn2" position="absolute 764 731 861 750" anchor="right bottom" onclick="button2_onclick"/>
- <Edit id="output7" taborder="15" readonly="true" class="output" position="absolute 683 757 743 776" anchor="left bottom" style="align:center middle;"/>
- <Edit id="output8" taborder="16" readonly="true" class="output" position="absolute 839 757 899 776" anchor="left bottom" style="align:center middle;"/>
- <Edit id="output9" taborder="17" readonly="true" class="output" position="absolute 1133 757 1193 776" anchor="left bottom" style="align:center middle;"/>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_send_data" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="trnptfromdd" type="STRING" size="256"/>
- <Column id="trnpttodd" type="STRING" size="256"/>
- <Column id="trnptkind" type="STRING" size="256"/>
- <Column id="scs" type="STRING" size="256"/>
- <Column id="diagcd1" type="STRING" size="256"/>
- <Column id="sex" type="STRING" size="256"/>
- <Column id="pattrnptafbtype" type="STRING" size="256"/>
- <Column id="insuaprvkind" type="STRING" size="256"/>
- <Column id="pid" type="STRING" size="256"/>
- <Column id="insukind" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="trnptfromdd"/>
- <Col id="trnpttodd"/>
- <Col id="trnptkind"/>
- <Col id="scs"/>
- <Col id="diagcd1"/>
- <Col id="sex"/>
- <Col id="pattrnptafbtype"/>
- <Col id="insuaprvkind"/>
- <Col id="pid"/>
- <Col id="insukind"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="lrggrupcd" type="STRING" size="256"/>
- <Column id="hsctlrgcd" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="lrggrupcd">DI</Col>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_main_trnptdgmngt_trnptdglist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="totdg" type="INT" size="256" sumtext="Total차수"/>
- <Column id="autoallodg" type="INT" size="256" sumtext="Auto/Allo차수"/>
- <Column id="allotrnptkinddg" type="INT" size="256" sumtext="이식종류별차수"/>
- <Column id="trnptkind" type="STRING" size="256" sumtext="이식종류"/>
- <Column id="scs" type="STRING" size="256" sumtext="stemcellsource"/>
- <Column id="trnptdd" type="STRING" size="256" sumtext="이식일자"/>
- <Column id="insukind" type="STRING" size="256" sumtext="급여"/>
- <Column id="hngnm" type="STRING" size="256" sumtext="환자명"/>
- <Column id="diagcd1" type="STRING" size="256" sumtext="진단명"/>
- <Column id="trnptdg" type="INT" size="256" sumtext="이식차수"/>
- <Column id="pid" type="STRING" size="256" sumtext="등록번호"/>
- <Column id="sex" type="STRING" size="256" sumtext="성별"/>
- <Column id="trnptage" type="STRING" size="256" sumtext="이식당시나이"/>
- <Column id="pattrnptafbtype" type="STRING" size="256" sumtext="혈액형"/>
- <Column id="gvhd" type="STRING" size="256" sumtext="gvhd"/>
- <Column id="dethyn" type="STRING" size="256" sumtext="사망여부"/>
- <Column id="trnptbfdays" type="STRING" size="256" sumtext="이식후생존일"/>
- <Column id="dethresn" type="STRING" size="256" sumtext="사망사인"/>
- <Column id="dnornm" type="STRING" size="256" sumtext="공여자명"/>
- <Column id="dnorsex" type="STRING" size="256" sumtext="공여자성별"/>
- <Column id="dnorage" type="STRING" size="256" sumtext="공여자나이"/>
- <Column id="dnorbtype" type="STRING" size="256" sumtext="공여자혈액형"/>
- <Column id="dnorpid" type="STRING" size="256" sumtext="공여자등록번호"/>
- <Column id="trnptwardcd" type="STRING" size="256" sumtext="병동"/>
- <Column id="trnptroomcd" type="STRING" size="256" sumtext="병실"/>
- <Column id="deptcd" type="STRING" size="256" sumtext="진료과"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_temp_trnptdg" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="pid" type="STRING" size="256"/>
- <Column id="hngnm" type="STRING" size="256"/>
- <Column id="trnptdg" type="STRING" size="256"/>
- <Column id="totdg" type="STRING" size="256"/>
- <Column id="autoallodg" type="STRING" size="256"/>
- <Column id="allotrnptkinddg" type="STRING" size="256"/>
- <Column id="trnptkind" type="STRING" size="256"/>
- <Column id="trnptdd" type="STRING" size="256"/>
- <Column id="selectrow" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="pid"/>
- <Col id="hngnm"/>
- <Col id="trnptdg"/>
- <Col id="totdg"/>
- <Col id="autoallodg"/>
- <Col id="allotrnptkinddg"/>
- <Col id="trnptkind"/>
- <Col id="trnptdd"/>
- <Col id="selectrow"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_main_hsctinfo_patinfolist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="pid" type="STRING" size="256" sumtext="등록번호"/>
- <Column id="hngnm" type="STRING" size="256" sumtext="환자명"/>
- <Column id="sex" type="STRING" size="256" sumtext="성별"/>
- <Column id="age" type="STRING" size="256" sumtext="나이"/>
- <Column id="rrgstno1" type="STRING" size="256" sumtext="주민번호상위"/>
- <Column id="rrgstno2" type="STRING" size="256" sumtext="주민번호하위"/>
- <Column id="srchreqdg" type="STRING" size="256" sumtext="검색차수"/>
- <Column id="cibmtrid" type="STRING" size="256" sumtext="cibmtrid"/>
- <Column id="resrchyn" type="STRING" size="256" sumtext="research여부"/>
- <Column id="lostfudd" type="STRING" size="256" sumtext="lost F/U 일자"/>
- <Column id="dethdd" type="STRING" size="256" sumtext="사망일"/>
- <Column id="dethresn" type="STRING" size="256" sumtext="사인"/>
- <Column id="dethyn" type="STRING" size="256" sumtext="사망여부"/>
- <Column id="dethrgstyn" type="STRING" size="256" sumtext="사망정보기등록여부"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="hngnm"/>
- <Col id="rrgstno1"/>
- <Col id="age"/>
- <Col id="sex"/>
- <Col id="pid"/>
- <Col id="rrgstno2"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_init_cmbinfo_sex_P0313" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="cdid" type="STRING" size="256"/>
- <Column id="cdnm" type="STRING" size="256"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_init_cmbinfo_btype_M0376" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="cdnm" type="STRING" size="256"/>
- <Column id="cdid" type="STRING" size="256"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_init_cmbinfo_trnptkind_A0161" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="hsctlrgnm" type="STRING" size="256"/>
- <Column id="hsctlrgcd" type="STRING" size="256"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_init_cmbinfo_lrglist_item" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="hsctlrgnm" type="STRING" size="256"/>
- <Column id="hsctlrgcd" type="STRING" size="256"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_init_cmbinfo_scs_A0162" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="hsctmdlnm" type="STRING" size="256"/>
- <Column id="hsctmdlcd" type="STRING" size="256"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_cmb_insukind" 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/>
- <Row>
- <Col id="label">급여</Col>
- <Col id="value">1</Col>
- </Row>
- <Row>
- <Col id="label">비급여</Col>
- <Col id="value">2</Col>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_init_cmbinfo_dethresn_A0186" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="hsctmdlcd" type="STRING" size="256"/>
- <Column id="hsctmdlnm" type="STRING" size="256"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_init_cmbinfo_trnptwardcd_A0479" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="hsctmdlnm" type="STRING" size="256"/>
- <Column id="hsctmdlcd" type="STRING" size="256"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_init_cmbinfo_trnptroomcd_A0480" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="hsctmdlcd" type="STRING" size="256"/>
- <Column id="hsctmdlnm" type="STRING" size="256"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_init_cmbinfo_deptcd_A0478" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="hsctlrgcd" type="STRING" size="256"/>
- <Column id="hsctlrgnm" type="STRING" size="256"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_send_temp" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_temp_paminfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_temp_bmtpatientinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_main" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- </Objects>
- <Bind>
- <BindItem id="item0" compid="grp_sea.ipt_trnptfromdd" propid="value" datasetid="ds_send_data" columnid="trnptfromdd"/>
- <BindItem id="item1" compid="grp_sea.ipt_trnpttodd" propid="value" datasetid="ds_send_data" columnid="trnpttodd"/>
- <BindItem id="item2" compid="grp_sea.combo1" propid="value" datasetid="ds_send_data" columnid="insuaprvkind"/>
- <BindItem id="item3" compid="grp_sea.combo2" propid="value" datasetid="ds_send_data" columnid="diagcd1"/>
- <BindItem id="item4" compid="grp_sea.combo5" propid="value" datasetid="ds_send_data" columnid="scs"/>
- <BindItem id="item5" compid="grp_sea.ipt_pid" propid="value" datasetid="ds_send_data" columnid="pid"/>
- <BindItem id="item6" compid="grp_sea.output17" propid="value" datasetid="ds_main_hsctinfo_patinfolist" columnid="hngnm"/>
- <BindItem id="item7" compid="grp_sea.output5" propid="value" datasetid="ds_main_hsctinfo_patinfolist" columnid="age"/>
- <BindItem id="item8" compid="grp_sea.output6" propid="value" datasetid="ds_main_hsctinfo_patinfolist" columnid="sex"/>
- <BindItem id="item9" compid="grp_sea.combo3" propid="value" datasetid="ds_send_data" columnid="trnptkind"/>
- <BindItem id="item10" compid="grp_sea.combo4" propid="value" datasetid="ds_send_data" columnid="pattrnptafbtype"/>
- <BindItem id="item11" compid="grp_sea.combo6" propid="value" datasetid="ds_send_data" columnid="sex"/>
- <BindItem id="item12" compid="grp_sea.combo7" propid="value" datasetid="ds_send_data" columnid=""/>
- <BindItem id="item13" compid="output25" propid="value" datasetid="ds_temp_trnptdg" columnid="pid"/>
- <BindItem id="item14" compid="output1" propid="value" datasetid="ds_temp_trnptdg" columnid="hngnm"/>
- <BindItem id="item15" compid="output2" propid="value" datasetid="ds_temp_trnptdg" columnid="trnptdg"/>
- <BindItem id="item16" compid="output3" propid="value" datasetid="ds_temp_trnptdg" columnid="trnptdd"/>
- <BindItem id="item17" compid="output7" propid="value" datasetid="ds_temp_trnptdg" columnid="totdg"/>
- <BindItem id="item18" compid="output8" propid="value" datasetid="ds_temp_trnptdg" columnid="autoallodg"/>
- <BindItem id="item19" compid="output4" propid="value" datasetid="ds_temp_trnptdg" columnid="trnptkind"/>
- <BindItem id="item20" compid="output9" propid="value" datasetid="ds_temp_trnptdg" columnid="allotrnptkinddg"/>
- </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";
- include "ast_hsctxp::bmtcommon.xjs";
- function SMABO01500_oninit(obj:Form, e:InitEventInfo)
- {
- frmf_initForm(obj);
- }
- function SMABO01500_onload(obj:Form, e:LoadEventInfo)
- {
- grdf_initGrid(grd_patlist);
-
- var arrParam = [{dsNm: "ds_init_cmbinfo_btype_M0376", cdGrpId: "M0376"}
- ,{dsNm: "ds_init_cmbinfo_sex_P0313", cdGrpId: "P0313"}]
- appf_getCodeList(arrParam);
-
- var arrParam = [{dsNm: "ds_init_cmbinfo_trnptkind_A0161", cdGrpId: "A0161"}
- ,{dsNm: "ds_init_cmbinfo_scs_A0162", cdGrpId: "A0162"}
- ,{dsNm: "ds_init_cmbinfo_trnptwardcd_A0479", cdGrpId: "A0479"}
- ,{dsNm: "ds_init_cmbinfo_trnptroomcd_A0480", cdGrpId: "A0480"}
- ,{dsNm: "ds_init_cmbinfo_deptcd_A0478", cdGrpId: "A0478"}
- ,{dsNm: "ds_init_cmbinfo_dethresn_A0186", cdGrpId: "A0186"}];
- aboGetCodeList(arrParam);
-
- ds_init_cmbinfo_trnptkind_A0161.updateColID("hsctmdlnm", "cdnm");
- ds_init_cmbinfo_trnptkind_A0161.updateColID("hsctmdlcd", "cdid");
-
- abofGetBmtDIagLrgList();
- abofSetTrnptKindCdAuto();
-
- ds_init_cmbinfo_trnptkind_A0161.insertRow(0);
- ds_init_cmbinfo_lrglist_item.insertRow(0);
- ds_init_cmbinfo_scs_A0162.insertRow(0);
- ds_init_cmbinfo_btype_M0376.insertRow(0);
- ds_init_cmbinfo_sex_P0313.insertRow(0);
- ds_init_cmbinfo_dethresn_A0186.insertRow(0);
-
- var strnptfromdd = String(utlf_getCurrentDate()).substr(0,6).toDate().getAddDate(1,"D").getDateFormat("YYYYMMDD");
- ds_send_data.setColumn(0, "trnptfromdd", strnptfromdd);
- var strnpttodd = String(utlf_getCurrentDate()).substr(0,6) + strnptfromdd.toDate().getMonthDay();
- ds_send_data.setColumn(0, "trnpttodd", strnpttodd);
-
- if ( frmf_checkOpener())
- {
- var param = opener.frmf_getParameter("opener_parameter_id");
- if(!utlf_isNull(param))
- {
- condarray = param.split("▦");
- ds_send_data.setColumn(0, "pid", condarray[0]);
- return;
- }
- }
- var paminfo = sysf_getGlobalVariable("paminfo");
- if (!utlf_isNull(paminfo))
- {
- ds_temp_paminfo.clearData();
- dsf_setCSVToDs("ds_temp_paminfo", paminfo);
-
- var pid = ds_temp_paminfo.getColumn(0, "pid");
- ds_send_data.setColumn(0, "pid", pid)
- }
- else
- {
- var gv_pid = sysf_getGlobalVariable("gv_pid", "A");
- if(!utlf_isNull(gv_pid))
- {
- ds_send_data.setColumn(0, "pid", gv_pid);
- }
- }
- btn_save.enable = frmf_checkAuth("X");
- }
- function grp_sea_ipt_pid_onkeyup(obj:Edit, e:KeyEventInfo)
- {
- if(e.keycode == 13)
- {
- obj.updateToDataset();
- grp_sea.btn_sea.click();
- }
- }
- function grp_sea_btn_pid_onclick(obj:Button, e:ClickEventInfo)
- {
- abofGetBmtPatientSearch("ds_main_hsctinfo_patinfolist", "ds_temp_bmtpatientinfo");
- ds_send_data.setColumn(0, "pid", ds_temp_bmtpatientinfo.getColumn(0, "pid"));
-
- var oParam = {};
- oParam.id = "TRABO00001";
- oParam.service = "hsctcoordinatorapp.HsctPatient";
- oParam.method = "reqGetPatientBaseInfo";
- oParam.inds = "req=ds_send_data";
- oParam.outds = "ds_main_hsctinfo_patinfolist=patinfolist";
- oParam.async = false;
- //oParam.callback = "cf_TRABO00001";
- tranf_submit(oParam);
-
- dsf_setDefaultVal(ds_main_hsctinfo_patinfolist, "dethyn:N");
- fGetTrnptDgMngtList();
- }
- function fGetTrnptDgMngtList()
- {
- var oParam = {};
- oParam.id = "TRABO01501";
- oParam.service = "hsctcoordinatorapp.HsctPatient";
- oParam.method = "reqGetTrnptDgMngt";
- oParam.inds = "req=ds_send_data";
- oParam.outds = "ds_main_trnptdgmngt_trnptdglist=trnptdglist";
- oParam.async = false;
- //oParam.callback = "cf_TRABO01501";
- tranf_submit(oParam);
- }
- function grp_sea_btn_sea_onclick(obj:Button, e:ClickEventInfo)
- {
- var oParam = {};
- oParam.id = "TRABO00001";
- oParam.service = "hsctcoordinatorapp.HsctPatient";
- oParam.method = "reqGetPatientBaseInfo";
- oParam.inds = "req=ds_send_data";
- oParam.outds = "ds_main_hsctinfo_patinfolist=patinfolist";
- oParam.async = false;
- //oParam.callback = "cf_TRABO00001";
- tranf_submit(oParam);
-
- fGetTrnptDgMngtList();
- }
- function grd_patlist_oncellclick(obj:Grid, e:GridClickEventInfo)
- {
- ds_temp_trnptdg.setColumn(0, "pid", ds_main_trnptdgmngt_trnptdglist.getColumn(e.row, "pid"));
- ds_temp_trnptdg.setColumn(0, "hngnm", ds_main_trnptdgmngt_trnptdglist.getColumn(e.row, "hngnm"));
- ds_temp_trnptdg.setColumn(0, "trnptdg", ds_main_trnptdgmngt_trnptdglist.getColumn(e.row, "trnptdg"));
- ds_temp_trnptdg.setColumn(0, "totdg", ds_main_trnptdgmngt_trnptdglist.getColumn(e.row, "totdg"));
- ds_temp_trnptdg.setColumn(0, "autoallodg", ds_main_trnptdgmngt_trnptdglist.getColumn(e.row, "autoallodg"));
- ds_temp_trnptdg.setColumn(0, "trnptdd", ds_main_trnptdgmngt_trnptdglist.getColumn(e.row, "trnptdd"));
- ds_temp_trnptdg.setColumn(0, "selectrow", ds_main_trnptdgmngt_trnptdglist.rowposition);
- ds_temp_trnptdg.setColumn(0, "trnptkind", ds_init_cmbinfo_trnptkind_A0161.lookup("cdid", ds_main_trnptdgmngt_trnptdglist.getColumn(ds_main_trnptdgmngt_trnptdglist.rowposition, "trnptkind"), "cdnm"));
- ds_temp_trnptdg.setColumn(0, "allotrnptkinddg", ds_main_trnptdgmngt_trnptdglist.getColumn(e.row, "allotrnptkinddg"));
- }
- function fSetTrnptDgClear(paramFlag)
- {
- if ( paramFlag == "S")
- {
- ds_main_trnptdgmngt_trnptdglist.setColumn(ds_main_trnptdgmngt_trnptdglist.rowposition, "totdg", "");
- ds_main_trnptdgmngt_trnptdglist.setColumn(ds_main_trnptdgmngt_trnptdglist.rowposition, "autoallodg", "");
- ds_main_trnptdgmngt_trnptdglist.setColumn(ds_main_trnptdgmngt_trnptdglist.rowposition, "allotrnptkinddg", "");
-
- ds_temp_trnptdg.setColumn(0, "totdg", "");
- ds_temp_trnptdg.setColumn(0, "autoallodg", "");
- ds_temp_trnptdg.setColumn(0, "allotrnptkinddg", "");
- }
- else if ( paramFlag == "A" )
- {
- for(var i = 0; i < ds_main_trnptdgmngt_trnptdglist.rowcount; i++)
- {
- ds_main_trnptdgmngt_trnptdglist.setColumn(i, "totdg", "");
- ds_main_trnptdgmngt_trnptdglist.setColumn(i, "autoallodg", "");
- ds_main_trnptdgmngt_trnptdglist.setColumn(i, "allotrnptkinddg", "");
- }
- }
- }
- function button2_onclick(obj:Button, e:ClickEventInfo)
- {
- if ( sysf_messageBox("전체 환자의 Total, Auto/Allo, Allo Kind 차수정보를 지웁니다.", "Q004") == 6 )
- {
- fSetTrnptDgClear("A");
- }
- }
- function button1_onclick(obj:Button, e:ClickEventInfo)
- {
- if ( sysf_messageBox("Allo 이식종류별 차수를 생성합니다.", "Q004") == 6 )
- {
- fCalcTrnptDgAlloAuto();
- }
- }
- function fCalcTrnptDgAlloAuto()
- {
- var SiblingStandarddg = 0 , SiblingStandarddgrow = 0 ;
- var SiblingNSTdg = 0, SiblingNSTdgrow = 0;
- var FMMStandarddg = 0, FMMStandarddgrow = 0;
- var FMMNSTdg = 0, FMMNSTdgrow = 0;
- var FMStandarddg = 0, FMStandarddgrow = 0;
- var FMNSTdg = 0, FMNSTdgrow = 0;
- var UnrelatedStandarddg = 0, UnrelatedStandarddgrow = 0;
- var UnrealtedNSTdg = 0, UnrealtedNSTdgrow = 0;
- var CordStandarddg = 0, CordStandarddgrow = 0;
- var CordNSTdg = 0, CordNSTdgrow = 0;
-
- for (var i = 0; i < ds_main_trnptdgmngt_trnptdglist.rowcount; i++)
- {
- if (SiblingStandarddg == 0 && ds_main_trnptdgmngt_trnptdglist.getColumn(i, "trnptkind") == "01")
- {
- if(utlf_isNull(ds_main_trnptdgmngt_trnptdglist.getColumn(i, "allotrnptkinddg")))
- {
- sysf_messageBox("Sibling Standard 차수 생성을 위한 시작차수번호를 " + parseInt(i+1) + "번째 행에", "C001");
- ds_main_trnptdgmngt_trnptdglist.rowposition = i;
- grd_patlist.setFocus();
- return false;
- }
- SiblingStandarddg = parseInt(ds_main_trnptdgmngt_trnptdglist.getColumn(i, "allotrnptkinddg"));
- SiblingStandarddgrow = i;
- }
- if (SiblingNSTdg == 0 && ds_main_trnptdgmngt_trnptdglist.getColumn(i, "trnptkind") == "02")
- {
- if(utlf_isNull(ds_main_trnptdgmngt_trnptdglist.getColumn(i, "allotrnptkinddg")))
- {
- sysf_messageBox("Sibling NST 차수 생성을 위한 시작차수번호를 " + parseInt(i+1) + "번째 행에", "C002");
- ds_main_trnptdgmngt_trnptdglist.rowposition = i;
- grd_patlist.setFocus();
- return false;
- }
- SiblingNSTdg = parseInt(ds_main_trnptdgmngt_trnptdglist.getColumn(i, "allotrnptkinddg"));
- SiblingNSTdgrow = i;
- }
- if (FMMStandarddg == 0 && ds_main_trnptdgmngt_trnptdglist.getColumn(i, "trnptkind") == "03")
- {
- if (utlf_isNull(ds_main_trnptdgmngt_trnptdglist.getColumn(i, "allotrnptkinddg")))
- {
- sysf_messageBox("FMM Standard 차수 생성을 위한 시작차수번호를 " + parseInt(i+1) + "번째 행에", "C002");
- ds_main_trnptdgmngt_trnptdglist.rowposition = i;
- grd_patlist.setFocus();
- return false;
- }
- FMMStandarddg = parseInt(ds_main_trnptdgmngt_trnptdglist.getColumn(i, "allotrnptkinddg"));
- FMMStandarddgrow = i;
- }
- if (FMMNSTdg == 0 && ds_main_trnptdgmngt_trnptdglist.getColumn(i, "trnptkind") == "04")
- {
- if(utlf_isNull(ds_main_trnptdgmngt_trnptdglist.getColumn(i, "allotrnptkinddg")))
- {
- sysf_messageBox("FMM NST 차수 생성을 위한 시작차수번호를 " + parseInt(i+1) + "번째 행에", "C002");
- ds_main_trnptdgmngt_trnptdglist.rowposition = i;
- grd_patlist.setFocus();
- return false;
- }
- FMMNSTdg = parseInt(ds_main_trnptdgmngt_trnptdglist.getColumn(i, "allotrnptkinddg"));
- FMMNSTdgrow = i;
- }
- if (FMStandarddg == 0 && ds_main_trnptdgmngt_trnptdglist.getColumn(i, "trnptkind") == "05")
- {
- if(utlf_isNull(ds_main_trnptdgmngt_trnptdglist.getColumn(i, "allotrnptkinddg")))
- {
- sysf_messageBox("FM Standard 차수 생성을 위한 시작차수번호를 " + parseInt(i+1) + "번째 행에", "C002");
- ds_main_trnptdgmngt_trnptdglist.rowposition = i;
- grd_patlist.setFocus();
- return false;
- }
- FMStandarddg = parseInt(ds_main_trnptdgmngt_trnptdglist.getColumn(i, "allotrnptkinddg"));
- FMStandarddgrow = i;
- }
- if (FMNSTdg == 0 && ds_main_trnptdgmngt_trnptdglist.getColumn(i, "trnptkind") == "06")
- {
- if(utlf_isNull(ds_main_trnptdgmngt_trnptdglist.getColumn(i, "allotrnptkinddg")))
- {
- sysf_messageBox("FM NST 차수 생성을 위한 시작차수번호를 " + parseInt(i+1) + "번째 행에", "C002");
- ds_main_trnptdgmngt_trnptdglist.rowposition = i;
- grd_patlist.setFocus();
- return false;
- }
- FMNSTdg = parseInt(ds_main_trnptdgmngt_trnptdglist.getColumn(i, "allotrnptkinddg"));
- FMNSTdgrow = i;
- }
- if (UnrelatedStandarddg == 0 && ds_main_trnptdgmngt_trnptdglist.getColumn(i, "trnptkind") == "07")
- {
- if(utlf_isNull(ds_main_trnptdgmngt_trnptdglist.getColumn(i, "allotrnptkinddg")))
- {
- sysf_messageBox("Unrelated Standard 차수 생성을 위한 시작차수번호를 " + parseInt(i+1) + "번째 행에", "C002");
- ds_main_trnptdgmngt_trnptdglist.rowposition = i;
- grd_patlist.setFocus();
- return false;
- }
- UnrelatedStandarddg = parseInt(ds_main_trnptdgmngt_trnptdglist.getColumn(i, "allotrnptkinddg"));
- UnrelatedStandarddgrow = i;
- }
- if (UnrealtedNSTdg == 0 && ds_main_trnptdgmngt_trnptdglist.getColumn(i, "trnptkind") == "08")
- {
- if(utlf_isNull(ds_main_trnptdgmngt_trnptdglist.getColumn(i, "allotrnptkinddg")))
- {
- sysf_messageBox("Unrealted NST 차수 생성을 위한 시작차수번호를 " + parseInt(i+1) + "번째 행에", "C002");
- ds_main_trnptdgmngt_trnptdglist.rowposition = i;
- grd_patlist.setFocus();
- return false;
- }
- UnrealtedNSTdg = parseInt(ds_main_trnptdgmngt_trnptdglist.getColumn(i, "allotrnptkinddg"));
- UnrealtedNSTdgrow = i;
- }
- if (CordStandarddg == 0 && ds_main_trnptdgmngt_trnptdglist.getColumn(i, "trnptkind") == "09")
- {
- if(utlf_isNull(ds_main_trnptdgmngt_trnptdglist.getColumn(i, "allotrnptkinddg")))
- {
- sysf_messageBox("Cord Standard 차수 생성을 위한 시작차수번호를 " + parseInt(i+1) + "번째 행에", "C002");
- ds_main_trnptdgmngt_trnptdglist.rowposition = i;
- grd_patlist.setFocus();
- return false;
- }
- CordStandarddg = parseInt(ds_main_trnptdgmngt_trnptdglist.getColumn(i, "allotrnptkinddg"));
- CordStandarddgrow = i;
- }
- if (CordNSTdg == 0 && ds_main_trnptdgmngt_trnptdglist.getColumn(i, "trnptkind") == "10")
- {
- if(utlf_isNull(ds_main_trnptdgmngt_trnptdglist.getColumn(i, "allotrnptkinddg")))
- {
- sysf_messageBox("Cord NST차수 생성을 위한 시작차수번호를 " + parseInt(i+1) + "번째 행에", "C002");
- ds_main_trnptdgmngt_trnptdglist.rowposition = i;
- grd_patlist.setFocus();
- return false;
- }
- CordNSTdg = parseInt(ds_main_trnptdgmngt_trnptdglist.getColumn(i, "allotrnptkinddg"));
- CordNSTdgrow = i;
- }
- }
- for (var i = 0; i < ds_main_trnptdgmngt_trnptdglist.rowcount; i++)
- {
- if(ds_main_trnptdgmngt_trnptdglist.getColumn(i, "trnptkind") == "01")
- {
- ds_main_trnptdgmngt_trnptdglist.setColumn(i, "allotrnptkinddg", SiblingStandarddg);
- SiblingStandarddg = SiblingStandarddg + 1;
- }
- if(ds_main_trnptdgmngt_trnptdglist.getColumn(i, "trnptkind") == "02")
- {
- ds_main_trnptdgmngt_trnptdglist.setColumn(i, "allotrnptkinddg", SiblingNSTdg);
- SiblingNSTdg = SiblingNSTdg + 1;
- }
- if(ds_main_trnptdgmngt_trnptdglist.getColumn(i, "trnptkind") == "03")
- {
- ds_main_trnptdgmngt_trnptdglist.setColumn(i, "allotrnptkinddg", FMMStandarddg);
- FMMStandarddg = FMMStandarddg + 1;
- }
- if(ds_main_trnptdgmngt_trnptdglist.getColumn(i, "trnptkind") == "04")
- {
- ds_main_trnptdgmngt_trnptdglist.setColumn(i, "allotrnptkinddg", FMMNSTdg);
- FMMNSTdg = FMMNSTdg + 1;
- }
- if(ds_main_trnptdgmngt_trnptdglist.getColumn(i, "trnptkind") == "05")
- {
- ds_main_trnptdgmngt_trnptdglist.setColumn(i, "allotrnptkinddg", FMStandarddg);
- FMStandarddg = FMStandarddg + 1;
- }
- if(ds_main_trnptdgmngt_trnptdglist.getColumn(i, "trnptkind") == "06")
- {
- ds_main_trnptdgmngt_trnptdglist.setColumn(i, "allotrnptkinddg", FMNSTdg);
- FMNSTdg = FMNSTdg + 1;
- }
- if(ds_main_trnptdgmngt_trnptdglist.getColumn(i, "trnptkind") == "07")
- {
- ds_main_trnptdgmngt_trnptdglist.setColumn(i, "allotrnptkinddg", UnrelatedStandarddg);
- UnrelatedStandarddg = UnrelatedStandarddg + 1;
- }
- if(ds_main_trnptdgmngt_trnptdglist.getColumn(i, "trnptkind") == "08")
- {
- ds_main_trnptdgmngt_trnptdglist.setColumn(i, "allotrnptkinddg", UnrealtedNSTdg);
- UnrealtedNSTdg = UnrealtedNSTdg + 1;
- }
- if(ds_main_trnptdgmngt_trnptdglist.getColumn(i, "trnptkind") == "09")
- {
- ds_main_trnptdgmngt_trnptdglist.setColumn(i, "allotrnptkinddg", CordStandarddg);
- CordStandarddg = CordStandarddg + 1;
- }
- if(ds_main_trnptdgmngt_trnptdglist.getColumn(i, "trnptkind") == "10")
- {
- ds_main_trnptdgmngt_trnptdglist.setColumn(i, "allotrnptkinddg", CordNSTdg);
- CordNSTdg = CordNSTdg + 1;
- }
- }
- }
- function btn_excsave_onclick(obj:Button, e:ClickEventInfo)
- {
- grdf_exportExcel(grd_patlist, "차수관리", "see");
- }
- function btn_prt_onclick(obj:Button, e:ClickEventInfo)
- {
- var objDOM = rptf_createDOM();
- var objParam = new Object();
- rptf_setNodeListToDOM(objDOM, "/root/main/trnptdgmngt/trnptdglist" , ds_main_trnptdgmngt_trnptdglist);
- objParam.xml_data_XML1 = objDOM.documentElement.source;
- var option = "";
- rptf_exeReportPreview30(["RPABO01501"],[objParam], option);
- }
- function btn_save_onclick(obj:Button, e:ClickEventInfo)
- {
- fSetTrnptKindDg();
- fGetTrnptDgMngtList();
- }
- function fSetTrnptKindDg()
- {
- if(fDataCheck())
- {
- dsf_setTypeFormat(ds_main_trnptdgmngt_trnptdglist, "totdg:INT^autoallodg:INT^allotrnptkinddg:INT^trnptdg:INT");
- var oParam = {};
- oParam.id = "TXABO01501";
- oParam.service = "hsctcoordinatorapp.HsctPatient";
- oParam.method = "reqSetTrnptDgMngt";
- oParam.inds = "req=ds_main_trnptdgmngt_trnptdglist";
- oParam.outds = "ds_=item";
- oParam.async = false;
- //oParam.callback = "cf_TXABO01501";
- tranf_submit(oParam);
- }
- }
- function fDataCheck()
- {
- var nodelist = ds_main_trnptdgmngt_trnptdglist.rowcount;
-
- for(var i = 0; i < nodelist; i++)
- {
- for(var j = 0; j < nodelist; j++)
- {
- if (i != j && ds_main_trnptdgmngt_trnptdglist.getColumn(i, "totdg") == ds_main_trnptdgmngt_trnptdglist.getColumn(j, "totdg") && !utlf_isNull(ds_main_trnptdgmngt_trnptdglist.getColumn(j, "totdg")))
- {
- sysf_messageBox("Total 차수의 값이" + parseInt(i+1) + "번째 행과 " + parseInt(j+1) + "번째 행이 같습니다. 다시", "C002");
- return false;
- }
- }
- }
- return true;
- }
- function button3_onclick(obj:Button, e:ClickEventInfo)
- {
- if ( sysf_messageBox(ds_main_trnptdgmngt_trnptdglist.getColumn(ds_main_trnptdgmngt_trnptdglist.rowposition, "hngnm")+ " 환자의 Total, Auto/Allo, Allo Kind 차수정보를 지웁니다.", "Q004") == 6 )
- {
- fSetTrnptDgClear("S");
- }
- }
- function button4_onclick(obj:Button, e:ClickEventInfo)
- {
- if ( sysf_messageBox("Total 차수와 Auto/Allo 차수를 생성합니다.", "Q004") == 6 )
- {
- fCalcTrnptDgAuto();
- }
- }
- function fCalcTrnptDgAuto()
- {
- if ( utlf_isNull(ds_main_trnptdgmngt_trnptdglist.getColumn(0, "totdg")))
- {
- sysf_messageBox("전체 차수 생성을 위한 시작차수번호를 첫번째 행에", "C001");
- return false;
- }
- var stotdg = parseInt(ds_main_trnptdgmngt_trnptdglist.getColumn(0, "totdg"));
- var sautodg = 0;
- var sallodg = 0;
- var sautodgrow = 0;
- var sallodgrow = 0;
- for (var i = 0; i < ds_main_trnptdgmngt_trnptdglist.rowcount; i++)
- {
- if (sautodg == 0 && ds_main_trnptdgmngt_trnptdglist.getColumn(i, "trnptkind") == "00")
- {
- if(utlf_isNull(ds_main_trnptdgmngt_trnptdglist.getColumn(i, "autoallodg")))
- {
- sysf_messageBox("AUTO 차수 생성을 위한 시작차수번호를 " + parseInt(i+1) + "번째 행에", "C001");
- ds_main_trnptdgmngt_trnptdglist.rowposition = i;
- grd_patlist.setCellPos(grd_patlist.getBindCellIndex("body", "autoallodg"));
- grd_patlist.showEditor(true);
- return false;
- }
- sautodg = parseInt(ds_main_trnptdgmngt_trnptdglist.getColumn(i, "autoallodg"));
- sautodgrow = i;
- }
- if (sallodg == 0 && ds_main_trnptdgmngt_trnptdglist.getColumn(i, "trnptkind") != "00")
- {
- if (utlf_isNull(ds_main_trnptdgmngt_trnptdglist.getColumn(i, "autoallodg")))
- {
- sysf_messageBox("ALLO 차수 생성을 위한 시작차수번호를 " + parseInt(i+1) + "번째 행에", "C001");
- ds_main_trnptdgmngt_trnptdglist.rowposition = i;
- grd_patlist.setCellPos(grd_patlist.getBindCellIndex("body", "autoallodg"));
- grd_patlist.showEditor(true);
- return false;
- }
- sallodg = parseInt(ds_main_trnptdgmngt_trnptdglist.getColumn(i, "autoallodg"));
- sallodgrow = i;
- }
- }
- for (var i = 0; i < ds_main_trnptdgmngt_trnptdglist.rowcount; i++)
- {
- ds_main_trnptdgmngt_trnptdglist.setColumn(i, "totdg", stotdg);
-
- if(ds_main_trnptdgmngt_trnptdglist.getColumn(i, "trnptkind") == "00")
- {
- ds_main_trnptdgmngt_trnptdglist.setColumn(i, "autoallodg", sautodg);
- sautodg = sautodg + 1;
- }
- if(ds_main_trnptdgmngt_trnptdglist.getColumn(i, "trnptkind") != "00")
- {
- ds_main_trnptdgmngt_trnptdglist.setColumn(i, "autoallodg", sallodg);
- sallodg = sallodg + 1;
- }
- stotdg = stotdg + 1;
- }
- }]]></Script>
- </Form>
- </FDL>
|