1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SMMNP04600" position="absolute 0 0 1194 758" titletext="방재고의뢰물품 불출의뢰" onload="SMMNP04600_onload" ontimer="SMMNP04600_ontimer">
- <Layouts>
- <Layout>
- <Div position="absolute 0 0 1194 25" id="grp_tle">
- <Layouts>
- <Layout>
- <Static text="방재고의뢰물품 불출의뢰" position="absolute 0 0 187 23" id="cap_title" class="tit_1" anchor="default"/>
- </Layout>
- </Layouts>
- </Div>
- <Div position="absolute 0 18 1194 758" id="grp_biz" scrollbars="autoboth" anchor="all">
- <Layouts>
- <Layout>
- <Div position="absolute 0 5 1194 65" align="align:center top;" id="grp_sea" class="div_SA" anchor="left top right">
- <Layouts>
- <Layout width="1194" height="60">
- <Static text="조회일자 :" position="absolute 10 33 88 53" id="caption26" class="search_name" anchor="default"/>
- <Button position="absolute 1125 21 1181 41" id="btn_search" class="btn1" text="조회" anchor="top right" onclick="grp_biz_grp_sea_btn_search_onclick"/>
- <Shape position="absolute 1112 15 1118 50" linetype="vertical" id="line13" class="line_4" anchor="default"/>
- <Static text="수 술 방 :" position="absolute 325 9 400 29" id="caption1" class="search_name" anchor="default"/>
- <Static text="물품코드 :" position="absolute 580 9 669 29" id="caption3" class="search_name" anchor="default"/>
- <Button position="absolute 775 9 791 25" id="btn_goodsear" class="icon_search" text="" anchor="default" onclick="grp_biz_grp_sea_btn_goodsear_onclick"/>
- <Edit position="absolute 670 8 770 28" align="align:left middle;" id="ipt_goodcd" class="input_search" anchor="default" onkeyup="grp_biz_grp_sea_ipt_goodcd_onkeyup" autoselect="true"/>
- <Combo position="absolute 476 8 554 27" align="align:left middle;" id="cmb_oproomlist" class="combo_search" innerdataset="@ds_init_oproomlist" datacolumn="oproomnm" codecolumn="oproomcd" anchor="default"/>
- <Edit position="absolute 796 9 1035 29" id="ipt_goodnm" class="input_search" anchor="default" onkeyup="grp_biz_grp_sea_ipt_goodnm_onkeyup" autoselect="true"/>
- <Static text="불출상태 :" position="absolute 580 33 661 53" id="caption4" class="search_name" anchor="default"/>
- <Radio position="absolute 670 34 832 54" id="rdo_deliveflagmngt" class="radio_search" columncount="4" codecolumn="codecolumn" datacolumn="datacolumn" anchor="default" onitemchanged="grp_biz_grp_sea_rdo_deliveflagmngt_onitemchanged">
- <Dataset id="innerdataset">
- <ColumnInfo>
- <Column id="codecolumn"/>
- <Column id="datacolumn"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="codecolumn">
- </Col>
- <Col id="datacolumn">전체</Col>
- </Row>
- <Row>
- <Col id="codecolumn">1</Col>
- <Col id="datacolumn">미불출</Col>
- </Row>
- <Row>
- <Col id="codecolumn">2</Col>
- <Col id="datacolumn">불출</Col>
- </Row>
- </Rows>
- </Dataset>
- </Radio>
- <Static text="부서구분 :" position="absolute 10 9 88 29" id="caption2" class="search_name" anchor="default"/>
- <Static text="의뢰구분 :" position="absolute 325 33 398 53" id="caption5" class="search_name" anchor="default"/>
- <Radio position="absolute 409 32 549 52" id="radio1" columncount="3" codecolumn="codecolumn" datacolumn="datacolumn" anchor="default">
- <Dataset id="innerdataset">
- <ColumnInfo>
- <Column id="codecolumn"/>
- <Column id="datacolumn"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="codecolumn">
- </Col>
- <Col id="datacolumn">전체</Col>
- </Row>
- <Row>
- <Col id="codecolumn">R</Col>
- <Col id="datacolumn">정규</Col>
- </Row>
- <Row>
- <Col id="codecolumn">E</Col>
- <Col id="datacolumn">응급</Col>
- </Row>
- </Rows>
- </Dataset>
- </Radio>
- <CheckBox position="absolute 834 34 919 54" id="checkbox1" anchor="default" text="응급 의뢰용" truevalue="Y" falsevalue="N"/>
- <Static text="~" position="absolute 195 34 207 52" id="caption6" anchor="default"/>
- <Combo position="absolute 408 8 471 27" id="cmb_rosette" class="combo_search" innerdataset="@ds_init_rosettelist" datacolumn="rosettenm" codecolumn="rosettecd" anchor="default" onitemchanged="grp_biz_grp_sea_cmb_rosette_onitemchanged"/>
- <Combo position="absolute 95 8 189 28" id="combo1" class="combo_search" codecolumn="codecolumn" datacolumn="datacolumn" anchor="default">
- <Dataset id="innerdataset">
- <ColumnInfo>
- <Column id="codecolumn"/>
- <Column id="datacolumn"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="codecolumn">O</Col>
- <Col id="datacolumn">수술</Col>
- </Row>
- <Row>
- <Col id="codecolumn">A</Col>
- <Col id="datacolumn">마취</Col>
- </Row>
- <Row>
- <Col id="codecolumn">R</Col>
- <Col id="datacolumn">회복</Col>
- </Row>
- <Row>
- <Col id="codecolumn">E</Col>
- <Col id="datacolumn">안과</Col>
- </Row>
- </Rows>
- </Dataset>
- </Combo>
- <Button position="absolute 1040 9 1093 29" id="button3" class="btn2" text="초기화" anchor="default" onclick="grp_biz_grp_sea_button3_onclick"/>
- <Button position="absolute 996 33 1102 53" id="btn_noprcplist" class="btn5" visible="false" text="방재고 물품조회" anchor="default" onclick="grp_biz_grp_sea_btn_noprcplist_onclick"/>
- <Button position="absolute 927 33 991 53" id="btn_goodsearch" class="btn5" visible="false" text="물품조회" anchor="default" onclick="grp_biz_grp_sea_btn_goodsearch_onclick"/>
- <Calendar id="ipt_fromdd" taborder="2" autoselect="true" autoskip="true" dateformat="yyyy-MM-dd" class="input_s_essential" position="absolute 95 33 190 53" mask="yyyy-mm-dd" anchor="default"/>
- <Calendar id="input1" taborder="3" autoselect="true" dateformat="yyyy-MM-dd" class="input_s_essential" position="absolute 210 33 305 53" mask="yyyy-mm-dd" anchor="default"/>
- </Layout>
- </Layouts>
- </Div>
- <Shape position="absolute 0 91 1194 97" linetype="horizontal" id="line1" class="line_10" anchor="left top right"/>
- <Grid position="absolute 0 96 1194 740" id="grd_acmlgooddelivelist" class="datagrid2" binddataset="ds_main_acmlgooddelivelist" anchor="all" ontextchanged="grp_biz_grd_acmlgooddelivelist_ontextchanged" selecttype="multirow" selectbandtype="default" cellclickbound="control" autoenter="select" onenterdown="grp_biz_grd_acmlgooddelivelist_onenterdown" cellsizingtype="both" extendsizetype="row" autosizingtype="none" onheadclick="grp_biz_grd_acmlgooddelivelist_onheadclick" onselectchanged="grp_biz_grd_acmlgooddelivelist_onselectchanged" onkillfocus="grp_biz_grd_acmlgooddelivelist_onkillfocus" cellsizebandtype="allband">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="25" band="left"/>
- <Column size="45"/>
- <Column size="38"/>
- <Column size="38"/>
- <Column size="38"/>
- <Column size="38"/>
- <Column size="70"/>
- <Column size="38"/>
- <Column size="125"/>
- <Column size="85"/>
- <Column size="85"/>
- <Column size="80"/>
- <Column size="55"/>
- <Column size="38"/>
- <Column size="38"/>
- <Column size="38"/>
- <Column size="38"/>
- <Column size="38"/>
- <Column size="38"/>
- <Column size="38"/>
- <Column size="35"/>
- <Column size="38"/>
- <Column size="38"/>
- <Column size="38"/>
- <Column size="70"/>
- <Column size="50"/>
- <Column size="70"/>
- <Column size="50"/>
- <Column size="150"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- </Columns>
- <Rows>
- <Row size="33" 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="수술 방"/>
- <Cell col="6" text="물품코드"/>
- <Cell col="7" text="SUB"/>
- <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" colspan="2" text="의뢰수량" taborder="undefined"/>
- <Cell col="19" text="의뢰 단위"/>
- <Cell col="20" displaytype="checkbox" edittype="checkbox"/>
- <Cell col="21" text="불출 여부"/>
- <Cell col="22" text="불출 수량"/>
- <Cell col="23" text="미불출 수량"/>
- <Cell col="24" text="의뢰일자"/>
- <Cell col="25" text="의뢰자"/>
- <Cell col="26" text="확정일자"/>
- <Cell col="27" text="확정자"/>
- <Cell col="28" text="미불출사유"/>
- <Cell col="29" text="상태값"/>
- <Cell col="30" text="수술방코드"/>
- <Cell col="31" text="의뢰일자"/>
- <Cell col="32" text="의뢰순번"/>
- <Cell col="33" text="이전수량"/>
- <Cell col="34" text="의뢰물품구분코드"/>
- <Cell col="35" text="이전의뢰수량"/>
- </Band>
- <Band id="body">
- <Cell celltype="head" text="EXPR(currow + 1)"/>
- <Cell col="1" text="bind:reqgoodnm"/>
- <Cell col="2" text="bind:reqflagnm"/>
- <Cell col="3" text="bind:deptflag"/>
- <Cell col="4" text="bind:purcflag"/>
- <Cell col="5" style="align:left top;padding:4 2 2 2;" text="bind:oproomnm" wordwrap="char"/>
- <Cell col="6" text="bind:goodcd"/>
- <Cell col="7" text="bind:allsizespecid"/>
- <Cell col="8" style="align:left top;padding:4 2 2 2;" text="bind:goodnm" wordwrap="char"/>
- <Cell col="9" style="align:left top;padding:4 2 2 2;" text="bind:goodspec" wordwrap="char"/>
- <Cell col="10" style="align:left top;padding:4 2 2 2;" text="bind:goodmodel" wordwrap="char"/>
- <Cell col="11" style="align:left top;padding:4 2 2 2;" text="bind:prodcmpynm" wordwrap="char"/>
- <Cell col="12" text="bind:prcpunit"/>
- <Cell col="13" style="align:right;" text="bind:prcpqty"/>
- <Cell col="14" style="align:right;" text="bind:acmlbaseqty"/>
- <Cell col="15" style="align:right;" text="bind:safestocqty"/>
- <Cell col="16" style="align:right;" text="bind:stocqty"/>
- <Cell col="17" style="align:right;" text="bind:reqexchqty"/>
- <Cell col="18" celltype="body" displaytype="normal" edittype="text" style="align:right;background:#ccffccff;background2:#ccffccff;" text="bind:reqqty" editautoselect="true" editautoskip="false" editacceptsenter="true" editacceptstab="false" editacceptsdirectionkey="false"/>
- <Cell col="19" text="bind:requnit"/>
- <Cell col="20" displaytype="checkbox" edittype="checkbox" text="bind:chkflag" expr="expr:(chkflag == "Y" || chkflag == 1 || chkflag == "true") ? 1 : 0"/>
- <Cell col="21" text="bind:deliveyn"/>
- <Cell col="22" displaytype="text" edittype="text" style="align:right;" text="bind:deliveqty"/>
- <Cell col="23" displaytype="text" edittype="text" style="align:right;" text="bind:undeliveqty"/>
- <Cell col="24" text="bind:reqdd"/>
- <Cell col="25" text="bind:reqid"/>
- <Cell col="26" text="bind:delivedd"/>
- <Cell col="27" text="bind:deliveid"/>
- <Cell col="28" displaytype="text" edittype="text" text="bind:undeliveresn"/>
- <Cell col="29" text="bind:stat"/>
- <Cell col="30" text="bind:oproomcd"/>
- <Cell col="31" text="bind:delivereqdd"/>
- <Cell col="32" text="bind:reqno"/>
- <Cell col="33" text="bind:olddeliveqty"/>
- <Cell col="34" text="bind:reqgoodflag"/>
- <Cell col="35" text="bind:bfreqqty"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Static text="마감일시" position="absolute 0 69 65 91" align="align:center middle;" id="caption7" anchor="default" style="background:#ccecffff;color:black;align:center middle;font:Dotum,9,bold;"/>
- <MaskEdit readonly="true" position="absolute 68 70 178 90" align="align:center middle;" id="output1" mask="####-##-## ##:##" anchor="default" type="string" trimtype="both" class="output" maskchar=" " displaynulltext=" "/>
- <Static text="불출예정일자" position="absolute 187 69 277 91" align="align:center middle;" id="caption8" anchor="default" style="background:#ccecffff;color:black;align:center middle;font:Dotum,9,bold;"/>
- <MaskEdit readonly="true" position="absolute 280 70 365 90" align="align:center middle;" id="output2" mask="####-##-##" anchor="default" type="string" trimtype="both" class="output" maskchar=" " displaynulltext=" "/>
- <Edit readonly="true" position="absolute 370 70 755 90" align="align:left middle;" id="output3" anchor="default" class="output"/>
- <Button position="absolute 1130 71 1194 91" id="btn_reqsave" class="btn5" text="의뢰저장" anchor="top right" onclick="grp_biz_btn_reqsave_onclick"/>
- <Button position="absolute 1130 71 1194 91" id="btn_delivecnfm" class="btn5" visible="false" text="불출확정" anchor="top right" onclick="grp_biz_btn_delivecnfm_onclick"/>
- <Button position="absolute 1000 71 1060 91" id="btn_saveexcel" class="btn7" text="Excel" anchor="top right" onclick="grp_biz_btn_saveexcel_onclick"/>
- <Button position="absolute 875 71 943 91" id="button1" class="btn5" text="응급의뢰" anchor="top right" onclick="grp_biz_button1_onclick" style="color:#ff0000ff;font:Dotum,9,bold;"/>
- <Button position="absolute 946 71 997 91" id="button2" class="btn6" text="출력" anchor="top right" onclick="grp_biz_button2_onclick"/>
- <Button position="absolute 1063 71 1127 91" id="btn_tempsave" class="btn5" text="임시저장" anchor="top right" onclick="grp_biz_btn_tempsave_onclick"/>
- <Button position="absolute 879 71 943 91" id="btn_emplevel" class="btn5" visible="false" text="권한관리" anchor="top right" onclick="grp_biz_btn_emplevel_onclick" style="font:Dotum,9;"/>
- </Layout>
- </Layouts>
- </Div>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_init_cmb_oproomlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="oproomnm" type="STRING"/>
- <Column id="oproomcd" type="STRING"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_init_cmb_rosette" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="rosettenm" type="STRING"/>
- <Column id="rosettecd" type="STRING"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_grd_acmlgooddelivelist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="reqgoodnm" type="STRING"/>
- <Column id="reqflagnm" type="STRING"/>
- <Column id="deptflag" type="STRING"/>
- <Column id="purcflag" type="STRING"/>
- <Column id="oproomnm" type="STRING"/>
- <Column id="goodcd" type="STRING"/>
- <Column id="allsizespecid" type="STRING"/>
- <Column id="goodnm" type="STRING"/>
- <Column id="goodspec" type="STRING"/>
- <Column id="goodmodel" type="STRING"/>
- <Column id="prodcmpynm" type="STRING"/>
- <Column id="prcpunit" type="STRING"/>
- <Column id="prcpqty" type="STRING"/>
- <Column id="acmlbaseqty" type="STRING"/>
- <Column id="safestocqty" type="STRING"/>
- <Column id="stocqty" type="STRING"/>
- <Column id="reqexchqty" type="STRING"/>
- <Column id="reqqty" type="STRING"/>
- <Column id="requnit" type="STRING"/>
- <Column id="chkflag" type="STRING"/>
- <Column id="deliveyn" type="STRING"/>
- <Column id="deliveqty" type="STRING"/>
- <Column id="undeliveqty" type="STRING"/>
- <Column id="reqdd" type="STRING"/>
- <Column id="reqid" type="STRING"/>
- <Column id="delivedd" type="STRING"/>
- <Column id="deliveid" type="STRING"/>
- <Column id="undeliveresn" type="STRING"/>
- <Column id="stat" type="STRING"/>
- <Column id="oproomcd" type="STRING"/>
- <Column id="delivereqdd" type="STRING"/>
- <Column id="reqno" type="STRING"/>
- <Column id="olddeliveqty" type="STRING"/>
- <Column id="reqgoodflag" type="STRING"/>
- <Column id="bfreqqty" type="STRING"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_init_oproomlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="oproomcd" type="STRING" size="256"/>
- <Column id="oproomnm" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="oproomcd"/>
- <Col id="oproomnm"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_init_rosettelist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="rosettenm" type="STRING" size="256"/>
- <Column id="rosettecd" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="rosettenm"/>
- <Col id="rosettecd"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_init_deliveinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="basedayflag" type="STRING" size="256"/>
- <Column id="basedtflag" type="STRING" size="256"/>
- <Column id="message" type="STRING" size="256"/>
- <Column id="basedelive" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="basedayflag"/>
- <Col id="basedtflag"/>
- <Col id="message"/>
- <Col id="basedelive"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_main_cond" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="refdd" type="STRING" size="256"/>
- <Column id="oproomcd" type="STRING" size="256"/>
- <Column id="deliveflag" type="STRING" size="256"/>
- <Column id="goodcd" type="STRING" size="256"/>
- <Column id="allsizespecid" type="STRING" size="256"/>
- <Column id="goodnm" type="STRING" size="256"/>
- <Column id="deptflag" type="STRING" size="256"/>
- <Column id="reqflag" type="STRING" size="256"/>
- <Column id="fromdd" type="STRING" size="256"/>
- <Column id="todd" type="STRING" size="256"/>
- <Column id="referflag" type="STRING" size="256"/>
- <Column id="oprosette" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="refdd"/>
- <Col id="oproomcd"/>
- <Col id="deliveflag"/>
- <Col id="goodcd"/>
- <Col id="allsizespecid"/>
- <Col id="goodnm"/>
- <Col id="deptflag">O</Col>
- <Col id="reqflag"/>
- <Col id="fromdd"/>
- <Col id="todd"/>
- <Col id="referflag"/>
- <Col id="oprosette"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_main_acmlgooddelivelist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false" oncolumnchanged="ds_main_acmlgooddelivelist_oncolumnchanged">
- <ColumnInfo>
- <Column id="reqgoodnm" type="STRING" size="256"/>
- <Column id="reqflagnm" type="STRING" size="256"/>
- <Column id="deptflag" type="STRING" size="256"/>
- <Column id="purcflag" type="STRING" size="256"/>
- <Column id="oproomnm" type="STRING" size="256"/>
- <Column id="goodcd" type="STRING" size="256"/>
- <Column id="allsizespecid" type="STRING" size="256"/>
- <Column id="goodnm" type="STRING" size="256"/>
- <Column id="goodspec" type="STRING" size="256"/>
- <Column id="goodmodel" type="STRING" size="256"/>
- <Column id="prodcmpynm" type="STRING" size="256"/>
- <Column id="prcpunit" type="STRING" size="256"/>
- <Column id="prcpqty" type="STRING" size="256"/>
- <Column id="acmlbaseqty" type="STRING" size="256"/>
- <Column id="exchqty" type="STRING" size="256"/>
- <Column id="safestocqty" type="STRING" size="256"/>
- <Column id="stocqty" type="STRING" size="256"/>
- <Column id="reqexchqty" type="STRING" size="256"/>
- <Column id="reqqty" type="STRING" size="256"/>
- <Column id="requnit" type="STRING" size="256"/>
- <Column id="chkflag" type="STRING" size="256"/>
- <Column id="deliveyn" type="STRING" size="256"/>
- <Column id="deliveqty" type="STRING" size="256"/>
- <Column id="undeliveqty" type="STRING" size="256"/>
- <Column id="reqdd" type="STRING" size="256"/>
- <Column id="reqid" type="STRING" size="256"/>
- <Column id="delivedd" type="STRING" size="256"/>
- <Column id="deliveid" type="STRING" size="256"/>
- <Column id="undeliveresn" type="STRING" size="256"/>
- <Column id="stat" type="STRING" size="256"/>
- <Column id="oproomcd" type="STRING" size="256"/>
- <Column id="delivereqdd" type="STRING" size="256"/>
- <Column id="reqno" type="STRING" size="256"/>
- <Column id="olddeliveqty" type="STRING" size="256"/>
- <Column id="reqgoodflag" type="STRING" size="256"/>
- <Column id="bfreqqty" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="reqgoodnm"/>
- <Col id="reqflagnm"/>
- <Col id="deptflag"/>
- <Col id="purcflag"/>
- <Col id="oproomnm"/>
- <Col id="goodcd"/>
- <Col id="allsizespecid"/>
- <Col id="goodnm"/>
- <Col id="goodspec"/>
- <Col id="goodmodel"/>
- <Col id="prodcmpynm"/>
- <Col id="prcpunit"/>
- <Col id="prcpqty"/>
- <Col id="acmlbaseqty"/>
- <Col id="exchqty"/>
- <Col id="safestocqty"/>
- <Col id="stocqty"/>
- <Col id="reqexchqty"/>
- <Col id="reqqty"/>
- <Col id="requnit"/>
- <Col id="chkflag"/>
- <Col id="deliveyn"/>
- <Col id="deliveqty"/>
- <Col id="undeliveqty"/>
- <Col id="reqdd"/>
- <Col id="reqid"/>
- <Col id="delivedd"/>
- <Col id="deliveid"/>
- <Col id="undeliveresn"/>
- <Col id="stat"/>
- <Col id="oproomcd"/>
- <Col id="delivereqdd"/>
- <Col id="reqno"/>
- <Col id="olddeliveqty"/>
- <Col id="reqgoodflag"/>
- <Col id="bfreqqty"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_main_deliveinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="reqenddt" type="STRING" size="256"/>
- <Column id="delivecnfmdd" type="STRING" size="256"/>
- <Column id="delivemessage" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="reqenddt"/>
- <Col id="delivecnfmdd"/>
- <Col id="delivemessage"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_send_reqdata" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_send_savedata" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_hidden" 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="refflag" type="STRING" size="256"/>
- <Column id="kk" type="STRING" size="256"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_temp_logginlevel" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="usrlevel" type="STRING" size="256"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_main_opPatlist_opPatInfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- </Objects>
- <Bind>
- <BindItem id="item6" compid="grp_biz.grp_sea.input1" propid="value" datasetid="ds_main_cond" columnid="todd"/>
- <BindItem id="item5" compid="grp_biz.grp_sea.ipt_fromdd" propid="value" datasetid="ds_main_cond" columnid="fromdd"/>
- <BindItem id="item0" compid="grp_biz.grp_sea.combo1" propid="value" datasetid="ds_main_cond" columnid="deptflag"/>
- <BindItem id="item1" compid="grp_biz.grp_sea.cmb_rosette" propid="value" datasetid="ds_main_cond" columnid="oprosette"/>
- <BindItem id="item2" compid="grp_biz.grp_sea.cmb_oproomlist" propid="value" datasetid="ds_main_cond" columnid="oproomcd"/>
- <BindItem id="item3" compid="grp_biz.grp_sea.ipt_goodcd" propid="value" datasetid="ds_main_cond" columnid="goodcd"/>
- <BindItem id="item4" compid="grp_biz.grp_sea.ipt_goodnm" propid="value" datasetid="ds_main_cond" columnid="goodnm"/>
- <BindItem id="item7" compid="grp_biz.grp_sea.radio1" propid="value" datasetid="ds_main_cond" columnid="reqflag"/>
- <BindItem id="item8" compid="grp_biz.grp_sea.rdo_deliveflagmngt" propid="value" datasetid="ds_main_cond" columnid="deliveflag"/>
- <BindItem id="item9" compid="grp_biz.grp_sea.checkbox1" propid="value" datasetid="ds_main_cond" columnid="referflag"/>
- <BindItem id="item10" compid="grp_biz.output1" propid="value" datasetid="ds_main_deliveinfo" columnid="reqenddt"/>
- <BindItem id="item11" compid="grp_biz.output2" propid="value" datasetid="ds_main_deliveinfo" columnid="delivecnfmdd"/>
- <BindItem id="item12" compid="grp_biz.output3" propid="value" datasetid="ds_main_deliveinfo" columnid="delivemessage"/>
- </Bind>
- <Script type="xscript4.0"><![CDATA[/***************************************************************************************
- * System Name :
- * Job Name :
- * Creator :
- * Make Date : 2015-11-13
- * Description :
- *---------------------------------------------------------------------------------------
- * Modify Date Modifier Modify Description
- *---------------------------------------------------------------------------------------
- * 2015-11-13 Live Converter TF->XP
- *
- *---------------------------------------------------------------------------------------
- ****************************************************************************************/
- include "com_commonxp::comm_main.xjs";
- //include "emr_opanstxp::SMMNP04600.xjs";
- include "emr_carecomxp::CareCom.xjs";
- var arErrorCode = new HashArray();
- /* ---------------------------------------------------------------------
- 누적물품 의뢰_확정 관리(SMMNP04600.xfm - JScript )
- - Version :
- 1) : Ver.1.00.01
- : Create By 김진명
- : 2007.08.11
- ---------------------------------------------------------------------- */
- /* --------------------------------------------------------*/
- /* model.getValue(); 를 함수로 만들었습니다. */
- /* param1 : node는 grid의 xPath입니다. */
- /* param2 : row는 grid에서 선택한 row값입니다. */
- /* param3 : element는 getvalue할 해당 element 명입니다. */
- /* */
- /* 해당 getvalue값을 return 해줍니다. */
- /* return 하지 않으면 해당값을 가져올 수 없습니다. */
- /* --------------------------------------------------------*/
- function fGetDateAdd(day) {
- var curtDate = utlf_getCurrentDate();
- curtDate = curtDate.substr(0, 8);
- var curtYY = parseInt(curtDate.substr(0, 4), 10);
- var curtMM = parseInt(curtDate.substr(4, 2), 10);
- var curtDD = parseInt(curtDate.substr(6, 2), 10);
- var cntDay = fGetCntDate(curtYY, curtMM);//구하려는 달의 일자수를 가져온다.
- if( (curtDD - day) > 0 ) {
- curtDD = curtDD - day;
- }else {
- if( curtMM == 1 ) {
- curtYY = curtYY - 1;
- curtMM = 12;
- curtDD = cntDay + curtDD - day;
- }else {
- curtMM = curtMM - 1;
- curtDD = cntDay + curtDD - day;
- }
- }
- curtYY = curtYY + "";
- curtMM = curtMM + "";
- curtDD = curtDD + "";
- var bfDay = curtYY + curtMM.getLeftPad(2, '0') + curtDD.getLeftPad(2, '0');
- return bfDay;
- }
- /* --------------------------------------------------*/
- /* type : function */
- /* access : public */
- /* desc : 구하려는 달의 총일수 */
- /* param : 구하려는 달 */
- /* return : 달의 일수 */
- /* --------------------------------------------------*/
- function fGetCntDate(year, month) {
- var cntday = 0;
- switch(month) {
- case 1:
- cntday = 31;
- break;
- case 2:
- if( ( (Number(year) % 4 == 0) && (Number(year) % 100 != 0) ) || (Number(year) % 400 == 0) ) {
- cntday = 29;
- }else {
- cntday = 28;
- }
- break;
- case 3:
- cntday = 31;
- break;
- case 4:
- cntday = 30;
- break;
- case 5:
- cntday = 31;
- break;
- case 6:
- cntday = 30;
- break;
- case 7:
- cntday = 31;
- break;
- case 8:
- cntday = 31;
- break;
- case 9:
- cntday = 30;
- break;
- case 10:
- cntday = 31;
- break;
- case 11:
- cntday = 30;
- break;
- case 12:
- cntday = 31;
- break;
- }
- return cntday;
- }
- /* --------------------------------------------------*/
- /* type : function */
- /* access : public */
- /* desc : 누적물품 의뢰_불출관리 초기화 */
- /* param : */
- /* return : */
- /* --------------------------------------------------*/
- function fInit() {
- var reqenddd, deliveday, fromdd, todd;
- ds_main_acmlgooddelivelist.clearData();
- ds_main_cond.setColumn( 0, "refdd", utlf_getCurrentDate().substr(0, 8));
- //submit("TRMNP04604");
-
- var oParam = {};
- oParam.id = "TRMNP04604";
- oParam.service = "opanstapp.OpAnstStocMngt";
- oParam.method = "reqGetEmpLevel";
- oParam.inds = "";
- oParam.outds = "ds_temp_logginlevel=logginlevel";
- oParam.async = false;
- tranf_submit(oParam);
- var level = ds_temp_logginlevel.getColumn(0, "usrlevel");
- if( ( level == "0" ) ) {//관리자가 아니면 권한관리 버튼 숨김
- grp_biz.grp_sea.btn_noprcplist.visible = true;//비처방 물품조회
- grp_biz.grp_sea.btn_goodsearch.visible = true;//물품조회
- grp_biz.btn_emplevel.visible = false;//권한관리 버튼
- grp_biz.btn_delivecnfm.visible = false;//불출확정 버튼
- grp_biz.btn_reqsave.visible = true;//의뢰저장 버튼
- grp_biz.grd_acmlgooddelivelist.setCellProperty("body", 18, "edittype", "text"); //colDisabled(18) = false;//의뢰량
- grp_biz.grd_acmlgooddelivelist.setCellProperty("body", 22, "edittype", "none"); //.colDisabled(22) = true;//불출수량
- grp_biz.grd_acmlgooddelivelist.setCellProperty("body", 23, "edittype", "none"); //.colDisabled(23) = true;//미불출수량
- grp_biz.grd_acmlgooddelivelist.setCellProperty("body", 28, "edittype", "none"); //.colDisabled(28) = true;//미불출사유
- grp_biz.btn_tempsave.disabled = false;
- this.titletext = "방재고의뢰물품 불출의뢰";
- grp_tle.cap_title.text = "방재고의뢰물품 불출의뢰";
- }else {
- grp_biz.grp_sea.btn_noprcplist.visible = false;//비처방 물품조회
- grp_biz.grp_sea.btn_goodsearch.visible = false;//물품조회
- grp_biz.btn_emplevel.visible = true;
- grp_biz.btn_delivecnfm.visible = true;
- grp_biz.btn_reqsave.visible = false;
- grp_biz.btn_tempsave.disabled = true;
- ds_main_cond.setColumn( 0, "deliveflag", "1");//관리자 미불출자동셋팅
- grp_biz.grd_acmlgooddelivelist.setCellProperty("body", 18, "edittype", "none"); //.colDisabled(18) = true;//의뢰량
- grp_biz.grd_acmlgooddelivelist.setCellProperty("body", 22, "edittype", "text"); //.colDisabled(22) = false;//불출수량
- grp_biz.grd_acmlgooddelivelist.setCellProperty("body", 23, "edittype", "text"); //.colDisabled(23) = false;//미불출수량
- grp_biz.grd_acmlgooddelivelist.setCellProperty("body", 28, "edittype", "text"); //.colDisabled(28) = false;//미불출사유
- this.titletext = "방재고의뢰물품 불출확정";
- grp_tle.cap_title.text = "방재고의뢰물품 불출확정";
- }
- ds_send_reqdata.clearData();
- ds_send_reqdata.copyData(ds_main_cond);
-
- //submit("TRMNP04605", false);//마감정보 조회
-
- var oParam = {};
- oParam.id = "TRMNP04601";
- oParam.service = "opanstapp.OpAnstStocMngt";
- oParam.method = "reqGetDeliveInfo";
- oParam.inds = "reqdata=ds_send_reqdata";
- oParam.outds = "ds_init_deliveinfo=deliveinfo";
- oParam.async = false;
- tranf_submit(oParam);
- var basedayflag = ds_init_deliveinfo.getColumn(0, "basedayflag");
- var basedtflag = ds_init_deliveinfo.getColumn(0, "basedtflag");
- var message = ds_init_deliveinfo.getColumn(0, "message");
- var basedelive = ds_init_deliveinfo.getColumn(0, "basedelive");
- if( basedelive == "2" ) {//월불출
- var maxday = new Date(utlf_getCurrentDate().substr(0,4), utlf_getCurrentDate().substr(4,2),0);
- var maxflag = maxday.getDay();
- var maxdate = maxday.getDateFormat();
- if( parseInt(maxflag) > parseInt(basedayflag) ) {//월말 요일이 기준요일보다 클경우
- reqenddd = getDateAddc(maxdate, (parseInt(basedayflag)-parseInt(maxflag)));
- }else if( parseInt(maxflag) == parseInt(basedayflag)) {//같은 요일일때
- reqenddd = maxdate;
- }else if( parseInt(maxflag) < parseInt(basedayflag)) {// 기준요일이 클때
- reqenddd = getDateAddc(maxdate, -7+(parseInt(basedayflag)-parseInt(maxflag)));
- }
- if( parseInt(basedayflag)+1 == 6 ) {//불출요일이 토요일이면
- deliveday = getDateAddc(reqenddd, 2);
- }else {
- deliveday = getDateAddc(reqenddd, 1);
- }
- }else if( basedelive == "1" ) {//주불출
- var flag = "N";
- var todayflag = utlf_getCurrentWeek(flag);
- if( parseInt(todayflag) > parseInt(basedayflag) ) { //마감요일보다 클때 차주
- reqenddd = getDateAddc(utlf_getCurrentDate(), 7+(parseInt(basedayflag)-parseInt(todayflag)));
- }else if( parseInt(todayflag) < parseInt(basedayflag) ) {//마감요일이 클때
- reqenddd = getDateAddc(utlf_getCurrentDate(), (parseInt(basedayflag)-parseInt(todayflag)));
- }else if( parseInt(todayflag) == parseInt(basedayflag) ) {//같을때
- if( basedtflag > parseInt(utlf_getCurrentTime().substr(0, 4)) ) {//마감시간보다 작을때
- reqenddd = utlf_getCurrentDate().substr(0, 8);
- }else {
- reqenddd = getDateAddc(utlf_getCurrentDate(), 7);
- }
- }
- if( parseInt(basedayflag)+1 == 6 ) {//불출요일이 토요일이면
- deliveday = getDateAddc(reqenddd, 3);
- }else {
- deliveday = getDateAddc(reqenddd, 1);
- }
- }
- ds_main_cond.setColumn( 0, "fromdd", getDateAddc(reqenddd, -6));
- ds_main_cond.setColumn( 0, "todd", reqenddd);
- ds_main_deliveinfo.setColumn( 0, "reqenddt", reqenddd+basedtflag);
- ds_main_deliveinfo.setColumn( 0, "delivecnfmdd", deliveday);
- ds_main_deliveinfo.setColumn( 0, "delivemessage", message );
- //submit("TRMNP03004") // 수술실(Rosette) 가져오기
-
- var oParam = {};
- oParam.id = "TRMNP03004";
- oParam.service = "opanstapp.OpAnstStocMngt";
- oParam.method = "reqGetRosettelist";
- oParam.inds = "";
- oParam.outds = "ds_init_rosettelist=rosettelist";
- oParam.async = false;
- tranf_submit(oParam);
- frmf_addComboItem("grp_biz.grp_sea.cmb_rosette","전체","","above");
- grp_biz.grp_sea.cmb_rosette.updateToDataset();
- grp_biz.grp_sea.cmb_rosette.index = 0;
- ds_send_reqdata.clearData();
- dsf_makeValue( ds_send_reqdata, "opcnfmdd", "string", ds_main_cond.getColumn(0, "fromdd") );
- dsf_makeValue( ds_send_reqdata, "rosette", "string", ds_main_cond.getColumn(0, "oprosette"));
- //submit("TRMNP03002"); // 수술실코드 가져오기
- var oParam = {};
- oParam.id = "TRMNP03002";
- oParam.service = "opanstapp.OpAnstCCrtGoodMngt";
- oParam.method = "reqGetOmcdlist";
- oParam.inds = "req=ds_send_reqdata";
- oParam.outds = "ds_init_oproomlist=oproomlist";
- oParam.async = false;
- tranf_submit(oParam);
-
- frmf_addComboItem("grp_biz.grp_sea.cmb_oproomlist","전체","","above");
- grp_biz.grp_sea.cmb_oproomlist.updateToDataset();
- grp_biz.grp_sea.cmb_oproomlist.index = 0;
- //submit("TRMNP04603", false);
- //frmf_addComboItem("cmb_oproomlist", "전 체", "", "above" );
- //grp_biz.grd_acmlgooddelivelist.fixedcellcheckbox(0, 20) = true;
- //grp_biz.grd_acmlgooddelivelist.explorerbar = "sort";
- //model.refresh();
- }
- /* --------------------------------------------------*/
- /* type : function */
- /* access : public */
- /* desc : 방재고 물품조회 */
- /* param : */
- /* return : */
- /* --------------------------------------------------*/
- function fOnClickSearchGoodPopUp(){
- var xpos = 200; //event.screenX;
- var ypos = 300; //event.screenY-300;
- //2008-08-21 오전 12:28:09 taebum 약속 처방 조회시 현재 수술방의 방재고를 함께 조회하기 위한 파라미터 설정 추가
- var sOproomcd = ds_main_cond.getColumn(0, "oproomcd");
- var sCartGubn = ds_main_cond.getColumn(0, "deptflag");
- if( sOproomcd == "" ) {
- sysf_messageBox("수술방을 선택하지 않았습니다.!", "E000");
- grp_biz.grp_sea.cmb_oproomlist.setFocus();
- return;
- }
- frmf_setParameter("SPMNP01602_oproomcd", sOproomcd);
- frmf_setParameter("SPMNP01602_cartgubn", sCartGubn);
- //open("SPMNP01602" ,"", xpos, ypos, "SPMNP01602", "", "");
- frmf_open("SPMNP01602","SPMNP01602",null,null,null,xpos,ypos,null,null,null,null,null,"M");
-
- }
- /* --------------------------------------------------*/
- /* type : function */
- /* access : public */
- /* desc : 비처방성 물품조회 */
- /* param : */
- /* return : */
- /* --------------------------------------------------*/
- function fOnClickSearch(){
- var xpos = 200; //event.screenX;
- var ypos = 300; //event.screenY-300;
- //2008-08-21 오전 12:28:09 taebum 약속 처방 조회시 현재 수술방의 방재고를 함께 조회하기 위한 파라미터 설정 추가
- var sOproomcd = ds_main_cond.getColumn(0, "oproomcd");
- var sCartGubn = ds_main_cond.getColumn(0, "deptflag");
- if( sOproomcd == "" ) {
- sysf_messageBox("수술방을 선택하지 않았습니다.!", "E000");
- grp_biz.grp_sea.cmb_oproomlist.setFocus();
- return;
- }
- frmf_setParameter("SPMNP01601_oproomcd", sOproomcd);
- frmf_setParameter("SPMNP01601_cartgubn", sCartGubn);
- frmf_setParameter("SPMNP01601_openflag", "4600");
- //open("SPMNP01601" ,"", xpos, ypos, "SPMNP01601", "", "");
- frmf_open("SPMNP01601","SPMNP01601",null,null,null,xpos,ypos,null,null,null,null,null,"M");
- }
- /* --------------------------------------------------*/
- /* type : function */
- /* access : public */
- /* desc : 비처방 물품 리스트 추가 */
- /* param : */
- /* return : */
- /* --------------------------------------------------*/
- function fGoodDataDisplay(pParamList) {
- var iParamData = pParamList.split("▩");
-
- var pData = "", reqflagnm = "";
- var erflag = ds_main_cond.getColumn(0, "referflag");
-
- for (ii = 0; ii < (iParamData.length - 1) ; ii++) {
- var _curRow = ds_main_acmlgooddelivelist.addRow();
- pData = iParamData[ii];
- var iSplit_Value = pData.split("|");
- if( ds_main_cond.getColumn(0, "oproomcd") != iSplit_Value[12] ) {
- sysf_messageBox("물품조회 수술방이 불출의뢰 수술방과 같지않습니다.!", "E000");
- return;
- }
- if( erflag == "Y" ) {
- reqflagnm = "응급";
- }else {
- reqflagnm = "정규";
- }
- ds_main_acmlgooddelivelist.setColumn( _curRow, "reqgoodnm", "비처방");
- ds_main_acmlgooddelivelist.setColumn( _curRow, "reqgoodflag", "N");
- ds_main_acmlgooddelivelist.setColumn( _curRow, "deptflag", ds_main_cond.getColumn(0, "deptflag"));
- ds_main_acmlgooddelivelist.setColumn( _curRow, "purcflag", iSplit_Value[0]);
- ds_main_acmlgooddelivelist.setColumn( _curRow, "oproomnm", grp_biz.grp_sea.cmb_oproomlist.text);
- ds_main_acmlgooddelivelist.setColumn( _curRow, "goodcd", iSplit_Value[1]);
- ds_main_acmlgooddelivelist.setColumn( _curRow, "allsizespecid", iSplit_Value[2]);
- ds_main_acmlgooddelivelist.setColumn( _curRow, "goodnm", iSplit_Value[3]);
- ds_main_acmlgooddelivelist.setColumn( _curRow, "goodspec", iSplit_Value[4]);
- ds_main_acmlgooddelivelist.setColumn( _curRow, "goodmodel", iSplit_Value[5]);
- ds_main_acmlgooddelivelist.setColumn( _curRow, "prodcmpynm", iSplit_Value[6]);
- ds_main_acmlgooddelivelist.setColumn( _curRow, "prcpunit", iSplit_Value[7]);
- ds_main_acmlgooddelivelist.setColumn( _curRow, "prcpqty", 0);
- ds_main_acmlgooddelivelist.setColumn( _curRow, "acmlbaseqty", 1);
- ds_main_acmlgooddelivelist.setColumn( _curRow, "reqflagnm", reqflagnm);
- ds_main_acmlgooddelivelist.setColumn( _curRow, "safestocqty", iSplit_Value[8]);
- ds_main_acmlgooddelivelist.setColumn( _curRow, "stocqty", iSplit_Value[9]);
- ds_main_acmlgooddelivelist.setColumn( _curRow, "reqexchqty", 0);
- ds_main_acmlgooddelivelist.setColumn( _curRow, "reqqty", iSplit_Value[11]);
- ds_main_acmlgooddelivelist.setColumn( _curRow, "bfreqqty", iSplit_Value[11]);
- ds_main_acmlgooddelivelist.setColumn( _curRow, "requnit", iSplit_Value[10]);
- if( parseInt(iSplit_Value[11]) > 0 ) {
- ds_main_acmlgooddelivelist.setColumn( _curRow, "chkflag", "true");
- }else {
- ds_main_acmlgooddelivelist.setColumn( _curRow, "chkflag", "false");
- }
- ds_main_acmlgooddelivelist.setColumn( _curRow, "deliveyn", "N");
- ds_main_acmlgooddelivelist.setColumn( _curRow, "deliveqty", 0);
- ds_main_acmlgooddelivelist.setColumn( _curRow, "undeliveqty", 0);
- ds_main_acmlgooddelivelist.setColumn( _curRow, "reqdd", "");
- ds_main_acmlgooddelivelist.setColumn( _curRow, "reqid", "");
- ds_main_acmlgooddelivelist.setColumn( _curRow, "delivedd", "");
- ds_main_acmlgooddelivelist.setColumn( _curRow, "deliveid", "");
- ds_main_acmlgooddelivelist.setColumn( _curRow, "undeliveresn", "");
- ds_main_acmlgooddelivelist.setColumn( _curRow, "stat", "I");
- ds_main_acmlgooddelivelist.setColumn( _curRow, "oproomcd", iSplit_Value[12]);
- ds_main_acmlgooddelivelist.setColumn( _curRow, "delivereqdd", "");
- ds_main_acmlgooddelivelist.setColumn( _curRow, "reqno", "");
- ds_main_acmlgooddelivelist.setColumn( _curRow, "olddeliveqty", "");
- }
- }
- /* --------------------------------------------------*/
- /* type : function */
- /* access : public */
- /* desc : 누적물품 의뢰_불출관리 조회 */
- /* param : */
- /* return : */
- /* --------------------------------------------------*/
- function fSearch() {
- var oproomcd = ds_main_cond.getColumn(0, "oproomcd");
- var oprosette = ds_main_cond.getColumn(0, "oprosette");
- var referflag = ds_main_cond.getColumn(0, "referflag");//응급의뢰
- var goodcd = ds_main_cond.getColumn(0, "goodcd");
- ds_send_reqdata.clearData();
- ds_send_reqdata.copyData(ds_main_cond);
- var level = ds_temp_logginlevel.getColumn(0, "usrlevel");
- if( (level == "C")||(level == "M") ) {
- grp_biz.btn_delivecnfm.visible = true;
- grp_biz.btn_reqsave.visible = false;
- //submit("TRMNP04602");
- var acmlgoodpos3 = grp_biz.grd_acmlgooddelivelist.hscrollbar.pos;
-
- var oParam = {};
- oParam.id = "TRMNP04602";
- oParam.service = "opanstapp.OpAnstStocMngt";
- oParam.method = "reqGetAcmlGoodReqList";
- oParam.inds = "reqdata=ds_send_reqdata";
- oParam.outds = "ds_main_acmlgooddelivelist=acmlgooddelivelist";
- oParam.async = false;
- oParam.callback = "cf_TRMNP04602";
- tranf_submit(oParam);
-
- ds_main_acmlgooddelivelist.rowposition = -1;
-
- var rowcnt = ds_main_acmlgooddelivelist.rowcount;
-
- grp_biz.grd_acmlgooddelivelist.hscrollbar.pos = acmlgoodpos3;
-
- (utlf_isNull(ds_main_acmlgooddelivelist.getColumnInfo("delivereqdd")) ? dsf_makeValue(ds_main_acmlgooddelivelist, "delivereqdd", "string", "") : "") ;
- (utlf_isNull(ds_main_acmlgooddelivelist.getColumnInfo("reqno")) ? dsf_makeValue(ds_main_acmlgooddelivelist, "reqno", "string", "") : "") ;
- (utlf_isNull(ds_main_acmlgooddelivelist.getColumnInfo("olddeliveqty")) ? dsf_makeValue(ds_main_acmlgooddelivelist, "olddeliveqty", "string", "") : "") ;
-
- if(rowcnt == 0) {
- ds_main_acmlgooddelivelist.clearData();
- sysf_messageBox("조회된 결과가", "I004");
- }
-
-
- //dsf_makeValue(ds_main_acmlgooddelivelist, "delivereqdd", "string", "");
- //dsf_makeValue(ds_main_acmlgooddelivelist, "reqno", "string", "");
- //dsf_makeValue(ds_main_acmlgooddelivelist, "olddeliveqty", "string", "");
-
- if(arErrorCode.pop("TRMNP04602") < 0) {
- sysf_messageBox("조회된 결과가", "I004");
- }
-
- }else {
- if( oproomcd == ""&&oprosette == "" ) {
- sysf_messageBox("수술방이나 Rosette을 선택 하지", "E007");
- grp_biz.grp_sea.cmb_rosette.setFocus();
- return;
- }
- if( referflag == "Y" ) {//응급의뢰용
- if( goodcd == "" ) {
- sysf_messageBox("응급의뢰 조회일 경우 물품코드를 입력하십시오.!", "E000");
- return;
- }
- }
- //submit("TRMNP04601");
- var oParam = {};
- oParam.id = "TRMNP04601";
- oParam.service = "opanstapp.OpAnstStocMngt";
- oParam.method = "reqGetAcmlGoodDeliveList";
- oParam.inds = "reqdata=ds_send_reqdata";
- oParam.outds = "ds_main_acmlgooddelivelist=acmlgooddelivelist";
- oParam.async = false;
- oParam.callback = "cf_TRMNP04601";
- tranf_submit(oParam);
-
- ds_main_acmlgooddelivelist.rowposition = -1;
-
- var rowcnt = ds_main_acmlgooddelivelist.rowcount;
-
- (utlf_isNull(ds_main_acmlgooddelivelist.getColumnInfo("delivereqdd")) ? dsf_makeValue(ds_main_acmlgooddelivelist, "delivereqdd", "string", "") : "") ;
- (utlf_isNull(ds_main_acmlgooddelivelist.getColumnInfo("reqno")) ? dsf_makeValue(ds_main_acmlgooddelivelist, "reqno", "string", "") : "") ;
- (utlf_isNull(ds_main_acmlgooddelivelist.getColumnInfo("olddeliveqty")) ? dsf_makeValue(ds_main_acmlgooddelivelist, "olddeliveqty", "string", "") : "") ;
-
- if(rowcnt == 0) {
- ds_main_acmlgooddelivelist.clearData();
- sysf_messageBox("조회된 결과가", "I004");
- }
-
-
- if(arErrorCode.pop("TRMNP04601") < 0) {
- sysf_messageBox("조회된 결과가", "I004");
- }
- }
- // var refMsg = ds_properties_error.getColumn(0, "msg");
- // var refMsgCnt = refMsg.substring(0, 1);
- // if( refMsgCnt == "0" ) {
- // sysf_messageBox("조회된 결과가", "I004");
- // }
- }
- function cf_TRMNP04602(sSvcId, nErrorCode, sErrorMsg) {
- arErrorCode.push(sSvcId, nErrorCode);
- }
- function cf_TRMNP04601(sSvcId, nErrorCode, sErrorMsg) {
- arErrorCode.push(sSvcId, nErrorCode);
- }
- /* --------------------------------------------------*/
- /* type : function */
- /* access : public */
- /* desc : 누적물품 의뢰_불출관리 의뢰저장 */
- /* param : */
- /* return : */
- /* --------------------------------------------------*/
- function fReqSave(pFlag) {
- var iRows = -1;
- var deliveyn, reqdd, delivedd, oproomcd, stat, goodcd, allsizespecid, reqqty, acmldeliveqty, chkflag, reqgoodflag;
- var cnt = 0, cnt2 = 0;
- iRows = ds_main_acmlgooddelivelist.rowcount;
-
- var acmlgooddelivelist = "status▦reqdd▦delivedd▦oproomcd▦goodcd▦allsizespecid▦reqqty▦reqflag▦reqgoodflag";
- if( pFlag != "E" ) {
- if( ds_main_cond.getColumn(0, "referflag") == "Y" ) {
- sysf_messageBox("응급의뢰로만 저장 할 수 있습니다.!", "E000");
- return;
- }
- }
- for( var i = 0; i < iRows; i++ ) {
- reqdd = ds_main_acmlgooddelivelist.getColumn(i, "reqdd");
- delivedd = ds_main_acmlgooddelivelist.getColumn(i, "delivedd");
- oproomcd = ds_main_acmlgooddelivelist.getColumn(i, "oproomcd");
- goodcd = ds_main_acmlgooddelivelist.getColumn(i, "goodcd");
- allsizespecid = ds_main_acmlgooddelivelist.getColumn(i, "allsizespecid");
- reqqty = ds_main_acmlgooddelivelist.getColumn(i, "reqqty");
- stat = ds_main_acmlgooddelivelist.getColumn(i, "stat");
- chkflag = ds_main_acmlgooddelivelist.getColumn(i, "chkflag");
- deliveyn = ds_main_acmlgooddelivelist.getColumn(i, "deliveyn");
- reqgoodflag = ds_main_acmlgooddelivelist.getColumn(i, "reqgoodflag");
- if( chkflag == "true" ) {
- if( deliveyn == "Y" ) {
- sysf_messageBox("불출된 물품은 의뢰를 ", "E001");
- return;
- }
- if( reqqty > 0 ) {//의뢰량을 입력시에만
- acmlgooddelivelist = acmlgooddelivelist + "▩" + stat + "▦" + reqdd + "▦" + delivedd + "▦" + oproomcd
- + "▦" + goodcd + "▦" + allsizespecid + "▦" + reqqty + "▦" + pFlag + "▦" + reqgoodflag+ "▩" ;
- cnt += 1;
- }else {
- sysf_messageBox("의뢰량을 ", "C001");
- return;
- }
- }
- }
- if( cnt > 0 ) {
- ds_send_reqdata.clearData();
- ds_send_savedata.clearData();
- ds_send_reqdata.copyData(ds_main_cond);
-
- //ds_send.setColumn( 0, "savedata", acmlgooddelivelist);
- dsf_setCSVToDs("ds_send_savedata", acmlgooddelivelist);
- if(ds_send_savedata.rowcount ==0){
- ds_send_savedata.addRow();
- }
- var acmlgoodpos = grp_biz.grd_acmlgooddelivelist.hscrollbar.pos;
- //submit("TXMNP04602");
- var oParam = {};
- oParam.id = "TXMNP04602";
- oParam.service = "opanstapp.OpAnstStocMngt";
- oParam.method = "reqExeSaveAcmlGoodDeliveReq";
- oParam.inds = "reqdata=ds_send_reqdata savedata=ds_send_savedata";
- oParam.outds = "ds_main_acmlgooddelivelist=acmlgooddelivelist";
- oParam.async = false;
- tranf_submit(oParam);
-
- var rowcnt = ds_main_acmlgooddelivelist.rowcount;
-
- grp_biz.grd_acmlgooddelivelist.hscrollbar.pos = acmlgoodpos;
- (utlf_isNull(ds_main_acmlgooddelivelist.getColumnInfo("delivereqdd")) ? dsf_makeValue(ds_main_acmlgooddelivelist, "delivereqdd", "string", "") : "") ;
- (utlf_isNull(ds_main_acmlgooddelivelist.getColumnInfo("reqno")) ? dsf_makeValue(ds_main_acmlgooddelivelist, "reqno", "string", "") : "") ;
- (utlf_isNull(ds_main_acmlgooddelivelist.getColumnInfo("olddeliveqty")) ? dsf_makeValue(ds_main_acmlgooddelivelist, "olddeliveqty", "string", "") : "") ;
-
- if(rowcnt == 0) {
- ds_main_acmlgooddelivelist.clearData();
- }
- }else {
- sysf_messageBox("선택한것이", "I004");
- }
- }
- /* --------------------------------------------------*/
- /* type : function */
- /* access : public */
- /* desc : 누적물품 의뢰_불출관리 불출저장 */
- /* param : */
- /* return : */
- /* --------------------------------------------------*/
- function fDeliveCnfm() {
- var iRows = -1;
- var delivereqdd, delivedd, oproomcd, stat, goodcd, allsizespecid, exchqty, deliveno, deptflag;
- var reqno, reqqty, deliveqty, chkflag, sumqty, undeliveresn, acmlbaseqty, olddeliveqty, undeliveqty, reqgoodflag;
- var cnt = 0;
- iRows = ds_main_acmlgooddelivelist.rowcount;
- var acmlgooddelivelist = "m▦delivereqdd▦oproomcd▦goodcd▦allsizespecid▦reqqty▦deliveqty▦reqno▦undeliveqty▦undeliveresn▦deliveno▦delivedd▦olddeliveqty▦"
- + "exchqty▦deptflag▦difqty▦reqgoodflag";
- for( var i = 0; i < iRows; i++ ) {
- delivereqdd = ds_main_acmlgooddelivelist.getColumn(i, "delivereqdd");
- delivedd = ds_main_acmlgooddelivelist.getColumn(i, "delivedd");
- oproomcd = ds_main_acmlgooddelivelist.getColumn(i, "oproomcd");
- goodcd = ds_main_acmlgooddelivelist.getColumn(i, "goodcd");
- allsizespecid = ds_main_acmlgooddelivelist.getColumn(i, "allsizespecid");
- reqqty = ds_main_acmlgooddelivelist.getColumn(i, "reqqty");
- deliveqty = ds_main_acmlgooddelivelist.getColumn(i, "deliveqty");
- stat = ds_main_acmlgooddelivelist.getColumn(i, "stat");
- chkflag = ds_main_acmlgooddelivelist.getColumn(i, "chkflag");
- reqno = ds_main_acmlgooddelivelist.getColumn(i, "reqno");
- undeliveresn = ds_main_acmlgooddelivelist.getColumn(i, "undeliveresn");
- olddeliveqty = ds_main_acmlgooddelivelist.getColumn(i, "olddeliveqty");
- deliveno = ds_main_acmlgooddelivelist.getColumn(i, "deliveno");
- acmlbaseqty = ds_main_acmlgooddelivelist.getColumn(i, "acmlbaseqty");
- undeliveqty = ds_main_acmlgooddelivelist.getColumn(i, "undeliveqty");
- reqgoodflag = ds_main_acmlgooddelivelist.getColumn(i, "reqgoodflag");
- deptflag = ds_main_cond.getColumn(0, "deptflag");
- var exchqty = (parseInt(deliveqty)-parseInt(olddeliveqty))*parseInt(acmlbaseqty);
- var difqty = parseInt(deliveqty)-parseInt(olddeliveqty);
- if( ds_main_cond.getColumn(0, "deliveflag") == "2" ) {
- stat = "C";//취소
- difqty = -(parseInt(olddeliveqty));
- }
- if( chkflag == "true" ) {
- if( deliveqty > 0 ) {//불출수량이 입력된 경우
- acmlgooddelivelist = acmlgooddelivelist + "▩" + stat + "▦" + delivereqdd + "▦" + oproomcd + "▦" + goodcd + "▦" + allsizespecid + "▦" + reqqty
- + "▦" + deliveqty + "▦" + reqno + "▦" + undeliveqty + "▦" + undeliveresn + "▦" + deliveno + "▦" + delivedd
- + "▦" + olddeliveqty + "▦" + exchqty + "▦" + deptflag + "▦" + difqty + "▦" + reqgoodflag;
- cnt += 1;
- }
- }
- }
- if( cnt > 0 ) {
- ds_send_reqdata.clearData();
- ds_send_savedata.clearData();
- ds_send_reqdata.copyData(ds_main_cond);
-
- //ds_send.setColumn( 0, "savedata", acmlgooddelivelist);
- dsf_setCSVToDs("ds_send_savedata", acmlgooddelivelist);
-
- //submit("TXMNP04601");
- var acmlgoodpos2 = grp_biz.grd_acmlgooddelivelist.hscrollbar.pos;
-
- var oParam = {};
- oParam.id = "TXMNP04601";
- oParam.service = "opanstapp.OpAnstStocMngt";
- oParam.method = "reqExeSaveAcmlGoodCnfm";
- oParam.inds = "reqdata=ds_send_reqdata savedata=ds_send_savedata";
- oParam.outds = "ds_main_acmlgooddelivelist=acmlgooddelivelist";
- oParam.async = false;
- tranf_submit(oParam);
-
- var rowcnt = ds_main_acmlgooddelivelist.rowcount;
-
- grp_biz.grd_acmlgooddelivelist.hscrollbar.pos = acmlgoodpos2;
-
- (utlf_isNull(ds_main_acmlgooddelivelist.getColumnInfo("delivereqdd")) ? dsf_makeValue(ds_main_acmlgooddelivelist, "delivereqdd", "string", "") : "") ;
- (utlf_isNull(ds_main_acmlgooddelivelist.getColumnInfo("reqno")) ? dsf_makeValue(ds_main_acmlgooddelivelist, "reqno", "string", "") : "") ;
- (utlf_isNull(ds_main_acmlgooddelivelist.getColumnInfo("olddeliveqty")) ? dsf_makeValue(ds_main_acmlgooddelivelist, "olddeliveqty", "string", "") : "") ;
-
- if(rowcnt == 0) {
- ds_main_acmlgooddelivelist.clearData();
- }
-
- if( ds_properties_error.getColumn(0, "msg") == "정상적으로 처리되었습니다." ) {
- sysf_messageBox("저장이", "I002");
- }
- }else {
- sysf_messageBox("선택한것이", "I004");
- }
- }
- function SMMNP04600_onload(obj:Form, e:LoadEventInfo)
- {
- frmf_initForm(obj); // 폼 초기화
- //grdf_initGrid(grp_biz.grd_acmlgooddelivelist); //Grid 초기화
-
- //fInit();
- this.setTimer(0, 100);
- }
- function grp_biz_grp_sea_cmb_rosette_onitemchanged(obj:Combo, e:ItemChangeEventInfo)
- {
- ds_send_reqdata.clearData();
- dsf_makeValue( ds_send_reqdata, "opcnfmdd", "string", ds_main_cond.getColumn(0, "fromdd") );
- dsf_makeValue( ds_send_reqdata, "rosette", "string", ds_main_cond.getColumn(0, "oprosette"));
-
- //if(submit("TRMNP03002")){ // 수술실코드 가져오기
-
- var oParam = {};
- oParam.id = "TRMNP03002";
- oParam.service = "opanstapp.OpAnstCCrtGoodMngt";
- oParam.method = "reqGetOmcdlist";
- oParam.inds = "req=ds_send_reqdata";
- oParam.outds = "ds_init_oproomlist=oproomlist";
- oParam.async = false;
- oParam.callback = "cf_TRMNP03002";
- tranf_submit(oParam);
- if(arErrorCode.pop("TRMNP03002") > -1){ // 수술실코드 가져오기
- frmf_addComboItem("grp_biz.grp_sea.cmb_oproomlist","전체","","above");
- grp_biz.grp_sea.cmb_oproomlist.updateToDataset();
- grp_biz.grp_sea.cmb_oproomlist.index = 0;
- }
- }
- function cf_TRMNP03002(sSvcId, nErrorCode, sErrorMsg) {
- arErrorCode.push(sSvcId, nErrorCode);
- }
- function grp_biz_grp_sea_ipt_goodcd_onkeyup(obj:Edit, e:KeyEventInfo)
- {
- if( e.keycode == 13 ){
- frmf_inputEnterKey("grp_biz.grp_sea.btn_search", "onclick", new ClickEventInfo);
- }
- }
- function grp_biz_grp_sea_btn_goodsear_onclick(obj:Button, e:ClickEventInfo)
- {
- var refflag = ds_temp.getColumn(0, "refflag");
- frmf_setParameter("openflag", "STOC");
- if( refflag == "1" ) { /*물품명으로 검색*/
- frmf_setParameter("refnm", ds_main_cond.getColumn(0, "goodnm"));
- frmf_setParameter("refflag", "1");
- }else if( refflag == "2" ) { /*물품코드으로 검색*/
- frmf_setParameter("refnm", "CCR");
- frmf_setParameter("refflag", "2");
- }
- frmf_setParameter("tabflag", "CCR");
- frmf_setParameter("menuparam", "S");
- frmf_setParameter("cartgubn", ds_main_cond.getColumn(0, "deptflag"));
-
- //modal("SMMNP04460" ,"", "100", "100", "SMMNP04460", "", "");
-
- frmf_modal("SMMNP04460","SMMNP04460",null,null,null,100,100,null,null,null,null,null,"M");
- var getData = frmf_getParameter("SendData"); ;//ds_properties_parameters_SendData.getColumn(0, "SendDatavalue");
- if( utlf_isNull(getData)) {
- return;
- }else {
- var getDataTemp1 = getData.split("▩");
-
- var getDataTemp2 = getDataTemp1[0].split("|");
-
- ds_main_cond.setColumn( 0, "goodcd", getDataTemp2[0]);
- ds_main_cond.setColumn( 0, "goodnm", getDataTemp2[1]);
- ds_main_cond.setColumn( 0, "allsizespecid", getDataTemp2[2]);
- //ipt_goodcd.refresh();
- //ipt_goodnm.refresh();
- //ds_main_deliveinfo.clearData(); ds_main_deliveinfo.addRow();
- ds_main_cond.addColumn("reqfromdd", "string");
- ds_main_cond.addColumn("reqtodd", "string");
- var fromdd = ds_main_cond.getColumn(0, "reqfromdd");
- var todd = ds_main_cond.getColumn(0, "reqtodd");
-
- fSearch();
- }
- }
- function grp_biz_grp_sea_ipt_goodnm_onkeyup(obj:Edit, e:KeyEventInfo)
- {
- if(e.keycode == 13) {
- obj.updateToDataset();
- grp_biz.grp_sea.btn_search.click();
- }
- }
- function grp_biz_grp_sea_button3_onclick(obj:Button, e:ClickEventInfo)
- {
- ds_main_cond.setColumn( 0, "goodcd", "");
- ds_main_cond.setColumn( 0, "goodnm", "");
- ds_main_cond.setColumn( 0, "allsizespecid", "");
- //model.refresh();
- }
- function grp_biz_grp_sea_btn_search_onclick(obj:Button, e:ClickEventInfo)
- {
- fSearch();
- }
- function grp_biz_grp_sea_rdo_deliveflagmngt_onitemchanged(obj:Radio, e:ItemChangeEventInfo)
- {
- var level = ds_temp_logginlevel.getColumn(0, "usrlevel");
- if( ( level != "0" ) ) {//관리자만 액션
- if( ds_main_cond.getColumn(0, "deliveflag") == "1" ) {
- grp_biz.btn_delivecnfm.enable = true;
- grp_biz.btn_delivecnfm.text = "불출확정";
- grp_biz.grd_acmlgooddelivelist.setCellProperty("body", 18, "edittype", "none"); //.colDisabled(18) = true;//의뢰량
- grp_biz.grd_acmlgooddelivelist.setCellProperty("body", 22, "edittype", "text"); //.colDisabled(22) = false;//불출수량
- grp_biz.grd_acmlgooddelivelist.setCellProperty("body", 23, "edittype", "text"); //.colDisabled(23) = false;//미불출수량
- grp_biz.grd_acmlgooddelivelist.setCellProperty("body", 28, "edittype", "text"); //.colDisabled(28) = false;//미불출사유
-
- }else if( ds_main_cond.getColumn(0, "deliveflag") == "2" ) {
- grp_biz.btn_delivecnfm.enable = true;
- grp_biz.btn_delivecnfm.text = "불출취소";
- grp_biz.grd_acmlgooddelivelist.setCellProperty("body", 18, "edittype", "none"); //.colDisabled(18) = true;//의뢰량
- grp_biz.grd_acmlgooddelivelist.setCellProperty("body", 22, "edittype", "none"); //.colDisabled(22) = true;//불출수량
- grp_biz.grd_acmlgooddelivelist.setCellProperty("body", 23, "edittype", "none"); //.colDisabled(23) = true;//미불출수량
- grp_biz.grd_acmlgooddelivelist.setCellProperty("body", 28, "edittype", "none"); //.colDisabled(28) = true;//미불출사유
-
- }else {
- grp_biz.btn_delivecnfm.enable = false;
- }
- }
- }
- function grp_biz_grp_sea_btn_goodsearch_onclick(obj:Button, e:ClickEventInfo)
- {
- fOnClickSearch();
- }
- function grp_biz_grp_sea_btn_noprcplist_onclick(obj:Button, e:ClickEventInfo)
- {
- fOnClickSearchGoodPopUp();
- }
- function grp_biz_btn_emplevel_onclick(obj:Button, e:ClickEventInfo)
- {
- //modal("SMMNP04610" ,"", "100", "100", "SMMNP04610", "", "");
- frmf_modal("SMMNP04610","SMMNP04610",null,null,null,100,100,null,null,null,null,null,"M");
- }
- function grp_biz_button2_onclick(obj:Button, e:ClickEventInfo)
- {
- //exeReportPreview("RPMNP04601", "XMLSTR", "", "", "", "", "", "", "", "true");
-
- var objParam = new Object();
-
- var objDOM1 = rptf_createDOM(); //
- rptf_setNodeListToDOM(objDOM1, "/root/main/opPatlist/opPatInfo" , ds_main_opPatlist_opPatInfo);
- objParam.xml_data_XML1 = objDOM1.documentElement.source;
-
- var objDOM2 = rptf_createDOM(); //
- rptf_setNodeListToDOM(objDOM2, "/root/main/acmlgooddelivelist" , this.ds_main_acmlgooddelivelist);
- objParam.xml_data_XML2 = objDOM2.documentElement.source;
- var option = "open=1;save=1;directprint=1;printdialog=0;print=1;zoom=0";
- rptf_exeReportPreview30(["RPMNP04601"],[objParam], option);
-
- }
- function grp_biz_btn_saveexcel_onclick(obj:Button, e:ClickEventInfo)
- {
- // var fileName = window.fileDialog("save", ",", false, "excel", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
- //
- // if (fileName != "")
- // {
- // grd_acmlgooddelivelist.saveExcel(fileName, "SheetName", false, false, "", "", true);
- // }
-
- grdf_exportExcel(grp_biz.grd_acmlgooddelivelist, "excel", "누적물품 불출관리 리스트", false, "" , 'user' , true);
-
- }
- function grp_biz_btn_tempsave_onclick(obj:Button, e:ClickEventInfo)
- {
- var pFlag = "T";
- fReqSave(pFlag);
- }
- function grp_biz_btn_delivecnfm_onclick(obj:Button, e:ClickEventInfo)
- {
- fDeliveCnfm();
- }
- function ds_main_acmlgooddelivelist_oncolumnchanged(obj:Dataset, e:DSColChangeEventInfo)
- {
- if( e.columnid == "chkflag" ){
- obj.setColumn(e.row, "chkflag", (e.newvalue == "true" || e.newvalue == 1) ? "true" : "false");
- tempv = 1;
- }
- if(tempv !=1){
- var iRow = -1;
-
- iRow = e.row
- if( (ds_temp_logginlevel.getColumn(0, "usrlevel") == "C")||(ds_temp_logginlevel.getColumn(0, "usrlevel") == "M") ) {//관리자, 담당자로그인시 불출량, 미불출사유 유무에 따라 체크
- if( ( ( utlf_isNull(ds_main_acmlgooddelivelist.getColumn(iRow, "deliveqty")))
- ||( ds_main_acmlgooddelivelist.getColumn(iRow, "deliveqty") == "0.0")
- ||( ds_main_acmlgooddelivelist.getColumn(iRow, "deliveqty") == "0")
- ||( ds_main_acmlgooddelivelist.getColumn(iRow, "deliveqty") == ds_main_acmlgooddelivelist.getColumn(iRow, "bfdeliveqty") ))
- &&( ds_main_acmlgooddelivelist.getColumn(iRow, "undeliveresn") == "") ){
- ds_main_acmlgooddelivelist.setColumn( iRow , "chkflag", "false");
- iRow++;
- }else {
- ds_main_acmlgooddelivelist.setColumn( iRow , "chkflag", "true");
- iRow++;
- }
- //일반간호사 로그인시 의뢰양 유무에 따라 체크
- }else {
- if( ( utlf_isNull(ds_main_acmlgooddelivelist.getColumn(iRow, "reqqty")))
- ||( ds_main_acmlgooddelivelist.getColumn(iRow, "reqqty") == "0.0")
- ||( ds_main_acmlgooddelivelist.getColumn(iRow, "reqqty") == "0")
- ||( ds_main_acmlgooddelivelist.getColumn(iRow, "reqqty") == ds_main_acmlgooddelivelist.getColumn(iRow, "bfreqqty")) ){
- ds_main_acmlgooddelivelist.setColumn( iRow , "chkflag", "false");
- iRow++;
- }else {
- ds_main_acmlgooddelivelist.setColumn( iRow , "chkflag", "true");
- iRow++;
- }
- }
- if( iRow != ds_main_acmlgooddelivelist.rowcount ) {
- var deliveqty = ds_main_acmlgooddelivelist.getColumn((iRow-1), "deliveqty");
- var reqqty = ds_main_acmlgooddelivelist.getColumn((iRow-1), "reqqty");
-
- if( e.col == 22 ) {
- ds_main_acmlgooddelivelist.setColumn( iRow - 1, "undeliveqty", parseInt(reqqty) - parseInt(deliveqty));
- }
- }
- }
-
- tempv = 0;
- }
- function grp_biz_grd_acmlgooddelivelist_ontextchanged(obj:Grid, e:GridEditTextChangedEventInfo)
- {
-
- }
- function grp_biz_button1_onclick(obj:Button, e:ClickEventInfo)
- {
- var pFlag = "E";
- fReqSave(pFlag);
- }
- function grp_biz_btn_reqsave_onclick(obj:Button, e:ClickEventInfo)
- {
- var pFlag = "R";
- fReqSave(pFlag);
- }
- function grp_biz_grd_acmlgooddelivelist_onenterdown(obj:Grid, e:GridEditEventInfo)
- {
- if( (e.col == 18 && grp_biz.grd_acmlgooddelivelist.getCellProperty("body", 18, "edittype")=="text") ||
- (e.col == 22 && grp_biz.grd_acmlgooddelivelist.getCellProperty("body", 22, "edittype")=="text") ||
- (e.col == 23 && grp_biz.grd_acmlgooddelivelist.getCellProperty("body", 23, "edittype")=="text") ||
- (e.col == 28 && grp_biz.grd_acmlgooddelivelist.getCellProperty("body", 28, "edittype")=="text") ){
- var iRow = -1;
-
- iRow = e.row;
- if( (ds_temp_logginlevel.getColumn(0, "usrlevel") == "C")||(ds_temp_logginlevel.getColumn(0, "usrlevel") == "M") ) {//관리자, 담당자로그인시 불출량, 미불출사유 유무에 따라 체크
- if( ( ( utlf_isNull(ds_main_acmlgooddelivelist.getColumn(iRow, "deliveqty")))
- ||( ds_main_acmlgooddelivelist.getColumn(iRow, "deliveqty") == "0.0")
- ||( ds_main_acmlgooddelivelist.getColumn(iRow, "deliveqty") == "0")
- ||( ds_main_acmlgooddelivelist.getColumn(iRow, "deliveqty") == ds_main_acmlgooddelivelist.getColumn(iRow, "bfdeliveqty") ))
- &&( ds_main_acmlgooddelivelist.getColumn(iRow, "undeliveresn") == "") ){
- ds_main_acmlgooddelivelist.setColumn( iRow , "chkflag", "false");
- iRow++;
- }else {
- ds_main_acmlgooddelivelist.setColumn( iRow , "chkflag", "true");
- iRow++;
- }
- //일반간호사 로그인시 의뢰양 유무에 따라 체크
- }else {
- if( ( utlf_isNull(ds_main_acmlgooddelivelist.getColumn(iRow, "reqqty")))
- ||( ds_main_acmlgooddelivelist.getColumn(iRow, "reqqty") == "0.0")
- ||( ds_main_acmlgooddelivelist.getColumn(iRow, "reqqty") == "0")
- ||( ds_main_acmlgooddelivelist.getColumn(iRow, "reqqty") == ds_main_acmlgooddelivelist.getColumn(iRow, "bfreqqty")) ){
- ds_main_acmlgooddelivelist.setColumn( iRow , "chkflag", "false");
- iRow++;
- }else {
- ds_main_acmlgooddelivelist.setColumn( iRow , "chkflag", "true");
- iRow++;
- }
- }
- if( iRow != ds_main_acmlgooddelivelist.rowcount ) {
- var deliveqty = ds_main_acmlgooddelivelist.getColumn((iRow-1), "deliveqty");
- var reqqty = ds_main_acmlgooddelivelist.getColumn((iRow-1), "reqqty");
-
- if( e.col == 22 ) {
- ds_main_acmlgooddelivelist.setColumn( iRow - 1, "undeliveqty", parseInt(reqqty) - parseInt(deliveqty));
- }
- }
- }
-
- if( ds_main_acmlgooddelivelist.rowposition + 1 != ds_main_acmlgooddelivelist.rowcount ) {
- ds_main_acmlgooddelivelist.rowposition = ds_main_acmlgooddelivelist.rowposition +1;
- grp_biz.grd_acmlgooddelivelist.setCellPos(e.cell);
- grp_biz.grd_acmlgooddelivelist.showEditor(true);
- }else if( ds_main_acmlgooddelivelist.rowposition + 1 == ds_main_acmlgooddelivelist.rowcount ) {
- grp_biz.grd_acmlgooddelivelist.showEditor(false);
- grp_biz.grd_acmlgooddelivelist.showEditor(true);
- }
- }
- function SMMNP04600_ontimer(obj:Form, e:TimerEventInfo)
- {
- if( e.timerid == 0 ){
- this.killTimer( 0 );
- fInit();
- }
- }
- var tempv=0;
- function grp_biz_grd_acmlgooddelivelist_onheadclick(obj:Grid, e:GridClickEventInfo)
- {
- tempv=1;
- grdf_setEventGrid(grp_biz.grd_acmlgooddelivelist, e);
- tempv=0;
-
-
- /*
- ds_main_acmlgooddelivelist.updatecontrol = false;
- ds_main_acmlgooddelivelist.enableevent = false;
- //grdf_gridSort(grp_biz.grd_acmlgooddelivelist,e);
- //grdf_setGridCheckAll(grp_biz.grd_acmlgooddelivelist, e);
- if( 20== e.col ){
- if(utlf_isNull(grp_biz.grd_acmlgooddelivelist.getCellProperty("head", 19, "text")) || grp_biz.grd_acmlgooddelivelist.getCellProperty("head", 19, "text") == "expr:0"){
- // grp_biz.grd_acmlgooddelivelist.setCellProperty("head", 19, "text", "expr:1");
- }else{
- // grp_biz.grd_acmlgooddelivelist.setCellProperty("head", 19, "text", "expr:0");
- }
-
- for(var i =0; i<ds_main_acmlgooddelivelist.rowcount ;i++){
- ds_main_acmlgooddelivelist.setColumn(i, "chkflag", utlf_isNull(grp_biz.grd_acmlgooddelivelist.getCellProperty("head", 19, "text")) || grp_biz.grd_acmlgooddelivelist.getCellProperty("head", 19, "text") == "expr:0" ? "false" : "true");
- }
- }
-
- ds_main_acmlgooddelivelist.enableevent = true;
- ds_main_acmlgooddelivelist.updatecontrol = true;
- */
- }
- //var tempv=0;
- //var iRow = -1;
- //var ecol;
- function grp_biz_grd_acmlgooddelivelist_onselectchanged(obj:Grid, e:GridSelectEventInfo)
- {
- if( (e.oldrow != -1 && e.oldcol == 18 && grp_biz.grd_acmlgooddelivelist.getCellProperty("body", 18, "edittype")=="text") ||
- (e.oldrow != -1 && e.oldcol == 22 && grp_biz.grd_acmlgooddelivelist.getCellProperty("body", 22, "edittype")=="text") ||
- (e.oldrow != -1 && e.oldcol == 23 && grp_biz.grd_acmlgooddelivelist.getCellProperty("body", 23, "edittype")=="text") ||
- (e.oldrow != -1 && e.oldcol == 28 && grp_biz.grd_acmlgooddelivelist.getCellProperty("body", 28, "edittype")=="text") ){
- var iRow = -1;
-
- iRow = e.oldrow;
- if( (ds_temp_logginlevel.getColumn(0, "usrlevel") == "C")||(ds_temp_logginlevel.getColumn(0, "usrlevel") == "M") ) {//관리자, 담당자로그인시 불출량, 미불출사유 유무에 따라 체크
- if( ( ( utlf_isNull(ds_main_acmlgooddelivelist.getColumn(iRow, "deliveqty")))
- ||( ds_main_acmlgooddelivelist.getColumn(iRow, "deliveqty") == "0.0")
- ||( ds_main_acmlgooddelivelist.getColumn(iRow, "deliveqty") == "0")
- ||( ds_main_acmlgooddelivelist.getColumn(iRow, "deliveqty") == ds_main_acmlgooddelivelist.getColumn(iRow, "bfdeliveqty") ))
- &&( ds_main_acmlgooddelivelist.getColumn(iRow, "undeliveresn") == "") ){
- ds_main_acmlgooddelivelist.setColumn( iRow , "chkflag", "false");
- iRow++;
- }else {
- ds_main_acmlgooddelivelist.setColumn( iRow , "chkflag", "true");
- iRow++;
- }
- //일반간호사 로그인시 의뢰양 유무에 따라 체크
- }else {
- if( ( utlf_isNull(ds_main_acmlgooddelivelist.getColumn(iRow, "reqqty")))
- ||( ds_main_acmlgooddelivelist.getColumn(iRow, "reqqty") == "0.0")
- ||( ds_main_acmlgooddelivelist.getColumn(iRow, "reqqty") == "0")
- ||( ds_main_acmlgooddelivelist.getColumn(iRow, "reqqty") == ds_main_acmlgooddelivelist.getColumn(iRow, "bfreqqty")) ){
- ds_main_acmlgooddelivelist.setColumn( iRow , "chkflag", "false");
- iRow++;
- }else {
- ds_main_acmlgooddelivelist.setColumn( iRow , "chkflag", "true");
- iRow++;
- }
- }
- if( iRow != ds_main_acmlgooddelivelist.rowcount ) {
- var deliveqty = ds_main_acmlgooddelivelist.getColumn((iRow-1), "deliveqty");
- var reqqty = ds_main_acmlgooddelivelist.getColumn((iRow-1), "reqqty");
-
- if( e.oldcol == 22 ) {
- ds_main_acmlgooddelivelist.setColumn( iRow - 1, "undeliveqty", parseInt(reqqty) - parseInt(deliveqty));
- }
- }
- }
- /*
- if(grp_biz.grd_acmlgooddelivelist.getCellProperty("Body", e.col, "edittype") == "text"){
- tempv = 1;
- iRow = e.row;
- ecol = e.col;
- }else{
- if(tempv ==1){
- tempv = 0;
-
- if( (ds_temp_logginlevel.getColumn(0, "usrlevel") == "C")||(ds_temp_logginlevel.getColumn(0, "usrlevel") == "M") ) {//관리자, 담당자로그인시 불출량, 미불출사유 유무에 따라 체크
- if( ( ( utlf_isNull(ds_main_acmlgooddelivelist.getColumn(iRow, "deliveqty")))
- ||( ds_main_acmlgooddelivelist.getColumn(iRow, "deliveqty") == "0.0")
- ||( ds_main_acmlgooddelivelist.getColumn(iRow, "deliveqty") == "0")
- ||( ds_main_acmlgooddelivelist.getColumn(iRow, "deliveqty") == ds_main_acmlgooddelivelist.getColumn(iRow, "bfdeliveqty") ))
- &&( ds_main_acmlgooddelivelist.getColumn(iRow, "undeliveresn") == "") ){
- ds_main_acmlgooddelivelist.setColumn( iRow , "chkflag", "false");
- iRow++;
- }else {
- ds_main_acmlgooddelivelist.setColumn( iRow , "chkflag", "true");
- iRow++;
- }
- //일반간호사 로그인시 의뢰양 유무에 따라 체크
- }else {
- if( ( utlf_isNull(ds_main_acmlgooddelivelist.getColumn(iRow, "reqqty")))
- ||( ds_main_acmlgooddelivelist.getColumn(iRow, "reqqty") == "0.0")
- ||( ds_main_acmlgooddelivelist.getColumn(iRow, "reqqty") == "0")
- ||( ds_main_acmlgooddelivelist.getColumn(iRow, "reqqty") == ds_main_acmlgooddelivelist.getColumn(iRow, "bfreqqty")) ){
- ds_main_acmlgooddelivelist.setColumn( iRow , "chkflag", "false");
- iRow++;
- }else {
- ds_main_acmlgooddelivelist.setColumn( iRow , "chkflag", "true");
- iRow++;
- }
- }
- if( iRow != ds_main_acmlgooddelivelist.rowcount ) {
- var deliveqty = ds_main_acmlgooddelivelist.getColumn((iRow-1), "deliveqty");
- var reqqty = ds_main_acmlgooddelivelist.getColumn((iRow-1), "reqqty");
-
- if( ecol == 22 ) {
- ds_main_acmlgooddelivelist.setColumn( iRow - 1, "undeliveqty", parseInt(reqqty) - parseInt(deliveqty));
- }
- }
- }
- }
- */
- }
- function grp_biz_grd_acmlgooddelivelist_onkillfocus(obj:Grid, e:KillFocusEventInfo)
- {/*
- if(tempv ==1){
- tempv = 0;
-
- if( (ds_temp_logginlevel.getColumn(0, "usrlevel") == "C")||(ds_temp_logginlevel.getColumn(0, "usrlevel") == "M") ) {//관리자, 담당자로그인시 불출량, 미불출사유 유무에 따라 체크
- if( ( ( utlf_isNull(ds_main_acmlgooddelivelist.getColumn(iRow, "deliveqty")))
- ||( ds_main_acmlgooddelivelist.getColumn(iRow, "deliveqty") == "0.0")
- ||( ds_main_acmlgooddelivelist.getColumn(iRow, "deliveqty") == "0")
- ||( ds_main_acmlgooddelivelist.getColumn(iRow, "deliveqty") == ds_main_acmlgooddelivelist.getColumn(iRow, "bfdeliveqty") ))
- &&( ds_main_acmlgooddelivelist.getColumn(iRow, "undeliveresn") == "") ){
- ds_main_acmlgooddelivelist.setColumn( iRow , "chkflag", "false");
- iRow++;
- }else {
- ds_main_acmlgooddelivelist.setColumn( iRow , "chkflag", "true");
- iRow++;
- }
- //일반간호사 로그인시 의뢰양 유무에 따라 체크
- }else {
- if( ( utlf_isNull(ds_main_acmlgooddelivelist.getColumn(iRow, "reqqty")))
- ||( ds_main_acmlgooddelivelist.getColumn(iRow, "reqqty") == "0.0")
- ||( ds_main_acmlgooddelivelist.getColumn(iRow, "reqqty") == "0")
- ||( ds_main_acmlgooddelivelist.getColumn(iRow, "reqqty") == ds_main_acmlgooddelivelist.getColumn(iRow, "bfreqqty")) ){
- ds_main_acmlgooddelivelist.setColumn( iRow , "chkflag", "false");
- iRow++;
- }else {
- ds_main_acmlgooddelivelist.setColumn( iRow , "chkflag", "true");
- iRow++;
- }
- }
- if( iRow != ds_main_acmlgooddelivelist.rowcount ) {
- var deliveqty = ds_main_acmlgooddelivelist.getColumn((iRow-1), "deliveqty");
- var reqqty = ds_main_acmlgooddelivelist.getColumn((iRow-1), "reqqty");
-
- if( ecol == 22 ) {
- ds_main_acmlgooddelivelist.setColumn( iRow - 1, "undeliveqty", parseInt(reqqty) - parseInt(deliveqty));
- }
- }
- }
- */
- }
- ]]></Script>
- </Form>
- </FDL>
|