12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SMMNP06800" position="absolute 0 0 1195 790" titletext="수술환자피부관찰" onload="SMMNP06800_onload" ontimer="SMMNP06800_ontimer">
- <Layouts>
- <Layout>
- <Static text="수술환자피부관찰" position="absolute 0 0 135 25" id="caption6" class="tit_1"/>
- <Div position="absolute 0 24 1195 59" align="align:center top;" id="grp_sea" class="div_SA" anchor="left top right">
- <Layouts>
- <Layout>
- <Static text="수술일자 :" position="absolute 21 8 107 28" id="caption2" class="search_name" anchor="default" style="align:left middle;"/>
- <Static text="수 술 방 :" position="absolute 360 8 446 28" id="caption3" class="search_name" anchor="default" style="align:left middle;"/>
- <Static text="환자명/등록번호 :" position="absolute 680 8 812 28" id="caption1" class="search_name" anchor="default" style="align:left middle;"/>
- <Static text="~" position="absolute 208 8 220 28" id="caption7" class="search_no_b" anchor="default" style="align:left middle;"/>
- <Shape position="absolute 1102 7 1108 29" linetype="vertical" id="line13" class="line_4" anchor="top right"/>
- <Calendar position="absolute 112 8 202 28" id="ipt_fromdd" class="input_search" anchor="default" autoselect="true" dateformat="yyyy-MM-dd" value="null" autoskip="true" style="align:left middle;" taborder="0"/>
- <Calendar position="absolute 225 8 315 28" id="ipt_todd" class="input_search" anchor="default" autoselect="true" dateformat="yyyy-MM-dd" autoskip="true" style="align:left middle;" taborder="1"/>
- <Combo position="absolute 450 8 542 28" id="cmb_rosette" class="combo_default" innerdataset="@ds_init_rosettelist" datacolumn="rosettenm" codecolumn="rosettecd" anchor="default" onitemchanged="grp_sea_cmb_rosette_onitemchanged" style="align:left middle;" taborder="2"/>
- <Combo position="absolute 544 8 641 28" id="cmb_oproomlist" innerdataset="@ds_init_oproomlist" datacolumn="oproomnm" codecolumn="oproomcd" anchor="default" style="align:left middle;" taborder="3"/>
- <Edit position="absolute 818 8 918 28" id="ipt_pid" anchor="default" autoselect="true" onrbuttonup="grp_sea_ipt_pid_onrbuttonup" onkeyup="grp_sea_ipt_pid_onkeyup" style="align:left middle;" taborder="4"/>
- <Button position="absolute 1124 8 1180 28" id="btn_srch" class="btn1" text="조회" anchor="top right" onclick="grp_sea_btn_srch_onclick" style="align:left middle;" taborder="5"/>
- </Layout>
- </Layouts>
- </Div>
- <Static text="피부관찰기록리스트" position="absolute 0 64 144 80" align="align:center middle;" id="caption9" class="tit_2"/>
- <Button position="absolute 889 61 953 81" id="btn_chgnmode" class="btn2" text="기록모드" onclick="btn_chgnmode_onclick" anchor="top right"/>
- <Button position="absolute 955 61 1008 81" id="btn_addrow" class="btn2" text="행추가" onclick="btn_addrow_onclick" anchor="top right"/>
- <Button position="absolute 1010 61 1063 81" id="btn_delrow" class="btn2" text="행삭제" onclick="btn_delrow_onclick" anchor="top right"/>
- <Button position="absolute 1065 61 1129 81" id="btn_tmpsave" class="btn2" text="임시저장" onclick="btn_tmpsave_onclick" anchor="top right"/>
- <Button position="absolute 1131 61 1195 81" id="btn_save" class="btn5" text="인증저장" onclick="btn_save_onclick" anchor="top right"/>
- <Button position="absolute 1084 771 1135 790" id="btn_print" class="btn6" text="출력" onclick="btn_print_onclick" anchor="right bottom"/>
- <Button position="absolute 1137 771 1195 790" id="btn_saveexcel" class="btn7" text="Excel" onclick="btn_saveexcel_onclick" anchor="right bottom"/>
- <Shape position="absolute 0 80 1195 86" linetype="horizontal" id="line1" class="line_10" style="strokepen:2 solid #33bbbbff;" anchor="left top right"/>
- <Edit readonly="true" position="absolute 162 61 563 81" id="opt_recpatinfo" class="output" style="font:Dotum,9,bold;"/>
- <Edit readonly="true" position="absolute 569 60 584 79" id="output1" visible="false"/>
- <Edit readonly="true" position="absolute 587 60 602 79" id="output2" visible="false"/>
- <Grid position="absolute 610 61 660 71" id="grd_excel" visible="false" binddataset="ds_main_skinserveyinfo_skinsurveylist">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="37"/>
- <Column size="105"/>
- <Column size="35"/>
- <Column size="47"/>
- <Column size="65"/>
- <Column size="55"/>
- <Column size="36"/>
- <Column size="162"/>
- <Column size="45"/>
- <Column size="45"/>
- <Column size="70"/>
- <Column size="70"/>
- <Column size="34"/>
- <Column size="94"/>
- <Column size="37"/>
- <Column size="37"/>
- <Column size="37"/>
- <Column size="75"/>
- <Column size="67"/>
- <Column size="75"/>
- <Column size="200"/>
- </Columns>
- <Rows>
- <Row size="24" band="head"/>
- <Row size="24" band="head"/>
- <Row size="24"/>
- </Rows>
- <Band id="head">
- <Cell rowspan="2" text="상태" taborder="undefined"/>
- <Cell col="1" rowspan="2" text="수술일시" taborder="undefined"/>
- <Cell col="2" rowspan="2" text="수술 방" taborder="undefined"/>
- <Cell col="3" rowspan="2" text="집도과" taborder="undefined"/>
- <Cell col="4" rowspan="2" text="등록번호" taborder="undefined"/>
- <Cell col="5" rowspan="2" text="환자명" taborder="undefined"/>
- <Cell col="6" rowspan="2" text="S/A" taborder="undefined"/>
- <Cell col="7" rowspan="2" text="수술명(영문)" taborder="undefined"/>
- <Cell col="8" rowspan="2" text="집도의" taborder="undefined"/>
- <Cell col="9" rowspan="2" text="마취의" taborder="undefined"/>
- <Cell col="10" rowspan="2" text="관찰시기" taborder="undefined"/>
- <Cell col="11" rowspan="2" text="관찰장소" taborder="undefined"/>
- <Cell col="12" rowspan="2" text="이상 유무" taborder="undefined"/>
- <Cell col="13" rowspan="2" text="이상부위" taborder="undefined"/>
- <Cell col="14" colspan="3" text="크기(cm)" taborder="undefined"/>
- <Cell col="17" rowspan="2" text="피부상태" taborder="undefined"/>
- <Cell col="18" rowspan="2" text="관찰자" taborder="undefined"/>
- <Cell col="19" rowspan="2" text="확인의" taborder="undefined"/>
- <Cell col="20" rowspan="2" text="Remark" taborder="undefined"/>
- <Cell row="1" col="14" text="가로"/>
- <Cell row="1" col="15" text="세로"/>
- <Cell row="1" col="16" text="길이"/>
- </Band>
- <Band id="body">
- <Cell displaytype="combo" edittype="none" text="bind:recstat" combodataset="ds_cmb_recstat" combocodecol="value" combodatacol="label" enable="false"/>
- <Cell col="1" displaytype="date" text="bind:opfromdt" mask="yyyy-mm-dd hh:nn"/>
- <Cell col="2" text="bind:oproomnm"/>
- <Cell col="3" text="bind:perfdeptnm"/>
- <Cell col="4" text="bind:pid"/>
- <Cell col="5" text="bind:hngnm"/>
- <Cell col="6" text="bind:sexage"/>
- <Cell col="7" style="align:left middle;" text="bind:opnm"/>
- <Cell col="8" text="bind:perfdrnm"/>
- <Cell col="9" text="bind:drnm"/>
- <Cell col="10" displaytype="combo" edittype="combo" text="bind:surveypriod" combodataset="ds_init_M0559" combocodecol="cdid" combodatacol="cdnm"/>
- <Cell col="11" displaytype="combo" edittype="combo" text="bind:surveyplace" combodataset="ds_init_hardcodeinfo" combocodecol="cdid" combodatacol="cdnm"/>
- <Cell col="12" displaytype="combo" edittype="combo" text="bind:trobyn" combodataset="ds_cmb_trobyn" combocodecol="value" combodatacol="label"/>
- <Cell col="13" displaytype="text" edittype="text" text="bind:trobpart" expandshow="show"/>
- <Cell col="14" displaytype="text" edittype="text" text="bind:trobwidth"/>
- <Cell col="15" displaytype="text" edittype="text" text="bind:trobheight"/>
- <Cell col="16" displaytype="text" edittype="text" text="bind:troblength"/>
- <Cell col="17" displaytype="combo" edittype="combo" text="bind:skinstat" combodataset="ds_codelist" combocodecol="cdid" combodatacol="cdnm"/>
- <Cell col="18" text="bind:surveynm"/>
- <Cell col="19" text="bind:cnfmrnm"/>
- <Cell col="20" text="bind:remark"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Static id="Static76" text="H10" onclick="Static76_onclick" class="sta_guide" visible="false" position="absolute 0 59 596 69"/>
- <Grid id="grd_skinsurveylist" taborder="1" binddataset="ds_main_skinserveyinfo_skinsurveylist" autoenter="select" useinputpanel="false" cellsizingtype="both" cellsizebandtype="allband" oncellclick="grd_skinsurveylist_oncellclick" onexpanddown="grd_skinsurveylist_onexpanddown" position="absolute 0 85 1195 769" anchor="all" onkeydown="grd_skinsurveylist_onkeydown" oncloseup="grd_skinsurveylist_oncloseup" autosizingtype="none" extendsizetype="row" onlbuttonup="grd_skinsurveylist_onlbuttonup">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="25" band="left"/>
- <Column size="37" band="left"/>
- <Column size="105" band="left"/>
- <Column size="47" band="left"/>
- <Column size="47" band="left"/>
- <Column size="65" band="left"/>
- <Column size="55" band="left"/>
- <Column size="38" band="left"/>
- <Column size="162" band="left"/>
- <Column size="45"/>
- <Column size="45"/>
- <Column size="62"/>
- <Column size="62"/>
- <Column size="34"/>
- <Column size="94"/>
- <Column size="37"/>
- <Column size="37"/>
- <Column size="37"/>
- <Column size="75"/>
- <Column size="67"/>
- <Column size="75"/>
- <Column size="200"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- </Columns>
- <Rows>
- <Row size="24" band="head"/>
- <Row size="24" band="head"/>
- <Row size="24"/>
- </Rows>
- <Band id="head">
- <Cell rowspan="2" taborder="undefined"/>
- <Cell col="1" rowspan="2" text="상태" taborder="undefined"/>
- <Cell col="2" rowspan="2" text="수술일시" taborder="undefined"/>
- <Cell col="3" rowspan="2" text="수술방" taborder="undefined"/>
- <Cell col="4" rowspan="2" text="집도과" taborder="undefined"/>
- <Cell col="5" rowspan="2" text="등록번호" taborder="undefined"/>
- <Cell col="6" rowspan="2" text="환자명" taborder="undefined"/>
- <Cell col="7" rowspan="2" text="S/A" taborder="undefined"/>
- <Cell col="8" rowspan="2" text="수술명(영문)" taborder="undefined"/>
- <Cell col="9" rowspan="2" text="집도의" taborder="undefined"/>
- <Cell col="10" rowspan="2" text="마취의" taborder="undefined"/>
- <Cell col="11" rowspan="2" text="관찰시기" taborder="undefined"/>
- <Cell col="12" rowspan="2" text="관찰장소" taborder="undefined"/>
- <Cell col="13" rowspan="2" text="이상 유무" taborder="undefined"/>
- <Cell col="14" rowspan="2" text="이상부위" taborder="undefined"/>
- <Cell col="15" colspan="3" text="크기(cm)" taborder="undefined"/>
- <Cell col="18" rowspan="2" text="피부상태" taborder="undefined"/>
- <Cell col="19" rowspan="2" text="관찰자" taborder="undefined"/>
- <Cell col="20" rowspan="2" text="확인의" taborder="undefined"/>
- <Cell col="21" rowspan="2" text="Remark" taborder="undefined"/>
- <Cell col="22" text="수술예약번호"/>
- <Cell col="23"/>
- <Cell col="24"/>
- <Cell col="25"/>
- <Cell col="26"/>
- <Cell col="27"/>
- <Cell col="28"/>
- <Cell col="29"/>
- <Cell col="30"/>
- <Cell col="31"/>
- <Cell row="1" col="15" text="가로"/>
- <Cell row="1" col="16" text="세로"/>
- <Cell row="1" col="17" text="깊이"/>
- <Cell row="1" col="22" text="수술예약번호"/>
- <Cell row="1" col="23"/>
- <Cell row="1" col="24"/>
- <Cell row="1" col="25"/>
- <Cell row="1" col="26"/>
- <Cell row="1" col="27"/>
- <Cell row="1" col="28"/>
- <Cell row="1" col="29"/>
- <Cell row="1" col="30"/>
- <Cell row="1" col="31"/>
- </Band>
- <Band id="body">
- <Cell celltype="head"/>
- <Cell col="1" displaytype="combo" edittype="none" style="align:center middle;font:Dotum,9,bold;" text="bind:recstat" combodataset="ds_cmb_recstat" combocodecol="value" combodatacol="label" combodisplayrowcount="20" enable="false"/>
- <Cell col="2" displaytype="date" text="bind:opfromdt" mask="yyyy-MM-dd HH:mm" calendardisplaynulltype="none"/>
- <Cell col="3" text="bind:oproomnm"/>
- <Cell col="4" text="bind:perfdeptnm"/>
- <Cell col="5" text="bind:pid"/>
- <Cell col="6" text="bind:hngnm"/>
- <Cell col="7" text="bind:sexage"/>
- <Cell col="8" style="align:left middle;" text="bind:opnm" autosizerow="limitmin"/>
- <Cell col="9" text="bind:perfdrnm"/>
- <Cell col="10" text="bind:drnm"/>
- <Cell col="11" displaytype="combo" edittype="combo" style="align:center;" text="bind:surveypriod" combodataset="ds_init_M0559" combocodecol="cdid" combodatacol="cdnm" combodisplayrowcount="20"/>
- <Cell col="12" displaytype="combo" edittype="combo" style="align:center;" text="bind:surveyplace" combodataset="ds_init_hardcodeinfo" combocodecol="cdid" combodatacol="cdnm" combodisplayrowcount="20"/>
- <Cell col="13" displaytype="combo" edittype="combo" style="align:center;" text="bind:trobyn" combodataset="ds_cmd_trobyn" combocodecol="value" combodatacol="label" combodisplayrowcount="20"/>
- <Cell col="14" displaytype="text" edittype="expr:trobyn == 'N' ? '' : 'text'" text="bind:trobpart" expandshow="show"/>
- <Cell col="15" displaytype="text" edittype="expr:trobyn == 'N' ? '' : 'text'" text="bind:trobwidth" editautoselect="true"/>
- <Cell col="16" displaytype="text" edittype="expr:trobyn == 'N' ? '' : 'text'" text="bind:trobheight" editautoselect="true"/>
- <Cell col="17" displaytype="text" edittype="expr:trobyn == 'N' ? '' : 'text'" text="bind:troblength" editautoselect="true"/>
- <Cell col="18" displaytype="combo" edittype="expr:trobyn == 'N' ? '' : 'combo'" text="bind:skinstat" combodataset="ds_codelist" combocodecol="cdid" combodatacol="cdnm" combodisplayrowcount="20"/>
- <Cell col="19" displaytype="text" edittype="text" text="bind:surveynm" expandshow="show"/>
- <Cell col="20" displaytype="text" edittype="text" text="bind:cnfmrnm" expandshow="show"/>
- <Cell col="21" displaytype="text" edittype="text" text="bind:remark" edituseime="local,keep" editimemode="hangul"/>
- <Cell col="22" text="bind:oprsrvno"/>
- <Cell col="23" text="bind:surveyid"/>
- <Cell col="24" text="bind:cnfmrid"/>
- <Cell col="25" text="bind:signno"/>
- <Cell col="26" text="bind:opcnfmdd"/>
- <Cell col="27" text="bind:cnfmrdeptcd"/>
- <Cell col="28" text="bind:cnfmrdeptnm"/>
- <Cell col="29" text="bind:surveydeptcd"/>
- <Cell col="30" text="bind:surveydeptnm"/>
- <Cell col="31" text="bind:seqno"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_init_rosettelist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="rosettenm" type="STRING"/>
- <Column id="rosettecd" type="STRING"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_init_oproomlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="oproomnm" type="STRING"/>
- <Column id="oproomcd" type="STRING"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_main_skinserveyinfo_skinsurveylist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false" oncolumnchanged="ds_main_skinserveyinfo_skinsurveylist_oncolumnchanged">
- <ColumnInfo>
- <Column id="recstat" type="STRING"/>
- <Column id="opfromdt" type="STRING"/>
- <Column id="oproomnm" type="STRING"/>
- <Column id="perfdeptnm" type="STRING"/>
- <Column id="pid" type="STRING"/>
- <Column id="hngnm" type="STRING"/>
- <Column id="sexage" type="STRING"/>
- <Column id="opnm" type="STRING"/>
- <Column id="perfdrnm" type="STRING"/>
- <Column id="drnm" type="STRING"/>
- <Column id="surveypriod" type="STRING"/>
- <Column id="surveyplace" type="STRING"/>
- <Column id="trobyn" type="STRING"/>
- <Column id="trobpart" type="STRING"/>
- <Column id="trobwidth" type="STRING"/>
- <Column id="trobheight" type="STRING"/>
- <Column id="troblength" type="STRING"/>
- <Column id="skinstat" type="STRING"/>
- <Column id="surveynm" type="STRING"/>
- <Column id="cnfmrnm" type="STRING"/>
- <Column id="remark" type="STRING"/>
- <Column id="oprsrvno" type="STRING"/>
- <Column id="surveyid" type="STRING"/>
- <Column id="cnfmrid" type="STRING"/>
- <Column id="signno" type="STRING"/>
- <Column id="opcnfmdd" type="STRING"/>
- <Column id="cnfmrdeptcd" type="STRING"/>
- <Column id="cnfmrdeptnm" type="STRING"/>
- <Column id="surveydeptcd" type="STRING"/>
- <Column id="surveydeptnm" type="STRING"/>
- <Column id="seqno" type="STRING"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_grd_excel" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="recstat" type="STRING"/>
- <Column id="opfromdt" type="STRING"/>
- <Column id="oproomnm" type="STRING"/>
- <Column id="perfdeptnm" type="STRING"/>
- <Column id="pid" type="STRING"/>
- <Column id="hngnm" type="STRING"/>
- <Column id="sexage" type="STRING"/>
- <Column id="opnm" type="STRING"/>
- <Column id="perfdrnm" type="STRING"/>
- <Column id="drnm" type="STRING"/>
- <Column id="surveypriod" type="STRING"/>
- <Column id="surveyplace" type="STRING"/>
- <Column id="trobyn" type="STRING"/>
- <Column id="trobpart" type="STRING"/>
- <Column id="trobwidth" type="STRING"/>
- <Column id="trobheight" type="STRING"/>
- <Column id="troblength" type="STRING"/>
- <Column id="skinstat" type="STRING"/>
- <Column id="surveynm" type="STRING"/>
- <Column id="cnfmrnm" type="STRING"/>
- <Column id="remark" type="STRING"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_main_cond" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="fromdd" type="STRING" size="256"/>
- <Column id="todd" type="STRING" size="256"/>
- <Column id="oprosette" type="STRING" size="256"/>
- <Column id="oproomcd" type="STRING" size="256"/>
- <Column id="pid" type="STRING" size="256"/>
- <Column id="patnm" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="fromdd"/>
- <Col id="todd"/>
- <Col id="oprosette"/>
- <Col id="oproomcd"/>
- <Col id="pid"/>
- <Col id="patnm"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_cmb_recstat" 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">T</Col>
- </Row>
- <Row>
- <Col id="label">저장</Col>
- <Col id="value">S</Col>
- </Row>
- <Row>
- <Col id="label">확정</Col>
- <Col id="value">C</Col>
- </Row>
- <Row>
- <Col id="label">삭제</Col>
- <Col id="value">D</Col>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_cmd_trobyn" 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">Y</Col>
- <Col id="value">Y</Col>
- </Row>
- <Row>
- <Col id="label">N</Col>
- <Col id="value">N</Col>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_codelist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_rectrgtinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="patinfo" type="STRING" size="256"/>
- <Column id="recpid" type="STRING" size="256"/>
- <Column id="recoprsrvno" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="patinfo"/>
- <Col id="recpid"/>
- <Col id="recoprsrvno"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_init_hardcodeinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="cdnm" type="STRING" size="256"/>
- <Column id="cdid" type="STRING" size="256"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_patinfo_paminfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_patinfo_operation" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_init_M0559" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_send_signinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- </Objects>
- <Bind>
- <BindItem id="item0" compid="grp_sea.ipt_fromdd" propid="value" datasetid="ds_main_cond" columnid="fromdd"/>
- <BindItem id="item1" compid="grp_sea.ipt_todd" propid="value" datasetid="ds_main_cond" columnid="todd"/>
- <BindItem id="item2" compid="grp_sea.cmb_rosette" propid="value" datasetid="ds_main_cond" columnid="oprosette"/>
- <BindItem id="item3" compid="grp_sea.cmb_oproomlist" propid="value" datasetid="ds_main_cond" columnid="oproomcd"/>
- <BindItem id="item4" compid="grp_sea.ipt_pid" propid="value" datasetid="ds_main_cond" columnid="pid"/>
- <BindItem id="item5" compid="opt_recpatinfo" propid="value" datasetid="ds_rectrgtinfo" columnid="patinfo"/>
- <BindItem id="item6" compid="output1" propid="value" datasetid="ds_rectrgtinfo" columnid="recoprsrvno"/>
- <BindItem id="item7" compid="output2" propid="value" datasetid="ds_rectrgtinfo" columnid="recoprsrvno"/>
- </Bind>
- <Script type="xscript4.0"><![CDATA[/***************************************************************************************
- * System Name :
- * Job Name :
- * Creator :
- * Make Date : 2015-05-01
- * Description :
- *---------------------------------------------------------------------------------------
- * Modify Date Modifier Modify Description
- *---------------------------------------------------------------------------------------
- * 2015-05-01 Live Converter TF->XP
- *
- *---------------------------------------------------------------------------------------
- ****************************************************************************************/
- //=======================================================================================
- // Lib Include
- //---------------------------------------------------------------------------------------
- include "com_commonxp::comm_main.xjs";
- include "emr_carecomxp::CareCom.xjs";
- include "emr_carecomxp::SPMNP00001.xjs";
- include "emr_carecomxp::ENRSignEngine.xjs";
- //=======================================================================================
- // Global Form Variable
- //---------------------------------------------------------------------------------------
- var sPid = "";
- var sSignGernalFlag = "";
- var sCretno = "";
- var sOrddd = "";
- var sOprsrvno = "";
- var sOrdDeptCd = "";
- var sPerfdrId = "";
- var sFormCd = "0900006329";
- var lgv_viewmode = "";
- //=======================================================================================
- // Function
- //---------------------------------------------------------------------------------------
- /****************************************************************************************
- * Argument : N/A
- * Description : 화면 Open시 Call 함수, 초기 세팅 함수
- ****************************************************************************************/
- function fInit(){
- ds_main_skinserveyinfo_skinsurveylist.clearData();
-
- ds_main_cond.setColumn(0, "fromdd" , utlf_getCurrentDate());
- ds_main_cond.setColumn(0, "todd" , utlf_getCurrentDate());
- lgv_viewmode = "S"; //model.setValue("/root/viewmode", "S");
-
- var arrParam = new Array();
- arrParam = [{dsNm: "ds_init_M0559", cdGrpId: "M0559", showValue: false}];
- appf_getCodeList(arrParam, true);
-
- fGetNursHardCdInfo("'137'", utlf_getCurrentDate());
-
- var oParam = {};
- oParam.id = "TRMNP03004";
- oParam.service = "opanstapp.OpAnstStocMngt";
- oParam.method = "reqGetRosettelist";
- //oParam.inds = "";
- oParam.outds = "ds_init_rosettelist=rosettelist";
- oParam.async = false;
- //oParam.callback = "cf_TRMNP03004";
- tranf_submit(oParam);
-
- //2009-11-24 K.J.M 관찰장소
- dsf_createDsRow("ds_send", [{col:"cdgrupid", type:"STRING", size:256, val:"164"}//피부관찰장소
- , {col:"cdid", type:"STRING", size:256, val:""}//서브구분
- , {col:"supcdid", type:"STRING", size:256, val:""}//서브구분
- , {col:"cdnm", type:"STRING", size:256, val:""}
- ]);
-
- var oParam = {};
- oParam.id = "TRMNP04903";
- oParam.service = "opanstapp.OpAnstRef";
- oParam.method = "reqGetOpCommonCd";
- oParam.inds = "reqdata=ds_send";
- oParam.outds = "ds_init_hardcodeinfo=hardcodeinfo";
- oParam.async = false;
- //oParam.callback = "cf_TRMNP04903";
- tranf_submit(oParam);
-
-
- dsf_createDsRow("ds_send", [{col:"opcnfmdd", type:"STRING", size:256, val:ds_main_cond.getColumn(0, "fromdd")}
- , {col:"rosette", type:"STRING", size:256, val:ds_main_cond.getColumn(0, "oprosette")}]);
-
- var oParam = {};
- oParam.id = "TRMNP03002";
- oParam.service = "opanstapp.OpAnstCCrtGoodMngt";
- oParam.method = "reqGetOmcdlist";
- oParam.inds = "req=ds_send";
- oParam.outds = "ds_init_oproomlist=oproomlist";
- oParam.async = false;
- //oParam.callback = "cf_TRMNP03002";
- tranf_submit(oParam);// 수술실코드 가져오기
- frmf_addComboItem( "grp_sea.cmb_rosette", "전체", "", "above");
- frmf_addComboItem( "grp_sea.cmb_oproomlist", "전체", "", "above");
- fViewerSetting();
- }
- /****************************************************************************************
- * Argument : N/A
- * Description : 피부관찰기록 대상 환자 정보 조회
- ****************************************************************************************/
- function fGetPatInfo(){
-
- sPid = "";
- var RecPatInfo = "";
-
- ds_main_skinserveyinfo_skinsurveylist.clearData();
- ds_patinfo_paminfo.clearData();
- ds_patinfo_operation.clearData();
-
- var node = sysf_getGlobalVariable("paminfo");
- dsf_setCSVToDs("ds_patinfo_paminfo", node);
-
- var node1 = sysf_getGlobalVariable("operation");
- dsf_setCSVToDs("ds_patinfo_operation", node1);
-
- sSignGernalFlag = ds_patinfo_paminfo.getColumn(0, "ioflag"); //인증저장시 받아온후 전역변수로 세팅한다.
- sPid = ds_patinfo_paminfo.getColumn(0, "pid");
- sCretno = ds_patinfo_paminfo.getColumn(0, "cretno");
- sOrdDeptCd = ds_patinfo_paminfo.getColumn(0, "orddeptcd");
- sPerfdrId = ds_patinfo_paminfo.getColumn(0, "medispclid");
-
- if(sSignGernalFlag == "O"){
- sOrddd = ds_patinfo_paminfo.getColumn(0, "orddd");
- }else{
- sOrddd = ds_patinfo_paminfo.getColumn(0, "indd");
- }
-
- if(utlf_isNull(sPid)){
- sysf_messageBox("상단 정보가 존재 하지 않습니다. 확인하십시요.", "I");
- ds_rectrgtinfo.setColumn(0, "patinfo", "");
- ds_rectrgtinfo.setColumn(0, "recpid", "");
- ds_rectrgtinfo.setColumn(0, "recoprsrvno", "");
- lgv_viewmode = "S";
- return;
- }else{
- lgv_viewmode = "R";
-
- if(ds_patinfo_operation.rowcount < 1){
- sysf_messageBox("수술 정보가 존재 하지 않습니다. 확인하십시요.", "I");
- ds_rectrgtinfo.setColumn(0, "patinfo", "");
- ds_rectrgtinfo.setColumn(0, "recpid", "");
- ds_rectrgtinfo.setColumn(0, "recoprsrvno", "");
- lgv_viewmode = "S";
- return;
- }
-
- RecPatInfo = utlf_transNullToEmpty(ds_patinfo_operation.getColumn(0, "pid")) + " "
- + utlf_transNullToEmpty(ds_patinfo_paminfo.getColumn(0, "hngnm")) + " "
- + utlf_transNullToEmpty(ds_patinfo_paminfo.getColumn(0, "sex")) + "/"
- + utlf_transNullToEmpty(ds_patinfo_paminfo.getColumn(0, "age")) + " "
- + utlf_transNullToEmpty(ds_patinfo_paminfo.getColumn(0, "roomcd"));
-
- //환자 상단 정보 존재시 임시 노드에 저장
- ds_rectrgtinfo.setColumn(0, "recoprsrvno", ds_patinfo_operation.getColumn(0, "oprsrvno"));
- ds_rectrgtinfo.setColumn(0, "recpid", sPid);
- ds_rectrgtinfo.setColumn(0, "patinfo", RecPatInfo);
- }
-
- ds_main_skinserveyinfo_skinsurveylist.clearData();
-
- dsf_createDsRow("ds_send", [{col:"instcd", type:"STRING", size:256, val:sysf_getUserInfo("posinstcd")}
- , {col:"fromdd", type:"STRING", size:256, val:""}
- , {col:"todd", type:"STRING", size:256, val:""}
- , {col:"oprosette", type:"STRING", size:256, val:""}
- , {col:"oproomcd", type:"STRING", size:256, val:""}
- , {col:"pid", type:"STRING", size:256, val:""}
- , {col:"oprsrvno", type:"STRING", size:256, val:ds_patinfo_operation.getColumn(0, "oprsrvno")}
- ]);
- var oParam = {};
- oParam.id = "TRMNP06801";
- oParam.service = "opanstapp.OpAnstRec";
- oParam.method = "reqGetSkinSurveyRec";
- oParam.inds = "req=ds_send";
- oParam.outds = "ds_main_skinserveyinfo_skinsurveylist=skinserveylist";
- oParam.async = false;
- //oParam.callback = "cf_TRMNP06801";
- tranf_submit(oParam);
-
- grd_skinsurveylist.vscrollbar.pos = scrollpos;
-
- dsf_createDs("ds_hidden_opinfo", [{col:"recstat", type:"STRING", size:256}
- , {col:"oprsrvno", type:"STRING", size:256}
- , {col:"opfromdt", type:"STRING", size:256}
- , {col:"oproomcd", type:"STRING", size:256}
- , {col:"oproomnm", type:"STRING", size:256}
- , {col:"perfdeptcd", type:"STRING", size:256}
- , {col:"perfdeptnm", type:"STRING", size:256}
- , {col:"pid", type:"STRING", size:256}
- , {col:"hngnm", type:"STRING", size:256}
- , {col:"sexage", type:"STRING", size:256}
- , {col:"opnm", type:"STRING", size:256}
- , {col:"perfdrid", type:"STRING", size:256}
- , {col:"perfdrnm", type:"STRING", size:256}
- , {col:"drid", type:"STRING", size:256}
- , {col:"drnm", type:"STRING", size:256}
- , {col:"opcnfmdd", type:"STRING", size:256}
- , {col:"opstatcd", type:"STRING", size:256}]);
- dsf_createDsRow("ds_send", [{col:"oprsrvno", type:"STRING", size:256, val:ds_patinfo_operation.getColumn(0, "oprsrvno")}]);
-
- var oParam = {};
- oParam.id = "TRMNP06802";
- oParam.service = "opanstapp.OpAnstRec";
- oParam.method = "reqGetOpInfo";
- oParam.inds = "req=ds_send";
- oParam.outds = "ds_hidden_opinfo=oplist";
- oParam.async = false;
- //oParam.callback = "cf_TRMNP06802";
- tranf_submit(oParam);
-
- if(ds_hidden_opinfo.getColumn(0, "opstatcd") < "30"){
- sysf_messageBox("수술 스케쥴이 예정 상태로 피부관찰기록을 할 수 없습니다.", "I");
- lgv_viewmode = "S";
- }
-
- fViewerSetting();
- fGridCellStyle();
- }
-
- /****************************************************************************************
- * Argument : N/A
- * Description : 화면 설정 처리부분
- ****************************************************************************************/
- function fViewerSetting(){
-
- ds_main_skinserveyinfo_skinsurveylist.applyChange();
-
- var sViewParam = lgv_viewmode;
- switch(sViewParam){
- case "S":
- if(utlf_isNull(grp_sea.ipt_pid.value)){
- grp_sea.ipt_fromdd.value = utlf_getCurrentDate();
- grp_sea.ipt_todd.value = utlf_getCurrentDate();
- }else{
- grp_sea.ipt_fromdd.value = "19000101";
- grp_sea.ipt_todd.value = "99991231";
- }
- btn_addrow.enable = false;
- btn_delrow.enable = false;
- btn_tmpsave.enable = false;
- btn_save.enable = false;
- break;
- case "R":
- var sBtnFlag = "N"; //기본세팅
-
- for(var i = 0 ; i < ds_main_skinserveyinfo_skinsurveylist.rowcount; i++){
- if("C" == ds_main_skinserveyinfo_skinsurveylist.getColumn(i, "recstat")){
- sBtnFlag = "C";
- }
- }
- //기록내역 중 인증저장 기록 내역이 존재하는 기록이 있을 경우 임시저장 버튼 disabled 처리
- if(sBtnFlag == "C"){
- btn_tmpsave.enable = false;
- }else{
- btn_tmpsave.enable = true;
- }
-
- btn_addrow.enable = true;
- btn_delrow.enable = true;
- btn_save.enable = true;
- break;
- default:
- btn_addrow.enable = false;
- btn_delrow.enable = false;
- btn_tmpsave.enable = false;
- btn_save.enable = false;
- break;
- }
- }
- /****************************************************************************************
- * Argument : N/A
- * Description : 피부관찰기록 조회
- ****************************************************************************************/
- function fSearch(){
- if(lgv_viewmode != "S"){
- lgv_viewmode = "S";
- fViewerSetting();
- }
-
- ds_main_skinserveyinfo_skinsurveylist.clearData();
- dsf_createDsRow("ds_send", [{col:"instcd", type:"STRING", size:256, val:sysf_getUserInfo("posinstcd")}
- , {col:"fromdd", type:"STRING", size:256, val:ds_main_cond.getColumn(0, "fromdd")}
- , {col:"todd", type:"STRING", size:256, val:ds_main_cond.getColumn(0, "todd")}
- , {col:"oprosette", type:"STRING", size:256, val:ds_main_cond.getColumn(0, "oprosette")}
- , {col:"oproomcd", type:"STRING", size:256, val:ds_main_cond.getColumn(0, "oproomcd")}
- , {col:"pid", type:"STRING", size:256, val:ds_main_cond.getColumn(0, "pid")}
- , {col:"oprsrvno", type:"STRING", size:256, val:""}]);
- var oParam = {};
- oParam.id = "TRMNP06801";
- oParam.service = "opanstapp.OpAnstRec";
- oParam.method = "reqGetSkinSurveyRec";
- oParam.inds = "req=ds_send";
- oParam.outds = "ds_main_skinserveyinfo_skinsurveylist=skinserveylist";
- oParam.async = false;
- //oParam.callback = "cf_TRMNP06801";
- tranf_submit(oParam);
-
- fGridCellStyle();
- }
- /****************************************************************************************
- * Argument : N/A
- * Description : 피부관찰기록 그리드 Style 적용
- ****************************************************************************************/
- function fGridCellStyle(){
-
- var objExt = new ExtCommon();
- var arrRow = objExt.findRows(ds_main_skinserveyinfo_skinsurveylist, "recstat", "T");
- grdf_setStatus(grd_skinsurveylist, "I", arrRow)
-
- }
- /****************************************************************************************
- * Argument : N/A
- * Description : 피부관찰기록 이상유무 선택시 이벤트 처리
- ****************************************************************************************/
- function fChngTrobYn(pRow){
- if(ds_main_skinserveyinfo_skinsurveylist.getColumn(pRow, "trobyn") == "N"){
- ds_main_skinserveyinfo_skinsurveylist.setColumn(pRow, "trobpart", "");
- ds_main_skinserveyinfo_skinsurveylist.setColumn(pRow, "trobwidth", "");
- ds_main_skinserveyinfo_skinsurveylist.setColumn(pRow, "trobheight", "");
- ds_main_skinserveyinfo_skinsurveylist.setColumn(pRow, "troblength", "");
- ds_main_skinserveyinfo_skinsurveylist.setColumn(pRow, "skinstat", "");
- }
- }
- /****************************************************************************************
- * Argument : N/A
- * Description : 피부관찰기록 행 추가 처리
- ****************************************************************************************/
- function fInsertRow(){
-
- if(lgv_viewmode == "S"){
- return;
- }
-
- dsf_createDs("ds_hidden_opinfo", [{col:"recstat", type:"STRING", size:256}
- , {col:"oprsrvno", type:"STRING", size:256}
- , {col:"opfromdt", type:"STRING", size:256}
- , {col:"oproomcd", type:"STRING", size:256}
- , {col:"oproomnm", type:"STRING", size:256}
- , {col:"perfdeptcd", type:"STRING", size:256}
- , {col:"perfdeptnm", type:"STRING", size:256}
- , {col:"pid", type:"STRING", size:256}
- , {col:"hngnm", type:"STRING", size:256}
- , {col:"sexage", type:"STRING", size:256}
- , {col:"opnm", type:"STRING", size:256}
- , {col:"perfdrid", type:"STRING", size:256}
- , {col:"perfdrnm", type:"STRING", size:256}
- , {col:"drid", type:"STRING", size:256}
- , {col:"drnm", type:"STRING", size:256}
- , {col:"opcnfmdd", type:"STRING", size:256}
- , {col:"opstatcd", type:"STRING", size:256}]);
- dsf_createDsRow("ds_send", [{col:"oprsrvno", type:"STRING", size:256, val:ds_patinfo_operation.getColumn(0, "oprsrvno")}]);
-
- var oParam = {};
- oParam.id = "TRMNP06802";
- oParam.service = "opanstapp.OpAnstRec";
- oParam.method = "reqGetOpInfo";
- oParam.inds = "req=ds_send";
- oParam.outds = "ds_hidden_opinfo=oplist";
- oParam.async = false;
- //oParam.callback = "cf_TRMNP06802";
- tranf_submit(oParam);
-
- if(ds_hidden_opinfo.rowcount < 1 ){
- return;
- }
- ds_main_skinserveyinfo_skinsurveylist.enableevent = false;
- var nRow = ds_main_skinserveyinfo_skinsurveylist.addRow();
- ds_main_skinserveyinfo_skinsurveylist.setColumn(nRow, "recstat", "T");
- ds_main_skinserveyinfo_skinsurveylist.setColumn(nRow, "opfromdt", ds_hidden_opinfo.getColumn(0, "opfromdt"));
- ds_main_skinserveyinfo_skinsurveylist.setColumn(nRow, "oproomnm", ds_hidden_opinfo.getColumn(0, "oproomnm"));
- ds_main_skinserveyinfo_skinsurveylist.setColumn(nRow, "perfdeptnm", ds_hidden_opinfo.getColumn(0, "perfdeptnm"));
- ds_main_skinserveyinfo_skinsurveylist.setColumn(nRow, "pid", ds_hidden_opinfo.getColumn(0, "pid"));
- ds_main_skinserveyinfo_skinsurveylist.setColumn(nRow, "hngnm", ds_hidden_opinfo.getColumn(0, "hngnm"));
- ds_main_skinserveyinfo_skinsurveylist.setColumn(nRow, "sexage", ds_hidden_opinfo.getColumn(0, "sexage"));
- ds_main_skinserveyinfo_skinsurveylist.setColumn(nRow, "opnm", ds_hidden_opinfo.getColumn(0, "opnm"));
- ds_main_skinserveyinfo_skinsurveylist.setColumn(nRow, "perfdrnm", ds_hidden_opinfo.getColumn(0, "perfdrnm"));
- ds_main_skinserveyinfo_skinsurveylist.setColumn(nRow, "drnm", ds_hidden_opinfo.getColumn(0, "drnm"));
- ds_main_skinserveyinfo_skinsurveylist.setColumn(nRow, "oprsrvno", ds_hidden_opinfo.getColumn(0, "oprsrvno"));
- ds_main_skinserveyinfo_skinsurveylist.setColumn(nRow, "trobyn", "N");
- ds_main_skinserveyinfo_skinsurveylist.setColumn(nRow, "seqno", 0);
- ds_main_skinserveyinfo_skinsurveylist.enableevent = true;
-
- fGridCellStyle();
- }
- /****************************************************************************************
- * Argument : N/A
- * Description : 피부관찰기록 행 삭제 처리
- ****************************************************************************************/
- function fDeleteRow(pRow){
- if(ds_main_skinserveyinfo_skinsurveylist.getColumn(pRow, "recstat") == "T"){
- ds_main_skinserveyinfo_skinsurveylist.setColumn(pRow, "recstat", "X");
- }else{
- ds_main_skinserveyinfo_skinsurveylist.setColumn(pRow, "recstat", "D");
- grdf_setStatus(grd_skinsurveylist, "D", [pRow])
- }
- fGridCellStyle();
- }
- /****************************************************************************************
- * Argument : N/A
- * Description : 피부관찰기록 그리드 정보 출력
- ****************************************************************************************/
- function fPrint(){
- if(ds_main_skinserveyinfo_skinsurveylist.rowcount < 1){
- sysf_messageBox("출력할 정보가 존재하지 않습니다.","I");
- return;
- }
-
- dsf_createDs("ds_prntdata");
- ds_prntdata.copyData(ds_main_skinserveyinfo_skinsurveylist);
-
- var sPrntPath = "/root/prntdata/skinserveylist";
- for(var i = 0 ; i < ds_prntdata.rowcount; i++){
- var sSurveyPriod = ds_prntdata.getColumn(i, "surveypriod");
- var sSurveyPlace = ds_prntdata.getColumn(i, "surveyplace");
- var sSkinStat = ds_prntdata.getColumn(i, "skinstat");
-
- if( sSurveyPriod != "-" && !utlf_isNull(sSurveyPriod) ){
- ds_prntdata.setColumn(i, "surveypriod", ds_init_M0559.lookup("cdid", sSurveyPriod, "cdnm"));
- }
- if( sSurveyPlace != "-" && !utlf_isNull(sSurveyPlace) ){
- ds_prntdata.setColumn(i, "surveyplace", ds_init_hardcodeinfo.lookup("cdid", sSurveyPlace, "cdnm"));
- }
- if(!utlf_isNull(sSkinStat) ){
- ds_prntdata.setColumn(i, "skinstat", ds_codelist.lookup("cdid", sSkinStat, "cdnm"));
- }
- }
-
- var objDOM = rptf_createDOM(); // DOM 객체 설정
- rptf_setNodeListToDOM(objDOM, "/root/prntdata/skinserveylist", ds_prntdata); // 데이터셋 1
-
- var objParam = new Object();
- objParam.xml_data_XML1 = objDOM.documentElement.source; // 최상의노드 XML 스트링 추출
- var option = "open=1;save=1;directprint=0;printdailog=0;print=1;zoom=0;";
- rptf_exeReportPreview30(["RPMNP06800"],[objParam], option);
- }
- /****************************************************************************************
- * Argument : N/A
- * Description : 피부관찰기록 그리드 정보 엑셀저장
- ****************************************************************************************/
- function fSaveExcel(){
-
- if(ds_main_skinserveyinfo_skinsurveylist.rowcount < 1){
- sysf_messageBox("Excel 출력할 정보가 존재하지 않습니다.","I");
- return;
- }
-
- grdf_exportExcel(grd_skinsurveylist, "피부관찰기록_"+utlf_getCurrentDate(), "Sheet1");
- }
- var scrollpos;
- /****************************************************************************************
- * Argument : N/A
- * Description : 피부관찰기록 임시저장 또는 인증저장 처리
- ****************************************************************************************/
- function fSave(pFlag){
- scrollpos = ds_main_skinserveyinfo_skinsurveylist.rowposition;
- //저장시 상단정보 재조회
- ds_patinfo_paminfo.clearData();
- ds_patinfo_operation.clearData();
-
- var node = sysf_getGlobalVariable("paminfo");
- dsf_setCSVToDs("ds_patinfo_paminfo", node);
-
- var node1 = sysf_getGlobalVariable("operation");
- dsf_setCSVToDs("ds_patinfo_operation", node1);
-
- //상단정보와 기록 대상 환자 정보 일치 확인
- if(ds_rectrgtinfo.getColumn(0, "recpid") != ds_patinfo_paminfo.getColumn(0, "pid")){
- sysf_messageBox("상단 환자정보와 기록할 환자정보가 불일치 하여 저장 할 수 없습니다.", "I");
- return;
- }
-
- if(ds_rectrgtinfo.getColumn(0, "recoprsrvno") != ds_patinfo_operation.getColumn(0, "oprsrvno")){
- sysf_messageBox("상단 수술정보와 기록할 수술정보가 불일치 하여 저장 할 수 없습니다.", "I");
- return;
- }
-
- switch(pFlag){
- case "T":
- break;
- case "C":
- //인증저장 번호 추출 및 기록 필수 조건 블럭킹
- var sSignNo = "";
- for(var i = 0; i < ds_main_skinserveyinfo_skinsurveylist.rowcount ; i++){
- if(utlf_isNull(ds_main_skinserveyinfo_skinsurveylist.getColumn(i, "surveypriod"))){
- sysf_messageBox("관찰시기 항목은 필수 입력 항목입니다.", "I");
- return;
- }
-
- if(utlf_isNull(ds_main_skinserveyinfo_skinsurveylist.getColumn(i, "surveyplace"))){
- sysf_messageBox("관찰장소 항목은 필수 입력 항목입니다.", "I");
- return;
- }
-
- if(utlf_isNull(ds_main_skinserveyinfo_skinsurveylist.getColumn(i, "surveynm"))){
- sysf_messageBox("관찰자 항목은 필수 입력 항목입니다.", "I");
- return;
- }
-
- if(utlf_isNull(ds_main_skinserveyinfo_skinsurveylist.getColumn(i, "cnfmrnm"))){
- sysf_messageBox("확인의 항목은 필수 입력 항목입니다.", "I");
- return;
- }
-
- if(ds_main_skinserveyinfo_skinsurveylist.getColumn(i, "trobyn") == "Y" &&
- utlf_isNull(ds_main_skinserveyinfo_skinsurveylist.getColumn(i, "skinstat")) ){
- sysf_messageBox("이상유무 'Y'일 경우 피부상태는 필수 입력 항목입니다.", "I");
- return;
- }
-
- if( !utlf_isNull(ds_main_skinserveyinfo_skinsurveylist.getColumn(i, "signno")) ){
- sSignNo = ds_main_skinserveyinfo_skinsurveylist.getColumn(i, "signno");
- }
- //new 확인필요
- // if(grd_skinsurveylist.rowStatus(i) == 0){
- // grd_skinsurveylist.rowStatus(i) = 2;
- // }
- }
-
- Sign.certreload = true;
-
- if (Sign.signprocess() == true){ // ▶ 전자인증 관련 환자 인적 정보를 보내줌.
- var wSigninfo
- = "pid" +"▦" // 01 등록번호
- + "orddd" +"▦" // 02 입원일자(입원,응급)/진료일자(외래)
- + "cretno" +"▦" // 03 생성번호
- + "signno" +"▦" // 04 서명번호(인증번호)
- + "recdd" +"▦" // 05 실제 기록이 이루어진 기록일자
- + "rectm" +"▦" // 06 실제 기록이 이루어진 기록시간
- + "recsaveflag" +"▦" // 07 전자서명 인적정보 변경여부(기록일시 변경되는 경우 : Y, 그외 : N)
- + "signflag" +"▦" // 08 서명자료구분(01 : 진료, 02 : 간호, 03 : LIS, 04 : 진료지원)
- + "signgenrflag" +"▦" // 09 외래/입원구분(코드정의서 M0010 참조)
- + "formcd" +"▦" // 10 각 기록지별 서식코드
- + "orddeptcd" +"▦" // 11 진료부서코드
- + "orddrid" +"▦" // 12 진료의사ID (집도의)
- + "signbfcnts" +"▦" // 13 ▶ 인증할 데이터 정보(미기록 노드 제거된 정보)
- + "signaftcnts" +"▩" // 14 ▶ 공인인증 처리후 데이터
- + sPid +"▦" // 01 등록번호
- + sOrddd +"▦" // 02 입원일자(입원,응급)/진료일자(외래)
- + sCretno +"▦" // 03 생성번호
- + sSignNo +"▦" // 04 서명번호(인증번호)
- + utlf_getCurrentDate() +"▦" // 05 실제 기록이 이루어진 기록일자
- + utlf_getCurrentTime() +"▦" // 06 실제 기록이 이루어진 기록시간
- + "N" +"▦" // 07 전자서명 인적정보 변경여부(기록일시 변경되는 경우 : Y, 그외 : N)
- + "02" +"▦" // 08 서명자료구분(01 : 진료, 02 : 간호, 03 : LIS, 04 : 진료지원)
- + sSignGernalFlag +"▦" // 09 외래/입원구분(코드정의서 M0010 참조)
- + sFormCd +"▦" // 10 각 기록지별 서식코드
- + sOrdDeptCd +"▦" // 11 진료부서코드
- + sPerfdrId +"▦" // 12 진료의사ID (집도의)
- + Sign.signedInfos[1] +"▦" // 13 ▶ 인증할 데이터 정보(미기록 노드 제거된 정보)
- + Sign.signedInfos[2] +"▩"; // 14 ▶ 공인인증 처리후 데이터
-
- dsf_setCSVToDs("ds_send_signinfo", wSigninfo);
- }
- break;
- }
-
- grdf_setStatusColumn(ds_main_skinserveyinfo_skinsurveylist, "status");
-
- var oParam = {};
- oParam.id = "TXMNP06801";
- oParam.service = "opanstapp.OpAnstRec";
- oParam.method = "reqExeSkinRec";
- oParam.inds = "recsavedata=ds_main_skinserveyinfo_skinsurveylist:U signinfo=ds_send_signinfo";
- //oParam.outds = "";
- oParam.async = false;
- oParam.callback = "cf_TXMNP06801";
- oParam.typeStr = "status";
- tranf_submit(oParam);
- }
- function cf_TXMNP06801(sSvcId, nErrorCode, sErrorMsg) {
- if(nErrorCode < 0) return;
-
- fGetPatInfo();
- }
- /****************************************************************************************
- * Argument : N/A
- * Description : ※ 인증데이터 생성함수 만들기
- ****************************************************************************************/
- function fMake_SignData(){
- //Sign.addnode("/root/main/skinserveyinfo");
-
- dsf_createDs("ds_signinfo");
- ds_signinfo.copyData(ds_main_skinserveyinfo_skinsurveylist);
-
- for(var i = 0 ; i < ds_signinfo.rowcount; i++){
- var sSurveyPriod = ds_signinfo.getColumn(i, "surveypriod");
- var sSurveyPlace = ds_signinfo.getColumn(i, "surveyplace");
- var sSkinStat = ds_signinfo.getColumn(i, "skinstat");
-
- if( sSurveyPriod != "-" && !utlf_isNull(sSurveyPriod) ){
- ds_signinfo.setColumn(i, "surveypriod", ds_init_M0559.lookup("cdid", sSurveyPriod, "cdnm"));
- }
- if( sSurveyPlace != "-" && !utlf_isNull(sSurveyPlace) ){
- ds_signinfo.setColumn(i, "surveyplace", ds_init_hardcodeinfo.lookup("cdid", sSurveyPlace, "cdnm"));
- }
- if(!utlf_isNull(sSkinStat) ){
- ds_signinfo.setColumn(i, "skinstat", ds_codelist.lookup("cdid", sSkinStat, "cdnm"));
- }
- }
-
- Sign.addnode("/skinserveyinfo/skinserveylist", ds_signinfo.saveXML());
-
- dsf_deleteDs("ds_signinfo");
- }
- /****************************************************************************************
- * Argument : N/A
- * Description : 피부관찰기록 그리드 버튼 클릭 이벤트 처리
- 이상부위 -> 부위 선택 화면 호출
- 관찰자, 확인의 -> 사용자 조회 화면 호출
- ****************************************************************************************/
- function fGridOnButtonClickEvent(iCol){
- if ( iCol < 0 ){
- return;
- }
-
- if( iCol == grd_skinsurveylist.getBindCellIndex("body", "trobpart")) {
- //부위 표시 POPUP 호출
- sysf_trace("asdf")
- fPopupBedSoreImg(iCol);
- }
-
- if( iCol == grd_skinsurveylist.getBindCellIndex("body", "surveynm")) {
- var iRow = ds_main_skinserveyinfo_skinsurveylist.rowposition;
- var sSearchdd = ds_patinfo_operation.getColumn(0, "opcnfmdd");
- var sChargerNm = "";
- var sSurveyid = ds_main_skinserveyinfo_skinsurveylist.getColumn(iRow, "surveyid");
- var sSurveynm = ds_main_skinserveyinfo_skinsurveylist.getColumn(iRow, "surveynm");
- fUseridPopup(ds_main_skinserveyinfo_skinsurveylist, iRow, "surveyid", "surveynm", "" , "", grd_skinsurveylist, "", sSearchdd);
- grd_skinsurveylist.showEditor(false);
- return;
- }
-
- if( iCol == grd_skinsurveylist.getBindCellIndex("body", "cnfmrnm")) {
- var iRow = ds_main_skinserveyinfo_skinsurveylist.rowposition;
- var sSearchdd = ds_patinfo_operation.getColumn(0, "opcnfmdd");
- var sChargerNm = "";
- var sCnfmrid = ds_main_skinserveyinfo_skinsurveylist.getColumn(iRow, "cnfmrid");
- var sCnfmrnm = ds_main_skinserveyinfo_skinsurveylist.getColumn(iRow, "cnfmrnm");
- fUseridPopup(ds_main_skinserveyinfo_skinsurveylist, iRow, "cnfmrid", "cnfmrnm", "" , "", grd_skinsurveylist, "", sSearchdd);
- grd_skinsurveylist.showEditor(false);
- return;
- }
- }
- /****************************************************************************************
- * Argument : N/A
- * Description : 관찰자, 확인의 이름 및 사용자 번호 입력값에 대한 정보 조회
- ****************************************************************************************/
- function fUserSelect(pRow, pCol){
- var nRow = pRow;
- var rUserNmColnm = "";
- var rUserIdColnm = "";
-
- var rPath = this.objects["ds_main_skinserveyinfo_skinsurveylist"];
- if(rPath.getColumnInfo(pCol).name == "surveynm"){
- rUserNmColnm = "surveynm";
- rUserIdColnm = "surveyid";
- rDeptNmColnm = "surveydeptnm";
- rDeptCdColnm = "surveydeptcd";
- var wNode = "020";
- }else{
- rUserNmColnm = "cnfmrnm";
- rUserIdColnm = "cnfmrid";
- rDeptNmColnm = "cnfmrdeptnm";
- rDeptCdColnm = "cnfmrdeptcd";
- var wNode = "011";
- }
- var rUserInfo = utlf_transNullToEmpty(rPath.getColumn(nRow, rUserNmColnm)).replace(/(^\s*)|(\s*$)/g, "");
- rPath.setColumn(nRow, rUserNmColnm, "");
-
- // cellStyle 확인 필요
- if (utlf_isNull(rUserInfo)) {
- //grd_skinsurveylist.cellStyle("color", pRow, pCol, pRow, pCol) = "";
- return;
- }
-
- //var wNode = "011";
- var sSearchdd = ds_patinfo_operation.getColumn(0, "opcnfmdd");
-
- //특정일자에 근무했던 정보를 가져오도록 수정
- fUserEnter(rPath, pRow, rUserIdColnm , rUserNmColnm, rDeptNmColnm, rDeptCdColnm, rUserInfo, grd_skinsurveylist, "all", wNode, sSearchdd);
-
- //정보가 없을 경우에는 빈칸으로 들어가서 edit 모드로 변경함.
- if (utlf_isNull(rPath.getColumn(nRow, rUserIdColnm))) {
- rPath.setColumn(pRow, pCol, "");
- grd_skinsurveylist.showEditor(true);
- } else {
- grd_skinsurveylist.showEditor(false);
- //grd_skinsurveylist.cellStyle("color", pRow, pCol, pRow, pCol) = "";
- }
- }
- /****************************************************************************************
- * Argument : N/A
- * Description : 이상부위 선택 popup화면 호출
- ****************************************************************************************/
- function fPopupBedSoreImg(pCol){
- var iRow = ds_main_skinserveyinfo_skinsurveylist.rowposition;
- var iCol = pCol;
-
- //팝업창에 부위 값이 있으면 기존값 셋팅
- //이미저장되어있으면 수정하지 못하도록 확인버튼을 막아주는 flag를 set한다.
- //var PartTail = grd_skinsurveylist.textmatrix(iRow,grd_skinsurveylist.colRef("trobpart"));
- var PartTail = utlf_transNullToEmpty(ds_main_skinserveyinfo_skinsurveylist.getColumn(iRow, "trobpart"));
-
- if(utlf_isSearchString(PartTail, "(R)") == true){
- PartTail = PartTail.replace("(R)", ",(R),");
- }
-
- if(utlf_isSearchString(PartTail, "(L)") == true){
- PartTail = PartTail.replace("(L)", ",(L),");
- }
-
- WordLen = utlf_getStringLength(PartTail);
-
- if( PartTail.substr(WordLen -1, WordLen) ==","){
- PartTail = PartTail.substr(0, WordLen -1);
- }
-
- frmf_setParameter("partall", PartTail);
- frmf_setParameter('editable', 't');
- //modal("SPMNP06800",1, event.screenX-200, event.screenY+50); //이미지호출
-
- frmf_modal("SPMNP06800", "SPMNP06800", null, false, 1, grd_skinsurveylist.position.x + 50, grd_skinsurveylist.position.y + 50, null, null, null, null, null, "M");
-
- //팝업에서 아무것도 선택하지 않고 close를 눌렀을때..
- if( frmf_getParameter("returnnull") == "close" ){
- return ;
- } else {
- //욕창발생부위 값을 grid에 set
- var retStr = utlf_transNullToEmpty(frmf_getParameter('retStr'));
- ds_main_skinserveyinfo_skinsurveylist.setColumn(iRow, "trobpart", retStr);
-
- //그리드 상태값 변경
- // if(grd_skinsurveylist.rowStatus(iRow) == 0){
- // grd_skinsurveylist.rowStatus(iRow) = 2;
- // }
- }
- }
- //=======================================================================================
- // Transaction Callback
- //---------------------------------------------------------------------------------------
- /****************************************************************************************
- * Argument : 01.sSvcId : 서비스 ID
- * : 02.nErrorCode : 에러코드
- * : 03.sErrorMsg : 에러메시지
- * Description : tr_getCodeList의 콜백함수
- ****************************************************************************************/
- function cbf_tr_getCodeList(sSvcId, nErrorCode, sErrorMsg){
- }
- //=======================================================================================
- // Event
- //---------------------------------------------------------------------------------------
- /****************************************************************************************
- * Components : Form
- * Components ID : SMMNP06800
- * Event : onload
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 화면 초기화
- ****************************************************************************************/
- function SMMNP06800_onload(obj:Form, e:LoadEventInfo)
- {
- frmf_initForm(obj);
- grdf_initGrid(grd_skinsurveylist);
- grdf_setRowTypeIcon(grd_skinsurveylist, 0);
- grdf_setToolTipBind(grd_skinsurveylist);
-
- //fInit();
- this.setTimer(0, 100);
- Sign.init();
- }
- /****************************************************************************************
- * Components : Combo
- * Components ID : grp_sea.cmb_rosette
- * Event : onitemchanged
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 수술방 변경 이벤트
- ****************************************************************************************/
- function grp_sea_cmb_rosette_onitemchanged(obj:Combo, e:ItemChangeEventInfo)
- {
- dsf_createDsRow("ds_send", [{col:"opcnfmdd", type:"STRING", size:256, val:ds_main_cond.getColumn(0, "fromdd")}
- , {col:"rosette", type:"STRING", size:256, val:ds_main_cond.getColumn(0, "oprosette")}]);
-
- var oParam = {};
- oParam.id = "TRMNP03002";
- oParam.service = "opanstapp.OpAnstCCrtGoodMngt";
- oParam.method = "reqGetOmcdlist";
- oParam.inds = "req=ds_send";
- oParam.outds = "ds_init_oproomlist=oproomlist";
- oParam.async = false;
- oParam.callback = "cf_TRMNP03002";
- tranf_submit(oParam);// 수술실코드 가져오기
-
-
- }
- function cf_TRMNP03002(sSvcId, nErrorCode, sErrorMsg) {
- if(nErrorCode < 0) return;
-
- frmf_addComboItem( "grp_sea.cmb_oproomlist", "전체", "", "above");
- grp_sea.cmb_oproomlist.value = "";
- }
- /****************************************************************************************
- * Components : Edit
- * Components ID : grp_sea.ipt_pid
- * Event : onrbuttonup
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 환자명/등록번호로 조회
- ****************************************************************************************/
- function grp_sea_ipt_pid_onkeyup(obj:Edit, e:KeyEventInfo)
- {
- obj.updateToDataset();
- if( e.keycode == 13 )
- grp_sea.btn_srch.click();
- }
- /****************************************************************************************
- * Components : Button
- * Components ID : grp_sea.btn_srch
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 수술환자피부관찰 대상자 조회
- ****************************************************************************************/
- function grp_sea_btn_srch_onclick(obj:Button, e:ClickEventInfo)
- {
- fSearch();
- }
- /****************************************************************************************
- * Components : Grid
- * Components ID : grd_skinsurveylist
- * Event : onexpanddown
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 그리드 버튼 클릭 이벤트
- ****************************************************************************************/
- function grd_skinsurveylist_onexpanddown(obj:Grid, e:GridMouseEventInfo)
- {
- sysf_trace("1111")
- fGridOnButtonClickEvent(e.col);
-
- }
- /****************************************************************************************
- * Components : Dataset
- * Components ID : ds_main_skinserveyinfo_skinsurveylist
- * Event : oncolumnchanged
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 그리드 값 변경에 따른 이벤트
- ****************************************************************************************/
- function ds_main_skinserveyinfo_skinsurveylist_oncolumnchanged(obj:Dataset, e:DSColChangeEventInfo)
- {
- //trace("ds_main_skinserveyinfo_skinsurveylist_oncolumnchanged");
- // Grid xforms-value-changed
- if( e.columnid == "surveynm" || e.columnid == "cnfmrnm") {
- fUserSelect(e.row, e.col); //사원찾기
- }else if(e.columnid == "trobyn"){
- fChngTrobYn(e.row);
- }
- }
- /****************************************************************************************
- * Components : Button
- * Components ID : btn_chgnmode
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 기록모드 버튼
- ****************************************************************************************/
- function btn_chgnmode_onclick(obj:Button, e:ClickEventInfo)
- {
- fGetPatInfo();
- }
- /****************************************************************************************
- * Components : Button
- * Components ID : btn_addrow
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 행추가 버튼
- ****************************************************************************************/
- function btn_addrow_onclick(obj:Button, e:ClickEventInfo)
- {
- fInsertRow();
- }
- /****************************************************************************************
- * Components : Button
- * Components ID : btn_delrow
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 행삭제 버튼
- ****************************************************************************************/
- function btn_delrow_onclick(obj:Button, e:ClickEventInfo)
- {
- var nRow = ds_main_skinserveyinfo_skinsurveylist.rowposition;
- var nCnt = ds_main_skinserveyinfo_skinsurveylist.rowcount;
- if(nRow < 0 || nCnt == 0){
- sysf_messageBox("기록삭제 할 기록 정보를 선택하십시요", "I");
- return;
- }else{
- fDeleteRow(nRow);
- }
- }
- /****************************************************************************************
- * Components : Button
- * Components ID : btn_tmpsave
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 임시저장 버튼
- ****************************************************************************************/
- function btn_tmpsave_onclick(obj:Button, e:ClickEventInfo)
- {
- var vpos = grd_skinsurveylist.vscrollbar.pos;
- var hpos = grd_skinsurveylist.hscrollbar.pos;
- fSave("T");
- grd_skinsurveylist.vscrollbar.pos = vpos;
- grd_skinsurveylist.hscrollbar.pos = hpos;
- }
- /****************************************************************************************
- * Components : Button
- * Components ID : btn_save
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 인증저장 버튼
- ****************************************************************************************/
- function btn_save_onclick(obj:Button, e:ClickEventInfo)
- {
- var vpos = grd_skinsurveylist.vscrollbar.pos;
- var hpos = grd_skinsurveylist.hscrollbar.pos;
- fSave("C");
- grd_skinsurveylist.vscrollbar.pos = vpos;
- grd_skinsurveylist.hscrollbar.pos = hpos;
- }
- /****************************************************************************************
- * Components : Button
- * Components ID : btn_print
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 출력버튼
- ****************************************************************************************/
- function btn_print_onclick(obj:Button, e:ClickEventInfo)
- {
- fPrint();
- }
- /****************************************************************************************
- * Components : Button
- * Components ID : btn_saveexcel
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 엑셀저장 버튼
- ****************************************************************************************/
- function btn_saveexcel_onclick(obj:Button, e:ClickEventInfo)
- {
- fSaveExcel();
- }
- var lastrow1 = -1;
- var lastcol1 = -1;
- var bDrop1 = false;
- /****************************************************************************************
- * Components : Grid
- * Components ID : grd_skinsurveylist
- * Event : oncellclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : Grid ExpandButton Click Event
- ****************************************************************************************/
- function grd_skinsurveylist_oncellclick(obj:Grid, e:GridClickEventInfo)
- {
- lastrow1 = -1;
- lastcol1 = -1;
-
- var nColCnt = obj.getCellCount("body");
- var rSize = 0;
-
- if( obj.getCellProperty("body", e.col, "expandshow") != "show"
- || (obj.getCellProperty("body", e.col, "edittype") != "text" && obj.getCellProperty("body", e.col, "edittype").indexOf("expr") < -1)) return;
-
- // expr 사용으로 인해 처리로직 추가
- if( e.col == obj.getBindCellIndex("body", "trobpart")
- && ds_main_skinserveyinfo_skinsurveylist.getColumn(e.row, "trobyn") != "Y" ) return;
-
- var hspos = obj.hscrollbar.pos;
- var tspos = 0;
- for( var i=0; i<nColCnt; i++){
- if( obj.getFormatColProperty(i, "band") != "left" && hspos > 0 && hspos != tspos ){
- tspos++;
- continue;
- }
- rSize += obj.getRealColSize(i);
- if( e.col == i ) break;
- }
- if (e.clientX >= (rSize - 25) && e.clientX < rSize ){
- fGridOnButtonClickEvent(e.cell);
- }
- }
- function SMMNP06800_ontimer(obj:Form, e:TimerEventInfo)
- {
- if( e.timerid == 0 ){
- this.killTimer(0);
- fInit();
- }
- }
- function grd_skinsurveylist_onkeydown(obj:Grid, e:KeyEventInfo)
- {
- if(e.keycode == 13){
- if( grd_skinsurveylist.currentcol == 15 ||
- grd_skinsurveylist.currentcol == 16 ||
- grd_skinsurveylist.currentcol == 17){
- obj.showEditor(false)
- }
- }
- }
- function grd_skinsurveylist_oncloseup(obj:Grid, e:GridEditEventInfo)
- {
- var dsGridBind = eval(obj.binddataset);
- var preVal = utlf_transNullToEmpty(dsGridBind.getColumn(e.row, e.col));
- var posVal = utlf_transNullToEmpty(e.value);
-
- if( bDrop1 == true && (!utlf_isNull(posVal) || preVal != posVal) ){
- obj.showEditor(false);
- }
-
- bDrop1 = false;
- lastrow1 = e.row;
- lastcol1 = e.col;
- }
- function grd_skinsurveylist_onlbuttonup(obj:Grid, e:GridMouseEventInfo)
- {
- grdf_setSelectedCell(obj, e);
-
- var dsGridBind = eval(obj.binddataset);
-
- // Combo DropDown Click 처리
- obj.autoenter = "select";
-
- if( e.fromreferenceobject.name == "dropbutton" ){
- bDrop1 = true;
- }
- if( e.row > -1 && obj.getCellProperty("body", e.col, "edittype") == "combo" ){
- // Combo 선택시 활성화 및 combodatacol 변경
- if( grdf_getSelectedCols(obj).length == 0 && grdf_getSelectedRows(obj).length == 0 && obj.getEditText() == undefined ){
- obj.showEditor(true);
- }else{
- if(!obj.isDropdownCombo() && (lastrow1 != e.row || lastcol1 != e.col)) {
- obj.setCellPos(e.col);
- dsGridBind.rowposition = e.row;
- obj.showEditor(true);
- if(bDrop1) {
- obj.dropdownCombo();
- }
- }
- }
- }else{
- obj.autoenter = "select";
- }
- }
- ]]></Script>
- </Form>
- </FDL>
|