123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SMMNP02000" position="absolute 0 0 1199 791" titletext="일단위 물품 불출" oninit="SMMNP02000_oninit" onload="SMMNP02000_onload">
- <Layouts>
- <Layout>
- <Static id="caption6" text="일단위 물품 불출" class="tit_1" position="absolute 0 0 211 25"/>
- <Shape id="line2" class="line_10" position="absolute 0 114 1195 120" anchor="left top right"/>
- <Shape id="line1" linetype="vertical" class="line_1" position="absolute 0 145 1194 151"/>
- <Div id="grp_sea" anchor="left top right" taborder="1" class="div_SA" position="absolute 0 25 1194 85">
- <Layouts>
- <Layout>
- <Button id="btn_search" taborder="3" text="조회" class="btn1" position="absolute 1125 7 1181 29" anchor="top right" onclick="grp_sea_btn_search_onclick"/>
- <Shape id="line13" linetype="vertical" class="line_4" position="absolute 1110 7 1116 51" anchor="top right"/>
- <Static id="caption4" text="수술방:" class="search_name" position="absolute 14 36 74 53"/>
- <Combo id="cmb_oproomcd" taborder="4" innerdataset="@ds_init_oproomlist" codecolumn="oproomcd" datacolumn="oproomnm" class="combo_search" position="absolute 148 35 293 54"/>
- <Static id="caption29" text="물품코드:" class="search_name" position="absolute 310 35 395 52"/>
- <Edit id="ipt_goodcd" taborder="5" autoselect="true" autoskip="true" class="input_search" position="absolute 395 35 505 54" onkeyup="grp_sea_ipt_goodcd_onkeyup"/>
- <Button id="btn_goodsearch" taborder="6" class="icon_search" position="absolute 515 36 531 52" onclick="grp_sea_btn_goodsearch_onclick"/>
- <Edit id="ipt_goodnm" taborder="7" autoselect="true" autoskip="true" class="input_search" position="absolute 535 35 1035 54" onkeyup="grp_sea_ipt_goodnm_onkeyup"/>
- <Static id="caption5" text="부서:" class="search_name" position="absolute 435 10 495 27"/>
- <Static id="caption9" text="처방구분:" class="search_name" position="absolute 600 10 690 27"/>
- <Combo id="combo1" taborder="8" codecolumn="codecolumn" datacolumn="datacolumn" class="combo_search" position="absolute 686 9 806 28">
- <Dataset id="innerdataset">
- <ColumnInfo>
- <Column id="codecolumn"/>
- <Column id="datacolumn"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="codecolumn"/>
- <Col id="datacolumn">전체</Col>
- </Row>
- <Row>
- <Col id="codecolumn">1</Col>
- <Col id="datacolumn">Suture</Col>
- </Row>
- <Row>
- <Col id="codecolumn">2</Col>
- <Col id="datacolumn">Supplies</Col>
- </Row>
- <Row>
- <Col id="codecolumn">3</Col>
- <Col id="datacolumn">Drug</Col>
- </Row>
- <Row>
- <Col id="codecolumn">4</Col>
- <Col id="datacolumn">Instrument</Col>
- </Row>
- <Row>
- <Col id="codecolumn">5</Col>
- <Col id="datacolumn">처치,행위</Col>
- </Row>
- <Row>
- <Col id="codecolumn">6</Col>
- <Col id="datacolumn">린넨/소모품</Col>
- </Row>
- <Row>
- <Col id="codecolumn">7</Col>
- <Col id="datacolumn">Sheet</Col>
- </Row>
- <Row>
- <Col id="codecolumn">8</Col>
- <Col id="datacolumn">Glove</Col>
- </Row>
- <Row>
- <Col id="codecolumn">9</Col>
- <Col id="datacolumn">일반물품</Col>
- </Row>
- <Row>
- <Col id="codecolumn">10</Col>
- <Col id="datacolumn">린넨</Col>
- </Row>
- <Row>
- <Col id="codecolumn">11</Col>
- <Col id="datacolumn">공용</Col>
- </Row>
- </Rows>
- </Dataset>
- </Combo>
- <Combo id="combo2" taborder="9" codecolumn="codecolumn" datacolumn="datacolumn" class="combo_search" position="absolute 494 9 579 28">
- <Dataset id="innerdataset">
- <ColumnInfo>
- <Column id="codecolumn"/>
- <Column id="datacolumn"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="codecolumn"/>
- <Col id="datacolumn">전체</Col>
- </Row>
- <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 id="button2" taborder="10" text="초기화" class="btn2" position="absolute 1125 35 1178 54" anchor="top right" onclick="grp_sea_button2_onclick"/>
- <Combo id="cmb_rosette" taborder="11" innerdataset="@ds_init_rosettelist" codecolumn="rosettecd" datacolumn="rosettenm" class="combo_search" position="absolute 87 35 145 54" onitemchanged="grp_sea_cmb_rosette_onitemchanged"/>
- <Static id="caption2" text="수술일자:" class="search_name" position="absolute 13 8 86 25"/>
- <Calendar id="ipt_reqfromdd" taborder="12" autoselect="true" autoskip="true" class="input_s_essential" position="absolute 87 8 177 27" dateformat="yyyy-MM-dd" value="null"/>
- <Calendar id="ipt_reqtodd" taborder="13" autoselect="true" autoskip="true" class="input_s_essential" position="absolute 193 8 283 27" dateformat="yyyy-MM-dd"/>
- <Static id="caption11" text="~" class="search_n_b" position="absolute 180 10 192 27"/>
- <Static id="caption1" text="응급구분:" class="search_name" position="absolute 820 10 910 27"/>
- <Radio id="radio1" taborder="14" columncount="2" rowcount="0" codecolumn="codecolumn" datacolumn="datacolumn" position="absolute 902 8 1043 28" onitemchanged="grp_sea_radio1_onitemchanged">
- <Dataset id="innerdataset">
- <ColumnInfo>
- <Column id="codecolumn"/>
- <Column id="datacolumn"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="codecolumn">Y</Col>
- <Col id="datacolumn">응급만</Col>
- </Row>
- <Row>
- <Col id="codecolumn">N</Col>
- <Col id="datacolumn">응급제외</Col>
- </Row>
- </Rows>
- </Dataset>
- </Radio>
- <Button id="button17" taborder="15" text="내일" class="btn2" position="absolute 380 7 422 26" onclick="grp_sea_button17_onclick"/>
- <Button id="button18" taborder="16" text="오늘" class="btn2" position="absolute 335 7 377 26" onclick="grp_sea_button18_onclick"/>
- <Button id="button25" taborder="17" text="어제" class="btn2" position="absolute 290 7 332 26" onclick="grp_sea_button25_onclick"/>
- </Layout>
- </Layouts>
- </Div>
- <Grid id="grd_prcplist" class="datagrid2" taborder="2" binddataset="ds_main_deliveLists_prcplist" useinputpanel="false" position="absolute 0 119 1195 454" anchor="left top right" autoenter="select" cellsizingtype="col" tooltiptype="hover">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="30"/>
- <Column size="35"/>
- <Column size="40"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="80"/>
- <Column size="40"/>
- <Column size="280"/>
- <Column size="125"/>
- <Column size="120"/>
- <Column size="50"/>
- <Column size="50"/>
- <Column size="50"/>
- <Column size="100"/>
- <Column size="68"/>
- <Column size="100"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="100"/>
- <Column size="0"/>
- <Column size="0"/>
- </Columns>
- <Rows>
- <Row size="34" band="head"/>
- <Row size="24"/>
- </Rows>
- <Band id="head">
- <Cell/>
- <Cell col="1" displaytype="checkbox" edittype="checkbox"/>
- <Cell col="2" text="수술 방"/>
- <Cell col="3" text="등록번호"/>
- <Cell col="4" text="환자명"/>
- <Cell col="5" text="물품코드"/>
- <Cell col="6" text="SUB"/>
- <Cell col="7" text="물품명"/>
- <Cell col="8" text="규격"/>
- <Cell col="9" text="모델"/>
- <Cell col="10" text="처방 수량"/>
- <Cell col="11" text="불출 수량"/>
- <Cell col="12" text="미불출"/>
- <Cell col="13" text="제조원"/>
- <Cell col="14" text="단위"/>
- <Cell col="15" text="비고"/>
- <Cell col="16" text="cartgubn"/>
- <Cell col="17" text="prcpdd"/>
- <Cell col="18" text="deptengabbr"/>
- <Cell col="19" text="sexage"/>
- <Cell col="20" text="prcpernm"/>
- <Cell col="21" text="barcdno"/>
- <Cell col="22" text="수술방코드"/>
- <Cell col="23" text="이전불출수량"/>
- </Band>
- <Band id="body">
- <Cell celltype="head" expr="currow+1"/>
- <Cell col="1" displaytype="checkbox" edittype="checkbox" text="bind:chkflag" expr="expr:chkflag == 'true' || chkflag == '1' ? '1' : '0'" tooltiptext="bind:chkflag"/>
- <Cell col="2" style="align:left top;padding:5 2 1 2;" text="bind:oproomnm" wordwrap="word" tooltiptext="bind:oproomnm"/>
- <Cell col="3" text="bind:pid"/>
- <Cell col="4" text="bind:hngnm"/>
- <Cell col="5" style="align:left top;padding:5 2 1 2;" text="bind:goodcd" wordwrap="word" tooltiptext="bind:goodcd"/>
- <Cell col="6" text="bind:allsizespecid" tooltiptext="bind:allsizespecid"/>
- <Cell col="7" style="align:left top;padding:5 2 1 2;" text="bind:goodnm" wordwrap="word" tooltiptext="bind:goodnm"/>
- <Cell col="8" style="align:left top;padding:5 2 1 2;" text="bind:goodspec" wordwrap="word" tooltiptext="bind:goodspec"/>
- <Cell col="9" style="align:left top;padding:5 2 1 2;" text="bind:goodmodel" wordwrap="word" tooltiptext="bind:goodmodel"/>
- <Cell col="10" displaytype="number" text="bind:prcpqty" tooltiptext="bind:prcpqty"/>
- <Cell col="11" displaytype="number" edittype="text" text="bind:deliveqty" editautoselect="true" tooltiptext="bind:deliveqty"/>
- <Cell col="12" displaytype="number" text="bind:undeliveqty" tooltiptext="bind:undeliveqty"/>
- <Cell col="13" style="align:left top;padding:5 2 1 2;" text="bind:prodcmpynm" wordwrap="word" tooltiptext="bind:prodcmpynm"/>
- <Cell col="14" edittype="none" text="bind:prcpunit" tooltiptext="bind:prcpunit"/>
- <Cell col="15" displaytype="text" edittype="text" style="align:left top;padding:5 2 1 2;" text="bind:cmt" wordwrap="word" tooltiptext="bind:cmt"/>
- <Cell col="16" text="bind:cartgubn"/>
- <Cell col="17" text="bind:prcpdd"/>
- <Cell col="18" text="bind:deptengabbr"/>
- <Cell col="19" text="bind:sexage"/>
- <Cell col="20" text="bind:prcpernm"/>
- <Cell col="21" text="bind:barcdno" tooltiptext="bind:barcdno"/>
- <Cell col="22" text="bind:oproomcd"/>
- <Cell col="23" text="bind:bfdeliveqty"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Button id="btn_saveexcel" taborder="3" text="Excel" class="btn7" position="absolute 1069 95 1130 114" anchor="top right" onclick="btn_saveexcel_onclick"/>
- <Button id="btn_cnfm" taborder="4" text="불출확정" class="btn5" position="absolute 1131 95 1195 114" anchor="top right" onclick="btn_cnfm_onclick"/>
- <Button id="button1" taborder="5" text="미불출조회" class="btn2" position="absolute 850 95 925 114" anchor="top right" onclick="button1_onclick"/>
- <Button id="button3" taborder="6" text="수술/마취처방집계" class="btn2" position="absolute 733 95 849 114" anchor="top right" onclick="button3_onclick"/>
- <Static id="caption17" text="처방집계" class="tit_2" position="absolute 0 98 105 119"/>
- <Static id="caption3" text="불출내역" class="tit_2" position="absolute 0 463 90 484"/>
- <Grid id="grd_delivelist" class="datagrid2" taborder="7" binddataset="ds_main_deliveLists_delivelist" useinputpanel="false" position="absolute 0 484 1195 784" autoenter="select" cellsizingtype="col" anchor="all" cellclickbound="cell" onheadclick="grd_delivelist_onheadclick" tooltiptype="hover">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="30"/>
- <Column size="35"/>
- <Column size="40"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="80"/>
- <Column size="35"/>
- <Column size="230"/>
- <Column size="115"/>
- <Column size="70"/>
- <Column size="0"/>
- <Column size="70"/>
- <Column size="100"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="100"/>
- <Column size="0"/>
- <Column size="67"/>
- <Column size="51"/>
- <Column size="100"/>
- <Column size="0"/>
- <Column size="100"/>
- <Column size="100"/>
- <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="0"/>
- </Columns>
- <Rows>
- <Row size="31" band="head"/>
- <Row size="24"/>
- </Rows>
- <Band id="head">
- <Cell/>
- <Cell col="1" displaytype="checkbox" edittype="checkbox" expr="0"/>
- <Cell col="2" text="수술 방"/>
- <Cell col="3" text="등록번호"/>
- <Cell col="4" text="환자명"/>
- <Cell col="5" text="물품코드"/>
- <Cell col="6" text="SUB"/>
- <Cell col="7" text="물품명"/>
- <Cell col="8" text="규격"/>
- <Cell col="9" text="불출/반환 수량"/>
- <Cell col="10" text="미불출"/>
- <Cell col="11" text="불출자"/>
- <Cell col="12" text="취소여부"/>
- <Cell col="13" text="비고"/>
- <Cell col="14" text="순번"/>
- <Cell col="15" text="집계시작일자"/>
- <Cell col="16" text="집계종료일자"/>
- <Cell col="17" text="불출자아이디"/>
- <Cell col="18" text="불출일시"/>
- <Cell col="19" text="확인자"/>
- <Cell col="20" text="확인자"/>
- <Cell col="21" text="확인 수량"/>
- <Cell col="22" text="모델"/>
- <Cell col="23" text="불출일자"/>
- <Cell col="24" text="제조원"/>
- <Cell col="25" text="단위"/>
- <Cell col="26" text="cartgubn"/>
- <Cell col="27" text="oproomcd"/>
- <Cell col="28" text="prcpqty"/>
- <Cell col="29" text="ordseq"/>
- <Cell col="30" text="oprsrvno"/>
- <Cell col="31" text="erprcpflag"/>
- <Cell col="32" text="prcpdd"/>
- <Cell col="33" text="perfdeptnm"/>
- <Cell col="34" text="perfdrnm"/>
- </Band>
- <Band id="body">
- <Cell celltype="head" expr="currow+1"/>
- <Cell col="1" displaytype="checkbox" edittype="expr:delyn == '취소' ? 'none' : 'checkbox'" style="controlbackground:EXPR(delyn == '취소' ? 'silver' : '');controlborder:EXPR(delyn == '취소' ? '1 solid #708090cc' : '');" text="bind:chkflag" expr="expr:chkflag == 'true' || chkflag == '1' ? '1' : '0'" tooltiptext="bind:chkflag"/>
- <Cell col="2" style="align:left top;padding:5 2 1 2;" text="bind:oproomnm" wordwrap="word" tooltiptext="bind:oproomnm"/>
- <Cell col="3" text="bind:pid"/>
- <Cell col="4" text="bind:hngnm"/>
- <Cell col="5" style="align:left top;padding:5 2 1 2;" text="bind:goodcd" wordwrap="word" tooltiptext="bind:goodcd"/>
- <Cell col="6" text="bind:allsizespecid" tooltiptext="bind:allsizespecid"/>
- <Cell col="7" style="align:left top;padding:5 2 1 2;" text="bind:goodnm" wordwrap="word" tooltiptext="bind:goodnm"/>
- <Cell col="8" style="align:left top;padding:5 2 1 2;" text="bind:goodspec" wordwrap="word" tooltiptext="bind:goodspec"/>
- <Cell col="9" text="bind:deliveqty" tooltiptext="bind:deliveqty"/>
- <Cell col="10" text="bind:undeliveqty"/>
- <Cell col="11" text="bind:delivenm" tooltiptext="bind:delivenm"/>
- <Cell col="12" style="color:EXPR(delyn == '취소' ? '#ff0000' : '#000000');color2:EXPR(delyn == '취소' ? '#ff0000' : '#000000');" text="bind:delyn" tooltiptext="bind:delyn"/>
- <Cell col="13" text="bind:cmt"/>
- <Cell col="14" text="bind:seqno"/>
- <Cell col="15" text="bind:sumfromdd"/>
- <Cell col="16" text="bind:sumtodd"/>
- <Cell col="17" text="bind:deliveid"/>
- <Cell col="18" text="bind:delivetm" mask="####-##-## ##:##" maskchar=" " tooltiptext="bind:delivetm"/>
- <Cell col="19" text="bind:cnfmid"/>
- <Cell col="20" text="bind:cnfmnm" tooltiptext="bind:cnfmnm"/>
- <Cell col="21" displaytype="text" edittype="expr:delyn == '취소' ? 'text' : 'none'" text="bind:cnfmqty" editautoselect="true" tooltiptext="bind:cnfmqty"/>
- <Cell col="22" style="align:left top;padding:5 2 1 2;" text="bind:goodmodel" wordwrap="word" tooltiptext="bind:goodmodel"/>
- <Cell col="23" text="bind:delivedd" mask="yyyy-mm-dd"/>
- <Cell col="24" style="align:left top;padding:5 2 1 2;" text="bind:prodcmpynm" wordwrap="word" tooltiptext="bind:prodcmpynm"/>
- <Cell col="25" edittype="none" text="bind:prcpunit" tooltiptext="bind:prcpunit"/>
- <Cell col="26" text="bind:cartgubn"/>
- <Cell col="27" text="bind:oproomcd"/>
- <Cell col="28" text="bind:prcpqty"/>
- <Cell col="29" text="bind:ordseq"/>
- <Cell col="30" text="bind:oprsrvno"/>
- <Cell col="31" text="bind:erprcpflag"/>
- <Cell col="32" text="bind:prcpdd"/>
- <Cell col="33" text="bind:perfdeptnm"/>
- <Cell col="34" text="bind:perfdrnm"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Shape id="line3" linetype="horizontal" class="line_10" position="absolute 0 479 1195 485" anchor="left top right"/>
- <Button id="btn_cnclcnfm" taborder="8" text="확정취소" class="btn5" position="absolute 1131 460 1195 479" anchor="top right" onclick="btn_cnclcnfm_onclick"/>
- <Button id="button4" taborder="9" text="Excel" class="btn7" position="absolute 1069 460 1130 479" anchor="top right" onclick="button4_onclick"/>
- <Button id="button5" taborder="10" text="출력" class="btn6" position="absolute 926 95 976 114" anchor="top right" onclick="button5_onclick"/>
- <Button id="button6" taborder="11" text="출력" class="btn6" position="absolute 1018 460 1068 479" anchor="top right" onclick="button6_onclick"/>
- <Button id="button7" taborder="12" text="전체출력" class="btn6" position="absolute 937 460 1017 479" anchor="top right" onclick="button7_onclick"/>
- <Button id="button8" taborder="13" text="반납확인" class="btn5" position="absolute 872 460 936 479" anchor="top right" onclick="button8_onclick"/>
- <Button id="button9" taborder="14" text="프린터설정" class="btn6" position="absolute 641 95 732 114" anchor="top right" onclick="button9_onclick"/>
- <Static id="caption7" text="현재사용자 :" position="absolute 488 96 573 114" anchor="top right" style="font:Dotum,9,bold;"/>
- <Edit id="opt_usernm" taborder="15" readonly="true" class="output_defualt" position="absolute 573 95 638 114" anchor="top right" style="font:Dotum,9,bold;"/>
- <Button id="button10" taborder="16" text="바코드출력" class="btn6" position="absolute 977 95 1068 114" anchor="top right" onclick="button10_onclick"/>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_main_cond" 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="goodcd" type="STRING" size="256"/>
- <Column id="goodnm" type="STRING" size="256"/>
- <Column id="allsizespecid" type="STRING" size="256"/>
- <Column id="refdeptflag" type="STRING" size="256"/>
- <Column id="cureflag" type="STRING" size="256"/>
- <Column id="oprosette" type="STRING" size="256"/>
- <Column id="opfromdd" type="STRING" size="256"/>
- <Column id="optodd" type="STRING" size="256"/>
- <Column id="tabflag" type="STRING" size="256"/>
- <Column id="subflag" type="STRING" size="256"/>
- <Column id="erprcpflag" type="STRING" size="256"/>
- <Column id="usernm" type="STRING" size="256"/>
- <Column id="goodflag" type="STRING" size="256"/>
- <Column id="deptflag" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="oproomcd"/>
- <Col id="goodcd"/>
- <Col id="goodnm"/>
- <Col id="allsizespecid"/>
- <Col id="refdeptflag">O</Col>
- <Col id="cureflag"/>
- <Col id="oprosette"/>
- <Col id="opfromdd"/>
- <Col id="optodd"/>
- <Col id="tabflag">CCR</Col>
- <Col id="subflag">M</Col>
- <Col id="erprcpflag">Y</Col>
- <Col id="usernm"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_main_deliveLists_prcplist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false" oncolumnchanged="ds_main_deliveLists_prcplist_oncolumnchanged">
- <ColumnInfo>
- <Column id="chkflag" type="STRING" size="256" sumtext="01 chkflag"/>
- <Column id="oproomnm" type="STRING" size="256" sumtext="02 수술방"/>
- <Column id="goodcd" type="STRING" size="256" sumtext="03 물품코드"/>
- <Column id="allsizespecid" type="STRING" size="256" sumtext="04 사이즈"/>
- <Column id="goodnm" type="STRING" size="256" sumtext="05 물품명"/>
- <Column id="goodspec" type="STRING" size="256" sumtext="06 규격"/>
- <Column id="goodmodel" type="STRING" size="256" sumtext="07 모델"/>
- <Column id="prodcmpynm" type="STRING" size="256" sumtext="08 제조원"/>
- <Column id="prcpunit" type="STRING" size="256" sumtext="09 처방단위"/>
- <Column id="prcpqty" type="STRING" size="256" sumtext="10 처방량"/>
- <Column id="deliveqty" type="STRING" size="256" sumtext="11 불출량"/>
- <Column id="undeliveqty" type="STRING" size="256" sumtext="12 미불출"/>
- <Column id="cmt" type="STRING" size="256" sumtext="13 CMT"/>
- <Column id="oproomcd" type="STRING" size="256" sumtext="14 방코드"/>
- <Column id="bfdeliveqty" type="STRING" size="256" sumtext="15 이전불출수량"/>
- <Column id="pid" type="STRING" size="256" sumtext="16 등록번호"/>
- <Column id="hngnm" type="STRING" size="256" sumtext="17 환자명"/>
- <Column id="cartgubn" type="STRING" size="256" sumtext="18 cart구분"/>
- <Column id="ordseq" type="STRING" size="256" sumtext="19 처방순번"/>
- <Column id="oprsrvno" type="STRING" size="256" sumtext="20 수술번호"/>
- <Column id="erprcpflag" type="STRING" size="256" sumtext="21 응급처방구분"/>
- <Column id="prcpdd" type="STRING" size="256" sumtext="22 처방일자"/>
- <Column id="deptengabbr" type="STRING" size="256" sumtext="23 집도과"/>
- <Column id="sexage" type="STRING" size="256" sumtext="24 성별"/>
- <Column id="prcpernm" type="STRING" size="256" sumtext="25 처방자"/>
- <Column id="opcnfmdd" type="STRING" size="256" sumtext="26 수술확정일"/>
- <Column id="barcdno" type="STRING" size="256" sumtext="27 바코드"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_main_deliveLists_delivelist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false" oncolumnchanged="ds_main_deliveLists_delivelist_oncolumnchanged">
- <ColumnInfo>
- <Column id="chkflag" type="STRING" size="256" sumtext="01 chkflag"/>
- <Column id="oproomnm" type="STRING" size="256" sumtext="02 수술방"/>
- <Column id="goodcd" type="STRING" size="256" sumtext="03 물품코드"/>
- <Column id="allsizespecid" type="STRING" size="256" sumtext="04 사이즈"/>
- <Column id="goodnm" type="STRING" size="256" sumtext="05 물품명"/>
- <Column id="goodspec" type="STRING" size="256" sumtext="06 규격"/>
- <Column id="goodmodel" type="STRING" size="256" sumtext="07 모델"/>
- <Column id="prodcmpynm" type="STRING" size="256" sumtext="08 제조원"/>
- <Column id="prcpunit" type="STRING" size="256" sumtext="09 처방단위"/>
- <Column id="prcpqty" type="STRING" size="256" sumtext="10 처방량"/>
- <Column id="deliveqty" type="STRING" size="256" sumtext="11 불출량"/>
- <Column id="undeliveqty" type="STRING" size="256" sumtext="12 미불출"/>
- <Column id="delivetm" type="STRING" size="256" sumtext="13 불출일자"/>
- <Column id="delivenm" type="STRING" size="256" sumtext="14 불출자"/>
- <Column id="oproomcd" type="STRING" size="256" sumtext="15 방코드"/>
- <Column id="deliveid" type="STRING" size="256" sumtext="16 불출자아이디"/>
- <Column id="cmt" type="STRING" size="256" sumtext="17 CMT"/>
- <Column id="seqno" type="STRING" size="256" sumtext="18 순번"/>
- <Column id="sumfromdd" type="STRING" size="256" sumtext="19 집계시작일자"/>
- <Column id="sumtodd" type="STRING" size="256" sumtext="20 집계종료일자"/>
- <Column id="delivedd" type="STRING" size="256" sumtext="21 불출일자"/>
- <Column id="pid" type="STRING" size="256" sumtext="22 등록번호"/>
- <Column id="hngnm" type="STRING" size="256" sumtext="23 환자명"/>
- <Column id="cartgubn" type="STRING" size="256" sumtext="24 cart구분"/>
- <Column id="ordseq" type="STRING" size="256" sumtext="25 처방순번"/>
- <Column id="oprsrvno" type="STRING" size="256" sumtext="26 수술번호"/>
- <Column id="erprcpflag" type="STRING" size="256" sumtext="27 응급처방구분"/>
- <Column id="prcpdd" type="STRING" size="256" sumtext="28 처방일자"/>
- <Column id="perfdeptnm" type="STRING" size="256" sumtext="29 집도과"/>
- <Column id="perfdrnm" type="STRING" size="256" sumtext="30 집도의사"/>
- <Column id="delyn" type="STRING" size="256" sumtext="31 취소여부"/>
- <Column id="cnfmid" type="STRING" size="256" sumtext="32 확인자ID"/>
- <Column id="cnfmnm" type="STRING" size="256" sumtext="33 확인자명"/>
- <Column id="cnfmqty" type="STRING" size="256" sumtext="34 확인수량"/>
- </ColumnInfo>
- </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="rosettecd" type="STRING" size="256" sumtext="rosettecd"/>
- <Column id="rosettenm" type="STRING" size="256" sumtext="rosettenm"/>
- </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" sumtext="수술방코드"/>
- <Column id="oproomnm" type="STRING" size="256" sumtext="수술방명"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_viewctrl_viewctrllist_viewctrlinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="cdnm" type="STRING" size="256" sumtext="코드명"/>
- <Column id="cdid" type="STRING" size="256" sumtext="코드아이디"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_send" 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"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- <Dataset id="ds_barcdprntsetup" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="prntsetupinfo" type="STRING" size="256" sumtext="코드"/>
- <Column id="macaddr" type="STRING" size="256" sumtext="macaddr"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_nodes" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_temp_barcdlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_send_reqdata" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_send_savedata" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_main_deliveLists_barcdlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_codelist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_send_report" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_hidden_deliveLists_delivelist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_send_savedata_savelist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- </Objects>
- <Bind>
- <BindItem id="item0" compid="grp_sea.ipt_reqfromdd" propid="value" datasetid="ds_main_cond" columnid="opfromdd"/>
- <BindItem id="item1" compid="grp_sea.ipt_reqtodd" propid="value" datasetid="ds_main_cond" columnid="optodd"/>
- <BindItem id="item2" compid="grp_sea.combo2" propid="value" datasetid="ds_main_cond" columnid="refdeptflag"/>
- <BindItem id="item3" compid="grp_sea.combo1" propid="value" datasetid="ds_main_cond" columnid="cureflag"/>
- <BindItem id="item4" compid="grp_sea.radio1" propid="value" datasetid="ds_main_cond" columnid="erprcpflag"/>
- <BindItem id="item5" compid="grp_sea.ipt_goodnm" propid="value" datasetid="ds_main_cond" columnid="goodnm"/>
- <BindItem id="item6" compid="grp_sea.ipt_goodcd" propid="value" datasetid="ds_main_cond" columnid="goodcd"/>
- <BindItem id="item7" compid="grp_sea.cmb_oproomcd" propid="value" datasetid="ds_main_cond" columnid="oproomcd"/>
- <BindItem id="item8" compid="grp_sea.cmb_rosette" propid="value" datasetid="ds_main_cond" columnid="oprosette"/>
- <BindItem id="item9" compid="opt_usernm" propid="value" datasetid="ds_main_cond" columnid="usernm"/>
- </Bind>
- <Script type="xscript4.0"><![CDATA[/***************************************************************************************
- * System Name :
- * Job Name :
- * Creator :
- * Make Date : 2016-10-12
- * Description :
- *---------------------------------------------------------------------------------------
- * Modify Date Modifier Modify Description
- *---------------------------------------------------------------------------------------
- * 2016-10-12 Live Converter TF->XP
- *
- *---------------------------------------------------------------------------------------
- ****************************************************************************************/
- include "com_commonxp::comm_main.xjs";
- include "emr_carecomxp::CareCom.xjs";
- include "emr_opanstxp::SMMNP02000.xjs";
- include "com_commodulexp::SSZFM00901.xjs";
- include "emr_carecomxp::ENRSignEngine.xjs";
- function SMMNP02000_oninit(obj:Form, e:InitEventInfo)
- {
- frmf_initForm(obj);
- grdf_initGrid(grd_delivelist);
- grdf_initGrid(grd_prcplist);
- }
- function SMMNP02000_onload(obj:Form, e:LoadEventInfo)
- {
- fInit();
- }
- function fInit()
- {
- var curday = new Date();
- var dayflag = curday.getDay();
- var curdate = curday.getDateFormat();
- ds_main_cond.setColumn(0, "opfromdd", utlf_getCurrentDate());
- ds_main_cond.setColumn(0, "optodd", utlf_getCurrentDate());
- frmf_inputEnterKey("grp_sea.radio1", "onitemchanged", new ItemChangeEventInfo );
- // grd_prcplist.explorerbar = "sort";
- // grd_prcplist.fixedcellcheckbox(0,1) = true;
- // grd_delivelist.explorerbar = "sort";
- // grd_delivelist.fixedcellcheckbox(0,1) = true;
- var oParam = {};
- oParam.id = "TRMNP05001";
- oParam.service = "opanstapp.OpAnstStocMngt";
- oParam.method = "reqGetOpRoomCdList";
- oParam.inds = "";
- oParam.outds = "ds_init_oproomlist=oproomlist";
- oParam.async = false;
- //oParam.callback = "cf_TRMNP05001";
- tranf_submit(oParam);
- frmf_addComboItem("grp_sea.cmb_oproomcd","전체","","above");
- grp_sea.cmb_oproomcd.value = "";
-
- var oParam = {};
- oParam.id = "TRMNP03004";
- oParam.service = "opanstapp.OpAnstStocMngt";
- oParam.method = "reqGetRosettelist";
- oParam.inds = "";
- oParam.outds = "ds_init_rosettelist=rosettelist";
- oParam.async = false;
- //oParam.callback = "cf_TRMNP03004";
- tranf_submit(oParam);
- frmf_addComboItem("grp_sea.cmb_rosette","전체","","above");
-
- dsf_makeValue(ds_send, "cdgrupid", "string", "038", 0);
-
- var oParam = {};
- oParam.id = "TRMNP00323";
- oParam.service = "opanstapp.OpAnstRec";
- oParam.method = "reqGetViewerCtrlInfo";
- oParam.inds = "req=ds_send";
- oParam.outds = "ds_viewctrl_viewctrllist_viewctrlinfo=viewctrlinfo";
- oParam.async = false;
- //oParam.callback = "cf_TRMNP00323";
- tranf_submit(oParam);
- var cdgrupid = "'U08'";
- fGetNursHardCdInfo(cdgrupid, utlf_getCurrentDate());
-
- opt_usernm.value = sysf_getUserInfo("usernm");
- fSearch();
- }
- function fSearch()
- {
- var oParam = {};
- oParam.id = "TRMNP02001";
- oParam.service = "opanstapp.OpAnstStocMngt";
- oParam.method = "reqGetPrcpDeliveList";
- oParam.inds = "reqdata=ds_main_cond";
- oParam.outds = "ds_main_deliveLists_prcplist=prcplist ds_main_deliveLists_delivelist=delivelist";
- oParam.async = false;
- //oParam.callback = "cf_TRMNP02001";
- tranf_submit(oParam);
-
- if( utlf_isNull(ds_main_deliveLists_prcplist.getColumnInfo("ordseq")) ){
- ds_main_deliveLists_prcplist.addColumn("ordseq", "string");
- }
- if( utlf_isNull(ds_main_deliveLists_prcplist.getColumnInfo("oprsrvno")) ){
- ds_main_deliveLists_prcplist.addColumn("oprsrvno", "string");
- }
- if( utlf_isNull(ds_main_deliveLists_prcplist.getColumnInfo("erprcpflag")) ){
- ds_main_deliveLists_prcplist.addColumn("erprcpflag", "string");
- }
- if( utlf_isNull(ds_main_deliveLists_prcplist.getColumnInfo("prcpdd")) ){
- ds_main_deliveLists_prcplist.addColumn("prcpdd", "string");
- }
- if( utlf_isNull(ds_main_deliveLists_prcplist.getColumnInfo("sexage")) ){
- ds_main_deliveLists_prcplist.addColumn("sexage", "string");
- }
- if( utlf_isNull(ds_main_deliveLists_prcplist.getColumnInfo("deptengabbr")) ){
- ds_main_deliveLists_prcplist.addColumn("deptengabbr", "string");
- }
- if( utlf_isNull(ds_main_deliveLists_prcplist.getColumnInfo("prcpernm")) ){
- ds_main_deliveLists_prcplist.addColumn("prcpernm", "string");
- }
- if( utlf_isNull(ds_main_deliveLists_prcplist.getColumnInfo("opcnfmdd")) ){
- ds_main_deliveLists_prcplist.addColumn("opcnfmdd", "string");
- }
-
- dsf_setDefaultVal(ds_main_deliveLists_prcplist, "barcdno:-,cmt:");
-
- if(ds_main_cond.getColumn(0, "erprcpflag") == "Y")
- {
- grd_prcplist.setFormatColProperty(3, "size", 60);
- grd_prcplist.setFormatColProperty(4, "size", 60);
- grd_delivelist.setFormatColProperty(3, "size", 60);
- grd_delivelist.setFormatColProperty(4, "size", 60);
-
- button1.enable = false;
-
- var delyn;
-
- for(var i = 0; i < ds_main_deliveLists_delivelist.rowcount; i++)
- {
- delyn = ds_main_deliveLists_delivelist.getColumn(i, "delyn");
-
- if(delyn=="취소")
- {
- //grd_delivelist.setCellProperty("Body", grd_delivelist.getBindCellIndex("Body", "cnfmqty"), "edittype", "text");
- }
- else
- {
- //grd_delivelist.setCellProperty("Body", grd_delivelist.getBindCellIndex("Body", "cnfmqty"), "edittype", "none");
-
- }
- }
- }
- else
- {
- grd_prcplist.setFormatColProperty(3, "size", 0);
- grd_prcplist.setFormatColProperty(4, "size", 0);
- grd_delivelist.setFormatColProperty(3, "size", 0);
- grd_delivelist.setFormatColProperty(4, "size", 0);
-
- button1.enable = true;
- }
- }
- function fCalcdate(calcn, calcd)
- {
- calcd = calcd.toDate("YYYYMMDD");
- calcd = calcd.getAddDate(calcn , "D");
- calcd = calcd.getDateFormat("YYYYMMDD");
-
- return calcd;
- }
- function grp_sea_button25_onclick(obj:Button, e:ClickEventInfo)
- {
- var sChkdd = utlf_getCurrentDate();
- var sCalcdd = fCalcdate(-1, sChkdd);
-
- ds_main_cond.setColumn(0, "opfromdd", sCalcdd);
- ds_main_cond.setColumn(0, "optodd", sCalcdd);
- }
- function grp_sea_button18_onclick(obj:Button, e:ClickEventInfo)
- {
- var sChkdd = utlf_getCurrentDate();
- ds_main_cond.setColumn(0, "opfromdd", sChkdd);
- ds_main_cond.setColumn(0, "optodd", sChkdd);
- }
- function grp_sea_button17_onclick(obj:Button, e:ClickEventInfo)
- {
- var sChkdd = utlf_getCurrentDate();
- var sCalcdd = fCalcdate(1, sChkdd);
- ds_main_cond.setColumn(0, "opfromdd", sCalcdd);
- ds_main_cond.setColumn(0, "optodd", sCalcdd);
- }
- function grp_sea_radio1_onitemchanged(obj:Radio, e:ItemChangeEventInfo)
- {
- if (obj.value == "Y")
- {
- button8.visible = true;
- }
- else if (obj.value == "N")
- {
- button8.visible = false;
- }
- }
- function grp_sea_cmb_rosette_onitemchanged(obj:Combo, e:ItemChangeEventInfo)
- {
- ds_send.clearData();
- dsf_makeValue(ds_send, "opcnfmdd", "string", String(utlf_getCurrentDate()).substr(0, 8), 0);
- dsf_makeValue(ds_send, "rosette", "string", ds_main_cond.getColumn(0, "oprosette"), 0);
-
- var oParam = {};
- oParam.id = "TRMNP03002";
- oParam.service = "opanstapp.OpAnstCCrtGoodMngt";
- oParam.method = "reqGetOmcdlist";
- oParam.inds = "req=ds_send";
- oParam.outds = "ds_init_oproomlist=oproomlist";
- oParam.async = false;
- oParam.callback = "cf_TRMNP03002";
- tranf_submit(oParam);
- }
- function cf_TRMNP03002(sSvcId, nErrorCode, sErrorMsg)
- {
- if(nErrorCode < 0)
- {
- return;
- }
- else
- {
- frmf_addComboItem("grp_sea.cmb_oproomcd","전체","","above");
- grp_sea.cmb_oproomcd.value = "";
- }
- }
- function grp_sea_ipt_goodcd_onkeyup(obj:Edit, e:KeyEventInfo)
- {
- if(e.keycode == 13)
- {
- obj.updateToDataset();
- grp_sea.btn_search.click();
- }
- }
- function grp_sea_btn_goodsearch_onclick(obj:Button, e:ClickEventInfo)
- {
- var refflag = ds_temp.getColumn(0, "refflag");
- if( refflag == "1" )
- {
- frmf_setParameter("refnm", ds_main_cond.getColumn(0, "goodnm"));
- frmf_setParameter("refflag", "1");
- }
- else if( refflag == "2" )
- {
- frmf_setParameter("refnm", ds_main_cond.getColumn(0, "goodcd"));
- frmf_setParameter("refflag", "2");
- }
- frmf_setParameter("tabflag", "CCR");
- frmf_setParameter("goodflag", ds_main_cond.getColumn(0, "goodflag"));
- frmf_setParameter("menuparam", "S");
- frmf_setParameter("cartgubn", ds_main_cond.getColumn(0, "deptflag"));
-
- frmf_modal("SMMNP04460", "SMMNP04460", "", "", "", "", "", "", "", "", "", "", "M");
-
- var getData = frmf_getParameter("SendData");
-
- 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]);
- }
- }
- function grp_sea_ipt_goodnm_onkeyup(obj:Edit, e:KeyEventInfo)
- {
- if(e.keycode == 13)
- {
- obj.updateToDataset();
- grp_sea.btn_search.click();
- }
- }
- function grp_sea_btn_search_onclick(obj:Button, e:ClickEventInfo)
- {
- fSearch();
- }
- function grp_sea_button2_onclick(obj:Button, e:ClickEventInfo)
- {
- ds_main_cond.setColumn(0, "goodcd", "");
- ds_main_cond.setColumn(0, "goodnm", "");
- ds_main_cond.setColumn(0, "allsizespecid", "");
- ds_main_cond.setColumn(0, "variable", "");
- }
- function button9_onclick(obj:Button, e:ClickEventInfo)
- {
- //20101119_KNUH_수정.
- var scrnid = "SMMNP02000";
- ds_barcdprntsetup.clearData();
- fGetBarCodeInfo(scrnid); // CareCom.js
- // 노드값을 컬럼 값으로 가져옴에 따라 DS 로 변환 처리 ---------------------------------------------------
- //XML string 값을 파라미터로 넘김
- //성공시 : 'success' 실패시 : 'error' 값을 리턴함
- var sParamObj = new Object();
- sParamObj.pathYN = 'N'; //dsvaluepath 컬럼 사용여부
- var pXmlStr = ds_barcdprntsetup.getColumn(0, "prntsetupinfo");
- var succYn = lf_convertXmlToDs(pXmlStr, sParamObj);
- // => retrun DS
- // : ds_data_setupinfo(prntkind, commkind)
- // : ds_data_comm01(setupval)
- // : ds_data_comm02(comm, databit, stopbit, baudrate, parity, setupval)
- // : ds_data_comm03(setupval)
- // : ds_data_blank(left, top)
- // ------------------------------------------------------------------------------------------------------------
- var count = ds_data_setupinfo.rowcount;
- if(count == 0) {
- ds_data_setupinfo.addRow();
- }
-
- var objArg = new Object();
- objArg.arg_sSetupInfo = ds_barcdprntsetup.getColumn(0, "prntsetupinfo");
- objArg.arg_sCallBackFunction = "lf_convertXmlToDs";
-
- frmf_modal("SPZUR00300","SPZUR00300",objArg,"","","","","","","","","","M");
- }
- function button3_onclick(obj:Button, e:ClickEventInfo)
- {
- frmf_modal("SMMNP04000", "SMMNP04000", "", "", "", "", "", "", "", "", "", "", "M");
- }
- function button1_onclick(obj:Button, e:ClickEventInfo)
- {
- frmf_modal("SMMNP02100", "SMMNP02100", "", "", "", "", "", "", "", "", "", "", "M");
- }
- function button5_onclick(obj:Button, e:ClickEventInfo)
- {
- fCnfmSave("2");
- fPrntList("P");
- }
- function button10_onclick(obj:Button, e:ClickEventInfo)
- {
- var erprcpflag = ds_main_cond.getColumn(0, "erprcpflag");
-
- if(erprcpflag == "Y") {
-
- } else {
- sysf_messageBox("바코드출력은 응급물품일 경우에만 가능합니다.", "E");
- return;
- }
-
- fCnfmSave("1");
- }
- function btn_saveexcel_onclick(obj:Button, e:ClickEventInfo)
- {
- var opfromdd = ds_main_cond.getColumn(0, "opfromdd");
- var optodd = ds_main_cond.getColumn(0, "optodd");
- grdf_exportExcel(grd_prcplist, "일단위 물품 불출 처방집계("+opfromdd+"~"+optodd+")", "sheetname1" , true, "" , "" , true);
- }
- function btn_cnfm_onclick(obj:Button, e:ClickEventInfo)
- {
- fCnfmSave();
- }
- function button8_onclick(obj:Button, e:ClickEventInfo)
- {
- var updtdata = grdf_getGridUpdateData(grd_delivelist);
-
- if(updtdata.rowcount == 0) {
- sysf_messageBox("반납확인할 목록이 없습니다." , "E");
- return;
- } else {
- ds_nodes.clearData();
- ds_main_deliveLists_delivelist.filter("delyn=='취소' && cnfmqty!=''");
- ds_nodes.copyData(ds_main_deliveLists_delivelist, true);
- ds_main_deliveLists_delivelist.filter("");
-
- if(ds_nodes.rowcount == 0) {
- sysf_messageBox("반납확인할 목록이 없습니다." , "E");
- return;
- }
- }
-
- ds_send_savedata_savelist.copyData(updtdata);
-
- var oParam = {};
- oParam.id = "TXMNP02001";
- oParam.service = "opanstapp.OpAnstStocMngt";
- oParam.method = "reqExeDeliveCnfm";
- oParam.inds = "savelist=ds_send_savedata_savelist";
- oParam.outds = "";
- oParam.async = false;
- tranf_submit(oParam);
- }
- /* --------------------------------------------------*/
- /* type : function */
- /* access : public */
- /* desc : 일단위 물품 불출 확정 */
- /* param : */
- /* return : */
- /* --------------------------------------------------*/
- function fCnfmSave(flag) {
- var iRows = -1;
- var chkflag, oproomcd, goodcd, allsizespecid, opfromdd, optodd, deliveqty, cmt, refdeptflag, cartgubn, ordseq, oprsrvno, erprcpflag;
- var cnt = 0;
- iRows = ds_main_deliveLists_prcplist.rowcount;
-
- ds_main_deliveLists_prcplist.filter("chkflag=='true' || chkflag=='1'");
- ds_nodes.copyData(ds_main_deliveLists_prcplist, true);
- ds_main_deliveLists_prcplist.filter("");
-
- var tempnode:Dataset;
- tempnode = ds_temp_barcdlist;
-
- if(!utlf_isNull(flag)) {
- ds_temp_barcdlist.clearData();
- ds_temp_barcdlist.addRow();
-
- //var desnode = instance1.selectSingleNode(tempnode);
-
- var node;
-
- if(ds_nodes.rowcount > 0) {
- // while(node = nodes.nextNode()) {
- // model.duplicate(desnode, node);
- // }
- ds_temp_barcdlist.copyData(ds_nodes);
- }
-
- }
-
- var prcplist = "stat▦goodcd▦allsizespecid▦deptflag▦oproomcd▦sumfromdd▦sumtodd▦deliveqty▦cmt▦delivedd▦seqno▦cartgubn▦ordseq▦oprsrvno▦erprcpflag▦prcpdd▦oproomnm▦pid▦hngnm▦sexage▦goodnm▦deptengabbr▦prcpernm▦barcdno▦opcnfmdd";
- for( var i = 0; i < iRows; i++ ) {
- chkflag = utlf_transNullToEmpty(ds_main_deliveLists_prcplist.getColumn(i, "chkflag"));
- oproomcd = utlf_transNullToEmpty(ds_main_deliveLists_prcplist.getColumn(i, "oproomcd"));
- goodcd = utlf_transNullToEmpty(ds_main_deliveLists_prcplist.getColumn(i, "goodcd"));
- allsizespecid = utlf_transNullToEmpty(ds_main_deliveLists_prcplist.getColumn(i, "allsizespecid"));
- deliveqty = utlf_transNullToEmpty(ds_main_deliveLists_prcplist.getColumn(i, "deliveqty"));
- cmt = utlf_transNullToEmpty(ds_main_deliveLists_prcplist.getColumn(i, "cmt"));
- refdeptflag = utlf_transNullToEmpty(ds_main_deliveLists_prcplist.getColumn(i, "cartgubn"));
- opfromdd = utlf_transNullToEmpty(ds_main_cond.getColumn(0, "opfromdd"));
- optodd = utlf_transNullToEmpty(ds_main_cond.getColumn(0, "optodd"));
- cartgubn = utlf_transNullToEmpty(ds_main_deliveLists_prcplist.getColumn(i, "cartgubn"));
- ordseq = utlf_transNullToEmpty(ds_main_deliveLists_prcplist.getColumn(i, "ordseq"));
- oprsrvno = utlf_transNullToEmpty(ds_main_deliveLists_prcplist.getColumn(i, "oprsrvno"));
- erprcpflag = utlf_transNullToEmpty(ds_main_deliveLists_prcplist.getColumn(i, "erprcpflag"));
- prcpdd = utlf_transNullToEmpty(ds_main_deliveLists_prcplist.getColumn(i, "prcpdd"));
- oproomnm = utlf_transNullToEmpty(ds_main_deliveLists_prcplist.getColumn(i, "oproomnm"));
- pid = utlf_transNullToEmpty(ds_main_deliveLists_prcplist.getColumn(i, "pid"));
- hngnm = utlf_transNullToEmpty(ds_main_deliveLists_prcplist.getColumn(i, "hngnm"));
- sexage = utlf_transNullToEmpty(ds_main_deliveLists_prcplist.getColumn(i, "sexage"));
- goodnm = utlf_transNullToEmpty(ds_main_deliveLists_prcplist.getColumn(i, "goodnm"));
- deptengabbr = utlf_transNullToEmpty(ds_main_deliveLists_prcplist.getColumn(i, "deptengabbr"));
- prcpernm = utlf_transNullToEmpty(ds_main_deliveLists_prcplist.getColumn(i, "prcpernm"));
- barcdno = utlf_transNullToEmpty(ds_main_deliveLists_prcplist.getColumn(i, "barcdno"));
- opcnfmdd = utlf_transNullToEmpty(ds_main_deliveLists_prcplist.getColumn(i, "opcnfmdd"));
- if( chkflag == "true" || chkflag == "1") {
-
- if( parseInt(deliveqty) < 1 ) {
- sysf_messageBox("불출수량은 0이상만 가능합니다.!", "E000");
- return;
- }
- cnt += 1;
- //oproomnm▦pid▦hngnm▦sexage▦goodnm▦deptengabbr▦prcpernm▦barcdno
- prcplist = prcplist + "▩" + "I" + "▦" + goodcd + "▦" + allsizespecid + "▦" + refdeptflag + "▦" + oproomcd
- + "▦" + opfromdd + "▦" + optodd + "▦" + deliveqty + "▦" + cmt + "▦" + "" + "▦" + ""
- + "▦" + cartgubn + "▦" + ordseq + "▦" + oprsrvno + "▦" + erprcpflag + "▦" + prcpdd
- + "▦" + oproomnm + "▦" + pid + "▦" + hngnm + "▦" + sexage + "▦" + goodnm+ "▦" + deptengabbr+ "▦" + prcpernm+ "▦" + barcdno + "▦" + opcnfmdd + "▩";
- }
- }
- if( cnt > 0 ) {
- ds_send_reqdata.clearData();
- ds_send_savedata.clearData();
-
- ds_send_reqdata.addRow();
- ds_send_savedata.addRow();
- ds_send_reqdata.copyData(ds_main_cond);
- dsf_setCSVToDs("ds_send_savedata", prcplist);
- // if(utlf_isNull(flag)){
- // dsf_makeValue(ds_send_reqdata, "flag", "string", "");
- // }else{
- //
- // }
- dsf_makeValue(ds_send_reqdata, "flag", "string", utlf_transNullToEmpty(flag));
- var oParam = {};
- oParam.id = "TXMNP02001";
- oParam.service = "opanstapp.OpAnstStocMngt";
- oParam.method = "reqExeDeliveList";
- oParam.inds = "reqdata=ds_send_reqdata savedata=ds_send_savedata";
- oParam.outds = "ds_main_deliveLists_prcplist=prcplist ds_main_deliveLists_delivelist=delivelist ds_main_deliveLists_barcdlist=barcdlist";
- oParam.async = false;
- tranf_submit(oParam);
-
- if( utlf_isNull(ds_main_deliveLists_prcplist.getColumnInfo("ordseq")) ){
- ds_main_deliveLists_prcplist.addColumn("ordseq", "string");
- }
- if( utlf_isNull(ds_main_deliveLists_prcplist.getColumnInfo("oprsrvno")) ){
- ds_main_deliveLists_prcplist.addColumn("oprsrvno", "string");
- }
- if( utlf_isNull(ds_main_deliveLists_prcplist.getColumnInfo("erprcpflag")) ){
- ds_main_deliveLists_prcplist.addColumn("erprcpflag", "string");
- }
- if( utlf_isNull(ds_main_deliveLists_prcplist.getColumnInfo("prcpdd")) ){
- ds_main_deliveLists_prcplist.addColumn("prcpdd", "string");
- }
- if( utlf_isNull(ds_main_deliveLists_prcplist.getColumnInfo("sexage")) ){
- ds_main_deliveLists_prcplist.addColumn("sexage", "string");
- }
- if( utlf_isNull(ds_main_deliveLists_prcplist.getColumnInfo("deptengabbr")) ){
- ds_main_deliveLists_prcplist.addColumn("deptengabbr", "string");
- }
- if( utlf_isNull(ds_main_deliveLists_prcplist.getColumnInfo("prcpernm")) ){
- ds_main_deliveLists_prcplist.addColumn("prcpernm", "string");
- }
- if( utlf_isNull(ds_main_deliveLists_prcplist.getColumnInfo("opcnfmdd")) ){
- ds_main_deliveLists_prcplist.addColumn("opcnfmdd", "string");
- }
-
- dsf_setDefaultVal(ds_main_deliveLists_prcplist, "barcdno:-,cmt:");
-
- var nodes = ds_main_deliveLists_barcdlist.rowcount;
- var printyn = ds_codelist.lookup("cdgrupid", 'U08', "cdid");
-
- if(flag == "1") {
- if(printyn == "Y") {
- if(nodes > 0) {
- fPrintBarcd();
- }
- }
- }
- fCheckGrid();
-
- }else {
- sysf_messageBox("선택한것이", "I004");
- }
- }
- function fPrintBarcd() {
- sysf_setModelProperty("id", "SMMNP02000");
- var objArg = new Object();
- objArg.arg_ds_main_deliveLists = ds_main_deliveLists_barcdlist;
-
- frmf_open("SPMNZ00800", "SPMNZ00800", objArg, null, 1, 100, 500, null, null, null, null, null, "M"); //yjh : 커밋
- }
- function fCheckGrid() {
- var oprsrvno;
- var cartgubn;
- var ordseq;
-
- var oprsrvno2;
- var cartgubn2;
- var ordseq2;
-
- var nodes = ds_temp_barcdlist.rowcount;
-
- for(var i = 0; i < nodes; i++) {
- oprsrvno = ds_temp_barcdlist.getColumn(i, "oprsrvno");
- cartgubn = ds_temp_barcdlist.getColumn(i, "cartgubn");
- ordseq = ds_temp_barcdlist.getColumn(i, "ordseq");
-
- for(var j = 0; j < ds_main_deliveLists_prcplist.rowcount; j++) {
- oprsrvno2 = ds_main_deliveLists_prcplist.getColumn(j, "oprsrvno");
- cartgubn2 = ds_main_deliveLists_prcplist.getColumn(j, "cartgubn");
- ordseq2 = ds_main_deliveLists_prcplist.getColumn(j, "ordseq");
-
- if( (oprsrvno == oprsrvno2) && (cartgubn == cartgubn2) && (ordseq == ordseq2) ) {
- ds_main_deliveLists_prcplist.setColumn(j, "chkflag", "1");
- continue;
- }
- }
-
- }
- }
- function grd_delivelist_onheadclick(obj:Grid, e:GridClickEventInfo)
- {
- if( e.col == 1 ){
- if(grd_delivelist.getCellProperty("Head", 1, "expr") == "0"){
- grd_delivelist.setCellProperty("Head", 1, "expr", "1");
- var expr = "1";
- }else if(grd_delivelist.getCellProperty("Head", 1, "expr") == "1"){
- grd_delivelist.setCellProperty("Head", 1, "expr", "0");
- var expr = "0";
- }
-
- for(var i = 0; i < ds_main_deliveLists_delivelist.rowcount ;i++){
- if(ds_main_deliveLists_delivelist.getColumn(i, "delyn") != "취소"){
- ds_main_deliveLists_delivelist.setColumn(i, "chkflag", expr);
- }
- }
- }
- }
- /* --------------------------------------------------*/
- /* type : function */
- /* access : public */
- /* desc : 일단위 물품 출력 */
- /* param : P:처방집계, D:불출내역 */
- /* return : */
- /* --------------------------------------------------*/
- function fPrntList(pFlag) {
- //20110422 이선경(경북대) : 응급불출은 출력양식이 다름(환자별로 출력)
-
- if (ds_main_cond.getColumn(0, "erprcpflag") == "Y") {
- ds_send_report.copyData(ds_main_deliveLists_delivelist);
- ds_send_report.clearData();
- var dcnt = 0;
- if (pFlag == "D") { //불출
- for (var i = 0; i < ds_main_deliveLists_delivelist.rowcount; i++) {
- if (ds_main_deliveLists_delivelist.getColumn(i, "chkflag") == "true" || ds_main_deliveLists_delivelist.getColumn(i, "chkflag") == "1") {
- ds_send_report.addRow();
- ds_send_report.copyRow(dcnt, ds_main_deliveLists_delivelist, i);
- dcnt++;
- }
- }
- if (dcnt > 0) {
- // 20110719 wify 경북대병원 출력물 row 2개씩 나오는 오류 수정.(rex파일 xml설정오류)
- var objDOM = rptf_createDOM();
- rptf_setNodeListToDOM(objDOM, "root/send/report/delivelist", ds_send_report); // 데이터셋 1
- rptf_setNodeListToDOM(objDOM, "root/main/cond" , ds_main_cond); // 데이터셋 2
-
- var objParam = new Object();
- objParam.xml_data_XML1 = objDOM.documentElement.source; // 최상의노드 XML 스트링 추출
-
- var option = "open=1;save=1;directprint=0;print=1;zoom=0;"; //미리보기
- rptf_exeReportPreview30(["RPMNP02002"],[objParam], option);
-
- } else {
- sysf_messageBox("출력할 처방을 선택하세요.", "I999");
- }
- } else if (pFlag == "P") { //처방
- ds_send_report.copyData(ds_main_deliveLists_prcplist);
- ds_send_report.clearData();
- for (var i = 0; i < ds_main_deliveLists_prcplist.rowcount; i++) {
- if (ds_main_deliveLists_prcplist.getColumn(i, "chkflag") == "true" || ds_main_deliveLists_prcplist.getColumn(i, "chkflag") == "1") {
- ds_send_report.addRow();
- ds_send_report.copyRow(dcnt, ds_main_deliveLists_prcplist, i);
- dcnt++;
- }
- }
- if (dcnt > 0) {
- var objDOM = rptf_createDOM();
- rptf_setNodeListToDOM(objDOM, "root/send/report/prcplist", ds_send_report); // 데이터셋 1
-
- var objParam = new Object();
- objParam.xml_data_XML1 = objDOM.documentElement.source; // 최상의노드 XML 스트링 추출
-
- var option = "open=1;save=1;directprint=0;print=1;zoom=0;"; //미리보기
- rptf_exeReportPreview30(["RPMNP02003"],[objParam], option);
- } else {
- sysf_messageBox("출력할 처방을 선택하세요.", "I999");
- }
- } else if (pFlag == "A") { // 20110914 wify 경북대병원 응급불출내역 전체출력 추가
- ds_send_report.copyData(ds_main_deliveLists_delivelist);
- ds_send_report.clearData();
-
- for (var i = 0; i < ds_main_deliveLists_delivelist.rowcount; i++) {
- if (ds_main_deliveLists_delivelist.getColumn(i, "chkflag") == "true" || ds_main_deliveLists_delivelist.getColumn(i, "chkflag") == "1") {
- ds_send_report.addRow();
- ds_send_report.copyRow(dcnt, ds_main_deliveLists_delivelist, i);
- dcnt++;
- }
- }
- if (dcnt > 0) {
- // 20110914 wify 경북대병원 응급 불출내역 전체출력 추가
- var objDOM = rptf_createDOM();
- rptf_setNodeListToDOM(objDOM, "root/send/report/delivelist", ds_send_report); // 데이터셋 1
- rptf_setNodeListToDOM(objDOM, "root/main/cond" , ds_main_cond); // 데이터셋 2
-
- var objParam = new Object();
- objParam.xml_data_XML1 = objDOM.documentElement.source; // 최상의노드 XML 스트링 추출
-
- var option = "open=1;save=1;directprint=0;print=1;zoom=0;"; //미리보기
- rptf_exeReportPreview30(["RPMNP02004"],[objParam], option);
- } else {
- sysf_messageBox("출력할 처방을 선택하세요.", "I999");
- }
- }
- } else {
- if (pFlag == "D") {
- ds_send_reqdata.clearData();
- ds_send_reqdata.copyData(ds_main_cond);
-
- ds_send_report.clearData();
- ds_send_report.copyData(ds_main_cond);
-
- ds_hidden_deliveLists_delivelist.copyData(ds_main_deliveLists_delivelist);
- ds_hidden_deliveLists_delivelist.clearData();
-
- for (var i = 0; i < ds_main_deliveLists_delivelist.rowcount; i++) {
- // 20110919 wify 경북대병원 본원, 칠곡 요청사항이 다름(본원은 취소내역은 출력되지 않음, 칠곡은 취소내역 출력요청)
- // 20110920 wify 경북대병원 칠곡병원 요청으로 인해 출력물 취소여부 컬럼 추가. 본원은 취소여부에 '확정'만 나옴
- if (sysf_getUserInfo("dutplceinstcd") == "031") {
- if (ds_main_deliveLists_delivelist.getColumn(i, "delyn") == "확정") {
- var addrow = ds_hidden_deliveLists_delivelist.addRow();
- ds_hidden_deliveLists_delivelist.copyRow(addrow, ds_main_deliveLists_delivelist, i);
- }
- } else if (sysf_getUserInfo("dutplceinstcd") == "032") {
- var addrow = ds_hidden_deliveLists_delivelist.addRow();
- ds_hidden_deliveLists_delivelist.copyRow(addrow, ds_main_deliveLists_delivelist, i);
- }
- }
- var objDOM = rptf_createDOM();
- rptf_setNodeListToDOM(objDOM, "root/hidden/deliveLists/delivelist", ds_hidden_deliveLists_delivelist); // 데이터셋 1
- rptf_setNodeListToDOM(objDOM, "root/main/cond" , ds_main_cond); // 데이터셋 2
-
- var objParam = new Object();
- objParam.xml_data_XML1 = objDOM.documentElement.source; // 최상의노드 XML 스트링 추출
- objParam.opfromdd = ds_main_cond.getColumn(0, "opfromdd"); // 최상의노드 XML 스트링 추출
- objParam.optodd = ds_main_cond.getColumn(0, "optodd"); // 최상의노드 XML 스트링 추출
- objParam.usernm = ds_main_cond.getColumn(0, "usernm"); // 최상의노드 XML 스트링 추출
-
- var option = "open=1;save=1;directprint=0;print=1;zoom=0;"; //미리보기
- rptf_exeReportPreview30(["RPMNP02001"],[objParam], option);
- ds_hidden_deliveLists_delivelist.clearData();
- // }
- } else if (pFlag == "P") {
- ds_send_report.clearData();
-
- var objDOM = rptf_createDOM();
- rptf_setNodeListToDOM(objDOM, "root/main/deliveLists/prcplist", ds_main_deliveLists_prcplist); // 데이터셋 1
- rptf_setNodeListToDOM(objDOM, "root/main/cond" , ds_main_cond); // 데이터셋 2
-
- var objParam = new Object();
- objParam.xml_data_XML1 = objDOM.documentElement.source; // 최상의노드 XML 스트링 추출
-
- var option = "open=1;save=1;directprint=0;print=1;zoom=0;"; //미리보기
- rptf_exeReportPreview30(["RPMNP02000"],[objParam], option);
- } else if (pFlag == "A") {
- ds_send_reqdata.clearData();
- ds_send_reqdata.copyData(ds_main_cond);
- ds_send_report.clearData();
- ds_send_report.copyData(ds_main_cond);
-
- ds_hidden_deliveLists_delivelist.copyData(ds_main_deliveLists_delivelist);
- ds_hidden_deliveLists_delivelist.clearData();
-
- for (var i = 0; i < ds_main_deliveLists_delivelist.rowcount; i++) {
- // 20110919 wify 경북대병원 본원, 칠곡 요청사항이 다름(본원은 취소내역은 출력되지 않음, 칠곡은 취소내역 출력요청)
- // 20110920 wify 경북대병원 칠곡병원 요청으로 인해 출력물 취소여부 컬럼 추가. 본원은 취소여부에 '확정'만 나옴
- if (sysf_getUserInfo("dutplceinstcd") == "031") {
- if (ds_hidden_deliveLists_delivelist.getColumn(i, "delyn") == "확정") {
- var addrow = ds_hidden_deliveLists_delivelist.addRow();
- ds_hidden_deliveLists_delivelist.copyRow(addrow, ds_main_deliveLists_delivelist, i);
- }
- } else if (sysf_getUserInfo("dutplceinstcd") == "032") {
- var addrow = ds_hidden_deliveLists_delivelist.addRow();
- ds_hidden_deliveLists_delivelist.copyRow(addrow, ds_main_deliveLists_delivelist, i);
- }
- }
-
- var objDOM = rptf_createDOM();
- rptf_setNodeListToDOM(objDOM, "root/hidden/deliveLists/delivelist", ds_hidden_deliveLists_delivelist); // 데이터셋 1
- rptf_setNodeListToDOM(objDOM, "root/main/cond" , ds_main_cond); // 데이터셋 2
-
- var objParam = new Object();
- objParam.xml_data_XML1 = objDOM.documentElement.source; // 최상의노드 XML 스트링 추출
- objParam.opfromdd = ds_main_cond.getColumn(0, "opfromdd"); // 최상의노드 XML 스트링 추출
- objParam.optodd = ds_main_cond.getColumn(0, "optodd"); // 최상의노드 XML 스트링 추출
-
- var option = "open=1;save=1;directprint=0;print=1;zoom=0;"; //미리보기
- rptf_exeReportPreview30(["RPMNP02005"],[objParam], option);
- ds_hidden_deliveLists_delivelist.clearData();
- }
- }
- }
- function button7_onclick(obj:Button, e:ClickEventInfo)
- {
- fPrntList("A");
- }
- function button6_onclick(obj:Button, e:ClickEventInfo)
- {
- fPrntList("D");
- }
- function button4_onclick(obj:Button, e:ClickEventInfo)
- {
- var opfromdd = ds_main_cond.getColumn(0, "opfromdd");
- var optodd = ds_main_cond.getColumn(0, "optodd");
- grdf_exportExcel(grd_prcplist, "일단위 물품 불출 불출내역("+opfromdd+"~"+optodd+")", "sheetname1" , true, "" , "" , true);
- }
- function btn_cnclcnfm_onclick(obj:Button, e:ClickEventInfo)
- {
- fCnclCnfmSave();
- }
- /* --------------------------------------------------*/
- /* type : function */
- /* access : public */
- /* desc : 일단위 물품 불출 확정 취소 */
- /* param : */
- /* return : */
- /* --------------------------------------------------*/
- function fCnclCnfmSave() {
- var iRows = -1;
- var chkflag, oproomcd, goodcd, allsizespecid, sumfromdd, sumtodd, deliveqty, cmt, refdeptflag, delivedd, seqno, cartgubn, ordseq, oprsrvno, erprcpflag;
- var cnt = 0;
- iRows = ds_main_deliveLists_delivelist.rowcount;
- var prcplist = "stat▦goodcd▦allsizespecid▦deptflag▦oproomcd▦sumfromdd▦sumtodd▦deliveqty▦cmt▦delivedd▦seqno▦cartgubn▦ordseq▦oprsrvno▦erprcpflag";
-
- for( var i = 0; i < iRows; i++ ) {
- chkflag = utlf_transNullToEmpty(ds_main_deliveLists_delivelist.getColumn(i, "chkflag"));
- oproomcd = utlf_transNullToEmpty(ds_main_deliveLists_delivelist.getColumn(i, "oproomcd"));
- goodcd = utlf_transNullToEmpty(ds_main_deliveLists_delivelist.getColumn(i, "goodcd"));
- allsizespecid = utlf_transNullToEmpty(ds_main_deliveLists_delivelist.getColumn(i, "allsizespecid"));
- deliveqty = utlf_transNullToEmpty(ds_main_deliveLists_delivelist.getColumn(i, "deliveqty"));
- cmt = utlf_transNullToEmpty(ds_main_deliveLists_delivelist.getColumn(i, "cmt"));
- sumfromdd = utlf_transNullToEmpty(ds_main_deliveLists_delivelist.getColumn(i, "sumfromdd"));
- sumtodd = utlf_transNullToEmpty(ds_main_deliveLists_delivelist.getColumn(i, "sumtodd"));
- delivedd = utlf_transNullToEmpty(ds_main_deliveLists_delivelist.getColumn(i, "delivedd"));
- seqno = utlf_transNullToEmpty(ds_main_deliveLists_delivelist.getColumn(i, "seqno"));
- refdeptflag = utlf_transNullToEmpty(ds_main_deliveLists_delivelist.getColumn(i, "cartgubn"));
- cartgubn = utlf_transNullToEmpty(ds_main_deliveLists_delivelist.getColumn(i, "cartgubn"));
- ordseq = utlf_transNullToEmpty(ds_main_deliveLists_delivelist.getColumn(i, "ordseq"));
- oprsrvno = utlf_transNullToEmpty(ds_main_deliveLists_delivelist.getColumn(i, "oprsrvno"));
- erprcpflag = utlf_transNullToEmpty(ds_main_deliveLists_delivelist.getColumn(i, "erprcpflag"));
- if( chkflag == "true" || chkflag == "1") {
- cnt += 1;
- prcplist = prcplist + "▩" + "C" + "▦" + goodcd + "▦" + allsizespecid + "▦" + refdeptflag + "▦" + oproomcd
- + "▦" + sumfromdd + "▦" + sumtodd + "▦" + deliveqty + "▦" + cmt + "▦" + delivedd + "▦" + seqno
- + "▦" + cartgubn + "▦" + ordseq + "▦" + oprsrvno + "▦" + erprcpflag + "▩";
- }
- }
-
- if( cnt > 0 ) {
- ds_send_reqdata.clearData();
- ds_send_reqdata.copyData(ds_main_cond);
- ds_send_savedata.clearData();
- dsf_setCSVToDs("ds_send_savedata", prcplist);
-
- var oParam = {};
- oParam.id = "TXMNP02001";
- oParam.service = "opanstapp.OpAnstStocMngt";
- oParam.method = "reqExeDeliveList";
- oParam.inds = "reqdata=ds_send_reqdata savedata=ds_send_savedata";
- oParam.outds = "ds_main_deliveLists_prcplist=prcplist ds_main_deliveLists_delivelist=delivelist ds_main_deliveLists_barcdlist=barcdlist";
- oParam.async = false;
- tranf_submit(oParam);
-
- if( utlf_isNull(ds_main_deliveLists_prcplist.getColumnInfo("ordseq")) ){
- ds_main_deliveLists_prcplist.addColumn("ordseq", "string");
- }
- if( utlf_isNull(ds_main_deliveLists_prcplist.getColumnInfo("oprsrvno")) ){
- ds_main_deliveLists_prcplist.addColumn("oprsrvno", "string");
- }
- if( utlf_isNull(ds_main_deliveLists_prcplist.getColumnInfo("erprcpflag")) ){
- ds_main_deliveLists_prcplist.addColumn("erprcpflag", "string");
- }
- if( utlf_isNull(ds_main_deliveLists_prcplist.getColumnInfo("prcpdd")) ){
- ds_main_deliveLists_prcplist.addColumn("prcpdd", "string");
- }
- if( utlf_isNull(ds_main_deliveLists_prcplist.getColumnInfo("sexage")) ){
- ds_main_deliveLists_prcplist.addColumn("sexage", "string");
- }
- if( utlf_isNull(ds_main_deliveLists_prcplist.getColumnInfo("deptengabbr")) ){
- ds_main_deliveLists_prcplist.addColumn("deptengabbr", "string");
- }
- if( utlf_isNull(ds_main_deliveLists_prcplist.getColumnInfo("prcpernm")) ){
- ds_main_deliveLists_prcplist.addColumn("prcpernm", "string");
- }
- if( utlf_isNull(ds_main_deliveLists_prcplist.getColumnInfo("opcnfmdd")) ){
- ds_main_deliveLists_prcplist.addColumn("opcnfmdd", "string");
- }
-
- dsf_setDefaultVal(ds_main_deliveLists_prcplist, "barcdno:-,cmt:");
-
- }else {
- sysf_messageBox("선택한것이", "I004");
- }
- }
- function ds_main_deliveLists_delivelist_oncolumnchanged(obj:Dataset, e:DSColChangeEventInfo)
- {
- if(grd_delivelist.currentcol == grd_delivelist.getBindCellIndex("body", "chkflag")) {
- ds_main_deliveLists_delivelist.enableevent = false;
- ds_main_deliveLists_delivelist.updatecontrol = false;
- ds_main_deliveLists_delivelist.setRowType(ds_main_deliveLists_delivelist.rowposition, 1);
- ds_main_deliveLists_delivelist.updatecontrol = true;
- ds_main_deliveLists_delivelist.enableevent = true;
- }
-
- if(grd_delivelist.currentcol == grd_delivelist.getBindCellIndex("body", "cnfmqty")) {
- ds_main_deliveLists_delivelist.setColumn(ds_main_deliveLists_delivelist.rowposition, "cnfmid", sysf_getUserInfo("userid"));
- ds_main_deliveLists_delivelist.setColumn(ds_main_deliveLists_delivelist.rowposition, "cnfmnm", sysf_getUserInfo("usernm"));
- }
- }
- function ds_main_deliveLists_prcplist_oncolumnchanged(obj:Dataset, e:DSColChangeEventInfo)
- {
- var iRow = -1;
- var iCol = -1;
- var deliveqty = 0;
- var prcpqty = 0;
- var bfdeliveqty = 0;
- iRow = ds_main_deliveLists_prcplist.rowposition;
- iCol = grd_prcplist.currentcol;
- if (ds_main_deliveLists_prcplist.rowcount == 0 || iCol != 11){
- return;
- }
- //if( event.keyCode == 13 ) {
- if( parseInt(utlf_transNullToEmpty(ds_main_deliveLists_prcplist.getColumn(iRow, "deliveqty"))) > parseInt(0)|| parseInt(utlf_transNullToEmpty(ds_main_deliveLists_prcplist.getColumn(iRow, "deliveqty"))) > parseInt(0.0) ) {
- ds_main_deliveLists_prcplist.setColumn(iRow, "chkflag", "1");
- deliveqty = ds_main_deliveLists_prcplist.getColumn(iRow, "deliveqty");
- prcpqty = ds_main_deliveLists_prcplist.getColumn(iRow, "prcpqty");
- bfdeliveqty = ds_main_deliveLists_prcplist.getColumn(iRow, "bfdeliveqty");
- ds_main_deliveLists_prcplist.setColumn(iRow, "undeliveqty", (parseInt(prcpqty) - (parseInt(deliveqty)+parseInt(bfdeliveqty))));
- }
- }
- ]]></Script>
- </Form>
- </FDL>
|