123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SMPID22700" position="absolute 0 0 1256 805" titletext="명세서자격수정" scrollbars="none" onload="SMPID22700_onload">
- <Layouts>
- <Layout>
- <Div id="group1" anchor="left top right" taborder="7" style="align:center top;" class="div_SA" position="absolute 0 25 1256 92" align="align:center top;" positiontype="position">
- <Layouts>
- <Layout>
- <cp_patientInfo id="cp_searchPatInfo00" titletext="New Form" taborder="64" position="absolute 236 35 597 63" style="background:transparent; "/>
- <Static id="caption30" text="청구년월" class="search_name" position="absolute 8 10 82 30" positiontype="position"/>
- <Static id="caption32" text="청구구분" class="search_name" position="absolute 8 35 82 55" positiontype="position"/>
- <Combo id="cmb_docuflagcd" taborder="49" class="combo_search" position="absolute 82 35 157 55" positiontype="position" innerdataset="@ds_init_clamflagcd" codecolumn="cdid" datacolumn="cdnm"/>
- <Static id="caption36" text="접수번호" class="search_name" position="absolute 655 10 729 30" positiontype="position"/>
- <Edit id="ipt_acptno" taborder="50" class="input_search" position="absolute 729 10 829 30" imemode="hangul" maxlength="8" positiontype="position"/>
- <Static id="caption37" text="명번호" class="search_name" position="absolute 853 10 914 30" positiontype="position"/>
- <Edit id="ipt_docuseqno1" taborder="51" class="input_search" position="absolute 926 10 968 30" imemode="hangul" maxlength="5" positiontype="position"/>
- <Edit id="ipt_docuseqno2" taborder="52" class="input_search" position="absolute 984 10 1026 30" imemode="hangul" maxlength="5" positiontype="position"/>
- <Button id="btn_select" taborder="54" text="조회" class="btn1" position="absolute 1188 10 1244 30" anchor="top right" positiontype="position" onclick="group1_btn_select_onclick"/>
- <Static id="caption45" text="~" position="absolute 969 10 985 30" style="align:center middle;" positiontype="position"/>
- <Combo id="cmb_clamdg" taborder="57" position="absolute 160 10 211 30" positiontype="position" innerdataset="@ds_init_clamdg" codecolumn="clamdgcd" datacolumn="clamdgnm"/>
- <Static id="caption1" text="내원형태" class="search_name" position="absolute 235 10 309 30" positiontype="position"/>
- <Combo id="cmb_ioflag" taborder="58" class="combo_search" position="absolute 307 10 407 30" positiontype="position" codecolumn="value" datacolumn="label" innerdataset="@ds_init_ioflag" onitemchanged="group1_cmb_ioflag_onitemchanged"/>
- <Static id="caption2" text="청구번호" class="search_name" position="absolute 457 10 531 30" positiontype="position"/>
- <Edit id="input1" taborder="59" class="input_search" position="absolute 531 10 631 30" imemode="hangul" maxlength="8" positiontype="position"/>
- <Static id="caption3" text="작업구분" class="search_name" position="absolute 457 35 531 55" positiontype="position"/>
- <Shape id="line3" linetype="vertical" class="line_4" position="absolute 1050 5 1050 51" positiontype="position"/>
- <Combo id="cmb_workflag" taborder="60" class="combo_search" position="absolute 531 35 631 55" enable="false" positiontype="position" codecolumn="value" datacolumn="label" innerdataset="@ds_init_makeflag"/>
- <Combo id="cmb_suppkind" taborder="61" class="combo_search" position="absolute 926 35 1026 55" positiontype="position" innerdataset="@ds_init_suppkind" codecolumn="cdid" datacolumn="cdnm" displayrowcount="10" type="search"/>
- <Static id="caption12" text="보조유형" class="search_name" position="absolute 853 35 927 55" positiontype="position"/>
- <Combo id="cmb_insukind" taborder="62" class="combo_search" position="absolute 729 35 829 55" positiontype="position" innerdataset="@ds_init_insukind" codecolumn="cdid" datacolumn="cdnm" onitemchanged="group1_cmb_insukind_onitemchanged" displayrowcount="10"/>
- <Static id="caption4" text="보험유형" class="search_name" position="absolute 655 35 729 55" positiontype="position"/>
- <cp_monthCal id="cp_monthCal00" titletext="monthCalendar" taborder="63" text="cp_monthCal00" scrollbars="none" position="absolute 82 10 157 30"/>
- </Layout>
- </Layouts>
- </Div>
- <Div id="grp_tle" position="absolute 1280 0 2426 13" anchor="default" positiontype="position">
- <Layouts>
- <Layout/>
- </Layouts>
- </Div>
- <Static id="cap_title" text="명세서 자격수정" class="tit_1" position="absolute 0 3 155 23" positiontype="position"/>
- <Grid id="grd_clbsmast" class="datagrid2" taborder="2" useinputpanel="true" position="absolute 0 122 1256 805" anchor="all" binddataset="DS_GRID_grd_clbsmast" positiontype="position" oncellclick="grd_clbsmast_oncellclick" onhscroll="grd_clbsmast_onhscroll" cellsizingtype="both" autoenter="select">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="35"/>
- <Column size="0"/>
- <Column size="61"/>
- <Column size="41"/>
- <Column size="56"/>
- <Column size="67"/>
- <Column size="22"/>
- <Column size="53"/>
- <Column size="30"/>
- <Column size="30"/>
- <Column size="75"/>
- <Column size="75"/>
- <Column size="71"/>
- <Column size="60"/>
- <Column size="124"/>
- <Column size="60"/>
- <Column size="100"/>
- <Column size="100"/>
- <Column size="58"/>
- <Column size="73"/>
- <Column size="82"/>
- <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"/>
- <Column size="0"/>
- </Columns>
- <Rows>
- <Row size="35" band="head"/>
- <Row size="23"/>
- </Rows>
- <Band id="head">
- <Cell text="C"/>
- <Cell col="1" text="TO"/>
- <Cell col="2" text="청구년월"/>
- <Cell col="3" text="차수"/>
- <Cell col="4" text="청구구분"/>
- <Cell col="5" colspan="2" text="등록번호"/>
- <Cell col="7" text="환자명"/>
- <Cell col="8" text="보험 유형"/>
- <Cell col="9" text="보조 유형"/>
- <Cell col="10" text=" TO 보험유형"/>
- <Cell col="11" text=" TO 보조유형"/>
- <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="clamkey"/>
- <Cell col="28" text="workflag"/>
- <Cell col="29" text="clbtworkflag"/>
- <Cell col="30" text="추가청구여부"/>
- </Band>
- <Band id="body">
- <Cell displaytype="checkbox" edittype="checkbox" text="bind:fromchk"/>
- <Cell col="1" displaytype="checkbox" edittype="checkbox" text="bind:tochk"/>
- <Cell col="2" displaytype="date" style="align:center middle;" text="bind:clamym" mask="yyyy-MM"/>
- <Cell col="3" style="align:center middle;" text="bind:clamdg"/>
- <Cell col="4" displaytype="combo" edittype="none" style="align:left middle;" text="bind:clamflagcd" combodataset="ds_init_clamflagcd" combocodecol="cdid" combodatacol="cdnm"/>
- <Cell col="5" style="align:center middle;" text="bind:pid"/>
- <Cell col="6" style="align:center middle;" text="bind:pidsn"/>
- <Cell col="7" style="align:center middle;" text="bind:patnm"/>
- <Cell col="8" displaytype="normal" edittype="none" style="align:center middle;" text="bind:insukind"/>
- <Cell col="9" displaytype="normal" edittype="none" style="align:center middle;" text="bind:suppkind"/>
- <Cell col="10" displaytype="combo" edittype="combo" style="align:left middle;background:#e5d9ffff;" class="cell_nopadding" text="bind:t_insukind" combodataset="ds_init_insukind" combocodecol="cdid" combodatacol="cdnm" combodisplayrowcount="10"/>
- <Cell col="11" displaytype="combo" edittype="combo" style="align:left middle;background:#e5d9ffff;" class="cell_nopadding" text="bind:t_suppkind" combodataset="ds_init_suppkind" combocodecol="cdid" combodatacol="cdnm" combodisplayrowcount="10"/>
- <Cell col="12" displaytype="date" style="align:center middle;" text="bind:ordfromdd" calendardisplaynulltype="none"/>
- <Cell col="13" displaytype="combo" edittype="combo" style="align:center middle;" text="bind:ordfildcd" combodataset="ds_init_ordfildcd" combocodecol="cdid" combodatacol="cdnm"/>
- <Cell col="14" displaytype="combo" edittype="none" style="align:left middle;" text="bind:orddeptcd" combodataset="ds_init_orddeptcd" combocodecol="cd" combodatacol="nm"/>
- <Cell col="15" displaytype="combo" edittype="none" style="align:center middle;" text="bind:orddrid" combodataset="ds_init_orddrid" combocodecol="cd" combodatacol="nm"/>
- <Cell col="16" displaytype="text" edittype="text" style="align:center middle;background:#e5d9ffff;" text="bind:insuno" editlimit="15"/>
- <Cell col="17" displaytype="text" edittype="text" style="align:center middle;background:#e5d9ffff;" text="bind:certno" editlimit="40"/>
- <Cell col="18" displaytype="text" edittype="text" style="align:center middle;background:#e5d9ffff;" text="bind:insdnm" editlimit="50"/>
- <Cell col="19" displaytype="date" edittype="date" style="align:center middle;background:#e5d9ffff;" text="bind:acddd" editlimit="8" calendardisplaynulltype="none"/>
- <Cell col="20" displaytype="text" edittype="text" style="align:left middle;background:#e5d9ffff;" text="bind:acdacptno" editlimit="40"/>
- <Cell col="21" displaytype="text" edittype="text" style="align:left middle;background:#e5d9ffff;" text="bind:insucd" editlimit="15"/>
- <Cell col="22" style="align:left middle;" text="bind:clamno"/>
- <Cell col="23" style="align:left middle;" text="bind:acptno"/>
- <Cell col="24" displaytype="normal" edittype="none" style="align:left middle;" text="bind:acptdd"/>
- <Cell col="25" style="align:left middle;" text="bind:docuseqno"/>
- <Cell col="26" style="align:left middle;" text="bind:adjtresncd"/>
- <Cell col="27" text="bind:clamkey"/>
- <Cell col="28" text="bind:workflag"/>
- <Cell col="29" text="bind:clbtworkflag"/>
- <Cell col="30" text="bind:rclamyn"/>
- <Cell col="31"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Static id="caption9" text="대상자조회" class="tit_2" position="absolute 0 102 145 122" style="align:left middle;"/>
- <Combo id="combo1" taborder="3" position="absolute 750 99 1040 119" anchor="left top right" positiontype="position" innerdataset="@ds_init_chgresn" codecolumn="cdid" datacolumn="cdnm"/>
- <Button id="btn_save" taborder="4" text="자격수정" class="btn4" position="absolute 1043 99 1125 119" anchor="top right" positiontype="position" onclick="btn_save_onclick"/>
- <Button id="btn_init" taborder="5" text="초기화" class="btn4" position="absolute 1128 99 1197 119" anchor="top right" positiontype="position" onclick="btn_init_onclick"/>
- <Button id="btn_cancel" taborder="6" text="종료" class="btn4" position="absolute 1200 99 1256 119" anchor="top right" positiontype="position" onclick="btn_cancel_onclick"/>
- <Static id="caption5" text="수정사유" class="search_name" position="absolute 676 99 750 119" positiontype="position"/>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="DS_GRID_grd_clbsmast" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false" onrowsetchanged="DS_GRID_grd_clbsmast_onrowsetchanged">
- <ColumnInfo>
- <Column id="fromchk" type="STRING"/>
- <Column id="tochk" 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="t_insukind" type="STRING"/>
- <Column id="t_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="insucd" 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"/>
- <Column id="rclamyn" 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">
- <ColumnInfo>
- <Column id="cdnm" type="STRING" size="256"/>
- <Column id="cdid" type="STRING" size="256"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_init_suppkind" 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_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_chgresn" 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_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">5</Col>
- </Row>
- </Rows>
- </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">I</Col>
- </Row>
- <Row>
- <Col id="label">외래</Col>
- <Col id="value">O</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="nm" type="STRING" size="256"/>
- <Column id="cd" 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="nm" type="STRING" size="256"/>
- <Column id="cd" type="STRING" size="256"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_send_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="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="t_insukind" type="STRING"/>
- <Column id="t_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="insucd" 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"/>
- <Column id="rclamyn" type="STRING"/>
- <Column id="chgresn" type="STRING" size="256"/>
- <Column id="makeflag" type="STRING" size="256"/>
- <Column id="ioflag" type="STRING" size="256"/>
- <Column id="docuseqno1" type="STRING" size="256"/>
- <Column id="docuseqno2" 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>
- </Dataset>
- </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";
- include "com_basiccodexp::ZBC001.xjs";
- include "pam_aftjudgxp::SMPID20000.xjs";
- var g_from_cnt = 0;
- var g_to_cnt = 0;
- function fInitialize()
- {
- // 그리드 툴팁
- grdf_setToolTipBind(grd_clbsmast);
- grdf_initGrid(grd_clbsmast);
- // 보험유형, 보조유형, 진료분야, 청구구분, 수정사유 리스트
- 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"}
- ,{cdGrpId: "P0491", dsNm: "ds_init_chgresn", sortField: "cdnm", sortMehotd: "desc"}], false, false, "");
-
-
- // 진료과 주치의 초기화
- var sInDsName = dsf_createDsRow("ds_cond",[{col: "ioflag", val: 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
- });
-
- frmf_addComboItem("group1.cmb_ioflag", "전체", "");
- group1.cmb_ioflag.innerdataset = ds_init_ioflag;
- group1.cmb_ioflag.index = 0 ;
-
- // 청구월 셋팅
- var objDate = new Date();
- var lv_date = objDate.addMonth(-1);
- lv_date = objDate.toFormatString("%Y%m");
- group1.cp_monthCal00.cal_Month.value = lv_date;
-
- // 작업구분
- group1.cmb_workflag.value = "5";
-
- // 청구구분
- frmf_addComboItem("group1.cmb_docuflagcd", "전체", "");
- group1.cmb_docuflagcd.index = 0;
-
- // 보험유형
- frmf_addComboItem("group1.cmb_insukind", "전체", "");
- group1.cmb_insukind.index = 0;
-
- // 보조유형
- frmf_addComboItem("group1.cmb_suppkind", "전체", "");
- group1.cmb_suppkind.index = 0;
-
- // 수정사유
- frmf_addComboItem("combo1", "수정사유", "");
- combo1.index = 0;
- }
-
- function fGetDocuList()
- {
- // if (utlf_isNull(group1.cp_searchPatInfo00.edt_pid.value))
- // {
- // sysf_messageBox("등록번호는", "I003"); ///I003=등록번호는 필수입력입니다.
- //
- // var e = new ClickEventInfo; //이벤트 선언
- // var varRet = group1.cp_searchPatInfo00.btn_search.onclick.fireEvent(group1.cp_searchPatInfo00.btn_search, e); //이벤트 매핑
- //
- // return;
- // }
-
- ds_send_clbsmast.clearData();
-
- var Month = group1.cp_monthCal00.cal_Month.value;
- var clamym = Month.toFormatString("%Y%m");
-
- //대상자 조회
- ds_send_clbsmast.addRow();
- ds_send_clbsmast.setColumn(0, "makeflag", group1.cmb_workflag.value);
- ds_send_clbsmast.setColumn(0, "clamym", clamym);
- ds_send_clbsmast.setColumn(0, "clamdg", group1.cmb_clamdg.value);
- ds_send_clbsmast.setColumn(0, "clamflagcd", group1.cmb_docuflagcd.value);
- ds_send_clbsmast.setColumn(0, "ioflag", group1.cmb_ioflag.value);
- ds_send_clbsmast.setColumn(0, "pid", group1.cp_searchPatInfo00.edt_pid.value);
- ds_send_clbsmast.setColumn(0, "insukind", group1.cmb_insukind.value);
- ds_send_clbsmast.setColumn(0, "suppkind", group1.cmb_suppkind.value);
- ds_send_clbsmast.setColumn(0, "clamno", group1.input1.value);
- ds_send_clbsmast.setColumn(0, "acptno", group1.ipt_acptno.value);
- ds_send_clbsmast.setColumn(0, "docuseqno1", group1.ipt_docuseqno1.value);
- ds_send_clbsmast.setColumn(0, "docuseqno2", group1.ipt_docuseqno2.value);
-
- trace(ds_send_clbsmast.saveXML());
-
- tranf_submit({
- id: "TRPID20601"
- , service: "aftjudgapp.DocuManage"
- , method: "reqGetDocuMngList"
- , inds : "req=ds_send_clbsmast"
- , outds: "DS_GRID_grd_clbsmast=clbs"
- , async: false
- , callback: "cbf_TRPID20601"
- });
-
-
- }
-
- function cbf_TRPID20601(strSvcID, nErrorCode, strErrorMsg){
- //에러 처리
- if(nErrorCode == 0)
- {
- DS_GRID_grd_clbsmast.addColumn("fromchk", "string");
- DS_GRID_grd_clbsmast.addColumn("tochk", "string");
-
- var nodeList = DS_GRID_grd_clbsmast.rowcount;
-
- if (nodeList == 1)
- {
- DS_GRID_grd_clbsmast.setColumn(0, "fromchk", "1");
- g_from_cnt = 1;
- }
- }else{
-
- }
-
- DS_GRID_grd_clbsmast.filter("");
- DS_GRID_grd_clbsmast.rowposition = -1;
- }
- function fSetDocuMake()
- {
- // 자료생성전 체크
- var rslt = fValidcheck();
- if (rslt != false)
- {
- ds_send_clbsmast.clearData();
- var chgresn = combo1.value // 20091223 수정사유추가 박창원
- var makeflag = group1.cmb_workflag.value;
- var fromchk = "";
- var iCnt = 0;
-
- DS_GRID_grd_clbsmast.filter("fromchk == '1'");
- ds_send_clbsmast.copyData(DS_GRID_grd_clbsmast, true);
- DS_GRID_grd_clbsmast.filter("");
-
- for (var i = 0; i < ds_send_clbsmast.rowcount; i++)
- {
- ds_send_clbsmast.addColumn("makeflag", "string");
- ds_send_clbsmast.addColumn("ioflag", "string");
- ds_send_clbsmast.addColumn("chgresn", "string");
-
- ds_send_clbsmast.setColumn(iCnt, "makeflag", makeflag);
- ds_send_clbsmast.setColumn(iCnt, "ioflag" , group1.cmb_ioflag.value);
- ds_send_clbsmast.setColumn(iCnt, "chgresn" , chgresn);
-
- iCnt++;
-
- }
-
- if (chgresn < "1") {
- sysf_messageBox("수정사유가 지정되지 않으면 자격수정 할 수", "I004"); //I004: 없습니다.
- return;
- }
-
- tranf_submit({
- id: "TXPID20601"
- , service: "aftjudgapp.DocuManage"
- , method: "reqExeDocuManage"
- , inds : "clbs=ds_send_clbsmast"
- , async: false
- , callback: "cbf_TXPID20601"
- });
-
- }
- }
- function cbf_TXPID20601(strSvcID, nErrorCode, strErrorMsg){
- //에러 처리
- if(nErrorCode == 0)
- {
- // 자료생성 후 바로 조회.
- fGetDocuList();
-
- }else{
-
- }
- }
-
- function fValidcheck()
- {
- // 생성할 명세서 선택되었는지 체크
- var nodeList = DS_GRID_grd_clbsmast.rowcount;
-
- var chkcnt = 0;
- var i = 1;
- var lockyn = "";
-
- for ( i = 0 ; i < nodeList ; i++ )
- {
- fromchkyn = DS_GRID_grd_clbsmast.getColumn(i, "fromchk");
-
- if (fromchkyn == "1")
- {
- chkcnt++;
-
- lockyn = fromchkyn = DS_GRID_grd_clbsmast.getColumn(i, "lockyn");
-
- if (lockyn != "N")
- {
- sysf_messageBox("잠금설정된 명세서는 자격수정 할 수", "I004"); //I004: 없습니다.
- return false;
- }
- }
- }
-
- if (chkcnt == 0)
- {
- sysf_messageBox("자료생성할 명세서가", "I004"); //I004: 없습니다.
- return false;
- }
-
- var fromchkyn;
- var insukind;
- var suppkind;
- var t_insukind;
- var t_suppkind;
- var nodeList = DS_GRID_grd_clbsmast.rowcount;
- for ( i = 0; i < nodeList; i++ )
- {
- fromchkyn = DS_GRID_grd_clbsmast.getColumn(i, "fromchk");
-
- if (fromchkyn == "1")
- {
- insukind = DS_GRID_grd_clbsmast.getColumn(i, "insukind");
- suppkind = DS_GRID_grd_clbsmast.getColumn(i, "suppkind");
- t_insukind = DS_GRID_grd_clbsmast.getColumn(i, "t_insukind");
- t_suppkind = DS_GRID_grd_clbsmast.getColumn(i, "t_suppkind");
-
- insuno = DS_GRID_grd_clbsmast.getColumn(i, "insuno");
- certno = DS_GRID_grd_clbsmast.getColumn(i, "certno");
- insdnm = DS_GRID_grd_clbsmast.getColumn(i, "insdnm");
- acddd = DS_GRID_grd_clbsmast.getColumn(i, "acddd");
- acdacptno = DS_GRID_grd_clbsmast.getColumn(i, "acdacptno");
- insucd = DS_GRID_grd_clbsmast.getColumn(i, "insucd");
- if (utlf_isNull(t_insukind))
- {
- sysf_messageBox("변경 보험유형이", "I004"); //I004: 없습니다.
- return false;
- }
- else if (utlf_isNull(t_suppkind)) {
- sysf_messageBox("변경 보조유형이", "I004"); //I004: 없습니다.
- return false;
- }
- else {
- if ( insukind + suppkind == t_insukind + t_suppkind ) {
- sysf_messageBox("보험유형 또는 보조유형이 변경되지", "E007"); //E007=않았습니다.
- return false;
- }
- }
-
- if (t_insukind == "11" || t_insukind == "21" || t_insukind == "22")
- {
- if (utlf_isNull(insuno)) {
- sysf_messageBox("사업장기호가", "I004"); //I004: 없습니다.
- return false;
- } else if (utlf_isNull(certno)) {
- sysf_messageBox("증번호가", "I004"); //I004: 없습니다.
- return false;
- } if (utlf_isNull(insuno)) {
- sysf_messageBox("피보험자가", "I004"); //I004: 없습니다.
- return false;
- }
- } else if (t_insukind == "31") {
- if (utlf_isNull(acddd)) {
- sysf_messageBox("사고일자가", "I004"); //I004: 없습니다.
- return false;
- } else if (utlf_isNull(acdacptno)) {
- sysf_messageBox("접수번호가", "I004"); //I004: 없습니다.
- return false;
- } if (utlf_isNull(insucd)) {
- sysf_messageBox("보험회사가", "I004"); //I004: 없습니다.
- return false;
- }
- } else if (t_insukind == "41" || t_insukind == "42") {
- if (utlf_isNull(acdacptno)) {
- sysf_messageBox("산재관리번호가", "I004"); //I004: 없습니다.
- return false;
- } if (utlf_isNull(insucd)) {
- sysf_messageBox("산재지사가", "I004"); //I004: 없습니다.
- return false;
- }
- }
- }
- }
- }
-
- function SMPID22700_onload(obj:Form, e:LoadEventInfo)
- {
- frmf_initForm(obj);
-
- // 월달력 이벤트 호출
- group1.cp_monthCal00.setCallEvent("fn_Cal");
-
- group1.cp_searchPatInfo00.lf_setDataSearchPatInfo("PAM","0");
- group1.cp_searchPatInfo00.att_setControlWidth("98","0");
- group1.cp_searchPatInfo00.att_setVisible("3|4|",false);
- // 화면을 초기화한다.
- fInitialize();
-
- // 팝업으로 호출되었으면... 타이틀 변경해준다.
- if(frmf_checkOpener())
- {
- group1.cmb_workflag.value = sMakeflag; // 작업구분
- group1.cmb_ioflag.value = sIoflag; // 내원형태
- group1.cp_monthCal00.cal_Month.value = sClamym; // 청구년월
- group1.cp_searchPatInfo00.edt_pid.value = sPid; // 등록번호
-
- frmf_addComboItem("group1.cmb_clamdg", sClamdg, sClamdg);
- group1.cmb_clamdg.value = sClamdg;
-
- fGetDocuList();
- }
- }
- function button116_onclick(obj:Button, e:ClickEventInfo)
- {
- // 2008.06.05 neverdie 청구년월 다음월 클릭
- // 현재청구월에서 다음달을 구한다.
- var nowym = model.getValue("/root/send/item1/clamym");
- var upym;
-
- upym = pidCalMonth(1, nowym);
-
- model.setValue("/root/send/item1/clamym", upym);
- ipt_clamym.refresh();
- fGetClamdg();
-
- }
- function button73_onclick(obj:Button, e:ClickEventInfo)
- {
- // 2008.06.05 neverdie 청구년월 이전월 클릭
- // 현재청구월에서 이전달을 구한다.
- var nowym = model.getValue("/root/send/item1/clamym");
- var downym;
-
- downym = pidCalMonth(-1, nowym);
-
- model.setValue("/root/send/item1/clamym", downym);
- ipt_clamym.refresh();
-
- fGetClamdg();
-
- }
- function btn_save_onlbuttonup(obj:Button, e:MouseEventInfo)
- {
- // fSetDocuMake();
- }
- function DS_GRID_grd_clbsmast_onrowsetchanged(obj:Dataset, e:DSRowsetChangeEventInfo)
- {
- if(DS_GRID_grd_clbsmast.getColID(11) == "t_insukind")
- {
- var insukind = DS_GRID_grd_clbsmast.getColumn(e.row, "t_insukind");
- if ( insukind == "31")
- {
- grd_clbsmast.setCellProperty("Head", 19, "text", "접수번호");
- grd_clbsmast.setCellProperty("Head", 20, "text", "보험회사");
- } else if ( insukind == "41" || insukind == "42") {
- grd_clbsmast.setCellProperty("Head", 19, "text", "산재관리번호");
- grd_clbsmast.setCellProperty("Head", 20, "text", "산재지사");
- }
- }
- }
- function fn_Cal()
- {
- var Month = 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: group1.cmb_ioflag.value}]);
- tranf_submit({
- id: "TRPID20407"
- , service: "aftjudgapp.InAftJudgTrgtMan"
- , method: "reqGetClamdg"
- , inds : "req=ds_cond"
- , outds: "ds_init_clamdg=clamdg"
- , async: false
- });
-
- group1.cmb_clamdg.index = 0;
- }
- function group1_cmb_ioflag_onitemchanged(obj:Combo, e:ItemChangeEventInfo)
- {
- fn_Cal();
- }
- function group1_cmb_insukind_onitemchanged(obj:Combo, e:ItemChangeEventInfo)
- {
- }
- // 초기화 버튼 onclick
- function btn_init_onclick(obj:Button, e:ClickEventInfo)
- {
- ds_send_clbsmast.clearData();
- DS_GRID_grd_clbsmast.clearData();
-
- fInitialize();
-
- // 청구차수
- group1.cmb_clamdg.value = "";
-
- // 청구번호
- group1.input1.value = "";
-
- // 접수번호
- group1.ipt_acptno.value = "";
-
- // 명번호
- group1.ipt_docuseqno1.value = "";
- group1.ipt_docuseqno2.value = "";
-
- // 청구구분
- group1.cmb_docuflagcd.index = 0;
-
- // 등록번호
- group1.cp_searchPatInfo00.edt_pid.value = "";
-
- // 보험유형
- group1.cmb_insukind.index = 0;
-
- // 보조유형
- group1.cmb_suppkind.index = 0;
-
- // 수정사유
- combo1.value = "";
-
-
- }
- function btn_save_onclick(obj:Button, e:ClickEventInfo)
- {
- if ( utlf_isNull(combo1.value))
- {
- alert("수정사유를 선택해주세요.");
- return;
- }
- fSetDocuMake();
- }
- function btn_cancel_onclick(obj:Button, e:ClickEventInfo)
- {
- this.close();
- }
- // 환자명 틀고정
- function grd_clbsmast_onhscroll(obj:Grid, e:ScrollEventInfo)
- {
- var iCnt = 0;
- var iColCur = grd_clbsmast.getCellProperty("Head", 6, "col");
- var iCell = 6;
- for(i=iCell; i>=0; i--)
- {
- if(grd_clbsmast.getCellProperty("Head", i, "row")==0 && iColCur==grd_clbsmast.getCellProperty("Head", i, "col"))
- {
- if(iCnt==0)
- {
- var iCol = grd_clbsmast.getCellProperty("Head", i, "col");
- var iSpan = grd_clbsmast.getCellProperty("Head", i, "colspan")-1;
- var iTotCol = iCol+iSpan;
-
- for(k=0; k<=iTotCol; k++)
- {
- grd_clbsmast.setFormatColProperty(k, "band", "left");
- }
- }
- iCnt++;
- }
- }
- }
- function group1_btn_select_onclick(obj:Button, e:ClickEventInfo)
- {
- fGetDocuList();
- }
- ]]></Script>
- </Form>
- </FDL>
|