1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SMRSD07400" position="absolute 0 0 1205 787" titletext="처방집계 반납물품 관리" oninit="SMRSD07400_oninit" onload="SMRSD07400_onload">
- <Layouts>
- <Layout>
- <Div position="absolute 0 25 1195 784" id="group5" scrollbars="autoboth">
- <Layouts>
- <Layout>
- <Tab position="absolute 0 86 1195 636" id="switch1" class="tab_Normal">
- <Tabpages>
- <Tabpage text="물품별 미반납 현황" id="cse_returngoodcase">
- <Layouts>
- <Layout>
- <Static text="물품별 처방집계 미반납 내역" position="absolute 1 14 576 32" id="caption5" class="tit_2"/>
- <Grid position="absolute 0 35 1190 523" align="align:center middle;" id="grd_returngoodlist" taborder="14" binddataset="ds_grd_returngoodlist" autofittype="col" oncelldblclick="group5_switch1_cse_returngoodcase_grd_returngoodlist_oncelldblclick" cellsizingtype="col" oncellclick="group5_switch1_cse_returngoodcase_grd_returngoodlist_oncellclick">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="0"/>
- <Column size="24"/>
- <Column size="56"/>
- <Column size="176"/>
- <Column size="0"/>
- <Column size="60"/>
- <Column size="79"/>
- <Column size="0"/>
- <Column size="85"/>
- <Column size="245"/>
- <Column size="241"/>
- <Column size="70"/>
- <Column size="70"/>
- <Column size="70"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- </Columns>
- <Rows>
- <Row size="24" band="head"/>
- <Row size="24"/>
- </Rows>
- <Band id="head">
- <Cell text="기관코드"/>
- <Cell col="1"/>
- <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="남은수량"/>
- <Cell col="14" text="분할사용여부"/>
- <Cell col="15" text="응급여부"/>
- <Cell col="16"/>
- <Cell col="17"/>
- </Band>
- <Band id="body">
- <Cell text="bind:instcd"/>
- <Cell col="1" celltype="head"/>
- <Cell col="2" displaytype="combo" edittype="combo" style="align:center;" text="bind:deptflag" suppress="1" suppressalign="middle,over" enable="false"/>
- <Cell col="3" style="align:left middle;" text="bind:prcpdeptnm" suppress="1" suppressalign="middle,over"/>
- <Cell col="4" text="bind:prcpdeptcd"/>
- <Cell col="5" displaytype="combo" edittype="combo" style="align:center;" text="bind:erprcpflag" enable="false"/>
- <Cell col="6" style="align:center top;padding:5 2 0 2;cursor:hand;" text="bind:goodcd" wordwrap="char"/>
- <Cell col="7" text="bind:allsizespecid"/>
- <Cell col="8" displaytype="date" text="bind:lastacptdd" calendardisplaynulltype="none"/>
- <Cell col="9" style="align:left top;padding:5 2 0 2;" text="bind:goodnm" wordwrap="char"/>
- <Cell col="10" style="align:left top;padding:5 2 0 2;" text="bind:goodspec" wordwrap="char"/>
- <Cell col="11" displaytype="number" text="bind:rtnqty"/>
- <Cell col="12" displaytype="number" edittype="none" text="bind:new_rtnqty"/>
- <Cell col="13" displaytype="number" text="bind:aftqty"/>
- <Cell col="14" text="bind:divuseyn"/>
- <Cell col="15" text="bind:genracptdd"/>
- <Cell col="16" text="bind:genrsumcnt"/>
- <Cell col="17" text="bind:lastsumcnt"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Shape position="absolute 0 30 1190 36" linetype="horizontal" id="line2" class="line_10"/>
- <Button position="absolute 939 11 1041 30" id="btn_print1" class="btn2" taborder="17" text="미반납집계 출력" onclick="group5_switch1_cse_returngoodcase_btn_print1_onclick"/>
- <Button position="absolute 1136 11 1189 30" id="btn_excel" class="btn5" text="Excel" onclick="group5_switch1_cse_returngoodcase_btn_excel_onclick"/>
- <Grid position="absolute 410 400 1115 520" align="align:center middle;" id="grd_gooddetaillist" visible="false" binddataset="ds_grd_gooddetaillist">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="79"/>
- <Column size="29"/>
- <Column size="200"/>
- <Column size="150"/>
- <Column size="75"/>
- <Column size="60"/>
- <Column size="60"/>
- <Column size="60"/>
- </Columns>
- <Rows>
- <Row size="24" band="head"/>
- <Row size="24"/>
- </Rows>
- <Band id="head">
- <Cell text="기관코드"/>
- <Cell col="1" text="부서코드"/>
- <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="누적수량"/>
- </Band>
- <Band id="body">
- <Cell text="bind:instcd"/>
- <Cell col="1" text="bind:prcpdeptcd"/>
- <Cell col="2" text="bind:goodcd"/>
- <Cell col="3" text="bind:allsizespecid"/>
- <Cell col="4" text="bind:goodnm"/>
- <Cell col="5" text="bind:goodspec"/>
- <Cell col="6" text="bind:acptdd" mask="yyyy-mm-dd"/>
- <Cell col="7" text="bind:sumcnt"/>
- <Cell col="8" text="bind:rtnqty" mask="(-)#,###.#"/>
- <Cell col="9" text="bind:accrue_qty" mask="(-)#,###.#"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Button position="absolute 805 8 861 30" id="btn_save" class="btn4" enable="false" taborder="18" visible="false" text="저장"/>
- <Button position="absolute 1043 11 1134 30" id="button6" class="btn2" taborder="16" text="반납집계 출력" onclick="group5_switch1_cse_returngoodcase_button6_onclick"/>
- </Layout>
- </Layouts>
- </Tabpage>
- <Tabpage text="일자별 취소 현황" id="cse_returndetailcase">
- <Layouts>
- <Layout>
- <Static text="반납물품 집계 세부내역" position="absolute 5 10 575 25" id="cpt_dis" class="tit_2"/>
- <Grid position="absolute 0 35 1190 523" align="align:center middle;" id="grd_returndetaillist" binddataset="ds_main_list_returndaylist">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="0"/>
- <Column size="80"/>
- <Column size="160"/>
- <Column size="0"/>
- <Column size="60"/>
- <Column size="79"/>
- <Column size="29"/>
- <Column size="200"/>
- <Column size="150"/>
- <Column size="60"/>
- <Column size="60"/>
- <Column size="60"/>
- <Column size="60"/>
- <Column size="60"/>
- <Column size="0"/>
- <Column size="80"/>
- <Column size="0"/>
- <Column size="0"/>
- </Columns>
- <Rows>
- <Row size="24" band="head"/>
- <Row size="24"/>
- </Rows>
- <Band id="head">
- <Cell text="기관코드"/>
- <Cell col="1" text="집계일자"/>
- <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="남은수량"/>
- <Cell col="14" text="단위"/>
- <Cell col="15" text="반납등록자"/>
- <Cell col="16" text="분할사용여부"/>
- <Cell col="17" text="응급여부"/>
- </Band>
- <Band id="body">
- <Cell text="bind:instcd"/>
- <Cell col="1" text="bind:acptdd" mask="yyyy-mm-dd"/>
- <Cell col="2" text="bind:prcpdeptnm"/>
- <Cell col="3" text="bind:prcpdeptcd"/>
- <Cell col="4" text="bind:sumcnt"/>
- <Cell col="5" text="bind:goodcd"/>
- <Cell col="6" text="bind:allsizespecid"/>
- <Cell col="7" text="bind:goodnm"/>
- <Cell col="8" text="bind:goodspec"/>
- <Cell col="9" text="bind:prcpqty" mask="(-)#,###.#"/>
- <Cell col="10" text="bind:deliveqty" mask="(-)#,###.#"/>
- <Cell col="11" text="bind:dcqty" mask="(-)#,###.#"/>
- <Cell col="12" text="bind:rtnqty" mask="(-)#,###.#"/>
- <Cell col="13" text="bind:accrue_qty" mask="(-)#,###.#"/>
- <Cell col="14" text="bind:prcpunit"/>
- <Cell col="15" text="bind:rtnpsnnm"/>
- <Cell col="16" text="bind:divuseyn"/>
- <Cell col="17" text="bind:erprcpflag"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Shape position="absolute 0 26 1190 32" linetype="vertical" id="line1" class="line_1"/>
- <Button position="absolute 1125 5 1178 24" id="btn_excel2" class="btn5" text="Excel"/>
- <Button position="absolute 1020 5 1117 24" id="button5" class="btn2" taborder="15" text="취소집계 출력"/>
- </Layout>
- </Layouts>
- </Tabpage>
- <Tabpage text="분할처방 사용물품 현황" id="cse_divgoodcase">
- <Layouts>
- <Layout>
- <Static text="분할처방 사용물품 미불출 내역" position="absolute 1 15 206 30" id="caption3" class="tit_2"/>
- <Button position="absolute 1135 10 1188 29" id="button1" class="btn5" text="Excel" onclick="group5_switch1_cse_divgoodcase_button1_onclick"/>
- <Grid position="absolute 0 35 1190 523" align="align:center middle;" id="grd_divgoodlist" taborder="13" binddataset="ds_main_list_returngoodlist" autofittype="col" oncelldblclick="group5_switch1_cse_divgoodcase_grd_divgoodlist_oncelldblclick" cellsizebandtype="allband" cellsizingtype="col" oncellclick="group5_switch1_cse_divgoodcase_grd_divgoodlist_oncellclick">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="0"/>
- <Column size="24"/>
- <Column size="56"/>
- <Column size="160"/>
- <Column size="0"/>
- <Column size="79"/>
- <Column size="29"/>
- <Column size="0"/>
- <Column size="70"/>
- <Column size="364"/>
- <Column size="180"/>
- <Column size="70"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- </Columns>
- <Rows>
- <Row size="24" band="head"/>
- <Row size="24"/>
- </Rows>
- <Band id="head">
- <Cell text="기관코드"/>
- <Cell col="1"/>
- <Cell col="2" text="부서구분"/>
- <Cell col="3" text="부서"/>
- <Cell col="4" text="부서코드"/>
- <Cell col="5" colspan="2" text="물품코드" taborder="undefined"/>
- <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"/>
- <Cell col="14"/>
- <Cell col="15"/>
- </Band>
- <Band id="body">
- <Cell text="bind:instcd"/>
- <Cell col="1" celltype="head"/>
- <Cell col="2" displaytype="combo" edittype="combo" style="align:center;" text="bind:deptflag" suppress="1" suppressalign="middle,over" enable="false"/>
- <Cell col="3" style="align:left middle;" text="bind:prcpdeptnm" suppress="1" suppressalign="middle,over"/>
- <Cell col="4" text="bind:prcpdeptcd"/>
- <Cell col="5" style="align:center top;padding:5 2 0 2;cursor:hand;" text="bind:goodcd" wordwrap="char"/>
- <Cell col="6" text="bind:allsizespecid"/>
- <Cell col="7" text="bind:erprcpflag"/>
- <Cell col="8" displaytype="date" text="bind:lastacptdd" calendardisplaynulltype="none"/>
- <Cell col="9" style="align:left top;padding:5 2 0 2;" text="bind:goodnm" wordwrap="char"/>
- <Cell col="10" style="align:left top;padding:5 2 0 2;" text="bind:goodspec" wordwrap="char"/>
- <Cell col="11" displaytype="number" text="bind:rtnqty"/>
- <Cell col="12" text="bind:divuseyn"/>
- <Cell col="13" text="bind:genracptdd"/>
- <Cell col="14" text="bind:genrsumcnt"/>
- <Cell col="15" text="bind:lastsumcnt"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Shape position="absolute 0 30 1190 36" linetype="horizontal" id="line3" class="line_10"/>
- </Layout>
- </Layouts>
- </Tabpage>
- <Tabpage text="일자별 분할처방 사용물품 현황" id="cse_divgooddetailcase">
- <Layouts>
- <Layout>
- <Button position="absolute 1125 5 1178 24" id="button2" class="btn5" text="Excel"/>
- <Static text="분할 처방 사용물품 집계 세부내역" position="absolute 2 14 228 30" id="caption1" class="tit_2"/>
- <Grid position="absolute 0 35 1190 522" align="align:center middle;" id="grd_divgooddetaillist" binddataset="ds_main_list_returndaylist" cellsizebandtype="allband" cellsizingtype="col">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="0"/>
- <Column size="80"/>
- <Column size="160"/>
- <Column size="0"/>
- <Column size="60"/>
- <Column size="79"/>
- <Column size="29"/>
- <Column size="200"/>
- <Column size="150"/>
- <Column size="60"/>
- <Column size="60"/>
- <Column size="60"/>
- <Column size="75"/>
- <Column size="60"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- </Columns>
- <Rows>
- <Row size="24" band="head"/>
- <Row size="24"/>
- </Rows>
- <Band id="head">
- <Cell text="기관코드"/>
- <Cell col="1" text="집계일자"/>
- <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="남은수량"/>
- <Cell col="14" text="단위"/>
- <Cell col="15" text="반납등록자"/>
- <Cell col="16" text="분할사용여부"/>
- </Band>
- <Band id="body">
- <Cell text="bind:instcd"/>
- <Cell col="1" text="bind:acptdd" mask="yyyy-mm-dd"/>
- <Cell col="2" text="bind:prcpdeptnm"/>
- <Cell col="3" text="bind:prcpdeptcd"/>
- <Cell col="4" text="bind:sumcnt"/>
- <Cell col="5" text="bind:goodcd"/>
- <Cell col="6" text="bind:allsizespecid"/>
- <Cell col="7" text="bind:goodnm"/>
- <Cell col="8" text="bind:goodspec"/>
- <Cell col="9" text="bind:prcpqty" mask="(-)#,###.#"/>
- <Cell col="10" text="bind:deliveqty" mask="(-)#,###.#"/>
- <Cell col="11" text="bind:dcqty" mask="(-)#,###.#"/>
- <Cell col="12" text="bind:rtnqty" mask="(-)#,###.#"/>
- <Cell col="13" text="bind:accrue_qty" mask="(-)#,###.#"/>
- <Cell col="14" text="bind:prcpunit"/>
- <Cell col="15" text="bind:rtnpsnnm"/>
- <Cell col="16" text="bind:divuseyn"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Shape position="absolute 0 30 1190 36" linetype="horizontal" id="line4" class="line_10"/>
- </Layout>
- </Layouts>
- </Tabpage>
- </Tabpages>
- </Tab>
- <Div position="absolute 0 0 1195 80" align="align:center top;" id="grp_key">
- <Layouts>
- <Layout>
- <Shape position="absolute 0 0 1195 80" id="roundrect2" type="roundrectangle"/>
- <Static text="기관코드 :" position="absolute 5 11 94 28" id="cap_instcd_search" class="search_name"/>
- <Button position="absolute 1120 30 1176 52" align="align:left middle;" id="btn_search" class="btn1" taborder="11" text="조회" onclick="group5_grp_key_btn_search_onclick"/>
- <Static text="시행부서 :" position="absolute 325 10 414 27" id="cap_prcpdeptcd" class="search_name"/>
- <Edit position="absolute 590 10 730 29" id="ipt_prcpdeptcd" class="input_fix" taborder="12" visible="true"/>
- <Static text="사용구분 :" position="absolute 775 11 864 28" id="cap_wareflag" class="search_name"/>
- <Edit position="absolute 415 50 545 69" id="ipt_goodcd_search" class="input_default" taborder="6" onkeydown="group5_grp_key_ipt_goodcd_search_onkeydown" autoselect="true" inputmode="upper"/>
- <Edit position="absolute 640 49 770 68" id="ipt_goodnm_search" class="input_default" taborder="7" autoselect="true"/>
- <Static text="물품코드 :" position="absolute 325 50 414 67" id="cap_goodcd_search" class="search_name"/>
- <Static text="물 품 명 :" position="absolute 555 49 649 66" id="cap_goodnm_search" class="search_name"/>
- <Combo position="absolute 95 11 265 30" id="cmb_instcd_search" class="combo_default" enable="false" taborder="0"/>
- <Shape position="absolute 1107 8 1113 73" linetype="vertical" id="line15" class="line_4"/>
- <Calendar position="absolute 95 50 183 69" id="ipt_acptddfr" class="input_essential" taborder="4" autoselect="true"/>
- <Static text="취소일자 :" position="absolute 5 51 95 68" id="cap_acptddsearch" class="search_name"/>
- <Combo position="absolute 590 10 760 29" id="cmb_prcpdeptcd" class="combo_default" enable="true" taborder="3" innerdataset="@ds_init_erprcpdeptlist_returndeptlist" datacolumn="deptnm" codecolumn="deptcd"/>
- <CheckBox position="absolute 865 50 939 70" id="chk_ignoreset" taborder="9" text="Set 제외" truevalue="ignore"/>
- <Edit position="absolute 415 10 585 29" id="ipt_prcpdeptnm" taborder="-1" visible="false" class="output" readonly="true"/>
- <Combo position="absolute 415 10 585 29" id="cmb_prcpdeptcd_sub" class="combo_default" taborder="-1" visible="false" innerdataset="@ds_init_erprcpdeptlist_returndeptlist" datacolumn="deptnm" codecolumn="deptcd"/>
- <Radio position="absolute 415 12 590 28" id="rbo_deptflag" class="input_default" enable="false" taborder="2" columncount="-1" rowcount="-1"/>
- <Combo position="absolute 186 50 262 69" id="cmb_sumcnt" taborder="5" innerdataset="ds_combo_redata" datacolumn="label" codecolumn="value"/>
- <CheckBox position="absolute 945 50 1080 70" id="chk_viewZeroqty" taborder="10" truevalue="true" text="반납완료 물품표시"/>
- <Static text="추가조건 :" position="absolute 776 49 865 66" id="caption2" class="search_name"/>
- <cp_checkboxList id="chk_wareflag" titletext="chk_wareflag" taborder="13" text="cp_checkboxList00" scrollbars="none" position="absolute 865 8 1104 53" style="background:transparent; " col="1" row="1" cellspacing="2" vcellspacing="0" itemWidth="100" itemHeight="20" overflow="visible"/>
- </Layout>
- </Layouts>
- </Div>
- <Edit readonly="true" position="absolute 1045 83 1185 102" align="align:center middle;" id="out_searchtime"/>
- <Tab id="Tab00" taborder="1" tabindex="0" scrollbars="autoboth" position="absolute 1 82 1185 109" onchanged="group5_Tab00_onchanged">
- <Tabpages>
- <Tabpage id="tabpage1" text="물품별 미반납 현황"/>
- <Tabpage id="tabpage2" text="분할처방 사용물품 현황"/>
- </Tabpages>
- </Tab>
- <Div id="Div00" taborder="2" position="absolute 0 628 1195 759" style="background:white;">
- <Layouts>
- <Layout>
- <Static id="caption1" text="메모 내역" class="tit_2" position="absolute 0 5 226 21" anchor="default"/>
- <Shape id="line4" class="line_10" position="absolute 0 21 1193 27" anchor="default"/>
- <Grid id="grd_purrscmlist" taborder="1" binddataset="ds_purrscmlist" useinputpanel="false" position="absolute 0 26 1193 129" autosizingtype="row" extendsizetype="row" anchor="default">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="30"/>
- <Column size="100"/>
- <Column size="176"/>
- <Column size="80"/>
- <Column size="245"/>
- <Column size="540"/>
- </Columns>
- <Rows>
- <Row size="24" band="head"/>
- <Row size="24"/>
- </Rows>
- <Band id="head">
- <Cell/>
- <Cell col="1" text="적용일자"/>
- <Cell col="2" text="부서"/>
- <Cell col="3" text="물품코드"/>
- <Cell col="4" text="물품명"/>
- <Cell col="5" text="내용"/>
- </Band>
- <Band id="body">
- <Cell celltype="head"/>
- <Cell col="1" displaytype="date" edittype="date" text="bind:valifromdd" calendardisplaynulltype="none"/>
- <Cell col="2" text="bind:cdnm"/>
- <Cell col="3" text="bind:cmt1"/>
- <Cell col="4" text="bind:cmt2"/>
- <Cell col="5" displaytype="text" edittype="textarea" text="bind:detldesc" wordwrap="word" autosizerow="limitmin"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Button id="btn_addRow" taborder="2" text="행추가" class="btn2" position="absolute 1027 1 1080 21" anchor="default" onclick="group5_Div00_btn_addRow_onclick"/>
- <Button id="btn_grddel" taborder="3" text="행삭제" class="btn2" position="absolute 1082 1 1135 21" anchor="default" onclick="group5_Div00_btn_grddel_onclick"/>
- <Button id="btn_save" taborder="4" text="저장" class="btn4" position="absolute 1137 1 1193 21" anchor="default" onclick="group5_Div00_btn_save_onclick"/>
- <Button id="btn_expand" taborder="5" text="확대" class="btn8" position="absolute 972 1 1025 21" onclick="group5_Div00_btn_expand_onclick" anchor="default"/>
- </Layout>
- </Layouts>
- </Div>
- </Layout>
- </Layouts>
- </Div>
- <Static id="caption6" text="진료재료 취소 현황" class="tit_1" position="absolute 0 0 148 25"/>
- <Combo id="Combo00" taborder="1" text="Combo00" position="absolute 456 5 556 25" visible="false" datacolumn="cdnm" codecolumn="cdid"/>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_send_searchinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false" oncolumnchanged="ds_send_searchinfo_oncolumnchanged">
- <ColumnInfo>
- <Column id="instcd" type="STRING" size="256"/>
- <Column id="acptddfr" type="STRING" size="256"/>
- <Column id="acptddto" type="STRING" size="256"/>
- <Column id="sumcnt" type="STRING" size="256"/>
- <Column id="reqflag" type="STRING" size="256"/>
- <Column id="prcpdeptcd" type="STRING" size="256"/>
- <Column id="prcpdeptnm" type="STRING" size="256"/>
- <Column id="goodcd" type="STRING" size="256"/>
- <Column id="goodnm" type="STRING" size="256"/>
- <Column id="wareflag" type="STRING" size="256"/>
- <Column id="wareflagarr" type="STRING" size="256"/>
- <Column id="deptflag" type="STRING" size="256"/>
- <Column id="ignoreset" type="STRING" size="256"/>
- <Column id="dayflag" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="instcd"/>
- <Col id="acptddfr"/>
- <Col id="acptddto"/>
- <Col id="sumcnt">0</Col>
- <Col id="reqflag"/>
- <Col id="prcpdeptcd"/>
- <Col id="prcpdeptnm"/>
- <Col id="goodcd"/>
- <Col id="goodnm"/>
- <Col id="wareflag"/>
- <Col id="wareflagarr"/>
- <Col id="deptflag"/>
- <Col id="ignoreset">ignore</Col>
- <Col id="dayflag"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="returngoodlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_init_erprcpdeptlist_returndeptlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="deptcd" type="STRING" size="256"/>
- <Column id="deptnm" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="deptcd">2280200000,2280230000,2500000000,3050135010</Col>
- <Col id="deptnm">[전체] 응급의료센터</Col>
- </Row>
- <Row>
- <Col id="deptcd">2280200000</Col>
- <Col id="deptnm">응급의료센터</Col>
- </Row>
- <Row>
- <Col id="deptcd">2280230000</Col>
- <Col id="deptnm">응급의료센터(EICU)</Col>
- </Row>
- <Row>
- <Col id="deptcd">2500000000</Col>
- <Col id="deptnm">응급의료센터(응급실)</Col>
- </Row>
- <Row>
- <Col id="deptcd">3050135010</Col>
- <Col id="deptnm">응급의료센터(응급입원실)</Col>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_combo_number" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_temp" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="viewzeroqty" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- <Dataset id="ds_init_deptlist_returndeptlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_combo_redata" 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>
- </Dataset>
- <Dataset id="ds_grd_returngoodlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false" oncolumnchanged="ds_grd_returngoodlist_oncolumnchanged"/>
- <Dataset id="ds_main_list_returngoodlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_main_list_searchinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_chk_wareflag" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_main_list_returndaylist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_main_list_returndetaillist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_temp_sendpopup" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_returnempllist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_temp_printnode_list" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_temp_printnode" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_printsend" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_send_reqdata" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false" oncolumnchanged="ds_send_reqdata_oncolumnchanged">
- <ColumnInfo>
- <Column id="instcd" type="STRING" size="256"/>
- <Column id="cdgrupid" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- <Dataset id="ds_purrscmlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="instcd" type="STRING" size="256"/>
- <Column id="cdgrupid" type="STRING" size="256"/>
- <Column id="valifromdd" type="STRING" size="256"/>
- <Column id="valitodd" type="STRING" size="256"/>
- <Column id="detldesc" type="STRING" size="256"/>
- <Column id="useyn" type="STRING" size="256"/>
- <Column id="dispseq" type="STRING" size="256"/>
- <Column id="cdid" type="STRING" size="256"/>
- <Column id="cmt1" type="STRING" size="256"/>
- <Column id="cdnm" type="STRING" size="256"/>
- <Column id="cmt2" type="STRING" size="256"/>
- </ColumnInfo>
- </Dataset>
- </Objects>
- <Bind>
- <BindItem id="item0" compid="group5.grp_key.rbo_deptflag" propid="value" datasetid="ds_send_searchinfo" columnid="deptflag"/>
- <BindItem id="item1" compid="group5.grp_key.cmb_instcd_search" propid="value" datasetid="ds_send_searchinfo" columnid="instcd"/>
- <BindItem id="item2" compid="group5.grp_key.cmb_prcpdeptcd_sub" propid="value" datasetid="ds_send_searchinfo" columnid="prcpdeptcd"/>
- <BindItem id="item3" compid="group5.grp_key.cmb_prcpdeptcd" propid="value" datasetid="ds_send_searchinfo" columnid="prcpdeptcd"/>
- <BindItem id="item4" compid="group5.grp_key.ipt_acptddfr" propid="value" datasetid="ds_send_searchinfo" columnid="acptddfr"/>
- <BindItem id="item5" compid="group5.grp_key.cmb_sumcnt" propid="value" datasetid="ds_send_searchinfo" columnid="sumcnt"/>
- <BindItem id="item6" compid="group5.grp_key.ipt_goodcd_search" propid="value" datasetid="ds_send_searchinfo" columnid="goodcd"/>
- <BindItem id="item7" compid="group5.grp_key.ipt_goodnm_search" propid="value" datasetid="ds_send_searchinfo" columnid="goodnm"/>
- <BindItem id="item8" compid="group5.grp_key.ipt_prcpdeptcd" propid="value" datasetid="ds_send_searchinfo" columnid="prcpdeptcd"/>
- <BindItem id="item9" compid="group5.grp_key.chk_ignoreset" propid="value" datasetid="ds_send_searchinfo" columnid="ignoreset"/>
- <BindItem id="item10" compid="group5.grp_key.chk_viewZeroqty" propid="value" datasetid="ds_temp" columnid="viewzeroqty"/>
- <BindItem id="item11" compid="group5.out_searchtime" propid="value" datasetid="ds_main_list_searchinfo" columnid="searchtime"/>
- <BindItem id="item12" compid="group5.grp_key.ipt_prcpdeptnm" propid="value" datasetid="ds_send_searchinfo" columnid="prcpdeptnm"/>
- </Bind>
- <Script type="xscript4.0"><![CDATA[/***************************************************************************************
- * System Name :
- * Job Name :
- * Creator :
- * Make Date : 2017-06-19
- * Description :
- *---------------------------------------------------------------------------------------
- * Modify Date Modifier Modify Description
- *---------------------------------------------------------------------------------------
- * 2017-06-19 Live Converter TF->XP
- *
- *---------------------------------------------------------------------------------------
- ****************************************************************************************/
- include "com_commonxp::comm_main.xjs";
- include "mis_miscommonxp::MIS.xjs";
- include "mis_miscommonxp::misMemo.xjs";
- include "mis_miscommonxp::RSZ001.xjs";
- include "mis_humtrafactmngtxp::RPB001.xjs";
- include "mis_educationmngtxp::RPS001.xjs";
- var arErrorCode = new HashArray();
- function SMRSD07400_oninit(obj:Form, e:InitEventInfo)
- {
- frmf_initForm(obj); //폼 초기화
- grdf_setRowTypeIcon(group5.switch1.cse_returngoodcase.grd_returngoodlist, 1);
- grdf_setRowTypeIcon(group5.switch1.cse_divgoodcase.grd_divgoodlist, 1);
- grdf_setRowTypeIcon(group5.Div00.grd_purrscmlist, 0);
- }
- function SMRSD07400_onload(obj:Form, e:LoadEventInfo)
- {
- fInitialize(); // 화면 Control을 초기화한다
- }
- function fn_wareflag(){
-
- var getData = String(group5.grp_key.chk_wareflag.getData()).replace(","," ");
- ds_send_searchinfo.setColumn(0, "wareflagarr", getData);
-
- var bfwareflag = ds_temp.getColumn(0, "bfwareflag");
- var dsplflag = getData;
- if (utlf_isSearchString(bfwareflag, 'A')){
- ds_send_searchinfo.setColumn(0, "wareflagarr", dsplflag.replace("A", ""));
- }else{
- dsplflagArr = utlf_transNullToEmpty(dsplflag).split(",");
- for (var i = 0; i < dsplflagArr.length; i++){
- if (dsplflagArr[i] == "A"){
- ds_send_searchinfo.setColumn(0, "wareflagarr", "A");
- break;
- }
- }
- }
- dsf_makeValue(ds_temp, "bfwareflag", "string", ds_send_searchinfo.getColumn(0, "wareflagarr"));
- }
- function fInitialize()
- {
- if(sysf_getUserInfo("dutplceinstcd") == "032") {
- group5.grp_key.cap_acptddsearch.text = "집계일자 :";
- }
- //Combo00
- //부서구분 공통코드 ID
- var deptflagGRID = sysf_getUserInfo("dutplceinstcd") + "R0029";
-
- var pcdgrupid_list = "C0048,R0450,030R0034," + deptflagGRID;
- var pcontrol_name_list = "group5.grp_key.cmb_instcd_search,Combo00,group5.switch1.cse_returngoodcase.grd_returngoodlist.erprcpflag,group5.grp_key.rbo_deptflag";
- misfComboComCdListMulti(pcdgrupid_list,pcontrol_name_list);
- var copyData = Combo00.innerdataset;
- ds_chk_wareflag.copyData(eval(copyData));
-
- var sProp = "col=3,row=2,cellspacing=2,vcellspacing=0,itemWidth=-1,itemHeight=19,overflow='visible'";
- group5.grp_key.chk_wareflag.setInitComp(sProp, ds_chk_wareflag,"cdid","cdnm", "fn_wareflag");
-
- frmf_addComboItem("group5.grp_key.rbo_deptflag", "전체", "", "above");
- group5.grp_key.rbo_deptflag.value = "";
-
- misfComboCopyItemSet("group5.grp_key.rbo_deptflag", "" , "group5.switch1.cse_returngoodcase.grd_returngoodlist", "deptflag");
- misfComboCopyItemSet("group5.grp_key.rbo_deptflag", "" , "group5.switch1.cse_divgoodcase.grd_divgoodlist", "deptflag");
-
- ds_send_searchinfo.setColumn(0, "instcd", sysf_getUserInfo("dutplceinstcd")); // 기관 설정
- ds_send_reqdata.setColumn(0, "instcd", sysf_getUserInfo("dutplceinstcd"));
- ds_send_reqdata.setColumn(0, "cdgrupid", "R0006");
-
- if(sysf_getUserInfo("dutplceinstcd") == "031" || sysf_getUserInfo("dutplceinstcd") == "033" ) {
- ds_send_searchinfo.setColumn(0, "wareflagarr", "2");
- var getData = ds_send_searchinfo.getColumn(0, "wareflagarr").split(" ");
- group5.grp_key.chk_wareflag.setData(getData,null,false);
- }
-
- if(sysf_getUserInfo("dutplcecd") == "3080000000" || sysf_getUserInfo("dutplcecd") == "4020334000"
- || sysf_getUserInfo("dutplcecd") == "3360000000") { // 진료재료 파트인 경우 수작업 반납등록, 전부서 조회 가능
-
- var oParam = {};
- oParam.id = "TRRSD07402";
- oParam.service = "reqapp.ReqMngt";
- oParam.method = "reqGetReturnDeptList";
- oParam.inds = "req=ds_send_searchinfo";
- oParam.outds = "ds_init_erprcpdeptlist_returndeptlist=returndeptlist";
- oParam.async = false;
- oParam.callback = "cf_TRRSD07402";
- tranf_submit(oParam);
-
- if(arErrorCode.pop("TRRSD07402") > -1){
- if(ds_init_erprcpdeptlist_returndeptlist.rowcount > 0)
- frmf_addComboItem("group5.grp_key.cmb_prcpdeptcd", "[전체]", "", "above");
- group5.grp_key.cmb_prcpdeptcd.value = "";
- }
- group5.grp_key.rbo_deptflag.visible = true;
- group5.grp_key.rbo_deptflag.enable = true;
- group5.grp_key.cmb_prcpdeptcd.visible = true;
- group5.grp_key.cmb_prcpdeptcd.enable = true;
- group5.switch1.cse_returngoodcase.btn_save.enable = true;
- } else {
- group5.grp_key.rbo_deptflag.visible = false;
- //group5.grp_key.cmb_prcpdeptcd.visible = false;
-
- ds_init_erprcpdeptlist_returndeptlist.filter("deptcd == '" + sysf_getUserInfo("dutplcecd") + "'");
- var chkNode = ds_init_erprcpdeptlist_returndeptlist.rowcount;
- ds_init_erprcpdeptlist_returndeptlist.filter("");
-
- //var chkNode = ds_init_erprcpdeptlist_returndeptlist.selectNodes("/root/init/erprcpdeptlist/returndeptlist[deptcd='" + getUserInfo("dutplcecd") + "']");
- if(sysf_getUserInfo("dutplceinstcd") == "031" && chkNode > 0) {
- group5.grp_key.cmb_prcpdeptcd_sub.visible = true;
- group5.grp_key.cmb_prcpdeptcd_sub.index = 0;
- } else if(sysf_getUserInfo("dutplceinstcd") == "033" && chkNode > 0) {
- group5.grp_key.cmb_prcpdeptcd_sub.visible = true;
- group5.grp_key.cmb_prcpdeptcd_sub.index = 0;
- } else {
- group5.grp_key.ipt_prcpdeptnm.visible = true;
- group5.grp_key.cmb_prcpdeptcd.value = sysf_getUserInfo("dutplcecd");
- group5.grp_key.ipt_prcpdeptcd.value = sysf_getUserInfo("dutplcecd");
- group5.grp_key.ipt_prcpdeptnm.value = sysf_getUserInfo("dutplcenm");
- }
- group5.switch1.cse_returngoodcase.grd_returngoodlist.setFormatColProperty(group5.switch1.cse_returngoodcase.grd_returngoodlist.getBindCellIndex("body", "new_rtnqty"), "size", 0);
- group5.switch1.cse_returngoodcase.grd_returngoodlist.setFormatColProperty(group5.switch1.cse_returngoodcase.grd_returngoodlist.getBindCellIndex("body", "aftqty"), "size", 0);
- }
-
- //일자조회
- ds_send_searchinfo.setColumn(0, "dayflag", "day");
- var oParam = {};
- oParam.id = "TRRSD07403";
- oParam.service = "reqapp.ReqMngt";
- oParam.method = "reqGetReturnGoodNumber";
- oParam.inds = "req=ds_send_searchinfo";
- oParam.outds = "ds_combo_number=number";
- oParam.async = false;
- tranf_submit(oParam);
-
- var value = ds_combo_number.getColumn(0, "value");
- ds_send_searchinfo.setColumn(0, "acptddfr", value);
- //차수조회
- ds_send_searchinfo.setColumn(0, "dayflag", "number");
-
- var oParam = {};
- oParam.id = "TRRSD07403";
- oParam.service = "reqapp.ReqMngt";
- oParam.method = "reqGetReturnGoodNumber";
- oParam.inds = "req=ds_send_searchinfo";
- oParam.outds = "ds_combo_number=number";
- oParam.async = false;
- tranf_submit(oParam);
-
- value = ds_combo_number.getColumn(0, "value");
-
- ds_combo_redata.clearData();
- for(var i = 1; i <= value ; i++){
- var label = i + "차";
- frmf_addComboItem( "group5.grp_key.cmb_sumcnt", label, i, "above");
- }
- group5.grp_key.cmb_sumcnt.index = 0;
-
- group5_grp_key_btn_search_onclick();
- }
- function cf_TRRSD07402(sSvcId, nErrorCode, sErrorMsg) {
- arErrorCode.push(sSvcId, nErrorCode);
- }
- function group5_grp_key_btn_search_onclick(obj:Button, e:ClickEventInfo)
- {
- var oParam = {};
- oParam.id = "TRRSD07401";
- oParam.service = "reqapp.ReqMngt";
- oParam.method = "reqGetReturnGoodList";
- oParam.inds = "req=ds_send_searchinfo";
- oParam.outds = "ds_main_list_searchinfo=searchinfo ds_main_list_returngoodlist=returngoodlist ds_main_list_returndetaillist=returndetaillist ds_main_list_returndaylist=returndaylist"; //3 // 2 // 4
- oParam.async = false;
- oParam.callback = "cf_TRRSD07401";
- tranf_submit(oParam);
-
- if( utlf_isNull(ds_main_list_returngoodlist.getColumnInfo("sumcnt")) ){
- ds_main_list_returngoodlist.addColumn("sumcnt", "string");
- }
-
- if(arErrorCode.pop("TRRSD07401") > -1){
- if(group5.grp_key.chk_viewZeroqty.value == "true") {
- ds_grd_returngoodlist.clearData();
- ds_main_list_returngoodlist.filter("divuseyn == 'N'");
- ds_grd_returngoodlist.copyData(ds_main_list_returngoodlist, true);
- ds_main_list_returngoodlist.filter("");
- } else {
- ds_grd_returngoodlist.clearData();
- ds_main_list_returngoodlist.filter("divuseyn=='N' && aftqty!=0");
- ds_grd_returngoodlist.copyData(ds_main_list_returngoodlist, true);
- ds_main_list_returngoodlist.filter("");
- }
-
- ds_main_list_returngoodlist.filter("divuseyn=='Y'");
- ds_main_list_returndetaillist.filter("divuseyn=='Y'");
- ds_main_list_returndaylist.filter("divuseyn=='Y'");
- }
-
- var oParam = {};
- oParam.id = "TRRWC01401";
- oParam.service = "purcbaseapp.PurcBaseMngt";
- oParam.method = "reqGetPurRscmList";
- oParam.inds = "req=ds_send_reqdata";
- oParam.outds = "ds_purrscmlist=purrscmlist";
- oParam.async = false;
- tranf_submit(oParam);
- }
- function cf_TRRSD07401(sSvcId, nErrorCode, sErrorMsg) {
- arErrorCode.push(sSvcId, nErrorCode);
- }
-
- function group5_Tab00_onchanged(obj:Tab, e:TabIndexChangeEventInfo)
- {
- if(group5.Tab00.tabindex == 0){
- group5.switch1.tabindex = 0;
- }else if(group5.Tab00.tabindex == 1){
- group5.switch1.tabindex = 2;
- }
- }
- function group5_switch1_cse_returngoodcase_btn_print1_onclick(obj:Button, e:ClickEventInfo)
- {
- ds_temp_printnode_list.clearData();
-
- ds_main_list_returngoodlist.filter("divuseyn=='N' && aftqty !=0");
- ds_temp_printnode_list.copyData(ds_main_list_returngoodlist, true);
- ds_main_list_returngoodlist.filter("");
- dsf_makeValue(ds_temp_printnode, "searchtime", "string", ds_main_list_searchinfo.getColumn(0, "searchtime"));
- if(ds_temp_printnode_list.rowcount > 0){
-
- //미리보기출력
- var objDOM = rptf_createDOM();
- rptf_setNodeListToDOM(objDOM, "root/temp/printnode", ds_temp_printnode); // 데이터셋 1
- rptf_setNodeListToDOM(objDOM, "root/temp/printnode/list", ds_temp_printnode_list); // 데이터셋 2
-
-
- var objParam = new Object();
- objParam.xml_data_XML1 = objDOM.documentElement.source; // 최상의노드 XML 스트링 추출
-
- var option = "open=1;save=1;directprint=0;print=1;zoom=0;";
- rptf_exeReportPreview30(["RPRSD07201"],[objParam], option);
- //exeReportPreview("RPRSD07201", "XMLSTR");
- }
- }
- function ds_grd_returngoodlist_oncolumnchanged(obj:Dataset, e:DSColChangeEventInfo)
- {
- var currentRow = ds_grd_returngoodlist.rowposition;
- var rtnqty = ds_grd_returngoodlist.getColumn(currentRow, "rtnqty");
- var new_rtnqty = ds_grd_returngoodlist.getColumn(currentRow, "new_rtnqty");
-
- if(parseFloat(rtnqty) - parseFloat(new_rtnqty) < 0) {
- alert("반납수량은 미반납수량을 초과 할 수 업습니다.");
- ds_grd_returngoodlist.setColumn(currentRow, "new_rtnqty", "");
- ds_grd_returngoodlist.setColumn(currentRow, "aftqty", "");
-
- ds_grd_returngoodlist.enableevent = false;
- ds_grd_returngoodlist.updatecontrol = false;
- ds_grd_returngoodlist.setRowType(currentRow, 1);
- ds_grd_returngoodlist.updatecontrol = true;
- ds_grd_returngoodlist.enableevent = true;
- return;
- }
-
- if(utlf_isNull(new_rtnqty) || parseFloat(new_rtnqty) <= 0) {
- ds_grd_returngoodlist.setColumn(currentRow, "new_rtnqty", "");
- ds_grd_returngoodlist.setColumn(currentRow, "aftqty", "");
-
- ds_grd_returngoodlist.enableevent = false;
- ds_grd_returngoodlist.updatecontrol = false;
- ds_grd_returngoodlist.setRowType(currentRow, 1);
- ds_grd_returngoodlist.updatecontrol = true;
- ds_grd_returngoodlist.enableevent = true;
- } else {
- ds_grd_returngoodlist.setColumn(currentRow, "aftqty", parseFloat(rtnqty) - parseFloat(new_rtnqty));
-
- ds_grd_returngoodlist.enableevent = false;
- ds_grd_returngoodlist.updatecontrol = false;
- ds_grd_returngoodlist.setRowType(currentRow, 2);
- ds_grd_returngoodlist.updatecontrol = true;
- ds_grd_returngoodlist.enableevent = true;
- }
- }
- function group5_switch1_cse_returngoodcase_grd_returngoodlist_oncelldblclick(obj:Grid, e:GridClickEventInfo)
- {
- if((obj.getBindCellIndex("body", "rtnqty") >= obj.currentcol) &&
- (obj.getBindCellIndex("body", "goodcd") <= obj.currentcol)) {
- fDetailSearchPopup(group5.switch1.cse_returngoodcase.grd_returngoodlist,"notrtn");
- group5_grp_key_btn_search_onclick();
- }else if(obj.getBindCellIndex("body", "new_rtnqty") == obj.currentcol){
- fDetailSearchPopup(group5.switch1.cse_returngoodcase.grd_returngoodlist,"notrtn");
- group5_grp_key_btn_search_onclick();
- }
- }
- function fDetailSearchPopup(target, flag) {
- if(target.name == "grd_returngoodlist"){
- var dataset:Dataset;
- dataset = ds_grd_returngoodlist;
- }else if(target.name == "grd_divgoodlist"){
- var dataset:Dataset;
- dataset = ds_main_list_returngoodlist;
- }
-
- if(flag == "notrtn"){
- var sendNode:Dataset;
- sendNode = ds_temp_sendpopup;
-
- if(target.currentcol >= target.getBindCellIndex("body", "goodcd") && target.currentcol <= target.getBindCellIndex("body", "new_rtnqty")){
- sendNode.clearData();
-
- dsf_makeValue(sendNode, "instcd", "string", dataset.getColumn(dataset.rowposition, "instcd"));
- dsf_makeValue(sendNode, "prcpdeptcd", "string", dataset.getColumn(dataset.rowposition, "prcpdeptcd"));
- dsf_makeValue(sendNode, "prcpdeptnm", "string", dataset.getColumn(dataset.rowposition, "prcpdeptnm"));
- dsf_makeValue(sendNode, "goodcd", "string", dataset.getColumn(dataset.rowposition, "goodcd"));
- dsf_makeValue(sendNode, "erprcpflag", "string", dataset.getColumn(dataset.rowposition, "erprcpflag"));
- dsf_makeValue(sendNode, "fpopup", "string", "1");
-
- if(target == "grd_divgoodlist") {
- dsf_makeValue(sendNode, "erprcpflag", "string", "A");
- }
-
- dsf_makeValue(sendNode, "acptddfr", "string", dataset.getColumn(dataset.rowposition, "genracptdd"));
- dsf_makeValue(sendNode, "acptddto", "string", dataset.getColumn(dataset.rowposition, "lastacptdd"));
- dsf_makeValue(sendNode, "genrsumcnt", "string", dataset.getColumn(dataset.rowposition, "genrsumcnt"));
- dsf_makeValue(sendNode, "lastsumcnt", "string", dataset.getColumn(dataset.rowposition, "lastsumcnt"));
- dsf_makeValue(sendNode, "sumcnt", "string", dataset.getColumn(dataset.rowposition, "sumcnt"));
- dsf_makeValue(sendNode, "facptddfr", "string", group5.grp_key.ipt_acptddfr.value);
- dsf_makeValue(sendNode, "fsumcnt", "string", group5.grp_key.cmb_sumcnt.value);
-
- var objArg = new Object();
- objArg.arg_ds_temp = sendNode;
- frmf_modal("SMRSD07500","SMRSD07500", objArg, "", "", "", "", "", "", "", "", "", "M");
- }
- }else if(flag == "rtn"){
- var sendNode:Dataset;
- sendNode = ds_temp_sendpopup;
- sendNode.clearData();
-
- dsf_makeValue(sendNode, "instcd", "string", dataset.getColumn(dataset.rowposition, "instcd"));
- dsf_makeValue(sendNode, "prcpdeptcd", "string", dataset.getColumn(dataset.rowposition, "prcpdeptcd"));
- dsf_makeValue(sendNode, "prcpdeptnm", "string", dataset.getColumn(dataset.rowposition, "prcpdeptnm"));
- dsf_makeValue(sendNode, "goodcd", "string", dataset.getColumn(dataset.rowposition, "goodcd"));
- dsf_makeValue(sendNode, "erprcpflag", "string", dataset.getColumn(dataset.rowposition, "erprcpflag"));
- dsf_makeValue(sendNode, "fpopup", "string", "2");
-
- dsf_makeValue(sendNode, "acptddfr", "string", group5.grp_key.ipt_acptddfr.value);
- dsf_makeValue(sendNode, "sumcnt", "string", group5.grp_key.cmb_sumcnt.value);
-
- var objArg = new Object();
- objArg.arg_ds_temp = sendNode;
- frmf_modal("SMRSD07500","SMRSD07500", objArg, "", "", "", "", "", "", "", "", "", "M");
- }
- }
- function group5_switch1_cse_divgoodcase_grd_divgoodlist_oncelldblclick(obj:Grid, e:GridClickEventInfo)
- {
- fDetailSearchPopup(group5.switch1.cse_divgoodcase.grd_divgoodlist, "notrtn");
- }
- function group5_switch1_cse_divgoodcase_button1_onclick(obj:Button, e:ClickEventInfo)
- {
- grdf_exportExcel(group5.switch1.cse_divgoodcase.grd_divgoodlist, "분할처방 사용물품 미불출 내역_" + utlf_getCurrentDate(), "sheetname1" , true, "" , "" , true);
- }
- function group5_switch1_cse_returngoodcase_button6_onclick(obj:Button, e:ClickEventInfo)
- {
- var oParam = {};
- oParam.id = "TRRSD07404";
- oParam.service = "reqapp.ReqMngt";
- oParam.method = "reqGetReturnEmplList";
- oParam.inds = "req=ds_send_searchinfo";
- oParam.outds = "ds_returnempllist=returnempllist";
- oParam.async = false;
- tranf_submit(oParam);
-
- dsf_makeValue(ds_printsend, "nowtime", "string", utlf_getCurrentDateTime().substr(0,8) + utlf_getCurrentDateTime().substr(9,6));
-
- //미리보기출력
- var objDOM = rptf_createDOM();
- rptf_setNodeListToDOM(objDOM, "root/printdata/returnempllist", ds_returnempllist); // 데이터셋 1
-
-
- var objParam = new Object();
- objParam.xml_data_XML1 = objDOM.documentElement.source; // 최상의노드 XML 스트링 추출
-
- objParam.nowtime = utlf_getCurrentDateTime().substr(0,8) + utlf_getCurrentDateTime().substr(9,6);
-
- var option = "open=1;save=1;directprint=0;print=1;zoom=0;";
- rptf_exeReportPreview30(["RPRSD07203"],[objParam], option);
- //exeReportPreview("RPRSD07203", "XMLSTR","/root/printsend");
- }
- function group5_switch1_cse_returngoodcase_btn_excel_onclick(obj:Button, e:ClickEventInfo)
- {
- grdf_exportExcel(group5.switch1.cse_returngoodcase.grd_returngoodlist, "물품 처방집계 미반납 내역_" + utlf_getCurrentDate(), "sheetname1" , true, "" , "" , true);
- }
- function group5_grp_key_ipt_goodcd_search_onkeydown(obj:Edit, e:KeyEventInfo)
- {
- if(e.keycode == 13){
- obj.updateToDataset();
- group5_grp_key_btn_search_onclick();
- }
- }
- function ds_send_searchinfo_oncolumnchanged(obj:Dataset, e:DSColChangeEventInfo)
- {
- if( e.columnid == "acptddfr" ){
- ds_send_searchinfo.setColumn(0, "dayflag", "number");
-
- var oParam = {};
- oParam.id = "TRRSD07403";
- oParam.service = "reqapp.ReqMngt";
- oParam.method = "reqGetReturnGoodNumber";
- oParam.inds = "req=ds_send_searchinfo";
- oParam.outds = "ds_combo_number=number";
- oParam.async = false;
- tranf_submit(oParam);
-
- var value = ds_combo_number.getColumn(0, "value");
- ds_combo_redata.clearData();
- for(var i = 1 ; i <= value ; i++){
- var label = i + "차";
- frmf_addComboItem("group5.grp_key.cmb_sumcnt", label, i, "above");
- }
- group5.grp_key.cmb_sumcnt.index = 0;
- }
- }
- function group5_Div00_btn_expand_onclick(obj:Button, e:ClickEventInfo)
- {
- if( obj.text == "확대" ){
- obj.text = "축소";
- group5.Div00.position = "absolute 0 528 1195 759";
- group5.Div00.grd_purrscmlist.position = "absolute 0 26 1193 229";
- }else{
- obj.text = "확대";
- group5.Div00.grd_purrscmlist.position = "absolute 0 26 1193 129";
- group5.Div00.position = "absolute 0 628 1195 759";
- }
- }
- function group5_switch1_cse_returngoodcase_grd_returngoodlist_oncellclick(obj:Grid, e:GridClickEventInfo)
- {
- if( e.col == 6 ){
- if( ds_purrscmlist.rowcount == 1 && utlf_isNull(ds_purrscmlist.getColumn(0, "valifromdd")) ){
- ds_purrscmlist.setColumn(0, "valifromdd", utlf_getCurrentDate());
- }
- ds_purrscmlist.setColumn(ds_purrscmlist.rowposition, "cdnm", ds_grd_returngoodlist.getColumn(ds_grd_returngoodlist.rowposition, "prcpdeptnm"));
- ds_purrscmlist.setColumn(ds_purrscmlist.rowposition, "cmt1", ds_grd_returngoodlist.getColumn(ds_grd_returngoodlist.rowposition, "goodcd"));
- ds_purrscmlist.setColumn(ds_purrscmlist.rowposition, "cmt2", ds_grd_returngoodlist.getColumn(ds_grd_returngoodlist.rowposition, "goodnm"));
- }
- }
- function group5_switch1_cse_divgoodcase_grd_divgoodlist_oncellclick(obj:Grid, e:GridClickEventInfo)
- {
- if( e.col == 5 ){
- if( ds_purrscmlist.rowcount == 1 && utlf_isNull(ds_purrscmlist.getColumn(0, "valifromdd")) ){
- ds_purrscmlist.setColumn(0, "valifromdd", utlf_getCurrentDate());
- }
- ds_purrscmlist.setColumn(ds_purrscmlist.rowposition, "cdnm", ds_main_list_returngoodlist.getColumn(ds_main_list_returngoodlist.rowposition, "prcpdeptnm"));
- ds_purrscmlist.setColumn(ds_purrscmlist.rowposition, "cmt1", ds_main_list_returngoodlist.getColumn(ds_main_list_returngoodlist.rowposition, "goodcd"));
- ds_purrscmlist.setColumn(ds_purrscmlist.rowposition, "cmt2", ds_main_list_returngoodlist.getColumn(ds_main_list_returngoodlist.rowposition, "goodnm"));
- }
- }
- function group5_Div00_btn_addRow_onclick(obj:Button, e:ClickEventInfo)
- {
- var irow = ds_purrscmlist.addRow();
-
- ds_purrscmlist.setColumn(irow, "cdgrupid", ds_purrscmlist.getColumn(irow-1, "cdgrupid"));
- ds_purrscmlist.setColumn(irow, "valifromdd", utlf_getCurrentDate());
- ds_purrscmlist.setColumn(irow, "valitodd", "99991231");
- ds_purrscmlist.setColumn(irow, "useyn", "Y");
- ds_purrscmlist.setColumn(irow, "instcd", sysf_getUserInfo("dutplceinstcd"));
-
- var tmpcdid = Number(ds_purrscmlist.getColumn(irow-1, "cdid")) + 1;
- ds_purrscmlist.setColumn(irow, "cdid", tmpcdid.toString().getLeftPad(4,"0"));
- }
- function group5_Div00_btn_grddel_onclick(obj:Button, e:ClickEventInfo)
- {
- var nCnt = 0;
-
- for( var i=0 ; i<ds_purrscmlist.rowcount ; i++ ){
- if( ds_purrscmlist.getRowType(i) == 1 || ds_purrscmlist.getRowType(i) == 2 || ds_purrscmlist.getRowType(i) == 4 ){
- nCnt++;
- }
- }
-
- if( ds_purrscmlist.rowcount == 1 || nCnt == 1 ){
- if( sysf_messageBox("최소 한행은 필수로 존재해야 합니다.\n\n데이터를", "Q001") == 6 ){
- ds_purrscmlist.setColumn(ds_purrscmlist.rowposition, "valifromdd", "");
- ds_purrscmlist.setColumn(ds_purrscmlist.rowposition, "cdnm", "");
- ds_purrscmlist.setColumn(ds_purrscmlist.rowposition, "cmt1", "");
- ds_purrscmlist.setColumn(ds_purrscmlist.rowposition, "cmt2", "");
- ds_purrscmlist.setColumn(ds_purrscmlist.rowposition, "detldesc", "");
- return;
- }else{
- return;
- }
- }
-
- if( ds_purrscmlist.getRowType(ds_purrscmlist.rowposition) == 2 )
- {
- ds_purrscmlist.deleteRow(ds_purrscmlist.rowposition);
- }
- else
- {
- ds_purrscmlist.enableevent = false;
- ds_purrscmlist.updatecontrol = false;
- ds_purrscmlist.setRowType(ds_purrscmlist.rowposition, 8);
- ds_purrscmlist.updatecontrol = true;
- ds_purrscmlist.enableevent = true;
- }
- }
- function group5_Div00_btn_save_onclick(obj:Button, e:ClickEventInfo)
- {
- ds_purrscmlist.updatecontrol = false;
- grdf_setStatusColumn(ds_purrscmlist, "status");
- ds_purrscmlist.updatecontrol = true;
-
- var oParam = {};
- oParam.id = "TXRWC02201";
- oParam.service = "purcbaseapp.PurcBaseMngt";
- oParam.method = "reqExePurRscm";
- oParam.inds = "req=ds_purrscmlist:A";
- oParam.outds = "";
- oParam.async = false;
- oParam.callback = "cf_TXRWC02201";
- tranf_submit(oParam);
-
- if( arErrorCode.pop("TXRWC02201") > -1 ){
- var oParam = {};
- oParam.id = "TRRWC01401";
- oParam.service = "purcbaseapp.PurcBaseMngt";
- oParam.method = "reqGetPurRscmList";
- oParam.inds = "req=ds_send_reqdata";
- oParam.outds = "ds_purrscmlist=purrscmlist";
- oParam.async = false;
- tranf_submit(oParam);
- }
- }
- function cf_TXRWC02201(sSvcId, nErrorCode, sErrorMsg) {
- arErrorCode.push(sSvcId, nErrorCode);
- }
- ]]></Script>
- </Form>
- </FDL>
|