1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SMPIC90000" position="absolute 0 0 1180 780" titletext="행위재료마스터화면" oninit="SMPIC90000_oninit" onload="SMPIC90000_onload">
- <Layouts>
- <Layout>
- <Div position="absolute 5 505 1177 775" id="import1" url="SMPIC90200_물품조회(행위재료).xfdl"/>
- <Shape id="roundrect1" type="roundrectangle" position="absolute 5 20 525 140"/>
- <Edit readonly="true" position="absolute 757 145 770 164" align="align:center middle;" id="opt_deptflagnm" visible="false" class="output"/>
- <Static text="부서" position="absolute 710 145 755 164" align="align:center middle;" id="caption18" class="cell_1" visible="false"/>
- <Button position="absolute 987 145 1051 164" id="btn_actend" class="btn2" taborder="17" visible="false" text="행위종료" onclick="btn_actend_onclick"/>
- <Button position="absolute 1054 145 1096 164" id="btn_del" class="btn2" taborder="15" visible="false" text="삭제" onclick="btn_del_onclick"/>
- <Shape position="absolute 100 190 1170 196" linetype="horizontal" id="line5" class="line_3"/>
- <Shape position="absolute 98 167 1173 168" linetype="vertical" id="line3" class="line_1"/>
- <Button position="absolute 765 471 845 493" id="btn_tmpsave" class="btn3" enable="false" taborder="8" visible="false" text="임시저장" onclick="btn_tmpsave_onclick"/>
- <Button position="absolute 1105 471 1173 493" id="btn_init" class="btn3" taborder="14" text="초기화" onclick="btn_init_onclick"/>
- <Static text="행위재료/약품 관리" position="absolute 5 0 155 21" id="caption1" class="tit_1"/>
- <Shape position="absolute 98 216 1173 217" linetype="vertical" id="line16" class="line_1"/>
- <Static text="행위재료/약품 리스트" position="absolute 5 149 182 165" id="caption21" class="tit_2"/>
- <Static text="행위처방코드 :" position="absolute 18 40 125 57" id="caption2" class="search_name"/>
- <Static text="시행부서 :" position="absolute 430 25 517 42" id="caption3" class="search_name" visible="false"/>
- <Edit position="absolute 125 39 250 58" align="align:left middle;" id="ipt_actcd" class="input_search" taborder="1" autoselect="true" onkeyup="ipt_actcd_onkeyup"/>
- <Edit position="absolute 455 40 472 59" id="ipt_actdeptcd" class="input_essential" taborder="11" visible="false" autoselect="true" onkeyup="ipt_actdeptcd_onkeyup"/>
- <Edit position="absolute 494 40 516 59" id="ipt_actdeptnm" visible="false" autoselect="true"/>
- <Button position="absolute 255 39 271 55" id="btn_actcd" class="icon_search" text="" onclick="btn_actcd_onclick"/>
- <Button position="absolute 475 40 491 56" id="btn_actdeptcd" class="icon_search" visible="false" text="" onclick="btn_actdeptcd_onclick"/>
- <Shape position="absolute 447 30 453 133" linetype="vertical" id="line1" class="line_4"/>
- <Button position="absolute 460 69 516 91" id="btn_actsearch" class="btn1" taborder="5" text="조회" onclick="btn_actsearch_onclick"/>
- <Button position="absolute 987 471 1043 493" id="btn_save" class="btn4" enable="false" taborder="13" text="저장" onclick="btn_save_onclick"/>
- <Static text="행위처방코드" position="absolute 100 172 185 191" align="align:center middle;" id="caption7" class="cell_1"/>
- <Edit readonly="true" position="absolute 188 172 296 191" align="align:center middle;" id="opt_actcd" class="output" style="align:center middle;"/>
- <Static text="시행부서" position="absolute 334 146 394 165" align="align:center middle;" id="caption8" class="cell_1" visible="false"/>
- <Edit readonly="true" position="absolute 398 146 418 165" align="align:center middle;" id="opt_actdeptnm" visible="false" class="output"/>
- <Static text="의사ID" position="absolute 422 146 467 165" align="align:center middle;" id="caption9" class="cell_1" visible="false" style="padding:0 0 0 3;"/>
- <Edit readonly="true" position="absolute 471 146 491 165" align="align:center middle;" id="opt_actprcpdrid" visible="false" class="output"/>
- <Static text="의사명" position="absolute 495 146 540 165" align="align:center middle;" id="caption10" class="cell_1" visible="false" style="padding:0 0 0 3;"/>
- <Edit readonly="true" position="absolute 544 146 564 165" align="align:center middle;" id="opt_actprcpdrnm" visible="false" class="output"/>
- <Static text="적용일자" position="absolute 100 195 185 214" align="align:center middle;" id="caption11" class="cell_1"/>
- <Static text="종료일자" position="absolute 302 195 387 214" align="align:center middle;" id="caption12" class="cell_1"/>
- <Calendar position="absolute 187 195 295 214" align="align:center middle;" id="opt_fromdd" mask="yyyy-mm-dd" style="align:center middle;"/>
- <Calendar readonly="true" position="absolute 390 195 498 214" align="align:center middle;" id="opt_todd" mask="yyyy-mm-dd" class="output" style="align:left middle;"/>
- <Grid position="absolute 100 220 1175 465" id="grd_actmaster" taborder="7" binddataset="ds_main_actmatrcdinfo_actmatrcddetllist" selecttype="multirow" cellsizebandtype="allband" cellsizingtype="col">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="20" band="left"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="87"/>
- <Column size="23"/>
- <Column size="194"/>
- <Column size="119"/>
- <Column size="70"/>
- <Column size="45"/>
- <Column size="114"/>
- <Column size="88"/>
- <Column size="69"/>
- <Column size="120"/>
- <Column size="120"/>
- <Column size="0"/>
- </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="의사id"/>
- <Cell col="5" text="부서코드"/>
- <Cell col="6" text="todd"/>
- <Cell col="7" text="fromdd"/>
- <Cell col="8" text="부서구분"/>
- <Cell col="9" colspan="2" text="물품코드" taborder="undefined"/>
- <Cell col="11" text="물품명"/>
- <Cell col="12" text="규격"/>
- <Cell col="13" text="단가"/>
- <Cell col="14" text="수량"/>
- <Cell col="15" text="모델"/>
- <Cell col="16" text="EDICD"/>
- <Cell col="17" text="수불단위"/>
- <Cell col="18" text="주거래처명"/>
- <Cell col="19" text="보조거래처명"/>
- <Cell col="20" text="임시저장상태"/>
- </Band>
- <Band id="body">
- <Cell celltype="head"/>
- <Cell col="1" text="bind:rowstat"/>
- <Cell col="2" text="bind:instcd"/>
- <Cell col="3" text="bind:actcd"/>
- <Cell col="4" text="bind:actprcpdrid"/>
- <Cell col="5" text="bind:actdeptcd"/>
- <Cell col="6" text="bind:todd"/>
- <Cell col="7" text="bind:fromdd"/>
- <Cell col="8" text="bind:deptflag"/>
- <Cell col="9" style="align:left;" text="bind:goodcd"/>
- <Cell col="10" text="bind:allsizespecid"/>
- <Cell col="11" style="align:left;" text="bind:goodnm"/>
- <Cell col="12" style="align:left;" text="bind:goodspec"/>
- <Cell col="13" displaytype="number" text="bind:goodunitcost" mask="#,###"/>
- <Cell col="14" displaytype="number" edittype="masknumber" text="bind:qty" mask="#,###.##"/>
- <Cell col="15" style="align:left;" text="bind:goodmodel"/>
- <Cell col="16" text="bind:edicd"/>
- <Cell col="17" text="bind:deliveunit"/>
- <Cell col="18" style="align:left;" text="bind:maincustlastsuplplcenm"/>
- <Cell col="19" style="align:left;" text="bind:suppcustnm"/>
- <Cell col="20" text="bind:tmpflag"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Button position="absolute 1046 471 1102 493" id="btn_rgst" class="btn4" taborder="12" text="등록" onclick="btn_rgst_onclick"/>
- <Static text="이력저장" id="caption6"/>
- <Button position="absolute 904 471 984 493" id="btn_histsave" class="btn4" taborder="9" text="이력저장" onclick="btn_histsave_onclick"/>
- <Shape position="absolute 5 494 1175 500" linetype="horizontal" id="line2" class="line_3"/>
- <Edit readonly="true" position="absolute 190 145 255 164" id="opt_actdeptcd" visible="false" class="output"/>
- <Button position="absolute 848 471 901 490" id="btn_rowdel" class="btn2" enable="false" taborder="10" text="행삭제" onclick="btn_rowdel_onclick"/>
- <Edit position="absolute 130 145 180 164" id="ipt_instcd" visible="false" autoselect="true"/>
- <Edit readonly="true" position="absolute 260 145 325 164" id="opt_savestatcd" visible="false" class="output"/>
- <Edit readonly="true" position="absolute 925 144 950 163" align="align:center middle;" id="opt_deptflag" visible="false" class="output"/>
- <Button position="absolute 1099 145 1174 164" id="btn_excel" class="btn5" taborder="16" text="Excel 저장" onclick="btn_excel_onclick"/>
- <Static text="수가명(한글)" position="absolute 302 172 387 191" align="align:center middle;" id="caption20" class="cell_1"/>
- <Edit readonly="true" position="absolute 390 172 720 191" align="align:left middle;" id="opt_hngnm" class="output"/>
- <Static text="수가명(영문)" position="absolute 728 172 813 191" align="align:center middle;" id="caption14" class="cell_1"/>
- <Edit readonly="true" position="absolute 815 172 1164 191" align="align:left middle;" id="opt_engnm" class="output"/>
- <Static text="수가명(한글) :" position="absolute 18 71 126 88" id="caption15" class="search_name"/>
- <Edit position="absolute 125 71 420 90" align="align:left middle;" id="ipt_actnm" class="input_search" taborder="3" autoselect="true" onkeydown="ipt_actnm_onkeydown"/>
- <Button position="absolute 210 103 226 119" id="button1" class="icon_search" text="" onclick="button1_onclick"/>
- <Static text="물 품 코 드 :" position="absolute 18 104 124 121" id="caption23" class="search_name"/>
- <Edit position="absolute 233 103 420 122" id="ipt_searchgoodnm" taborder="2" autoselect="true" enable="false" style=":disabled {align:center middle;}"/>
- <Edit position="absolute 125 103 205 122" align="align:left middle;" id="ipt_searchgoodcd" class="input_search" taborder="1" autoselect="true" onkeyup="ipt_searchgoodcd_onkeyup"/>
- <Grid position="absolute 5 170 90 465" id="grd_historyview" taborder="7" binddataset="ds_main_actmatrcdinfo_historylist" oncellclick="grd_historyview_oncellclick">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="83"/>
- <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="수가명(영문)"/>
- </Band>
- <Band id="body">
- <Cell text="bind:instcd"/>
- <Cell col="1" text="bind:actcd"/>
- <Cell col="2" displaytype="date" text="bind:fromdd" calendardisplaynulltype="none"/>
- <Cell col="3" text="bind:todd"/>
- <Cell col="4" text="bind:hngnm"/>
- <Cell col="5" text="bind:engnm"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Tab position="absolute 535 0 1175 140" id="switch1" onchanged="switch1_onchanged">
- <Tabpages>
- <Tabpage text="단축조회" id="case1">
- <Layouts>
- <Layout>
- <Grid position="absolute 0 0 638 113" id="grd_actnmview" taborder="6" binddataset="ds_main_actmatrinfo_actmatrlist" oncellclick="switch1_case1_grd_actnmview_oncellclick" cellsizebandtype="allband" cellsizingtype="col">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="103"/>
- <Column size="250"/>
- <Column size="250"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="80"/>
- <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="의사ID"/>
- <Cell col="6" text="의사명"/>
- <Cell col="7" text="적용일"/>
- <Cell col="8" text="종료일"/>
- <Cell col="9" text="임시저장"/>
- <Cell col="10" text="부서구분"/>
- </Band>
- <Band id="body">
- <Cell style="background:BIND(colBack0);background2:BIND(colBack0);" text="bind:actcd"/>
- <Cell col="1" style="align:left top;padding:4 2 2 2;background:BIND(colBack0);background2:BIND(colBack0);" text="bind:hngnm" wordwrap="word"/>
- <Cell col="2" style="align:left top;padding:4 2 2 2;background:BIND(colBack0);background2:BIND(colBack0);" text="bind:engnm" wordwrap="word"/>
- <Cell col="3" text="bind:actdeptcd"/>
- <Cell col="4" text="bind:actdeptnm"/>
- <Cell col="5" text="bind:actprcpdrid"/>
- <Cell col="6" text="bind:actprcpdrnm"/>
- <Cell col="7" displaytype="date" text="bind:fromdd" calendardisplaynulltype="none"/>
- <Cell col="8" displaytype="date" text="bind:todd" calendardisplaynulltype="none"/>
- <Cell col="9" displaytype="checkbox" edittype="checkbox" text="bind:tmpflag" enable="false"/>
- <Cell col="10" text="bind:deptflag"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- </Layout>
- </Layouts>
- </Tabpage>
- <Tabpage id="case2" text="이력조회">
- <Layouts>
- <Layout>
- <Grid id="grd_acthisview" taborder="0" binddataset="ds_main_actmatrhistinfo_actmatrhistlist" useinputpanel="false" position="absolute 0 0 638 113" oncellclick="switch1_case2_grd_acthisview_oncellclick" cellsizebandtype="allband" cellsizingtype="col">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="101"/>
- <Column size="0"/>
- <Column size="133"/>
- <Column size="87"/>
- <Column size="75"/>
- <Column size="102"/>
- <Column size="105"/>
- <Column size="62"/>
- </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="의사ID"/>
- <Cell col="4" text="의사명"/>
- <Cell col="5" text="적용일"/>
- <Cell col="6" text="종료일"/>
- <Cell col="7" text="부서구분"/>
- </Band>
- <Band id="body">
- <Cell text="bind:actcd"/>
- <Cell col="1" text="bind:actdeptcd"/>
- <Cell col="2" text="bind:actdeptnm"/>
- <Cell col="3" text="bind:actprcpdrid"/>
- <Cell col="4" text="bind:actprcpdrnm"/>
- <Cell col="5" displaytype="date" text="bind:fromdd" calendardisplaynulltype="none"/>
- <Cell col="6" displaytype="date" text="bind:todd" calendardisplaynulltype="none"/>
- <Cell col="7" text="bind:deptflag"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- </Layout>
- </Layouts>
- </Tabpage>
- </Tabpages>
- </Tab>
- <ImageViewer position="absolute 687 0 703 17" id="img2" style="background:@gradation URL('../../../com/commonxp/images/grid_scroll_v_up.gif');border:0 none #33bbbbff #effcfbff;bordertype:round 2 2 ;" onclick="img2_onclick"/>
- <ImageViewer position="absolute 707 0 723 17" id="img1" style="background:@gradation URL('../../../com/commonxp/images/grid_scroll_v_down.gif');border:0 none #33bbbbff #effcfbff;bordertype:round 2 2 ;" onclick="img1_onclick"/>
- <Edit readonly="true" position="absolute 970 0 1045 19" align="align:center middle;" id="opt_savestatnm" visible="false" class="output"/>
- <Static text="저장상태" position="absolute 900 0 960 19" align="align:center middle;" id="caption16" class="cell_1" visible="false"/>
- <Static text=": 행위종료" position="absolute 751 3 818 18" id="caption17" visible="false" style="font:Dotum,9,bold;"/>
- <Edit readonly="true" position="absolute 730 0 745 19" id="output1" visible="false" style="background:#ffff00ff stretch 5,5;border:1 solid #808080ff ;"/>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_main_actmatrcdinfo_actmatrcddetllist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="rowstat" type="STRING"/>
- <Column id="instcd" type="STRING"/>
- <Column id="actcd" type="STRING"/>
- <Column id="actprcpdrid" type="STRING"/>
- <Column id="actdeptcd" type="STRING"/>
- <Column id="todd" type="STRING"/>
- <Column id="fromdd" type="STRING"/>
- <Column id="deptflag" type="STRING"/>
- <Column id="goodcd" type="STRING"/>
- <Column id="allsizespecid" type="STRING"/>
- <Column id="goodnm" type="STRING"/>
- <Column id="goodspec" type="STRING"/>
- <Column id="goodunitcost" type="STRING"/>
- <Column id="qty" type="STRING"/>
- <Column id="goodmodel" type="STRING"/>
- <Column id="edicd" type="STRING"/>
- <Column id="deliveunit" type="STRING"/>
- <Column id="maincustlastsuplplcenm" type="STRING"/>
- <Column id="suppcustnm" type="STRING"/>
- <Column id="tmpflag" type="STRING"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_send_goodcdlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="instcd" type="STRING" size="256" sumtext="기관코드 "/>
- <Column id="actcd" type="STRING" size="256" sumtext="행위코드 "/>
- <Column id="todd" type="STRING" size="256" sumtext="종료일자 "/>
- <Column id="actdeptcd" type="STRING" size="256" sumtext="행위부서코드 "/>
- <Column id="actprcpdrid" type="STRING" size="256" sumtext="행위처방의사아이디"/>
- <Column id="actprcpdrnm" type="STRING" size="256" sumtext="행위처방의사명 "/>
- <Column id="fromdd" type="STRING" size="256" sumtext="시행일자 "/>
- <Column id="type" type="STRING" size="256" sumtext="조회유형 "/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- <Dataset id="ds_main_actmatrcdinfo_actmatrcdcomnlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="rowstat" type="STRING" size="256" sumtext="상태 "/>
- <Column id="instcd" type="STRING" size="256" sumtext="기관코드 "/>
- <Column id="actcd" type="STRING" size="256" sumtext="행위코드 "/>
- <Column id="todd" type="STRING" size="256" sumtext="종료일자 "/>
- <Column id="goodcd" type="STRING" size="256" sumtext="물품코드 "/>
- <Column id="allsizespecid" type="STRING" size="256" sumtext="Allsize "/>
- <Column id="goodnm" type="STRING" size="256" sumtext="물품명 "/>
- <Column id="goodmodel" type="STRING" size="256" sumtext="물품모델 "/>
- <Column id="goodspec" type="STRING" size="256" sumtext="물품규격 "/>
- <Column id="maincustlastsuplplce" type="STRING" size="256" sumtext="주거래처코드 "/>
- <Column id="maincustlastsuplplcenm" type="STRING" size="256" sumtext="주거래처명 "/>
- <Column id="suppcustcd" type="STRING" size="256" sumtext="보조거래처코드 "/>
- <Column id="suppcustnm" type="STRING" size="256" sumtext="보조거래처명 "/>
- <Column id="edicd" type="STRING" size="256" sumtext="edi코드 "/>
- <Column id="prcpexchqty" type="STRING" size="256" sumtext="수불환산수량"/>
- <Column id="deliveunit" type="STRING" size="256" sumtext="수불단위 "/>
- <Column id="goodunitcost" type="STRING" size="256" sumtext="제품단가 "/>
- <Column id="actdeptcd" type="STRING" size="256" sumtext="행위부서코드 "/>
- <Column id="actdeptnm" type="STRING" size="256" sumtext="행위부서이름 "/>
- <Column id="actprcpdrid" type="STRING" size="256" sumtext="행위처방의사아이디"/>
- <Column id="actprcpdrnm" type="STRING" size="256" sumtext="행위처방의사이름 "/>
- <Column id="qty" type="STRING" size="256" sumtext="수량 "/>
- <Column id="fromdd" type="STRING" size="256" sumtext="시행일자 "/>
- <Column id="tmpflag" type="STRING" size="256" sumtext="임시저장상태 "/>
- <Column id="deptflag" type="STRING" size="256" sumtext="부서코드 "/>
- <Column id="deptflagnm" type="STRING" size="256"/>
- <Column id="savestatcd" type="STRING" size="256"/>
- <Column id="savestatnm" type="STRING" size="256"/>
- <Column id="hngnm" type="STRING" size="256"/>
- <Column id="engnm" type="STRING" size="256"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_main_actmatrcdinfo_historylist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="instcd" type="STRING" size="256" sumtext="기관코드 "/>
- <Column id="actcd" type="STRING" size="256" sumtext="행위코드 "/>
- <Column id="fromdd" type="STRING" size="256" sumtext="시행일자 "/>
- <Column id="todd" type="STRING" size="256" sumtext="종료일자 "/>
- <Column id="hngnm" type="STRING" size="256" sumtext="수가명(한글) "/>
- <Column id="engnm" type="STRING" size="256" sumtext="수가명(영문) "/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_send_actmatrlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false" oncolumnchanged="ds_send_actmatrlist_oncolumnchanged">
- <ColumnInfo>
- <Column id="instcd" type="STRING" size="256" sumtext="기관코드 "/>
- <Column id="actcd" type="STRING" size="256" sumtext="행위코드 "/>
- <Column id="todd" type="STRING" size="256" sumtext="종료일자(종료) "/>
- <Column id="actdeptcd" type="STRING" size="256" sumtext="행위부서코드 "/>
- <Column id="actprcpdrid" type="STRING" size="256" sumtext="행위처방의사아이디"/>
- <Column id="stodd" type="STRING" size="256" sumtext="종료일자(시작) "/>
- <Column id="fromdd" type="STRING" size="256" sumtext="시행일자(시작) "/>
- <Column id="efromdd" type="STRING" size="256" sumtext="시행일자(종료) "/>
- <Column id="deptflag" type="STRING" size="256" sumtext="부서구분 "/>
- <Column id="actnm" type="STRING" size="256" sumtext="수가명 "/>
- <Column id="goodcd" type="STRING" size="256" sumtext="물품코드 "/>
- <Column id="actdeptnm" type="STRING" size="256"/>
- <Column id="goodnm" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- <Dataset id="ds_main_actmatrinfo_actmatrlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="instcd" type="STRING" size="256" sumtext="기관코드 "/>
- <Column id="actcd" type="STRING" size="256" sumtext="행위코드 "/>
- <Column id="todd" type="STRING" size="256" sumtext="종료일자 "/>
- <Column id="actdeptcd" type="STRING" size="256" sumtext="행위부서코드 "/>
- <Column id="actdeptnm" type="STRING" size="256" sumtext="행위부서이름 "/>
- <Column id="actprcpdrid" type="STRING" size="256" sumtext="행위처방의사아이디"/>
- <Column id="actprcpdrnm" type="STRING" size="256" sumtext="행위처방의사이름 "/>
- <Column id="fromdd" type="STRING" size="256" sumtext="시행일자 "/>
- <Column id="tmpflag" type="STRING" size="256" sumtext="임시저장상태 "/>
- <Column id="deptflag" type="STRING" size="256" sumtext="부서구분 "/>
- <Column id="hngnm" type="STRING" size="256" sumtext="수가명(한글)"/>
- <Column id="engnm" type="STRING" size="256" sumtext="수가명(영문)"/>
- <Column id="colBack0" type="STRING" size="256"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_send_actmatrhistlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="instcd" type="STRING" size="256" sumtext="기관코드 "/>
- <Column id="actcd" type="STRING" size="256" sumtext="행위코드 "/>
- <Column id="actdeptcd" type="STRING" size="256" sumtext="행위부서코드 "/>
- <Column id="actprcpdrid" type="STRING" size="256" sumtext="행위처방의사아이디"/>
- <Column id="goodcd" type="STRING" size="256" sumtext="물품코드 "/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- <Dataset id="ds_main_actmatrhistinfo_actmatrhistlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="instcd" type="STRING" size="256" sumtext="기관코드 "/>
- <Column id="actcd" type="STRING" size="256" sumtext="행위코드 "/>
- <Column id="todd" type="STRING" size="256" sumtext="종료일자 "/>
- <Column id="actdeptcd" type="STRING" size="256" sumtext="행위부서코드 "/>
- <Column id="actdeptnm" type="STRING" size="256" sumtext="행위부서이름 "/>
- <Column id="actprcpdrid" type="STRING" size="256" sumtext="행위처방의사아이디"/>
- <Column id="actprcpdrnm" type="STRING" size="256" sumtext="행위처방의사이름 "/>
- <Column id="fromdd" type="STRING" size="256" sumtext="시행일자 "/>
- <Column id="goodcd" type="STRING" size="256" sumtext="물품코드 "/>
- <Column id="tmpflag" type="STRING" size="256" sumtext="임시저장상태 "/>
- <Column id="deptflag" type="STRING" size="256" sumtext="부서코드 "/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_save_actmasterlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="status" type="STRING" size="256" sumtext="상태 "/>
- <Column id="instcd" type="STRING" size="256" sumtext="기관코드 "/>
- <Column id="actcd" type="STRING" size="256" sumtext="행위코드 "/>
- <Column id="todd" type="STRING" size="256" sumtext="종료일자 "/>
- <Column id="fromdd" type="STRING" size="256" sumtext="적용일자 "/>
- <Column id="goodcd" type="STRING" size="256" sumtext="물품코드 "/>
- <Column id="allsizespecid" type="STRING" size="256" sumtext="allsize "/>
- <Column id="actdeptcd" type="STRING" size="256" sumtext="행위부서코드 "/>
- <Column id="actprcpdrid" type="STRING" size="256" sumtext="행위처방의사id"/>
- <Column id="qty" type="INT" size="256" sumtext="수량 "/>
- <Column id="fstrgstrid" type="STRING" size="256" sumtext="최초등록자id "/>
- <Column id="fstrgstdt" type="STRING" size="256" sumtext="최초등록일시 "/>
- <Column id="lastupdtrid" type="STRING" size="256" sumtext="최종수정자id "/>
- <Column id="lastupdtdt" type="STRING" size="256" sumtext="최종수정일시 "/>
- <Column id="tmpflag" type="STRING" size="256" sumtext="최종수정일시 "/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_save" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="appdd" type="STRING" size="256" sumtext="상태 "/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- <Dataset id="ds_source_recvitem" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="goodcd" type="STRING" size="256"/>
- <Column id="goodnm" type="STRING" size="256"/>
- <Column id="allsizespecid" type="STRING" size="256"/>
- <Column id="goodflag" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- <Dataset id="ds_source_defaultvalue" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="nodebigo" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- <Dataset id="ds_source_recvref" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="recvref" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- <Dataset id="ds_source_cdgrupid" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="cdgrupid" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- <Dataset id="ds_source_checkyn" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="checkyn" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- <Dataset id="ds_send_validation" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="actdeptcd" type="STRING" size="256" sumtext="부서코드 "/>
- <Column id="actdeptnm" type="STRING" size="256" sumtext="부서명 "/>
- <Column id="instcd" type="STRING" size="256" sumtext="기관 "/>
- <Column id="actprcpdrid" type="STRING" size="256" sumtext="의사id "/>
- <Column id="actprcpdrnm" type="STRING" size="256" sumtext="의사명 "/>
- <Column id="usndeptch" type="STRING" size="256" sumtext="조회구분 "/>
- <Column id="cdgrupid" type="STRING" size="256"/>
- <Column id="getcond" type="STRING" size="256"/>
- <Column id="retrkind" type="STRING" size="256"/>
- <Column id="systemflag" type="STRING" size="256"/>
- <Column id="classicyn" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- <Dataset id="ds_init_main_usndept_usndeptlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="actdeptcd" type="STRING" size="256" sumtext="부서코드 "/>
- <Column id="actdeptnm" type="STRING" size="256" sumtext="부서명 "/>
- <Column id="instcd" type="STRING" size="256" sumtext="기관 "/>
- <Column id="actprcpdrid" type="STRING" size="256" sumtext="의사id "/>
- <Column id="actprcpdrnm" type="STRING" size="256" sumtext="의사명 "/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_init_main_usndept_usndeptlist_reqcustomlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="actdeptcd" type="STRING" size="256"/>
- <Column id="actdeptnm" type="STRING" size="256"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_source_validation" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="actdeptcd" type="STRING" size="256" sumtext="부서코드 "/>
- <Column id="actdeptnm" type="STRING" size="256" sumtext="부서명 "/>
- <Column id="instcd" type="STRING" size="256" sumtext="기관 "/>
- <Column id="actprcpdrid" type="STRING" size="256" sumtext="의사id "/>
- <Column id="actprcpdrnm" type="STRING" size="256" sumtext="의사명 "/>
- <Column id="deptcd" type="STRING" size="256"/>
- <Column id="depthngnm" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- <Dataset id="ds_init_validation_deptcodelist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="deptcd" type="STRING" size="256" sumtext="부서코드"/>
- <Column id="depthngnm" type="STRING" size="256" sumtext="부서명"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_send_reslist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="actcd" type="STRING" size="256"/>
- <Column id="actdeptcd" type="STRING" size="256"/>
- <Column id="actdeptnm" type="STRING" size="256"/>
- <Column id="actprcpdrid" type="STRING" size="256"/>
- <Column id="actprcpdrnm" type="STRING" size="256"/>
- <Column id="fromdd" type="STRING" size="256"/>
- <Column id="todd" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- </Objects>
- <Bind>
- <BindItem id="item0" compid="ipt_actcd" propid="value" datasetid="ds_send_actmatrlist" columnid="actcd"/>
- <BindItem id="item1" compid="ipt_actnm" propid="value" datasetid="ds_send_actmatrlist" columnid="actnm"/>
- <BindItem id="item2" compid="ipt_searchgoodcd" propid="value" datasetid="ds_send_actmatrlist" columnid="goodcd"/>
- <BindItem id="item3" compid="ipt_searchgoodnm" propid="value" datasetid="ds_send_actmatrlist" columnid="goodnm"/>
- <BindItem id="item4" compid="ipt_actdeptcd" propid="value" datasetid="ds_send_actmatrlist" columnid="actdeptcd"/>
- <BindItem id="item5" compid="ipt_actdeptnm" propid="value" datasetid="ds_send_actmatrlist" columnid="actdeptnm"/>
- <BindItem id="item6" compid="opt_savestatnm" propid="value" datasetid="ds_main_actmatrcdinfo_actmatrcdcomnlist" columnid="savestatnm"/>
- <BindItem id="item7" compid="ipt_instcd" propid="value" datasetid="ds_main_actmatrcdinfo_actmatrcdcomnlist" columnid="instcd"/>
- <BindItem id="item8" compid="opt_actdeptcd" propid="value" datasetid="ds_main_actmatrcdinfo_actmatrcdcomnlist" columnid="actdeptcd"/>
- <BindItem id="item9" compid="opt_savestatcd" propid="value" datasetid="ds_main_actmatrcdinfo_actmatrcdcomnlist" columnid="savestatcd"/>
- <BindItem id="item10" compid="opt_actdeptnm" propid="value" datasetid="ds_main_actmatrcdinfo_actmatrcdcomnlist" columnid="actdeptnm"/>
- <BindItem id="item11" compid="opt_actprcpdrid" propid="value" datasetid="ds_main_actmatrcdinfo_actmatrcdcomnlist" columnid="actprcpdrid"/>
- <BindItem id="item12" compid="opt_actprcpdrnm" propid="value" datasetid="ds_main_actmatrcdinfo_actmatrcdcomnlist" columnid="actprcpdrnm"/>
- <BindItem id="item13" compid="opt_deptflagnm" propid="value" datasetid="ds_main_actmatrcdinfo_actmatrcdcomnlist" columnid="deptflagnm"/>
- <BindItem id="item14" compid="opt_deptflag" propid="value" datasetid="ds_main_actmatrcdinfo_actmatrcdcomnlist" columnid="deptflag"/>
- <BindItem id="item15" compid="opt_actcd" propid="value" datasetid="ds_main_actmatrcdinfo_actmatrcdcomnlist" columnid="actcd"/>
- <BindItem id="item16" compid="opt_fromdd" propid="value" datasetid="ds_main_actmatrcdinfo_actmatrcdcomnlist" columnid="fromdd"/>
- <BindItem id="item17" compid="opt_hngnm" propid="value" datasetid="ds_main_actmatrcdinfo_actmatrcdcomnlist" columnid="hngnm"/>
- <BindItem id="item18" compid="opt_todd" propid="value" datasetid="ds_main_actmatrcdinfo_actmatrcdcomnlist" columnid="todd"/>
- <BindItem id="item19" compid="opt_engnm" propid="value" datasetid="ds_main_actmatrcdinfo_actmatrcdcomnlist" columnid="engnm"/>
- </Bind>
- <Script type="xscript4.0"><![CDATA[/***************************************************************************************
- * System Name : 경대 의료정보시스템
- * Job Name : pam_actmatrxp -> SMPIC90000
- * Creator : yjh
- * Make Date : 2017-11-09
- * Description :
- *---------------------------------------------------------------------------------------
- * Modify Date Modifier Modify Description
- *---------------------------------------------------------------------------------------
- * 2017-11-09 yjh TF->XP
- *
- *---------------------------------------------------------------------------------------
- ****************************************************************************************/
- //=======================================================================================
- // Lib Include
- //---------------------------------------------------------------------------------------
- include "com_commonxp::comm_main.xjs";
- include "pam_actmatrxp::SMPIC90000.xjs";
- include "mis_miscommonxp::MIS.xjs";
- include "mis_miscommonxp::RSZ001.xjs";
- //=======================================================================================
- // Global Form Variable
- //---------------------------------------------------------------------------------------
- var arErrorCode = new HashArray();
- //=======================================================================================
- // Function
- //---------------------------------------------------------------------------------------
- var Gfocus = "";
-
- function fInitialize()
- {
- ds_main_actmatrinfo_actmatrlist.clearData();
- ds_main_actmatrhistinfo_actmatrhistlist.clearData();
- import1.ds_hidden_rscdgood_rscdgoodlist.clearData();
- ds_main_actmatrcdinfo_actmatrcdcomnlist.clearData();
- ds_main_actmatrcdinfo_actmatrcddetllist.clearData();
- ds_main_actmatrcdinfo_historylist.clearData();
-
- ds_send_actmatrlist.enableevent = false;
- ds_send_actmatrlist.updatecontrol = false;
-
- ds_send_actmatrlist.setColumn(0, "actcd", "");
- ds_send_actmatrlist.setColumn(0, "actdeptcd", "");
- ds_send_actmatrlist.setColumn(0, "actdeptnm", "");
- ds_send_actmatrlist.setColumn(0, "actnm", "");
-
- ds_send_actmatrlist.setColumn(0, "instcd", sysf_getUserInfo("dutplceinstcd")); // 기관 설정
-
- ds_send_actmatrlist.updatecontrol = true;
- ds_send_actmatrlist.enableevent = true;
-
- switch1.tabindex = 0;
- import1.btn_goodinsert.enable = false;
- //btn_histsave.disabled = true;
- btn_rowdel.enable = false;
- btn_save.enable = false;
- btn_tmpsave.enable = false;
- btn_del.enable = false;
- btn_actend.enable = false;
- }
- function fsetting()
- {
- var flag = "Y", rowno = "";
-
- if(!utlf_isNull(opt_actcd.value)){
-
- for(var i=0; i < import1.ds_hidden_rscdgood_rscdgoodlist.rowcount ;i++){
- if(import1.ds_hidden_rscdgood_rscdgoodlist.getColumn(i, "select") == "Y"){
- for(var j=0; j < ds_main_actmatrcdinfo_actmatrcddetllist.rowcount;j++){
- var srcgoodcd = import1.ds_hidden_rscdgood_rscdgoodlist.getColumn(i, "goodcd");
- var goodcd = ds_main_actmatrcdinfo_actmatrcddetllist.getColumn(j, "goodcd");
- var srcallsizespecid = import1.ds_hidden_rscdgood_rscdgoodlist.getColumn(i, "allsizespecid");
- var allsizespecid = ds_main_actmatrcdinfo_actmatrcddetllist.getColumn(j, "allsizespecid");
- if (srcgoodcd == goodcd && srcallsizespecid == allsizespecid){
- flag = "N";
- rowno = rowno + "," + i; // 이미 존재하는 코드 check
- }
- }
- if (flag == "Y"){
- var pgoodcd = import1.ds_hidden_rscdgood_rscdgoodlist.getColumn(i, "goodcd");
- var pallsizeid = import1.ds_hidden_rscdgood_rscdgoodlist.getColumn(i, "allsizespecid");
- var pgoodnm = import1.ds_hidden_rscdgood_rscdgoodlist.getColumn(i, "goodnm");
- var pgoodmodel = import1.ds_hidden_rscdgood_rscdgoodlist.getColumn(i, "goodmodel");
- var pgoodspec = import1.ds_hidden_rscdgood_rscdgoodlist.getColumn(i, "goodspec");
- var pmaincustlastsuplplce = import1.ds_hidden_rscdgood_rscdgoodlist.getColumn(i, "maincustlastsuplplce");
- var pmaincustlastsuplplcenm = import1.ds_hidden_rscdgood_rscdgoodlist.getColumn(i, "maincustlastsuplplcenm");
- var psuppcustcd = import1.ds_hidden_rscdgood_rscdgoodlist.getColumn(i, "suppcustcd");
- var psuppcustnm = import1.ds_hidden_rscdgood_rscdgoodlist.getColumn(i, "suppcustnm");
- var pedicd = import1.ds_hidden_rscdgood_rscdgoodlist.getColumn(i, "edicd");
- var pdeliveunit = import1.ds_hidden_rscdgood_rscdgoodlist.getColumn(i, "deliveunit");
- var pgoodunitcost = import1.ds_hidden_rscdgood_rscdgoodlist.getColumn(i, "goodunitcost");
- var pdrugqty = import1.ds_hidden_rscdgood_rscdgoodlist.getColumn(i, "drugqty");
- var pactcd = ds_main_actmatrcdinfo_actmatrcdcomnlist.getColumn(0, "actcd");
-
- var pinstcd = sysf_getUserInfo("dutplceinstcd"); //기관 설정
- var pactprcpdrid = ds_main_actmatrcdinfo_actmatrcdcomnlist.getColumn(0, "actprcpdrid");
- var pactdeptcd = ds_main_actmatrcdinfo_actmatrcdcomnlist.getColumn(0, "actdeptcd");
- var ptodd = ds_main_actmatrcdinfo_actmatrcdcomnlist.getColumn(0, "todd");
- var pfromdd = ds_main_actmatrcdinfo_actmatrcdcomnlist.getColumn(0, "fromdd");
- //부서구분 추가
- var pdeptflag = ds_main_actmatrcdinfo_actmatrcdcomnlist.getColumn(0, "deptflag");
-
- var nRow = ds_main_actmatrcdinfo_actmatrcddetllist.addRow();
-
- ds_main_actmatrcdinfo_actmatrcddetllist.setColumn(nRow, "rowstat", "1");
- ds_main_actmatrcdinfo_actmatrcddetllist.setColumn(nRow, "goodcd", pgoodcd);
- ds_main_actmatrcdinfo_actmatrcddetllist.setColumn(nRow, "allsizespecid", pallsizeid);
- ds_main_actmatrcdinfo_actmatrcddetllist.setColumn(nRow, "goodnm", pgoodnm);
- ds_main_actmatrcdinfo_actmatrcddetllist.setColumn(nRow, "goodmodel", pgoodmodel);
- ds_main_actmatrcdinfo_actmatrcddetllist.setColumn(nRow, "goodspec", pgoodspec);
- ds_main_actmatrcdinfo_actmatrcddetllist.setColumn(nRow, "maincustlastsuplplce", pmaincustlastsuplplce);
- ds_main_actmatrcdinfo_actmatrcddetllist.setColumn(nRow, "maincustlastsuplplcenm", pmaincustlastsuplplcenm);
- ds_main_actmatrcdinfo_actmatrcddetllist.setColumn(nRow, "suppcustcd", psuppcustcd);
- ds_main_actmatrcdinfo_actmatrcddetllist.setColumn(nRow, "suppcustnm", psuppcustnm);
- ds_main_actmatrcdinfo_actmatrcddetllist.setColumn(nRow, "edicd", pedicd);
- ds_main_actmatrcdinfo_actmatrcddetllist.setColumn(nRow, "deliveunit", pdeliveunit);
- ds_main_actmatrcdinfo_actmatrcddetllist.setColumn(nRow, "goodunitcost", pgoodunitcost);
- ds_main_actmatrcdinfo_actmatrcddetllist.setColumn(nRow, "actcd", pactcd);
- ds_main_actmatrcdinfo_actmatrcddetllist.setColumn(nRow, "instcd", pinstcd);
- ds_main_actmatrcdinfo_actmatrcddetllist.setColumn(nRow, "actprcpdrid", pactprcpdrid);
- ds_main_actmatrcdinfo_actmatrcddetllist.setColumn(nRow, "actdeptcd", pactdeptcd);
- ds_main_actmatrcdinfo_actmatrcddetllist.setColumn(nRow, "todd", ptodd);
- ds_main_actmatrcdinfo_actmatrcddetllist.setColumn(nRow, "fromdd", pfromdd);
- //부서구분 추가
- ds_main_actmatrcdinfo_actmatrcddetllist.setColumn(nRow, "deptflag", pdeptflag);
- ds_main_actmatrcdinfo_actmatrcddetllist.setColumn(nRow, "qty", pdrugqty);
-
- //var status = grd_actmaster.valueMatrix(grd_actmaster.row, grd_actmaster.colRef("m")); //상태설정
-
- /* if(actflag == 1){
- grd_actmaster.rowStatus(grd_actmaster.row) = 1;
- }else{
- grd_actmaster.rowStatus(grd_actmaster.row) = 0;
- }*/
- }
- import1.ds_hidden_rscdgood_rscdgoodlist.setColumn(i, "select", "N");
- flag = "Y";
- }
- }
- if (!utlf_isNull(rowno)){
- sysf_messageBox("물품조회 "+rowno.substr(1, rowno.length-1)+"번째에 동일 물품이 존재합니다.", "I");
- }
- }else{
- sysf_messageBox("행위처방코드와 물품코드는","I003");
- }
- }
- function fmatch()
- {
- var actcd = frmf_getParameter("calcscorcd"); //parameter값으로 설정
- var userid = frmf_getParameter("actprcpdrid");
- var usernm = frmf_getParameter("actprcpdrnm");
- var deptcd = frmf_getParameter("actdeptcd");
- var deptnm = frmf_getParameter("actdeptnm");
- var fromdd = frmf_getParameter("fromdd");
- var todd = frmf_getParameter("todd");
-
- ds_send_reslist.setColumn(0, "actcd" , actcd ); //값 셋팅해주는 역할
- ds_send_reslist.setColumn(0, "actdeptcd" , deptcd );
- ds_send_reslist.setColumn(0, "actdeptnm" , deptnm );
- ds_send_reslist.setColumn(0, "actprcpdrid" , userid );
- ds_send_reslist.setColumn(0, "actprcpdrnm" , usernm );
- ds_send_reslist.setColumn(0, "fromdd" , fromdd );
- ds_send_reslist.setColumn(0, "todd" , todd );
- }
- function fset(){
- var userid = frmf_getParameter("actprcpdrid");
- var usernm = frmf_getParameter("actprcpdrnm");
- var deptcd = frmf_getParameter("actdeptcd");
- var deptnm = frmf_getParameter("actdeptnm");
- ds_send_actmatrlist.setColumn(0, "actdeptcd",deptcd ); //값 셋팅해주는 역할
- ds_send_actmatrlist.setColumn(0, "actdeptnm",deptnm );
- ds_send_actmatrlist.setColumn(0, "actprcpdrid",userid );
- ds_send_actmatrlist.setColumn(0, "actprcpdrnm",usernm );
- }
- function fSave(msg, stat){
-
- var updtdata = "", rowno = "";
-
- ds_main_actmatrcdinfo_actmatrcddetllist.enableevent = false;
- ds_main_actmatrcdinfo_actmatrcddetllist.updatecontrol = false;
-
- for(i=0;i<ds_main_actmatrcdinfo_actmatrcddetllist.rowcount;i++){
- ds_main_actmatrcdinfo_actmatrcddetllist.setColumn(i, "instcd", ds_main_actmatrcdinfo_actmatrcdcomnlist.getColumn(0, "instcd"));
- // grd_actmaster.valueMatrix(i, grd_actmaster.colRef("actdeptcd" )) = model.getValue(opt_actdeptcd.attribute("ref"));
- ds_main_actmatrcdinfo_actmatrcddetllist.setColumn(i, "actcd", ds_main_actmatrcdinfo_actmatrcdcomnlist.getColumn(0, "actcd"));
- // grd_actmaster.valueMatrix(i, grd_actmaster.colRef("actprcpdrid")) = model.getValue(opt_actprcpdrid.attribute("ref"));
- ds_main_actmatrcdinfo_actmatrcddetllist.setColumn(i, "fromdd", ds_main_actmatrcdinfo_actmatrcdcomnlist.getColumn(0, "fromdd"));
- ds_main_actmatrcdinfo_actmatrcddetllist.setColumn(i, "todd", ds_main_actmatrcdinfo_actmatrcdcomnlist.getColumn(0, "todd"));
- // grd_actmaster.valueMatrix(i, grd_actmaster.colRef("deptflag" )) = model.getValue(opt_deptflag.attribute("ref"));
-
- if(utlf_isNull(ds_main_actmatrcdinfo_actmatrcddetllist.getColumn(i, "actdeptcd"))){
- ds_main_actmatrcdinfo_actmatrcddetllist.setColumn(i, "actdeptcd", "-"); // 시행부서 입력
- }
- if(utlf_isNull(ds_main_actmatrcdinfo_actmatrcddetllist.getColumn(i, "actprcpdrid"))){
- ds_main_actmatrcdinfo_actmatrcddetllist.setColumn(i, "actprcpdrid", "00000"); // 행위처방의사
- }
- if(utlf_isNull(ds_main_actmatrcdinfo_actmatrcddetllist.getColumn(i, "deptflag"))){
- ds_main_actmatrcdinfo_actmatrcddetllist.setColumn(i, "deptflag", "-"); // 부서구분코드
- }
-
- /* if (stat == "T"){
- grd_actmaster.valueMatrix(i, grd_actmaster.colRef("tmpflag" )) = "Y";
- }else{
- grd_actmaster.valueMatrix(i, grd_actmaster.colRef("tmpflag" )) = "N";
- } */
-
- if(utlf_isNull(ds_main_actmatrcdinfo_actmatrcddetllist.getColumn(i, "qty")) || ds_main_actmatrcdinfo_actmatrcddetllist.getColumn(i, "qty") == 0){
- rowno += "," + i;
- }
- }
-
- ds_main_actmatrcdinfo_actmatrcddetllist.updatecontrol = true;
- ds_main_actmatrcdinfo_actmatrcddetllist.enableevent = true;
-
- if (!utlf_isNull(rowno)){
- sysf_messageBox(rowno.substr(1, rowno.length-1)+"번째건의 수량이 입력되지 ", "I011");
- return false;
- }
- if (msg == "저장") {
-
- ds_main_actmatrcdinfo_actmatrcddetllist.enableevent = false;
- ds_main_actmatrcdinfo_actmatrcddetllist.updatecontrol = false;
-
- grdf_setStatusColumn(ds_main_actmatrcdinfo_actmatrcddetllist, "status");
-
- ds_main_actmatrcdinfo_actmatrcddetllist.updatecontrol = true;
- ds_main_actmatrcdinfo_actmatrcddetllist.enableevent = true;
-
- //ds_save_actmasterlist.assign(grdf_getGridUpdateData(grd_actmaster, "all"));
- ds_save_actmasterlist.copyData(grdf_getGridUpdateData(grd_actmaster, "all"), true);
-
- if(ds_save_actmasterlist.rowcount == 0){
- sysf_messageBox(msg+"할 데이타가 ","E014");
- return false;
- }
-
- } else {
-
- // updtdata = getGridUpdateData(grd_actmaster);
- // if(updtdata == ""){
- // messageBox(msg+"할 데이타가 ","E014");
- // return false;
- // }
- //
- // model.copyNode("/root/save/actmasterlist", updtdata);
-
- ds_main_actmatrcdinfo_actmatrcddetllist.enableevent = false;
- ds_main_actmatrcdinfo_actmatrcddetllist.updatecontrol = false;
-
- grdf_setStatusColumn(ds_main_actmatrcdinfo_actmatrcddetllist, "status");
-
- ds_main_actmatrcdinfo_actmatrcddetllist.updatecontrol = true;
- ds_main_actmatrcdinfo_actmatrcddetllist.enableevent = true;
-
- ds_save_actmasterlist.assign(ds_main_actmatrcdinfo_actmatrcddetllist);
- }
- }
- function fViewToggle(pCls) {
- var focus = "";
- if (pCls == 0) {
- focus = ds_main_actmatrinfo_actmatrlist.rowposition;
- switch1.case1.grd_actnmview.setFocus();
-
- //grd_actnmview.dispatch("onclick");
- fSrchGood(switch1.case1.grd_actnmview);
-
- } else {
- focus = ds_main_actmatrhistinfo_actmatrhistlist.rowposition;
- switch1.case2.grd_acthisview.setFocus();
-
- //grd_acthisview.dispatch("onclick");
- fSrchGood(switch1.case2.grd_acthisview);
- }
- }
- function fSrchCondInfo() {
- ds_send_actmatrlist.setColumn(0, "actcd", ds_main_actmatrcdinfo_actmatrcdcomnlist.getColumn(0, "actcd"));
- // model.setValue(ipt_actdeptcd.attribute("ref") , model.getValue(opt_actdeptcd.attribute("ref") ));
- // model.setValue(ipt_actdeptnm.attribute("ref") , model.getValue(opt_actdeptnm.attribute("ref") ));
- // model.setValue(ipt_actprcpdrid.attribute("ref") , model.getValue(opt_actprcpdrid.attribute("ref")));
- // model.setValue(ipt_actprcpdrnm.attribute("ref") , model.getValue(opt_actprcpdrnm.attribute("ref")));
- btn_actsearch.click();
- }
- function fSrchGood(pGrid) {
- var savestatcd = "";
- var tmpflag="", todd="",deptflag="";
- var oBindDs = eval(pGrid.binddataset);
-
- if (oBindDs.rowcount <= 0) return;
- var nRow = oBindDs.rowposition;
- ds_send_goodcdlist.copyRow(0, oBindDs, nRow);
-
- ds_main_actmatrcdinfo_actmatrcddetllist.clearData();
- ds_main_actmatrcdinfo_historylist.clearData();
- // model.makeNode("/root/main/actmatrcdinfo");
- //misfGridInit
-
- var oParam = {};
- oParam.id = "TRPIC90007";
- oParam.service = "actmatrapp.ActMatrMngt";
- oParam.method = "reqGetRefActMatr";
- oParam.inds = "req=ds_send_goodcdlist";
- oParam.outds = "ds_main_actmatrcdinfo_actmatrcddetllist=actmatrcddetllist ds_main_actmatrcdinfo_historylist=historylist";
- oParam.async = false;
- oParam.callback = "cf_TRPIC90007";
- tranf_submit(oParam);
-
- ds_main_actmatrcdinfo_historylist.addColumn("deptflag", "string");
-
- ds_main_actmatrcdinfo_actmatrcddetllist.updatecontrol = false;
-
- dsf_setDefaultVal(ds_main_actmatrcdinfo_actmatrcddetllist, "rowstat:0");
-
- ds_main_actmatrcdinfo_actmatrcddetllist.updatecontrol = true;
-
- if(arErrorCode.pop("TRPIC90007") > -1) {
-
- todd = ds_send_goodcdlist.getColumn(0, "todd");
- if(todd != '99991231' ){
- grd_actmaster.setCellProperty("Body", 14, "edittype", "none");
- //fDisableCheck(true);
- }else{
- grd_actmaster.setCellProperty("Body", 14, "edittype", "masknumber");
- //fDisableCheck(false);
- }
-
- ds_main_actmatrcdinfo_actmatrcdcomnlist.clearData();
- ds_main_actmatrcdinfo_actmatrcdcomnlist.addRow();
- ds_main_actmatrcdinfo_actmatrcdcomnlist.copyRow(0, oBindDs, nRow);
- //tmpflag = grd_actnmview.valueMatrix(grd_actnmview.row, grd_actnmview.colRef("tmpflag")).getTrim();
- //todd = grd_actnmview.valueMatrix(grd_actnmview.row, grd_actnmview.colRef("todd")).getTrim();
- //deptflag = grd_actnmview.valueMatrix(grd_actnmview.row,grd_actnmview.colRef("deptflag")).getTrim();
- if(todd != '99991231' ){
- btn_del.enable = false; // 삭제 비활성화
- btn_actend.enable = false; // 행위종료 비활성화
- import1.btn_goodinsert.enable = false; // 물품추가 비활성화
- btn_rowdel.enable = false; // 물품삭제 비활성화
- btn_save.enable = false; // 저장 비활성화
- }else{
- btn_del.enable = true; // 삭제 활성화
- btn_actend.enable = true;; // 행위종료 활성화
- import1.btn_goodinsert.enable = true; // 물품추가 활성화
- btn_rowdel.enable = true; // 물품삭제 활성화
- btn_save.enable = true; // 저장 비활성화
- }
-
- //부서구분 추가
- deptflag = utlf_transNullToEmpty(oBindDs.getColumn(nRow, "deptflag")).getTrim();
-
- if (deptflag =="1") {
- ds_main_actmatrcdinfo_actmatrcdcomnlist.setColumn(0, "deptflagnm", "구매");
- } else if (deptflag =="2") {
- ds_main_actmatrcdinfo_actmatrcdcomnlist.setColumn(0, "deptflagnm", "약국");
- } else {
- ds_main_actmatrcdinfo_actmatrcdcomnlist.setColumn(0, "deptflagnm", "-");
- }
-
- // 그룹수가 내 싱글수가 조회화면 전달용
- import1.ds_subsend_rscdgoodlist.setColumn(0, "actcd", ds_send_goodcdlist.getColumn(0, "actcd"));
- import1.ds_subsend_rscdgoodlist.setColumn(0, "basedd", ds_send_goodcdlist.getColumn(0, "fromdd"));
- }
-
- /*
- if (tmpflag == "Y"){
- model.makeValue(opt_savestatcd.attribute("ref"), "T");
- model.makeValue("/root/main/actmatrcdinfo/actmatrcdcomnlist/savestatnm", "임시저장");
- }else if (tmpflag == "N"){
- model.makeValue(opt_savestatcd.attribute("ref"), "S");
- model.makeValue("/root/main/actmatrcdinfo/actmatrcdcomnlist/savestatnm", "저장");
-
- if(todd == '99991231' ){
- model.makeValue(opt_savestatcd.attribute("ref"), "S");
- model.makeValue("/root/main/actmatrcdinfo/actmatrcdcomnlist/savestatnm", "저장");
- }else{
- model.makeValue(opt_savestatcd.attribute("ref"), "H");
- model.makeValue("/root/main/actmatrcdinfo/actmatrcdcomnlist/savestatnm", "이력저장");
- }
-
- }else{
- if (grd_acthisview.rows - grd_acthisview.fixedRows != 0){
- model.makeValue(opt_savestatcd.attribute("ref"), "H");
- model.makeValue("/root/main/actmatrcdinfo/actmatrcdcomnlist/savestatnm", "이력저장");
- }
- }
- savestatcd = model.getValue(opt_savestatcd.attribute("ref"));
- if (savestatcd == "T"){ // 저장상태가 임시저장일 경우
- btn_tmpsave.disabled = false; // 임시저장 활성화
- btn_save.disabled = false; // 저장 활성화
- btn_histsave.disabled = true; // 이력저장 비활성화
- btn_rowdel.disabled = false; // 행삭제 활성화
- btn_goodinsert.disabled = false; // 행추가 활성화
- }else if (savestatcd == "S"){ // 저장상태가 저장일 경우{
- btn_tmpsave.disabled = true; // 임시저장 비활성화
- btn_save.disabled = false; // 저장 활성화
- btn_histsave.disabled = false; // 이력저장 활성화
- btn_rowdel.disabled = false; // 행삭제 활성화
- btn_goodinsert.disabled = false; // 행추가 활성화
- }else{
- btn_tmpsave.disabled = true; // 임시저장 비활성화
- btn_save.disabled = true; // 저장 비활성화
- btn_histsave.disabled = true; // 이력저장 비활성화
- btn_rowdel.disabled = true; // 행삭제 비활성화
- btn_goodinsert.disabled = true; // 행추가 비활성화
- }
- for(i=grd_actmaster.fixedRows;i<grd_actmaster.rows;i++){
- grd_actmaster.valueMatrix(i, grd_actmaster.colRef("tmpflag")) = savestatcd;
- }
- */
-
- // fActcdSearch(model.getValue(opt_actcd.attribute("ref")),
- // model.getValue(opt_hngnm.attribute("ref")));
- }
- function cf_TRPIC90007(sSvcId, nErrorCode, sErrorMsg) {
- arErrorCode.push(sSvcId, nErrorCode);
- }
- function fSelectChoiDel(pGrid)
- {
- var oBindDs = eval(pGrid.binddataset);
- if (oBindDs.rowcount == 0){
- sysf_messageBox("처리할 데이타가 존재하지 ","I011");
- return;
- }
-
- for( var i=0 ; i<pGrid.selectcount ; i++ ){
- for( var j=pGrid.selectendrow[i] ; j>=pGrid.selectstartrow[i] ; j-- ){
- if( oBindDs.getColumn(j, "rowstat") == "1" ){
- oBindDs.deleteRow(j);
- }else{
- oBindDs.enableevent = false;
- oBindDs.updatecontrol = false;
-
- oBindDs.setRowType(j, 8);
-
- oBindDs.updatecontrol = true;
- oBindDs.enableevent = true;
- }
- }
- }
- }
- //=======================================================================================
- // Event
- //---------------------------------------------------------------------------------------
- /****************************************************************************************
- * Components : Form
- * Components ID : SMPIC90000
- * Event : oninit
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 화면 처음 초기화시
- ****************************************************************************************/
- function SMPIC90000_oninit(obj:Form, e:InitEventInfo)
- {
- frmf_initForm(obj); //폼 초기화
- }
- /****************************************************************************************
- * Components : Form
- * Components ID : SMPIC90000
- * Event : onload
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 화면 로딩 완료시
- ****************************************************************************************/
- function SMPIC90000_onload(obj:Form, e:LoadEventInfo)
- {
- grdf_setRowTypeIcon(grd_actmaster, 0);
-
- //화면 Control을 초기화한다
- fInitialize();
- }
- /****************************************************************************************
- * Components : Button
- * Components ID : btn_actend
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 행위종료버튼 클릭시
- ****************************************************************************************/
- function btn_actend_onclick(obj:Button, e:ClickEventInfo)
- {
- if (ds_main_actmatrinfo_actmatrlist.rowcount == 0){
- sysf_messageBox("처리할 데이타가 존재하지 ","I011");
- return;
- }
- var toddvalue = ds_main_actmatrinfo_actmatrlist.getColumn(ds_main_actmatrinfo_actmatrlist.rowposition, "todd");
- var instvalue = ds_main_actmatrinfo_actmatrlist.getColumn(ds_main_actmatrinfo_actmatrlist.rowposition, "instcd");
- var actvalue = ds_main_actmatrinfo_actmatrlist.getColumn(ds_main_actmatrinfo_actmatrlist.rowposition, "actcd");
- var deptvalue = ds_main_actmatrinfo_actmatrlist.getColumn(ds_main_actmatrinfo_actmatrlist.rowposition, "actdeptcd");
- var dridvalue = ds_main_actmatrinfo_actmatrlist.getColumn(ds_main_actmatrinfo_actmatrlist.rowposition, "actprcpdrid");
- var drnmvalue = ds_main_actmatrinfo_actmatrlist.getColumn(ds_main_actmatrinfo_actmatrlist.rowposition, "actprcpdrnm");
- var fromvalue = ds_main_actmatrinfo_actmatrlist.getColumn(ds_main_actmatrinfo_actmatrlist.rowposition, "fromdd");
- var tmpflag = ds_main_actmatrinfo_actmatrlist.getColumn(ds_main_actmatrinfo_actmatrlist.rowposition, "tmpflag");
-
- // model.makeValue("/root/send/srchlist/instcd",instvalue);
- // model.makeValue("/root/send/srchlist/actcd",actvalue);
- // model.makeValue("/root/send/srchlist/todd",toddvalue);
- // model.makeValue("/root/send/srchlist/actdeptcd",deptvalue);
- // model.makeValue("/root/send/srchlist/actprcpdrid",dridvalue);
- // model.makeValue("/root/send/srchlist/actprcpdrnm",drnmvalue);
- // model.makeValue("/root/send/srchlist/fromdd",fromvalue);
- if(tmpflag == "Y"){
- sysf_messageBox("임시저장한 행위코드는 종료를 ","E001");
- return;
-
- }else{
- var frddvalue = ds_main_actmatrinfo_actmatrlist.getColumn(ds_main_actmatrinfo_actmatrlist.rowposition, "fromdd");
- if(frddvalue == utlf_getCurrentDate()){
- sysf_messageBox("당일 등록한 행위코드는 종료를","E001");
- }else{
- var retMes = sysf_messageBox("처방집계시 행위재료코드와 참조할수 있는 물품마스터 코드가 종료됩니다.","Q009");
- // var retMes = messageBox("행위코드와 관련 데이터 사용이 불가합니다.행위코드 종료를","Q009");
- if ( retMes != 6) {
- return;
- }else{
- ds_main_actmatrinfo_actmatrlist.enableevent = false;
- ds_main_actmatrinfo_actmatrlist.updatecontrol = false;
-
- ds_main_actmatrinfo_actmatrlist.setRowType(ds_main_actmatrinfo_actmatrlist.rowposition, 4);
-
- ds_main_actmatrinfo_actmatrlist.updatecontrol = true;
- ds_main_actmatrinfo_actmatrlist.enableevent = true;
- }
-
- ds_main_actmatrinfo_actmatrlist.enableevent = false;
- ds_main_actmatrinfo_actmatrlist.updatecontrol = false;
-
- grdf_setStatusColumn(ds_main_actmatrinfo_actmatrlist, "status");
-
- ds_main_actmatrinfo_actmatrlist.updatecontrol = true;
- ds_main_actmatrinfo_actmatrlist.enableevent = true;
-
- ds_save_actmasterlist.assign(grdf_getGridUpdateData(switch1.case1.grd_actnmview, "all"));
- Gfocus = ds_main_actmatrinfo_actmatrlist.rowposition;
-
- var oParam = {};
- oParam.id = "TXPIC90011";
- oParam.service = "actmatrapp.ActMatrMngt";
- oParam.method = "reqEndactmatrList";
- oParam.inds = "actmasterlist=ds_save_actmasterlist:A";
- oParam.outds = "";
- oParam.async = false;
- oParam.callback = "cf_TXPIC90011";
- tranf_submit(oParam);
-
- if (arErrorCode.pop("TXPIC90011") > -1){
- sysf_messageBox("행위 종료","I001");
- }else{
- sysf_messageBox("행위 종료","E009");
- }
- btn_actsearch.click();
- ds_main_actmatrinfo_actmatrlist.rowposition = Gfocus;
- switch1.case1.grd_actnmview.setFocus();
- //grd_actnmview.dispatch("onclick");
- fSrchGood(switch1.case1.grd_actnmview);
- }
- }
- }
- function cf_TXPIC90011(sSvcId, nErrorCode, sErrorMsg) {
- arErrorCode.push(sSvcId, nErrorCode);
- }
- /****************************************************************************************
- * Components : Button
- * Components ID : btn_del
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 삭제버튼 클릭시
- ****************************************************************************************/
- function btn_del_onclick(obj:Button, e:ClickEventInfo)
- {
- var retMes = "", tmpflag = ds_main_actmatrinfo_actmatrlist.getColumn(ds_main_actmatrinfo_actmatrlist.rowposition, "tmpflag");
-
- if (ds_main_actmatrinfo_actmatrlist.rowcount == 0){
- sysf_messageBox("처리할 데이타가 존재하지 ","I011");
- return;
- }
-
- if (tmpflag == "N"){
- retMes = sysf_messageBox("처방집계시 행위재료코드와 참조할수 있는 물품마스터 코드가 삭제됩니다.","Q001");
- }else{
- retMes = sysf_messageBox("임시 저장된 행위코드를 ","Q001");
- }
- if ( retMes != 6) {
- return;
- }else{
- ds_main_actmatrinfo_actmatrlist.enableevent = false;
- ds_main_actmatrinfo_actmatrlist.updatecontrol = false;
-
- ds_main_actmatrinfo_actmatrlist.setRowType(ds_main_actmatrinfo_actmatrlist.rowposition, 8);
-
- ds_main_actmatrinfo_actmatrlist.updatecontrol = true;
- ds_main_actmatrinfo_actmatrlist.enableevent = true;
- }
-
- ds_main_actmatrinfo_actmatrlist.enableevent = false;
- ds_main_actmatrinfo_actmatrlist.updatecontrol = false;
-
- grdf_setStatusColumn(ds_main_actmatrinfo_actmatrlist, "status");
-
- ds_main_actmatrinfo_actmatrlist.updatecontrol = true;
- ds_main_actmatrinfo_actmatrlist.enableevent = true;
-
- ds_save_actmasterlist.assign(grdf_getGridUpdateData(switch1.case1.grd_actnmview, "all"));
-
- var oParam = {};
- oParam.id = "TXPIC90011";
- oParam.service = "actmatrapp.ActMatrMngt";
- oParam.method = "reqEndactmatrList";
- oParam.inds = "actmasterlist=ds_save_actmasterlist:A";
- oParam.outds = "";
- oParam.async = false;
- oParam.callback = "cf_TXPIC90011";
- tranf_submit(oParam);
-
- if (arErrorCode.pop("TXPIC90011") > -1){
- sysf_messageBox("삭제","I001");
- }else{
- sysf_messageBox("삭제","E009");
- }
- // model.removeNodeset("/root/main/actmatrinfo/actmatrlist");
- ds_main_actmatrcdinfo_actmatrcdcomnlist.clearData();
- ds_main_actmatrcdinfo_actmatrcddetllist.clearData();
-
- btn_actsearch.click();
- //grd_actnmview.dispatch("ondblclick");
- fSrchGood(switch1.case1.grd_actnmview);
- }
- /****************************************************************************************
- * Components : Button
- * Components ID : btn_tmpsave
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 임시저장버튼 클릭시
- ****************************************************************************************/
- function btn_tmpsave_onclick(obj:Button, e:ClickEventInfo)
- {
- if(utlf_isNull(opt_actcd.value)){
- sysf_messageBox("등록 후에 저장","I008");
- return;
- }
-
- if (fSave("임시 저장", "T") == false) return;
-
- var oParam = {};
- oParam.id = "TXPIC90016";
- oParam.service = "actmatrapp.ActMatrMngt";
- oParam.method = "reqRefSaveFunt";
- oParam.inds = "actmasterlist=ds_save_actmasterlist:A";
- oParam.outds = "";
- oParam.async = false;
- oParam.callback = "cf_TXPIC90016";
- tranf_submit(oParam);
-
- if (arErrorCode.pop("TXPIC90016") > -1){
- sysf_messageBox("임시 저장이","I002");
- fSrchCondInfo();
- }else{
- sysf_messageBox("임시 저장","E009");
- return;
- }
- }
- function cf_TXPIC90016(sSvcId, nErrorCode, sErrorMsg) {
- arErrorCode.push(sSvcId, nErrorCode);
- }
- /****************************************************************************************
- * Components : Button
- * Components ID : btn_init
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 초기화버튼 클릭시
- ****************************************************************************************/
- function btn_init_onclick(obj:Button, e:ClickEventInfo)
- {
- fInitialize();
- }
- /****************************************************************************************
- * Components : Edit
- * Components ID : ipt_actcd
- * Event : onkeyup
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 에디터 키 입력시
- ****************************************************************************************/
- function ipt_actcd_onkeyup(obj:Edit, e:KeyEventInfo)
- {
- if(e.keycode == 13 ){
- obj.updateToDataset();
-
- btn_actsearch.click();
- }
- }
- /****************************************************************************************
- * Components : Dataset
- * Components ID : ds_send_actmatrlist
- * Event : oncolumnchanged
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 데이터셋 값 변경시
- ****************************************************************************************/
- function ds_send_actmatrlist_oncolumnchanged(obj:Dataset, e:DSColChangeEventInfo)
- {
- switch( e.columnid ){
- case "actcd" :
- ds_main_actmatrinfo_actmatrlist.clearData();
- import1.ds_hidden_rscdgood_rscdgoodlist.clearData();
- ds_main_actmatrhistinfo_actmatrhistlist.clearData();
-
- break;
-
- case "actdeptcd" :
- if(!utlf_isNull(ipt_actdeptcd.value)){
-
- fSmCodeValidationCheck("02", "", "actdeptcd,actdeptnm" );
- btn_actsearch.click();
-
- }else{
- ipt_actdeptnm.value = "";
- }
-
- break;
-
- case "actdeptnm" :
- if(!utlf_isNull(ipt_actdeptnm.value)){
- fSmValidationCheck("TRPIC90404", "reqcustomlist", "instcd,usndeptch,actdeptnm",
- ds_main_actmatrcdinfo_actmatrcdcomnlist.getColumn(0, "instcd") +",," + ds_send_actmatrlist.getColumn(0, "actdeptnm")
- ,"","actdeptcd,actdeptnm" ,ipt_actdeptcd,"SMPIC90400","instcd","ipt_instcd");
- }
- break;
-
- case "goodcd" :
- var goodcd = utlf_transNullToEmpty(ds_send_actmatrlist.getColumn(0, "goodcd")).getTrim();
- ipt_searchgoodnm.value = "";
- break;
-
- default :
- break;
- }
- }
- /****************************************************************************************
- * Components : Edit
- * Components ID : ipt_actdeptcd
- * Event : onkeyup
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 에디터 키 입력시
- ****************************************************************************************/
- function ipt_actdeptcd_onkeyup(obj:Edit, e:KeyEventInfo)
- {
- if(e.keycode == 13 && utlf_isNull(ipt_actcd.value)) {
- sysf_messageBox("행위코드와 시행부서는","I003");
- return;
- }
- if(e.keycode == 13) {
- obj.updateToDataset();
-
- btn_actsearch.click();
-
- }
- }
- /****************************************************************************************
- * Components : Button
- * Components ID : btn_actcd
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 돋보기버튼 클릭시
- ****************************************************************************************/
- function btn_actcd_onclick(obj:Button, e:ClickEventInfo)
- {
- frmf_modal("SMPIC90600","SMPIC90600",null,"","","","","","","","","","M"); //yjh1
-
- fSmSet();
- }
- /****************************************************************************************
- * Components : Button
- * Components ID : btn_actdeptcd
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 돋보기버튼 클릭시
- ****************************************************************************************/
- function btn_actdeptcd_onclick(obj:Button, e:ClickEventInfo)
- {
- frmf_modal("SMPIC90400","SMPIC90400",null,"","","","","","","","","","M");
-
- fset();
- }
- /****************************************************************************************
- * Components : Button
- * Components ID : btn_actsearch
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 조회버튼 클릭시
- ****************************************************************************************/
- function btn_actsearch_onclick(obj:Button, e:ClickEventInfo)
- {
- var oParam = {};
- oParam.id = "TRPIC90008";
- oParam.service = "actmatrapp.ActMatrMngt";
- oParam.method = "reqGetShrtAxActMatr";
- oParam.inds = "req=ds_send_actmatrlist";
- oParam.outds = "ds_main_actmatrinfo_actmatrlist=actmatrlist";
- oParam.async = false;
- oParam.callback = "cf_TRPIC90008";
- tranf_submit(oParam);
-
- if( utlf_isNull(ds_main_actmatrinfo_actmatrlist.getColumnInfo("deptflag")) ){
- ds_main_actmatrinfo_actmatrlist.addColumn("deptflag", "string");
- }
- ds_main_actmatrinfo_actmatrlist.addColumn("colBack0", "string");
-
- if(arErrorCode.pop("TRPIC90008") > -1){
-
- for(var i=0;i<ds_main_actmatrinfo_actmatrlist.rowcount;i++){
- var todd = ds_main_actmatrinfo_actmatrlist.getColumn(i, "todd");
-
- if(todd != '99991231' ){
- ds_main_actmatrinfo_actmatrlist.setColumn(i, "colBack0", "#FFFF66");
- }
- }
- fViewToggle(0);
- //grd_actnmview.row = 1;
- //fSrchGood(grd_actnmview);
-
- //model.refresh();
- }
- }
- function cf_TRPIC90008(sSvcId, nErrorCode, sErrorMsg) {
- arErrorCode.push(sSvcId, nErrorCode);
- }
- /****************************************************************************************
- * Components : Tab
- * Components ID : switch1
- * Event : onchanged
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 탭 변경시
- ****************************************************************************************/
- function switch1_onchanged(obj:Tab, e:TabIndexChangeEventInfo)
- {
- switch( e.postindex ){
- case 0 :
- fViewToggle(0);
-
- break;
-
- case 1 :
- ds_send_actmatrhistlist.copyRow(0, ds_main_actmatrinfo_actmatrlist, ds_main_actmatrinfo_actmatrlist.rowposition);
-
- var oParam = {};
- oParam.id = "TRPIC90009";
- oParam.service = "actmatrapp.ActMatrMngt";
- oParam.method = "reqGetHistActMatr";
- oParam.inds = "req=ds_send_actmatrhistlist";
- oParam.outds = "ds_main_actmatrhistinfo_actmatrhistlist=actmatrhistlist";
- oParam.async = false;
- //oParam.callback = "cf_TRPIC90009";
- tranf_submit(oParam);
-
- if (ds_main_actmatrhistinfo_actmatrhistlist.rowcount == 0){
- import1.btn_goodinsert.enable = false;
- //btn_histsave.disabled = true;
- btn_rowdel.enable = false;
- btn_save.enable = false;
- btn_tmpsave.enable = false;
- btn_del.enable = false;
- btn_actend.enable = false;
- }
- btn_actend.enable = false;
- fViewToggle(1);
- break;
-
- default :
- break;
- }
- }
- /****************************************************************************************
- * Components : Button
- * Components ID : btn_save
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 저장버튼 클릭시
- ****************************************************************************************/
- function btn_save_onclick(obj:Button, e:ClickEventInfo)
- {
- var savestatcd = "";
- savestatcd = ds_main_actmatrcdinfo_actmatrcdcomnlist.getColumn(0, "savestatcd");
- if(utlf_isNull(opt_actcd.value)){
- sysf_messageBox("등록 후에 저장","I008");
- return;
- }
- if (savestatcd == "T"){ // 임시저장 -> 저장
- if(ds_main_actmatrinfo_actmatrlist.getColumn(ds_main_actmatrinfo_actmatrlist.rowposition, "tmpflag") == "Y"){
- var retMes = sysf_messageBox("처방집계시 참조됩니다. 적용 하시겠습니까?", "Q999");
- if ( retMes != 6) return;
- }
-
- ds_main_actmatrcdinfo_actmatrcddetllist.enableevent = false;
- ds_main_actmatrcdinfo_actmatrcddetllist.updatecontrol = false;
-
- for(i=0;i<ds_main_actmatrcdinfo_actmatrcddetllist.rowcount;i++){
- if (ds_main_actmatrcdinfo_actmatrcddetllist.getRowType(i) == 1){
- ds_main_actmatrcdinfo_actmatrcddetllist.setRowType(i, 4);
- }
- }
-
- ds_main_actmatrcdinfo_actmatrcddetllist.updatecontrol = true;
- ds_main_actmatrcdinfo_actmatrcddetllist.enableevent = true;
- }
- if (fSave("저장", "S") == false) return;
-
- var oParam = {};
- oParam.id = "TXPIC90016";
- oParam.service = "actmatrapp.ActMatrMngt";
- oParam.method = "reqRefSaveFunt";
- oParam.inds = "actmasterlist=ds_save_actmasterlist:A";
- oParam.outds = "";
- oParam.async = false;
- oParam.callback = "cf_TXPIC90016";
- tranf_submit(oParam);
-
- if (arErrorCode.pop("TXPIC90016") > -1){
- sysf_messageBox("저장이","I002");
- fSrchCondInfo();
- }else{
- sysf_messageBox("저장","E009");
- return;
- }
- }
- /****************************************************************************************
- * Components : Button
- * Components ID : btn_rgst
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 등록버튼 클릭시
- ****************************************************************************************/
- function btn_rgst_onclick(obj:Button, e:ClickEventInfo)
- {
- var retMes = sysf_messageBox("새로", "Q014");
- if ( retMes != 6) return;
-
- frmf_modal("SMPIC90100","SMPIC90100",null,"","","","","","","","","","M"); //yjh1
- if(utlf_isNull(frmf_getParameter("calcscorcd"))){
- return;
- }else{
- btn_tmpsave.enable = true; // 임시저장 활성화
- btn_save.enable = true; // 저장 활성화
- //btn_histsave.disabled = true; // 이력저장 비활성화
- btn_rowdel.enable = true; // 행삭제 활성화
- import1.btn_goodinsert.enable = true; // 행추가 활성화
-
- import1.fActcdSearch(frmf_getParameter("calcscorcd"),
- frmf_getParameter("hngnm"));
- }
- ds_main_actmatrcdinfo_actmatrcddetllist.clearData();
- ds_main_actmatrcdinfo_actmatrcdcomnlist.clearData();
- ds_main_actmatrcdinfo_historylist.clearData();
- //fDisableCheck(false);
- //btn_histsave.disabled = "true"
- fmatch();
-
- ds_main_actmatrcdinfo_actmatrcdcomnlist.addRow();
-
- ds_main_actmatrcdinfo_actmatrcdcomnlist.setColumn(0, "actprcpdrid", frmf_getParameter("actprcpdrid"));
- ds_main_actmatrcdinfo_actmatrcdcomnlist.setColumn(0, "actcd", frmf_getParameter("calcscorcd" ));
- ds_main_actmatrcdinfo_actmatrcdcomnlist.setColumn(0, "actprcpdrnm", frmf_getParameter("actprcpdrnm" ));
- ds_main_actmatrcdinfo_actmatrcdcomnlist.setColumn(0, "actdeptnm", frmf_getParameter("actdeptnm" ));
- ds_main_actmatrcdinfo_actmatrcdcomnlist.setColumn(0, "todd", "99991231");
- ds_main_actmatrcdinfo_actmatrcdcomnlist.setColumn(0, "fromdd", utlf_getCurrentDate());
- ds_main_actmatrcdinfo_actmatrcdcomnlist.setColumn(0, "instcd", sysf_getUserInfo("dutplceinstcd"));
- ds_main_actmatrcdinfo_actmatrcdcomnlist.setColumn(0, "actdeptcd", frmf_getParameter("actdeptcd" ));
- ds_main_actmatrcdinfo_actmatrcdcomnlist.setColumn(0, "savestatnm", "");
- ds_main_actmatrcdinfo_actmatrcdcomnlist.setColumn(0, "hngnm", frmf_getParameter("hngnm" ));
- ds_main_actmatrcdinfo_actmatrcdcomnlist.setColumn(0, "engnm", frmf_getParameter("engnm" ));
- ds_main_actmatrcdinfo_actmatrcdcomnlist.setColumn(0, "deptflag", frmf_getParameter("deptflag" ));
-
- if(ds_main_actmatrcdinfo_actmatrcdcomnlist.getColumn(0, "deptflag") == '1'){
- ds_main_actmatrcdinfo_actmatrcdcomnlist.setColumn(0, "deptflagnm", "구매");
- } else if (ds_main_actmatrcdinfo_actmatrcdcomnlist.getColumn(0, "deptflag") == '2'){
- ds_main_actmatrcdinfo_actmatrcdcomnlist.setColumn(0, "deptflagnm", "약국");
- } else {
- alert(ds_main_actmatrcdinfo_actmatrcdcomnlist.getColumn(0, "deptflag"));
- ds_main_actmatrcdinfo_actmatrcdcomnlist.setColumn(0, "deptflagnm", "-");
- }
- }
- /****************************************************************************************
- * Components : Button
- * Components ID : btn_histsave
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 이력저장버튼 클릭시
- ****************************************************************************************/
- function btn_histsave_onclick(obj:Button, e:ClickEventInfo)
- {
- var frddvalue = ds_main_actmatrinfo_actmatrlist.getColumn(ds_main_actmatrinfo_actmatrlist.rowposition, "fromdd");
- var chngyn = "N";
-
- if(frddvalue == utlf_getCurrentDate()){
- sysf_messageBox("당일 등록한 행위코드는 이력변경을","E001");
- return;
- }
-
- // if( grd_actmaster.valueMatrix(grd_actmaster.row,grd_actmaster.colRef("tmpflag")) == "Y"){
- // messageBox("임시저장한 행위코드는 이력변경을","E001");
- // return;
- // }
- // for(i=grd_actmaster.fixedRows;i<grd_actmaster.rows;i++){
- // if (grd_actmaster.rowStatus(i) != 0){
- // chngyn = "Y";
- // break;
- // }
- // }
- //
- // if( chngyn == "N"){
- // messageBox("한 건이상의 변경 데이타 존재시 이력 저장이","I006");
- // return;
- // }
- //grd_actmaster.clearStatus();
- var retMes = sysf_messageBox("행위코드 이력을","Q002");
- if ( retMes != 6) {
- return;
- }
-
- // for(i=grd_actmaster.fixedRows;i<grd_actmaster.rows;i++){
- // if (grd_actmaster.rowStatus(i) == 0){
- // grd_actmaster.rowStatus(i) = 2;
- // }
- // }
- if (fSave("이력 저장", "H") == false) return;
-
- // 적용일자 설정
- ds_save.setColumn(0, "appdd", ds_main_actmatrcdinfo_actmatrcdcomnlist.getColumn(0, "fromdd"));
-
- var oParam = {};
- oParam.id = "TXPIC90004";
- oParam.service = "actmatrapp.ActMatrMngt";
- oParam.method = "reqExeActMatrHistList";
- oParam.inds = "appdd=ds_save actmasterlist=ds_save_actmasterlist:A";
- oParam.outds = "";
- oParam.async = false;
- oParam.callback = "cf_TXPIC90004";
- tranf_submit(oParam);
-
- if (arErrorCode.pop("TXPIC90004") > -1){
- sysf_messageBox("이력 저장이","I002");
- fSrchCondInfo();
- }else{
- sysf_messageBox("이력 저장","E009");
- return;
- }
- }
- function cf_TXPIC90004(sSvcId, nErrorCode, sErrorMsg) {
- arErrorCode.push(sSvcId, nErrorCode);
- }
- /****************************************************************************************
- * Components : Button
- * Components ID : btn_rowdel
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 행삭제버튼 클릭시
- ****************************************************************************************/
- function btn_rowdel_onclick(obj:Button, e:ClickEventInfo)
- {
- fSelectChoiDel(grd_actmaster);
- }
- /****************************************************************************************
- * Components : ImageViewer
- * Components ID : img2
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 위로버튼 클릭시
- ****************************************************************************************/
- function img2_onclick(obj:ImageViewer, e:ClickEventInfo)
- {
- switch1.position.height = 140;
- //grd_sngllist.attribute("height") = "100";
- switch1.case1.grd_actnmview.position.height = 113;
- switch1.case2.grd_acthisview.position.height = 113;
- }
- /****************************************************************************************
- * Components : ImageViewer
- * Components ID : img1
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 아래로버튼 클릭시
- ****************************************************************************************/
- function img1_onclick(obj:ImageViewer, e:ClickEventInfo)
- {
- switch1.position.height = 510;
- //grd_sngllist.attribute("height") = "505";
- switch1.case1.grd_actnmview.position.height = 483;
- switch1.case2.grd_acthisview.position.height = 483;
-
- switch1.case1.scrollbars = "none";
- switch1.case2.scrollbars = "none";
- }
- /****************************************************************************************
- * Components : Button
- * Components ID : btn_excel
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : Excel저장버튼 클릭시
- ****************************************************************************************/
- function btn_excel_onclick(obj:Button, e:ClickEventInfo)
- {
- if( switch1.case1.grd_actnmview.rowcount > 0 ){
- grdf_exportExcel(switch1.case1.grd_actnmview, "행위재료약품관리", "행위재료약품관리", false, "", "user", false);
- } else {
- sysf_messageBox("조회된 데이터가 ", "I004");
- return;
- }
- }
- /****************************************************************************************
- * Components : Edit
- * Components ID : ipt_actnm
- * Event : onkeydown
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 에디터 키 입력시
- ****************************************************************************************/
- function ipt_actnm_onkeydown(obj:Edit, e:KeyEventInfo)
- {
- if( e.keycode == 13 ){
- obj.updateToDataset();
-
- btn_actsearch.click();
- }
- }
- /****************************************************************************************
- * Components : Grid
- * Components ID : grd_acthisview
- * Event : oncellclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 그리드 셀 클릭시
- ****************************************************************************************/
- function switch1_case2_grd_acthisview_oncellclick(obj:Grid, e:GridClickEventInfo)
- {
- fSrchGood(switch1.case2.grd_acthisview);
- }
- /****************************************************************************************
- * Components : Grid
- * Components ID : grd_actnmview
- * Event : oncellclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 그리드 셀 클릭시
- ****************************************************************************************/
- function switch1_case1_grd_actnmview_oncellclick(obj:Grid, e:GridClickEventInfo)
- {
- fSrchGood(switch1.case1.grd_actnmview);
- }
- /****************************************************************************************
- * Components : Button
- * Components ID : button1
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 돋보기버튼 클릭시
- ****************************************************************************************/
- function button1_onclick(obj:Button, e:ClickEventInfo)
- {
- fSmOpenPopUpListByWndName("ds_send_actmatrlist", ipt_searchgoodcd,"","goodcd,allsizespecid,goodnm,goodflag","SPRSD00210");
- }
- /****************************************************************************************
- * Components : Edit
- * Components ID : ipt_searchgoodcd
- * Event : onkeyup
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 에디터 키 입력시
- ****************************************************************************************/
- function ipt_searchgoodcd_onkeyup(obj:Edit, e:KeyEventInfo)
- {
- if( e.keycode == 13 ){
- obj.updateToDataset();
-
- btn_actsearch.click();
- }
- }
- /****************************************************************************************
- * Components : Grid
- * Components ID : grd_historyview
- * Event : oncellclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 그리드 셀 클릭시
- ****************************************************************************************/
- function grd_historyview_oncellclick(obj:Grid, e:GridClickEventInfo)
- {
- var nRow = ds_main_actmatrcdinfo_historylist.rowposition;
- fSrchGood(grd_historyview);
- ds_main_actmatrcdinfo_historylist.rowposition = nRow;
- }
- ]]></Script>
- </Form>
- </FDL>
|