SSMMR01100_서식로더.xfdl 100 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SSMMR01100" position="absolute 0 0 597 739" titletext="SSMMR01100" oninit="SSMMR01100_oninit" onload="SSMMR01100_onload" ontimer="SSMMR01100_ontimer" onclose="lf_getEspiseq">
  5. <Layouts>
  6. <Layout>
  7. <Div id="grup_btn" style="border:0 none #c8c8c8ff ;" positionstep="0" anchor="left right bottom" position="absolute 0 711 596 737" positiontype="position" visible="true">
  8. <Layouts>
  9. <Layout>
  10. <Button id="btn_app" taborder="2" text="신청" class="btn4" position="absolute 535 5 591 25" anchor="top right" onclick="grup_btn_btn_app_onclick" visible="false" btnInfo="정정기록관리(신청)" orgPosition="absolute 535 5 591 25" tempPosition="absolute 417 5 533 25"/>
  11. <Button position="absolute 417 5 533 25" id="btn_signsave" class="btn4" text="인증[확정]저장" onclick="grup_btn_btn_signsave_onclick" anchor="top right"/>
  12. <Button position="absolute 335 5 415 25" id="btn_tmpsave" class="btn4" text="임시저장" onclick="grup_btn_btn_tmpsave_onclick" anchor="top right" enable="false"/>
  13. <Button position="absolute 535 5 591 25" id="btn_del" class="btn4" text="삭제" onclick="grup_btn_btn_del_onclick" anchor="top right"/>
  14. <Button position="absolute 174 5 230 25" id="btn_cncl" class="btn4" visible="false" text="취소" onclick="grup_btn_btn_cncl_onclick" anchor="top right"/>
  15. <Button position="absolute 114 5 170 25" id="btn_cnfm" class="btn4" visible="false" text="확인" onclick="grup_btn_btn_cnfm_onclick" anchor="top right"/>
  16. <Button text="조회시간 " class="caption" position="absolute 2 3 77 20" id="cap_loadtime" visible="false" ondblclick="grup_btn_cap_loadtime_ondblclick" anchor="top right"/>
  17. <Button text="1" class="caption" position="absolute 68 5 80 23" id="caption1" visible="false" style="background:#ffcc99ff;" ondblclick="grup_btn_caption1_ondblclick" anchor="top right"/>
  18. <Button text="2" class="caption" position="absolute 79 5 91 23" id="caption2" visible="false" style="background:#99ccffff;" ondblclick="grup_btn_caption2_ondblclick" anchor="top right"/>
  19. <CheckBox position="absolute 94 7 120 20" id="checkbox1" visible="false" text="_" truevalue="Y" falsevalue="N" anchor="top right"/>
  20. <Shape position="absolute 0 0 595 6" linetype="horizontal" id="line1" class="line_3" anchor="left top right" visible="false"/>
  21. <Button position="absolute 0 5 80 25" id="button2" class="btn4" visible="false" text="미리보기2" onclick="grup_btn_button2_onclick" anchor="top right"/>
  22. <Button position="absolute 65 5 133 25" id="btn_init" class="btn4" text="초기화" onclick="grup_btn_btn_init_onclick" anchor="top right"/>
  23. <Button position="absolute 135 5 215 25" id="btn_preview" class="btn4" text="미리보기" onclick="grup_btn_btn_preview_onclick" anchor="top right"/>
  24. <Button position="absolute 0 5 56 25" id="btn_print" class="btn4" visible="false" text="출력" onclick="grup_btn_btn_print_onclick" anchor="left top"/>
  25. <Button position="absolute 217 5 333 25" id="btn_signsaveasnew" class="btn4" text="새이름으로저장" onclick="grup_btn_btn_signsaveasnew_onclick" anchor="top right"/>
  26. <Button position="absolute 375 5 491 25" id="btn_cosign" class="btn4" visible="false" text="STAFF SIGN" onclick="grup_btn_btn_cosign_onclick" anchor="top right"/>
  27. <Button position="absolute 255 5 335 25" id="btn_resend" class="btn4" visible="false" text="반려/수정" onclick="grup_btn_btn_resend_onclick" anchor="top right" tooltiptext="인증된 Staff sign을 되돌릴 수 있습니다."/>
  28. <Button id="btn_reload" taborder="1" text="Reload" class="btn4" position="absolute 0 5 63 25" anchor="left top" onclick="grup_btn_btn_reload_onclick" style="font:arial,8,bold;" visible="false"/>
  29. <Static id="stt_notice_3" wordwrap="none" onclick="stt_notice_1_onclick" class="sta_LoginNoticetit_bg" visible="false" position="absolute 0 5 362 25" anchor="left top right" style="color:white;padding:1 6 0 6;font:Dotum,8,bold;"/>
  30. <Static id="stt_notice_1" wordwrap="none" onclick="stt_notice_1_onclick" position="absolute 0 5 362 25" anchor="left top right" style="color:white;padding:1 6 0 6;font:Dotum,8,bold;" visible="false"/>
  31. </Layout>
  32. </Layouts>
  33. </Div>
  34. <Div position="absolute 0 0 596 25" id="grup_titl" anchor="left top right" visible="true">
  35. <Layouts>
  36. <Layout>
  37. <Shape position="absolute 0 23 595 25" linetype="horizontal" id="line2" class="line_3" anchor="left top right"/>
  38. <Calendar position="absolute 310 2 396 21" id="ipt_formrecdd" class="input_default" mask="yyyy-mm-dd" onchanged="grup_titl_ipt_formrecdd_onchanged" oneditclick="grup_titl_ipt_formrecdd_oneditclick" anchor="top right"/>
  39. <MaskEdit position="absolute 395 2 432 21" id="ipt_formrectm" class="input_default" mask="##:##" type="string" displaynulltext=" " anchor="top right" onkillfocus="grup_titl_ipt_formrectm_onkillfocus"/>
  40. <Combo position="absolute 487 2 593 21" id="cbo_formrecextnnm" class="combo_search" innerdataset="@ds_init_formsubtitle_formsubtitlelist" datacolumn="formsubtitle" codecolumn="formsubtitle" anchor="top right" onitemchanged="grup_titl_cbo_formrecextnnm_onitemchanged" type="filter" ontextchange="grup_titl_cbo_formrecextnnm_ontextchange" onkillfocus="grup_titl_cbo_formrecextnnm_onkillfocus" onkeydown="grup_titl_cbo_formrecextnnm_onkeydown" oncloseup="grup_titl_cbo_formrecextnnm_oncloseup" usertext="" canitemchange="grup_titl_cbo_formrecextnnm_canitemchange"/>
  41. <Button position="absolute 433 2 486 21" id="button10" class="btn2" text="부제목" onclick="grup_titl_button10_onclick" anchor="top right"/>
  42. <Static text="서식명칭" position="absolute 1 3 231 19" id="cap_formnm" class="tit_2" anchor="left top right"/>
  43. <Button id="Button00" taborder="1" text="기준일자" position="absolute 238 1 308 21" style="background:lightcyan;border:1 solid lightskyblue #effcfbff;color:black;font:dotum,9;" ondblclick="grup_titl_Button00_ondblclick" anchor="top right"/>
  44. </Layout>
  45. </Layouts>
  46. </Div>
  47. <Div position="absolute 601 55 1196 690" id="ivw_fst" style="background:cadetblue;border:0 solid #c0c0c0ff ;" anchor="all" visible="false">
  48. <Layouts>
  49. <Layout width="595" height="635"/>
  50. </Layouts>
  51. </Div>
  52. <Static id="Static01" class="sta_DATD_box" position="absolute 0 25 596 710" anchor="all"/>
  53. <Div id="ivw_base" taborder="1" position="absolute 0 25 596 710" anchor="all" positionstep="0" scrollbars="autovert"/>
  54. <Grid id="grd_recitem" taborder="2" binddataset="ds_data_recitem" useinputpanel="false" position="absolute 604 528 1174 693" visible="false" anchor="bottom">
  55. <Formats>
  56. <Format id="default">
  57. <Columns>
  58. <Column size="100"/>
  59. <Column size="100"/>
  60. <Column size="100"/>
  61. <Column size="100"/>
  62. <Column size="100"/>
  63. <Column size="100"/>
  64. <Column size="100"/>
  65. <Column size="100"/>
  66. <Column size="100"/>
  67. <Column size="100"/>
  68. <Column size="100"/>
  69. <Column size="100"/>
  70. <Column size="100"/>
  71. <Column size="100"/>
  72. <Column size="100"/>
  73. <Column size="100"/>
  74. <Column size="100"/>
  75. <Column size="100"/>
  76. <Column size="100"/>
  77. <Column size="100"/>
  78. <Column size="100"/>
  79. <Column size="100"/>
  80. <Column size="100"/>
  81. <Column size="100"/>
  82. <Column size="100"/>
  83. </Columns>
  84. <Rows>
  85. <Row size="24" band="head"/>
  86. <Row size="24"/>
  87. </Rows>
  88. <Band id="head">
  89. <Cell text="caption1"/>
  90. <Cell col="1" text="caption2"/>
  91. <Cell col="2" text="caption3"/>
  92. <Cell col="3"/>
  93. <Cell col="4"/>
  94. <Cell col="5"/>
  95. <Cell col="6"/>
  96. <Cell col="7"/>
  97. <Cell col="8"/>
  98. <Cell col="9"/>
  99. <Cell col="10"/>
  100. <Cell col="11"/>
  101. <Cell col="12"/>
  102. <Cell col="13"/>
  103. <Cell col="14"/>
  104. <Cell col="15"/>
  105. <Cell col="16"/>
  106. <Cell col="17"/>
  107. <Cell col="18"/>
  108. <Cell col="19"/>
  109. <Cell col="20"/>
  110. <Cell col="21"/>
  111. <Cell col="22"/>
  112. <Cell col="23"/>
  113. <Cell col="24"/>
  114. </Band>
  115. <Band id="body">
  116. <Cell text="bind:instcd"/>
  117. <Cell col="1" text="bind:rechistseq"/>
  118. <Cell col="2" text="bind:recitemno"/>
  119. <Cell col="3" text="bind:fstlevlitemcd"/>
  120. <Cell col="4" text="bind:formcd"/>
  121. <Cell col="5" text="bind:formdegnseq"/>
  122. <Cell col="6" text="bind:degnitemno"/>
  123. <Cell col="7" text="bind:degnitemcd"/>
  124. <Cell col="8" text="bind:degnitemlevlcd"/>
  125. <Cell col="9" text="bind:rectermcd"/>
  126. <Cell col="10" text="bind:rectermnm"/>
  127. <Cell col="11" text="bind:recrefcd"/>
  128. <Cell col="12" text="bind:recitemnm"/>
  129. <Cell col="13" text="bind:reccnts"/>
  130. <Cell col="14" text="bind:srcimge"/>
  131. <Cell col="15" text="bind:recimge"/>
  132. <Cell col="16" text="bind:rowno"/>
  133. <Cell col="17" text="bind:colno"/>
  134. <Cell col="18" text="bind:degnunitcd"/>
  135. <Cell col="19" text="bind:rectermflag"/>
  136. <Cell col="20" text="bind:extdegnitemlevlcd"/>
  137. <Cell col="21" text="bind:degnitemkind"/>
  138. <Cell col="22" text="bind:degnitemnm"/>
  139. <Cell col="23" text="bind:degnitemlevlno"/>
  140. <Cell col="24" text="bind:supdegnitemno"/>
  141. </Band>
  142. </Format>
  143. </Formats>
  144. </Grid>
  145. </Layout>
  146. </Layouts>
  147. <Objects>
  148. <Dataset id="ds_init_formsubtitle_formsubtitlelist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  149. <ColumnInfo>
  150. <Column id="formsubtitle" type="STRING"/>
  151. <Column id="formsubtitle" type="STRING"/>
  152. </ColumnInfo>
  153. </Dataset>
  154. <Dataset id="ds_emrtemp" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  155. <ColumnInfo>
  156. <Column id="sysformxrwyn" type="STRING" size="256"/>
  157. </ColumnInfo>
  158. <Rows>
  159. <Row>
  160. <Col id="sysformxrwyn">Y</Col>
  161. </Row>
  162. </Rows>
  163. </Dataset>
  164. <Dataset id="ds_data_formrec" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  165. <ColumnInfo>
  166. <Column id="status" type="STRING" size="256" sumtext="상태"/>
  167. <Column id="instcd" type="STRING" size="256" sumtext="기관코드"/>
  168. <Column id="formrecseq" type="BIGDECIMAL" size="256" sumtext="서식기록순번"/>
  169. <Column id="pid" type="STRING" size="256" sumtext="등록번호"/>
  170. <Column id="orddd" type="STRING" size="256" sumtext="진료일자"/>
  171. <Column id="cretno" type="INT" size="256" sumtext="생성번호"/>
  172. <Column id="chosflag" type="STRING" size="256" sumtext="내원구분"/>
  173. <Column id="orddeptcd" type="STRING" size="256" sumtext="접수과"/>
  174. <Column id="orddrid" type="STRING" size="256" sumtext="접수의사"/>
  175. <Column id="formrecdeptcd" type="STRING" size="256" sumtext="서식기록부서코드"/>
  176. <Column id="formrecdrid" type="STRING" size="256" sumtext="서식기록의사ID"/>
  177. <Column id="formrecuserid" type="STRING" size="256" sumtext="서식기록사용자ID"/>
  178. <Column id="lastrechistseq" type="BIGDECIMAL" size="256" sumtext="최종기록이력순번"/>
  179. <Column id="refsaveyn" type="STRING" size="256" sumtext="참조저장여부"/>
  180. <Column id="recreflockyn" type="STRING" size="256" sumtext="기록조회잠김여부"/>
  181. <Column id="delyn" type="STRING" size="256" sumtext="삭제여부"/>
  182. <Column id="valiyn" type="STRING" size="256" sumtext="유효여부"/>
  183. <Column id="formcd" type="STRING" size="256" sumtext="서식코드"/>
  184. <Column id="formfromdt" type="STRING" size="256" sumtext="서식시작일시"/>
  185. <Column id="formdegnseq" type="BIGDECIMAL" size="256" sumtext="서식디자인순번"/>
  186. <Column id="fstrgstrid" type="STRING" size="256" sumtext="최초등록자ID"/>
  187. <Column id="fstrgstdt" type="STRING" size="256" sumtext="최초등록일시"/>
  188. <Column id="lastupdtrid" type="STRING" size="256" sumtext="최종등록자ID"/>
  189. <Column id="lastupdtdt" type="STRING" size="256" sumtext="최종등록일시"/>
  190. <Column id="rechistseq" type="BIGDECIMAL" size="256" sumtext="기록이력순번"/>
  191. <Column id="formrecdt" type="STRING" size="256" sumtext="서식기록일시"/>
  192. <Column id="formrecdd" type="STRING" size="256" sumtext="서식기록일"/>
  193. <Column id="formrechm" type="STRING" size="256" sumtext="서식기록시간"/>
  194. <Column id="formrecextnnm" type="STRING" size="256" sumtext="서식부제목"/>
  195. <Column id="espiyn" type="STRING" size="256" sumtext="인증저장여부"/>
  196. <Column id="espiseq" type="BIGDECIMAL" size="256" sumtext="전자서명순번"/>
  197. <Column id="srcformcd" type="STRING" size="256" sumtext="서식기록일시"/>
  198. <Column id="formprogflag" type="STRING" size="256" sumtext="서식프로그램구분"/>
  199. <Column id="formprognm" type="STRING" size="256" sumtext="프로그램서식명"/>
  200. <Column id="sysformrecdt" type="STRING" size="256" sumtext="시스템서식기록일시"/>
  201. <Column id="foctsnwyn" type="STRING" size="256" sumtext="예진기록지여부"/>
  202. <Column id="cnststat" type="STRING" size="256" sumtext="컨설트상태"/>
  203. <Column id="oprsrvno" type="BIGDECIMAL" size="256" sumtext="수술예약번호"/>
  204. <Column id="profcertseq" type="INT" size="256" sumtext="증명순번"/>
  205. <Column id="cosign" type="STRING" size="256" sumtext="코사인여부"/>
  206. <Column id="cosignid" type="STRING" size="256" sumtext="코사인사용자"/>
  207. <Column id="cosigndt" type="STRING" size="256" sumtext="코사인일시"/>
  208. <Column id="recvdeptcd" type="STRING" size="256" sumtext="회신부서"/>
  209. <Column id="recvuserid" type="STRING" size="256" sumtext="회신의사"/>
  210. <Column id="fstktas" type="STRING" size="256" sumtext="첫번째ktas전송여부"/>
  211. <Column id="wardcd" type="STRING" size="256"/>
  212. </ColumnInfo>
  213. <Rows>
  214. <Row>
  215. <Col id="formrecextnnm"/>
  216. <Col id="formrecdd"/>
  217. <Col id="formrechm"/>
  218. <Col id="pid"/>
  219. <Col id="formrecseq"/>
  220. </Row>
  221. </Rows>
  222. </Dataset>
  223. <Dataset id="ds_data_recitem" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  224. <ColumnInfo>
  225. <Column id="instcd" type="STRING" size="256" sumtext="기관코드"/>
  226. <Column id="rechistseq" type="BIGDECIMAL" size="256" sumtext="기록이력순번"/>
  227. <Column id="recitemno" type="INT" size="256" sumtext="기록항목번호"/>
  228. <Column id="fstlevlitemcd" type="STRING" size="256" sumtext="1레벨항목코드"/>
  229. <Column id="formcd" type="STRING" size="256" sumtext="서식코드"/>
  230. <Column id="formdegnseq" type="BIGDECIMAL" size="256" sumtext="서식디자인순번"/>
  231. <Column id="degnitemno" type="INT" size="256" sumtext="디자인항목번호"/>
  232. <Column id="degnitemcd" type="STRING" size="256" sumtext="디자인항목코드"/>
  233. <Column id="degnitemkind" type="STRING" size="256" sumtext="디자인항목유형"/>
  234. <Column id="degnitemlevlno" type="STRING" size="256" sumtext="디자인항목레벨번호"/>
  235. <Column id="degnitemnm" type="STRING" size="256" sumtext="디자인항목명"/>
  236. <Column id="degnitemlevlcd" type="STRING" size="256" sumtext="디자인항목레벨코드"/>
  237. <Column id="rectermcd" type="STRING" size="256" sumtext="기록용어코드"/>
  238. <Column id="rectermnm" type="STRING" size="256" sumtext="기록용어이름"/>
  239. <Column id="recitemcd" type="STRING" size="256" sumtext="기록항목코드"/>
  240. <Column id="recrefcd" type="STRING" size="256" sumtext="수술, 진단, 주호소 코드"/>
  241. <Column id="recitemnm" type="STRING" size="256" sumtext="수술, 진단, 주호소 명"/>
  242. <Column id="reccnts" type="STRING" size="256" sumtext="기록내용"/>
  243. <Column id="unitnm" type="STRING" size="256" sumtext="단위명"/>
  244. <Column id="recimge" type="BLOB" size="256" sumtext="기록이미지"/>
  245. <Column id="srcimge" type="BLOB" size="256" sumtext="원본이미지"/>
  246. <Column id="rowno" type="STRING" size="256" sumtext="그리드데이타 행번호"/>
  247. <Column id="colno" type="STRING" size="256" sumtext="그리드데이타 열번호"/>
  248. <Column id="supdegnitemno" type="INT" size="256" sumtext="상위디자인항목번호"/>
  249. <Column id="extdegnitemlevlcd" type="STRING" size="256" sumtext="확장디자인항목레벨코드"/>
  250. <Column id="rectermflag" type="STRING" size="256" sumtext="기록용어코드구분"/>
  251. <Column id="degnunitcd" type="STRING" size="256" sumtext="단위코드"/>
  252. </ColumnInfo>
  253. </Dataset>
  254. <Dataset id="ds_main_vpaminfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  255. <Dataset id="ds_data_validinfo" firefirstcount="0" firenextcount="0" useclientlayout="true" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  256. <ColumnInfo>
  257. <Column id="formrecseq" type="BIGDECIMAL" size="256" sumtext="서식기록코드"/>
  258. <Column id="formcd" type="STRING" size="256" sumtext="서식코드"/>
  259. <Column id="resultCode" type="STRING" size="256" sumtext=""/>
  260. <Column id="resultMsg" type="STRING" size="256" sumtext=""/>
  261. <Column id="valiflag" type="STRING" size="256" sumtext=""/>
  262. </ColumnInfo>
  263. </Dataset>
  264. <Dataset id="ds_data_formmast" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  265. <ColumnInfo>
  266. <Column id="formcd" type="STRING" size="256" sumtext="서식코드"/>
  267. <Column id="formdegnseq" type="INT" size="256" sumtext="서식디자인순번"/>
  268. <Column id="formfromdt" type="STRING" size="256" sumtext="서식시작일시"/>
  269. <Column id="formtodt" type="STRING" size="256" sumtext="서식종료일시"/>
  270. <Column id="formclsseq" type="INT" size="256" sumtext="서식분류일련번호"/>
  271. <Column id="formnm" type="STRING" size="256" sumtext="서식명칭"/>
  272. <Column id="formchosflag" type="STRING" size="256" sumtext="서식내원구분"/>
  273. <Column id="formprogflag" type="STRING" size="256" sumtext="서식프로그램구분"/>
  274. <Column id="formprognm" type="STRING" size="256" sumtext="서식프로그램명"/>
  275. <Column id="formkind" type="STRING" size="256" sumtext="서식유형"/>
  276. <Column id="formuseflag" type="STRING" size="256" sumtext="서식사용구분"/>
  277. <Column id="formdeptcd" type="STRING" size="256" sumtext="서식부서코드"/>
  278. <Column id="formdeptnm" type="STRING" size="256" sumtext="서식부서"/>
  279. <Column id="formuserid" type="STRING" size="256" sumtext="서식사용자ID"/>
  280. <Column id="formusernm" type="STRING" size="256" sumtext="서식사용자"/>
  281. <Column id="degnappyn" type="STRING" size="256" sumtext=""/>
  282. <Column id="formextnnm" type="STRING" size="256" sumtext="서식확장명칭"/>
  283. <Column id="userdegnflag" type="STRING" size="256" sumtext=""/>
  284. <Column id="srcformcd" type="STRING" size="256" sumtext="소스서식코드"/>
  285. <Column id="recreflockappyn" type="STRING" size="256" sumtext=""/>
  286. <Column id="sortno" type="INT" size="256" sumtext="조회번호"/>
  287. <Column id="formcnts" type="STRING" size="256" sumtext="서식내용"/>
  288. <Column id="instcd" type="STRING" size="256" sumtext="기관코드"/>
  289. <Column id="fstrgstrid" type="STRING" size="256" sumtext="최초등록자"/>
  290. <Column id="fstrgstrnm" type="STRING" size="256" sumtext="최초등록자"/>
  291. <Column id="fstrgstdt" type="STRING" size="256" sumtext="최초등록일시"/>
  292. <Column id="lastupdtrid" type="STRING" size="256" sumtext="최종등록자"/>
  293. <Column id="lastupdtrnm" type="STRING" size="256" sumtext="최종등록자"/>
  294. <Column id="lastupdtdt" type="STRING" size="256" sumtext="최종등록일시"/>
  295. <Column id="formdegnseq" type="INT" size="256" sumtext=""/>
  296. <Column id="formdegnfromdt" type="STRING" size="256" sumtext="서식디자인시작일시"/>
  297. <Column id="formdegntodt" type="STRING" size="256" sumtext="서식디자인종료일시"/>
  298. <Column id="formnminfo" type="STRING" size="256" sumtext="서식명칭정보"/>
  299. <Column id="formxrwyn" type="STRING" size="256" sumtext=""/>
  300. <Column id="reclistviewyn" type="STRING" size="256" sumtext="기록목록조회여부"/>
  301. <Column id="formprntnm" type="STRING" size="256" sumtext="서식출력명"/>
  302. <Column id="langflag" type="STRING" size="256" sumtext="서식언어구분"/>
  303. <Column id="foctsnwyn" type="STRING" size="256" sumtext="예진서식구분"/>
  304. <Column id="mainyn" type="STRING" size="256" sumtext="메인서식여부"/>
  305. <Column id="degncmpltyn" type="STRING" size="256" sumtext="디자인완료여부"/>
  306. <Column id="updtfreeyn" type="STRING" size="256" sumtext="기록권한해제여부"/>
  307. <Column id="cnstformyn" type="STRING" size="256" sumtext="컨설트 부분서식여부"/>
  308. </ColumnInfo>
  309. <Rows>
  310. <Row>
  311. <Col id="formnminfo">서식명칭</Col>
  312. </Row>
  313. </Rows>
  314. </Dataset>
  315. <Dataset id="ds_data_formdegn" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  316. <ColumnInfo>
  317. <Column id="formdegnseq" type="INT" size="256" sumtext="서식디자인순번"/>
  318. <Column id="degnitemno" type="INT" size="256" sumtext="디자인항목번호"/>
  319. <Column id="degnitemkind" type="STRING" size="256" sumtext="디자인항목유형"/>
  320. <Column id="degnitemcd" type="STRING" size="256" sumtext="디자인항목코드"/>
  321. <Column id="termcd" type="STRING" size="256" sumtext="용어코드"/>
  322. <Column id="itemnm" type="STRING" size="256" sumtext="디자인항목명"/>
  323. <Column id="degnitemnm" type="STRING" size="256" sumtext="디자인항목명"/>
  324. <Column id="supdegnitemno" type="INT" size="256" sumtext="상위항목번호"/>
  325. <Column id="supdegnitemcd" type="STRING" size="256" sumtext="상위항목코드"/>
  326. <Column id="degnitemlevlno" type="INT" size="256" sumtext="디자인항목계층번호"/>
  327. <Column id="degnitemlevlcd" type="STRING" size="256" sumtext="디자인항목계층코드"/>
  328. <Column id="valgrupcd" type="STRING" size="256" sumtext="밸류리스트코드"/>
  329. <Column id="valgrupnm" type="STRING" size="256" sumtext="밸류리스트명"/>
  330. <Column id="unitcd" type="STRING" size="256" sumtext="단위코드"/>
  331. <Column id="unitnm" type="STRING" size="256" sumtext="단위명칭"/>
  332. <Column id="degnitemdefltval" type="STRING" size="256" sumtext="디자인항목기본값"/>
  333. <Column id="degnitempnts" type="STRING" size="256" sumtext="디자인항목점수"/>
  334. <Column id="degncntrviewflag" type="STRING" size="256" sumtext="디자인컨트롤보기구분"/>
  335. <Column id="userdegnyn" type="STRING" size="256" sumtext="사용자디자인여부"/>
  336. <Column id="itemuseflag" type="STRING" size="256" sumtext="항목사용구분"/>
  337. <Column id="degnxval" type="INT" size="256" sumtext="디자인항목X좌표값"/>
  338. <Column id="degnyval" type="INT" size="256" sumtext="디자인항목Y좌표값"/>
  339. <Column id="degnrowno" type="INT" size="256" sumtext="디자인행번호"/>
  340. <Column id="essndegnyn" type="STRING" size="256" sumtext="필수디자인여부"/>
  341. <Column id="essnrecyn" type="STRING" size="256" sumtext="필수기록여부"/>
  342. <Column id="degnattrval" type="STRING" size="256" sumtext="디자인속성값"/>
  343. <Column id="itemattrval" type="STRING" size="256" sumtext="항목속성값"/>
  344. <Column id="instcd" type="STRING" size="256" sumtext="기관코드"/>
  345. <Column id="comuseyn" type="STRING" size="256" sumtext="상용구사용여부"/>
  346. <Column id="fstrgstrid" type="STRING" size="256" sumtext="최초등록자"/>
  347. <Column id="fstrgstrnm" type="STRING" size="256" sumtext="최초등록자"/>
  348. <Column id="fstrgstdt" type="STRING" size="256" sumtext="최초등록일시"/>
  349. <Column id="lastupdtrid" type="STRING" size="256" sumtext="최종등록자"/>
  350. <Column id="lastupdtrnm" type="STRING" size="256" sumtext="최종등록자"/>
  351. <Column id="lastupdtdt" type="STRING" size="256" sumtext="최종등록일시"/>
  352. </ColumnInfo>
  353. </Dataset>
  354. <Dataset id="ds_data_unitformmast" firefirstcount="0" firenextcount="0" useclientlayout="true" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  355. <ColumnInfo>
  356. <Column id="orgdegnitemno" type="INT" size="256" sumtext="상위디자인항목번호"/>
  357. <Column id="orgdegnitemcd" type="STRING" size="256" sumtext="상위디자인항목코드"/>
  358. <Column id="orgsupdegnitemno" type="INT" size="256" sumtext="상위항목번호"/>
  359. <Column id="orgsupdegnitemcd" type="STRING" size="256" sumtext="상위항목코드"/>
  360. <Column id="formcd" type="STRING" size="256" sumtext="서식코드"/>
  361. <Column id="formdegnseq" type="STRING" size="256" sumtext="서식디자인순번"/>
  362. <Column id="formfromdt" type="STRING" size="256" sumtext="서식시작일시"/>
  363. <Column id="formtodt" type="STRING" size="256" sumtext="서식종료일시"/>
  364. <Column id="formclsseq" type="INT" size="256" sumtext="서식분류일련번호"/>
  365. <Column id="formnm" type="STRING" size="256" sumtext="서식명칭"/>
  366. <Column id="formchosflag" type="STRING" size="256" sumtext="서식내원구분"/>
  367. <Column id="formprogflag" type="STRING" size="256" sumtext="서식프로그램구분"/>
  368. <Column id="formprognm" type="STRING" size="256" sumtext="서식프로그램명"/>
  369. <Column id="formkind" type="STRING" size="256" sumtext="서식유형"/>
  370. <Column id="formuseflag" type="STRING" size="256" sumtext="서식사용구분"/>
  371. <Column id="formdeptcd" type="STRING" size="256" sumtext="서식부서코드"/>
  372. <Column id="formdeptnm" type="STRING" size="256" sumtext="서식부서"/>
  373. <Column id="formuserid" type="STRING" size="256" sumtext="서식사용자ID"/>
  374. <Column id="formusernm" type="STRING" size="256" sumtext="서식사용자"/>
  375. <Column id="degnappyn" type="STRING" size="256" sumtext="디자인적용여부"/>
  376. <Column id="formextnnm" type="STRING" size="256" sumtext="서식확장명칭"/>
  377. <Column id="userdegnflag" type="STRING" size="256" sumtext="사용자디자인구분"/>
  378. <Column id="srcformcd" type="STRING" size="256" sumtext="소스서식코드"/>
  379. <Column id="recreflockappyn" type="STRING" size="256" sumtext="기록참조잠김적용여부"/>
  380. <Column id="sortno" type="INT" size="256" sumtext="조회번호"/>
  381. <Column id="formcnts" type="STRING" size="256" sumtext="서식내용"/>
  382. <Column id="instcd" type="STRING" size="256" sumtext="기관코드"/>
  383. <Column id="fstrgstrid" type="STRING" size="256" sumtext="최초등록자"/>
  384. <Column id="fstrgstrnm" type="STRING" size="256" sumtext="최초등록자"/>
  385. <Column id="fstrgstdt" type="STRING" size="256" sumtext="최초등록일시"/>
  386. <Column id="lastupdtrid" type="STRING" size="256" sumtext="최종등록자"/>
  387. <Column id="lastupdtrnm" type="STRING" size="256" sumtext="최종등록자"/>
  388. <Column id="lastupdtdt" type="STRING" size="256" sumtext="최종등록일시"/>
  389. <Column id="formdegnseq" type="INT" size="256" sumtext="서식디자인순번"/>
  390. <Column id="formdegnfromdt" type="STRING" size="256" sumtext="서식디자인시작일시"/>
  391. <Column id="formdegntodt" type="STRING" size="256" sumtext="서식디자인종료일시"/>
  392. <Column id="formxfdluseyn" type="STRING" size="256" sumtext="서식디자인사용유무"/>
  393. <Column id="formxrwyn" type="STRING" size="256" sumtext=""/>
  394. <Column id="loaded" type="STRING" size="256" sumtext=""/>
  395. </ColumnInfo>
  396. </Dataset>
  397. <Dataset id="ds_data_unitformdegn" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  398. <ColumnInfo>
  399. <Column id="orgdegnitemno" type="INT" size="256" sumtext="상위디자인항목번호"/>
  400. <Column id="orgdegnitemcd" type="STRING" size="256" sumtext="상위디자인항목코드"/>
  401. <Column id="orgsupdegnitemno" type="INT" size="256" sumtext="상위항목번호"/>
  402. <Column id="orgsupdegnitemcd" type="STRING" size="256" sumtext="상위항목코드"/>
  403. <Column id="formdegnseq" type="INT" size="256" sumtext="서식디자인순번"/>
  404. <Column id="degnitemno" type="INT" size="256" sumtext="디자인항목번호"/>
  405. <Column id="degnitemkind" type="STRING" size="256" sumtext="디자인항목유형"/>
  406. <Column id="degnitemcd" type="STRING" size="256" sumtext="디자인항목코드"/>
  407. <Column id="termcd" type="STRING" size="256" sumtext="용어코드"/>
  408. <Column id="degnitemnm" type="STRING" size="256" sumtext="디자인항목명"/>
  409. <Column id="supdegnitemno" type="INT" size="256" sumtext="상위항목번호"/>
  410. <Column id="supdegnitemcd" type="STRING" size="256" sumtext="상위항목코드"/>
  411. <Column id="degnitemlevlno" type="INT" size="256" sumtext="디자인항목계층번호"/>
  412. <Column id="degnitemlevlcd" type="STRING" size="256" sumtext="디자인항목계층코드"/>
  413. <Column id="valgrupcd" type="STRING" size="256" sumtext="밸류리스트코드"/>
  414. <Column id="valgrupnm" type="STRING" size="256" sumtext="밸류리스트명"/>
  415. <Column id="unitcd" type="STRING" size="256" sumtext="단위코드"/>
  416. <Column id="unitnm" type="STRING" size="256" sumtext="단위명칭"/>
  417. <Column id="degnitemdefltval" type="STRING" size="256" sumtext="디자인항목기본값"/>
  418. <Column id="degncntrviewflag" type="STRING" size="256" sumtext="디자인컨트롤보기구분"/>
  419. <Column id="userdegnyn" type="STRING" size="256" sumtext="사용자디자인여부"/>
  420. <Column id="itemuseflag" type="STRING" size="256" sumtext="항목사용구분"/>
  421. <Column id="degnxval" type="INT" size="256" sumtext="디자인항목X좌표값"/>
  422. <Column id="degnyval" type="INT" size="256" sumtext="디자인항목Y좌표값"/>
  423. <Column id="degnrowno" type="INT" size="256" sumtext="디자인행번호"/>
  424. <Column id="essndegnyn" type="STRING" size="256" sumtext="필수디자인여부"/>
  425. <Column id="essnrecyn" type="STRING" size="256" sumtext="필수기록여부"/>
  426. <Column id="degnattrval" type="STRING" size="256" sumtext="디자인속성값"/>
  427. <Column id="itemattrval" type="STRING" size="256" sumtext="항목속성값"/>
  428. <Column id="instcd" type="STRING" size="256" sumtext="기관코드"/>
  429. <Column id="comuseyn" type="STRING" size="256" sumtext="상용구사용여부"/>
  430. <Column id="fstrgstrid" type="STRING" size="256" sumtext="최초등록자"/>
  431. <Column id="fstrgstrnm" type="STRING" size="256" sumtext="최초등록자"/>
  432. <Column id="fstrgstdt" type="STRING" size="256" sumtext="최초등록일시"/>
  433. <Column id="lastupdtrid" type="STRING" size="256" sumtext="최종등록자"/>
  434. <Column id="lastupdtrnm" type="STRING" size="256" sumtext="최종등록자"/>
  435. <Column id="lastupdtdt" type="STRING" size="256" sumtext="최종등록일시"/>
  436. </ColumnInfo>
  437. </Dataset>
  438. <Dataset id="ds_data_vallist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  439. <ColumnInfo>
  440. <Column id="grupcd" type="STRING" size="256" sumtext="그룹코드"/>
  441. <Column id="valcd" type="STRING" size="256" sumtext="밸류리스트코드"/>
  442. <Column id="valitemnm" type="STRING" size="256" sumtext="밸류리스트항목확장이름"/>
  443. <Column id="valitempnt" type="DECIMAL" size="256" sumtext="밸류리스트항목점수"/>
  444. </ColumnInfo>
  445. </Dataset>
  446. <Dataset id="ds_data_imgelist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  447. <ColumnInfo>
  448. <Column id="imgecd" type="STRING" size="256" sumtext="이미지코드"/>
  449. <Column id="imgenm" type="STRING" size="256" sumtext="이미지명"/>
  450. <Column id="imgedata" type="BLOB" size="256" sumtext="이미지데이터"/>
  451. </ColumnInfo>
  452. </Dataset>
  453. <Dataset id="ds_data_extnformlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  454. <ColumnInfo>
  455. <Column id="supdegnitemcd" type="STRING" size="256" sumtext="상위항목코드"/>
  456. <Column id="formcd" type="STRING" size="256" sumtext="서식코드"/>
  457. <Column id="srcformcd" type="STRING" size="256" sumtext="소스서식코드"/>
  458. <Column id="formdegnseq" type="INT" size="256" sumtext="서식디자인순번"/>
  459. <Column id="formnm" type="STRING" size="256" sumtext="서식명칭"/>
  460. <Column id="formextnnm" type="STRING" size="256" sumtext="서식확장명칭"/>
  461. <Column id="formnminfo" type="STRING" size="256" sumtext="서식확장명칭"/>
  462. <Column id="choiformdegnseq" type="INT" size="256" sumtext="선택서식디자인순번"/>
  463. </ColumnInfo>
  464. </Dataset>
  465. <Dataset id="ds_data_readonlylist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  466. <ColumnInfo>
  467. <Column id="readonlyyn" type="STRING" size="256" sumtext="공유해제여부"/>
  468. <Column id="readonlystatdt" type="STRING" size="256" sumtext="읽기전용등록일시"/>
  469. <Column id="readonlyuserid" type="STRING" size="256" sumtext="읽기전용등록사용자ID"/>
  470. <Column id="readonlyusernm" type="STRING" size="256" sumtext="읽기전용등록사용자명"/>
  471. </ColumnInfo>
  472. </Dataset>
  473. <Dataset id="ds_data_programdesignformlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  474. <ColumnInfo>
  475. <Column id="formcd" type="STRING" size="256" sumtext="작업중인서식코드"/>
  476. <Column id="formnm" type="STRING" size="256" sumtext="작업중인서식이름"/>
  477. <Column id="message" type="STRING" size="256" sumtext="작업중인서식에관한 Message"/>
  478. </ColumnInfo>
  479. </Dataset>
  480. <Dataset id="ds_data_paminfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  481. <Dataset id="ds_acmlsend" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  482. <ColumnInfo>
  483. <Column id="pid" type="STRING" size="256"/>
  484. <Column id="formcd" type="STRING" size="256"/>
  485. </ColumnInfo>
  486. <Rows>
  487. <Row>
  488. <Col id="pid"/>
  489. <Col id="formcd"/>
  490. </Row>
  491. </Rows>
  492. </Dataset>
  493. <Dataset id="ds_acmltmp_recinfo_recitem" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  494. <ColumnInfo>
  495. <Column id="instcd" type="STRING" size="256" sumtext="기관코드"/>
  496. <Column id="rechistseq" type="BIGDECIMAL" size="256" sumtext="기록이력순번"/>
  497. <Column id="recitemno" type="INT" size="256" sumtext="기록항목번호"/>
  498. <Column id="fstlevlitemcd" type="STRING" size="256" sumtext="1레벨항목코드"/>
  499. <Column id="formcd" type="STRING" size="256" sumtext="서식코드"/>
  500. <Column id="formdegnseq" type="BIGDECIMAL" size="256" sumtext="서식디자인순번"/>
  501. <Column id="degnitemno" type="INT" size="256" sumtext="디자인항목번호"/>
  502. <Column id="degnitemcd" type="STRING" size="256" sumtext="디자인항목코드"/>
  503. <Column id="degnitemlevlcd" type="STRING" size="256" sumtext="디자인항목레벨코드"/>
  504. <Column id="rectermcd" type="STRING" size="256" sumtext="기록용어코드"/>
  505. <Column id="rectermnm" type="STRING" size="256" sumtext="기록용어이름"/>
  506. <Column id="recrefcd" type="STRING" size="256" sumtext="수술, 진단, 주호소 코드"/>
  507. <Column id="recitemnm" type="STRING" size="256" sumtext="수술, 진단, 주호소 명"/>
  508. <Column id="reccnts" type="STRING" size="256" sumtext="기록내용"/>
  509. <Column id="recimge" type="BLOB" size="256" sumtext="기록이미지"/>
  510. <Column id="degnitemkind" type="STRING" size="256" sumtext="디자인항목유형"/>
  511. <Column id="degnitemnm" type="STRING" size="256" sumtext="디자인항목명"/>
  512. <Column id="degnitemlevlno" type="INT" size="256" sumtext="디자인항목계층번호"/>
  513. <Column id="rectermflag" type="STRING" size="256" sumtext="기록용어코드구분"/>
  514. <Column id="rowno" type="STRING" size="256" sumtext="그리드데이타 행번호"/>
  515. <Column id="colno" type="STRING" size="256" sumtext="그리드데이타 열번호"/>
  516. </ColumnInfo>
  517. </Dataset>
  518. <!--
  519. <Dataset id="ds_pamtmp_paminfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  520. -->
  521. <Dataset id="ds_profdgn_formhardcd" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  522. <Dataset id="ds_init_srcformcd" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  523. <Dataset id="ds_hidden_loader_ini" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  524. <Dataset id="ds_data_itemvalue" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  525. <Dataset id="ds_init_cnstmsgyn" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  526. <Dataset id="ds_init_savecross" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  527. <Dataset id="ds_temp_formdata" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  528. <Dataset id="ds_cond_syncreq" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  529. <ColumnInfo>
  530. <Column id="pid" type="STRING" size="255"/>
  531. <Column id="orddd" type="STRING" size="255"/>
  532. <Column id="orddrid" type="STRING" size="255"/>
  533. <Column id="orddeptcd" type="STRING" size="255"/>
  534. <Column id="chosflag" type="STRING" size="255"/>
  535. <Column id="ioflag" type="STRING" size="255"/>
  536. <Column id="cretno" type="STRING" size="255"/>
  537. <Column id="formcd" type="STRING" size="255"/>
  538. <Column id="formdegnseq" type="STRING" size="255"/>
  539. <Column id="merecyn" type="STRING" size="255"/>
  540. <Column id="status" type="STRING" size="255"/>
  541. <Column id="srcformcd" type="STRING" size="255"/>
  542. </ColumnInfo>
  543. </Dataset>
  544. <Dataset id="ds_data_acmldata" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  545. <ColumnInfo>
  546. <Column id="instcd" type="STRING" size="256"/>
  547. <Column id="rechistseq" type="STRING" size="256"/>
  548. <Column id="recitemno" type="STRING" size="256"/>
  549. <Column id="fstlevlitemcd" type="STRING" size="256"/>
  550. <Column id="formcd" type="STRING" size="256"/>
  551. <Column id="formdegnseq" type="STRING" size="256"/>
  552. <Column id="degnitemno" type="STRING" size="256"/>
  553. <Column id="degnitemcd" type="STRING" size="256"/>
  554. <Column id="degnitemkind" type="STRING" size="256"/>
  555. <Column id="degnitemlevlno" type="STRING" size="256"/>
  556. <Column id="degnitemnm" type="STRING" size="256"/>
  557. <Column id="degnitemlevlcd" type="STRING" size="256"/>
  558. <Column id="rectermcd" type="STRING" size="256"/>
  559. <Column id="rectermnm" type="STRING" size="256"/>
  560. <Column id="recrefcd" type="STRING" size="256"/>
  561. <Column id="recitemnm" type="STRING" size="256"/>
  562. <Column id="reccnts" type="STRING" size="256"/>
  563. <Column id="unitnm" type="STRING" size="256"/>
  564. <Column id="recimge" type="BLOB"/>
  565. <Column id="srcimge" type="BLOB"/>
  566. <Column id="rowno" type="STRING" size="256"/>
  567. <Column id="colno" type="STRING" size="256"/>
  568. <Column id="supdegnitemno" type="STRING" size="256"/>
  569. <Column id="extdegnitemlevlcd" type="STRING" size="256"/>
  570. <Column id="rectermflag" type="STRING" size="256"/>
  571. <Column id="degnunitcd" type="STRING" size="256"/>
  572. </ColumnInfo>
  573. </Dataset>
  574. <Dataset id="ds_init_scrollbars" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  575. <Dataset id="ds_init_recsaveyn" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  576. <Dataset id="ds_data_pamIn" firefirstcount="0" firenextcount="0" useclientlayout="true" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  577. <ColumnInfo>
  578. <Column id="pid" type="STRING" size="256" sumtext="등록번호"/>
  579. <Column id="indd" type="STRING" size="256" sumtext="입원일자"/>
  580. <Column id="cretno" type="STRING" size="256" sumtext="생성번호"/>
  581. <Column id="seqno" type="STRING" size="256" sumtext="일련번호"/>
  582. <Column id="instcd" type="STRING" size="256" sumtext="기관코드"/>
  583. <Column id="mskind" type="STRING" size="256" sumtext="주부유형"/>
  584. <Column id="histstat" type="STRING" size="256" sumtext="이력상태"/>
  585. <Column id="hospbrthyn" type="STRING" size="256" sumtext="본원출생여부"/>
  586. <Column id="rsrvinyn" type="STRING" size="256" sumtext="예약입원여부"/>
  587. <Column id="intm" type="STRING" size="256" sumtext="입원일시"/>
  588. <Column id="dschdd" type="STRING" size="256" sumtext="퇴원일자"/>
  589. <Column id="dschtm" type="STRING" size="256" sumtext="퇴원시간"/>
  590. <Column id="dschtype" type="STRING" size="256" sumtext="퇴원형태"/>
  591. <Column id="dethdt" type="STRING" size="256" sumtext="사망일시"/>
  592. <Column id="indschacptstat" type="STRING" size="256" sumtext="입퇴원접수상태"/>
  593. <Column id="fsexamflag" type="STRING" size="256" sumtext="초재진구분"/>
  594. <Column id="insukind" type="STRING" size="256" sumtext="보험유형"/>
  595. <Column id="suppkind" type="STRING" size="256" sumtext="보조유형"/>
  596. <Column id="centcd" type="STRING" size="256" sumtext="센터코드"/>
  597. <Column id="orddeptcd" type="STRING" size="256" sumtext="진료과코드"/>
  598. <Column id="medispclid" type="STRING" size="256" sumtext="전문의ID"/>
  599. <Column id="atdoctid" type="STRING" size="256" sumtext="주치의ID"/>
  600. <Column id="specordyn" type="STRING" size="256" sumtext="선택진료여부"/>
  601. <Column id="wardcd" type="STRING" size="256" sumtext="병동코드"/>
  602. <Column id="wardnm" type="STRING" size="256" sumtext="병동명"/>
  603. <Column id="roomcd" type="STRING" size="256" sumtext="병실코드"/>
  604. <Column id="roomgrdecd" type="STRING" size="256" sumtext="병실등급코드"/>
  605. <Column id="roomtypecd" type="STRING" size="256" sumtext="병실형태코드"/>
  606. <Column id="rqsthospcd" type="STRING" size="256" sumtext="협력의뢰병원코드"/>
  607. <Column id="rqstdrid" type="STRING" size="256" sumtext="협력의뢰의사"/>
  608. <Column id="drgyn" type="STRING" size="256" sumtext="DRG여부"/>
  609. <Column id="bmtyn" type="STRING" size="256" sumtext="BMT여부"/>
  610. <Column id="clincstdyyn" type="STRING" size="256" sumtext="임상연구여부"/>
  611. <Column id="clincstdycd" type="STRING" size="256" sumtext="임상연구코드"/>
  612. <Column id="batlockid" type="STRING" size="256" sumtext="BATCH잠김ID"/>
  613. <Column id="batlockyn" type="STRING" size="256" sumtext="BATCH잠김여부"/>
  614. <Column id="ordcostretcdd" type="STRING" size="256" sumtext="진료비소급일자"/>
  615. <Column id="ordcostcalcdd" type="STRING" size="256" sumtext="진료비계산일자"/>
  616. <Column id="dschdclrtyn" type="STRING" size="256" sumtext="퇴원예고여부"/>
  617. <Column id="dschdclrdt" type="STRING" size="256" sumtext="퇴원예고일시"/>
  618. <Column id="dschdclrtrgstid" type="STRING" size="256" sumtext="퇴원예고등록자ID"/>
  619. <Column id="dschdclrtrgstnm" type="STRING" size="256" sumtext="퇴원예고등록자명"/>
  620. <Column id="dschdclrtrgstdt" type="STRING" size="256" sumtext="퇴원예고등록일시"/>
  621. <Column id="dschrgstacptdt" type="STRING" size="256" sumtext="퇴원등록접수일시"/>
  622. <Column id="dschrgstacptchar" type="STRING" size="256" sumtext="퇴원등록접수담당자ID"/>
  623. <Column id="dschnotiyn" type="STRING" size="256" sumtext="퇴원통보여부"/>
  624. <Column id="dschnotidt" type="STRING" size="256" sumtext="퇴원통보일시"/>
  625. <Column id="dschnotirgstid" type="STRING" size="256" sumtext="퇴원통보등록자ID"/>
  626. <Column id="dschnotirgstdt" type="STRING" size="256" sumtext="퇴원통보등록일시"/>
  627. <Column id="calclastdd" type="STRING" size="256" sumtext="정산최종일자"/>
  628. <Column id="dschjudgprcsstat" type="STRING" size="256" sumtext="퇴원심사진행상태"/>
  629. <Column id="lastjudgdd" type="STRING" size="256" sumtext="최종심사일자"/>
  630. <Column id="lastmdlclamdd" type="STRING" size="256" sumtext="최종중간청구일자"/>
  631. <Column id="lastjudgendid" type="STRING" size="256" sumtext="최종심사완료자ID"/>
  632. <Column id="spcljudgflag" type="STRING" size="256" sumtext="선별심사여부"/>
  633. <Column id="mainjudgid" type="STRING" size="256" sumtext="주심사자ID"/>
  634. <Column id="iphs_fromdd" type="STRING" size="256" sumtext="재원이력시작일자"/>
  635. <Column id="iphs_insukind" type="STRING" size="256" sumtext="전실이력병실형태코드"/>
  636. <Column id="iphs_suppkind" type="STRING" size="256" sumtext="재원이력보조유형"/>
  637. <Column id="icdr_roomgrdecd" type="STRING" size="256" sumtext="전실이력병실등급코드"/>
  638. <Column id="icdr_roomtypecd" type="STRING" size="256" sumtext="전실이력병실형태코드"/>
  639. <Column id="icdr_wardcd2" type="STRING" size="256" sumtext="전실이력병동코드2"/>
  640. <Column id="icdr_roomcd2" type="STRING" size="256" sumtext="전실이력병실코드2"/>
  641. <Column id="icdr_roomgrdecd2" type="STRING" size="256" sumtext="전실이력병실등급코드2"/>
  642. <Column id="icdr_roomtypecd2" type="STRING" size="256" sumtext="전실이력병실형태코드2"/>
  643. <Column id="hngnm" type="STRING" size="256" sumtext="환자이름"/>
  644. <Column id="hngnm2" type="STRING" size="256" sumtext="환자이름2"/>
  645. <Column id="dispnm1" type="STRING" size="256" sumtext="환자표시명1"/>
  646. <Column id="dispnm2" type="STRING" size="256" sumtext="환자표시명2"/>
  647. <Column id="sex" type="STRING" size="256" sumtext="성별"/>
  648. <Column id="age" type="STRING" size="256" sumtext="나이"/>
  649. <Column id="arvpath" type="STRING" size="256" sumtext="도착경로"/>
  650. <Column id="ordrslt" type="STRING" size="256" sumtext="진료결과"/>
  651. <Column id="hospiceyn" type="STRING" size="256" sumtext="호스피스여부"/>
  652. <Column id="ioflag" type="STRING" size="256" sumtext="외래입원구분"/>
  653. <Column id="orgordtype" type="STRING" size="256" sumtext="최초외래입원구분"/>
  654. <Column id="specordyn" type="STRING" size="256" sumtext="선택진료여부"/>
  655. <Column id="brateflag" type="STRING" size="256" sumtext="부담률구분"/>
  656. <Column id="ermngtamtcalcyn" type="STRING" size="256" sumtext="응급의학관리료산정여부"/>
  657. <Column id="erbrthflag" type="STRING" size="256" sumtext="응급분만구분"/>
  658. <Column id="erchospath" type="STRING" size="256" sumtext="응급내원경로"/>
  659. <Column id="erorddeptcd" type="STRING" size="256" sumtext="응급진료과코드"/>
  660. <Column id="eroutdt" type="STRING" size="256" sumtext="응급퇴실일자"/>
  661. <Column id="careinrmdd" type="STRING" size="256" sumtext="간호입실일자"/>
  662. <Column id="careinrmtm" type="STRING" size="256" sumtext="간호입실시간"/>
  663. <Column id="careinrmrgstrid" type="STRING" size="256" sumtext="간호입실등록자ID"/>
  664. <Column id="prcplockid" type="STRING" size="256" sumtext="처방LOCKID"/>
  665. <Column id="iprcaddyn" type="STRING" size="256" sumtext="추가처방가능여부(심사실가퇴원)"/>
  666. <Column id="rrgstno1" type="STRING" size="256" sumtext="주민등록번호1"/>
  667. <Column id="hosoutexptresncd" type="STRING" size="256" sumtext="원외사유코드"/>
  668. <Column id="brthdd" type="STRING" size="256" sumtext="원외사유코드"/>
  669. <Column id="calcdd" type="STRING" size="256" sumtext="계산일자"/>
  670. <Column id="calctm" type="STRING" size="256" sumtext="계산시간"/>
  671. <Column id="orddrnm" type="STRING" size="256" sumtext="진료의명"/>
  672. <Column id="orddeptnm" type="STRING" size="256" sumtext="진료과명"/>
  673. <Column id="replyn" type="STRING" size="256" sumtext="회신여부"/>
  674. <Column id="repltypenm" type="STRING" size="256" sumtext="회신유형내용"/>
  675. <Column id="resnyn" type="STRING" size="256" sumtext="항생제평가관련"/>
  676. <Column id="npresnyn" type="STRING" size="256" sumtext="정신과차등수가관련"/>
  677. <Column id="autoformcd" type="STRING" size="256" sumtext="자동서식코드"/>
  678. <Column id="subcretno" type="STRING" size="256" sumtext="서브원무키"/>
  679. <Column id="prcpsaveyn" type="STRING" size="256" sumtext="처방저장여부"/>
  680. <Column id="emrsaveyn" type="STRING" size="256" sumtext="진료기록저장여부"/>
  681. <Column id="ertransyn" type="STRING" size="256" sumtext="응급실에서병동으로전실여부"/>
  682. <Column id="ercareinrmdd" type="STRING" size="256" sumtext="응급실에서병동으로입실일자"/>
  683. <Column id="ercareinrmtm" type="STRING" size="256" sumtext="응급실에서병동입실시간"/>
  684. <Column id="coopteamcd" type="STRING" size="256" sumtext="협력팀코드"/>
  685. <Column id="coopteamnm" type="STRING" size="256" sumtext="협력팀코드"/>
  686. <Column id="nonprgresncd" type="STRING" size="256" sumtext="임신불가사유"/>
  687. <Column id="nonprgresncnts" type="STRING" size="256" sumtext="임신불가사유"/>
  688. <Column id="scndyn" type="STRING" size="256" sumtext="차상위대상여부"/>
  689. <Column id="rrgstno1" type="STRING" size="256" sumtext="주민등록앞자리"/>
  690. <Column id="rrgstno2" type="STRING" size="256" sumtext="주민등록뒷자리"/>
  691. <Column id="rsrvflag" type="STRING" size="256" sumtext="예약구분"/>
  692. <Column id="etcordflag" type="STRING" size="256" sumtext="기타구분"/>
  693. <Column id="callvisityn" type="STRING" size="256" sumtext="응급실콜비짓여부"/>
  694. <Column id="specordtype" type="STRING" size="256" sumtext="선택진료위임"/>
  695. <Column id="specordtypenm" type="STRING" size="256" sumtext="선택진료위임명"/>
  696. <Column id="mpphontel" type="STRING" size="256" sumtext="핸드폰번호"/>
  697. <Column id="hometel" type="STRING" size="256" sumtext="집전화번호"/>
  698. <Column id="bedposcntscd" type="STRING" size="256" sumtext="응급실Bed정보"/>
  699. <Column id="bedposcnts" type="STRING" size="256" sumtext="응급실Bed정보"/>
  700. <Column id="basetypecd" type="STRING" size="256" sumtext="구역정보"/>
  701. <Column id="typenm" type="STRING" size="256" sumtext="구역정보"/>
  702. <Column id="opfeechkyn" type="STRING" size="256" sumtext="수술료입력여부"/>
  703. <Column id="erissdeptcd" type="STRING" size="256" sumtext="응급발행부서"/>
  704. <Column id="warnmsg" type="STRING" size="256" sumtext="주의요망메세지"/>
  705. <Column id="errwarnmsg" type="STRING" size="256"/>
  706. <Column id="durdiagyn" type="STRING" size="256"/>
  707. <Column id="hospitalday" type="STRING" size="256" sumtext="재원일수"/>
  708. </ColumnInfo>
  709. </Dataset>
  710. <Dataset id="ds_init_notchkessn" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  711. <PropertyAnimation id="pAnim_notice_1" endingmode="to" repeat="0" repeattype="normal" duration="15000" starttime="0" targetcomp="grup_btn.stt_notice_1" interpolation="Interpolation.linear" targetprop="position.left" onend="pAnim_notice_1_onend"/>
  712. <PropertyAnimation id="pAnim_notice_2" endingmode="to" repeat="1" repeattype="normal" duration="0" starttime="0" targetcomp="grup_btn.stt_notice_2" interpolation="Interpolation.linear" targetprop="position.left"/>
  713. <ExtCommon id="ex_extCommon"/>
  714. <Dataset id="ds_preview_formrec" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  715. <Dataset id="ds_preview_recitem" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  716. <Dataset id="ds_script" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  717. <ColumnInfo>
  718. <Column id="formdegnseq" type="STRING" size="256"/>
  719. <Column id="funcnm" type="STRING" size="256"/>
  720. <Column id="degnitemlevlcd" type="STRING" size="256"/>
  721. <Column id="eventnm" type="STRING" size="256"/>
  722. <Column id="funcusernm" type="STRING" size="256"/>
  723. </ColumnInfo>
  724. </Dataset>
  725. <Dataset id="ds_script_map" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  726. <ColumnInfo>
  727. <Column id="formdegnseq" type="STRING" size="256"/>
  728. <Column id="degnitemlevlcd" type="STRING" size="256"/>
  729. <Column id="eventnm" type="STRING" size="256"/>
  730. <Column id="argnm" type="STRING" size="256"/>
  731. <Column id="argtypecd" type="STRING" size="256"/>
  732. <Column id="argval" type="STRING" size="256"/>
  733. </ColumnInfo>
  734. </Dataset>
  735. </Objects>
  736. <Bind>
  737. <BindItem id="item0" compid="grup_btn.checkbox1" propid="value" datasetid="ds_emrtemp" columnid="sysformxrwyn"/>
  738. <BindItem id="item1" compid="grup_titl.ipt_formrectm" propid="value" datasetid="ds_data_formrec" columnid="formrechm"/>
  739. <BindItem id="item3" compid="grup_titl.ipt_formrecdd" propid="value" datasetid="ds_data_formrec" columnid="formrecdd"/>
  740. </Bind>
  741. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  742. * System Name :
  743. * Job Name :
  744. * Creator :
  745. * Make Date : 2014-12-17
  746. * Description :
  747. *---------------------------------------------------------------------------------------
  748. * Modify Date Modifier Modify Description
  749. *---------------------------------------------------------------------------------------
  750. * 2014-12-17 Live Converter TF->XP
  751. *
  752. *---------------------------------------------------------------------------------------
  753. ****************************************************************************************/
  754. //=======================================================================================
  755. // Lib Include
  756. //---------------------------------------------------------------------------------------
  757. include "com_commonxp::comm_main.xjs"
  758. include "emr_commonxp::EMRCommon.xjs"
  759. include "emr_medirecxp::MMRCommon.xjs"
  760. include "emr_medirecxp::MMR01100.xjs"
  761. // include "emr_medirecxp::MMRDegnForm.xjs"
  762. include "emr_prcpmngtxp::MMO001.xjs"
  763. include "emr_carecomxp::CareCom.xjs" // fOppartchk()
  764. // SSMRF02000_서식조회저장 import
  765. // include "emr_formmngtxp::MRF01200.xjs"
  766. // include "emr_formmngtxp::MRF02000.xjs"
  767. // SSMMR01300_서식저장 import
  768. include "emr_medirecxp::MMR01300.xjs"
  769. //=======================================================================================
  770. // Global Form Variable
  771. //---------------------------------------------------------------------------------------
  772. var arErrorCode = new HashArray();
  773. var oOpener;
  774. var loadcomplete = "";
  775. var GSUBMIT = true;
  776. var gSMS_Async = true;// fSendSMS 로직 동기/비동기 설정
  777. var gProfCal = false; // 제증명 발행일알림 제한
  778. var gTopYn = true;
  779. // 2016.12.21 SMMNW30001_간병간호KPCS formrecddenable, formrecdd 설정
  780. var lgv_formrecdd = "";
  781. var lgv_formrecddenable = true;
  782. var lgv_SaveAfterClose = false; // [미비] StaffSign 미비 간편확인 기능 사용시 화면닫기
  783. var lgv_MdfRecNo = null;//[기록정정관리 No]
  784. var lgv_MdfRecApptype = null;//[기록정정관리 Apptype]
  785. //=======================================================================================
  786. // Function
  787. //---------------------------------------------------------------------------------------
  788. /****************************************************************************************
  789. * Argument : N/A
  790. * Description : 자식화면 완료시 호출
  791. ****************************************************************************************/
  792. function lf_onloadcomplete(){
  793. utlf_addLog("***** SSMMR01100_서식로더 lf_onloadcomplete() *****");
  794. fOnLoadComplete();
  795. var scrnwnd = frmf_findPopup("SPMMB08400");
  796. if(!utlf_isNull(scrnwnd)){
  797. scrnwnd.fCloseOpenEmrWnd();
  798. }
  799. /*
  800. if( !utlf_isNull(ivw_base.url) ){
  801. ivw_base.recalculate();
  802. }
  803. */
  804. }
  805. /****************************************************************************************
  806. * Argument : N/A
  807. * Description : 자식화면 완료시 호출
  808. ****************************************************************************************/
  809. function lf_oncomnformloadcomplete(){
  810. parent.lf_oncomnformloadcomplete;
  811. }
  812. //=======================================================================================
  813. // Transaction Callback
  814. //---------------------------------------------------------------------------------------
  815. /****************************************************************************************
  816. * Argument : 01.sSvcId : 서비스 ID
  817. * : 02.nErrorCode : 에러코드
  818. * : 03.sErrorMsg : 에러메시지
  819. * Description : cf_의 콜백함수
  820. ****************************************************************************************/
  821. function cf_(sSvcId, nErrorCode, sErrorMsg) {
  822. arErrorCode.push(sSvcId, nErrorCode);
  823. if(nErrorCode < 0) return;
  824. }
  825. //=======================================================================================
  826. // Event
  827. //---------------------------------------------------------------------------------------
  828. /****************************************************************************************
  829. * Components : Form
  830. * Components ID : SSMMR01100
  831. * Event : oninit
  832. * Argument : 01.obj : Object Event has occurred
  833. * : 02.e : Event Object
  834. * Description : 화면 초기화
  835. ****************************************************************************************/
  836. function SSMMR01100_oninit(obj:Form, e:InitEventInfo)
  837. {
  838. frmf_initForm(obj);
  839. }
  840. /****************************************************************************************
  841. * Components : Form
  842. * Components ID : SSMMR01100
  843. * Event : onload
  844. * Argument : 01.obj : Object Event has occurred
  845. * : 02.e : Event Object
  846. * Description : 화면 초기화
  847. ****************************************************************************************/
  848. function SSMMR01100_onload(obj:Form, e:LoadEventInfo)
  849. {
  850. fGetFormSubTitle(); // 서식 부제목 가져오기
  851. //MMR01300 import xforms-ready
  852. zesf_InitSign();
  853. ivw_base.visible = true;
  854. ivw_fst.visible = false;
  855. // 서식 로드 시 Scrollbars 속성변경 서식리스트
  856. lf_getHardCDList("N", 9959, 0 , ds_init_scrollbars);
  857. // [요청번호:20161121013] 기록수정 제한
  858. lf_getHardCDList("N", 9972, 0 , ds_init_recsaveyn);
  859. // [요청번호:20180709005] 서식의 필수항목 제어해제
  860. lf_getHardCDList("N", 9999, 0 , ds_init_notchkessn);
  861. lf_resetForm();
  862. /*
  863. fFormReady();
  864. if (!utlf_isNull(parent)) {
  865. utlf_addLog("SPMMR07300_서식자동저장 body onloadLoader");
  866. try{
  867. parent.lf_onloadLoader();
  868. }catch(e){
  869. sysf_catchTrace(e);
  870. }
  871. }
  872. */
  873. }
  874. /****************************************************************************************
  875. * Argument : N/A
  876. * Description : 서식로더 화면 초기화
  877. ****************************************************************************************/
  878. function lf_resetForm()
  879. {
  880. // 2018.05.18 TF 결과관리화면 서식로더 초기화로 저장 노드 초기화 로직 추가
  881. if( this.objects["ds_send_saverecinfo_formrec"] != null ) ds_send_saverecinfo_formrec.clearData();
  882. if( this.objects["ds_send_saverecinfo_recitem"] != null ) ds_send_saverecinfo_recitem.clearData();
  883. if(fGetFormMast("formprogflag") == "PROG")
  884. this.ComnFormObj = ivw_base.grup_base;
  885. oOpener = frmf_getoOpener();
  886. // 제증명 발행일 알림 초기화
  887. gProfCal = false;
  888. var formcd = "";
  889. var formkind = "";
  890. var btnvisible = true;
  891. var btnenable = true;
  892. var oTrgtObj = this;
  893. var objForm = "";
  894. var parentDS = "";
  895. var unpreprecYn = "";
  896. var formdegnseq = "";
  897. utlf_addLog("************************* frmf_isPopup() : "+ frmf_isPopup() +" sysf_getObjType(this) : " + sysf_getObjType(this) + " ************************");
  898. utlf_addLog("************************* this.name : "+ this.name +" ************************");
  899. if( frmf_isPopupRec() )// SPMMR01000 및 popup화면에서 실행 시 필요
  900. { // 팝업화면에서 로더 오픈 시
  901. objForm = this.getOwnerFrame().form;
  902. parentDS = objForm.objects["ds_cond_formdata"];
  903. if(utlf_isNull(parentDS))
  904. {
  905. if( !utlf_isNull(opener) )
  906. parentDS = opener.objects["ds_cond_formdata"];
  907. // 의사별 미비리스트 간편저장 로직
  908. if( utlf_isNull(parentDS) && !utlf_isNull(opener) && opener.name == "SMMRI01800"){
  909. try{
  910. parentDS = ds_cond_formdata;
  911. lgv_SaveAfterClose = true;
  912. }catch(e){}
  913. }
  914. }
  915. }
  916. else
  917. { // 메인화면에서 로더 오픈 시
  918. objForm = this.getOwnerFrame().form.components["div_work"];
  919. if(!utlf_isNull(objForm))
  920. parentDS = objForm.objects["ds_cond_formdata"];
  921. }
  922. if(!utlf_isNull(parentDS))
  923. {
  924. ds_temp_formdata.assign(parentDS);
  925. formcd = ds_temp_formdata.getColumn(0, "formcd") ;
  926. if(!utlf_isNull(formcd))
  927. { // lf_loadSMMMR00100() 를 사용하여 로더 오픈 시
  928. formcd = ds_temp_formdata.getColumn(0, "formcd");
  929. formkind = ds_temp_formdata.getColumn(0, "formkind");
  930. btnvisible = ds_temp_formdata.getColumn(0, "btnvisible");
  931. if(!utlf_isNull(ds_cond_formdata.getColumnInfo("btnenable")))
  932. {
  933. btnenable = ds_temp_formdata.getColumn(0, "btnenable");
  934. }
  935. if(!utlf_isNull(ds_cond_formdata.getColumnInfo("unpreprec")))
  936. {
  937. unpreprecYn = ds_temp_formdata.getColumn(0, "unpreprec");
  938. }
  939. if(!utlf_isNull(ds_cond_formdata.getColumnInfo("topyn")))
  940. {
  941. gTopYn = ds_temp_formdata.getColumn(0, "topyn") == "N" ? false : true;
  942. }
  943. // 2016.12.21 SMMNW30001_간병간호KPCS formrecddenable, formrecdd 설정
  944. if(!utlf_isNull(ds_cond_formdata.getColumnInfo("formrecddenable")))
  945. {
  946. lgv_formrecddenable = ds_temp_formdata.getColumn(0, "formrecddenable") == "N" ? false : true;
  947. }
  948. if(!utlf_isNull(ds_cond_formdata.getColumnInfo("formrecdd")))
  949. {
  950. lgv_formrecdd = ds_temp_formdata.getColumn(0, "formrecdd");
  951. }
  952. if(!utlf_isNull(ds_cond_formdata.getColumnInfo("mdfrecno")))
  953. {
  954. lgv_MdfRecNo = ds_temp_formdata.getColumn(0, "mdfrecno");
  955. }
  956. if(!utlf_isNull(ds_cond_formdata.getColumnInfo("mdfrecapptype")))
  957. {
  958. lgv_MdfRecApptype = utlf_transNullToEmpty(ds_temp_formdata.getColumn(0, "mdfrecapptype"));
  959. }
  960. if(!utlf_isNull(ds_cond_formdata.getColumnInfo("formdegnseq")))
  961. {
  962. formdegnseq = utlf_transNullToEmpty(ds_temp_formdata.getColumn(0, "formdegnseq"));
  963. }
  964. /*
  965. if( gTopYn == false ){
  966. fSetPamInfo( ds_temp_formdata.getColumn(0, "pid")
  967. , ds_temp_formdata.getColumn(0, "orddd")
  968. , ds_temp_formdata.getColumn(0, "cretno")
  969. , ds_temp_formdata.getColumn(0, "ioflag")
  970. , ds_temp_formdata.getColumn(0, "orddeptcd")
  971. , ds_temp_formdata.getColumn(0, "orddrid")
  972. , ds_temp_formdata.getColumn(0, "wardcd"));
  973. }
  974. */
  975. // 상단정보 조회용 데이터
  976. if(!utlf_isNull(ds_temp_formdata.getColumnInfo("paminfo")))
  977. {
  978. var sParam = ds_temp_formdata.getColumn(0, "paminfo");
  979. if( !utlf_isNull(sParam) ){
  980. lf_SetPamInfo(sParam);
  981. }
  982. }
  983. }
  984. }
  985. else if(!utlf_isNull(frmf_getMenuParam()))
  986. {
  987. formcd = frmf_getMenuParam();
  988. formkind = "new";
  989. // if(lf_isDoctor())
  990. // {
  991. // btnvisible = "true";
  992. // }
  993. }
  994. else
  995. {
  996. // get, set 파라미터 사용 시
  997. formcd = objForm.frmf_getParameter("formcd");
  998. formkind = objForm.frmf_getParameter("formkind");
  999. btnvisible = objForm.frmf_getParameter(0, "btnvisible");
  1000. btnenable = objForm.frmf_getParameter(0, "btnenable");
  1001. }
  1002. // sysf_trace("***** formcd : " + formcd + " || formkind : " + formkind + " *****");
  1003. // 서식코드나 유형이 없으면 return
  1004. if(utlf_isNull(formcd) || utlf_isNull(formkind))
  1005. {
  1006. lf_btnVisible("false");
  1007. // sysf_trace("***** utlf_isNull(formcd) || utlf_isNull(formkind) *****");
  1008. return;
  1009. }
  1010. if(unpreprecYn == "Y") // 미비기록이면 인증저장버튼 visible
  1011. {
  1012. btnvisible = "true";
  1013. frmf_setParameter("unpreprec", unpreprecYn);
  1014. }
  1015. if(formkind == "new")
  1016. lf_srchNewFormInfo(formcd); // 신규 서식 로딩
  1017. else if(formkind == "rec")
  1018. lf_loadRecForm(formcd); // 기록 서식 로딩
  1019. else if(formkind == "preview")
  1020. lf_loadPreviewForm(formcd, formdegnseq);
  1021. lf_btnVisible(btnvisible); // 버튼 visible/hidden
  1022. lf_btnEnable(btnenable);
  1023. // 서식 오픈 파라미터 초기화
  1024. frmf_clearParameter("formcd");
  1025. frmf_clearParameter("formkind");
  1026. }
  1027. /****************************************************************************************
  1028. * Components : Button
  1029. * Components ID : grup_btn.btn_signsave
  1030. * Event : onclick
  1031. * Argument : 01.obj : Object Event has occurred
  1032. * : 02.e : Event Object
  1033. * Description : 인증저장
  1034. ****************************************************************************************/
  1035. function grup_btn_btn_signsave_onclick(obj:Button, e:ClickEventInfo)
  1036. {
  1037. gSaveYN = false;
  1038. // 치과관련 과에서 Consult등록시 미수납 상태면 접수 불가하도록 2013.07.03 cyw
  1039. var histstat = ds_data_paminfo.getColumn(0, "histstat");
  1040. var rsrvflag = ds_data_paminfo.getColumn(0, "rsrvflag");
  1041. var medamtpostyn = ds_data_paminfo.getColumn(0, "medamtpostyn");
  1042. var reqdeptno = utlf_transNullToEmpty(frmf_getParameter("SMMMR04900_reqdeptno"));
  1043. var dutplcecd = sysf_getUserInfo("dutplcecd");
  1044. var instcd = sysf_getUserInfo("dutplceinstcd");
  1045. var scrnid = oOpener.frmf_getScreenID();
  1046. sysf_trace("@@@@@ scrnid : " + scrnid + " MMR01100 grup_btn_btn_signsave_onclick @@@@@");
  1047. dsf_createDsRow("ds_send_srch", [{col: "instcd", type:"string", size:256, val:instcd}
  1048. , {col: "userdeptcd", type:"string", size:256, val:dutplcecd}]);
  1049. dsf_createDs("ds_main_deptinfo", [{col: "instcd", type:"string", size:256}
  1050. , {col: "deptcd", type:"string", size:256}
  1051. , {col: "reqdeptno", type:"string", size:256}]);
  1052. var oParam = {};
  1053. oParam.id = "TRMMR04906";
  1054. oParam.service = "medirecapp.ExtnMediRec";
  1055. oParam.method = "reqGetCnstReqDeptNo";
  1056. oParam.inds = "req=ds_send_srch";
  1057. oParam.outds = "ds_main_deptinfo=deptinfo";
  1058. oParam.async = false;
  1059. oParam.progress = false;
  1060. oParam.callback = "cf_TRMMR04906";
  1061. tranf_submit(oParam);
  1062. var user_reqdeptno = utlf_transNullToEmpty(ds_main_deptinfo.getColumn(0, "reqdeptno"));
  1063. // 컨설트화면에서 수납완료가 아니거나
  1064. // 청구구분코드가 치과관련(55)고 로그인한 사용자부서가 치과관련일 경우 2013.07.03
  1065. // 후불Y, 이지패스V가 아닌경우 2014.02.04
  1066. if( scrnid == "SMMMR05000" && rsrvflag != "C" && histstat == "T" && reqdeptno.substring(0,1) == "5" && user_reqdeptno.substring(0,1) == "5" && medamtpostyn != "V" && medamtpostyn != "Y" ){
  1067. sysf_messageBox("접수비가 미납되어 Consult가 불가합니다.", "I999");
  1068. return;
  1069. }else{
  1070. /*
  1071. * 진료메인기록 또는 컨설트 창에서 퇴원 환자에 대한 컨설트 회신시 메시지 창으로 선택하게한 후 진행 20130826 이정택
  1072. */
  1073. if(lf_ContainsHardCD("6200", "Y")){
  1074. var formcd=ds_data_formrec.getColumn(0, "formcd");
  1075. var cnststat=ds_data_formrec.getColumn(0, "cnststat");
  1076. sysf_trace(" btn_signsave formcd : " + formcd + " || cnststat : " + cnststat);
  1077. if(formcd=="0000000677" && (cnststat =="12"||cnststat =="20")){
  1078. var indschacptstat = "";
  1079. if(scrnid=="SMMMR00100"){//진료메인기록에서 컨설트 회신시
  1080. indschacptstat=ds_data_paminfo.getColumn(0, "indschacptstat");
  1081. }else if(scrnid=="SMMMR05000"){//컨설트 화면에서 컨설트 회신시
  1082. indschacptstat=oOpener.ds_result_paminfo.getColumn(0, "indschacptstat");
  1083. }
  1084. sysf_trace(" Consult >>>>> indschacptstat : " + indschacptstat );
  1085. if(indschacptstat=="T" || indschacptstat=="D"){
  1086. var rtn=sysf_messageBox("퇴원 처리된 환자로 컨설트 회신료가 발생되지 않습니다.\n계속 진행", "S001");
  1087. if(rtn=="6"){
  1088. fClickSave("Y");
  1089. }else{
  1090. return;
  1091. }
  1092. }else{
  1093. fClickSave("Y");
  1094. }
  1095. }else{
  1096. sysf_trace("저장로직 시작!!! fClickSave >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>");
  1097. fClickSave("Y");
  1098. }
  1099. }else{
  1100. fClickSave("Y");
  1101. }
  1102. }
  1103. fSendRecInfoSMMMR05000ToSMMMO00100(scrnid);
  1104. if (gSaveYN == false) {
  1105. return;
  1106. }
  1107. // 20151008 (#139) 진료의뢰(Consult) 인증저장시 화면 바로 닫도록 개인화(채의수교수님 요청사항)
  1108. gSMS_Async = true;
  1109. var bSMMMR05000_Close = false;
  1110. if( scrnid == "SMMMR05000" && lf_mmbfGetUserEnvQuestValue("069") == "001" ){
  1111. bSMMMR05000_Close = true;
  1112. }
  1113. lf_getHardCDList("N", 5993, 0 , ds_init_cnstmsgyn);
  1114. //mmbfGetHardCodeInfo("/root/send/reqdata", "/root/init/cnstmsgyn", 5993);
  1115. var msgCnt = ds_init_cnstmsgyn.getCaseCount("hardcd == 'Y'");//컨설트 작성시 메시지 보낼지 여부
  1116. if (msgCnt > 0) {
  1117. //컨설트 SMS 관련 처리
  1118. var cnstflag = fGetFormRec("cnstflag");
  1119. if ( cnstflag == "1") {
  1120. if( bSMMMR05000_Close == true ){
  1121. gSMS_Async = false;
  1122. }
  1123. fSendSMS();
  1124. }
  1125. }
  1126. if( bSMMMR05000_Close == true ){
  1127. oOpener.close();
  1128. }
  1129. }
  1130. /****************************************************************************************
  1131. * Argument : 01.sSvcId : 서비스 ID
  1132. * : 02.nErrorCode : 에러코드
  1133. * : 03.sErrorMsg : 에러메시지
  1134. * Description : cf_TRMMR04906의 콜백함수
  1135. ****************************************************************************************/
  1136. function cf_TRMMR04906(sSvcId, nErrorCode, sErrorMsg) {
  1137. if(nErrorCode < 0) return;
  1138. utlf_addLog("***** cf_TRMMR04906 *****");
  1139. }
  1140. /****************************************************************************************
  1141. * Components : Button
  1142. * Components ID : grup_btn.btn_tmpsave
  1143. * Event : onclick
  1144. * Argument : 01.obj : Object Event has occurred
  1145. * : 02.e : Event Object
  1146. * Description : 임시저장
  1147. ****************************************************************************************/
  1148. function grup_btn_btn_tmpsave_onclick(obj:Button, e:ClickEventInfo)
  1149. {
  1150. fClickSave("N");
  1151. }
  1152. /****************************************************************************************
  1153. * Components : Button
  1154. * Components ID : grup_btn.btn_del
  1155. * Event : onclick
  1156. * Argument : 01.obj : Object Event has occurred
  1157. * : 02.e : Event Object
  1158. * Description : 삭제
  1159. ****************************************************************************************/
  1160. function grup_btn_btn_del_onclick(obj:Button, e:ClickEventInfo)
  1161. {
  1162. fClickDelete();
  1163. }
  1164. /****************************************************************************************
  1165. * Components : Button
  1166. * Components ID : grup_btn.btn_cncl
  1167. * Event : onclick
  1168. * Argument : 01.obj : Object Event has occurred
  1169. * : 02.e : Event Object
  1170. * Description : 취소
  1171. ****************************************************************************************/
  1172. function grup_btn_btn_cncl_onclick(obj:Button, e:ClickEventInfo)
  1173. {
  1174. fClose();
  1175. }
  1176. /****************************************************************************************
  1177. * Components : Button
  1178. * Components ID : grup_btn.btn_cnfm
  1179. * Event : onclick
  1180. * Argument : 01.obj : Object Event has occurred
  1181. * : 02.e : Event Object
  1182. * Description : 확인(사용안함)
  1183. ****************************************************************************************/
  1184. function grup_btn_btn_cnfm_onclick(obj:Button, e:ClickEventInfo)
  1185. {
  1186. fConfirm();
  1187. }
  1188. /****************************************************************************************
  1189. * Components : Button
  1190. * Components ID : grup_btn.cap_loadtiem
  1191. * Event : onclick
  1192. * Argument : 01.obj : Object Event has occurred
  1193. * : 02.e : Event Object
  1194. * Description : 조회시간(사용안함)
  1195. ****************************************************************************************/
  1196. function grup_btn_cap_loadtime_ondblclick(obj:Button, e:MouseEventInfo)
  1197. {
  1198. if (body.attribute("height") != "750")
  1199. {
  1200. fInitPage(true, true, 750);
  1201. }
  1202. var frtime = new Date();
  1203. fLoadNewForm("../../../emr/medirecweb/xrw/SMMMR01500_CONSULT관리.xrw");
  1204. //fLoadNewForm("0000000004");
  1205. //fLoadNewForm("0000000615");
  1206. var totime = new Date();
  1207. cap_loadtime.text = ((totime.getTime() - frtime.getTime()) / 1000);
  1208. setTimeLog(model, "newopen", cap_loadtime.text);
  1209. }
  1210. /****************************************************************************************
  1211. * Components : Button
  1212. * Components ID : grup_btn.caption1
  1213. * Event : ondblclick
  1214. * Argument : 01.obj : Object Event has occurred
  1215. * : 02.e : Event Object
  1216. * Description : - (사용안함)
  1217. ****************************************************************************************/
  1218. function grup_btn_caption1_ondblclick(obj:Button, e:MouseEventInfo)
  1219. {
  1220. window.clipBoardData = model.instance1.selectSingleNode("/root/timelog").xml;
  1221. opener.model.removeNodeset("/root/timelog");
  1222. }
  1223. /****************************************************************************************
  1224. * Components : Button
  1225. * Components ID : grup_btn.caption2
  1226. * Event : ondblclick
  1227. * Argument : 01.obj : Object Event has occurred
  1228. * : 02.e : Event Object
  1229. * Description : - (사용안함)
  1230. ****************************************************************************************/
  1231. function grup_btn_caption2_ondblclick(obj:Button, e:MouseEventInfo)
  1232. {
  1233. window.clipBoardData = gPrestIvw.model.instance1.selectSingleNode("/root/timelog").xml;
  1234. }
  1235. /****************************************************************************************
  1236. * Components : Button
  1237. * Components ID : grup_btn.button2
  1238. * Event : onclick
  1239. * Argument : 01.obj : Object Event has occurred
  1240. * : 02.e : Event Object
  1241. * Description : 미리보기2 (사용안함)
  1242. ****************************************************************************************/
  1243. function grup_btn_button2_onclick(obj:Button, e:ClickEventInfo)
  1244. {
  1245. fGetPreviewData("copy", "/root/test/medirec", model, "all");
  1246. }
  1247. /****************************************************************************************
  1248. * Components : Button
  1249. * Components ID : grup_btn.btn_init
  1250. * Event : onclick
  1251. * Argument : 01.obj : Object Event has occurred
  1252. * : 02.e : Event Object
  1253. * Description : 초기화
  1254. ****************************************************************************************/
  1255. function grup_btn_btn_init_onclick(obj:Button, e:ClickEventInfo)
  1256. {
  1257. fInitClearForm();
  1258. }
  1259. /****************************************************************************************
  1260. * Components : Button
  1261. * Components ID : grup_btn.btn_preview
  1262. * Event : onclick
  1263. * Argument : 01.obj : Object Event has occurred
  1264. * : 02.e : Event Object
  1265. * Description : 미리보기
  1266. ****************************************************************************************/
  1267. function grup_btn_btn_preview_onclick(obj:Button, e:ClickEventInfo)
  1268. {
  1269. //fGetPreviewData("view");
  1270. fPreviewRec();
  1271. }
  1272. /****************************************************************************************
  1273. * Components : Button
  1274. * Components ID : grup_btn.btn_print
  1275. * Event : onclick
  1276. * Argument : 01.obj : Object Event has occurred
  1277. * : 02.e : Event Object
  1278. * Description : 출력
  1279. ****************************************************************************************/
  1280. function grup_btn_btn_print_onclick(obj:Button, e:ClickEventInfo)
  1281. {
  1282. fClickPrint();
  1283. }
  1284. /****************************************************************************************
  1285. * Components : Button
  1286. * Components ID : grup_btn.btn_signsaveasnew
  1287. * Event : onclick
  1288. * Argument : 01.obj : Object Event has occurred
  1289. * : 02.e : Event Object
  1290. * Description : 새이름으로저장
  1291. ****************************************************************************************/
  1292. function grup_btn_btn_signsaveasnew_onclick(obj:Button, e:ClickEventInfo)
  1293. {
  1294. fClickSaveAsNew();
  1295. }
  1296. /****************************************************************************************
  1297. * Components : Button
  1298. * Components ID : grup_btn.btn_cosign
  1299. * Event : onclick
  1300. * Argument : 01.obj : Object Event has occurred
  1301. * : 02.e : Event Object
  1302. * Description : STAFF SIGN
  1303. ****************************************************************************************/
  1304. function grup_btn_btn_cosign_onclick(obj:Button, e:ClickEventInfo)
  1305. {
  1306. fClickSaveCosign();
  1307. }
  1308. /****************************************************************************************
  1309. * Components : Button
  1310. * Components ID : grup_btn.btn_resend
  1311. * Event : onclick
  1312. * Argument : 01.obj : Object Event has occurred
  1313. * : 02.e : Event Object
  1314. * Description : 기록반려
  1315. ****************************************************************************************/
  1316. function grup_btn_btn_resend_onclick(obj:Button, e:ClickEventInfo)
  1317. {
  1318. fClickReSend();
  1319. }
  1320. /****************************************************************************************
  1321. * Components : Button
  1322. * Components ID : grup_titl.ipt_fromrecdd
  1323. * Event : onchanged
  1324. * Argument : 01.obj : Object Event has occurred
  1325. * : 02.e : Event Object
  1326. * Description : 기준일자
  1327. ****************************************************************************************/
  1328. function grup_titl_ipt_formrecdd_onchanged(obj:Calendar, e:ChangeEventInfo)
  1329. {
  1330. fChkRecdd();
  1331. }
  1332. /****************************************************************************************
  1333. * Components : Button
  1334. * Components ID : grup_titl.ipt_fromrecdd
  1335. * Event : oneditclick
  1336. * Argument : 01.obj : Object Event has occurred
  1337. * : 02.e : Event Object
  1338. * Description : 기준일자
  1339. ****************************************************************************************/
  1340. function grup_titl_ipt_formrecdd_oneditclick(obj:Calendar, e:EditClickEventInfo)
  1341. {
  1342. gRecdd = ds_data_formrec.getColumn(0, "formrecdd");
  1343. }
  1344. /****************************************************************************************
  1345. * Components : Button
  1346. * Components ID : grup_titl.button10
  1347. * Event : onclick
  1348. * Argument : 01.obj : Object Event has occurred
  1349. * : 02.e : Event Object
  1350. * Description : 서식부제목관리 화면 호출
  1351. ****************************************************************************************/
  1352. function grup_titl_button10_onclick(obj:Button, e:ClickEventInfo)
  1353. {
  1354. frmf_modal("SPMMR04400", "SPMMR04400", null, null, 1, 0, 0, null, null, null, null, null, "M");
  1355. sysf_setGlobalVariable("emr_gsv_formsubtitlelist", "");
  1356. fGetFormSubTitle();
  1357. lf_checkFormrecextnnm();
  1358. }
  1359. /****************************************************************************************
  1360. * Components : Combo
  1361. * Components ID : grup_titl.cbo_formrecextnnm
  1362. * Event : canitemchange
  1363. * Argument : 01.obj : Object Event has occurred
  1364. * : 02.e : Event Object
  1365. * Description : 부제목 변경에 따른 userproperty 설정
  1366. ****************************************************************************************/
  1367. function grup_titl_cbo_formrecextnnm_canitemchange(obj:Combo, e:ItemChangeEventInfo)
  1368. {
  1369. if(!e.postvalue)
  1370. {
  1371. return false;
  1372. }else{
  1373. grup_titl.cbo_formrecextnnm.usertext = e.postvalue;
  1374. return true;
  1375. }
  1376. }
  1377. /****************************************************************************************
  1378. * Components : Combo
  1379. * Components ID : grup_titl.cbo_formrecextnnm
  1380. * Event : onitemchanged
  1381. * Argument : 01.obj : Object Event has occurred
  1382. * : 02.e : Event Object
  1383. * Description : 부제목 변경에 따른 바인딩 처리
  1384. ****************************************************************************************/
  1385. function grup_titl_cbo_formrecextnnm_onitemchanged(obj:Combo, e:ItemChangeEventInfo)
  1386. {
  1387. ds_data_formrec.setColumn(0, "formrecextnnm", grup_titl.cbo_formrecextnnm.text);
  1388. //grup_titl.cbo_formrecextnnm.usertext = e.postvalue;
  1389. }
  1390. /****************************************************************************************
  1391. * Components : Combo
  1392. * Components ID : grup_titl.cbo_formrecextnnm
  1393. * Event : ontextchange
  1394. * Argument : 01.obj : Object Event has occurred
  1395. * : 02.e : Event Object
  1396. * Description : 부제목 변경에 따른 userproperty 설정
  1397. ****************************************************************************************/
  1398. function grup_titl_cbo_formrecextnnm_ontextchange(obj:Combo, e:TextChangeEventInfo)
  1399. {
  1400. grup_titl.cbo_formrecextnnm.usertext = e.posttext;
  1401. }
  1402. /****************************************************************************************
  1403. * Components : Combo
  1404. * Components ID : grup_titl.cbo_formrecextnnm
  1405. * Event : onkillfocus
  1406. * Argument : 01.obj : Object Event has occurred
  1407. * : 02.e : Event Object
  1408. * Description : 부제목 입력값 설정
  1409. ****************************************************************************************/
  1410. function grup_titl_cbo_formrecextnnm_onkillfocus(obj:Combo, e:KillFocusEventInfo)
  1411. {
  1412. var userText = grup_titl.cbo_formrecextnnm.usertext;
  1413. //if( !utlf_isNull(userText) ){
  1414. lf_checkFormrecextnnm();
  1415. grup_titl.cbo_formrecextnnm.text = userText;
  1416. ds_data_formrec.setColumn(0, "formrecextnnm", userText);
  1417. //}
  1418. }
  1419. /****************************************************************************************
  1420. * Components : Combo
  1421. * Components ID : grup_titl.cbo_formrecextnnm
  1422. * Event : onkeydown
  1423. * Argument : 01.obj : Object Event has occurred
  1424. * : 02.e : Event Object
  1425. * Description : 부제목 입력값 설정
  1426. ****************************************************************************************/
  1427. function grup_titl_cbo_formrecextnnm_onkeydown(obj:Combo, e:KeyEventInfo)
  1428. {
  1429. if( e.keycode == 13 ){
  1430. var userText = grup_titl.cbo_formrecextnnm.usertext;
  1431. //if( !utlf_isNull(userText) ){
  1432. lf_checkFormrecextnnm();
  1433. grup_titl.cbo_formrecextnnm.text = userText;
  1434. ds_data_formrec.setColumn(0, "formrecextnnm", userText);
  1435. //}
  1436. }
  1437. }
  1438. /****************************************************************************************
  1439. * Components : Combo
  1440. * Components ID : grup_titl.cbo_formrecextnnm
  1441. * Event : oncloseup
  1442. * Argument : 01.obj : Object Event has occurred
  1443. * : 02.e : Event Object
  1444. * Description : 부제목 입력값 설정
  1445. ****************************************************************************************/
  1446. function grup_titl_cbo_formrecextnnm_oncloseup(obj:Combo, e:ComboCloseUpEventInfo)
  1447. {
  1448. var userText = grup_titl.cbo_formrecextnnm.usertext;
  1449. //if( !utlf_isNull(userText) ){
  1450. lf_checkFormrecextnnm();
  1451. grup_titl.cbo_formrecextnnm.text = userText;
  1452. grup_titl.cbo_formrecextnnm.setCaretPos(-1);
  1453. ds_data_formrec.setColumn(0, "formrecextnnm", userText);
  1454. //}
  1455. }
  1456. /****************************************************************************************
  1457. * Components : Form
  1458. * Components ID : SSMMR01100
  1459. * Event : ontimer
  1460. * Argument : 01.obj : Object Event has occurred
  1461. * : 02.e : Event Object
  1462. * Description : 신규서식 오픈시 기록정보 취합
  1463. ****************************************************************************************/
  1464. function SSMMR01100_ontimer(obj:Form, e:TimerEventInfo)
  1465. {
  1466. if( e.timerid == 1100 ){
  1467. this.killTimer(e.timerid);
  1468. try{
  1469. if(isProgForm()) // 공통서식 기록데이터 취합
  1470. {
  1471. ivw_base.lf_getUnitFormRecData("init", "1"); //lf_getRecDS
  1472. g_recitem_oldrec = ivw_base.fGetCSV("ds_hidden_recitem"); // 다른 서식 로드시점의 기록 데이터
  1473. var objDs = ivw_base.removeChild("ds_hidden_recitem");
  1474. delete objDs;
  1475. objDs = null;
  1476. }
  1477. else // 공통 이외서식 기록데이터 취합
  1478. {
  1479. lf_getGenFormData("init", "1");
  1480. g_recitem_oldrec = fGetCSV("ds_hidden_recitem"); // 다른 서식 로드시점의 기록 데이터
  1481. var objDs = this.removeChild("ds_hidden_recitem");
  1482. delete objDs;
  1483. objDs = null;
  1484. }
  1485. // g_formrec_newimge_cosign = fGetCSV("formrec");
  1486. // g_recitem_newimge_cosign = g_recitem_oldrec;
  1487. utlf_addLog(" g_recitem_oldrec : " + g_recitem_oldrec );
  1488. }catch(e){
  1489. g_recitem_oldrec = "";
  1490. sysf_catchTrace(e);
  1491. }
  1492. }
  1493. }
  1494. /****************************************************************************************
  1495. * Components : MaskEdit
  1496. * Components ID : grup_titl.ipt_formrectm
  1497. * Event : onkillfocus
  1498. * Argument : 01.obj : Object Event has occurred
  1499. * : 02.e : Event Object
  1500. * Description : 기준일자 시간 유효성 체크
  1501. ****************************************************************************************/
  1502. function grup_titl_ipt_formrectm_onkillfocus(obj:MaskEdit, e:KillFocusEventInfo)
  1503. {
  1504. if( utlf_isNull(obj.value)
  1505. // || (!utlf_isNull(obj.value) && obj.value.replace(/[: ]/g, "").length != 4 )
  1506. || (!utlf_isNull(obj.value) && !utlf_isValidDateTime(obj.value.replace(/[: ]/g, ""), "hhmm") )
  1507. ){
  1508. sysf_messageBox("올바른 시간 형식으로 입력해주십시오.");
  1509. obj.setFocus();
  1510. }
  1511. }
  1512. /****************************************************************************************
  1513. * Components : Button
  1514. * Components ID : grup_btn.btn_reload
  1515. * Event : onclick
  1516. * Argument : 01.obj : Object Event has occurred
  1517. * : 02.e : Event Object
  1518. * Description : 서식로더 Reload
  1519. ****************************************************************************************/
  1520. function grup_btn_btn_reload_onclick(obj:Button, e:ClickEventInfo)
  1521. {
  1522. if( frmf_isPopup() && sysf_getObjType(this) == "Form"){
  1523. this.reload();
  1524. }
  1525. }
  1526. function lf_SetPamInfo(condparam){
  1527. condarray = condparam.split("▦");
  1528. if(condarray[0] == "O"){ // 외래
  1529. var objColInfo = new Array();
  1530. objColInfo.push({col: "pid", val: condarray[1]});
  1531. objColInfo.push({col: "orddd", val: condarray[2]});
  1532. objColInfo.push({col: "cretno", val: condarray[3]});
  1533. objColInfo.push({col: "instcd", val: condarray[4]});
  1534. objColInfo.push({col: "ioflag", val: "O"});
  1535. dsf_createDsRow("ds_cond_pamOut", objColInfo);
  1536. dsf_createDs("ds_data_pamOut");
  1537. var oParam = {};
  1538. oParam.id = "TRMMO04202";
  1539. oParam.service = "prcpmngtapp.EtcPrcpMngt";
  1540. oParam.method = "reqGetPatTopInfo";
  1541. oParam.inds = "req=ds_cond_pamOut";
  1542. oParam.outds = "ds_data_pamOut=outpatpaminfo";
  1543. oParam.async = false;
  1544. oParam.error = false;
  1545. oParam.progress = false;
  1546. tranf_submit(oParam);
  1547. if( ds_data_pamOut.rowcount > 0 ){
  1548. ds_data_paminfo.copyData(ds_data_pamOut);
  1549. }
  1550. dsf_deleteDs("ds_cond_pamOut");
  1551. dsf_deleteDs("ds_data_pamOut");
  1552. }else if(condarray[0] == "I" || condarray[0] == "E"){ //입원
  1553. var objColInfo = new Array();
  1554. objColInfo.push({col: "pid", val: condarray[1]});
  1555. objColInfo.push({col: "orddd", val: condarray[2]});
  1556. objColInfo.push({col: "cretno", val: condarray[3]});
  1557. objColInfo.push({col: "instcd", val: condarray[4]});
  1558. if(condarray.length > 5){
  1559. objColInfo.push({col: "srchdd", val: condarray[5]});
  1560. }
  1561. if( condarray[0] != "E" ){
  1562. objColInfo.push({col: "ioflag", val: "I"});
  1563. }else{
  1564. objColInfo.push({col: "ioflag", val: "E"});
  1565. }
  1566. dsf_createDsRow("ds_cond_pamIn", objColInfo);
  1567. ds_data_pamIn.clearData();
  1568. var oParam = {};
  1569. oParam.id = "TRMMO04302";
  1570. oParam.service = "prcpmngtapp.EtcPrcpMngt";
  1571. oParam.method = "reqGetPatTopInfo";
  1572. oParam.inds = "req=ds_cond_pamIn";
  1573. oParam.outds = "ds_data_pamIn=inpatpaminfo";
  1574. oParam.async = false;
  1575. oParam.error = false;
  1576. oParam.progress = false;
  1577. tranf_submit(oParam);
  1578. if( ds_data_pamIn.rowcount > 0 ){
  1579. ds_data_paminfo.copyData(ds_data_pamIn);
  1580. }
  1581. dsf_deleteDs("ds_cond_pamIn");
  1582. }else if(condarray[0] == "T"){ //수술
  1583. var objColInfo = new Array();
  1584. objColInfo.push({col: "pid" , val: condarray[1]}); //등록번호
  1585. objColInfo.push({col: "orddd" , val: condarray[2]}); //수술일자
  1586. objColInfo.push({col: "cretno" , val: condarray[3]}); //생성번호
  1587. objColInfo.push({col: "instcd" , val: condarray[4]}); //기관코드
  1588. objColInfo.push({col: "ioflag" , val: condarray[0]}); //외래입원구분
  1589. objColInfo.push({col: "orddeptcd", val: condarray[5]}); //집도과
  1590. objColInfo.push({col: "orddrid" , val: condarray[6]}); //집도의
  1591. objColInfo.push({col: "patflag" , val: condarray[7]}); //환자구분 - dao sql에서 query구분자 설정
  1592. objColInfo.push({col: "procflag" , val: condarray[8]}); //처리구분(F:최초 조회, R:재조회)
  1593. objColInfo.push({col: "oprsrvno" , val: condarray[9]}); //수술예약번호
  1594. objColInfo.push({col: "ophistno" , val: condarray[10]});//수술이력번호
  1595. objColInfo.push({col: "srchdd" , val: condarray[11]});//조회일자
  1596. dsf_createDsRow("ds_cond_pamIn", objColInfo);
  1597. dsf_createDs("ds_data_etcpamOut");
  1598. dsf_createDs("ds_data_etcpamIn");
  1599. dsf_createDs("ds_data_etcpam");
  1600. dsf_createDs("ds_data_pamOp");
  1601. var oParam = {};
  1602. oParam.id = "TRMMO04502";
  1603. oParam.service = "prcpmngtapp.EtcPrcpMngt";
  1604. oParam.method = "reqGetPatTopInfo";
  1605. oParam.inds = "req=ds_cond_pamIn";
  1606. oParam.outds = "ds_data_etcpamOut=outpatpaminfo" +
  1607. " ds_data_etcpamIn=inpatpaminfo" +
  1608. " ds_data_pamOp=oppatopscheinfo";
  1609. oParam.async = false;
  1610. oParam.error = false;
  1611. oParam.progress = false;
  1612. tranf_submit(oParam);
  1613. ds_data_etcpam.copyData((ds_data_etcpamOut.rowcount > 0) ? ds_data_etcpamOut : ds_data_etcpamIn);
  1614. if( ds_data_etcpam.rowcount > 0 ){
  1615. ds_data_paminfo.copyData(ds_data_etcpam);
  1616. }
  1617. if( ds_data_pamOp.rowcount > 0 ){
  1618. ds_temp_formdata.addColumn("operation", "string");
  1619. ds_temp_formdata.setColumn(0, "operation", dsf_getDsCSV(ds_data_pamOp));
  1620. }
  1621. dsf_deleteDs("ds_cond_pamIn");
  1622. dsf_deleteDs("ds_data_etcpamOut");
  1623. dsf_deleteDs("ds_data_etcpamIn");
  1624. dsf_deleteDs("ds_data_etcpam");
  1625. dsf_deleteDs("ds_data_pamOp");
  1626. }
  1627. }
  1628. /****************************************************************************************
  1629. * Components : Button
  1630. * Components ID : grup_btn.btn_app
  1631. * Event : onclick
  1632. * Argument : 01.obj : Object Event has occurred
  1633. * : 02.e : Event Object
  1634. * Description : 정정기록 신청
  1635. ****************************************************************************************/
  1636. function grup_btn_btn_app_onclick(obj:Button, e:ClickEventInfo)
  1637. {
  1638. var status = fGetFormRec("status");
  1639. var formrecseq = fGetFormRec("formrecseq");
  1640. var pid = fGetFormRec("pid");
  1641. var orddd = fGetFormRec("orddd");
  1642. var cretno = fGetFormRec("cretno");
  1643. var ordtype = fGetFormRec("chosioflag");
  1644. if( utlf_isNull(ordtype) ){
  1645. ordtype = fGetFormRec("chosflag");
  1646. }
  1647. if( !utlf_isNull(formrecseq) && formrecseq != "0" ){
  1648. dsf_createDsRow("ds_cond_TRMRI06002", [{col:"formcd", type:"STRING", size:"256", val:fGetFormRec("formcd")}
  1649. , {col:"formrecseq", type:"STRING", size:"256", val:formrecseq}
  1650. , {col:"appdd", type:"STRING", size:"256", val:utlf_getCurrentDate()}
  1651. , {col:"pid", type:"STRING", size:"256", val:pid}
  1652. , {col:"orddd", type:"STRING", size:"256", val:orddd}
  1653. , {col:"cretno", type:"STRING", size:"256", val:cretno}
  1654. , {col:"ordtype", type:"STRING", size:"256", val:ordtype}
  1655. , {col:"appdeptcd", type:"STRING", size:"256", val:sysf_getUserInfo("dutplcecd")}
  1656. , {col:"appdrid", type:"STRING", size:"256", val:sysf_getUserInfo("userid")}
  1657. ]);
  1658. dsf_createDs("ds_data_TRMRI06002");
  1659. var oParam = {};
  1660. oParam.id = "TRMRI06002";
  1661. oParam.service = "recmngtapp.MdfRecMngt";
  1662. oParam.method = "reqGetMdfRecCnt";
  1663. oParam.inds = "req=ds_cond_TRMRI06002";
  1664. oParam.outds = "ds_data_TRMRI06002=mdfreccnt";
  1665. oParam.async = false;
  1666. tranf_submit(oParam);
  1667. if( ds_data_TRMRI06002.getColumn(0, "cnt") > 0 ){
  1668. var rtn = sysf_messageBox("신청한 이력이 존재합니다.\n상세 신청내용 확인", "S001");
  1669. if( rtn == 6 ){
  1670. frmf_setParameter("SPMRI06000_param_gubun", "appDup");
  1671. frmf_modal("SPMRI06000", "SPMRI06000", null, null, null, null, null, null, null, null, null, null, "M");
  1672. frmf_clearParameter("SPMRI06000_param_gubun");
  1673. }
  1674. return;
  1675. }
  1676. }
  1677. lf_getChkRecCorrect("Y");
  1678. }
  1679. /****************************************************************************************
  1680. * Argument : N/A
  1681. * Description : 정정대상 하단 알림 표시
  1682. ****************************************************************************************/
  1683. function lf_DisplayBottomNotice() {
  1684. var gNoticeFlag = ds_data_reccorrent_info.getColumn(0, "activeyn");
  1685. var gNotice = "인증저장(삭제)시 정정사유 입력 후 진행됩니다. 문의:의무기록실";
  1686. var ioflag = fGetFormRec("chosioflag");
  1687. if( utlf_isNull(ioflag) ){
  1688. ioflag = fGetFormRec("chosflag");
  1689. }
  1690. // 00. 애니메이션 정지
  1691. pAnim_notice_1.stop();
  1692. grup_btn.btn_app.sendToBack();
  1693. // 01. 상태에 따른 애니메이션 시작 종료
  1694. if(gNoticeFlag == "M" || gNoticeFlag == "Y") {
  1695. if( lgv_MdfRecNo == null ){
  1696. var nRight = 0;
  1697. if( gNoticeFlag == "M" ){
  1698. gNotice = "[사본발급기록]정정신청 절차가 진행됩니다. 문의:의무기록팀";
  1699. if( fGetFormRec("status") == "U" && fGetFormRec("espiyn") == "N" ){
  1700. nRight = grup_btn.btn_tmpsave.position.left -3 ;
  1701. }else{
  1702. nRight = grup_btn.btn_del.position.left - 3; // btn.app
  1703. }
  1704. }else{
  1705. if( ioflag == "O" ){
  1706. nRight = grup_btn.btn_signsaveasnew.position.left -3 ;
  1707. }else{
  1708. // [요청번호:20190107033] 입원(응급실)기록 정정화면 내 임시저장 버튼 추가 요청 btn_signsave
  1709. nRight = grup_btn.btn_tmpsave.position.left -3 ;
  1710. }
  1711. }
  1712. grup_btn.stt_notice_1.position.left = grup_btn.position.left;
  1713. grup_btn.stt_notice_1.position.right = nRight;
  1714. grup_btn.stt_notice_3.position.right = nRight;
  1715. grup_btn.stt_notice_1.visible = true;
  1716. grup_btn.stt_notice_3.visible = true;
  1717. grup_btn.stt_notice_1.text = gNotice;
  1718. if( ioflag == "O" && gNoticeFlag != "M"){
  1719. pAnim_notice_1.fromvalue = nRight;
  1720. pAnim_notice_1.tovalue = grup_btn.position.left - (grup_btn.stt_notice_1.position.width * 2);
  1721. pAnim_notice_1.run();
  1722. }
  1723. }else{
  1724. grup_btn.stt_notice_1.visible = false;
  1725. grup_btn.stt_notice_3.visible = false;
  1726. }
  1727. } else {
  1728. grup_btn.stt_notice_1.visible = false;
  1729. grup_btn.stt_notice_3.visible = false;
  1730. }
  1731. }
  1732. function lf_getEspiseq()
  1733. {
  1734. if( this.objects["ds_data_formrec"] != null ) {
  1735. var espiseq = ds_data_formrec.getColumn(0,"espiseq");
  1736. var formrecseq = ds_data_formrec.getColumn(0,"formrecseq");
  1737. }
  1738. if( frmf_isPopupRec() )// SPMMR01000 및 popup화면에서 실행 시 필요
  1739. { // 팝업화면에서 로더 오픈 시
  1740. objForm = this.getOwnerFrame().form;
  1741. parentDS = objForm.objects["ds_cond_formdata"];
  1742. if(utlf_isNull(parentDS)) {
  1743. if( !utlf_isNull(opener) ) parentDS = opener.objects["ds_cond_formdata"];
  1744. dsf_makeValue(parentDS, "espiseq", null, utlf_transNullToEmpty(espiseq));
  1745. dsf_makeValue(parentDS, "formrecseq", null, utlf_transNullToEmpty(formrecseq));
  1746. }
  1747. }
  1748. }
  1749. function grup_titl_Button00_ondblclick(obj:Button, e:MouseEventInfo)
  1750. {
  1751. var currentTime = utlf_getCurrentTime().substr(0,4);
  1752. ds_data_formrec.setColumn(0,"formrechm",currentTime);
  1753. }
  1754. ]]></Script>
  1755. </Form>
  1756. </FDL>