123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SMPID22600" position="absolute 0 0 1256 805" titletext="명세서추가청구생성" onload="SMPID22600_onload">
- <Layouts>
- <Layout>
- <Div id="grp_tle" position="absolute 0 0 170 23" anchor="default" positiontype="position">
- <Layouts>
- <Layout>
- <Static id="cap_title" class="tit_1" position="absolute 0 3 163 23" anchor="default" text="명세서추가청구생성" positiontype="position"/>
- </Layout>
- </Layouts>
- </Div>
- <Div id="grp_biz" position="absolute 0 25 1256 805" anchor="all" positiontype="position" scrollbars="autoboth">
- <Layouts>
- <Layout>
- <Static id="Static00" position="absolute 1032 10 1256 36" class="sta_DA_box" anchor="top right"/>
- <Grid id="grd_clbsmast" class="datagrid2" position="absolute 0 97 1256 780" anchor="all" positiontype="position" binddataset="DS_GRID_grd_clbsmast" onheadclick="grp_biz_grd_clbsmast_onheadclick" cellsizingtype="both" oncellclick="grp_biz_grd_clbsmast_oncellclick">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="21"/>
- <Column size="35"/>
- <Column size="0"/>
- <Column size="40"/>
- <Column size="61"/>
- <Column size="41"/>
- <Column size="56"/>
- <Column size="67"/>
- <Column size="0"/>
- <Column size="30"/>
- <Column size="53"/>
- <Column size="30"/>
- <Column size="30"/>
- <Column size="71"/>
- <Column size="60"/>
- <Column size="70"/>
- <Column size="60"/>
- <Column size="85"/>
- <Column size="80"/>
- <Column size="58"/>
- <Column size="73"/>
- <Column size="67"/>
- <Column size="67"/>
- <Column size="78"/>
- <Column size="60"/>
- <Column size="72"/>
- <Column size="72"/>
- <Column size="38"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- </Columns>
- <Rows>
- <Row size="35" band="head"/>
- <Row size="24"/>
- </Rows>
- <Band id="head">
- <Cell/>
- <Cell col="1" displaytype="checkbox" edittype="checkbox" text="bind:fromchk" expr="0"/>
- <Cell col="2" text="TO"/>
- <Cell col="3" text="추가 청구"/>
- <Cell col="4" text="청구년월"/>
- <Cell col="5" text="차수"/>
- <Cell col="6" text="청구구분"/>
- <Cell col="7" colspan="3" 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="주치의"/>
- <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="접수번호"/>
- <Cell col="25" text="접수일자"/>
- <Cell col="26" text="명세서번호"/>
- <Cell col="27" text="사유 코드"/>
- <Cell col="28" text="clamkey"/>
- <Cell col="29" text="workflag"/>
- <Cell col="30" text="clbtworkflag"/>
- </Band>
- <Band id="body">
- <Cell celltype="head" expr="expr:currow+1"/>
- <Cell col="1" displaytype="checkbox" edittype="checkbox" text="bind:fromchk"/>
- <Cell col="2" displaytype="checkbox" edittype="checkbox" text="bind:tochk"/>
- <Cell col="3" style="align:center middle;" text="bind:rclamyn" expr="expr:rclamyn == null | rclamyn == ''? 'N':'Y'"/>
- <Cell col="4" displaytype="date" style="align:center middle;" text="bind:clamym" mask="yyyy-MM"/>
- <Cell col="5" style="align:center middle;" text="bind:clamdg"/>
- <Cell col="6" displaytype="combo" edittype="combo" style="align:left middle;" text="bind:clamflagcd" combodataset="ds_init_clamflagcd" combocodecol="cdid" combodatacol="cdnm"/>
- <Cell col="7" style="align:center middle;" text="bind:pid"/>
- <Cell col="8" style="align:center middle;" text="bind:pidsn"/>
- <Cell col="9" text="bind:pidsn"/>
- <Cell col="10" style="align:center middle;" text="bind:patnm"/>
- <Cell col="11" displaytype="normal" edittype="none" style="align:center middle;" text="bind:insukind"/>
- <Cell col="12" displaytype="normal" edittype="none" style="align:center middle;" text="bind:suppkind"/>
- <Cell col="13" displaytype="date" style="align:center middle;" text="bind:ordfromdd" calendardisplaynulltype="none"/>
- <Cell col="14" displaytype="combo" edittype="combo" style="align:center middle;" text="bind:ordfildcd" combodataset="ds_init_ordfildcd" combocodecol="cdid" combodatacol="cdnm"/>
- <Cell col="15" displaytype="combo" edittype="combo" style="align:left middle;" text="bind:orddeptcd" combodataset="ds_init_orddeptcd" combocodecol="cd" combodatacol="nm"/>
- <Cell col="16" displaytype="combo" edittype="combo" style="align:center middle;" text="bind:orddrid" combodataset="ds_init_orddrid" combocodecol="cd" combodatacol="nm"/>
- <Cell col="17" style="align:center middle;" text="bind:insuno"/>
- <Cell col="18" style="align:center middle;" text="bind:certno"/>
- <Cell col="19" style="align:center middle;" text="bind:insdnm"/>
- <Cell col="20" style="align:center middle;" text="bind:acddd"/>
- <Cell col="21" style="align:left middle;" text="bind:acdacptno"/>
- <Cell col="22" style="align:left middle;" text="bind:insucmpycd"/>
- <Cell col="23" style="align:center middle;" text="bind:clamno"/>
- <Cell col="24" style="align:center middle;" text="bind:acptno"/>
- <Cell col="25" displaytype="date" style="align:center middle;" text="bind:acptdd" calendardisplaynulltype="none"/>
- <Cell col="26" style="align:center middle;" text="bind:docuseqno"/>
- <Cell col="27" style="align:center middle;" text="bind:adjtresncd"/>
- <Cell col="28" text="bind:clamkey"/>
- <Cell col="29" text="bind:workflag"/>
- <Cell col="30" text="bind:clbtworkflag"/>
- <Cell col="31"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Static id="cap_judgtrgtman" class="tit_2" position="absolute 0 77 86 97" anchor="default" text="대상자조회" positiontype="position"/>
- <Div id="group1" position="absolute 0 0 1024 67" style="align:center top;" class="div_SA" positiontype="position" anchor="left top right" align="align:center top;">
- <Layouts>
- <Layout>
- <cp_patientInfo id="cp_patientInfo00" titletext="New Form" taborder="35" text="cp_patientInfo00" position="absolute 235 35 599 59" style="background:transparent; " tooltiptext="환자성명으로 검색시 2자 이상 입력하세요."/>
- <Static id="caption30" class="search_name" position="absolute 8 10 82 30" anchor="default" text="청구년월" positiontype="position"/>
- <Static id="caption32" class="search_name" position="absolute 8 35 82 55" anchor="default" text="청구구분" positiontype="position"/>
- <Combo id="cmb_docuflagcd" class="combo_search" taborder="9" position="absolute 82 35 211 55" anchor="default" positiontype="position" innerdataset="@ds_init_clamflagcd" codecolumn="cdid" datacolumn="cdnm"/>
- <Static id="caption36" class="search_name" position="absolute 646 10 720 30" anchor="default" text="접수번호" positiontype="position"/>
- <Edit id="ipt_acptno" class="input_search" taborder="18" position="absolute 720 10 817 30" anchor="default" positiontype="position" imemode="hangul" maxlength="8"/>
- <Static id="caption37" class="search_name" position="absolute 646 35 707 55" anchor="default" text="명번호" positiontype="position"/>
- <Edit id="ipt_docuseqno1" class="input_search" taborder="19" position="absolute 720 35 762 55" anchor="default" positiontype="position" imemode="hangul" maxlength="5" tooltiptext="시작번호" onkeydown="grp_biz_group1_ipt_docuseqno1_onkeydown"/>
- <Edit id="ipt_docuseqno2" class="input_search" taborder="20" position="absolute 778 35 817 55" anchor="default" positiontype="position" imemode="hangul" maxlength="5" tooltiptext="끝번호" onkeydown="grp_biz_group1_ipt_docuseqno2_onkeydown"/>
- <Static id="caption45" position="absolute 764 35 776 55" anchor="default" text="~" style="align:center;" positiontype="position"/>
- <Combo id="cmb_clamdg" position="absolute 160 10 211 30" anchor="default" positiontype="position" innerdataset="@ds_init_clamdg" codecolumn="clamdgcd" datacolumn="clamdgnm"/>
- <Static id="caption1" class="search_name" position="absolute 235 10 309 30" anchor="default" text="내원형태" positiontype="position"/>
- <Combo id="cmb_ioflag" class="combo_search" taborder="3" position="absolute 306 10 404 30" anchor="default" positiontype="position" codecolumn="value" datacolumn="label" innerdataset="@ds_init_ioflag" onitemchanged="grp_biz_group1_cmb_ioflag_onitemchanged"/>
- <Static id="caption2" class="search_name" position="absolute 451 10 525 30" anchor="default" text="청구번호" positiontype="position"/>
- <Edit id="input1" class="input_search" taborder="18" position="absolute 525 10 622 30" anchor="default" positiontype="position" imemode="hangul" maxlength="8"/>
- <Static id="caption3" class="search_name" position="absolute 451 35 525 55" anchor="default" text="작업구분" positiontype="position"/>
- <Combo id="cmb_workflag" class="combo_search" taborder="8" position="absolute 525 35 622 55" anchor="default" positiontype="position" codecolumn="value" datacolumn="label" innerdataset="@ds_init_makeflag"/>
- <cp_monthCal id="cp_monthCal00" titletext="monthCalendar" taborder="33" text="cp_monthCal00" scrollbars="none" position="absolute 82 10 157 30" anchor="default" class="input_essential"/>
- <Button id="btn_select" class="btn1" taborder="32" position="absolute 956 10 1012 30" text="조회" anchor="top right" positiontype="position" onclick="grp_biz_group1_btn_select_onclick"/>
- </Layout>
- </Layouts>
- </Div>
- <Static id="caption4" class="cell_1" position="absolute 1033 11 1113 35" style="align:center middle;" anchor="top right" text="생성차수" positiontype="position" align="align:center middle;"/>
- <Button id="btn_cancel" class="btn4" position="absolute 1200 74 1256 94" anchor="top right" text="종료" positiontype="position" onclick="grp_biz_btn_cancel_onclick"/>
- <Button id="btn_init" class="btn4" position="absolute 1126 74 1195 94" anchor="top right" text="초기화" positiontype="position" onclick="grp_biz_btn_init_onclick"/>
- <Button id="btn_save" class="btn4" position="absolute 1064 74 1122 94" anchor="top right" text="생성" positiontype="position" onclick="grp_biz_btn_save_onclick"/>
- <CheckBox id="chk_MS010" class="checkbox_search" taborder="22" visible="true" position="absolute 1037 45 1253 65" anchor="top right" text="민원에 의한 추가청구 MS010 생성" truevalue="Y" falsevalue="N" positiontype="position" value="N"/>
- <cp_monthCal id="cp_monthCal00" titletext="monthCalendar" taborder="23" text="cp_monthCal00" scrollbars="none" position="absolute 1114 13 1189 33" anchor="top right"/>
- <Edit id="ipt_toclamdg" taborder="24" position="absolute 1192 13 1255 33" class="input_essential" onkeydown="grp_biz_ipt_toclamdg_onkeydown"/>
- </Layout>
- </Layouts>
- </Div>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="DS_GRID_grd_clbsmast" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="fromchk" type="STRING"/>
- <Column id="tochk" type="STRING"/>
- <Column id="rclamyn" type="STRING"/>
- <Column id="clamym" type="STRING"/>
- <Column id="clamdg" type="STRING"/>
- <Column id="clamflagcd" type="STRING"/>
- <Column id="pid" type="STRING"/>
- <Column id="pidsn" type="STRING"/>
- <Column id="patnm" type="STRING"/>
- <Column id="insukind" type="STRING"/>
- <Column id="suppkind" type="STRING"/>
- <Column id="ordfromdd" type="STRING"/>
- <Column id="ordfildcd" type="STRING"/>
- <Column id="orddeptcd" type="STRING"/>
- <Column id="orddrid" type="STRING"/>
- <Column id="insuno" type="STRING"/>
- <Column id="certno" type="STRING"/>
- <Column id="insdnm" type="STRING"/>
- <Column id="acddd" type="STRING"/>
- <Column id="acdacptno" type="STRING"/>
- <Column id="insucmpycd" type="STRING"/>
- <Column id="clamno" type="STRING"/>
- <Column id="acptno" type="STRING"/>
- <Column id="acptdd" type="STRING"/>
- <Column id="docuseqno" type="STRING"/>
- <Column id="adjtresncd" type="STRING"/>
- <Column id="clamkey" type="STRING"/>
- <Column id="workflag" type="STRING"/>
- <Column id="clbtworkflag" type="STRING"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_init_insukind" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_init_suppkind" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_init_ordfildcd" 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_clamflagcd" 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_ioflag" 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">-</Col>
- </Row>
- <Row>
- <Col id="label">입원</Col>
- <Col id="value">I</Col>
- </Row>
- <Row>
- <Col id="label">외래</Col>
- <Col id="value">O</Col>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_init_makeflag" 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">-</Col>
- </Row>
- <Row>
- <Col id="label">추가청구</Col>
- <Col id="value">4</Col>
- </Row>
- <Row>
- <Col id="label">약제상한차액 추가청구</Col>
- <Col id="value">6</Col>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_init_orddeptcd" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="cd" type="STRING" size="256"/>
- <Column id="nm" type="STRING" size="256"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_init_orddrid" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="cd" type="STRING" size="256"/>
- <Column id="nm" type="STRING" size="256"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_maxclamdg" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="maxclamdg" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- <Dataset id="ds_send_clbs" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="fromchk" type="STRING" size="0"/>
- <Column id="tochk" type="STRING" size="0"/>
- <Column id="rclamyn" type="STRING" size="0"/>
- <Column id="clamym" type="STRING" size="0"/>
- <Column id="clamdg" type="STRING" size="0"/>
- <Column id="clamflagcd" type="STRING" size="0"/>
- <Column id="pid" type="STRING" size="0"/>
- <Column id="pidsn" type="STRING" size="0"/>
- <Column id="patnm" type="STRING" size="0"/>
- <Column id="insukind" type="STRING" size="0"/>
- <Column id="suppkind" type="STRING" size="0"/>
- <Column id="ordfromdd" type="STRING" size="0"/>
- <Column id="ordfildcd" type="STRING" size="0"/>
- <Column id="orddeptcd" type="STRING" size="0"/>
- <Column id="orddrid" type="STRING" size="0"/>
- <Column id="insuno" type="STRING" size="0"/>
- <Column id="certno" type="STRING" size="0"/>
- <Column id="insdnm" type="STRING" size="0"/>
- <Column id="acddd" type="STRING" size="0"/>
- <Column id="acdacptno" type="STRING" size="0"/>
- <Column id="insucmpycd" type="STRING" size="0"/>
- <Column id="clamno" type="STRING" size="0"/>
- <Column id="acptno" type="STRING" size="0"/>
- <Column id="acptdd" type="STRING" size="0"/>
- <Column id="docuseqno" type="STRING" size="0"/>
- <Column id="adjtresncd" type="STRING" size="0"/>
- <Column id="clamkey" type="STRING" size="0"/>
- <Column id="workflag" type="STRING" size="0"/>
- <Column id="clbtworkflag" type="STRING" size="0"/>
- <Column id="makeflag" type="STRING" size="256"/>
- <Column id="t_clamdg" type="STRING" size="256"/>
- <Column id="t_clamflagcd" type="STRING" size="256"/>
- <Column id="ioflag" type="STRING" size="256"/>
- <Column id="ms010" type="STRING" size="256"/>
- <Column id="t_clamym" type="STRING" size="256"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_init_clamdg" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="clamdgnm" type="STRING" size="256"/>
- <Column id="clamdgcd" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- </Objects>
- <Bind>
- <BindItem id="item0" compid="grp_biz.ipt_toclamdg" propid="value" datasetid="ds_maxclamdg" columnid="maxclamdg"/>
- </Bind>
- <Script type="xscript4.0"><![CDATA[/***************************************************************************************
- * System Name :
- * Job Name :
- * Creator :
- * Make Date : 2015-05-01
- * Description :
- *---------------------------------------------------------------------------------------
- * Modify Date Modifier Modify Description
- *---------------------------------------------------------------------------------------
- * 2015-05-01 Live Converter TF->XP
- *
- *---------------------------------------------------------------------------------------
- ****************************************************************************************/
-
- include "com_commonxp::comm_main.xjs";
- function lf_initDataSet(){
- // cmb_docuflagcd의 INIT Dataset
- this.cmb_docuflagcd.innerdataset = "DS_INIT_cmb_docuflagcd";
- this.cmb_docuflagcd.codecolumn = "cdid";
- this.cmb_docuflagcd.datacolumn = "cdnm";
- // cmb_clamdg의 INIT Dataset
- this.cmb_clamdg.innerdataset = "DS_INIT_cmb_clamdg";
- this.cmb_clamdg.codecolumn = "clamdgcd";
- this.cmb_clamdg.datacolumn = "clamdgnm";
- }
-
- var g_from_cnt = 0;
- var g_to_cnt = 0;
-
- // 화면초기화
- function fInitialize()
- {
- // 보험유형, 보조유형, 진료분야, 청구구분 리스트
- appf_getCodeListSubmit([{cdGrpId: "P0008", dsNm: "ds_init_insukind", sortField: "cdnm", sortMehotd: "desc"}
- ,{cdGrpId: "P0010", dsNm: "ds_init_suppkind", sortField: "cdnm", sortMehotd: "desc"}
- ,{cdGrpId: "P0291", dsNm: "ds_init_ordfildcd", sortField: "cdnm", sortMehotd: "desc"}
- ,{cdGrpId: "P0155", dsNm: "ds_init_clamflagcd", sortField: "cdnm", sortMehotd: "desc"}], true, false, "");
-
- // 진료과 주치의 초기화
- var sInDsName = dsf_createDsRow("ds_cond",[{col: "ioflag", val: grp_biz.group1.cmb_ioflag.value}]);
-
- tranf_submit({
- id: "TRPID20309"
- , service: "aftjudgapp.InAftJudgTrgtMan"
- , method: "reqGetDeptCDDrID"
- , inds : "req=ds_cond"
- , outds: "ds_init_orddeptcd=orddeptcd ds_init_orddrid=orddrid"
- , async: false
- });
-
- // 청구월 셋팅
- var objDate = new Date();
- var lastMonth = objDate.addMonth(-1);
- lastMonth = objDate.toFormatString("%Y%m");
-
- grp_biz.group1.cp_monthCal00.setData(lastMonth);
-
- // COMBO 전체 세팅
- // 1. 내원구분
- grp_biz.group1.cmb_ioflag.index = 0;
-
- // 2. 청구구분
- frmf_addComboItem("grp_biz.group1.cmb_docuflagcd", "전체", "-");
- grp_biz.group1.cmb_docuflagcd.index = 0;
-
- // 3. 작업구분
- grp_biz.group1.cmb_workflag.index = 0;
-
- }
-
-
- // 명세서관리 대상조회
- function fGetDocuList()
- {
- var Month = grp_biz.group1.cp_monthCal00.cal_Month.value;
- var sclamym = Month.toFormatString("%Y%m");
-
- var sInDsName = dsf_createDsRow("ds_cond"
- ,[{col: "makeflag", val: grp_biz.group1.cmb_workflag.value}
- //, {col: "copyflag", val: }
- , {col: "clamym", val: sclamym}
- , {col: "clamdg", val: grp_biz.group1.cmb_clamdg.value}
- , {col: "clamflagcd", val: grp_biz.group1.cmb_docuflagcd.value}
- , {col: "ioflag", val: grp_biz.group1.cmb_ioflag.value}
- , {col: "pid", val: grp_biz.group1.cp_patientInfo00.edt_pid.value}
- , {col: "pidsn", val: pidsn }
- //, {col: "insukind", val: }
- //, {col: "suppkind", val: }
- //, {col: "ordfildcd", val: }
- //, {col: "clamdeptcd", val: }
- //, {col: "orddeptcd", val: }
- //, {col: "orddrid", val: }
- //, {col: "judgrid", val: }
- //, {col: "judgendyn", val: }
- , {col: "clamno", val: grp_biz.group1.input1.value}
- , {col: "acptno", val: grp_biz.group1.ipt_acptno.value}
- , {col: "docuseqno1", val: grp_biz.group1.ipt_docuseqno1.value}
- , {col: "docuseqno2", val: grp_biz.group1.ipt_docuseqno2.value}]);
-
- tranf_submit({
- id: "TRPID20601"
- , service: "aftjudgapp.DocuManage"
- , method: "reqGetDocuMngList"
- , inds : "req=ds_cond"
- , outds: "DS_GRID_grd_clbsmast=clbs"
- , async: false
- });
-
- DS_GRID_grd_clbsmast.addColumn("fromchk", "string");
-
- if( DS_GRID_grd_clbsmast.rowcount == 1 )
- {
- DS_GRID_grd_clbsmast.setColumn(0, "fromchk", "1");
- g_from_cnt = 1;
-
- // 추가청구일경우 최종청구차수 가져온다.
- fGetMaxClamdg();
- }
- }
-
- // 명세서관리 자료생성
- function fSetDocuMake()
- {
- // 자료생성전 체크
- var rslt = fValidcheck();
-
- if (rslt != false)
- {
- ds_send_clbs.clearData();
-
- var makeflag = grp_biz.group1.cmb_workflag.value;
- var Month = grp_biz.cp_monthCal00.cal_Month.value;
- var t_clamym = Month.toFormatString("%Y%m");
- var fromchk = "";
- var iCnt = 0;
-
- DS_GRID_grd_clbsmast.filter("fromchk == '1'");
- ds_send_clbs.copyData(DS_GRID_grd_clbsmast, true);
-
- for (var i = 0; i < ds_send_clbs.rowcount; i++)
- {
- ds_send_clbs.addColumn("makeflag", "string");
- ds_send_clbs.addColumn("ioflag", "string");
- ds_send_clbs.addColumn("t_clamym", "string");
- ds_send_clbs.addColumn("t_clamdg", "string");
- ds_send_clbs.addColumn("t_clamflagcd", "string");
- ds_send_clbs.addColumn("ms010", "string");
-
- ds_send_clbs.setColumn(iCnt, "makeflag", makeflag);
- ds_send_clbs.setColumn(iCnt, "ioflag", grp_biz.group1.cmb_ioflag.value);
- ds_send_clbs.setColumn(iCnt, "t_clamym", t_clamym);
- ds_send_clbs.setColumn(iCnt, "t_clamdg", grp_biz.ipt_toclamdg.value);
- ds_send_clbs.setColumn(iCnt, "t_clamflagcd", t_clamflagcd);
- ds_send_clbs.setColumn(iCnt, "ms010", grp_biz.chk_MS010.value);
-
- iCnt++;
-
- }
-
- // 자료생성
- tranf_submit({
- id: "TXPID20601"
- , service: "aftjudgapp.DocuManage"
- , method: "reqExeDocuManage"
- , inds : "clbs=ds_send_clbs"
- , async: true
- , callback: "cbf_TXPID20601"
- });
- }
- }
-
- // 자료생성전 체크
- function fValidcheck()
- {
-
- var makeflag = grp_biz.group1.cmb_workflag.value;
-
- // 생성할 명세서 선택되었는지 체크
- DS_GRID_grd_clbsmast.filter("fromchk == '1'");
- var chk_cnt = DS_GRID_grd_clbsmast.rowcount;
-
- if (chk_cnt == 0) {
- sysf_messageBox("자료생성할 명세서가", "I004"); //I004: 없습니다.
- return false;
- }
-
- var clamym = grp_biz.group1.cp_monthCal00.cal_Month.value;
- var clamdg = grp_biz.group1.cmb_clamdg.value;
- var t_clamym = grp_biz.cp_monthCal00.cal_Month.value;
- var t_clamdg = grp_biz.ipt_toclamdg.value;
-
- if (t_clamym == null) {
- sysf_messageBox("생성 청구년월이", "I004"); //I004: 없습니다.
- return false;
- }
- else if (t_clamdg == null) {
- sysf_messageBox("생성 청구차수가", "I004"); //I004: 없습니다.
- return false;
- }
- else {
- if ( clamym + clamdg == t_clamym + t_clamdg )
- {
- sysf_messageBox(" 생성 청구년월 또는 청구차수가 변경되지", "E007"); //E007=않았습니다.
- grp_biz.ipt_toclamdg.setFocus();
- return false;
- }
- }
- }
- function fGetSrchPid()
- {
- var ipt_pid = grp_biz.group1.cp_patientInfo00.edt_pid.value;
- var objArg = new Object();
-
- if (ipt_pid.charCodeAt(0) > 255) {
- objArg.srchcond = "1"; // 검색조건 : 등록번호로 설정
- objArg.pid = "ipt_pid";
- }else{
- objArg.srchcond = "2"; // 검색조건 : 환자명으로 설정
- objArg.hngnm = "ipt_pid";
- }
-
- frmf_modal("SPPMC02500", "SPPMC02500", objArg); // SPPMC02500_환자조회.xrw
-
- var objPopup = frmf_getChildWindow("SPPMC02500");
-
- var srch_pid = objPopup.frmf_getParameter("pid");
-
- if (srch_pid)
- {
- grp_biz.group1.cp_patientInfo00.edt_pid.value = srch_pid;
- }
- }
- // 추가청구시 추가청구 max차수 조회
- function fGetMaxClamdg(chkcnt)
- {
- var clamflag = "2";
- var ordfildcd ;
- var clamtypecd ;
- var sumtypecd ;
-
- if ( chkcnt == "1" )
- {
- ordfildcd = DS_GRID_grd_clbsmast.getColumn(0, "ordfildcd");
- clamtypecd = DS_GRID_grd_clbsmast.getColumn(0, "clamtypecd");
- sumtypecd = DS_GRID_grd_clbsmast.getColumn(0, "sumtypecd");
- } else {
-
- var row = DS_GRID_grd_clbsmast.rowposition;
- ordfildcd = DS_GRID_grd_clbsmast.getColumn(row, "ordfildcd");
- clamtypecd = DS_GRID_grd_clbsmast.getColumn(row, "clamtypecd");
- sumtypecd = DS_GRID_grd_clbsmast.getColumn(row, "sumtypecd");
- }
-
- var sInDsName = dsf_createDsRow("ds_cond"
- ,[{col: "t_clamym", val: grp_biz.cp_monthCal00.getData()}
- , {col: "clamflag", val: clamflag}
- , {col: "ioflag", val: grp_biz.group1.cmb_ioflag.value}
- , {col: "ordfildcd", val: ordfildcd}
- , {col: "clamtypecd", val: clamtypecd}
- , {col: "sumtypecd", val: sumtypecd}]);
-
- tranf_submit({
- id: "TRPID20602"
- , service: "aftjudgapp.DocuManage"
- , method: "reqGetPidmclamMaxClamdg"
- , inds : "req=ds_cond"
- , outds: "ds_maxclamdg=clbs"
- , async: false
- , callback: "cbf_TRPID20602"
- });
-
- }
-
- var t_clamflagcd;
- var copyflag;
- var pidsn;
- // 조회 callback 함수
- function cbf_TRPID20602(strSvcID, nErrorCode, strErrorMsg)
- {
- //에러 처리
- if(nErrorCode == 0){
- grp_biz.ipt_toclamdg.value = ds_maxclamdg.getColumn(0, "maxclamdg");
- }else{
-
- }
- }
- // 조회 callback 함수
- function cbf_TXPID20601(strSvcID, nErrorCode, strErrorMsg)
- {
- //에러 처리
- if(nErrorCode == 0)
- {
- // var makeflag = grp_biz.group1.cmb_workflag.value;
- //
- // // 2:복사, 3:이동, 4:추가청구이면 변경된 명세서를 조회한다.
- // if (makeflag == "2" || makeflag =="3" || makeflag == "4")
- // {
- // grp_biz.group1.cp_monthCal00.cal_Month.value = grp_biz.cp_monthCal00.cal_Month.value;
- // grp_biz.group1.cmb_clamdg.value = grp_biz.ipt_toclamdg.value;
- //
- // var clamym = grp_biz.group1.cp_monthCal00.cal_Month.value;
- // var t_clamym = grp_biz.cp_monthCal00.cal_Month.value;
- // var clamdg = grp_biz.ipt_toclamdg.value;
- //
- // if (clamym == t_clamym)
- // {
- // frmf_addComboItem("grp_biz.group1.cmb_clamdg", clamdg, clamdg, "above");
- // } else {
- // frmf_addComboItem("grp_biz.group1.cmb_clamdg", clamdg, clamdg, "init");
- // }
- // grp_biz.group1.cmb_clamdg.index = 0;
- // grp_biz.group1.cmb_docuflagcd.index = 0; // 2.추가청구
- // grp_biz.group1.cmb_workflag.index = 0;
- // }
-
- DS_GRID_grd_clbsmast.clearData();
- //grp_biz_group1_btn_select_onclick();
- // 자료생성 후 바로 조회...
- var e = new ClickEventInfo; //이벤트 선언
- var varRet = grp_biz.group1.btn_select.onclick.fireEvent(grp_biz.group1.btn_select, e); //이벤트 매핑
- }else{
- sysf_messageBox("명세서 추가 생성을 ", "E001"); //E001=할 수 없습니다..
- }
- }
- function grp_biz_group1_btn_select_onclick(obj:Button, e:ClickEventInfo)
- {
- fGetDocuList();
- }
- function grp_biz_btn_cancel_onclick(obj:Button, e:ClickEventInfo)
- {
- this.close();
- }
- function grp_biz_btn_save_onclick(obj:Button, e:ClickEventInfo)
- {
- fSetDocuMake();
- }
- function grp_biz_btn_init_onclick(obj:Button, e:ClickEventInfo)
- {
- DS_GRID_grd_clbsmast.clearData();
-
- // 청구월 셋팅
- var objDate = new Date();
- var lastMonth = objDate.addMonth(-1);
- lastMonth = objDate.toFormatString("%Y%m");
-
- grp_biz.group1.cp_monthCal00.cal_Month.value = lastMonth;
-
- // COMBO 전체 세팅
- // 1. 내원형태
- grp_biz.group1.cmb_ioflag.index = 0;
-
- // 2. 청구구분
- grp_biz.group1.cmb_docuflagcd.index = 0;
-
- // 3. 작업구분
- grp_biz.group1.cmb_workflag.index = 0;
-
- grp_biz.group1.input1.value = "";
- grp_biz.group1.ipt_acptno.value = "";
- grp_biz.group1.ipt_docuseqno1.value = "";
- grp_biz.group1.ipt_docuseqno2.value = "";
- grp_biz.group1.cmb_clamdg.value = "";
- grp_biz.group1.cp_patientInfo00.edt_pid.value = "";
- grp_biz.ipt_toclamdg.value = "";
- }
- function grp_biz_grd_clbsmast_onheadclick(obj:Grid, e:GridClickEventInfo)
- {
- if (e.cell == 1)
- {
- fn_setGridCheckAll(grp_biz.grd_clbsmast, e);
- }
- }
- var fv_isGridCheckAll = 0;
- function fn_setGridCheckAll(obj:Grid, e:GridClickEventInfo)
- {
- var objDs = eval(obj.binddataset);
-
- var sCol = obj.getCellProperty("body", e.cell, "text").replace("bind:", "");
- if (fv_isGridCheckAll)
- {
- fv_isGridCheckAll = 0;
- }
- else
- {
- fv_isGridCheckAll = 1;
- }
- objDs.enableevent = false;
-
- for (var i = 0; i < objDs.getRowCount(); i++)
- {
- objDs.setColumn(i, sCol, fv_isGridCheckAll);
- }
-
- obj.setCellProperty("Head", 1, "expr", fv_isGridCheckAll);
-
- objDs.enableevent = true;
- }
- function fn_Cal()
- {
- var Month = grp_biz.group1.cp_monthCal00.cal_Month.value;
- var clamym = Month.toFormatString("%Y%m");
-
- var sInDsName = dsf_createDsRow("ds_cond", [{col: "clamym", val: clamym}
- , {col: "ioflag", val: grp_biz.group1.cmb_ioflag.value}]);
- tranf_submit({
- id: "TRPID20407"
- , service: "aftjudgapp.InAftJudgTrgtMan"
- , method: "reqGetClamdg"
- , inds : "req=ds_cond"
- , outds: "ds_init_clamdg=clamdg"
- , async: false
- });
-
- grp_biz.group1.cmb_clamdg.index = 0;
- }
- function fn_Cal1()
- {
- if ( grp_biz.group1.cp_patientInfo00.edt_pid.value == null )
- {
- var ordfildcd = "";
- fGetMaxClamdg();
- }
- }
- function grp_biz_grd_clbsmast_oncellclick(obj:Grid, e:GridClickEventInfo)
- {
- var icol = e.col;
- var irow = e.row;
- var ifromcnt=0;
- var fromchkyn;
-
- // 명세서선택 총갯수 셋팅
- if (icol == 1)
- {
-
- fromchkyn = DS_GRID_grd_clbsmast.getColumn(irow, "fromchk");
- rclamyn = DS_GRID_grd_clbsmast.getColumn(irow, "rclamyn");
-
- if (fromchkyn == "1")
- {
- if (rclamyn == "Y")
- {
- DS_GRID_grd_clbsmast.setColumn(irow, "fromchk", "0");
-
- sysf_messageBox("이미 추가청구 생성되어 선택할 수", "I004"); //없습니다 !
- } else {
-
- fGetMaxClamdg("2");
- }
- }
- }
- }
- function grp_biz_group1_ipt_docuseqno1_onkeydown(obj:Edit, e:KeyEventInfo)
- {
- if ( e.keycode == 13 )
- {
- var docuseqno1 = grp_biz.group1.ipt_docuseqno1.value;
-
- var rtn = "";
-
- if(utlf_isNull(docuseqno1))
- {
- return rtn;
- }
- var forCnt = 5 - grp_biz.group1.ipt_docuseqno1.getLength();
-
- for( var i = 0; i < forCnt; i++ )
- {
- rtn+="0";
- }
-
- rtn+=docuseqno1;
- grp_biz.group1.ipt_docuseqno1.value = rtn;
- grp_biz.group1.ipt_docuseqno2.value = rtn;
-
- grp_biz.group1.ipt_docuseqno2.setFocus();
- }
- }
- function grp_biz_group1_ipt_docuseqno2_onkeydown(obj:Edit, e:KeyEventInfo)
- {
- if ( e.keycode == 13 )
- {
- var docuseqno2 = grp_biz.group1.ipt_docuseqno2.value;
- var rtn = "";
-
- if(utlf_isNull(docuseqno2))
- {
- return rtn;
- }
-
- var forCnt = 5 - grp_biz.group1.ipt_docuseqno2.getLength();
-
- for( var i = 0; i < forCnt; i++ )
- {
- rtn+="0";
- }
-
- rtn+=docuseqno2;
- grp_biz.group1.ipt_docuseqno2.value = rtn;
-
- }
- }
- function grp_biz_group1_cmb_ioflag_onitemchanged(obj:Combo, e:ItemChangeEventInfo)
- {
- // 청구년월에 대한 청구차수 조회
- pidfGetClamdg();
- }
- function grp_biz_ipt_toclamdg_onkeydown(obj:Edit, e:KeyEventInfo)
- {
- if ( e.keycode == 13 )
- {
- var clamdg = grp_biz.ipt_toclamdg.value;
- if (clamdg < "2001" || clamdg > "2999")
- {
- sysf_messageBox("추가청구 차수범위를 벗어났습니다. 2001~2999 사이의 차수를", "C001"); //C001=입력하십시오 !
- fGetMaxClamdg();
- }
-
- }
- }
- function SMPID22600_onload(obj:Form, e:LoadEventInfo)
- {
- frmf_initForm(obj);
-
- // 등록번호 component
- grp_biz.group1.cp_patientInfo00.lf_setDataSearchPatInfo("","0");
- grp_biz.group1.cp_patientInfo00.att_setControlWidth("98","0");
- grp_biz.group1.cp_patientInfo00.att_setVisible("3|4|",false);
-
- // 월달력 이벤트 호출
- grp_biz.group1.cp_monthCal00.setCallEvent("fn_Cal");
- // 생성차수 이벤트 호출
- grp_biz.cp_monthCal00.setCallEvent("fn_Cal1");
-
- // 화면을 초기화한다.
- fInitialize();
-
- if ( frmf_checkOpener() )
- {
- if ( sMakeflag != null )
- {
- grp_biz.group1.cmb_workflag.value = sMakeflag ; //작업구분
- //copyflag = sCopyflag ;
- grp_biz.group1.cmb_ioflag.value = sIoflag; // 내원형태
- grp_biz.group1.cp_monthCal00.cal_Month.value = sClamym; // 청구년월
- grp_biz.group1.cp_patientInfo00.edt_pid.value = sPid; // 등록번호
- pidsn = sPidsn;
- grp_biz.group1.cmb_docuflagcd.value = sClamflagcd; // 청구구분
- grp_biz.cp_monthCal00.cal_Month.value = sT_clamym; // 생성차수
- grp_biz.ipt_toclamdg.value = sT_clamdg; // 생성차수
- t_clamflagcd = sT_clamflagcd; //청구구분
-
- // 청구차수
- frmf_addComboItem("grp_biz.group1.cmb_clamdg", sClamdg, sClamdg);
- grp_biz.group1.cmb_clamdg.value = sClamdg;
-
- if ( sPid != null )
- {
- fGetDocuList();
- }
-
- }
-
- }
- }
- ]]></Script>
- </Form>
- </FDL>
|