1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SMADB02100" position="absolute 0 0 1194 786" titletext="약품식별마스터" oninit="SMADB02100_oninit" onload="SMADB02100_onload">
- <Layouts>
- <Layout>
- <Div position="absolute 0 13 1194 785" id="group3" scrollbars="autoboth" anchor="all">
- <Layouts>
- <Layout>
- <ImageViewer position="absolute 480 355 481 465" id="img_hidden" visible="false" anchor="left bottom"/>
- <ImageViewer position="absolute 770 475 788 490" id="img_phot_hidden" visible="false" anchor="left bottom"/>
- <ImageViewer position="absolute 475 657 603 742" id="img_shape2_hidden" anchor="left bottom"/>
- <ImageViewer position="absolute 475 517 603 602" id="img_shape1_hidden" anchor="left bottom"/>
- <Shape position="absolute 5 669 465 675" linetype="horizontal" id="line8" class="line_2" anchor="left bottom"/>
- <Button position="absolute 445 650 461 666" id="button1" class="icon_search" text="" anchor="left bottom" onclick="group3_button1_onclick"/>
- <Shape position="absolute 5 740 465 746" linetype="horizontal" id="line9" class="line_2" anchor="left bottom"/>
- <Shape position="absolute 796 766 1193 772" linetype="horizontal" id="line21" class="line_3" anchor="left right bottom"/>
- <Shape position="absolute 5 546 465 552" linetype="horizontal" id="line10" class="line_2" anchor="left bottom"/>
- <Shape position="absolute 796 714 1190 720" linetype="horizontal" id="line22" class="line_2" anchor="left right bottom"/>
- <Shape position="absolute 475 345 788 351" linetype="horizontal" id="line11" class="line_1" anchor="left bottom"/>
- <Shape position="absolute 796 662 1190 668" linetype="horizontal" id="line23" class="line_2" anchor="left right bottom"/>
- <Edit position="absolute 896 694 1191 713" id="input10" class="input_search" anchor="left right bottom"/>
- <Static text="뒤" position="absolute 898 624 913 639" align="align:center middle;" id="caption20" anchor="left bottom"/>
- <Shape position="absolute 796 345 1190 351" linetype="horizontal" id="line12" class="line_1" anchor="left right bottom" style="border:0 none #808080ff ;"/>
- <Edit position="absolute 896 720 1191 739" id="input11" class="input_search" anchor="left right bottom"/>
- <Shape position="absolute 796 688 1190 694" linetype="horizontal" id="line24" class="line_2" anchor="left right bottom"/>
- <Static text="앞" position="absolute 898 648 913 663" align="align:center middle;" id="caption21" anchor="left bottom"/>
- <Edit position="absolute 896 746 1191 765" id="input12" class="input_search" anchor="left right bottom"/>
- <Shape position="absolute 796 740 1190 746" linetype="horizontal" id="line25" class="line_2" anchor="left right bottom"/>
- <Static text="단축" position="absolute 796 692 891 715" align="align:center middle;" id="caption22" class="cell_1" anchor="left bottom"/>
- <Shape position="absolute 473 766 786 772" linetype="horizontal" id="line14" class="line_3" anchor="left bottom"/>
- <Static text="장축" position="absolute 796 718 891 741" align="align:center middle;" id="caption23" class="cell_1" anchor="left bottom"/>
- <Shape position="absolute 475 601 788 607" linetype="horizontal" id="line15" class="line_2" anchor="left bottom"/>
- <Button position="absolute 370 353 386 369" id="button61" class="icon_search" text="" anchor="left bottom" onclick="group3_button61_onclick"/>
- <Static text="두께" position="absolute 796 744 891 767" align="align:center middle;" id="caption24" class="cell_1" anchor="left bottom"/>
- <Shape position="absolute 475 629 788 635" linetype="horizontal" id="line16" class="line_2" anchor="left bottom"/>
- <Button position="absolute 815 74 917 96" id="button51" class="btn7" text="검색약품엑셀" anchor="top right" onclick="group3_button51_onclick"/>
- <Combo position="absolute 896 668 1191 687" id="combo4" class="combo_search" codecolumn="codecolumn" datacolumn="datacolumn" anchor="left right bottom">
- <Dataset id="innerdataset">
- <ColumnInfo>
- <Column id="codecolumn"/>
- <Column id="datacolumn"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="codecolumn">1</Col>
- <Col id="datacolumn">원형</Col>
- </Row>
- <Row>
- <Col id="codecolumn">2</Col>
- <Col id="datacolumn">타원형</Col>
- </Row>
- <Row>
- <Col id="codecolumn">3</Col>
- <Col id="datacolumn">삼각형</Col>
- </Row>
- <Row>
- <Col id="codecolumn">4</Col>
- <Col id="datacolumn">사각형</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">반원형</Col>
- </Row>
- <Row>
- <Col id="codecolumn">8</Col>
- <Col id="datacolumn">마름모형</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>
- <Static text="색상" position="absolute 796 350 891 619" align="align:center middle;" id="caption14" class="cell_1" anchor="left bottom"/>
- <Radio position="absolute 922 620 1098 640" id="radio1" class="radio_search" columncount="4" rowcount="1" codecolumn="codecolumn" datacolumn="datacolumn" anchor="left bottom">
- <Dataset id="innerdataset">
- <ColumnInfo>
- <Column id="codecolumn"/>
- <Column id="datacolumn"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="codecolumn">0</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>
- <Row>
- <Col id="codecolumn">3</Col>
- <Col id="datacolumn">기타</Col>
- </Row>
- </Rows>
- </Dataset>
- </Radio>
- <Shape position="absolute 475 741 788 747" linetype="horizontal" id="line17" class="line_2" anchor="left bottom"/>
- <Shape position="absolute 5 345 465 351" linetype="horizontal" id="line1" class="line_1" anchor="left bottom"/>
- <Shape position="absolute 796 618 1190 624" linetype="horizontal" id="line18" class="line_2" anchor="left right bottom"/>
- <Shape position="absolute 5 766 465 772" linetype="horizontal" id="line2" class="line_3" anchor="left bottom"/>
- <Shape position="absolute 796 640 1190 646" linetype="horizontal" id="line19" class="line_2" anchor="left right bottom"/>
- <Radio position="absolute 922 644 1098 664" id="radio3" class="radio_search" columncount="4" rowcount="1" codecolumn="codecolumn" datacolumn="datacolumn" anchor="left bottom">
- <Dataset id="innerdataset">
- <ColumnInfo>
- <Column id="codecolumn"/>
- <Column id="datacolumn"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="codecolumn">0</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>
- <Row>
- <Col id="codecolumn">3</Col>
- <Col id="datacolumn">기타</Col>
- </Row>
- </Rows>
- </Dataset>
- </Radio>
- <Shape position="absolute 5 398 465 399" linetype="horizontal" id="line3" class="line_2" anchor="left bottom"/>
- <Static text="검색결과" position="absolute 5 329 100 345" id="caption7" class="tit_2" anchor="left bottom"/>
- <Static text="분할선" position="absolute 796 622 891 663" align="align:center middle;" id="caption17" class="cell_1" anchor="left bottom"/>
- <Shape position="absolute 5 494 465 500" linetype="horizontal" id="line4" class="line_2" anchor="left bottom"/>
- <Static text="모양" position="absolute 796 666 891 689" align="align:center middle;" id="caption18" class="cell_1" anchor="left bottom"/>
- <Shape position="absolute 5 520 465 526" linetype="horizontal" id="line5" class="line_2" anchor="left bottom"/>
- <Shape position="absolute 475 489 788 495" linetype="horizontal" id="line6" class="line_2" anchor="left bottom"/>
- <Shape position="absolute 5 643 465 649" linetype="horizontal" id="line7" class="line_2" anchor="left bottom"/>
- <Grid position="absolute 895 350 1190 619" id="grd_color" binddataset="ds_hidden_colorlist" anchor="left right bottom" autofittype="col" selecttype="cell">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="44"/>
- <Column size="0"/>
- <Column size="90"/>
- <Column size="140"/>
- </Columns>
- <Rows>
- <Row size="24" band="head"/>
- <Row size="24"/>
- </Rows>
- <Band id="head">
- <Cell text="선택"/>
- <Cell col="1" text="색상"/>
- <Cell col="2" text="색상명"/>
- <Cell col="3" text="색상"/>
- </Band>
- <Band id="body">
- <Cell displaytype="checkbox" edittype="checkbox" text="bind:chk"/>
- <Cell col="1" text="bind:color"/>
- <Cell col="2" text="bind:colornm"/>
- <Cell col="3" style="background:EXPR(color == '1' ? "#ffffff" : (color == '2' ? "#ff6600" : (color == '3' ? "#ffff00" : (color == '4' ? "#ff99cc" : (color == '5' ? "#ff0000" : (color == '6' ? "#ff00ff" : (color == '7' ? "#00ff00" : (color == '8' ? "#0000ff" : (color == '9' ? "#993300" : (color == '10' ? "#c0c0c0" : (color == '11' ? "#000000" : (color == '12' ? "#ccffcc" : (color == '13' ? "#008080" : (color == '14' ? "#000080" : (color == '15' ? "#800000" : "")))))))))))))));background2:EXPR(color == '1' ? "#ffffff" : (color == '2' ? "#ff6600" : (color == '3' ? "#ffff00" : (color == '4' ? "#ff99cc" : (color == '5' ? "#ff0000" : (color == '6' ? "#ff00ff" : (color == '7' ? "#00ff00" : (color == '8' ? "#0000ff" : (color == '9' ? "#993300" : (color == '10' ? "#c0c0c0" : (color == '11' ? "#000000" : (color == '12' ? "#ccffcc" : (color == '13' ? "#008080" : (color == '14' ? "#000080" : (color == '15' ? "#800000" : "")))))))))))))));selectbackground: ;" text="bind:colorval"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Grid position="absolute 0 101 1194 320" id="grd_drugid" binddataset="ds_main_drugitem_drugidlist" anchor="all" cellsizingtype="both" oncelldblclick="group3_grd_drugid_oncelldblclick" oncellclick="group3_grd_drugid_oncellclick">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="25"/>
- <Column size="0"/>
- <Column size="100"/>
- <Column size="160"/>
- <Column size="160"/>
- <Column size="170"/>
- <Column size="180"/>
- <Column size="120"/>
- <Column size="100"/>
- <Column size="100"/>
- <Column size="100"/>
- <Column size="100"/>
- <Column size="50"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="62"/>
- <Column size="50"/>
- <Column size="50"/>
- <Column size="50"/>
- <Column size="50"/>
- <Column size="80"/>
- <Column size="80"/>
- <Column size="80"/>
- <Column size="80"/>
- <Column size="60"/>
- <Column size="60"/>
- </Columns>
- <Rows>
- <Row size="24" band="head"/>
- <Row size="24"/>
- </Rows>
- <Band id="head">
- <Cell/>
- <Cell col="1" text="idcd"/>
- <Cell col="2" text="약품코드"/>
- <Cell col="3" text="한글약품명"/>
- <Cell col="4" text="영문약품명"/>
- <Cell col="5" text="성분 및 함량"/>
- <Cell col="6" text="효능 및 효과"/>
- <Cell col="7" text="본원사용여부"/>
- <Cell col="8" text="제형이름"/>
- <Cell col="9" text="동효약"/>
- <Cell col="10" text="동종약"/>
- <Cell col="11" text="제약회사"/>
- <Cell col="12" text="사진"/>
- <Cell col="13" text="phot"/>
- <Cell col="14" text="색상"/>
- <Cell col="15" text="색상명"/>
- <Cell col="16" text="문자1"/>
- <Cell col="17" text="문자2"/>
- <Cell col="18" text="문양1"/>
- <Cell col="19" text="문양2"/>
- <Cell col="20" text="모양"/>
- <Cell col="21" text="장축"/>
- <Cell col="22" text="단축"/>
- <Cell col="23" text="두께"/>
- <Cell col="24" text="분할선뒤"/>
- <Cell col="25" text="분할선앞"/>
- </Band>
- <Band id="body">
- <Cell celltype="head" expr="expr:currow+1"/>
- <Cell col="1" text="bind:idcd"/>
- <Cell col="2" style="align:left middle;padding:0 3 0 3;" text="bind:drugcd"/>
- <Cell col="3" style="align:left middle;padding:0 3 0 3;" text="bind:hngnm"/>
- <Cell col="4" style="align:left middle;padding:0 3 0 3;" text="bind:engnm"/>
- <Cell col="5" style="align:left middle;padding:0 3 0 3;" text="bind:comcnts"/>
- <Cell col="6" style="align:left middle;padding:0 3 0 3;" text="bind:efcysmm"/>
- <Cell col="7" displaytype="combo" edittype="combo" style="align:left middle;padding:0 3 0 3;" text="bind:useyn" combodataset="ds_init_A0635" combocodecol="cdid" combodatacol="cdnm" enable="false"/>
- <Cell col="8" displaytype="combo" edittype="combo" style="align:left middle;padding:0 3 0 3;" text="bind:drugtype" combodataset="ds_cmb_drugtype" combocodecol="value" combodatacol="label" enable="false"/>
- <Cell col="9" style="align:left middle;padding:0 3 0 3;" text="bind:samedrug"/>
- <Cell col="10" style="align:left middle;padding:0 3 0 3;" text="bind:homodrugflag"/>
- <Cell col="11" style="align:left middle;padding:0 3 0 3;" text="bind:prodcmpynm"/>
- <Cell col="12" displaytype="checkbox" edittype="checkbox" style="align:center middle;padding:0 3 0 3;" text="bind:photyn" enable="false"/>
- <Cell col="13" style="align:left middle;padding:0 3 0 3;" text="bind:phot"/>
- <Cell col="14" style="align:left middle;padding:0 3 0 3;" text="bind:color"/>
- <Cell col="15" style="align:center middle;padding:0 3 0 3;" text="bind:colornm"/>
- <Cell col="16" style="align:center middle;padding:0 3 0 3;" text="bind:char1"/>
- <Cell col="17" style="align:center middle;padding:0 3 0 3;" text="bind:char2"/>
- <Cell col="18" style="align:center middle;padding:0 3 0 3;" text="bind:shape1"/>
- <Cell col="19" style="align:center middle;padding:0 3 0 3;" text="bind:shape2"/>
- <Cell col="20" displaytype="combo" edittype="combo" style="align:center middle;padding:0 3 0 3;" text="bind:shapecd" combodataset="ds_cmb_shapecd" combocodecol="value" combodatacol="label" enable="false"/>
- <Cell col="21" style="align:right middle;padding:0 3 0 3;" text="bind:longax"/>
- <Cell col="22" style="align:right middle;padding:0 3 0 3;" text="bind:shrtax"/>
- <Cell col="23" style="align:right middle;padding:0 3 0 3;" text="bind:thick"/>
- <Cell col="24" displaytype="combo" edittype="combo" style="align:center middle;padding:0 3 0 3;" text="bind:divline1" combodataset="ds_cmb_divline1" combocodecol="value" combodatacol="label" enable="false"/>
- <Cell col="25" displaytype="combo" edittype="combo" style="align:center middle;padding:0 3 0 3;" text="bind:divline2" combodataset="ds_cmb_divline2" combocodecol="value" combodatacol="label" enable="false"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Edit readonly="true" position="absolute 210 326 310 345" id="output1" visible="false" anchor="left bottom"/>
- <Edit readonly="true" position="absolute 105 326 205 345" id="output2" visible="false" anchor="left bottom"/>
- <ImageViewer position="absolute 475 350 476 466" id="img_phot" visible="false" anchor="left bottom"/>
- <Button position="absolute 210 745 226 761" id="button3" class="icon_search" text="" anchor="left bottom" onclick="group3_button3_onclick"/>
- <Button position="absolute 655 471 741 490" id="btn_img" class="btn2" text="사진불러오기" anchor="left bottom" onclick="group3_btn_img_onclick"/>
- <Button position="absolute 745 471 787 490" id="btn_delimg" class="btn2" text="삭제" anchor="left bottom" onclick="group3_btn_delimg_onclick"/>
- <Button position="absolute 610 608 696 627" id="btn_shape1" class="btn2" text="문양불러오기" anchor="left bottom" onclick="group3_btn_shape1_onclick"/>
- <Button position="absolute 700 608 742 627" id="btn_delshape1" class="btn2" text="삭제" anchor="left bottom" onclick="group3_btn_delshape1_onclick"/>
- <Button position="absolute 610 746 696 765" id="btn_shape2" class="btn2" text="문양불러오기" anchor="left bottom" onclick="group3_btn_shape2_onclick"/>
- <Button position="absolute 700 746 742 765" id="btn_delshape2" class="btn2" text="삭제" anchor="left bottom" onclick="group3_btn_delshape2_onclick"/>
- <Button position="absolute 1122 323 1190 345" id="button12" class="btn4" text="초기화" anchor="right bottom" onclick="group3_button12_onclick"/>
- <Button position="absolute 1004 323 1060 345" id="btn_upd" class="btn4" text="수정" anchor="right bottom" onclick="group3_btn_upd_onclick"/>
- <Button position="absolute 1063 323 1119 345" id="btn_del" class="btn4" text="삭제" anchor="right bottom" onclick="group3_btn_del_onclick"/>
- <Button position="absolute 921 323 1001 345" id="btn_save" class="btn4" visible="true" text="신규입력" anchor="right bottom" onclick="group3_btn_save_onclick"/>
- <Grid position="absolute 5 237 310 302" id="grd_com" visible="false" binddataset="ds_temp_cominfo" anchor="default">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="100"/>
- <Column size="100"/>
- <Column size="100"/>
- </Columns>
- <Rows>
- <Row size="24" band="head"/>
- <Row size="24"/>
- </Rows>
- <Band id="head">
- <Cell text="comcd"/>
- <Cell col="1" text="comexcd"/>
- <Cell col="2" text="comnm"/>
- </Band>
- <Band id="body">
- <Cell text="bind:comcd"/>
- <Cell col="1" text="bind:comexcd"/>
- <Cell col="2" text="bind:comnm"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Button position="absolute 1092 74 1194 96" id="button2" class="btn7" text="전체약품엑셀" anchor="top right" onclick="group3_button2_onclick"/>
- <MaskEdit position="absolute 977 77 1022 96" align="align:center middle;" id="input1" mask="#,###" anchor="top right"/>
- <MaskEdit position="absolute 1042 77 1087 96" align="align:center middle;" id="input6" mask="#,###" anchor="top right"/>
- <Static text="~" position="absolute 1027 78 1042 98" id="caption30" anchor="top right"/>
- <Static text="구간:" position="absolute 939 78 974 98" id="caption31" anchor="top right"/>
- <Grid position="absolute 755 210 1194 300" id="datagrid_exl" visible="false" binddataset="ds_temp_drugitem_drugidlist" anchor="default">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="57"/>
- <Column size="52"/>
- <Column size="100"/>
- <Column size="100"/>
- <Column size="100"/>
- <Column size="100"/>
- <Column size="100"/>
- <Column size="100"/>
- <Column size="100"/>
- <Column size="100"/>
- <Column size="100"/>
- <Column size="100"/>
- <Column size="100"/>
- <Column size="100"/>
- <Column size="100"/>
- <Column size="100"/>
- <Column size="100"/>
- <Column size="100"/>
- <Column size="100"/>
- <Column size="100"/>
- <Column size="100"/>
- <Column size="100"/>
- <Column size="100"/>
- <Column size="100"/>
- <Column size="100"/>
- <Column size="100"/>
- <Column size="100"/>
- <Column size="100"/>
- <Column size="100"/>
- <Column size="100"/>
- <Column size="100"/>
- <Column size="100"/>
- <Column size="100"/>
- <Column size="100"/>
- <Column size="100"/>
- <Column size="100"/>
- </Columns>
- <Rows>
- <Row size="24" band="head"/>
- <Row size="24"/>
- </Rows>
- <Band id="head">
- <Cell text="RowSeq"/>
- <Cell col="1" text="idcd"/>
- <Cell col="2" text="drugcd"/>
- <Cell col="3" text="comcnts"/>
- <Cell col="4" text="hngnm"/>
- <Cell col="5" text="engnm"/>
- <Cell col="6" text="efcysmm"/>
- <Cell col="7" text="drugtype"/>
- <Cell col="8" text="homodrugflag"/>
- <Cell col="9" text="prodcmpycd"/>
- <Cell col="10" text="prodcmpynm"/>
- <Cell col="11" text="samedrug"/>
- <Cell col="12" text="color"/>
- <Cell col="13" text="divline1"/>
- <Cell col="14" text="divline2"/>
- <Cell col="15" text="shapecd"/>
- <Cell col="16" text="char1"/>
- <Cell col="17" text="char2"/>
- <Cell col="18" text="shape1"/>
- <Cell col="19" text="shape2"/>
- <Cell col="20" text="shrtax"/>
- <Cell col="21" text="longax"/>
- <Cell col="22" text="thick"/>
- <Cell col="23" text="photoid"/>
- <Cell col="24" text="atccode"/>
- <Cell col="25" text="useyn"/>
- <Cell col="26" text="fstrgstrid"/>
- <Cell col="27" text="fstrgstdt"/>
- <Cell col="28" text="lastupdtrid"/>
- <Cell col="29" text="lastupdtdt"/>
- <Cell col="30" text="edicode"/>
- <Cell col="31" text="srchchar1"/>
- <Cell col="32" text="srchchar2"/>
- <Cell col="33" text="yakpum_cd"/>
- <Cell col="34" text="kd_cd"/>
- <Cell col="35" text="orgidx"/>
- </Band>
- <Band id="body">
- <Cell text="bind:rowseq"/>
- <Cell col="1" text="bind:idcd"/>
- <Cell col="2" text="bind:drugcd"/>
- <Cell col="3" text="bind:comcnts"/>
- <Cell col="4" text="bind:hngnm"/>
- <Cell col="5" text="bind:engnm"/>
- <Cell col="6" text="bind:efcysmm"/>
- <Cell col="7" text="bind:drugtype"/>
- <Cell col="8" text="bind:homodrugflag"/>
- <Cell col="9" text="bind:prodcmpycd"/>
- <Cell col="10" text="bind:prodcmpynm"/>
- <Cell col="11" text="bind:samedrug"/>
- <Cell col="12" text="bind:color"/>
- <Cell col="13" text="bind:divline1"/>
- <Cell col="14" text="bind:divline2"/>
- <Cell col="15" text="bind:shapecd"/>
- <Cell col="16" text="bind:char1"/>
- <Cell col="17" text="bind:char2"/>
- <Cell col="18" text="bind:shape1"/>
- <Cell col="19" text="bind:shape2"/>
- <Cell col="20" text="bind:shrtax"/>
- <Cell col="21" text="bind:longax"/>
- <Cell col="22" text="bind:thick"/>
- <Cell col="23" text="bind:photoid"/>
- <Cell col="24" text="bind:atccode"/>
- <Cell col="25" text="bind:useyn"/>
- <Cell col="26" text="bind:fstrgstrid"/>
- <Cell col="27" text="bind:fstrgstdt" mask="####-##-## ##:##:## "/>
- <Cell col="28" text="bind:lastupdtrid"/>
- <Cell col="29" text="bind:lastupdtdt" mask="####-##-## ##:##:## "/>
- <Cell col="30" text="bind:edicode"/>
- <Cell col="31" text="bind:srchchar1"/>
- <Cell col="32" text="bind:srchchar2"/>
- <Cell col="33" text="bind:yakpum_cd"/>
- <Cell col="34" text="bind:kd_cd"/>
- <Cell col="35" text="bind:orgidx"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Static text="성분 및 함량" position="absolute 5 376 100 495" align="align:center middle;" id="caption1" class="cell_1" anchor="left bottom"/>
- <Static text="한글상품명" position="absolute 5 498 100 521" align="align:center middle;" id="caption3" class="cell_1" anchor="left bottom"/>
- <Static text="영문상품명" position="absolute 5 524 100 547" align="align:center middle;" id="caption4" class="cell_1" anchor="left bottom"/>
- <Static text="효능 및 효과" position="absolute 5 550 100 644" align="align:center middle;" id="caption5" class="cell_1" anchor="left bottom"/>
- <Static text="제형" position="absolute 5 647 100 670" align="align:center middle;" id="caption6" class="cell_1" anchor="left bottom"/>
- <Static text="제약회사" position="absolute 230 647 325 670" align="align:center middle;" id="caption8" class="cell_1" anchor="left bottom"/>
- <Static text="동효약" position="absolute 5 673 100 741" align="align:center middle;" id="caption9" class="cell_1" anchor="left bottom"/>
- <Static text="성분ATC코드" position="absolute 5 744 100 767" align="align:center middle;" id="caption25" class="cell_1" anchor="left bottom"/>
- <Static text="본원사용여부" position="absolute 230 744 325 767" align="align:center middle;" id="caption27" class="cell_1" anchor="left bottom"/>
- <Static text="동종약" position="absolute 230 673 325 741" align="align:center middle;" id="caption10" class="cell_1" anchor="left bottom"/>
- <ImageViewer position="absolute 475 657 603 742" id="img_shape2" anchor="left bottom" stretch="fixaspectratio" onclick="group3_img_shape2_onclick"/>
- <ImageViewer position="absolute 475 517 603 602" id="img_shape1" anchor="left bottom" stretch="fixaspectratio" onclick="group3_img_shape1_onclick"/>
- <Edit position="absolute 475 746 603 765" id="ipt_shape2" class="input_search" anchor="left bottom"/>
- <Static text="문양 1" position="absolute 475 493 603 516" align="align:center middle;" id="caption11" class="cell_1" anchor="left bottom"/>
- <Static text="문자 1" position="absolute 608 493 788 516" align="align:center middle;" id="caption13" class="cell_1" anchor="left bottom"/>
- <Static text="문자 2" position="absolute 608 633 788 656" align="align:center middle;" id="caption15" class="cell_1" anchor="left bottom"/>
- <Static text="문양 2" position="absolute 475 633 603 656" align="align:center middle;" id="caption16" class="cell_1" anchor="left bottom"/>
- <TextArea position="absolute 608 517 788 602" id="textarea3" anchor="left bottom"/>
- <TextArea position="absolute 608 657 788 742" id="textarea4" anchor="left bottom"/>
- <Edit position="absolute 475 607 603 626" id="ipt_shape1" class="input_search" anchor="left bottom"/>
- <TextArea position="absolute 330 674 465 740" id="input9" class="input_search" anchor="left bottom"/>
- <Edit position="absolute 105 746 200 765" id="input5" anchor="left bottom"/>
- <Combo position="absolute 330 746 465 765" id="cmb_useyn" class="combo_search" innerdataset="@ds_init_A0635" datacolumn="cdnm" codecolumn="cdid" anchor="left bottom"/>
- <TextArea position="absolute 105 674 225 740" id="input7" class="input_search" anchor="left bottom"/>
- <Combo position="absolute 105 649 225 668" id="combo3" class="combo_search" codecolumn="codecolumn" datacolumn="datacolumn" anchor="left bottom">
- <Dataset id="innerdataset">
- <ColumnInfo>
- <Column id="codecolumn"/>
- <Column id="datacolumn"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="codecolumn">10</Col>
- <Col id="datacolumn">나정</Col>
- </Row>
- <Row>
- <Col id="codecolumn">11</Col>
- <Col id="datacolumn">필름코팅정</Col>
- </Row>
- <Row>
- <Col id="codecolumn">12</Col>
- <Col id="datacolumn">설하정</Col>
- </Row>
- <Row>
- <Col id="codecolumn">13</Col>
- <Col id="datacolumn">붕해(현탁)정</Col>
- </Row>
- <Row>
- <Col id="codecolumn">14</Col>
- <Col id="datacolumn">당의정</Col>
- </Row>
- <Row>
- <Col id="codecolumn">15</Col>
- <Col id="datacolumn">다층정</Col>
- </Row>
- <Row>
- <Col id="codecolumn">16</Col>
- <Col id="datacolumn">트로키정</Col>
- </Row>
- <Row>
- <Col id="codecolumn">17</Col>
- <Col id="datacolumn">저작정</Col>
- </Row>
- <Row>
- <Col id="codecolumn">18</Col>
- <Col id="datacolumn">기타</Col>
- </Row>
- <Row>
- <Col id="codecolumn">19</Col>
- <Col id="datacolumn">장용정</Col>
- </Row>
- <Row>
- <Col id="codecolumn">2</Col>
- <Col id="datacolumn">경질캡슐</Col>
- </Row>
- <Row>
- <Col id="codecolumn">3</Col>
- <Col id="datacolumn">연질캡슐</Col>
- </Row>
- </Rows>
- </Dataset>
- </Combo>
- <TextArea position="absolute 105 378 465 493" id="textarea1" anchor="left bottom"/>
- <Edit position="absolute 105 352 365 371" id="input2" class="input_search" anchor="left bottom"/>
- <TextArea position="absolute 105 552 465 643" id="textarea2" anchor="left bottom"/>
- <Edit position="absolute 105 500 465 519" id="input3" class="input_search" anchor="left bottom"/>
- <Edit position="absolute 105 526 465 545" id="input4" class="input_search" anchor="left bottom"/>
- <Edit position="absolute 330 649 440 668" id="ipt_prodcmpynm" class="input_search" anchor="left bottom"/>
- <Shape id="line00" class="line_2" position="absolute 5 372 465 378" anchor="left bottom"/>
- <Static text="약품코드" position="absolute 5 350 100 373" align="align:center middle;" id="caption12" class="cell_1" anchor="left bottom"/>
- <ImageViewer id="Base64_Preview1" taborder="1" position="absolute 476 350 789 465" stretch="fixaspectratio" anchor="left bottom" imagealign="left middle"/>
- <Shape id="line13" class="line_1" position="absolute 0 96 1194 102" anchor="left top right"/>
- <Shape id="line20" class="line_1" position="absolute 0 95 1194 101" anchor="left top right"/>
- <Shape id="line26" class="line_1" position="absolute 0 97 1194 103" anchor="left top right"/>
- <Shape id="line27" class="line_1" position="absolute 796 344 1190 350" anchor="left right bottom" style="border:0 none #808080ff ;"/>
- <Shape id="line28" class="line_1" position="absolute 475 344 788 350" anchor="left bottom"/>
- <Shape id="line29" class="line_1" position="absolute 5 344 465 350" anchor="left bottom"/>
- <Shape id="line30" class="line_1" position="absolute 796 346 1190 352" anchor="left right bottom" style="border:0 none #808080ff ;"/>
- <Shape id="line31" class="line_1" position="absolute 475 346 788 352" anchor="left bottom"/>
- <Shape id="line32" class="line_1" position="absolute 5 346 465 352" anchor="left bottom"/>
- </Layout>
- </Layouts>
- </Div>
- <Static id="caption19" text="약품식별 마스터 관리" class="tit_1" position="absolute 0 0 180 25"/>
- <Div id="group1" taborder="1" text="Div00" position="absolute 0 84 778 113" anchor="left top right">
- <Layouts>
- <Layout>
- <Button id="btn_photo" taborder="0" text="약품사진등록" class="btn3" visible="false" position="absolute 210 3 322 25" anchor="default"/>
- <Button id="button11" taborder="1" text="성분별 수정" class="btn3" position="absolute 0 3 104 25" anchor="default" onclick="group1_button11_onclick"/>
- <Button id="button10" taborder="2" text="자료등록" class="btn3" position="absolute 107 3 207 25" anchor="default" onclick="group1_button10_onclick" visible="false"/>
- </Layout>
- </Layouts>
- </Div>
- <Div id="group2" taborder="2" position="absolute 0 25 1194 85" class="div_SA" anchor="left top right">
- <Layouts>
- <Layout>
- <Shape id="line13" linetype="vertical" position="absolute 1077 10 1083 50" anchor="right"/>
- <Static id="caption2" text="검색조건 :" class="search_name" position="absolute 20 11 111 28" anchor="default"/>
- <Combo id="cmb_srchflag" taborder="1" codecolumn="codecolumn" datacolumn="datacolumn" class="combo_search" position="absolute 107 9 260 28" anchor="default">
- <Dataset id="innerdataset">
- <ColumnInfo>
- <Column id="codecolumn"/>
- <Column id="datacolumn"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="codecolumn">drugcd</Col>
- <Col id="datacolumn">약품코드</Col>
- </Row>
- <Row>
- <Col id="codecolumn">srchname</Col>
- <Col id="datacolumn">약품명</Col>
- </Row>
- <Row>
- <Col id="codecolumn">comcnts</Col>
- <Col id="datacolumn">성분명</Col>
- </Row>
- </Rows>
- </Dataset>
- </Combo>
- <Edit id="ipt_srchval" taborder="2" class="input_search" position="absolute 262 9 472 28" anchor="default" onkeydown="group2_ipt_srchval_onkeydown"/>
- <Button id="btn_sea" taborder="3" text="조회" class="btn1" position="absolute 1107 19 1163 41" anchor="right" onclick="group2_btn_sea_onclick"/>
- <Static id="caption26" text="일자 :" class="search_name" position="absolute 510 11 580 28" anchor="default"/>
- <Calendar id="input8" taborder="4" class="input_search" position="absolute 674 10 805 29" anchor="default" onchanged="group2_input8_onchanged"/>
- <Combo id="cmb_srchflag2" taborder="5" codecolumn="codecolumn" datacolumn="datacolumn" class="combo_search" position="absolute 582 10 672 29" anchor="default">
- <Dataset id="innerdataset">
- <ColumnInfo>
- <Column id="codecolumn"/>
- <Column id="datacolumn"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="codecolumn">fstrgstdt</Col>
- <Col id="datacolumn">등록일자</Col>
- </Row>
- <Row>
- <Col id="codecolumn">lastupdt</Col>
- <Col id="datacolumn">수정일자</Col>
- </Row>
- </Rows>
- </Dataset>
- </Combo>
- <Button id="btn_shape3" taborder="6" text="문양불러오기" class="btn2" position="absolute 957 10 1043 29" anchor="default" onclick="group2_btn_shape3_onclick"/>
- <ImageViewer id="img_shape3" taborder="7" position="absolute 911 8 956 53" anchor="default" style="background:transparent;border:1 solid silver ;" stretch="fixaspectratio"/>
- <Static id="caption28" text="문양 :" class="search_name" position="absolute 840 11 910 28" anchor="default"/>
- <Button id="btn_delshape3" taborder="8" text="삭제" class="btn2" position="absolute 957 30 999 49" anchor="default" onclick="group2_btn_delshape3_onclick"/>
- <Edit id="ipt_srchval_re" taborder="9" class="input_search" position="absolute 262 34 472 53" anchor="default" onkeydown="group2_ipt_srchval_re_onkeydown"/>
- <Static id="caption29" text="재검색 :" class="search_name" position="absolute 175 36 255 53" anchor="default"/>
- <Button id="btn_sea_re" taborder="10" text="재검색" class="btn1" position="absolute 479 33 547 55" anchor="default" onclick="group2_btn_sea_re_onclick"/>
- </Layout>
- </Layouts>
- </Div>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_main_drugitem_drugidlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="idcd" type="INT" size="256" sumtext="약품식별번호"/>
- <Column id="drugcd" type="STRING" size="256" sumtext="약품코드"/>
- <Column id="hngnm" type="STRING" size="256" sumtext="한글약품명"/>
- <Column id="engnm" type="STRING" size="256" sumtext="영문약품명"/>
- <Column id="comcnts" type="STRING" size="256" sumtext="성분 및 함량"/>
- <Column id="efcysmm" type="STRING" size="256" sumtext="효능 및 효과"/>
- <Column id="drugtype" type="STRING" size="256" sumtext="제형"/>
- <Column id="samedrug" type="STRING" size="256" sumtext="동효약"/>
- <Column id="homodrugflag" type="STRING" size="256" sumtext="동종약"/>
- <Column id="prodcmpynm" type="STRING" size="256" sumtext="제약회사"/>
- <Column id="photyn" type="STRING" size="256" sumtext="이미지여부"/>
- <Column id="phot" type="BLOB" size="0" encript="base64" sumtext="이미지"/>
- <Column id="color" type="STRING" size="256" sumtext="색상"/>
- <Column id="colornm" type="STRING" size="256" sumtext="색상명"/>
- <Column id="char1" type="STRING" size="256" sumtext="문자1"/>
- <Column id="char2" type="STRING" size="256" sumtext="문자2"/>
- <Column id="img1" type="BLOB" size="0" encript="base64" sumtext="문양이미지"/>
- <Column id="shape1" type="BLOB" size="0" encript="base64" sumtext="문형1"/>
- <Column id="img2" type="BLOB" size="0" encript="base64" sumtext="문양이미지"/>
- <Column id="shape2" type="BLOB" size="0" encript="base64" sumtext="문형2"/>
- <Column id="shapecd" type="STRING" size="256" sumtext="모양"/>
- <Column id="longax" type="STRING" size="256" sumtext="장축"/>
- <Column id="shrtax" type="STRING" size="256" sumtext="단축"/>
- <Column id="thick" type="STRING" size="256" sumtext="두께"/>
- <Column id="divline1" type="STRING" size="256" sumtext="분할선뒤"/>
- <Column id="divline2" type="STRING" size="256" sumtext="분할선앞"/>
- <Column id="photoid" type="STRING" size="256" sumtext="이미지ID"/>
- <Column id="atccode" type="STRING" size="256" sumtext="ATC성분코드"/>
- <Column id="useyn" type="STRING" size="256" sumtext="본원사용여부"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_main_drugidinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="drugcd" type="STRING" size="256"/>
- <Column id="hngnm" type="STRING" size="256"/>
- <Column id="engnm" type="STRING" size="256"/>
- <Column id="comcnts" type="STRING" size="256"/>
- <Column id="efcysmm" type="STRING" size="256"/>
- <Column id="drugtype" type="STRING" size="256"/>
- <Column id="samedrug" type="STRING" size="256"/>
- <Column id="homodrugflag" type="STRING" size="256"/>
- <Column id="prodcmpynm" type="STRING" size="256"/>
- <Column id="phot" type="BLOB" size="256"/>
- <Column id="color" type="STRING" size="256"/>
- <Column id="colornm" type="STRING" size="256"/>
- <Column id="char1" type="STRING" size="256"/>
- <Column id="char2" type="STRING" size="256"/>
- <Column id="img1" type="BLOB" size="256"/>
- <Column id="shape1" type="STRING" size="256"/>
- <Column id="img2" type="BLOB" size="256"/>
- <Column id="shape2" type="STRING" size="256"/>
- <Column id="shapecd" type="STRING" size="256"/>
- <Column id="longax" type="STRING" size="256"/>
- <Column id="shrtax" type="STRING" size="256"/>
- <Column id="thick" type="STRING" size="256"/>
- <Column id="divline1" type="STRING" size="256"/>
- <Column id="divline2" type="STRING" size="256"/>
- <Column id="idcd" type="STRING" size="256"/>
- <Column id="photoid" type="STRING" size="256"/>
- <Column id="atccode" type="STRING" size="256"/>
- <Column id="useyn" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="drugcd"/>
- <Col id="hngnm"/>
- <Col id="engnm"/>
- <Col id="comcnts"/>
- <Col id="efcysmm"/>
- <Col id="drugtype"/>
- <Col id="samedrug"/>
- <Col id="homodrugflag"/>
- <Col id="prodcmpynm"/>
- <Col id="phot"/>
- <Col id="color"/>
- <Col id="colornm"/>
- <Col id="char1"/>
- <Col id="char2"/>
- <Col id="img1"/>
- <Col id="shape1"/>
- <Col id="img2"/>
- <Col id="shape2"/>
- <Col id="shapecd"/>
- <Col id="longax"/>
- <Col id="shrtax"/>
- <Col id="thick"/>
- <Col id="divline1"/>
- <Col id="divline2"/>
- <Col id="idcd"/>
- <Col id="photoid"/>
- <Col id="atccode"/>
- <Col id="useyn"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_main_drugidimg_drugidimg" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="phot" type="BLOB" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- <Dataset id="ds_main_drugidimg_shape" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="shape1" type="BLOB" size="256"/>
- <Column id="shape2" type="BLOB" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="shape1"/>
- <Col id="shape2"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_send_srchinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="srchflag" type="STRING" size="256"/>
- <Column id="srchval" type="STRING" size="256"/>
- <Column id="srchflag2" type="STRING" size="256"/>
- <Column id="srchval2" type="STRING" size="256"/>
- <Column id="instcd" type="STRING" size="256"/>
- <Column id="srchshapecd" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="srchflag">drugcd</Col>
- <Col id="srchval"/>
- <Col id="srchflag2">fstrgstdt</Col>
- <Col id="srchval2"/>
- <Col id="instcd"/>
- <Col id="srchshapecd"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_send_saveitem_drugidinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_send_imginfo_drugidinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_send_srchseq" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="srchflag" type="STRING" size="256"/>
- <Column id="srchstart" type="STRING" size="256"/>
- <Column id="srchend" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="srchflag">A</Col>
- <Col id="srchstart">0</Col>
- <Col id="srchend">0</Col>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_init_A0044" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_init_A0635" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_hidden_colorlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="chk" type="STRING" size="256"/>
- <Column id="color" type="STRING" size="256"/>
- <Column id="colornm" type="STRING" size="256"/>
- <Column id="colorval" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="chk"/>
- <Col id="color">1</Col>
- <Col id="colornm">하양</Col>
- <Col id="colorval"/>
- </Row>
- <Row>
- <Col id="chk"/>
- <Col id="color">2</Col>
- <Col id="colornm">주황</Col>
- <Col id="colorval"/>
- </Row>
- <Row>
- <Col id="chk"/>
- <Col id="color">3</Col>
- <Col id="colornm">노랑</Col>
- <Col id="colorval"/>
- </Row>
- <Row>
- <Col id="chk"/>
- <Col id="color">4</Col>
- <Col id="colornm">분홍</Col>
- <Col id="colorval"/>
- </Row>
- <Row>
- <Col id="chk"/>
- <Col id="color">5</Col>
- <Col id="colornm">빨강</Col>
- <Col id="colorval"/>
- </Row>
- <Row>
- <Col id="chk"/>
- <Col id="color">6</Col>
- <Col id="colornm">보라</Col>
- <Col id="colorval"/>
- </Row>
- <Row>
- <Col id="chk"/>
- <Col id="color">7</Col>
- <Col id="colornm">초록</Col>
- <Col id="colorval"/>
- </Row>
- <Row>
- <Col id="chk"/>
- <Col id="color">8</Col>
- <Col id="colornm">파랑</Col>
- <Col id="colorval"/>
- </Row>
- <Row>
- <Col id="chk"/>
- <Col id="color">9</Col>
- <Col id="colornm">갈색</Col>
- <Col id="colorval"/>
- </Row>
- <Row>
- <Col id="chk"/>
- <Col id="color">10</Col>
- <Col id="colornm">회색</Col>
- <Col id="colorval"/>
- </Row>
- <Row>
- <Col id="chk"/>
- <Col id="color">11</Col>
- <Col id="colornm">검정</Col>
- <Col id="colorval"/>
- </Row>
- <Row>
- <Col id="chk"/>
- <Col id="color">12</Col>
- <Col id="colornm">연두</Col>
- <Col id="colorval"/>
- </Row>
- <Row>
- <Col id="chk"/>
- <Col id="color">13</Col>
- <Col id="colornm">청록</Col>
- <Col id="colorval"/>
- </Row>
- <Row>
- <Col id="chk"/>
- <Col id="color">14</Col>
- <Col id="colornm">남색</Col>
- <Col id="colorval"/>
- </Row>
- <Row>
- <Col id="chk"/>
- <Col id="color">15</Col>
- <Col id="colornm">자주</Col>
- <Col id="colorval"/>
- </Row>
- <Row>
- <Col id="chk"/>
- <Col id="color">16</Col>
- <Col id="colornm">투명</Col>
- <Col id="colorval"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_hidden" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="receivedrugcd" type="STRING" size="256"/>
- <Column id="receivecom" type="STRING" size="256"/>
- <Column id="instcd" type="STRING" size="256"/>
- <Column id="receiveref" type="STRING" size="256"/>
- <Column id="receiveprodcmpy" type="STRING" size="256"/>
- <Column id="srchimginfo" type="BLOB" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="receivedrugcd">drugcd</Col>
- <Col id="receiveref">ds_main_drugidinfo</Col>
- <Col id="receivecom">ds_temp_cominfo</Col>
- <Col id="instcd">031</Col>
- <Col id="receiveprodcmpy">prodcmpynm</Col>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_hidden_receiveshape" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="shape" type="BLOB" size="256"/>
- <Column id="shapecd" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- <Dataset id="ds_hidden_img" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_temp_item" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_temp_cominfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="comcd" type="STRING" size="256"/>
- <Column id="comexcd" type="STRING" size="256"/>
- <Column id="comnm" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- <Dataset id="ds_temp_drugitem_drugidlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="rowseq" type="STRING" size="256"/>
- <Column id="idcd" type="STRING" size="256"/>
- <Column id="drugcd" type="STRING" size="256"/>
- <Column id="comcnts" type="STRING" size="256"/>
- <Column id="hngnm" type="STRING" size="256"/>
- <Column id="engnm" type="STRING" size="256"/>
- <Column id="efcysmm" type="STRING" size="256"/>
- <Column id="drugtype" type="STRING" size="256"/>
- <Column id="homodrugflag" type="STRING" size="256"/>
- <Column id="prodcmpycd" type="STRING" size="256"/>
- <Column id="prodcmpynm" type="STRING" size="256"/>
- <Column id="samedrug" type="STRING" size="256"/>
- <Column id="color" type="STRING" size="256"/>
- <Column id="divline1" type="STRING" size="256"/>
- <Column id="divline2" type="STRING" size="256"/>
- <Column id="shapecd" type="STRING" size="256"/>
- <Column id="char1" type="STRING" size="256"/>
- <Column id="char2" type="STRING" size="256"/>
- <Column id="shape1" type="BLOB" size="256"/>
- <Column id="shape2" type="BLOB" size="256"/>
- <Column id="shrtax" type="STRING" size="256"/>
- <Column id="longax" type="STRING" size="256"/>
- <Column id="thick" type="STRING" size="256"/>
- <Column id="photoid" type="STRING" size="256"/>
- <Column id="atccode" type="STRING" size="256"/>
- <Column id="useyn" type="STRING" size="256"/>
- <Column id="fstrgstrid" type="STRING" size="256"/>
- <Column id="fstrgstdt" type="STRING" size="256"/>
- <Column id="lastupdtrid" type="STRING" size="256"/>
- <Column id="lastupdtdt" type="STRING" size="256"/>
- <Column id="edicode" type="STRING" size="256"/>
- <Column id="srchchar1" type="BLOB" size="256"/>
- <Column id="srchchar2" type="BLOB" size="256"/>
- <Column id="yakpum_cd" type="STRING" size="256"/>
- <Column id="kd_cd" type="BLOB" size="256"/>
- <Column id="orgidx" type="BLOB" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="rowseq"/>
- <Col id="idcd"/>
- <Col id="drugcd"/>
- <Col id="comcnts"/>
- <Col id="hngnm"/>
- <Col id="engnm"/>
- <Col id="efcysmm"/>
- <Col id="drugtype"/>
- <Col id="homodrugflag"/>
- <Col id="prodcmpycd"/>
- <Col id="prodcmpynm"/>
- <Col id="samedrug"/>
- <Col id="color"/>
- <Col id="divline1"/>
- <Col id="divline2"/>
- <Col id="shapecd"/>
- <Col id="char1"/>
- <Col id="char2"/>
- <Col id="shape1"/>
- <Col id="shape2"/>
- <Col id="shrtax"/>
- <Col id="longax"/>
- <Col id="thick"/>
- <Col id="photoid"/>
- <Col id="atccode"/>
- <Col id="useyn"/>
- <Col id="fstrgstrid"/>
- <Col id="fstrgstdt"/>
- <Col id="lastupdtrid"/>
- <Col id="lastupdtdt"/>
- <Col id="edicode"/>
- <Col id="srchchar1"/>
- <Col id="srchchar2"/>
- <Col id="yakpum_cd"/>
- <Col id="kd_cd"/>
- <Col id="orgidx"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_temp" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="str_re" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- <Dataset id="ds_cmb_drugtype" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="label" type="STRING" size="256"/>
- <Column id="value" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="label">나정</Col>
- <Col id="value">10</Col>
- </Row>
- <Row>
- <Col id="label">필름코팅정</Col>
- <Col id="value">11</Col>
- </Row>
- <Row>
- <Col id="label">설하정</Col>
- <Col id="value">12</Col>
- </Row>
- <Row>
- <Col id="label">붕해현탁정</Col>
- <Col id="value">13</Col>
- </Row>
- <Row>
- <Col id="label">당의정</Col>
- <Col id="value">14</Col>
- </Row>
- <Row>
- <Col id="label">다층정</Col>
- <Col id="value">15</Col>
- </Row>
- <Row>
- <Col id="label">정제</Col>
- <Col id="value">16</Col>
- </Row>
- <Row>
- <Col id="label">츄어블정</Col>
- <Col id="value">17</Col>
- </Row>
- <Row>
- <Col id="label">서방정</Col>
- <Col id="value">18</Col>
- </Row>
- <Row>
- <Col id="label">장용정</Col>
- <Col id="value">19</Col>
- </Row>
- <Row>
- <Col id="label">경질캡슐</Col>
- <Col id="value">2</Col>
- </Row>
- <Row>
- <Col id="label">연질캡슐</Col>
- <Col id="value">3</Col>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_cmb_shapecd" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="label" type="STRING" size="256"/>
- <Column id="value" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="label">원형</Col>
- <Col id="value">1</Col>
- </Row>
- <Row>
- <Col id="label">오각형</Col>
- <Col id="value">2</Col>
- </Row>
- <Row>
- <Col id="label">타원형</Col>
- <Col id="value">3</Col>
- </Row>
- <Row>
- <Col id="label">삼각형</Col>
- <Col id="value">4</Col>
- </Row>
- <Row>
- <Col id="label">사각형</Col>
- <Col id="value">5</Col>
- </Row>
- <Row>
- <Col id="label">육각형</Col>
- <Col id="value">6</Col>
- </Row>
- <Row>
- <Col id="label">팔각형</Col>
- <Col id="value">7</Col>
- </Row>
- <Row>
- <Col id="label">반원형</Col>
- <Col id="value">8</Col>
- </Row>
- <Row>
- <Col id="label">장방형</Col>
- <Col id="value">9</Col>
- </Row>
- <Row>
- <Col id="label">마름모형</Col>
- <Col id="value">10</Col>
- </Row>
- <Row>
- <Col id="label">기타</Col>
- <Col id="value">20</Col>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_cmb_divline1" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="label" type="STRING" size="256"/>
- <Column id="value" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="label">없음</Col>
- <Col id="value">0</Col>
- </Row>
- <Row>
- <Col id="label">- 형</Col>
- <Col id="value">1</Col>
- </Row>
- <Row>
- <Col id="label">+ 형</Col>
- <Col id="value">2</Col>
- </Row>
- <Row>
- <Col id="label">기타</Col>
- <Col id="value">3</Col>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_cmb_divline2" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="label" type="STRING" size="256"/>
- <Column id="value" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="label">없음</Col>
- <Col id="value">0</Col>
- </Row>
- <Row>
- <Col id="label">- 형</Col>
- <Col id="value">1</Col>
- </Row>
- <Row>
- <Col id="label">+ 형</Col>
- <Col id="value">2</Col>
- </Row>
- <Row>
- <Col id="label">기타</Col>
- <Col id="value">3</Col>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_send_saveitem_flag" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="saveflag" type="STRING" size="256"/>
- <Column id="instcd" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- </Objects>
- <Bind>
- <BindItem id="item0" compid="group2.cmb_srchflag" propid="value" datasetid="ds_send_srchinfo" columnid="srchflag"/>
- <BindItem id="item1" compid="group2.ipt_srchval" propid="value" datasetid="ds_send_srchinfo" columnid="srchval"/>
- <BindItem id="item2" compid="group2.cmb_srchflag2" propid="value" datasetid="ds_send_srchinfo" columnid="srchflag2"/>
- <BindItem id="item3" compid="group2.input8" propid="value" datasetid="ds_send_srchinfo" columnid="srchval2"/>
- <BindItem id="item4" compid="group2.ipt_srchval_re" propid="value" datasetid="ds_temp" columnid="str_re"/>
- <BindItem id="item5" compid="group2.img_shape3" propid="image" datasetid="ds_hidden" columnid="srchimginfo"/>
- <BindItem id="item6" compid="group3.input1" propid="value" datasetid="ds_send_srchseq" columnid="srchstart"/>
- <BindItem id="item7" compid="group3.input6" propid="value" datasetid="ds_send_srchseq" columnid="srchend"/>
- <BindItem id="item8" compid="group3.output2" propid="value" datasetid="ds_main_drugidinfo" columnid="idcd"/>
- <BindItem id="item9" compid="group3.output1" propid="value" datasetid="ds_hidden" columnid="instcd"/>
- <BindItem id="item10" compid="group3.input2" propid="value" datasetid="ds_main_drugidinfo" columnid="drugcd"/>
- <BindItem id="item11" compid="group3.textarea1" propid="value" datasetid="ds_main_drugidinfo" columnid="comcnts"/>
- <BindItem id="item12" compid="group3.input3" propid="value" datasetid="ds_main_drugidinfo" columnid="hngnm"/>
- <BindItem id="item13" compid="group3.input4" propid="value" datasetid="ds_main_drugidinfo" columnid="engnm"/>
- <BindItem id="item14" compid="group3.textarea2" propid="value" datasetid="ds_main_drugidinfo" columnid="efcysmm"/>
- <BindItem id="item15" compid="group3.combo3" propid="value" datasetid="ds_main_drugidinfo" columnid="drugtype"/>
- <BindItem id="item16" compid="group3.ipt_prodcmpynm" propid="value" datasetid="ds_main_drugidinfo" columnid="prodcmpynm"/>
- <BindItem id="item17" compid="group3.input9" propid="value" datasetid="ds_main_drugidinfo" columnid="homodrugflag"/>
- <BindItem id="item18" compid="group3.input7" propid="value" datasetid="ds_main_drugidinfo" columnid="samedrug"/>
- <BindItem id="item19" compid="group3.input5" propid="value" datasetid="ds_main_drugidinfo" columnid="atccode"/>
- <BindItem id="item20" compid="group3.cmb_useyn" propid="value" datasetid="ds_main_drugidinfo" columnid="useyn"/>
- <BindItem id="item21" compid="group3.img_shape1" propid="image" datasetid="ds_main_drugidinfo" columnid="img1"/>
- <BindItem id="item22" compid="group3.textarea3" propid="value" datasetid="ds_main_drugidinfo" columnid="char1"/>
- <BindItem id="item23" compid="group3.ipt_shape1" propid="value" datasetid="ds_main_drugidinfo" columnid="shape1"/>
- <BindItem id="item24" compid="group3.textarea4" propid="value" datasetid="ds_main_drugidinfo" columnid="char2"/>
- <BindItem id="item25" compid="group3.ipt_shape2" propid="value" datasetid="ds_main_drugidinfo" columnid="shape2"/>
- <BindItem id="item26" compid="group3.img_shape2" propid="image" datasetid="ds_main_drugidinfo" columnid="img2"/>
- <BindItem id="item27" compid="group3.radio1" propid="value" datasetid="ds_main_drugidinfo" columnid="divline1"/>
- <BindItem id="item28" compid="group3.radio3" propid="value" datasetid="ds_main_drugidinfo" columnid="divline2"/>
- <BindItem id="item29" compid="group3.combo4" propid="value" datasetid="ds_main_drugidinfo" columnid="shapecd"/>
- <BindItem id="item30" compid="group3.input10" propid="value" datasetid="ds_main_drugidinfo" columnid="shrtax"/>
- <BindItem id="item31" compid="group3.input11" propid="value" datasetid="ds_main_drugidinfo" columnid="longax"/>
- <BindItem id="item32" compid="group3.input12" propid="value" datasetid="ds_main_drugidinfo" columnid="thick"/>
- <BindItem id="item33" compid="group3.Base64_Preview1" propid="image" datasetid="ds_main_drugidinfo" columnid="phot"/>
- </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
- *
- *---------------------------------------------------------------------------------------
- ****************************************************************************************/
- //=======================================================================================
- // Lib Include
- //---------------------------------------------------------------------------------------
- include "com_commonxp::comm_main.xjs"
- include "ast_commonxp::AST.xjs"
- //=======================================================================================
- // Global Form Variable
- //---------------------------------------------------------------------------------------
- var arErrorCode = new HashArray();
- var SelRow = "";
- var chkPhotImg = false;
- var chkShape1Img = false;
- var chkShape2Img = false;
- var SelRowYn = "";
- //=======================================================================================
- // Function
- //---------------------------------------------------------------------------------------
- /****************************************************************************************
- * Argument : saveflag : I - 신규입력, U - 수정, D - 삭제
- * Description : 데이터의 신규입력/수정/삭제를 실행
- ****************************************************************************************/
- function fSetDrugIdData(saveflag){
- // 실행 여부 선택 창
- var msg = sysf_messageBox("["+this.getFocus().text+"]","Q004");
-
- if(msg != 6) return false; // '아니오'선택시 false 반환
-
- var cnt = "";
- var color = "";
-
- for(var i = 0; i < ds_hidden_colorlist.rowcount; i++) {
- var chk = ds_hidden_colorlist.getColumn(i,"chk");
- if(chk == 1){
- if(!utlf_isNull(cnt)){
- color += "/"+ds_hidden_colorlist.getColumn(i,"color");
- }else{
- color += ds_hidden_colorlist.getColumn(i,"color");
- cnt++;
- }
- }
- }
-
- ds_main_drugidinfo.setColumn(0,"color", color);
- ds_send_saveitem_drugidinfo.copyData(ds_main_drugidinfo);
-
- if(!utlf_isNull(ds_send_saveitem_drugidinfo.getColumn(0,"phot"))) {
- chkPhotImg = true;
- }else chkPhotImg = false;
-
- // 사진 유무 설정
- if(chkPhotImg){
- ds_send_saveitem_drugidinfo.setColumn(0,"phot",ds_main_drugidinfo.getColumn(0,"phot"));
- dsf_makeValue(ds_send_saveitem_drugidinfo,"photyn","string","Y");
-
- if(saveflag == "I") { // 신규입력시 이미지파일명 변경 "현재시간(HHMMSS) + 원 이미지 파일명"
- var tmp_photoid = ds_send_saveitem_drugidinfo.getColumn(0,"photoid").split("_");
- var photoid = utlf_getCurrentTime()+"_"+tmp_photoid[tmp_photoid.length-1];
-
- ds_send_saveitem_drugidinfo.setColumn(0,"photoid", utlf_getCurrentTime()+"_"+tmp_photoid[tmp_photoid.length-1]);
- }
- } else {
- // 20141226 jmkim 신규입력 시 사진 없을 경우 java.lang.ArrayIndexOutOfBoundsException: 3 error 문제 처리
- ds_send_saveitem_drugidinfo.setColumn(0,"phot","");
- dsf_makeValue(ds_send_saveitem_drugidinfo,"photyn","string","N");
- }
-
- ds_send_saveitem_flag.clearData();
- ds_send_saveitem_flag.addRow();
- ds_send_saveitem_flag.setColumn(0,"saveflag",saveflag);
- ds_send_saveitem_flag.setColumn(0,"instcd" ,ds_hidden.getColumn(0,"instcd"));
- dsf_setDefaultVal(ds_send_saveitem_drugidinfo, "useyn:-");
- var oParam = {};
- oParam.id = "TXADB02101";
- oParam.service = "pharmacybaseapp.DrugIdBase";
- oParam.method = "reqExeDrugIdData";
- oParam.inds = "flag=ds_send_saveitem_flag info=ds_send_saveitem_drugidinfo";
- oParam.outds = "ds_main_drugitem_drugidlist=drugidlist";
- oParam.async = false;
- oParam.callback = "cf_TXADB02101";
- tranf_submit(oParam);
-
- if(arErrorCode.pop("TXADB02101") > -1){
- fClearDrugIdInfo();
- var ev = new ClickEventInfo;
- frmf_inputEnterKey("group2.btn_sea", "onclick", ev );
- return true;
- }else return false;
- }
- function cf_TXADB02101(sSvcId, nErrorCode, sErrorMsg) {
- arErrorCode.push(sSvcId, nErrorCode);
- dsf_setTypeFormat(oDataset, "idcd:INT^longax:INT^shrtax:INT^thick:INT");
- }
- /****************************************************************************************
- * Argument : N/A
- * Description : 파일열기 오픈
- ****************************************************************************************/
- function fOpenImageFile(){
- var id = this.getFocus().name;
- sysf_trace(" /// " +id);
- // 파일다이얼로그를 띄워 사용자에게 파일경로를 입력받는다.
- var fd = new FileDialog;
- var objVFile = fd.open("FileOpen", FileDialog.SINGLELOAD); // 단일 파일 선택
-
- if(!utlf_isNull(objVFile)) {
- var nRow = ds_main_drugidinfo.rowposition;
- // 그 파일의 데이터를 데이터셋의 특정 컬럼에 BLOB 형식으로 write 한다.
- var file = dsf_writeFileToDs(objVFile, ds_main_drugidinfo, nRow, "phot");
-
- if(file.filesize > 512000) {
- ds_main_drugidinfo.setColumn(nRow,"phot","");
- sysf_messageBox("파일 크기가 최대치(512000Byte)를", "E003");
- return;
- }
-
- var filename = file.filename;
- var tmp = filename.split("\\");
- var photoid = ds_main_drugidinfo.getColumn(0,"drugcd")+"_"+tmp[tmp.length-1];
- /* 이미지 파일명 길이 체크 */
- if(parseInt(photoid.getByteLength()) > 30) {
- sysf_messageBox("이미지 파일명 길이가 입력가능 범위를","E003");
- return;
- }
-
- ds_main_drugidinfo.setColumn(nRow,"photoid",photoid);
- }
-
- return true;
- // if((id == "btn_img") || (id == "img_phot")){
- // fChangeImage(group3.img_phot, group3.img_phot_hidden, file, ds_main_drugidinfo, "phot", 313, 116);
- // chkPhotImg = true;
- // } else if((id == "btn_shape1") || (id == "img_shape1")){
- // fChangeImage(img_shape1, img_shape1, file, "/root/main/drugidinfo/img1", 128, 85);
- // chkShape1Img = true;
- // } else if((id == "btn_shape2") || (id == "img_shape2")){
- // fChangeImage(img_shape2, img_shape2_hidden, file, "/root/main/drugidinfo/img2", 128, 85);
- // chkShape2Img = true;
- // }
- }
- /****************************************************************************************
- * Argument : N/A
- * Description : 이미지사이즈 변경
- ****************************************************************************************/
- // function fChangeImage(img_id, img_hidden, file, oDataset, colnm, widthval, heightval){
- // img_hidden.src = file; // 파일에서 읽은 이미지의 base64 encoding 값을 가져오기 위한 이미지 컨트롤
- // var data = img_hidden.getbase64data(); // base64 encoding 문자열을 가져온다.
- //
- // model.setValue(xpath,data,true); // 이미지를 보여주기 위하여 view용 이미지컨트롤의 ref instance에 값을 저장
- // setImageRefInstance(xpath);
- //
- // Base64_Preview1.SetViewMode(4);
- // Base64_Preview1.LoadImage(file);
- //
- // //img_id.attribute("width")= widthval;
- // //img_id.attribute("height")= heightval;
- // img_hidden.src = "";
- // }
- /****************************************************************************************
- * Argument : N/A
- * Description : 사진정보 삭제
- ****************************************************************************************/
- // function fSetEmptyImage(){
- // var id = model.getFocus();
- // if((id == "img_phot") || (id == "btn_delimg")){
- // model.setValue("/root/main/drugidinfo/phot","",true);
- // model.setValue("/root/main/drugidinfo/photoid","",true); // 이미지 삭제시 해당 약품코드의 이미지정보 삭제
- // Base64_Preview1.Clear();
- // chkPhotImg = true;
- // } else if((id == "img_shape1") || (id == "img_delshape1")){
- // model.setValue("/root/main/drugidinfo/img1","",true);
- // chkShape1Img = true;
- // } else if((id == "img_shape2") || (id == "img_delshape2")){
- // model.setValue("/root/main/drugidinfo/img2","",true);
- // chkShape2Img = true;
- // }
- // model.refresh();
- // }
- /****************************************************************************************
- * Argument : N/A
- * Description : 약품정보 클리어
- ****************************************************************************************/
- function fClearDrugIdInfo(){
- SelRowYn = "N";
- fBtnDisableYN(SelRowYn);
-
- ds_main_drugidinfo.clearData();
- ds_main_drugidinfo.addRow();
-
- fClearColor();
-
- chkPhotImg = false;
- chkShape1Img = false;
- chkShape2Img = false;
- }
- /****************************************************************************************
- * Argument : N/A
- * Description : 색상정보 클리어
- ****************************************************************************************/
- function fClearColor(){
- for(var i = 0; i < ds_hidden_colorlist.rowcount; i++) {
- ds_hidden_colorlist.setColumn(i,"chk",0);
- }
- }
-
- /****************************************************************************************
- * Argument : color - 색구분
- * Description :
- ****************************************************************************************/
- function fMatchColor(color){
- if(color == 1){
- return "하양";
- }else if(color == 2){
- return "주황";
- }else if(color == 3){
- return "노랑";
- }else if(color == 4){
- return "분홍";
- }else if(color == 5){
- return "빨강";
- }else if(color == 6){
- return "보라";
- }else if(color == 7){
- return "초록";
- }else if(color == 8){
- return "파랑";
- }else if(color == 9){
- return "갈색";
- }else if(color == 10){
- return "회색";
- }else if(color == 11){
- return "검정";
- }else if(color == 12){
- return "연두";
- }else if(color == 13){
- return "청록";
- }else if(color == 14){
- return "남색";
- }else if(color == 15){
- return "자주";
- }else if(color == 16){
- return "투명";
- }
- }
- /****************************************************************************************
- * Argument : selrowyn - enable 여부
- * Description : 버튼 활성화/비활성화
- ****************************************************************************************/
- function fBtnDisableYN(selrowyn){
- if(selrowyn == "Y"){
- group3.btn_upd.enable = true;
- group3.btn_del.enable = true;
- }else{
- group3.btn_upd.enable = false;
- group3.btn_del.enable = false;
- }
- }
- //=======================================================================================
- // Event
- //---------------------------------------------------------------------------------------
- /****************************************************************************************
- * Components : Form
- * Components ID : SMADB02100
- * Event : oninit
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 화면 처음 초기화시 폼초기화
- ****************************************************************************************/
- function SMADB02100_oninit(obj:Form, e:InitEventInfo)
- {
- frmf_initForm(obj); // 폼 초기화
- }
- /****************************************************************************************
- * Components : Form
- * Components ID : SMADB02100
- * Event : onload
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 화면 처음 초기화시 폼초기화
- ****************************************************************************************/
- function SMADB02100_onload(obj:Form, e:LoadEventInfo)
- {
- // frmf_createPopupMenu("pop_ivewer"
- // ,"fPopupMenu"
- // ,[{id: "fSetEmptyImage" , level: "0", title: "빈이미지"}
- // ,{id: "fOpenImageFile" , level: "0", title: "파일열기"}]
- // );
-
- // 권한 관리
- group3.btn_save.enable = frmf_checkAuth("X"); // 저장
- group3.btn_upd.enable = frmf_checkAuth("X"); // 수정
- group3.btn_del.enable = frmf_checkAuth("X"); // 삭제
-
- // zbcfGetCodeList( new Array("A0044","A0635"), new Array("/root/init/comboitem/drugtype", "/root/init/comboitem/useyn"));
- var arrParam = [{dsNm: "ds_init_A0044", cdGrpId: "A0044"} ///root/init/comboitem/drugtype
- ,{dsNm: "ds_init_A0635", cdGrpId: "A0635"} ///root/init/comboitem/useyn
- ]
- appf_getCodeList(arrParam);
-
- ds_temp_cominfo.clearData(); // 성분명 임시 그리드 초기화
- // 색상 설정
- ds_hidden_colorlist.rowposition = -1;
-
- ds_send_srchinfo.setColumn(0,"instcd",ds_hidden.setColumn(0,"instcd"));
- //개발용으로 쓰이는 idcd값을 숨김(Excel 변환시 필요)
- SelRowYn = "N";
- fBtnDisableYN(SelRowYn);
-
- // group3.Base64_Preview1.position.top = group3.line11.position.top+5;
- // group3.Base64_Preview1.position.height = 116;
- }
- /****************************************************************************************
- * Function : fPopupMenu
- * Description :
- * Argument :
- * return type :
- * Creator :
- ****************************************************************************************/
- // function fPopupMenu(obj:PopupMenu, e:MenuClickEventInfo) {
- // if(e.id == "fSetEmptyImage") {
- // fSetEmptyImage();
- // }
- // if(e.id == "fOpenImageFile") {
- // fOpenImageFile();
- // }
- // }
- /****************************************************************************************
- * Components : Button
- * Components ID : group2.btn_sea
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 조회버튼으로 조회 시작
- ****************************************************************************************/
- function group2_btn_sea_onclick(obj:Button, e:ClickEventInfo)
- {
- if(utlf_transNullToEmpty(ds_send_srchinfo.getColumn(0,"srchval")).length >= 2 || !utlf_isNull(ds_send_srchinfo.getColumn(0,"srchval2")) || !utlf_isNull(ds_send_srchinfo.getColumn(0,"srchshapecd"))) {
- ds_send_srchinfo.setColumn(0,"instcd", ds_hidden.getColumn(0,"instcd"));
- fClearDrugIdInfo();
- ds_main_drugitem_drugidlist.filter("");
- ds_main_drugitem_drugidlist.clearData();
-
- var oParam = {};
- oParam.id = "TRADB02101";
- oParam.service = "pharmacybaseapp.DrugIdBase";
- oParam.method = "reqGetDrugId";
- oParam.inds = "req=ds_send_srchinfo";
- oParam.outds = "ds_main_drugitem_drugidlist=drugidlist";
- oParam.async = false;
- oParam.callback = "cf_TRADB02101";
- tranf_submit(oParam);
-
- if(arErrorCode.pop("TRADB02101") > -1){
- for(var i = 0; i < ds_main_drugitem_drugidlist.rowcount; i++){
- var color = ds_main_drugitem_drugidlist.getColumn(i,"color");
- var colornm = "";
- var temp = color.split("/");
-
- if(temp.length > 1){
- for(var j = 0; j < temp.length; j++){
- if(j+1 == temp.length) {
- colornm += fMatchColor(temp[j]);
- } else colornm += fMatchColor(temp[j])+",";
- }
- } else colornm = fMatchColor(temp);
-
- ds_main_drugitem_drugidlist.setColumn(i,"colornm", colornm);
- }
- }
- }else{
- sysf_messageBox("최소 2글자 이상","C001");
- group2.ipt_srchval.setFocus();
- return;
- }
- }
- function cf_TRADB02101(sSvcId, nErrorCode, sErrorMsg) {
- arErrorCode.push(sSvcId, nErrorCode);
- }
- /****************************************************************************************
- * Components : Edit
- * Components ID : group2.ipt_srchval
- * Event : onkeydown
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 조회조건 넣고 조회실행
- ****************************************************************************************/
- function group2_ipt_srchval_onkeydown(obj:Edit, e:KeyEventInfo)
- {
- if(e.keycode == 13) {
- obj.updateToDataset();
- var ev = new ClickEventInfo;
- frmf_inputEnterKey("group2.btn_sea", "onclick", ev );
- }
- }
- /****************************************************************************************
- * Components : Calendar
- * Components ID : group2.input8
- * Event : onchanged
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 날자변경 후 조회 실행
- ****************************************************************************************/
- function group2_input8_onchanged(obj:Calendar, e:ChangeEventInfo)
- {
- obj.updateToDataset();
- var ev = new ClickEventInfo;
- frmf_inputEnterKey("group2.btn_sea", "onclick", ev );
- }
- /****************************************************************************************
- * Components : Button
- * Components ID : group2.btn_sea_re
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 재조회 버튼으로 조회 실행
- ****************************************************************************************/
- function group2_btn_sea_re_onclick(obj:Button, e:ClickEventInfo)
- {
- var strstr = ds_temp.getColumn(0,"str_re")
- strstr = strstr.toUpperCase();
- var strtype = ds_send_srchinfo.getColumn(0,"srchflag")
- if(ds_send_srchinfo.getColumn(0,"srchval").length < 2 ) {
- sysf_messageBox("최소 2글자 이상","C001");
- group2.ipt_srchval_re.setFocus();
- return;
- }
- var r_cnt = ds_main_drugitem_drugidlist.rowcount;
-
- for(var j = 0 ; j < r_cnt ; j++ ) {
- var datastr = "";
-
- if(strtype == "drugcd") {
- datastr = ds_main_drugitem_drugidlist.getColumn(j,"drugcd");
- datastr = datastr.toUpperCase();
- }
-
- if(strtype == "srchname") {
- datastr = ds_main_drugitem_drugidlist.getColumn(j,"hngnm");
- datastr = datastr.toUpperCase();
- }
-
- if(strtype == "comcnts") {
- datastr = ds_main_drugitem_drugidlist.getColumn(j,"comcnts");
- datastr = datastr.toUpperCase();
- }
- if(!utlf_isNull(datastr)) {
- if(utlf_isSearchString(datastr, strstr) == false) {
- dsf_makeValue(ds_main_drugitem_drugidlist,"hiddenRow","string","Y",j);
- } else {
- dsf_makeValue(ds_main_drugitem_drugidlist,"hiddenRow","string","N",j);
- }
- }
- }
-
- ds_main_drugitem_drugidlist.filter("hiddenRow != 'Y'");
- }
- /****************************************************************************************
- * Components : Edit
- * Components ID : group2.ipt_srchval_re
- * Event : onkeydown
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 재검색 조건을 넣고 엔터로 재조회
- ****************************************************************************************/
- function group2_ipt_srchval_re_onkeydown(obj:Edit, e:KeyEventInfo)
- {
- if(e.keycode == 13) {
- obj.updateToDataset();
- var ev = new ClickEventInfo;
- frmf_inputEnterKey("group2.btn_sea_re", "onclick", ev );
- }
- }
- /****************************************************************************************
- * Components : Button
- * Components ID : group2.btn_shape3
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 문양불러오기 버튼(이미지 선택화면)
- ****************************************************************************************/
- function group2_btn_shape3_onclick(obj:Button, e:ClickEventInfo)
- {
- var objArg = new Object();
- objArg.arg_ds_hidden_receiveref = ds_hidden_receiveshape;
- frmf_modal("SPADB62600","SPADB62600", objArg, "", 0, 100, 150, "", "", "", "", "", "M");
- if(!utlf_isNull(ds_hidden_receiveshape.getColumn(0,"shape"))) {
- ds_send_srchinfo.setColumn(0,"srchshapecd",ds_hidden_receiveshape.getColumn(0,"shapecd"));
- ds_hidden.setColumn(0,"srchimginfo",ds_hidden_receiveshape.getColumn(0,"shape"));
- ds_hidden_receiveshape.clearData();
- ds_hidden_receiveshape.addRow();
- }
- }
- /****************************************************************************************
- * Components : Button
- * Components ID : group2.btn_delshape3
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 문양 삭제
- ****************************************************************************************/
- function group2_btn_delshape3_onclick(obj:Button, e:ClickEventInfo)
- {
- ds_hidden.setColumn(0,"srchimginfo", "");
- ds_send_srchinfo.setColumn(0,"srchshapecd", "");
- }
- /****************************************************************************************
- * Components : Button
- * Components ID : group3.button51
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 검색약품을 엑셀로 받는다
- ****************************************************************************************/
- function group3_button51_onclick(obj:Button, e:ClickEventInfo)
- {
- if( ds_main_drugitem_drugidlist.rowcount > 0 ){
- grdf_exportExcel(group3.grd_drugid, "검색약품", "검색약품", false, "", "user", false);
- } else {
- sysf_messageBox("조회된 데이터가 ", "I004");
- }
- }
- /****************************************************************************************
- * Components : Button
- * Components ID : group3.button2
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 전체약품을 엑셀로 받는다
- ****************************************************************************************/
- function group3_button2_onclick(obj:Button, e:ClickEventInfo)
- {
- var oParam = {};
- oParam.id = "TRADB02103";
- oParam.service = "pharmacybaseapp.DrugIdBase";
- oParam.method = "reqGetDrugIdPage";
- oParam.inds = "req=ds_send_srchseq";
- oParam.outds = "ds_temp_drugitem_drugidlist=drugidlist";
- oParam.async = false;
- oParam.callback = "cf_TRADB02103";
- tranf_submit(oParam);
-
- if( ds_temp_drugitem_drugidlist.rowcount > 0 ){
- grdf_exportExcel(group3.datagrid_exl, "검색약품전체", "검색약품전체", false, "", "user", false);
- } else {
- sysf_messageBox("조회된 데이터가 ", "I004");
- }
- }
- function cf_TRADB02103(sSvcId, nErrorCode, sErrorMsg) {
- if(nErrorCode < 0) return;
- dsf_setTypeFormat(ds_temp_drugitem_drugidlist, "rowseq:INT^idcd:INT");
- }
- /****************************************************************************************
- * Components : Grid
- * Components ID : group3.grd_drugid
- * Event : oncelldblclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 약품리스트 더블클릭하여 아래 검색결과에 상세 조회
- ****************************************************************************************/
- function group3_grd_drugid_oncelldblclick(obj:Grid, e:GridClickEventInfo)
- {
- SelRowYn = "Y";
-
- fBtnDisableYN(SelRowYn);
- fClearColor();
-
- if(ds_main_drugidinfo.rowcount < 1) ds_main_drugidinfo.addRow();
- // ds_main_drugidinfo.clear();
- // dsf_copyColInfo(ds_main_drugidinfo,ds_main_drugitem_drugidlist);
- ds_main_drugidinfo.copyRow(0,ds_main_drugitem_drugidlist,SelRow);
-
- var color2 = ds_main_drugidinfo.getColumn(0,"color");
- var tmpArray;
- tmpArray = color2.split("/");
-
- for(var i = 0; i < tmpArray.length; i++){
- for(var j = 0; j < ds_hidden_colorlist.rowcount; j++){
- var color1 = ds_hidden_colorlist.getColumn(j,"color");
- if(color1 == tmpArray[i].getTrim()) {
- ds_hidden_colorlist.setColumn(j,"chk",1);
- }
- }
- }
- //이미지 로딩
- ds_send_imginfo_drugidinfo.clear();
- dsf_copyColInfo(ds_send_imginfo_drugidinfo,ds_main_drugitem_drugidlist);
- if(ds_send_imginfo_drugidinfo.rowcount < 1) ds_send_imginfo_drugidinfo.addRow();
- ds_send_imginfo_drugidinfo.copyRow(0,ds_main_drugitem_drugidlist,SelRow);
- var oParam = {};
- oParam.id = "TRADB02102";
- oParam.service = "pharmacybaseapp.DrugIdBase";
- oParam.method = "reqGetDrugImg";
- oParam.inds = "req=ds_send_imginfo_drugidinfo";
- oParam.outds = "ds_main_drugidimg_drugidimg=drugidimg ds_main_drugidimg_shape=shape";
- oParam.async = false;
- oParam.callback = "cf_TRADB02102";
- tranf_submit(oParam);
- // 20141226 jmkim phot 없을 경우에 대한 예외처리 용 if 추가
- if(!utlf_isNull(ds_main_drugidimg_drugidimg.getColumn(0,"phot"))){
- ds_main_drugidinfo.setColumn(0,"phot",ds_main_drugidimg_drugidimg.getColumn(0,"phot"));
- }
-
- if(!utlf_isNull(ds_main_drugidimg_shape.getColumn(0,"shape1"))){
- ds_main_drugidinfo.setColumn(0,"img1",ds_main_drugidimg_shape.getColumn(0,"shape1"));
- }
-
- if(!utlf_isNull(ds_main_drugidimg_shape.getColumn(0,"shape2"))){
- ds_main_drugidinfo.setColumn(0,"img2",ds_main_drugidimg_shape.getColumn(0,"shape2"));
- }
- chkPhotImg = false;
- chkShape1Img = false;
- chkShape2Img = false;
- }
- function cf_TRADB02102(sSvcId, nErrorCode, sErrorMsg) {
- if(nErrorCode < 0) return;
- dsf_setDefaultVal(ds_main_drugidimg_shape, "shape1:'',shape2:''");
- }
- /****************************************************************************************
- * Components : Grid
- * Components ID : group3.grd_drugid
- * Event : oncellclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 약품리스트 클릭하여 row선택
- ****************************************************************************************/
- function group3_grd_drugid_oncellclick(obj:Grid, e:GridClickEventInfo)
- {
- SelRow = e.row;
- }
- /****************************************************************************************
- * Components : Button
- * Components ID : group3.button61
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 약품코드 검색
- ****************************************************************************************/
- function group3_button61_onclick(obj:Button, e:ClickEventInfo)
- {
- var objArg = new Object();
- objArg.arg_ds_temp_receivedata = ds_hidden;
- frmf_modal("SPADB60100","SPADB60100", objArg, "", "", 100, 150, "", "", "", "", "", "M");
- }
- /****************************************************************************************
- * Components : Button
- * Components ID : group3.button1
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 제약회사 변경
- ****************************************************************************************/
- function group3_button1_onclick(obj:Button, e:ClickEventInfo)
- {
- var objArg = new Object();
- objArg.arg_ds_hidden = ds_hidden;
- frmf_modal("SPADB63400","SPADB63400", objArg, "", "", 50, 50, "", "", "", "", "", "M");
- }
- /****************************************************************************************
- * Components : Button
- * Components ID : group3.button3
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 성분ATC코드 변경
- ****************************************************************************************/
- function group3_button3_onclick(obj:Button, e:ClickEventInfo)
- {
- frmf_setParameter("srchtype","B");
-
- frmf_modal("SPADB61300","SPADB61300", "", "", 0, 100, 150, "", "", "", "", "", "M");
- dsf_makeValue(ds_temp_cominfo,"comcd" ,"string",frmf_getParameter("comcd"));
- dsf_makeValue(ds_temp_cominfo,"comexcd" ,"string",frmf_getParameter("comexcd"));
- dsf_makeValue(ds_temp_cominfo,"comnm" ,"string",frmf_getParameter("comnm"));
-
- if(!utlf_isNull(ds_temp_cominfo.getColumn(0,"comcd"))) {
- ds_main_drugidinfo.setColumn(0,"atccode",ds_temp_cominfo.getColumn(0,"comcd"));
- }
- }
- /****************************************************************************************
- * Components : Button
- * Components ID : group3.btn_img
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 사진 불러오기
- ****************************************************************************************/
- function group3_btn_img_onclick(obj:Button, e:ClickEventInfo)
- {
- if(fOpenImageFile("img_phot")){
- chkPhotImg = true;
- }
- }
- /****************************************************************************************
- * Components : Button
- * Components ID : group3.btn_delimg
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 사진 삭제
- ****************************************************************************************/
- function group3_btn_delimg_onclick(obj:Button, e:ClickEventInfo)
- {
- // fSetEmptyImage();
- ds_main_drugidinfo.setColumn(0,"phot" ,"");
- ds_main_drugidinfo.setColumn(0,"photoid",""); // 이미지 삭제시 해당 약품코드의 이미지정보 삭제
- chkPhotImg = true;
- }
- /****************************************************************************************
- * Components : Button
- * Components ID : group3.btn_shape1
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 문양1 불러오기
- ****************************************************************************************/
- function group3_btn_shape1_onclick(obj:Button, e:ClickEventInfo)
- {
- var objArg = new Object();
- objArg.arg_ds_hidden_receiveref = ds_hidden_receiveshape;
- frmf_modal("SPADB62600","SPADB62600", objArg, "", 0, 100, 150, "", "", "", "", "", "M");
- if(!utlf_isNull(ds_hidden_receiveshape.getColumn(0,"shape"))) {
- ds_main_drugidinfo.setColumn(0,"img1" ,ds_hidden_receiveshape.getColumn(0,"shape"));
- ds_main_drugidinfo.setColumn(0,"shape1" ,ds_hidden_receiveshape.getColumn(0,"shapecd"));
-
- ds_hidden_receiveshape.clearData();
- ds_hidden_receiveshape.addRow();
- }
- }
- /****************************************************************************************
- * Components : Button
- * Components ID : group3.img_shape1
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 문양1 불러오기
- ****************************************************************************************/
- function group3_img_shape1_onclick(obj:ImageViewer, e:ClickEventInfo)
- {
- var ev = new ClickEventInfo;
- frmf_inputEnterKey("group3.btn_shape1", "onclick", ev );
- }
- /****************************************************************************************
- * Components : Button
- * Components ID : group3.btn_delshape1
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 문약1 삭제
- ****************************************************************************************/
- function group3_btn_delshape1_onclick(obj:Button, e:ClickEventInfo)
- {
- ds_main_drugidinfo.setColumn(0,"img1" ,"");
- ds_main_drugidinfo.setColumn(0,"shape1" ,"");
- }
- /****************************************************************************************
- * Components : Button
- * Components ID : group3.btn_shape2
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 문양2 불러오기
- ****************************************************************************************/
- function group3_btn_shape2_onclick(obj:Button, e:ClickEventInfo)
- {
- var objArg = new Object();
- objArg.arg_ds_hidden_receiveref = ds_hidden_receiveshape;
- frmf_modal("SPADB62600","SPADB62600", objArg, "", 0, 100, 150, "", "", "", "", "", "M");
-
- if(!utlf_isNull(ds_hidden_receiveshape.getColumn(0,"shape"))) {
- ds_main_drugidinfo.setColumn(0,"img2" ,ds_hidden_receiveshape.getColumn(0,"shape"));
- ds_main_drugidinfo.setColumn(0,"shape2" ,ds_hidden_receiveshape.getColumn(0,"shapecd"));
-
- ds_hidden_receiveshape.clearData();
- ds_hidden_receiveshape.addRow();
- }
- }
- /****************************************************************************************
- * Components : Button
- * Components ID : group3.img_shape2
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 문양2 불러오기
- ****************************************************************************************/
- function group3_img_shape2_onclick(obj:ImageViewer, e:ClickEventInfo)
- {
- var ev = new ClickEventInfo;
- frmf_inputEnterKey("group3.btn_shape2", "onclick", ev );
- }
- /****************************************************************************************
- * Components : Button
- * Components ID : group3.btn_delshape2
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 문양2 삭제
- ****************************************************************************************/
- function group3_btn_delshape2_onclick(obj:Button, e:ClickEventInfo)
- {
- ds_main_drugidinfo.setColumn(0,"img2" ,"");
- ds_main_drugidinfo.setColumn(0,"shape2" ,"");
- }
- /****************************************************************************************
- * Components : Button
- * Components ID : group3.btn_save
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 신규입력
- ****************************************************************************************/
- function group3_btn_save_onclick(obj:Button, e:ClickEventInfo)
- {
- fSetDrugIdData("I");
- }
- /****************************************************************************************
- * Components : Button
- * Components ID : group3.btn_upd
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 수정
- ****************************************************************************************/
- function group3_btn_upd_onclick(obj:Button, e:ClickEventInfo)
- {
- if(fSetDrugIdData("U")) {
- var ev = new GridClickEventInfo;
- frmf_inputEnterKey("group3.grd_drugid", "oncelldblclick", ev );
- }
- }
- /****************************************************************************************
- * Components : Button
- * Components ID : group3.btn_del
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 삭제
- ****************************************************************************************/
- function group3_btn_del_onclick(obj:Button, e:ClickEventInfo)
- {
- fSetDrugIdData("D");
- }
- /****************************************************************************************
- * Components : Button
- * Components ID : group3.button12
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 초기화
- ****************************************************************************************/
- function group3_button12_onclick(obj:Button, e:ClickEventInfo)
- {
- fClearDrugIdInfo();
- }
- /****************************************************************************************
- * Components : Button
- * Components ID : group3.button12
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 초기화
- ****************************************************************************************/
- function group1_button11_onclick(obj:Button, e:ClickEventInfo)
- {
- frmf_open("SPADB63300","SPADB63300", "", "", "", "", "", "", "", "", "", "", "M");
- }
- ]]></Script>
- </Form>
- </FDL>
|