123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SMPID22500" position="absolute 0 0 1256 805" titletext="명세서이동" onload="workform_onload">
- <Layouts>
- <Layout>
- <Static id="Static00" position="absolute 1003 25 1256 51" class="sta_DA_box" anchor="top right"/>
- <Static id="cap_title" text="명세서이동" class="tit_1" position="absolute 0 3 163 23"/>
- <Div id="group1" taborder="1" style="align:center top;" position="absolute 0 25 993 117" class="div_SA" anchor="left top right">
- <Layouts>
- <Layout>
- <Static id="caption30" text="청구년월" class="search_name" position="absolute 8 10 82 30" anchor="default"/>
- <Static id="caption32" text="청구구분" class="search_name" position="absolute 8 35 82 55" anchor="default"/>
- <Combo id="cmb_clamflag" taborder="48" class="combo_search" position="absolute 82 35 208 55" anchor="default" innerdataset="@ds_cond_clamflag" codecolumn="cdid" datacolumn="cdnm"/>
- <Static id="caption37" text="명번호" class="search_name" position="absolute 638 35 699 55" anchor="default"/>
- <Edit id="ipt_docuseqno1" taborder="49" class="input_search" position="absolute 712 35 751 55" anchor="default"/>
- <Edit id="ipt_docuseqno2" taborder="50" class="input_search" position="absolute 770 35 809 55" anchor="default" oneditclick="group1_ipt_docuseqno2_oneditclick"/>
- <Static id="caption38" text="등록번호" class="search_name" position="absolute 229 60 303 80" anchor="default"/>
- <Edit id="ipt_patunitsrch" taborder="51" class="input_search" position="absolute 303 60 416 80" anchor="default"/>
- <Button id="btn_select" taborder="52" text="조회" onlbuttonup="btn_select_onlbuttonup" class="btn1" position="absolute 925 10 981 30" anchor="top right" onclick="group1_btn_select_onclick"/>
- <Static id="caption45" text="~" position="absolute 755 35 766 55" anchor="default" style="align:center middle;"/>
- <Combo id="cmb_clamdg" taborder="53" position="absolute 157 10 208 30" anchor="default" innerdataset="@ds_cond_clamdg" codecolumn="clamdgcd" datacolumn="clamdgnm"/>
- <Static id="caption1" text="내원형태" class="search_name" position="absolute 8 60 82 80" anchor="default"/>
- <Combo id="cmb_ioflag" taborder="54" class="combo_search" position="absolute 82 60 208 80" anchor="default" innerdataset="@ds_cond_iofalg" codecolumn="value" datacolumn="label"/>
- <Static id="caption2" text="청구번호" class="search_name" position="absolute 638 10 712 30" anchor="default"/>
- <Edit id="ipt_clamno" taborder="55" class="input_search" position="absolute 712 10 809 30" anchor="default"/>
- <Shape id="line3" linetype="vertical" class="line_4" position="absolute 823 7 823 79" anchor="default"/>
- <Combo id="cmb_ordfildcd" taborder="56" class="combo_search" position="absolute 303 10 416 30" anchor="default" innerdataset="@ds_cond_ordfild" codecolumn="cdid" datacolumn="cdnm"/>
- <Static id="caption5" text="진료분야" class="search_name" position="absolute 229 10 303 30" anchor="default"/>
- <Combo id="cmb_orddrid" taborder="57" class="combo_search" position="absolute 501 35 614 55" anchor="default" innerdataset="@ds_cond_orddrid" codecolumn="cd" datacolumn="nm"/>
- <Static id="caption46" text="진료과" class="search_name" position="absolute 440 10 501 30" anchor="default"/>
- <Combo id="cmb_orddeptcd" taborder="58" class="combo_search" position="absolute 501 10 614 30" anchor="default" innerdataset="@ds_cond_deptinfolist" codecolumn="cd" datacolumn="nm"/>
- <Static id="caption7" text="주치의" class="search_name" position="absolute 440 35 501 55" anchor="default"/>
- <Combo id="cmb_clamdeptcd" taborder="59" class="combo_search" position="absolute 303 35 416 55" anchor="default" innerdataset="@ds_init_clamdept" codecolumn="cdid" datacolumn="cdnm"/>
- <Static id="caption11" text="청구과" class="search_name" position="absolute 229 35 290 55" anchor="default"/>
- <Combo id="cmb_judg" taborder="60" class="combo_search" position="absolute 501 60 614 80" anchor="default" innerdataset="@ds_cond_judgerinfo" codecolumn="judgrid" datacolumn="judgrnm"/>
- <Static id="caption15" text="심사자" class="search_name" position="absolute 440 60 501 80" anchor="default"/>
- <cp_monthCal id="cp_monthCal00" titletext="monthCalendar" taborder="61" text="cp_monthCal00" scrollbars="none" position="absolute 82 10 156 30" anchor="default"/>
- <CheckBox id="checkbox1" taborder="62" text="진료개시일불일치" position="absolute 632 63 762 83" truevalue="Y"/>
- <CheckBox id="checkbox2" taborder="63" text="교부번호불일치" position="absolute 764 62 896 82" truevalue="Y"/>
- </Layout>
- </Layouts>
- </Div>
- <Static id="caption4" text="이동차수" class="cell_1" position="absolute 1004 26 1084 50" style="align:center middle;" anchor="top right"/>
- <MaskEdit id="ipt_toclamdg" taborder="3" mask="####" class="input_essential" position="absolute 1190 28 1253 48" anchor="top right"/>
- <CheckBox id="chk_clamflagcd" taborder="4" text="누락청구이동" truevalue="Y" class="checkbox_search" position="absolute 1003 56 1103 76" anchor="top right" onchanged="chk_clamflagcd_onchanged" onclick="chk_clamflagcd_onclick"/>
- <Combo id="cmb_toclamflagcd" taborder="5" class="combo_search" visible="false" position="absolute 1129 56 1256 76" anchor="top right" onitemchanged="cmb_toclamflagcd_onitemchanged" innerdataset="@ds_cond_clamflag" codecolumn="cdid" datacolumn="cdnm"/>
- <Button id="btn_save" taborder="6" text="이동" onlbuttonup="btn_save_onlbuttonup" class="btn4" position="absolute 1070 125 1126 145" anchor="top right" onclick="btn_save_onclick"/>
- <Button id="btn_init" taborder="7" text="초기화" onlbuttonup="btn_init_onlbuttonup" class="btn4" position="absolute 1129 125 1197 145" anchor="top right"/>
- <Button id="btn_cancel" taborder="8" text="종료" class="btn4" position="absolute 1200 125 1256 145" anchor="top right" onclick="btn_cancel_onclick"/>
- <Static id="cap_judgtrgtman" text="대상자조회" class="tit_2" position="absolute 0 127 91 147"/>
- <Button id="btn_cretdel" taborder="9" text="전체선택" onlbuttonup="btn_cretdel_onlbuttonup" class="btn2" position="absolute 91 124 155 144"/>
- <Grid id="grd_clbsmast" class="datagrid2" taborder="10" useinputpanel="false" position="absolute 0 147 1256 805" anchor="all" autofittype="none" binddataset="ds_grid_datagrid1" oncellclick="grd_clbsmast_oncellclick" cellsizingtype="col">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="35"/>
- <Column size="57"/>
- <Column size="40"/>
- <Column size="54"/>
- <Column size="61"/>
- <Column size="22"/>
- <Column size="49"/>
- <Column size="30"/>
- <Column size="30"/>
- <Column size="68"/>
- <Column size="68"/>
- <Column size="67"/>
- <Column size="60"/>
- <Column size="129"/>
- <Column size="71"/>
- <Column size="83"/>
- <Column size="56"/>
- <Column size="53"/>
- <Column size="59"/>
- <Column size="52"/>
- <Column size="44"/>
- <Column size="42"/>
- </Columns>
- <Rows>
- <Row size="35" band="head"/>
- <Row size="24" band="head"/>
- <Row size="24"/>
- </Rows>
- <Band id="head">
- <Cell rowspan="2" text="C" taborder="undefined"/>
- <Cell col="1" rowspan="2" text="청구년월" taborder="undefined"/>
- <Cell col="2" rowspan="2" text="차수" taborder="undefined"/>
- <Cell col="3" rowspan="2" text="청구구분" taborder="undefined"/>
- <Cell col="4" rowspan="2" colspan="2" text="등록번호" taborder="undefined"/>
- <Cell col="6" rowspan="2" text="환자명" taborder="undefined"/>
- <Cell col="7" rowspan="2" text="보험 유형" taborder="undefined"/>
- <Cell col="8" rowspan="2" text="보조 유형" taborder="undefined"/>
- <Cell col="9" rowspan="2" text="입원일자" taborder="undefined"/>
- <Cell col="10" rowspan="2" text="진료개시일" taborder="undefined"/>
- <Cell col="11" rowspan="2" text="진료종료일" taborder="undefined"/>
- <Cell col="12" rowspan="2" text="진료분야" taborder="undefined"/>
- <Cell col="13" rowspan="2" text="진료과" taborder="undefined"/>
- <Cell col="14" text="진료개시일" taborder="undefined"/>
- <Cell col="15" text="교부번호" taborder="undefined"/>
- <Cell col="16" rowspan="2" text="진료의" taborder="undefined"/>
- <Cell col="17" rowspan="2" text="심사자" taborder="undefined"/>
- <Cell col="18" rowspan="2" text="최종 심사자" taborder="undefined"/>
- <Cell col="19" rowspan="2" text="심사 상태" taborder="undefined"/>
- <Cell col="20" rowspan="2" text="청구 상태" taborder="undefined"/>
- <Cell col="21" rowspan="2" text="잠금 설정" taborder="undefined"/>
- <Cell row="1" col="14" colspan="2" text="불일치구분" taborder="undefined"/>
- </Band>
- <Band id="body">
- <Cell displaytype="checkbox" edittype="checkbox" text="bind:fromchk"/>
- <Cell col="1" displaytype="date" style="align:center middle;" text="bind:clamym" mask="yyyy-MM"/>
- <Cell col="2" displaytype="text" style="align:center middle;" text="bind:clamdg"/>
- <Cell col="3" displaytype="combo" style="align:center middle;" text="bind:clamflagcd" combodataset="ds_cond_clamflag" combocodecol="cdid" combodatacol="cdnm"/>
- <Cell col="4" style="align:center middle;" text="bind:pid"/>
- <Cell col="5" style="align:center middle;" text="bind:pidsn"/>
- <Cell col="6" style="align:center middle;" text="bind:patnm"/>
- <Cell col="7" style="align:center middle;" text="bind:insukind"/>
- <Cell col="8" style="align:center middle;" text="bind:suppkind"/>
- <Cell col="9" displaytype="date" style="align:center middle;" text="bind:indd" mask="yyyy-MM-dd"/>
- <Cell col="10" displaytype="date" style="align:center middle;" text="bind:ordfromdd" mask="yyyy-MM-dd"/>
- <Cell col="11" displaytype="date" style="align:center middle;" text="bind:ordtodd" mask="yyyy-MM-dd"/>
- <Cell col="12" displaytype="combo" style="align:center middle;" text="bind:ordfildcd" combodataset="ds_cond_ordfild" combocodecol="cdid" combodatacol="cdnm"/>
- <Cell col="13" displaytype="combo" style="align:left middle;" text="bind:orddeptcd" combodataset="ds_cond_deptinfolist" combocodecol="cd" combodatacol="nm"/>
- <Cell col="14" displaytype="combo" text="bind:clamdgchk" combodataset="ds_cond_clamflag" combocodecol="cdid" combodatacol="cdnm"/>
- <Cell col="15" displaytype="combo" text="bind:mpsnochk" combodataset="ds_cond_clamflag" combocodecol="cdid" combodatacol="cdnm"/>
- <Cell col="16" displaytype="combo" style="align:center middle;" text="bind:orddrid" combodataset="ds_cond_orddrid" combocodecol="cd" combodatacol="nm"/>
- <Cell col="17" displaytype="combo" style="align:center middle;" text="bind:judgrid" combodataset="ds_cond_judgerinfo" combocodecol="judgrid" combodatacol="judgrnm"/>
- <Cell col="18" displaytype="normal" style="align:center middle;" text="bind:lastupdtrnm"/>
- <Cell col="19" displaytype="combo" style="align:center middle;" text="bind:judgendyn" combodataset="ds_init_P0151" combocodecol="cdid" combodatacol="cdnm"/>
- <Cell col="20" displaytype="combo" style="align:center middle;" text="bind:clamendyn" combodataset="ds_init_P0430" combocodecol="cdid" combodatacol="cdnm"/>
- <Cell col="21" style="align:center middle;" text="bind:lockyn"/>
- <Cell col="22"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <cp_monthCal id="cp_monthCal00" titletext="monthCalendar" taborder="11" text="cp_monthCal00" scrollbars="none" position="absolute 1087 28 1187 48" anchor="top right"/>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_cond_insurcd" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <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="tochk"/>
- <column id="clamym"/>
- <column id="clamdg"/>
- <column id="clamflagcd"/>
- <column id="pid"/>
- <column id="pidsn"/>
- <column id="patnm"/>
- <column id="gender"/>
- <column id="patage"/>
- <column id="insukind"/>
- <column id="suppkind"/>
- <column id="t_insukind"/>
- <column id="t_suppkind"/>
- <column id="indd"/>
- <column id="ordfromdd"/>
- <column id="ordtodd"/>
- <column id="ordfildcd"/>
- <column id="orddeptcd"/>
- <column id="orddrid"/>
- <column id="judgrid"/>
- <column id="judgrnm"/>
- <column id="lastupdtrid"/>
- <column id="judgendyn"/>
- <column id="clamendyn"/>
- <column id="lockyn"/>
- <column id="insuno"/>
- <column id="certno"/>
- <column id="insdnm"/>
- <column id="acddd"/>
- <column id="acdacptno"/>
- <column id="insucd"/>
- <column id="clamno"/>
- <column id="acptno"/>
- <column id="acptdd"/>
- <column id="docuseqno"/>
- <column id="adjtresncd"/>
- <column id="clamkey"/>
- <column id="workflag"/>
- <column id="clbtworkflag"/>
- <column id="rclamyn"/>
- <column id="clamtypecd"/>
- <column id="sumtypecd"/>
- <column id="ownbflag"/>
- <column id="rsvordgubn"/>
- <Column id="lastupdtrnm" type="STRING" size="256"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_cond_clamdg" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <column id="clamdgid"/>
- <column id="clamdgnm"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_cond_clamflag" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <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_datagrid2" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
- <ColumnInfo>
- <column id="makeflag"/>
- <column id="copyflag"/>
- <column id="t_clamym"/>
- <column id="t_clamdg"/>
- <column id="t_clamflagcd"/>
- <column id="ioflag"/>
- <column id="fromchk"/>
- <column id="tochk"/>
- <column id="clamym"/>
- <column id="clamdg"/>
- <column id="pid"/>
- <column id="pidsn"/>
- <column id="workflag"/>
- <column id="clamkey"/>
- <column id="ordfromdd"/>
- <column id="insukind"/>
- <column id="suppkind"/>
- <column id="acptno"/>
- <column id="acptdd"/>
- <column id="docuseqno"/>
- <column id="adjtresncd"/>
- <column id="ms010"/>
- <column id="t_insukind"/>
- <column id="t_suppkind"/>
- <column id="insuno"/>
- <column id="certno"/>
- <column id="insdnm"/>
- <column id="acddd"/>
- <column id="acdacptno"/>
- <column id="insucd"/>
- <column id="chgresn"/>
- <column id="clamflag"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_cond_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_cond_deptinfolist" 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_cond_ordfild" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <ExtCommon id="ExtCommon00"/>
- <Dataset id="ds_cond_judgerinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="judgrid" type="STRING" size="256"/>
- <Column id="judgrnm" type="STRING" size="256"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_init_clamdept" 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"/>
- <Column id="cdval" type="STRING" size="256"/>
- <Column id="minval" type="STRING" size="256"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_init_P0151" 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_P0430" 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_rslt_clamdg" 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 : 2015-05-01
- * Description :
- *---------------------------------------------------------------------------------------
- * Modify Date Modifier Modify Description
- *---------------------------------------------------------------------------------------
- * 2015-05-01 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 workform_onload(obj:Form, e:LoadEventInfo)
- {
- frmf_initForm(obj);
- grdf_initGrid(grd_clbsmast);
-
- var curDate = utlf_getCurrentDate(); //getCurrentDate();
- var objParam = [ {cdGrpId: "P0151", dsNm: dsf_createDs("ds_init_P0151")} // 심사상태
- ,{cdGrpId: "P0430", dsNm: dsf_createDs("ds_init_P0430")} ];// 청구상태
-
- appf_getCodeList(objParam, false, false);
-
- appf_getCodeList([{cdGrpId:"P0008", dsNm:"ds_cond_insurcd"} ]);
-
- //접수구분 조회<>
- appf_getCodeList([{cdGrpId:"P0155", dsNm:"ds_cond_clamflag"} ]);
-
- frmf_addComboItem("group1.cmb_clamflag", " " , "");
-
- appf_getCodeList([{cdGrpId:"P0291", dsNm:"ds_cond_ordfild"} ]); //진료과
- group1.cmb_ordfildcd.value ="-";
-
- dsf_createDsRow("ds_cond_req",
- [{col:"deptcd", val:""}
- ,{col:"ordfildcd", val:""}
- ,{col:"reqfild", val:""}
- ,{col:"reqdeptno", val:""}]);
-
-
- // 진료과, 주치의, 심사자
- var sInDsName = dsf_createDsRow("ds_cond",[{col: "ioflag", val: ""}]);
- tranf_submit({id : "TRPID20201"
- , service: "aftjudgapp.InAftJudgTrgtMan"
- , method : "reqGetInitComCd"
- , inds : "req=ds_cond"
- , outds : "ds_cond_deptinfolist=orddeptcd2 ds_cond_orddrid=orddrid2 ds_cond_judgerinfo=judgrid ds_init_clamdept=clamdept"
- , async : false});
-
-
- group1.cmb_clamdeptcd.value ="-";
- group1.cmb_orddeptcd.value ="-";
- group1.cmb_clamflag.value ="-"; //접수구분 전체 세팅
-
- frmf_addComboItem("group1.cmb_orddrid", "전체" , "-");
- group1.cmb_orddrid.value ="-";
- group1.cmb_judg.value = "-"; //심사자 '전체'로 초기화
-
-
- // 팝업으로 호출되었으면... 타이틀 변경해준다.
- pid = opener.frmf_getParameter("pid");
- if (!utlf_isNull(pid)) {
- makeflag = opener.frmf_getParameter("makeflag");
- copyflag = opener.frmf_getParameter("copyflag");
- ioflag = opener.frmf_getParameter("ioflag");
- clamym = opener.frmf_getParameter("clamym");
- clamdg = opener.frmf_getParameter("clamdg");
- pid = opener.frmf_getParameter("pid");
- pidsn = opener.frmf_getParameter("pidsn");
- t_clamym = opener.frmf_getParameter("t_clamym");
- t_clamdg = opener.frmf_getParameter("t_clamdg");
- t_clamflagcd = opener.frmf_getParameter("t_clamflagcd");
-
- group1.cp_monthCal00.setData(clamym);
- cp_monthCal00.setData(t_clamym);
-
- fn_Cal00();
-
- ipt_toclamdg.value = t_clamdg;
- group1.cmb_clamdg.value = clamdg;
- group1.ipt_patunitsrch.value = pid;
- group1.cmb_ioflag.value = ioflag;
- }
-
- if(!utlf_isNull(pid)){
- fGetDocuList();
- }else{
- ipt_toclamdg.value =clamdg;
- cp_monthCal00.setData(clamym);
- }
- }
- function fn_Cal00(){
-
- var clamym = group1.cp_monthCal00.getData();
- var clamtoym = group1.cp_monthCal00.getData();
- var sInDsName = dsf_createDsRow("ds_search"
- , [{col: "clamym", val: clamym}
- , {col: "clamtoym", val: clamtoym}
- , {col: "ioflag", val: opener.frmf_getParameter("ioflag")}
- , {col: "insukind", val: ""}]);
- var oParam = {};
- oParam.id = "TRPID20407";
- oParam.service = "aftjudgapp.InAftJudgTrgtMan";
- oParam.method = "reqGetClamdg";
- oParam.inds = "req="+ sInDsName;
- oParam.outds = "ds_cond_clamdg=clamdg";
- oParam.async = false;
- oParam.callback = "cf_TRPID20407";
- tranf_submit(oParam);
-
- }
- function cf_TRPID20407(sSvcId, nErrorCode, sErrorMsg) {
- if(nErrorCode < 0) return;
-
- group1.cmb_clamdg.index = 0;
-
- ds_cond_clamdg.insertRow(0);
- ds_cond_clamdg.setColumn(0, "clamdgcd", "");
- ds_cond_clamdg.setColumn(0, "clamdgnm", "전체");
- }
- function btn_select_onlbuttonup(obj:Button, e:MouseEventInfo)
- {
- fGetDocuList();
- }
- function btn_init_onlbuttonup(obj:Button, e:MouseEventInfo)
- {
- ds_grid_datagrid1.clearData();
- group1.cmb_ordfildcd.value = "-";
- group1.cmb_clamflag.value = "-";
-
- group1.cmb_clamdeptcd.value = "-";
- group1.cmb_orddeptcd.value = "-";
- group1.cmb_orddrid.value = "-";
- group1.cmb_judg.value = "-"; //심사자 '전체'로 초기화
-
- cp_monthCal00.setData("");
- ipt_toclamdg.value = "";
- group1.cmb_clamdg.value = "";
-
- var curDate = utlf_getCurrentDate(); //getCurrentDate();
- group1.cp_monthCal00.setData(curDate);
- group1.cp_monthCal00.setCallEvent("fn_Cal00"); //캘린더 fn_Cal 함수Load
- group1.ipt_clamno.value ="";
- group1.ipt_patunitsrch.value ="";
- group1.ipt_docuseqno1.value ="";
- group1.ipt_docuseqno2.value ="";
-
- }
- function btn_save_onlbuttonup(obj:Button, e:MouseEventInfo)
- {
- fSetDocuMake();
- }
- function btn_cretdel_onlbuttonup(obj:Button, e:MouseEventInfo)
- {
- for(var i=0;i<ds_grid_datagrid1.getRowCount();i++){
-
- var lockyn = ds_grid_datagrid1.getColumn(i,"lockyn");
- if(lockyn =="N"){
- ds_grid_datagrid1.setColumn(i,"fromchk","1");
-
-
- }
-
- }
- }
- function fGetDocuList() {
-
- var ordfildcd = group1.cmb_ordfildcd.value;
- var clamdeptcd = group1.cmb_clamdeptcd.value;
- var orddeptcd = group1.cmb_orddeptcd.value;
- var orddrid = group1.cmb_orddrid.value;
- var judgrid = group1.cmb_judg.value;
- var clamno = group1.ipt_clamno.value;
- var acptno = "";
- var docuseqno1 = group1.ipt_docuseqno1.value;
- var docuseqno2 = group1.ipt_docuseqno2.value;
-
-
- if(ordfildcd =="-"){
- ordfildcd="";
-
- }
- if(clamdeptcd =="-"){
- clamdeptcd="";
-
- }
- if(orddeptcd =="-"){
- orddeptcd="";
-
- }
- if(orddrid =="-"){
- orddrid="";
-
- }
- if(judgrid =="-"){
- judgrid="";
-
- }
-
-
- if (utlf_isNull(group1.ipt_patunitsrch.value)) {
-
- if (utlf_isNull(ordfildcd) && utlf_isNull(clamdeptcd) && utlf_isNull(orddeptcd) && utlf_isNull(orddrid) && utlf_isNull(judgrid)) {
- sysf_messageBox("진료분야, 청구과, 진료과, 주치의, 심사자중 하나이상은", "I003"); //I003=필수입력입니다.
- return;
- }
- }
-
-
- var sInDsName = dsf_createDsRow("ds_cond"
- , [{col: "makeflag" , val: makeflag}//작업선택
- , {col: "copyflag" , val: copyflag} //"생성조건"}//
- , {col: "clamym" , val: group1.cp_monthCal00.getData()} //"청구년월"}//
- , {col: "clamdg" , val: group1.cmb_clamdg.value} //"청구차수"}//
- , {col: "clamflagcd" , val: group1.cmb_clamflag.value} //"청구구분"}//
- , {col: "ioflag" , val: group1.cmb_ioflag.value} //"내원구분"}//
- , {col: "pid" , val: group1.ipt_patunitsrch.value} //등록번호
- , {col: "pidsn" , val: ""} //등록번호순번
- , {col: "insukind" , val: ""}//보험유형
- , {col: "suppkind" , val: ""} //보조유형
- , {col: "ordfildcd" , val: ordfildcd} //진료분야
- , {col: "clamdeptcd" , val: clamdeptcd} //청구과
- , {col: "orddeptcd" , val: orddeptcd} //진료과
- , {col: "orddrid" , val: orddrid} //주치의
- , {col: "judgrid" , val: judgrid} //심사자
- , {col: "judgendyn" , val: ""} //심사상태
- , {col: "clamno" , val: group1.ipt_clamno.value} //청구번호
- , {col: "acptno" , val:""} //접수번호
- , {col: "docuseqno1" , val: docuseqno1} //명번호1
- , {col: "docuseqno2" , val: docuseqno2}
- , {col: "clamdgchk" , val: group1.checkbox1.value}
- , {col: "mpsnochk" , val: group1.checkbox2.value}]); //명번호2
-
- tranf_submit({
- id: "TRPID20601"
- , service: "aftjudgapp.DocuManage"
- , method: "reqGetDocuMngList"
- , inds: "req=" + sInDsName
- , outds: "ds_grid_datagrid1=clbs"
- , callback: "cbf_TRPID20601" });
- }
- function cbf_TRPID20601(){
- if(ds_grid_datagrid1.getRowCount()>0){
- ds_grid_datagrid1.addColumn("fromchk","string");
- if(ds_grid_datagrid1.getRowCount() ==1){
- ds_grid_datagrid1.setColumn(0,"fromchk","1");
- //ds_grid_datagrid1.setColumn(0,"clamflagcd",group1.cmb_clamflag.value);
- }
- group1.cp_monthCal00.setData(ds_grid_datagrid1.getColumn(0,"clamym"));
- cp_monthCal00.setData(ds_grid_datagrid1.getColumn(0,"clamym"));
- ipt_toclamdg.value = ds_grid_datagrid1.getColumn(0,"clamdg");
- }
- ds_grid_datagrid1.rowposition = -1;
-
- for (i=0; i < ds_grid_datagrid1.rowcount; i++ ) {
- if (ds_grid_datagrid1.getColumn(i,"clamsameyn") == "Y" ){
- } else {
- ds_grid_datagrid1.setColumn(i,"clamdgchk","");
- }
-
- if (ds_grid_datagrid1.getColumn(i,"mpsnosameyn") == "Y" ) {
- } else {
- ds_grid_datagrid1.setColumn(i,"mpsnochk","");
- }
- }
- }
-
- function btn_cancel_onclick(obj:Button, e:ClickEventInfo)
- {
- this.close();
- }
- // ----------------------------------------------------------------------
- // ▶ 명세서관리 자료생성
- // ----------------------------------------------------------------------
- function fSetDocuMake() {
- // 자료생성전 체크
- var rslt = fValidcheck();
- if (rslt != false) {
-
- var fromchk="";
- var iCnt=0;
-
- ds_grid_datagrid2.clearData();
- for (var i = 0; i < ds_grid_datagrid1.getRowCount(); i++) {
- fromchk = ds_grid_datagrid1.getColumn(i,"fromchk");
- if (fromchk == "1") {
- var nRow = ds_grid_datagrid2.addRow();
- ds_grid_datagrid2.copyRow(nRow,ds_grid_datagrid1,i);
-
- ds_grid_datagrid2.setColumn(nRow,"makeflag",makeflag);
- ds_grid_datagrid2.setColumn(nRow,"copyflag",copyflag);
-
- ds_grid_datagrid2.setColumn(nRow,"t_clamym",cp_monthCal00.getData());
- ds_grid_datagrid2.setColumn(nRow,"t_clamdg",ipt_toclamdg.value);
-
- // 1. 누락청구이동인 경우
- if (chk_clamflagcd.value == "Y") {
-
- ds_grid_datagrid2.setColumn(nRow,"t_clamflagcd","4"); // 4:누락청구
-
- } else {
- var t_clamdg = ipt_toclamdg.value;
- var clamflagcd = ds_grid_datagrid1.getColumn(i,"clamflagcd");
- // 2. 누락청구에서 원청구로 이동하는 경우
- if (t_clamdg > "0" && t_clamdg < "999" && clamflagcd == "4") {
- ds_grid_datagrid2.setColumn(nRow,"t_clamflagcd","0"); //
-
- }
- // 3. 청구구분 변경없이 이동하는 경우
- else {
- ds_grid_datagrid2.setColumn(iCnt,"t_clamflagcd", ds_grid_datagrid1.getColumn(i,"clamflagcd"));
- }
- }
- iCnt++;
- }
-
-
- }
-
-
- if(iCnt >0){
- tranf_submit ( {
- id: "TXPID20601"
- , service: "aftjudgapp.DocuManage"
- , method: "reqExeDocuManage"
- , inds: "clbs=ds_grid_datagrid2"
- // , outds: "ds_cont_datagrid=temp"
- , callback: "cbf_TXPID20601"
- //, async: true
- } );
-
- }else{
-
- sysf_messageBox("이동할 명세서가", "I004"); // I004=없습니다.
- }
- }
- }
- function cbf_TXPID20601(){
- clamym = cp_monthCal00.getData();
- clamdg = ipt_toclamdg.value;
-
- group1.cp_monthCal00.getData(clamym);
- group1.cmb_clamdg.value = clamdg;
- fGetDocuList();
- }
- // ----------------------------------------------------------------------
- // ▶ 자료생성전 체크
- // ----------------------------------------------------------------------
- function fValidcheck() {
-
- var clamym = group1.cp_monthCal00.getData();
- var clamdg = group1.cmb_clamdg.value;
- var t_clamym = cp_monthCal00.getData();
- var t_clamdg = ipt_toclamdg.value;
- if (utlf_isNull(t_clamym)) {
- sysf_messageBox("생성 청구년월이", "I004"); //I004: 없습니다.
- return false;
- }
- else if (utlf_isNull(t_clamdg)) {
- sysf_messageBox("생성 청구차수가", "I004"); //I004: 없습니다.
- return false;
- }
- else {
- if ( clamym + clamdg == t_clamym + t_clamdg ) {
- sysf_messageBox(" 생성 청구년월 또는 청구차수가 변경되지", "E007"); //E007=않았습니다.
- ipt_toclamdg.setFocus();
- return false;
- }
- }
- return true;
- }
- function btn_save_onclick(obj:Button, e:ClickEventInfo)
- {
-
- }
- function cmb_toclamflagcd_onitemchanged(obj:Combo, e:ItemChangeEventInfo)
- {
- if (obj.value == "Y") {
- cmb_toclamflagcd.value = '4';
- fGetMaxClamdg()
- } else {
-
- }
- obj.updateToDataset();
- }
- function fGetMaxClamdg() {
-
- var row = ds_grid_datagrid1.rowposition;
-
- var sInDsName = dsf_createDsRow("ds_cond_item1"
- , [{col: "clamflag" , val: cmb_toclamflagcd.value}//작업선택
- , {col: "ordfildcd" , val: ds_grid_datagrid1.getColumn(row, "ordfildcd")} //"생성조건"}//
- , {col: "clamtypecd" , val:ds_grid_datagrid1.getColumn(row, "clamtypecd")} //접수번호
- , {col: "sumtypecd" , val: ds_grid_datagrid1.getColumn(row, "sumtypecd")}]); //명번호2
- var oParam = {};
- oParam.id = "TRPID20602";
- oParam.service = "aftjudgapp.DocuManage";
- oParam.method = "reqGetPidmclamMaxClamdg";
- oParam.inds = "req=ds_cond_item1";
- oParam.outds = "ds_rslt_clamdg=clbs";
- oParam.async = false;
- tranf_submit(oParam);
-
- ipt_toclamdg.value = ds_rslt_clamdg.getColumn(0,"maxclamdg");
- }
- function chk_clamflagcd_onchanged(obj:CheckBox, e:CheckBoxChangeEventInfo)
- {
- if (obj.value == "Y") {
- cmb_toclamflagcd.value = '4';
- fGetMaxClamdg()
- } else {
-
- }
- obj.updateToDataset();
- }
- ]]></Script>
- </Form>
- </FDL>
|