123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875 |
- <?xml version="1.0" encoding="utf-8" standalone="no"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SMPIE04100" position="absolute 0 0 1197 800" titletext="약가생성" onload="SMPIE04100_onload">
- <Layouts>
- <Layout>
- <Static id="caption6" text="약가생성" class="tit_1" position="absolute 0 0 105 25"/>
- <Div id="group2" taborder="1" style="align: top;" class="div_SA" position="absolute 0 25 1195 60" anchor="left top right">
- <Layouts>
- <Layout>
- <Static id="caption41" text="적용일자 :" class="search_name" position="absolute 23 9 110 26" anchor="default"/>
- <Calendar id="ipt_apdd" taborder="1" onkillfocus="group3_group2_ipt_apdd_onkillfocus" class="input_search" position="absolute 115 8 205 27" caption7="[object Static]" mask="yyyy-mm-dd" anchor="default">
- <Static id="caption7"/>
- </Calendar>
- <Combo id="cmb_appyearmnthfrom" taborder="2" innerdataset="@ds_init_appyearmnth" codecolumn="appyearmnth" datacolumn="appyearmnth" onitemchanged="group3_group2_cmb_appyearmnthfrom_onitemchanged" class="combo_search" position="absolute 334 8 414 27" columncount="-1" rowcount="-1" anchor="default"/>
- <Static id="caption4" text="신청분기 :" class="search_name" position="absolute 241 10 335 27" anchor="default"/>
- <Combo id="cmb_appno" taborder="3" innerdataset="@ds_init_appnolist" codecolumn="appno" datacolumn="appinfo" class="combo_search" position="absolute 539 8 689 27" columncount="-1" rowcount="-1" anchor="default"/>
- <Static id="caption3" text="신청번호 :" class="search_name" position="absolute 446 10 545 27" anchor="default"/>
- </Layout>
- </Layouts>
- </Div>
- <Static id="caption1" text="약가생성리스트" class="tit_2" position="absolute 0 67 116 83" anchor="left top"/>
- <Shape id="line1" class="line_10" position="absolute 0 84 1194 87" anchor="left top right"/>
- <Grid id="grd_piehh801" taborder="2" binddataset="ds_main_list01_gridpiehh801" useinputpanel="false" position="absolute 0 87 1194 572" anchor="all" onentercell="group3_grd_piehh801_onentercell">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="30"/>
- <Column size="0"/>
- <Column size="77"/>
- <Column size="69"/>
- <Column size="215"/>
- <Column size="70"/>
- <Column size="70"/>
- <Column size="70"/>
- <Column size="70"/>
- <Column size="70"/>
- <Column size="70"/>
- <Column size="70"/>
- <Column size="70"/>
- <Column size="70"/>
- <Column size="70"/>
- <Column size="70"/>
- <Column size="80"/>
- <Column size="93"/>
- <Column size="68"/>
- <Column size="63"/>
- <Column size="63"/>
- <Column size="100"/>
- <Column size="83"/>
- <Column size="70"/>
- <Column size="35"/>
- <Column size="497"/>
- </Columns>
- <Rows>
- <Row size="26" band="head"/>
- <Row size="25"/>
- </Rows>
- <Band id="head">
- <Cell/>
- <Cell col="1" displaytype="checkbox" edittype="checkbox"/>
- <Cell col="2" text="수가코드"/>
- <Cell col="3" text="EDI코드"/>
- <Cell col="4" text="수가명"/>
- <Cell col="5" text="수가시작일"/>
- <Cell col="6" text="수가종료일"/>
- <Cell col="7" text="가중평균가"/>
- <Cell col="8" text="상한가"/>
- <Cell col="9" text="적용단가"/>
- <Cell col="10" text="적용일반가"/>
- <Cell col="11" text="보험가"/>
- <Cell col="12" text="급여가"/>
- <Cell col="13" text="산재가"/>
- <Cell col="14" text="자보가"/>
- <Cell col="15" text="일반가"/>
- <Cell col="16" text="현퇴장방지액"/>
- <Cell col="17" text="적용퇴장방지액"/>
- <Cell col="18" text="mptype"/>
- <Cell col="19" text="typeid"/>
- <Cell col="20" text="classid"/>
- <Cell col="21" text="신청번호"/>
- <Cell col="22" text="신청분기"/>
- <Cell col="23" text="신규적용일자"/>
- <Cell col="24" text="오류 여부"/>
- <Cell col="25" text="비고"/>
- </Band>
- <Band id="body">
- <Cell celltype="head" expr="currow+1"/>
- <Cell col="1" displaytype="checkbox" edittype="checkbox" text="bind:chkbox"/>
- <Cell col="2" style="align:left;" text="bind:calcscorcd"/>
- <Cell col="3" style="align:left;" text="bind:edicd"/>
- <Cell col="4" style="align:left;" text="bind:hngnm"/>
- <Cell col="5" displaytype="date" text="bind:fromdd"/>
- <Cell col="6" displaytype="date" text="bind:todd"/>
- <Cell col="7" displaytype="number" text="bind:avg"/>
- <Cell col="8" displaytype="number" text="bind:unitcost"/>
- <Cell col="9" displaytype="number" text="bind:ap_insurbpnt"/>
- <Cell col="10" displaytype="number" text="bind:ap_gnrlrbpnt"/>
- <Cell col="11" displaytype="number" text="bind:insurbpnt"/>
- <Cell col="12" displaytype="number" text="bind:procrbpnt"/>
- <Cell col="13" displaytype="number" text="bind:inducsrbpnt"/>
- <Cell col="14" displaytype="number" text="bind:autmbrbpnt"/>
- <Cell col="15" displaytype="number" text="bind:gnrlrbpnt"/>
- <Cell col="16" displaytype="number" text="bind:mech_leprotamt"/>
- <Cell col="17" displaytype="number" text="bind:edi_leprotamt"/>
- <Cell col="18" text="bind:mptype"/>
- <Cell col="19" text="bind:typeid"/>
- <Cell col="20" text="bind:classid"/>
- <Cell col="21" text="bind:appno"/>
- <Cell col="22" text="bind:appyearmnth"/>
- <Cell col="23" displaytype="date" text="bind:apdd"/>
- <Cell col="24" text="bind:erryn"/>
- <Cell col="25" style="align:left;" text="bind:remfact"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Button id="button90" taborder="3" text="2. 약가생성할 자료조회(적용가, 일반가)" onclick="group3_button90_onclick" class="btn2" position="absolute 398 64 632 83" anchor="top right"/>
- <Button id="button12" taborder="4" text="입고내역조회" onclick="group3_button12_onclick" class="btn3" visible="false" position="absolute 120 64 224 83" anchor="top right"/>
- <Button id="button2" taborder="5" text="3. 수가적용(업데이트)" onclick="group3_button2_onclick" class="btn5" position="absolute 634 64 771 83" anchor="top right"/>
- <Button id="button3" taborder="6" text="4. 최종업데이트 자료조회" onclick="group3_button3_onclick" class="btn2" position="absolute 773 64 936 83" anchor="top right"/>
- <Button id="button4" taborder="7" text="1. 적용일기준 수가조회" onclick="group3_button4_onclick" class="btn2" position="absolute 255 64 396 83" anchor="top right"/>
- <Button id="button5" taborder="8" text="엑셀저장" onclick="group3_button5_onclick" class="btn7" position="absolute 1120 64 1194 83" anchor="top right"/>
- <Grid id="grd_errlist" taborder="9" binddataset="ds_main_list01_griderrlist" useinputpanel="false" position="absolute 0 603 1194 773" onentercell="group3_grd_errlist_onentercell" anchor="left right bottom">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="88"/>
- <Column size="76"/>
- <Column size="255"/>
- <Column size="70"/>
- <Column size="70"/>
- <Column size="70"/>
- <Column size="70"/>
- <Column size="70"/>
- <Column size="70"/>
- <Column size="70"/>
- <Column size="70"/>
- <Column size="70"/>
- <Column size="70"/>
- <Column size="68"/>
- <Column size="63"/>
- <Column size="63"/>
- <Column size="100"/>
- <Column size="83"/>
- <Column size="100"/>
- <Column size="30"/>
- </Columns>
- <Rows>
- <Row size="26" band="head"/>
- <Row size="25"/>
- </Rows>
- <Band id="head">
- <Cell text="수가코드"/>
- <Cell col="1" text="EDI코드"/>
- <Cell col="2" text="수가명"/>
- <Cell col="3" text="수가적용일자"/>
- <Cell col="4" text="가중평균가"/>
- <Cell col="5" text="상한가"/>
- <Cell col="6" text="적용단가"/>
- <Cell col="7" text="적용일반가"/>
- <Cell col="8" text="보험가"/>
- <Cell col="9" text="급여가"/>
- <Cell col="10" text="산재가"/>
- <Cell col="11" text="자보가"/>
- <Cell col="12" text="일반가"/>
- <Cell col="13" text="mptype"/>
- <Cell col="14" text="typeid"/>
- <Cell col="15" text="classid"/>
- <Cell col="16" text="신청번호"/>
- <Cell col="17" text="신청분기"/>
- <Cell col="18" text="오류내용"/>
- <Cell col="19" text="오류 여부"/>
- </Band>
- <Band id="body">
- <Cell style="align:left;" text="bind:calcscorcd"/>
- <Cell col="1" style="align:left;" text="bind:edicd"/>
- <Cell col="2" style="align:left;" text="bind:hngnm"/>
- <Cell col="3" displaytype="date" text="bind:fromdd"/>
- <Cell col="4" displaytype="number" text="bind:avg"/>
- <Cell col="5" displaytype="number" text="bind:unitcost"/>
- <Cell col="6" displaytype="number" text="bind:ap_insurbpnt"/>
- <Cell col="7" displaytype="number" text="bind:ap_gnrlrbpnt"/>
- <Cell col="8" displaytype="number" text="bind:insurbpnt"/>
- <Cell col="9" displaytype="number" text="bind:procrbpnt"/>
- <Cell col="10" displaytype="number" text="bind:inducsrbpnt"/>
- <Cell col="11" displaytype="number" text="bind:autmbrbpnt"/>
- <Cell col="12" displaytype="number" text="bind:gnrlrbpnt"/>
- <Cell col="13" text="bind:mptype"/>
- <Cell col="14" text="bind:typeid"/>
- <Cell col="15" text="bind:classid"/>
- <Cell col="16" text="bind:appno"/>
- <Cell col="17" text="bind:appyearmnth"/>
- <Cell col="18" style="align:left;" text="bind:apdd"/>
- <Cell col="19" text="bind:erryn"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Static id="caption2" text="오류리스트" class="tit_2" position="absolute 0 583 170 599" anchor="left bottom"/>
- <Shape id="line2" class="line_10" position="absolute 0 600 1194 603" anchor="left right bottom"/>
- <Button id="button6" taborder="10" text="엑셀저장" onclick="group3_button6_onclick" class="btn7" position="absolute 1120 580 1194 599" anchor="right bottom"/>
- <Button id="btn_phcr" taborder="11" text="약가 생성 내역" onclick="group3_btn_phcr_onclick" class="btn2" visible="false" position="absolute 1022 64 1119 83" anchor="top right"/>
- <Shape id="line32" class="line_6" position="absolute 0 775 1194 778" anchor="left right bottom"/>
- <Button id="btn_closepredocupopup" taborder="12" text="닫기" class="btn4" position="absolute 1138 778 1194 800" anchor="right bottom" onclick="btn_closepredocupopup_onclick"/>
- <Button id="btn_init" taborder="13" text="초기화" onclick="grp_btn_btn_init_onclick" class="btn4" position="absolute 1067 778 1135 800" anchor="right bottom"/>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_popupdata_popupmenu" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo/>
- </Dataset>
- <Dataset id="ds_main_list02" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo/>
- </Dataset>
- <Dataset id="ds_main_list02_h801" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo>
- <Column id="reptcd" type="STRING" size="256"/>
- <Column id="lnno" type="STRING" size="256"/>
- <Column id="cmpyno" type="STRING" size="256"/>
- <Column id="cmpynm" type="STRING" size="256"/>
- <Column id="purcdd" type="STRING" size="256"/>
- <Column id="purcqty" type="STRING" size="256"/>
- <Column id="purcunitcost" type="STRING" size="256"/>
- <Column id="purctotamt" type="STRING" size="256"/>
- <Column id="cmpyremark" type="STRING" size="256"/>
- <Column id="itemflaglnkno" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="reptcd"/>
- <Col id="lnno"/>
- <Col id="cmpyno"/>
- <Col id="cmpynm"/>
- <Col id="purcdd"/>
- <Col id="purcqty"/>
- <Col id="purcunitcost"/>
- <Col id="purctotamt"/>
- <Col id="cmpyremark"/>
- <Col id="itemflaglnkno"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo>
- <Column id="apdd" type="STRING" size="256"/>
- <Column id="appyearmnth" type="STRING" size="256"/>
- <Column id="appno" type="STRING" size="256"/>
- <Column id="appyearmnthfrom" type="STRING" size="256"/>
- <Column id="appyearmnthto" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="apdd"/>
- <Col id="appyearmnth"/>
- <Col id="appno"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_main" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo/>
- </Dataset>
- <Dataset id="ds_hidden" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo>
- <Column id="hidden" type="STRING" size="256"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_popupdata_popupmenu_gridpiehh702" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo/>
- </Dataset>
- <Dataset id="ds_main_list01_gridpiehh801" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo>
- <Column id="appno" type="STRING" size="256"/>
- <Column id="docuno" type="STRING" size="256"/>
- <Column id="corpmark" type="STRING" size="256"/>
- <Column id="chrgnm" type="STRING" size="256"/>
- <Column id="cnfmnm" type="STRING" size="256"/>
- <Column id="appyearmnth" type="STRING" size="256"/>
- <Column id="repttotcnt" type="STRING" size="256"/>
- <Column id="rem" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="appno"/>
- <Col id="docuno"/>
- <Col id="corpmark"/>
- <Col id="chrgnm"/>
- <Col id="cnfmnm"/>
- <Col id="appyearmnth"/>
- <Col id="repttotcnt"/>
- <Col id="rem"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_popupdata_popupmenu_gridpiehh702_item" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo>
- <Column id="name" type="STRING" size="256"/>
- <Column id="func" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="name">신고조회</Col>
- <Col id="func">fMenu1</Col>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_main_list01" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo/>
- </Dataset>
- <Dataset id="ds_popupdata" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo/>
- </Dataset>
- <Dataset id="ds_main_list01_griderrlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo>
- <Column id="reptcd" type="STRING" size="256"/>
- <Column id="itemflagno" type="STRING" size="256"/>
- <Column id="makecmpynm" type="STRING" size="256"/>
- <Column id="item" type="STRING" size="256"/>
- <Column id="spec" type="STRING" size="256"/>
- <Column id="unit" type="STRING" size="256"/>
- <Column id="lnnoremark" type="STRING" size="256"/>
- <Column id="avg" type="STRING" size="256"/>
- <Column id="fstpurcflag" type="STRING" size="256"/>
- <Column id="calcscorcd" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="reptcd"/>
- <Col id="itemflagno"/>
- <Col id="makecmpynm"/>
- <Col id="item"/>
- <Col id="spec"/>
- <Col id="unit"/>
- <Col id="lnnoremark"/>
- <Col id="avg"/>
- <Col id="fstpurcflag"/>
- <Col id="calcscorcd"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_init_appyearmnth" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep"/>
- <Dataset id="ds_send_list01" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo>
- <Column id="gridpiehh801" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="gridpiehh801"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_init_appnolist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- </Objects>
- <Bind>
- <BindItem id="item0" compid="group2.ipt_apdd" propid="value" datasetid="ds_send" columnid="apdd"/>
- <BindItem id="item1" compid="group2.cmb_appyearmnthfrom" propid="value" datasetid="ds_send" columnid="appyearmnth"/>
- <BindItem id="item2" compid="group2.cmb_appno" propid="value" datasetid="ds_send" columnid="appno"/>
- </Bind>
- <Script type="xscript4.0"><![CDATA[/***************************************************************************************
- * System Name :
- * Job Name :
- * Creator :
- * Make Date : 2016-10-07
- * Description :
- *---------------------------------------------------------------------------------------
- * Modify Date Modifier Modify Description
- *---------------------------------------------------------------------------------------
- * 2016-10-07 Live Converter TF->XP
- *
- *---------------------------------------------------------------------------------------
- ****************************************************************************************/
- include "com_commonxp::comm_main.xjs";
- function SMPIE04100_onload(obj:Form, e:LoadEventInfo) {
- frmf_initForm(obj);
-
- grdf_initGrid(grd_piehh801);
- grdf_setToolTipBind(grd_piehh801);
-
- grdf_initGrid(grd_errlist);
- grdf_setToolTipBind(grd_errlist);
-
- group2.ipt_apdd.value = utlf_getCurrentDate();
- var oParam = {};
- oParam.id = "TRPIE04101";
- oParam.service = "edimngtapp.EdiMngt";
- oParam.method = "reqGetH801appyearmnth";
- oParam.inds = "req=ds_send";
- oParam.outds = "ds_init_appyearmnth=appyearmnthlist";
- oParam.async = false;
- //oParam.callback = "cf_TRPIE04101";
- tranf_submit(oParam);
- }
- //
- // // 신청번호생성 신청일자 Valid Check
- // function fDayChk(){
- // var appno = ds_send_createappno.getColumn(0, "appno1");
- // var dd = utlf_getCurrentDate();
- // if(appno != dd){
- // var chk = sysf_messageBox("신청일자가 오늘일자와 다릅니다.","Q003");
- // if(chk == "6"){
- // return true;
- // }else{
- // return false;
- // }
- // }
- // }
- //
- // // 전체조회 H803
- // function fReSelectAllF080(nowRow) {
- //
- // // H801조회
- // // submit("TRPIE00205");
- // var oParam = {};
- // oParam.id = "TRPIE00205";
- // oParam.service = "edimngtapp.EdiMngt";
- // oParam.method = "reqGetH801";
- // oParam.inds = "req=ds_";
- // oParam.outds = "ds_=gridpiehh801";
- // oParam.async = false;
- // oParam.callback = "cf_TRPIE00205";
- //
- // tranf_submit(oParam);
- // /*
- // function cf_TRPIE00205(sSvcId, nErrorCode, sErrorMsg) {
- // if(nErrorCode < 0) return;
- // }
- // function cf_TRPIE00205(sSvcId, nErrorCode, sErrorMsg) {
- // arErrorCode.push(sSvcId, nErrorCode);
- // }
- // arErrorCode.pop("TRPIE00205") > -1
- // arErrorCode.pop("TRPIE00205") < 0
- // */
- //
- //
- // group3.grd_piehh801.row = 1;
- //
- // // H802조회
- // var appno = group3.grd_piehh801.valueMatrix(nowRow, group3.grd_piehh801.colRef("appno"));
- // if (appno != "") {
- // ds_send_appno.setColumn( 0, "appno", appno);
- // // submit("TRPIE00202");
- // var oParam = {};
- // oParam.id = "TRPIE00202";
- // oParam.service = "edimngtapp.EdiMngt";
- // oParam.method = "reqGetH802";
- // oParam.inds = "req=ds_";
- // oParam.outds = "ds_=gridpiehh802";
- // oParam.async = false;
- // oParam.callback = "cf_TRPIE00202";
- //
- // tranf_submit(oParam);
- // /*
- // function cf_TRPIE00202(sSvcId, nErrorCode, sErrorMsg) {
- // if(nErrorCode < 0) return;
- // }
- // function cf_TRPIE00202(sSvcId, nErrorCode, sErrorMsg) {
- // arErrorCode.push(sSvcId, nErrorCode);
- // }
- // arErrorCode.pop("TRPIE00202") > -1
- // arErrorCode.pop("TRPIE00202") < 0
- // */
- //
- //
- //
- // // H803조회
- // var appno = grd_piehh802.valueMatrix(1, grd_piehh802.colRef("appno"));
- // var reptcd = grd_piehh802.valueMatrix(1, grd_piehh802.colRef("reptcd"));
- // if (appno != "" && reptcd != "") {
- // ds_send_reptcd.setColumn( 0, "appno", appno);
- // ds_send_reptcd.setColumn( 0, "reptcd", "");
- // // submit("TRPIE00203");
- // var oParam = {};
- // oParam.id = "TRPIE00203";
- // oParam.service = "edimngtapp.EdiMngt";
- // oParam.method = "reqGetH803";
- // oParam.inds = "req=ds_";
- // oParam.outds = "ds_=gridpiehh803";
- // oParam.async = false;
- // oParam.callback = "cf_TRPIE00203";
- //
- // tranf_submit(oParam);
- // /*
- // function cf_TRPIE00203(sSvcId, nErrorCode, sErrorMsg) {
- // if(nErrorCode < 0) return;
- // }
- // function cf_TRPIE00203(sSvcId, nErrorCode, sErrorMsg) {
- // arErrorCode.push(sSvcId, nErrorCode);
- // }
- // arErrorCode.pop("TRPIE00203") > -1
- // arErrorCode.pop("TRPIE00203") < 0
- // */
- //
- //
- // }
- // }
- // }
- //
- // // 입고세부조회
- // function fSelectDtlInpt() {
- //
- // var reptcd = grd_piehh802.valueMatrix(grd_piehh802.row, grd_piehh802.colRef("reptcd"));
- //
- // if (reptcd == "") {
- // sysf_messageBox("조회할 품목코드를", "C002"); //선택하십시오 !
- // } else {
- // ds_hidden_sppie00130_h802_cond.clearData(); ds_hidden_sppie00130_h802_cond.addRow();
- // ds_hidden_sppie00130_h802_cond.setColumn( 0, "fromdd", utlf_getCurrentDate()); // 검색시작일자
- // ds_hidden_sppie00130_h802_cond.setColumn( 0, "todd", utlf_getCurrentDate()); // 검색종료일자
- // ds_hidden_sppie00130_h802_cond.setColumn( 0, "srchcond1", "1"); // 검색구분 1:edi, 2:처방코드
- // ds_hidden_sppie00130_h802_cond.setColumn( 0, "srchcond2", reptcd); // 검색코드
- // ds_hidden_sppie00130_h802_cond.setColumn( 0, "dtlselectyn", "Y"); // 입고상세조회여부
- //
- // // 입고내역조회 팝업화면
- // frmf_modal("SPPIE00130", "SPPIE00130", "ds_hidden_sppie00130_h802_cond""-"ds_init"", "", "1", "10", "10", "", "", "", "", "", "M");
- //
- // // H803 그리드에 새로 신규추가할 maxrow 찾기
- // maxRow = grd_piehh803.rows -1;
- // var tmpreptcd = grd_piehh803.valueMatrix(maxRow, grd_piehh803.colRef("reptcd"));
- // if (tmpreptcd != "") {
- // maxRow = maxRow + 1;
- // }
- //
- // var rsltRow = 1;
- // var rsltNode = instance1.selectSingleNode("ds_hidden_sppie00130_h803_rslt");
- // if (rsltNode != null) {
- // for (var i = maxRow; i < rsltNode.childNodes.length + maxRow; i++) {
- // ds_main_list03_gridpiehh803.setColumn( i, "appno", grd_piehh802.valueMatrix(grd_piehh802.row, grd_piehh802.colRef("appno")));
- // ds_main_list03_gridpiehh803.setColumn( i, "reptcd", ds_hidden_sppie00130_h803_rslt_h803.getColumn(rsltRow, "reptcd")));
- // ds_main_list03_gridpiehh803.setColumn( i, "lnno", "0");
- // ds_main_list03_gridpiehh803.setColumn( i, "cmpyno", ds_hidden_sppie00130_h803_rslt_h803.getColumn(rsltRow, "cmpyno")));
- // ds_main_list03_gridpiehh803.setColumn( i, "cmpynm", ds_hidden_sppie00130_h803_rslt_h803.getColumn(rsltRow, "cmpynm")));
- // ds_main_list03_gridpiehh803.setColumn( i, "purcdd", ds_hidden_sppie00130_h803_rslt_h803.getColumn(rsltRow, "purcdd")));
- // ds_main_list03_gridpiehh803.setColumn( i, "purcqty", ds_hidden_sppie00130_h803_rslt_h803.getColumn(rsltRow, "purcqty")));
- // ds_main_list03_gridpiehh803.setColumn( i, "purcunitcost", ds_hidden_sppie00130_h803_rslt_h803.getColumn(rsltRow, "purcunitcost")));
- // ds_main_list03_gridpiehh803.setColumn( i, "purctotamt", ds_hidden_sppie00130_h803_rslt_h803.getColumn(rsltRow, "purctotamt")));
- // ds_main_list03_gridpiehh803.setColumn( i, "cmpyremark", "-");
- // ds_main_list03_gridpiehh803.setColumn( i, "itemflaglnkno", 1);
- // rsltRow += 1;
- // }
- //
- // //grd_piehh803.refresh();
- //
- // }
- //
- // for (var i = maxRow; i < grd_piehh803.rows; i++) {
- // grd_piehh803.rowStatus(i) = 1; // 1:insert 상태로 변경
- // }
- // }
- // }
- //
- // function group3_group2_ipt_apdd_onkillfocus(obj:Calendar, e:KillFocusEventInfo) {
- //
- // //ds_send.setColumn( 0, "todd",ds_send.getColumn(0, "fromdd"));
- // //model.refreshpart("ds_send_todd");
- //
- // }
- //
- function group3_group2_cmb_appyearmnthfrom_onitemchanged(obj:Combo, e:ItemChangeEventInfo) {
- var oParam = {};
- oParam.id = "TRPIE04105";
- oParam.service = "edimngtapp.EdiMngt";
- oParam.method = "reqGetH801appno";
- oParam.inds = "req=ds_send";
- oParam.outds = "ds_init_appnolist=appnolist";
- oParam.async = false;
- //oParam.callback = "cf_TRPIE04105";
- tranf_submit(oParam);
- }
- // function group3_grd_piehh801_onentercell {
- //
- // // col_type = "input" 일 경우 onentercell시점에 EditMode 상태 만들기
- // if (event.button != 3 && group3.grd_piehh801.colType(group3.grd_piehh801.col) == "input") {
- // group3.grd_piehh801.editCell();
- // }
- //
- // }
- //
- function group3_button90_onclick(obj:Button, e:ClickEventInfo) {
- ds_main_list01_gridpiehh801.clearData();
- var apdd = ds_send.getColumn(0, "apdd");
- var appyearmnth = ds_send.getColumn(0, "appyearmnth");
- var appno = ds_send.getColumn(0, "appno");
- if(utlf_isNull(apdd)){
- sysf_messageBox("적용일을","C001");
- return false;
- }
- if(utlf_isNull(appyearmnth)){
- sysf_messageBox("분기신고월 시작월","C001");
- roup2.cmb_appyearmnthfrom.setFocus();
- return false;
- }
- if(utlf_isNull(appno)){
- sysf_messageBox("신청번호","C001");
- group2.cmb_appno.setFocus();
- return false;
- }
- var oParam = {};
- oParam.id = "TRPIE04103";
- oParam.service = "edimngtapp.EdiMngt";
- oParam.method = "reqGetH801WithMech";
- oParam.inds = "req=ds_send";
- oParam.outds = "ds_main_list01_gridpiehh801=gridpiehh801 ds_main_list01_griderrlist=griderrlist";
- oParam.async = false;
- //oParam.callback = "cf_TRPIE04103";
- tranf_submit(oParam);
- //group3.grd_piehh801.cellStyle("background-color", 1, group3.grd_piehh801.colRef("ap_insurbpnt"), group3.grd_piehh801.rows, group3.grd_piehh801.colRef("ap_insurbpnt")) = "#ffe79d";
- }
- //
- // function group3_button12_onclick(obj:Button, e:ClickEventInfo) {
- //
- // var appno = group3.grd_piehh801.valueMatrix(group3.grd_piehh801.row,group3.grd_piehh801.colRef("appno"));
- //
- // if (appno == "") {
- // sysf_messageBox("선택된 신청번호가", "I004"); //I004=없습니다.
- // }
- // else {
- // ds_hidden_sppie00130_h802_cond.clearData(); ds_hidden_sppie00130_h802_cond.addRow();
- // ds_hidden_sppie00130_h802_cond.setColumn( 0, "fromdd", utlf_getCurrentDate()); // 검색시작일자
- // ds_hidden_sppie00130_h802_cond.setColumn( 0, "todd", utlf_getCurrentDate()); // 검색종료일자
- // ds_hidden_sppie00130_h802_cond.setColumn( 0, "srchcond1", "1"); // 검색구분 1:edi, 2:처방코드
- // ds_hidden_sppie00130_h802_cond.setColumn( 0, "srchcond2", ""); // 검색코드
- // ds_hidden_sppie00130_h802_cond.setColumn( 0, "dtlselectyn", "N"); // 입고상세조회여부
- //
- // // 입고내역조회 팝업화면
- // frmf_modal("SPPIE00130", "SPPIE00130", "ds_hidden_sppie00130_h802_cond""-"ds_init"", "", "1", "10", "10", "", "", "", "", "", "M");
- //
- // var h802Node = instance1.selectNodes("ds_main_list02_gridpiehh802");
- // if (h802Node.length == null || h802Node.length == 0) {
- // grd_piehh802.addRow();
- // }
- //
- // // H802 그리드에 새로 신규추가할 maxrow 찾기
- // var nowRow = 0;
- // var maxRow = grd_piehh802.rows -1;
- // var tmpreptcd = grd_piehh802.valueMatrix(maxRow, grd_piehh802.colRef("reptcd"));
- // if (tmpreptcd != "") {
- // maxRow = maxRow + 1;
- // }
- //
- // var rsltRow = 1;
- // var rsltNode = instance1.selectSingleNode("ds_hidden_sppie00130_h802_rslt");
- // if (rsltNode.childNodes != null) {
- // for (var i = maxRow; i < rsltNode.childNodes.length + maxRow; i++) {
- // ds_main_list02_gridpiehh802.setColumn( i, "appno", appno);
- // ds_main_list02_gridpiehh802.setColumn( i, "reptcd", ds_hidden_sppie00130_h802_rslt_h802.getColumn(rsltRow, "reptcd")));
- // ds_main_list02_gridpiehh802.setColumn( i, "itemflagno", "0");
- // //ds_main_list02_gridpiehh802.setColumn( i, "itemflagno", itemno);
- // ds_main_list02_gridpiehh802.setColumn( i, "makecmpynm", ds_hidden_sppie00130_h802_rslt_h802.getColumn(rsltRow, "makecmpynm")));
- // ds_main_list02_gridpiehh802.setColumn( i, "item", ds_hidden_sppie00130_h802_rslt_h802.getColumn(rsltRow, "item")));
- // ds_main_list02_gridpiehh802.setColumn( i, "spec", ds_hidden_sppie00130_h802_rslt_h802.getColumn(rsltRow, "spec")));
- // ds_main_list02_gridpiehh802.setColumn( i, "unit", ds_hidden_sppie00130_h802_rslt_h802.getColumn(rsltRow, "unit")));
- // ds_main_list02_gridpiehh802.setColumn( i, "lnnoremark", ds_hidden_sppie00130_h802_rslt_h802.getColumn(rsltRow, "lnnoremark")));
- // ds_main_list02_gridpiehh802.setColumn( i, "avg", ds_hidden_sppie00130_h802_rslt_h802.getColumn(rsltRow, "avg")));
- // ds_main_list02_gridpiehh802.setColumn( i, "fstpurcflag", ds_hidden_sppie00130_h802_rslt_h802.getColumn(rsltRow, "fstpurcflag")));
- // ds_main_list02_gridpiehh802.setColumn( i, "calcscorcd", ds_hidden_sppie00130_h802_rslt_h802.getColumn(rsltRow, "calcscorcd")));
- // rsltRow += 1;
- // }
- //
- // //grd_piehh802.refresh();
- //
- // }
- //
- // for (var i = maxRow; i < grd_piehh802.rows; i++) {
- // grd_piehh802.rowStatus(i) = 1; // 1:insert 상태로 변경
- // }
- //
- // var h803Node = instance1.selectNodes("ds_main_list03_gridpiehh803");
- // if (h803Node.length == null || h803Node.length == 0) {
- // grd_piehh803.addRow();
- // }
- //
- // // H803 그리드에 새로 신규추가할 maxrow 찾기
- // maxRow = grd_piehh803.rows -1;
- // var tmpreptcd = grd_piehh803.valueMatrix(maxRow, grd_piehh803.colRef("reptcd"));
- // if (tmpreptcd != "") {
- // maxRow = maxRow + 1;
- // }
- //
- // rsltRow = 1;
- // var rsltNode = instance1.selectSingleNode("ds_hidden_sppie00130_h803_rslt");
- // if (rsltNode != null) {
- // for (var i = maxRow; i < rsltNode.childNodes.length + maxRow; i++) {
- // ds_main_list03_gridpiehh803.setColumn( i, "appno", appno);
- // ds_main_list03_gridpiehh803.setColumn( i, "reptcd", ds_hidden_sppie00130_h803_rslt_h803.getColumn(rsltRow, "reptcd")));
- // //ds_main_list03_gridpiehh803.setColumn( i, "lnno", lineno);
- // ds_main_list03_gridpiehh803.setColumn( i, "lnno", "0");
- // ds_main_list03_gridpiehh803.setColumn( i, "cmpyno", ds_hidden_sppie00130_h803_rslt_h803.getColumn(rsltRow, "cmpyno")));
- // ds_main_list03_gridpiehh803.setColumn( i, "cmpynm", ds_hidden_sppie00130_h803_rslt_h803.getColumn(rsltRow, "cmpynm")));
- // ds_main_list03_gridpiehh803.setColumn( i, "purcdd", ds_hidden_sppie00130_h803_rslt_h803.getColumn(rsltRow, "purcdd")));
- // ds_main_list03_gridpiehh803.setColumn( i, "purcqty", ds_hidden_sppie00130_h803_rslt_h803.getColumn(rsltRow, "purcqty")));
- // ds_main_list03_gridpiehh803.setColumn( i, "purcunitcost", ds_hidden_sppie00130_h803_rslt_h803.getColumn(rsltRow, "purcunitcost")));
- // ds_main_list03_gridpiehh803.setColumn( i, "purctotamt", ds_hidden_sppie00130_h803_rslt_h803.getColumn(rsltRow, "purctotamt")));
- // ds_main_list03_gridpiehh803.setColumn( i, "cmpyremark", ds_hidden_sppie00130_h803_rslt_h803.getColumn(rsltRow, "cmpyremark")));
- // ds_main_list03_gridpiehh803.setColumn( i, "itemflaglnkno", "0");
- // rsltRow += 1;
- // }
- //
- // //grd_piehh803.refresh();
- //
- // }
- //
- // for (var i = maxRow; i < grd_piehh803.rows; i++) {
- // grd_piehh803.rowStatus(i) = 1; // 1:insert 상태로 변경
- // }
- // }
- //
- // }
- //
- function group3_button2_onclick(obj:Button, e:ClickEventInfo) {
- // 적용가, 일반가 업데이트
- if (ds_main_list01_gridpiehh801.rowcount> 0) {
- var insuflag = ds_main_list01_gridpiehh801.getColumn(0, "insuflag");
- if (insuflag != "N") {
- sysf_messageBox("이미 적용된 신청번호입니다. 새로운 신청번호를 생성하십시오", "E999");
- return;
- }
- var ap_insurbpnt = ds_main_list01_gridpiehh801.getColumn(0, "ap_insurbpnt");
- if (ap_insurbpnt != "0" && !utlf_isNull(ap_insurbpnt)) {
- for (var i = 0; i < ds_main_list01_gridpiehh801.rowcount; i++) {
-
- var arrPostion = new Array();
- arrPostion[0] = i;
- grdf_setStatus(grd_piehh801, "U", arrPostion);
- }
- var oParam = {};
- oParam.id = "TXPIE04101";
- oParam.service = "edimngtapp.EdiMngt";
- oParam.method = "reqExePicmmechInsurbpnt";
- oParam.inds = "gridpiehh801=ds_main_list01_gridpiehh801:U";
- oParam.async = false;
- //oParam.callback = "cf_TXPIE04101";
- tranf_submit(oParam);
- sysf_messageBox("[ 4.최종업데이트자료조회 ] 버튼을 눌러서 확인하세요! 정상", "I001"); //I001=처리되었습니다.
- } else {
- sysf_messageBox("적용단가가 없거나 내역이 없어서 저장", "E001"); //E001=할 수 없습니다.
- }
- } else {
- sysf_messageBox("저장할 내용이", "I004"); //I004=없습니다.
- }
- }
- function group3_button3_onclick(obj:Button, e:ClickEventInfo) {
- var apdd = ds_send.getColumn(0, "apdd");
- var appyearmnthfrom = ds_send.getColumn(0, "appyearmnthfrom");
- var appyearmnthto = ds_send.getColumn(0, "appyearmnthto");
- if(utlf_isNull(apdd)){
- sysf_messageBox("적용일을","C001");
- return false;
- }
- var oParam = {};
- oParam.id = "TRPIE04104";
- oParam.service = "edimngtapp.EdiMngt";
- oParam.method = "reqGetPicmMechByFromdd";
- oParam.inds = "req=ds_send";
- oParam.outds = "ds_main_list01_gridpiehh801=gridpiehh801";
- oParam.async = false;
- //oParam.callback = "cf_TRPIE04104";
- tranf_submit(oParam);
- }
- function group3_button4_onclick(obj:Button, e:ClickEventInfo) {
- ds_main_list01_gridpiehh801.clearData();
- var apdd = ds_send.getColumn(0, "apdd");
- var appyearmnthfrom = ds_send.getColumn(0, "appyearmnthfrom");
- var appyearmnthto = ds_send.getColumn(0, "appyearmnthto");
- if(utlf_isNull(apdd)){
- sysf_messageBox("적용일을","C001");
- return false;
- }
- var oParam = {};
- oParam.id = "TRPIE04102";
- oParam.service = "edimngtapp.EdiMngt";
- oParam.method = "reqGetPicmmechByApdate";
- oParam.inds = "req=ds_send";
- oParam.outds = "ds_main_list01_gridpiehh801=gridpiehh801";
- oParam.async = false;
- //oParam.callback = "cf_TRPIE04102";
- tranf_submit(oParam);
- }
- function group3_button5_onclick(obj:Button, e:ClickEventInfo) {
- if(ds_main_list01_gridpiehh801.rowcount > 1)
- {
- grdf_exportExcel(grd_piehh801, "약가생성자료", "see");
- }
- else
- {
- sysf_messageBox("저장할 내역이", "I004");
- }
- }
- // function group3_grd_errlist_onentercell {
- //
- // // col_type = "input" 일 경우 onentercell시점에 EditMode 상태 만들기
- // if (event.button != 3 && group3.grd_piehh801.colType(group3.grd_piehh801.col) == "input") {
- // group3.grd_piehh801.editCell();
- // }
- //
- // }
- function group3_button6_onclick(obj:Button, e:ClickEventInfo) {
- if(ds_main_list01_griderrlist.rowcount > 1)
- {
- grdf_exportExcel(grd_errlist, "약가생성 에러자료", "see");
- }
- else
- {
- sysf_messageBox("저장할 내역이", "I004");
- }
- }
- function group3_btn_phcr_onclick(obj:Button, e:ClickEventInfo) {
- frmf_setParameter("SMPIE04100_appyearmnth", ds_send.getColumn(0, "appyearmnth"));
- frmf_setParameter("SMPIE04100_appno", ds_send.getColumn(0, "appno"));
- frmf_open("SPPIE04110", "SPPIE04110", "", "", "", "", "", "", "", "", "", "", "M");
- }
- function grp_btn_btn_init_onclick(obj:Button, e:ClickEventInfo) {
- ds_main_list01_gridpiehh801.clearData();
- ds_main_list01_griderrlist.clearData();
- }
- function btn_closepredocupopup_onclick(obj:Button, e:ClickEventInfo)
- {
- this.close();
- }
- ]]></Script>
- </Form>
- </FDL>
|