123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="workform" position="absolute 0 0 776 454" titletext="공여자명세서생성" oninit="model1_oninit">
- <Layouts>
- <Layout>
- <Grid id="grd_clbsmast_O" class="datagrid2" taborder="32" binddataset="ds_grid_datagrid1" useinputpanel="false" position="absolute 0 99 768 267">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="23"/>
- <Column size="61"/>
- <Column size="41"/>
- <Column size="67"/>
- <Column size="22"/>
- <Column size="53"/>
- <Column size="30"/>
- <Column size="30"/>
- <Column size="72"/>
- <Column size="72"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="70"/>
- <Column size="60"/>
- <Column size="65"/>
- <Column size="65"/>
- <Column size="64"/>
- </Columns>
- <Rows>
- <Row size="35" band="head"/>
- <Row size="20"/>
- </Rows>
- <Band id="head">
- <Cell text="C"/>
- <Cell col="1" text="청구년월"/>
- <Cell col="2" text="차수"/>
- <Cell col="3" colspan="2" 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="접수번호"/>
- <Cell col="15" text="접수일자"/>
- <Cell col="16" text="명일련"/>
- </Band>
- <Band id="body">
- <Cell displaytype="checkbox" edittype="checkbox" text="bind:fromchk"/>
- <Cell col="1" style="align:center middle;" text="bind:clamym" mask="####-##"/>
- <Cell col="2" style="align:center middle;" text="bind:clamdg"/>
- <Cell col="3" style="align:center middle;" text="bind:pid"/>
- <Cell col="4" style="align:center middle;" text="bind:pidsn"/>
- <Cell col="5" style="align:center middle;" text="bind:patnm"/>
- <Cell col="6" style="align:center middle;" text="bind:insukind"/>
- <Cell col="7" style="align:center middle;" text="bind:suppkind"/>
- <Cell col="8" style="align:center middle;" text="bind:ordfromdd" mask="####-##-##"/>
- <Cell col="9" style="align:center middle;accessibility: ;" text="bind:ordtodd" mask="####-##-##"/>
- <Cell col="10" style="align:center middle;" text="bind:iphsfromdd" mask="####-##-##"/>
- <Cell col="11" style="align:center middle;" text="bind:iphstodd" mask="####-##-##"/>
- <Cell col="12" displaytype="combo" style="align:left middle;" text="bind:orddeptcd" combodataset="ds_cond_deptinfolist" combocodecol="deptcd" combodatacol="depthngnm"/>
- <Cell col="13" displaytype="combo" style="align:center middle;" text="bind:orddrid" combodataset="ds_cond_orddrid" combocodecol="userid" combodatacol="usernm"/>
- <Cell col="14" style="align:center middle;" text="bind:acptno"/>
- <Cell col="15" style="align:center middle;" text="bind:acptdd"/>
- <Cell col="16" style="align:center middle;" text="bind:docuseqno"/>
- <Cell col="17"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Grid id="grd_clbsmast" class="datagrid2" taborder="3" useinputpanel="false" position="absolute 0 99 768 267" binddataset="ds_grid_datagrid1" cellsizingtype="col">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="23"/>
- <Column size="61"/>
- <Column size="41"/>
- <Column size="67"/>
- <Column size="22"/>
- <Column size="53"/>
- <Column size="30"/>
- <Column size="35"/>
- <Column size="80"/>
- <Column size="80"/>
- <Column size="80"/>
- <Column size="72"/>
- <Column size="70"/>
- <Column size="60"/>
- <Column size="65"/>
- <Column size="65"/>
- <Column size="64"/>
- </Columns>
- <Rows>
- <Row size="35" band="head"/>
- <Row size="20"/>
- </Rows>
- <Band id="head">
- <Cell text="C"/>
- <Cell col="1" text="청구년월"/>
- <Cell col="2" text="차수"/>
- <Cell col="3" colspan="2" 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="접수번호"/>
- <Cell col="15" text="접수일자"/>
- <Cell col="16" text="명일련"/>
- </Band>
- <Band id="body">
- <Cell displaytype="checkbox" edittype="checkbox" text="bind:fromchk"/>
- <Cell col="1" style="align:center middle;" text="bind:clamym" mask="####-##"/>
- <Cell col="2" style="align:center middle;" text="bind:clamdg"/>
- <Cell col="3" style="align:center middle;" text="bind:pid"/>
- <Cell col="4" style="align:center middle;" text="bind:pidsn"/>
- <Cell col="5" style="align:center middle;" text="bind:patnm"/>
- <Cell col="6" style="align:center middle;" text="bind:insukind"/>
- <Cell col="7" style="align:center middle;" text="bind:suppkind"/>
- <Cell col="8" style="align:center middle;" text="bind:ordfromdd" mask="####-##-##"/>
- <Cell col="9" style="align:center middle;accessibility: ;" text="bind:ordtodd" mask="####-##-##"/>
- <Cell col="10" style="align:center middle;" text="bind:iphsfromdd" mask="####-##-##"/>
- <Cell col="11" style="align:center middle;" text="bind:iphstodd" mask="####-##-##"/>
- <Cell col="12" displaytype="combo" style="align:left middle;" text="bind:orddeptcd" combodataset="ds_cond_deptinfolist" combocodecol="cd" combodatacol="nm"/>
- <Cell col="13" displaytype="combo" style="align:center middle;" text="bind:orddrid" combodataset="ds_cond_orddrid" combocodecol="cd" combodatacol="nm"/>
- <Cell col="14" style="align:center middle;" text="bind:acptno"/>
- <Cell col="15" style="align:center middle;" text="bind:acptdd"/>
- <Cell col="16" style="align:center middle;" text="bind:docuseqno"/>
- <Cell col="17"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Div id="group1" anchor="left top right" taborder="2" text="Div00" class="div_SA" position="absolute 0 27 768 69">
- <Layouts>
- <Layout>
- <Static id="caption2" text="청구년월" class="search_name" position="absolute 8 10 82 30" style="align:left middle;" anchor="default"/>
- <Button id="btn_search" taborder="18" text="조회" onlbuttonup="btn_search_onlbuttonup" class="btn1" position="absolute 700 10 756 30" anchor="top right"/>
- <Calendar id="Calendar00" taborder="19" dateformat="yyyy-MM" editformat="yyyy-MM" class="input_essential" style="align:center middle;" anchor="default" position="absolute 0 0 0 0"/>
- <Edit id="ipt_clamdg" taborder="21" class="input_search" position="absolute 160 10 201 30" style="align:left middle;" anchor="default" enable="false"/>
- <Static id="caption1" text="내원형태" class="search_name" position="absolute 225 10 299 30" anchor="default" style="align:left middle;"/>
- <Combo id="cmb_ioflag" taborder="22" class="combo_search" position="absolute 299 10 409 30" anchor="default" innerdataset="@ds_cond_iofalg" codecolumn="value" datacolumn="label" onitemchanged="group1_cmb_ioflag_onitemchanged"/>
- <Static id="caption38" text="등록번호" class="search_name" position="absolute 433 10 507 27" anchor="default" style="align:left middle;"/>
- <Edit id="ipt_patunitsrch" taborder="23" class="input_search" position="absolute 507 10 604 30" anchor="default"/>
- <cp_monthCal id="cp_monthCal00" titletext="monthCalendar" taborder="24" text="cp_monthCal00" scrollbars="none" position="absolute 82 10 157 30" anchor="default"/>
- </Layout>
- </Layouts>
- </Div>
- <Static id="cap_judgtrgtman" text="기본정보" class="tit_2" position="absolute 0 79 149 99"/>
- <Static id="caption2" text="등록정보" class="tit_2" position="absolute -3 277 123 297"/>
- <Button id="btn_confirm" taborder="16" text="생성" onlbuttonup="btn_confirm_onlbuttonup" class="btn4" position="absolute 585 426 641 446" onclick="btn_confirm_onclick"/>
- <Button id="btn_init" taborder="17" text="초기화" onlbuttonup="btn_init_onlbuttonup" class="btn4" position="absolute 644 426 713 446"/>
- <Static id="caption16" text="총진료비만 입력하세요! 단, CT가 있어서 수기로 계산할때만 본인부담금을 계산해서 입력하세요!" position="absolute 0 426 565 446"/>
- <Static id="Static07" text="Static00" class="sta_DA_box" position="absolute -2 297 768 423"/>
- <Static id="caption13" text="구분" class="cell_1" position="absolute -1 298 79 322" style="align:left middle;"/>
- <Combo id="cmb_spclcd" taborder="19" class="combo_essential" position="absolute 82 300 271 320" innerdataset="@ds_cond_flag" codecolumn="value" datacolumn="label" onitemchanged="cmb_spclcd_onitemchanged"/>
- <Static id="caption5" text="처방코드" class="cell_1" position="absolute 274 298 354 322" style="align:center middle;"/>
- <Edit id="ipt_calcscorcd" taborder="20" class="input_essential" position="absolute 357 300 430 320" enable="false"/>
- <Static id="caption10" text="상병코드" class="cell_1" position="absolute 433 298 513 322" style="align:center middle;"/>
- <Combo id="cmb_diagcd" taborder="21" class="combo_essential" position="absolute 516 300 610 320" innerdataset="@ds_cond_sickcode" codecolumn="value" datacolumn="label"/>
- <Edit id="ipt_hngnm" taborder="22" class="input_essential" position="absolute 82 325 764 345" enable="false"/>
- <Edit id="ipt_inclnm" taborder="23" class="input_essential" position="absolute 82 350 764 370" enable="false"/>
- <Static id="caption3" text="처방명" class="cell_1" position="absolute -1 323 79 347" style="align:left middle;"/>
- <Static id="caption4" text="준용명" class="cell_1" position="absolute -1 348 79 372" style="align:left middle;"/>
- <Static id="caption12" text="EDI메모" class="cell_1" position="absolute -1 373 79 397" style="align:left middle;"/>
- <Edit id="ipt_mx999" taborder="24" class="input_essential" position="absolute 82 375 764 395"/>
- <Static id="caption7" text="1회량" class="cell_1" position="absolute -1 398 79 422" style="align:left middle;"/>
- <Edit id="ipt_qty" taborder="25" class="input_essential" position="absolute 82 400 108 420" style="align:center middle;" enable="false"/>
- <Static id="caption8" text="횟수" class="cell_1" position="absolute 111 398 152 422" style="align:center middle;"/>
- <Edit id="ipt_tims" taborder="26" class="input_essential" position="absolute 155 400 181 420" style="align:center middle;" enable="false"/>
- <Static id="caption11" text="일수" class="cell_1" position="absolute 184 398 225 422" style="align:center middle;"/>
- <Edit id="ipt_dayno" taborder="27" class="input_essential" position="absolute 228 400 254 420" style="align:center middle;" enable="false"/>
- <Static id="caption9" text="총진료비" class="cell_1" position="absolute 257 398 337 422" style="align:center middle;"/>
- <MaskEdit id="ipt_totamt" taborder="28" mask="#,###" class="input_essential" position="absolute 340 400 430 420" style="align:right middle;"/>
- <Static id="caption14" text="본인부담" class="cell_1" position="absolute 433 398 513 422" style="align:center middle;"/>
- <MaskEdit id="ipt_ownbamt" taborder="29" mask="#,###" class="input_essential" position="absolute 516 400 764 420" style="align:right middle;"/>
- <Radio id="rdo_clamflag" taborder="31" columncount="3" rowcount="1" innerdataset="@ds_cond_clamflag2" codecolumn="value" datacolumn="label" position="absolute 619 300 769 320" visible="true"/>
- <Static id="caption00" text="공여자명세서생성" class="tit_1" position="absolute 0 0 177 26"/>
- <Button id="btn_close" taborder="33" text="닫기" onclick="btn_close_onclick" class="btn4" position="absolute 716 426 769 446" anchor="right bottom"/>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_cond_iofalg" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="value" type="STRING" size="256"/>
- <Column id="label" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="value">I</Col>
- <Col id="label">입원</Col>
- </Row>
- <Row>
- <Col id="value">O</Col>
- <Col id="label">외래</Col>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_grid_datagrid1" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
- <ColumnInfo>
- <column id="fromchk"/>
- <column id="clamym"/>
- <column id="clamdg"/>
- <column id="pid"/>
- <column id="pidsn"/>
- <column id="patnm"/>
- <column id="insukind"/>
- <column id="suppkind"/>
- <column id="ordfromdd"/>
- <column id="ordtodd"/>
- <column id="iphsfromdd"/>
- <column id="iphstodd"/>
- <column id="orddeptcd"/>
- <column id="orddrid"/>
- <column id="workflag"/>
- <column id="clbtworkflag"/>
- <column id="acptno"/>
- <column id="acptdd"/>
- <column id="docuseqno"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_cond_flag" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="value" type="STRING" size="256"/>
- <Column id="label" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="value">V073</Col>
- <Col id="label">조혈모세포 공여자</Col>
- </Row>
- <Row>
- <Col id="value">V074</Col>
- <Col id="label">신장 공여자</Col>
- </Row>
- <Row>
- <Col id="value">V075</Col>
- <Col id="label">간 공여자</Col>
- </Row>
- <Row>
- <Col id="value">V076</Col>
- <Col id="label">췌장 공여자</Col>
- </Row>
- <Row>
- <Col id="value">V077</Col>
- <Col id="label">심장 공여자</Col>
- </Row>
- <Row>
- <Col id="value">V078</Col>
- <Col id="label">폐 공여자</Col>
- </Row>
- <Row>
- <Col id="value">-</Col>
- <Col id="label">기타</Col>
- </Row>
- <Row>
- <Col id="label">타병원 진료 명세서</Col>
- <Col id="value">OH</Col>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_cond_sickcode" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="value" type="STRING" size="256"/>
- <Column id="label" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="value">Z523</Col>
- <Col id="label">Z523</Col>
- </Row>
- <Row>
- <Col id="value">Z524</Col>
- <Col id="label">Z524</Col>
- </Row>
- <Row>
- <Col id="value">Z526</Col>
- <Col id="label">Z526</Col>
- </Row>
- <Row>
- <Col id="value">Z528</Col>
- <Col id="label">Z528</Col>
- </Row>
- <Row>
- <Col id="value">Z527</Col>
- <Col id="label">Z527</Col>
- </Row>
- <Row>
- <Col id="value">Z528</Col>
- <Col id="label">Z528</Col>
- </Row>
- <Row>
- <Col id="value">-</Col>
- <Col id="label">-</Col>
- </Row>
- <Row>
- <Col id="value">-</Col>
- <Col id="label">-</Col>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_cond_orddrid" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_cond_deptinfolist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="deptcd"/>
- <Column id="depthngnm"/>
- <Column id="deptengabbr"/>
- <Column id="reqfild"/>
- <Column id="reqdeptno"/>
- <Column id="depthardcd"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_grid_datagrid2" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
- <ColumnInfo>
- <column id="clamym"/>
- <column id="clamdg"/>
- <column id="pid"/>
- <column id="pidsn"/>
- <column id="ioflag"/>
- <column id="ordfromdd"/>
- <column id="orddeptcd"/>
- <column id="orddrid"/>
- <column id="spclcd"/>
- <column id="diagcd"/>
- <column id="calcscorcd"/>
- <column id="hngnm"/>
- <column id="inclnm"/>
- <column id="MX999"/>
- <column id="drugqty"/>
- <column id="tims"/>
- <column id="dayno"/>
- <column id="totamt"/>
- <column id="ownbamt"/>
- <column id="workflag"/>
- <column id="clbtworkflag"/>
- <column id="clamflag"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_cond_clamflag2" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="value" type="STRING" size="256"/>
- <Column id="label" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="value">0</Col>
- <Col id="label">원청구</Col>
- </Row>
- <Row>
- <Col id="value">2</Col>
- <Col id="label">추가청구</Col>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_send_item1" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- </Objects>
- <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";
- /*popup 확인 */
- var makeflag = "";
- var copyflag ="";
- var ioflag = "";
- var clamym = "";
- var clamdg = "";
- var pid ="";
- var pidsn = "";
- var t_clamym = "";
- var t_clamdg = "";
- var t_clamflagcd = "";
- function model1_oninit(obj:Form, e:InitEventInfo)
- {
- frmf_initForm(obj);
-
- var curDate = utlf_getCurrentDate(); //getCurrentDate();
- ds_send_item1.copyData(ds_init_item1)
- var oParam = {};
- oParam.id = "TRPID20201";
- oParam.service = "aftjudgapp.InAftJudgTrgtMan";
- oParam.method = "reqGetInitComCd";
- oParam.inds = "req=ds_send_item1";
- oParam.outds = "ds_=judgrid ds_=suppkind ds_=orddrid ds_cond_orddrid=orddrid2 ds_=clamdept ds_=orddeptcd ds_cond_deptinfolist=orddeptcd2 ds_=item3 ds_=clamdg ds_=aftjudgerr ds_=uuee";
- oParam.async = false;
- tranf_submit(oParam);
-
- pid = ds_init_item1.getColumn(0,"pid");
- if(!utlf_isNull(pid))
- {
- ioflag = ds_init_item1.getColumn(0,"ioflag");
- clamym = ds_init_item1.getColumn(0,"clamym");
-
- clamym = clamym.substring(0,6);
- clamdg = ds_init_item1.getColumn(0,"clamdg");
- pid = ds_init_item1.getColumn(0,"pid");
- pidsn = ds_init_item1.getColumn(0,"pidsn");
- group1.ipt_clamdg.value = clamdg;
- group1.ipt_patunitsrch.value = pid;
- group1.cmb_ioflag.value = ioflag;
- group1.cp_monthCal00.setData(clamym);
- }
-
- ipt_calcscorcd.value ="JJJJJJ"; //처방코드
- ipt_hngnm.value ="타인간 이식 공여자 진료비"; //처방명
- ipt_inclnm.value = "타인간 이식 공여자 진료비"; //준용명
- ipt_qty.value = "1"; //1회량
- ipt_tims.value = "1"; //횟수
- ipt_dayno.value = "1"; //일수
- cmb_diagcd.value ="Z523";
- cmb_spclcd.value ="V073";
- ipt_totamt.value ="";
- rdo_clamflag.value = "0";
- fGetDocuList();
-
- }
- /****************************************************************************************
- * Components :
- * Components ID : grd_clbsmast
- * Event :
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : Not Convert : xforms-value-changed
- ****************************************************************************************//* TF 이벤트 : xforms-value-changed
- function grd_clbsmast_(obj:Grid, e:)
- {
- var icol = grd_clbsmast.col;
- var ifromcnt=0;
- var fromchkyn;
- var nodeList = instance1.selectNodes("/root/main/list1/clbs");
-
- if (icol == grd_clbsmast.colRef("fromchk")) {
- for ( i = 1; i <= nodeList.length; i++) {
- fromchkyn = model.getValue("/root/main/list1/clbs[ " + i + "]/fromchk");
- if (fromchkyn == "Y") {
- ifromcnt++;
- // 추가청구 생성일 경우 체크
- if (model.getValue("/root/main/send/item/clamflag") == "2") {
- if (model.getValue("/root/main/list1/clbs[ " + i + "]/acptdd") == "-") {
- messageBox("접수증 수신파일을 업로드하세요! 접수번호가", "I004"); ///I004=없습니다.
- model.setValue("/root/main/list1/clbs[ " + i + "]/fromchk", "N");
- ifromcnt--;
- break;
- }
- }
-
- model.setValue("/root/send/item1/clamdg", model.getValue("/root/main/list1/clbs[ " + i + "]/clamdg"));
- model.refreshpart("/root/send/item1/clamdg");
- if (ifromcnt > 1) {
- messageBox("명세서를 하나만", "C002"); ///C002=선택하십시오 !
- model.setValue("/root/main/list1/clbs[ " + i + "]/fromchk", "N");
- ifromcnt--;
- }
- }
- }
- }
-
- }*/
- /****************************************************************************************
- * Components :
- * Components ID : ipt_patunitsrch
- * Event :
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : Not Convert : onkeypress
- ****************************************************************************************//* TF 이벤트 : onkeypress
- function ipt_patunitsrch_(obj:Edit, e:)
- {
- if (event.keyCode == "13") { // Enter 입력 시에
- if (ipt_patunitsrch.currentText.length > 1) { // 2글자 이상이면
- setInputNodeCurText(); // (tfHelper.js) 현재 인풋값 노드 반영
- var srchtext = model.getValue("/root/send/item1/pid");
- if (srchtext.charCodeAt(0) > 255) {
- fGetSrchPid();
- } else {
- fGetDonorList();
- }
- }
- }
-
- }*/
- /****************************************************************************************
- * Components :
- * Components ID : ipt_patunitsrch
- * Event :
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : Not Convert : onbuttonclick
- ****************************************************************************************//* TF 이벤트 : onbuttonclick
- function ipt_patunitsrch_(obj:Edit, e:)
- {
- fGetSrchPid();
-
- }*/
- /****************************************************************************************
- * Components :
- * Components ID : ipt_patunitsrch
- * Event :
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : Not Convert : xforms-value-changed
- ****************************************************************************************//* TF 이벤트 : xforms-value-changed
- function ipt_patunitsrch_(obj:Edit, e:)
- {
-
- }*/
- /****************************************************************************************
- * Components :
- * Components ID : btn_select
- * Event : onlbuttonup
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description :
- ****************************************************************************************/
- function btn_select_onlbuttonup(obj:Button, e:MouseEventInfo)
- {
- fGetDonorList();
-
- }
- /****************************************************************************************
- * Components :
- * Components ID : cmb_ioflag
- * Event :
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : Not Convert : xforms-value-changed
- ****************************************************************************************//* TF 이벤트 : xforms-value-changed
- function cmb_ioflag_(obj:Combo, e:)
- {
- if (model.getValue("/root/send/item1/ioflag") == "O") {
- grd_clbsmast.colHidden(grd_clbsmast.colRef("iphsfromdd")) = true;
- grd_clbsmast.colHidden(grd_clbsmast.colRef("iphstodd")) = true;
- } else {
- grd_clbsmast.colHidden(grd_clbsmast.colRef("iphsfromdd")) = false;
- grd_clbsmast.colHidden(grd_clbsmast.colRef("iphstodd")) = false;
- }
-
- }*/
- /****************************************************************************************
- * Components :
- * Components ID : cmb_spclcd
- * Event :
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : Not Convert : xforms-value-changed
- ****************************************************************************************//* TF 이벤트 : xforms-value-changed
- function cmb_spclcd_(obj:Combo, e:)
- {
- var spclcd = model.getValue("/root/send/item1/spclcd");
-
- if (spclcd) {
- var iIndex = cmb_spclcd.focusIndex;
- cmb_diagcd.select(iIndex);
-
- // 구분을 '기타'로 선택한경우 EDI메모를 직접입력한다.
- if (spclcd == '-') {
- model.setFocus("ipt_mx999");
- }
- }
-
- }*/
- /****************************************************************************************
- * Components :
- * Components ID : radio2
- * Event :
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : Not Convert : xforms-select
- ****************************************************************************************//* TF 이벤트 : xforms-select
- function radio2_(obj:Radio, e:)
- {
- // model.resetInstanceNode("/root/send/item1/choicdsrch2");
- model.setValue("/root/send/item1/choicdsrch2", "");
- ipt_choicdsrch.refresh();
-
- if (model.getValue("/root/send/item1/choicdsrch1") == "1") {
- fGetSnglcalcscorcd();
- }
-
-
- }*/
- /****************************************************************************************
- * Components :
- * Components ID : btn_init
- * Event : onlbuttonup
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description :
- ****************************************************************************************/
- function btn_init_onlbuttonup(obj:Button, e:MouseEventInfo)
- {
- cmb_diagcd.value ="Z523";
- cmb_spclcd.value ="V073";
- group1.cmb_ioflag.value="I";
- group1.ipt_clamdg.value = "";
- group1.ipt_patunitsrch.value = "";
- rdo_clamflag.value = "0";
- var curDate = utlf_getCurrentDate(); //getCurrentDate();
- group1.cp_monthCal00.setData(curDate);
- clamym = curDate;
- ds_grid_datagrid1.clearData();
-
-
-
- }
- /****************************************************************************************
- * Components :
- * Components ID : btn_confirm
- * Event : onlbuttonup
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description :
- ****************************************************************************************/
- function btn_confirm_onlbuttonup(obj:Button, e:MouseEventInfo)
- {
- var pid = group1.ipt_patunitsrch.value;
- var totamt = ipt_totamt.value;
- var spclcd = cmb_spclcd.value;
- var saveyn = "Y";
- if(pid ==""){
- sysf_messageBox("등록번호는", "I003"); //I003=필수입력입니다.
- group1.ipt_patunitsrch.setFocus();
- saveyn = "N";
- }
-
- if (totamt == "") {
- sysf_messageBox("총진료비는", "I003"); //I003=필수입력입니다.
- ipt_totamt.setFocus();
- saveyn = "N";
- }
- var ownbamt = ipt_ownbamt.value;
- if (ownbamt == "") {
- ownbamt ="0";
- }
- var preacptno = "";
- var clamflag = "";
- if (saveyn == "Y") {
- var icnt=1;
- var ichkcnt=0;
- ds_grid_datagrid2.clearData();
- for (var i = 0; i <= ds_grid_datagrid1.getRowCount(); i++) {
-
- if(ds_grid_datagrid1.getColumn(i,"fromchk")=="1") {
-
- if(rdo_clamflag.value =="2"){
-
- var aa = ds_grid_datagrid1.getColumn(i,"acptdd");
- if(ds_grid_datagrid1.getColumn(i,"acptdd") =="-"){
-
- sysf_messageBox("접수증 수신파일을 업로드하세요! 접수번호가", "I004"); ///I004=없습니다.
- ds_grid_datagrid1.setColumn(i,"fromchk","");
- return;
- }
-
- }
-
- ichkcnt = ds_grid_datagrid2.addRow();
- ds_grid_datagrid2.copyRow(ichkcnt,ds_grid_datagrid1,i);
-
- preacptno = ds_grid_datagrid1.getColumn(i,"acptno");
- clamflag = rdo_clamflag.value;
-
- ds_grid_datagrid2.setColumn(ichkcnt,"ioflag", group1.cmb_ioflag.value);
- ds_grid_datagrid2.setColumn(ichkcnt,"orddeptcd", ds_grid_datagrid1.getColumn(i,"orddeptcd"));
- ds_grid_datagrid2.setColumn(ichkcnt,"orddrid", ds_grid_datagrid1.getColumn(i,"orddrid"));
- ds_grid_datagrid2.setColumn(ichkcnt,"MX999", ipt_mx999.value);
- ds_grid_datagrid2.setColumn(ichkcnt,"totamt", totamt);
- ds_grid_datagrid2.setColumn(ichkcnt,"ownbamt", ownbamt);
- ds_grid_datagrid2.setColumn(ichkcnt,"spclcd", cmb_spclcd.value);
- ds_grid_datagrid2.setColumn(ichkcnt,"diagcd", cmb_diagcd.value);
- ds_grid_datagrid2.setColumn(ichkcnt,"hngnm", ipt_hngnm.value);
- ds_grid_datagrid2.setColumn(ichkcnt,"calcscorcd", "JJJJJJ");
-
- ds_grid_datagrid2.setColumn(ichkcnt,"inclnm", ipt_inclnm.value);
- ds_grid_datagrid2.setColumn(ichkcnt,"drugqty", ipt_qty.value);
- ds_grid_datagrid2.setColumn(ichkcnt,"tims", ipt_tims.value);
- ds_grid_datagrid2.setColumn(ichkcnt,"dayno", ipt_dayno.value);
-
- ds_grid_datagrid2.setColumn(ichkcnt,"clamflag",rdo_clamflag.value);
- /**
- "clamflag" 필수값이라 라디오 버튼이 없어서 생성.
- 값을 변경시 에러라서... 값을 박아줌.
-
- */
-
- ichkcnt++;
- }
- }
-
- if(ds_grid_datagrid2.getRowCount()>0){
- if (clamflag == "2" && preacptno == '-') {
- sysf_messageBox("선택된 명세서는 청구 전 자료로 추가청구 자료를 생성할 수 없는 명세서", "E008"); //E008=입니다.
- return;
- }
-
- if(ds_grid_datagrid2.getRowCount()>1){
- sysf_messageBox("명세서를 하나만", "C002"); ///C002=선택하십시오 !
- return;
- }else{
- dsf_setDefaultVal(ds_grid_datagrid2, "drugqty:1,tims:1,dayno:1,totamt:0,ownbamt:0");
-
- var oParam = {};
- oParam.id = "TXPID20601";
- oParam.service = "aftjudgapp.DocuManage";
- oParam.method = "reqExeDonorCreate";
- oParam.inds = "clbs=ds_grid_datagrid2";
- oParam.outds = "";
- oParam.async = false;
- oParam.callback = "cbf_TXPID22201";
- tranf_submit(oParam);
- }
- }else{
- sysf_messageBox("생성할 명세서를", "C002"); //선택하십시오 !
-
- }
- }
- }
- function cbf_TXPID22201(){
- sysf_messageBox("공여자명세서생성이", "I002"); //I002=완료되었습니다.
- }
- function grp_tle_caption6_onclick(obj:Static, e:ClickEventInfo)
- {
-
- }
- function fGetDocuList() {
- if(group1.ipt_patunitsrch.value ==""){
- messageBox("등록번호를", "C001"); ///입력하십시오 !'
- return;
- }
-
-
- var sInDsName = dsf_createDsRow("ds_cond"
- , [{col: "ioflag" , val: group1.cmb_ioflag.value}//외래입원
- , {col: "clamym" , val: group1.cp_monthCal00.getData()} //"청구년월"}//
- , {col: "clamdg" , val: group1.ipt_clamdg.value} //"청구차수"}//
- , {col: "pid" , val: group1.ipt_patunitsrch.value} //"등록번호"}//
- , {col: "pidsn" , val: pidsn}]); //등록번호순번
- tranf_submit({
- id: "TRPID22201"
- , service: "aftjudgapp.DocuManage"
- , method: "reqGetDonorList"
- , inds: "req=" + sInDsName
- , outds: "ds_grid_datagrid1=clbs"
- , callback: "cbf_TRPID22201"
- , async: true
- })
-
- }
- function cbf_TRPID22201(){
- if(ds_grid_datagrid1.getRowCount()>0){
- ds_grid_datagrid1.addColumn("fromchk","string");
- if(ds_grid_datagrid1.getRowCount()==1 && ds_grid_datagrid1.getColumn(0,"acptno") !="-"){
- ds_grid_datagrid1.setColumn(0,"fromchk","1");
- ds_grid_datagrid1.setColumn(0,"clamdg",group1.ipt_clamdg.value);
- }
-
- group1.cp_monthCal00.setData(clamym);
- }
- }
- function group1_cmb_ioflag_onitemchanged(obj:Combo, e:ItemChangeEventInfo)
- {
- if(e.postvalue =="I"){ //
- grd_clbsmast.visible = true;
- grd_clbsmast_O.visible = false;
-
- }else{ //외래
- grd_clbsmast.visible = false;
- grd_clbsmast_O.visible = true;
-
-
- }
- }
- function btn_search_onlbuttonup(obj:Button, e:MouseEventInfo)
- {
- fGetDocuList();
- }
- function btn_close_onclick(obj:Button, e:ClickEventInfo)
- {
- this.close();
- }
- function btn_confirm_onclick(obj:Button, e:ClickEventInfo)
- {
-
- }
- function cmb_spclcd_onitemchanged(obj:Combo, e:ItemChangeEventInfo)
- {
- cmb_diagcd.index = obj.index;
-
- if (obj.value == '-') {
- ipt_mx999.setFocus();
- }
-
- if (!utlf_isNull(obj.value)) {
- if (obj.value == 'OH') {
- ipt_hngnm.value = "타병원 진료 명세서"; //처방명
- ipt_inclnm.value = "타병원 진료 명세서"; //준용명
- }
- else {
- ipt_hngnm.value = "타인간 이식 공여자 진료비"; //처방명
- ipt_inclnm.value = "타인간 이식 공여자 진료비"; //준용명
- }
- }
- }
- ]]></Script>
- </Form>
- </FDL>
|