SMMRI02800_미비기록관리ER.xfdl 91 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SMMRI02800" position="absolute 0 0 1200 798" titletext="미비기록관리(응급실)" oninit="SMMRI02800_oninit" onload="SMMRI02800_onload" onkeydown="SMMRI02800_onkeydown">
  5. <Layouts>
  6. <Layout>
  7. <Div id="Div01" taborder="3" position="absolute 397 25 1195 114" class="div_SA2" anchor="left top right"/>
  8. <Div id="Div00" taborder="2" position="absolute 0 25 394 114" class="div_SA"/>
  9. <Static text="미비기록관리" position="absolute 0 0 189 25" id="cap_title" class="tit_1"/>
  10. <Static text="전달사항 From의사" position="absolute 600 726 739 742" id="caption10" class="tit_2" anchor="left bottom"/>
  11. <TextArea position="absolute 600 743 1194 794" id="textarea1" wordwrap="word" onsetfocus="textarea1_onsetfocus" anchor="left bottom"/>
  12. <TextArea position="absolute 0 743 591 794" id="textarea2" wordwrap="word" onsetfocus="textarea2_onsetfocus" anchor="left bottom" autoselect="true"/>
  13. <Static text="전달사항 From의료정보팀" position="absolute 0 726 178 744" id="caption9" class="tit_2" anchor="left bottom"/>
  14. <Button position="absolute 918 121 982 140" id="btn_unprepcert" class="btn2" text="미비추가" onclick="btn_unprepcert_onclick" anchor="top right"/>
  15. <Button position="absolute 1099 121 1150 140" id="btn_ex" class="btn7" text="엑셀" onclick="btn_ex_onclick" anchor="top right"/>
  16. <Button position="absolute 983 121 1047 140" id="btn_del" class="btn2" text="미비삭제" onclick="btn_del_onclick" anchor="top right"/>
  17. <Button position="absolute 1151 121 1193 140" id="btn_save" class="btn5" enable="true" text="저장" onclick="btn_save_onclick" anchor="top right"/>
  18. <Shape position="absolute 0 140 1195 146" linetype="horizontal" id="line1" class="line_10" anchor="left top right"/>
  19. <Button position="absolute 149 40 181 56" id="btn_patreq" class="icon_search" visible="true" text="" onclick="btn_patreq_onclick"/>
  20. <Combo position="absolute 571 93 649 112" id="cmb_inoutddflag" enable="false" codecolumn="codecolumn" datacolumn="datacolumn">
  21. <Dataset id="innerdataset">
  22. <ColumnInfo>
  23. <Column id="codecolumn"/>
  24. <Column id="datacolumn"/>
  25. </ColumnInfo>
  26. <Rows>
  27. <Row>
  28. <Col id="codecolumn">dsch</Col>
  29. <Col id="datacolumn">퇴원일자</Col>
  30. </Row>
  31. <Row>
  32. <Col id="codecolumn">indd</Col>
  33. <Col id="datacolumn">입원일자</Col>
  34. </Row>
  35. <Row>
  36. <Col id="codecolumn">orddd</Col>
  37. <Col id="datacolumn">진료일자</Col>
  38. </Row>
  39. </Rows>
  40. </Dataset>
  41. </Combo>
  42. <Edit position="absolute 494 27 571 46" id="ipt_unprepdrnm" onkeydown="ipt_unprepdrnm_onkeydown"/>
  43. <Edit position="absolute 89 39 154 58" id="ipt_pid" onkeydown="ipt_pid_onkeydown" autoselect="true" class="input_search"/>
  44. <Static text="~" position="absolute 750 93 765 108" id="caption1"/>
  45. <Static text="재원구분 :" position="absolute 407 49 493 66" id="caption2" class="search_name"/>
  46. <Radio position="absolute 494 49 693 69" id="rdo_inoutflag" columncount="-1" rowcount="-1" codecolumn="codecolumn" datacolumn="datacolumn" onitemchanged="rdo_inoutflag_onitemchanged">
  47. <Dataset id="innerdataset">
  48. <ColumnInfo>
  49. <Column id="codecolumn" size="256"/>
  50. <Column id="datacolumn" size="256"/>
  51. </ColumnInfo>
  52. <Rows>
  53. <Row>
  54. <Col id="codecolumn">E</Col>
  55. <Col id="datacolumn">응급실</Col>
  56. </Row>
  57. </Rows>
  58. </Dataset>
  59. </Radio>
  60. <Static text="내원정보" position="absolute 13 63 91 80" id="caption3" class="search_name"/>
  61. <Combo position="absolute 668 27 738 46" id="combo2" codecolumn="codecolumn" datacolumn="datacolumn">
  62. <Dataset id="innerdataset">
  63. <ColumnInfo>
  64. <Column id="codecolumn"/>
  65. <Column id="datacolumn"/>
  66. </ColumnInfo>
  67. <Rows>
  68. <Row>
  69. <Col id="codecolumn">-</Col>
  70. <Col id="datacolumn">전체</Col>
  71. </Row>
  72. <Row>
  73. <Col id="codecolumn">St</Col>
  74. <Col id="datacolumn">스태프</Col>
  75. </Row>
  76. <Row>
  77. <Col id="codecolumn">R</Col>
  78. <Col id="datacolumn">레지던트</Col>
  79. </Row>
  80. <Row>
  81. <Col id="codecolumn">I</Col>
  82. <Col id="datacolumn">인턴</Col>
  83. </Row>
  84. </Rows>
  85. </Dataset>
  86. </Combo>
  87. <Static text="미비구분 :" position="absolute 407 71 493 88" id="caption4" class="search_name"/>
  88. <Static text="등록번호 :" position="absolute 13 39 91 56" id="caption5" class="search_name"/>
  89. <Calendar position="absolute 763 93 861 112" id="ipt_todd" enable="false" autoselect="true"/>
  90. <Static text="조회구분 :" position="absolute 406 93 492 110" id="cap_reqflag" class="search_name"/>
  91. <Static text="의사구분 :" position="absolute 581 28 680 45" id="caption6" class="search_name" visible="true"/>
  92. <Static text="미비의사 :" position="absolute 407 28 496 45" id="caption8" class="search_name"/>
  93. <Combo position="absolute 861 27 968 46" id="cmb_orddept" class="combo_search" innerdataset="@ds_init_orddept" datacolumn="depthngnm" codecolumn="deptcd" onitemchanged="cmb_orddept_onitemchanged"/>
  94. <Radio position="absolute 748 27 861 48" id="rdo_deptflag" columncount="-1" rowcount="-1" codecolumn="codecolumn" datacolumn="datacolumn">
  95. <Dataset id="innerdataset">
  96. <ColumnInfo>
  97. <Column id="codecolumn" size="256"/>
  98. <Column id="datacolumn" size="256"/>
  99. </ColumnInfo>
  100. <Rows>
  101. <Row>
  102. <Col id="codecolumn">unprep</Col>
  103. <Col id="datacolumn">미비과</Col>
  104. </Row>
  105. <Row>
  106. <Col id="codecolumn">dsch</Col>
  107. <Col id="datacolumn">퇴원과</Col>
  108. </Row>
  109. </Rows>
  110. </Dataset>
  111. </Radio>
  112. <Shape position="absolute 1034 30 1040 106" linetype="vertical" id="line5" anchor="top right" class="line_4"/>
  113. <Calendar position="absolute 651 93 749 112" id="ipt_fromdd" enable="false" autoselect="true"/>
  114. <Static text="미비기록리스트&#13;&#10; if(chk_merge.visible == false)&#13;&#10; {&#13;&#10; chk_merge.visible = true;&#13;&#10; return;&#13;&#10; }&#13;&#10; &#13;&#10; if(chk_merge.visible == true)&#13;&#10; {&#13;&#10; chk_merge.visible = false;&#13;&#10; return;&#13;&#10; }&#13;&#10; " position="absolute 1 124 113 142" id="caption20" class="tit_2" onclick="caption20_onclick"/>
  115. <Edit position="absolute 177 39 247 58" id="input1" class="input_search"/>
  116. <Combo position="absolute 12 85 382 104" id="cmb_chosinfo" innerdataset="@ds_main_patinfo_pathistlist" datacolumn="chosinfo" codecolumn="rowcnt" onitemchanged="cmb_chosinfo_onitemchanged"/>
  117. <Button position="absolute 327 44 383 66" id="btn_requnpreppatbase" class="btn1" text="조회" onclick="btn_requnpreppatbase_onclick"/>
  118. <Shape position="absolute 315 35 321 75" linetype="vertical" id="line2" class="line_4"/>
  119. <Grid position="absolute 0 145 1195 724" id="grd_unprepreclist" binddataset="ds_main_unpreprecinfo_unprepreclist" onexpanddown="grd_unprepreclist_onexpanddown" onexpandup="grd_unprepreclist_onexpandup" oncellclick="grd_unprepreclist_oncellclick" onheadclick="grd_unprepreclist_onheadclick" oncelldblclick="grd_unprepreclist_oncelldblclick" selecttype="multirow" autoenter="key" onrbuttonup="grd_unprepreclist_onrbuttonup" onrbuttondown="grd_unprepreclist_onrbuttondown" anchor="all" onkeyup="grd_unprepreclist_onkeyup" cellsizingtype="col">
  120. <Formats>
  121. <Format id="default">
  122. <Columns>
  123. <Column size="0"/>
  124. <Column size="24"/>
  125. <Column size="30"/>
  126. <Column size="0"/>
  127. <Column size="0"/>
  128. <Column size="80"/>
  129. <Column size="0"/>
  130. <Column size="65"/>
  131. <Column size="0"/>
  132. <Column size="0"/>
  133. <Column size="45"/>
  134. <Column size="0"/>
  135. <Column size="75"/>
  136. <Column size="0"/>
  137. <Column size="90"/>
  138. <Column size="0"/>
  139. <Column size="64"/>
  140. <Column size="35"/>
  141. <Column size="0"/>
  142. <Column size="0"/>
  143. <Column size="90"/>
  144. <Column size="0"/>
  145. <Column size="40"/>
  146. <Column size="50"/>
  147. <Column size="0"/>
  148. <Column size="0"/>
  149. <Column size="0"/>
  150. <Column size="0"/>
  151. <Column size="0"/>
  152. <Column size="0"/>
  153. <Column size="0"/>
  154. <Column size="0"/>
  155. <Column size="0"/>
  156. <Column size="130"/>
  157. <Column size="0"/>
  158. <Column size="49"/>
  159. <Column size="72"/>
  160. <Column size="0"/>
  161. <Column size="152"/>
  162. <Column size="125"/>
  163. <Column size="100"/>
  164. <Column size="0"/>
  165. <Column size="0"/>
  166. <Column size="75"/>
  167. <Column size="120"/>
  168. <Column size="75"/>
  169. <Column size="120"/>
  170. <Column size="0"/>
  171. <Column size="75"/>
  172. <Column size="0"/>
  173. <Column size="120"/>
  174. </Columns>
  175. <Rows>
  176. <Row size="24" band="head"/>
  177. <Row size="24"/>
  178. </Rows>
  179. <Band id="head">
  180. <Cell text="status"/>
  181. <Cell col="1"/>
  182. <Cell col="2"/>
  183. <Cell col="3" text="delyn"/>
  184. <Cell col="4"/>
  185. <Cell col="5" text="등록번호"/>
  186. <Cell col="6" text="cretno"/>
  187. <Cell col="7" text="환자명"/>
  188. <Cell col="8" text="기록순번"/>
  189. <Cell col="9" text="dschdeptcd"/>
  190. <Cell col="10" text="퇴원과"/>
  191. <Cell col="11" text="미비번호"/>
  192. <Cell col="12" text="퇴원일"/>
  193. <Cell col="13" text="입원일"/>
  194. <Cell col="14" text="전문의"/>
  195. <Cell col="15" text="원미비상태"/>
  196. <Cell col="16" text="미비상태"/>
  197. <Cell col="17" text="직종"/>
  198. <Cell col="18" text="orgdoctkindflag"/>
  199. <Cell col="19" text="진료상태"/>
  200. <Cell col="20" text="미비의사"/>
  201. <Cell col="21" text="orgunprepdrnm"/>
  202. <Cell col="22" text="미비과"/>
  203. <Cell col="23" text="미비분과"/>
  204. <Cell col="24" text="orgdetldeptnm"/>
  205. <Cell col="25" text="detldeptcd"/>
  206. <Cell col="26" text="orgdetldeptcd"/>
  207. <Cell col="27" text="orgunprepdeptnm"/>
  208. <Cell col="28" text="orddeptcd"/>
  209. <Cell col="29" text="orgorddeptcd"/>
  210. <Cell col="30" text="unprepdrid"/>
  211. <Cell col="31" text="orgunprepdrid"/>
  212. <Cell col="32" text="formcd"/>
  213. <Cell col="33" text="서식명"/>
  214. <Cell col="34" text="oprsrvno"/>
  215. <Cell col="35" text="항목명"/>
  216. <Cell col="36" text="진료일자"/>
  217. <Cell col="37" text="unprepitemcd"/>
  218. <Cell col="38" text="전달사항 From 의료정보팀"/>
  219. <Cell col="39" text="전달사항 From의사"/>
  220. <Cell col="40" text="의사확인일시"/>
  221. <Cell col="41" text="srcformcd"/>
  222. <Cell col="42" text="주치의"/>
  223. <Cell col="43" text="최초생성자"/>
  224. <Cell col="44" text="최초생성일시"/>
  225. <Cell col="45" text="최종수정자"/>
  226. <Cell col="46" text="최종수정일시"/>
  227. <Cell col="47" text="경과시간"/>
  228. <Cell col="48" text="최종삭제자"/>
  229. <Cell col="49" text="최종삭제자ID"/>
  230. <Cell col="50" text="최종삭제일시"/>
  231. </Band>
  232. <Band id="body">
  233. <Cell displaytype="combo" edittype="combo" text="bind:status" enable="false"/>
  234. <Cell col="1" celltype="head" expr="expr:currow + 1"/>
  235. <Cell col="2" edittype="none" style="background:EXPR(bkcolorcheck);background2:EXPR(bkcolorcheck);" text="bind:check"/>
  236. <Cell col="3" text="bind:delyn"/>
  237. <Cell col="4" displaytype="none" edittype="none" text="bind:indschflag"/>
  238. <Cell col="5" style="background:EXPR(bkcolor);background2:EXPR(bkcolor);" text="bind:pid" suppress="1"/>
  239. <Cell col="6" style="background:EXPR(bkcolor);background2:EXPR(bkcolor);" text="bind:cretno"/>
  240. <Cell col="7" style="background:EXPR(bkcolor);background2:EXPR(bkcolor);" text="bind:hngnm" suppress="2"/>
  241. <Cell col="8" displaytype="text" style="align:left top;padding:5 2 1 2;background:EXPR(bkcolor);background2:EXPR(bkcolor);" text="bind:formrecseq" wordwrap="word"/>
  242. <Cell col="9" style="background:EXPR(bkcolor);background2:EXPR(bkcolor);" text="bind:dschdeptcd"/>
  243. <Cell col="10" style="align:left top;padding:5 2 0 2;background:EXPR(bkcolor);background2:EXPR(bkcolor);" text="bind:dschdeptnm" wordwrap="word" suppress="3"/>
  244. <Cell col="11" style="background:EXPR(bkcolor);background2:EXPR(bkcolor);" text="bind:unprepno"/>
  245. <Cell col="12" displaytype="date" style="background:EXPR(bkcolor);background2:EXPR(bkcolor);color:EXPR(bkDelcolor);color2:EXPR(bkDelcolor);" text="bind:dschdd" suppress="4" calendardisplaynulltype="none"/>
  246. <Cell col="13" displaytype="date" style="background:EXPR(bkcolor);background2:EXPR(bkcolor);color:EXPR(bkDelcolor);color2:EXPR(bkDelcolor);" text="bind:indd" calendardisplaynulltype="none"/>
  247. <Cell col="14" style="background:EXPR(bkcolor);background2:EXPR(bkcolor);color:EXPR(bkDelcolor);color2:EXPR(bkDelcolor);" text="bind:medispclnm" suppress="5"/>
  248. <Cell col="15" style="background:EXPR(bkcolor);background2:EXPR(bkcolor);color:EXPR(bkDelcolor);color2:EXPR(bkDelcolor);" text="bind:orgunprepstat"/>
  249. <Cell col="16" displaytype="combo" style="padding:1 2 1 2;background:EXPR(bkcolor);background2:EXPR(bkcolor);color:EXPR(bkDelcolor);color2:EXPR(bkDelcolor);" text="bind:unprepstat" combodataset="ds_cbo_unprepstat" combocodecol="value" combodatacol="label" enable="false"/>
  250. <Cell col="17" style="background:EXPR(bkcolor);background2:EXPR(bkcolor);color:EXPR(bkDelcolor);color2:EXPR(bkDelcolor);" text="bind:doctkindflag"/>
  251. <Cell col="18" style="background:EXPR(bkcolor);background2:EXPR(bkcolor);color:EXPR(bkDelcolor);color2:EXPR(bkDelcolor);" text="bind:orgdoctkindflag"/>
  252. <Cell col="19" style="background:EXPR(bkcolor);background2:EXPR(bkcolor);color:EXPR(bkDelcolor);color2:EXPR(bkDelcolor);" text="bind:drstate"/>
  253. <Cell col="20" style="align:left top;padding:5 2 1 2;background:EXPR(bkcolor);background2:EXPR(bkcolor);color:EXPR(bkDelcolor);color2:EXPR(bkDelcolor);" text="bind:unprepdrnm" wordwrap="word"/>
  254. <Cell col="21" style="background:EXPR(bkcolor);background2:EXPR(bkcolor);color:EXPR(bkDelcolor);color2:EXPR(bkDelcolor);" text="bind:orgunprepdrnm"/>
  255. <Cell col="22" style="background:EXPR(bkcolor);background2:EXPR(bkcolor);color:EXPR(bkDelcolor);color2:EXPR(bkDelcolor);" text="bind:unprepdeptnm"/>
  256. <Cell col="23" style="background:EXPR(bkcolor);background2:EXPR(bkcolor);color:EXPR(bkDelcolor);color2:EXPR(bkDelcolor);" text="bind:detldeptnm"/>
  257. <Cell col="24" style="background:EXPR(bkcolor);background2:EXPR(bkcolor);color:EXPR(bkDelcolor);color2:EXPR(bkDelcolor);" text="bind:orgdetldeptnm"/>
  258. <Cell col="25" style="background:EXPR(bkcolor);background2:EXPR(bkcolor);color:EXPR(bkDelcolor);color2:EXPR(bkDelcolor);" text="bind:detldeptcd"/>
  259. <Cell col="26" style="background:EXPR(bkcolor);background2:EXPR(bkcolor);color:EXPR(bkDelcolor);color2:EXPR(bkDelcolor);" text="bind:orgdetldeptcd"/>
  260. <Cell col="27" style="background:EXPR(bkcolor);background2:EXPR(bkcolor);color:EXPR(bkDelcolor);color2:EXPR(bkDelcolor);" text="bind:orgunprepdeptnm"/>
  261. <Cell col="28" style="background:EXPR(bkcolor);background2:EXPR(bkcolor);color:EXPR(bkDelcolor);color2:EXPR(bkDelcolor);" text="bind:orddeptcd"/>
  262. <Cell col="29" style="background:EXPR(bkcolor);background2:EXPR(bkcolor);color:EXPR(bkDelcolor);color2:EXPR(bkDelcolor);" text="bind:orgorddeptcd"/>
  263. <Cell col="30" style="background:EXPR(bkcolor);background2:EXPR(bkcolor);color:EXPR(bkDelcolor);color2:EXPR(bkDelcolor);" text="bind:unprepdrid"/>
  264. <Cell col="31" style="background:EXPR(bkcolor);background2:EXPR(bkcolor);color:EXPR(bkDelcolor);color2:EXPR(bkDelcolor);" text="bind:orgunprepdrid"/>
  265. <Cell col="32" style="background:EXPR(bkcolor);background2:EXPR(bkcolor);color:EXPR(bkDelcolor);color2:EXPR(bkDelcolor);" text="bind:formcd"/>
  266. <Cell col="33" style="align:left top;padding:5 2 1 2;background:EXPR(bkcolor);background2:EXPR(bkcolor);color:EXPR(bkDelcolor);color2:EXPR(bkDelcolor);" text="bind:formnm" wordwrap="word"/>
  267. <Cell col="34" style="background:EXPR(bkcolor);background2:EXPR(bkcolor);color:EXPR(bkDelcolor);color2:EXPR(bkDelcolor);" text="bind:oprsrvno"/>
  268. <Cell col="35" style="align:left top;padding:5 2 1 2;background:EXPR(bkcolor);background2:EXPR(bkcolor);color:EXPR(bkDelcolor);color2:EXPR(bkDelcolor);" text="bind:unprepitemnm" wordwrap="word"/>
  269. <Cell col="36" displaytype="date" style="background:EXPR(bkcolor);background2:EXPR(bkcolor);color:EXPR(bkDelcolor);color2:EXPR(bkDelcolor);" text="bind:formrecdd" calendardisplaynulltype="none"/>
  270. <Cell col="37" style="background:EXPR(bkcolor);background2:EXPR(bkcolor);color:EXPR(bkDelcolor);color2:EXPR(bkDelcolor);" text="bind:unprepitemcd"/>
  271. <Cell col="38" displaytype="text" edittype="text" style="align:left top;padding:5 2 1 2;background:EXPR(bkcolor);background2:EXPR(bkcolor);color:EXPR(bkDelcolor);color2:EXPR(bkDelcolor);" text="bind:medirecalertcnts" wordwrap="word" maskchar=" " editautoselect="true" expandshow="show"/>
  272. <Cell col="39" displaytype="text" edittype="none" style="align:left top;padding:5 2 1 2;background:EXPR(bkcolor);background2:EXPR(bkcolor);color:EXPR(bkDelcolor);color2:EXPR(bkDelcolor);" text="bind:dralertcnts" wordwrap="word"/>
  273. <Cell col="40" style="background:EXPR(bkcolor);background2:EXPR(bkcolor);color:EXPR(bkDelcolor);color2:EXPR(bkDelcolor);" text="bind:drcnfmdt" mask="####-##-## ##:##" maskchar=" "/>
  274. <Cell col="41" style="background:EXPR(bkcolor);background2:EXPR(bkcolor);color:EXPR(bkDelcolor);color2:EXPR(bkDelcolor);" text="bind:srcformcd"/>
  275. <Cell col="42" style="align:left middle;padding:0 0 0 2;background:EXPR(bkcolor);background2:EXPR(bkcolor);color:EXPR(bkDelcolor);color2:EXPR(bkDelcolor);" text="bind:atdoctnm"/>
  276. <Cell col="43" style="background:EXPR(bkcolor);background2:EXPR(bkcolor);color:EXPR(bkDelcolor);color2:EXPR(bkDelcolor);" text="bind:fstrgstrnm"/>
  277. <Cell col="44" style="background:EXPR(bkcolor);background2:EXPR(bkcolor);color:EXPR(bkDelcolor);color2:EXPR(bkDelcolor);" text="bind:fstrgstdt" mask="####-##-## ##:##" maskchar=" "/>
  278. <Cell col="45" style="background:EXPR(bkcolor);background2:EXPR(bkcolor);color:EXPR(bkDelcolor);color2:EXPR(bkDelcolor);" text="bind:lastupdtrnm"/>
  279. <Cell col="46" style="background:EXPR(bkcolor);background2:EXPR(bkcolor);color:EXPR(bkDelcolor);color2:EXPR(bkDelcolor);" text="bind:lastupdtdt" mask="####-##-## ##:##" maskchar=" "/>
  280. <Cell col="47" displaytype="text" style="align:center middle;background:EXPR(bkcolor);background2:EXPR(bkcolor);" text="bind:overchk"/>
  281. <Cell col="48" style="background:EXPR(bkcolor);background2:EXPR(bkcolor);" text="bind:delusernm"/>
  282. <Cell col="49" style="background:EXPR(bkcolor);background2:EXPR(bkcolor);" text="bind:deluserid"/>
  283. <Cell col="50" style="background:EXPR(bkcolor);background2:EXPR(bkcolor);" text="bind:deldt" mask="####-##-## ##:##" maskchar=" "/>
  284. </Band>
  285. </Format>
  286. </Formats>
  287. </Grid>
  288. <Button position="absolute 1044 33 1124 55" id="btn_requnprepdrbase" class="btn1" text="미비조회" onclick="btn_requnprepdrbase_onclick" anchor="top right"/>
  289. <Button position="absolute 471 120 535 140" id="button5" class="btn2" text="배치생성" onclick="button5_onclick" visible="false"/>
  290. <Edit readonly="true" position="absolute 373 121 407 140" id="opt_formcd" class="output"/>
  291. <Static text="미비환자수 :" position="absolute 116 122 215 139" id="caption7" class="search_name"/>
  292. <Edit readonly="true" position="absolute 213 121 247 140" id="opt_pid" class="output"/>
  293. <Static text="미비기록건수 :" position="absolute 261 122 373 139" id="caption11" class="search_name"/>
  294. <Button position="absolute 1044 58 1184 80" id="btn_realunprep" class="btn1" text="StaffSign미비조회" onclick="btn_realunprep_onclick" anchor="top right" visible="false"/>
  295. <Button position="absolute 605 121 699 140" id="btn_opinfo" class="btn2" text="수술정보조회" onclick="btn_opinfo_onclick" anchor="top right" visible="false"/>
  296. <Button position="absolute 823 121 917 140" id="btn_totrec" class="btn2" text="통합기록조회" onclick="btn_totrec_onclick" anchor="top right"/>
  297. <CheckBox position="absolute 493 92 523 112" id="bool1" truevalue="Y" falsevalue="N" onclick="bool1_onclick"/>
  298. <Static text="날짜조회" position="absolute 516 93 566 113" id="caption15"/>
  299. <Button position="absolute 1044 83 1124 105" id="button1" class="btn1" text="전체조회" onclick="button1_onclick" anchor="top right" visible="false"/>
  300. <Button position="absolute 441 120 469 140" id="button4" class="icon_right" onclick="button4_onclick"/>
  301. <Button position="absolute 412 120 440 140" id="button2" class="icon_left" onclick="button2_onclick"/>
  302. <Button position="absolute 1048 121 1098 140" id="button3" class="btn6" text="출력" onclick="button3_onclick" anchor="top right"/>
  303. <Grid position="absolute 562 193 1195 682" id="grd_patreclist" visible="false" binddataset="ds_main_patreclist_patreclist" oncellclick="grd_patreclist_oncellclick" onkeydown="grd_patreclist_onkeydown" oncelldblclick="grd_patreclist_oncelldblclick" onheadclick="grd_patreclist_onheadclick" anchor="top right">
  304. <Formats>
  305. <Format id="default">
  306. <Columns>
  307. <Column size="26"/>
  308. <Column size="0"/>
  309. <Column size="71"/>
  310. <Column size="41"/>
  311. <Column size="0"/>
  312. <Column size="0"/>
  313. <Column size="0"/>
  314. <Column size="143"/>
  315. <Column size="53"/>
  316. <Column size="62"/>
  317. <Column size="0"/>
  318. <Column size="61"/>
  319. <Column size="0"/>
  320. <Column size="62"/>
  321. <Column size="0"/>
  322. </Columns>
  323. <Rows>
  324. <Row size="24" band="head"/>
  325. <Row size="24"/>
  326. </Rows>
  327. <Band id="head">
  328. <Cell text="X"/>
  329. <Cell col="1" text="formrecseq"/>
  330. <Cell col="2" text="기록일시"/>
  331. <Cell col="3" text="시간"/>
  332. <Cell col="4" text="oprsrvno"/>
  333. <Cell col="5" text="srcformcd"/>
  334. <Cell col="6" text="formcd"/>
  335. <Cell col="7" text="서식명"/>
  336. <Cell col="8" text="확정"/>
  337. <Cell col="9" text="StaffSign"/>
  338. <Cell col="10" text="caption1"/>
  339. <Cell col="11" text="작성과"/>
  340. <Cell col="12" text="caption2"/>
  341. <Cell col="13" text="작성자"/>
  342. <Cell col="14" text="기록순번"/>
  343. </Band>
  344. <Band id="body">
  345. <Cell displaytype="normal" edittype="none" text="bind:check"/>
  346. <Cell col="1" text="bind:formrecseq"/>
  347. <Cell col="2" displaytype="date" text="bind:formrecdd" calendardisplaynulltype="nulltext"/>
  348. <Cell col="3" displaytype="date" text="bind:formrechm" mask="HH:mm" calendardisplaynulltype="nulltext"/>
  349. <Cell col="4" text="bind:oprsrvno"/>
  350. <Cell col="5" text="bind:srcformcd"/>
  351. <Cell col="6" text="bind:formcd"/>
  352. <Cell col="7" style="align:left top;padding:5 2 1 2;" text="bind:formnm" wordwrap="word"/>
  353. <Cell col="8" text="bind:certyn"/>
  354. <Cell col="9" text="bind:cosignyn"/>
  355. <Cell col="10" text="bind:formrecdeptcd"/>
  356. <Cell col="11" style="align:left top;padding:5 2 1 2;" text="bind:formrecdeptnm" wordwrap="word"/>
  357. <Cell col="12" text="bind:formrecuserid"/>
  358. <Cell col="13" text="bind:formrecusernm"/>
  359. <Cell col="14" displaytype="text" style="align:left middle;padding:0 0 0 2;" text="bind:formrecseq"/>
  360. </Band>
  361. </Format>
  362. </Formats>
  363. </Grid>
  364. <Div position="absolute 480 315 725 315" id="group2" style="background:snow;">
  365. <Layouts>
  366. <Layout>
  367. <Button position="absolute 149 39 191 58" id="button7" class="btn2" text="확인" anchor="default" onclick="group2_button7_onclick"/>
  368. <Button position="absolute 194 39 236 58" id="button8" class="btn2" text="취소" anchor="default" onclick="group2_button8_onclick"/>
  369. <Radio position="absolute 4 19 189 39" id="radio1" columncount="-1" codecolumn="codecolumn" datacolumn="datacolumn" anchor="default" rowcount="-1">
  370. <Dataset id="innerdataset">
  371. <ColumnInfo>
  372. <Column id="codecolumn"/>
  373. <Column id="datacolumn"/>
  374. </ColumnInfo>
  375. <Rows>
  376. <Row>
  377. <Col id="codecolumn">1</Col>
  378. <Col id="datacolumn">1개월</Col>
  379. </Row>
  380. <Row>
  381. <Col id="codecolumn">2</Col>
  382. <Col id="datacolumn">2개월</Col>
  383. </Row>
  384. <Row>
  385. <Col id="codecolumn">3</Col>
  386. <Col id="datacolumn">3개월</Col>
  387. </Row>
  388. </Rows>
  389. </Dataset>
  390. </Radio>
  391. <Static text="excel화일 생성 기간지정" position="absolute 4 3 222 19" id="caption14" class="tit_2" anchor="default"/>
  392. <Static text="시작일자 :" position="absolute -1 44 85 61" id="caption13" class="search_name" visible="false" anchor="default"/>
  393. <Static text="종료일자 :" position="absolute -1 39 85 56" id="caption16" class="search_name" visible="false" anchor="default"/>
  394. <Calendar position="absolute 89 44 179 63" id="input2" visible="false" anchor="default"/>
  395. <Calendar position="absolute 89 39 179 58" id="input3" visible="false" anchor="default"/>
  396. </Layout>
  397. </Layouts>
  398. </Div>
  399. <Radio position="absolute 950 50 1023 70" id="radio_detldept" enable="false" visible="false" codecolumn="codecolumn" datacolumn="datacolumn">
  400. <Dataset id="innerdataset">
  401. <ColumnInfo>
  402. <Column id="codecolumn"/>
  403. <Column id="datacolumn"/>
  404. </ColumnInfo>
  405. <Rows>
  406. <Row>
  407. <Col id="codecolumn">Y</Col>
  408. <Col id="datacolumn">미비분과</Col>
  409. </Row>
  410. </Rows>
  411. </Dataset>
  412. </Radio>
  413. <Combo position="absolute 971 27 1033 46" id="cmb_detldept" enable="false" datacolumn="cdnm" codecolumn="cdid"/>
  414. <CheckBox position="absolute 549 122 649 142" id="chk_merge" visible="false" text="셀머지" truevalue="1" onclick="chk_merge_onclick"/>
  415. <Grid position="absolute 65 330 460 570" id="grd_medalertlist" visible="false" binddataset="ds_main_medalertinfo_medalertlist">
  416. <Formats>
  417. <Format id="default">
  418. <Columns>
  419. <Column size="120"/>
  420. <Column size="250"/>
  421. </Columns>
  422. <Rows>
  423. <Row size="24" band="head"/>
  424. <Row size="24"/>
  425. </Rows>
  426. <Band id="head">
  427. <Cell text="작성일자"/>
  428. <Cell col="1" text="전달사항 From 의료정보팀"/>
  429. </Band>
  430. <Band id="body">
  431. <Cell displaytype="date" text="bind:lastupdtdt" mask="yyyy-MM-dd hh:mm:ss" maskchar=" " calendardisplaynulltype="nulltext"/>
  432. <Cell col="1" text="bind:medirecalertcnts"/>
  433. </Band>
  434. </Format>
  435. </Formats>
  436. </Grid>
  437. <Grid position="absolute 470 330 865 570" id="grd_dralertlist" visible="false" binddataset="ds_main_dralertinfo_dralertlist">
  438. <Formats>
  439. <Format id="default">
  440. <Columns>
  441. <Column size="120"/>
  442. <Column size="250"/>
  443. </Columns>
  444. <Rows>
  445. <Row size="24" band="head"/>
  446. <Row size="24"/>
  447. </Rows>
  448. <Band id="head">
  449. <Cell text="작성일자"/>
  450. <Cell col="1" text="전달사항 From 의사"/>
  451. </Band>
  452. <Band id="body">
  453. <Cell text="bind:lastupdtdt" mask="yyyy-MM-dd hh:mm:ss" calendardisplaynulltype="nulltext"/>
  454. <Cell col="1" text="bind:dralertcnts"/>
  455. </Band>
  456. </Format>
  457. </Formats>
  458. </Grid>
  459. <cp_checkboxList id="chk_unprepflag" taborder="1" scrollbars="none" position="absolute 493 69 945 89" style="background:transparent; " col="1" row="1" cellspacing="2" vcellspacing="0" itemWidth="100" itemHeight="20" overflow="visible"/>
  460. <PopupMenu id="pmnmenu1" idcolumn="func" captioncolumn="name" levelcolumn="level" onmenuclick="pmnmenu1_onmenuclick" position="absolute 1216 48 1317 345" style="buttonsize:-1;" innerdataset="@ds_init_popupmenu_menu_item"/>
  461. <Div position="absolute 870 240 1088 295" id="group3" style="background:#99ccffff;">
  462. <Layouts>
  463. <Layout>
  464. <Static text="미비분과" position="absolute 5 5 59 25" align="align:center middle;" id="caption17" style="font:Dotum,9,bold;"/>
  465. <Button position="absolute 122 26 164 45" id="button9" class="btn2" text="확인" onclick="group3_button9_onclick"/>
  466. <Button position="absolute 166 26 208 45" id="button10" class="btn2" text="취소" onclick="group3_button10_onclick"/>
  467. <Combo position="absolute 64 5 208 24" id="cmb_detldeptcd" datacolumn="cdnm" codecolumn="cdid"/>
  468. </Layout>
  469. </Layouts>
  470. </Div>
  471. <Div position="absolute 812 193 1030 248" id="group1" style="background:#99ccffff;">
  472. <Layouts>
  473. <Layout>
  474. <Static text="미비과" position="absolute 5 5 46 25" align="align:center middle;" id="caption12" style="font:Dotum,9,bold;"/>
  475. <Button position="absolute 122 26 164 45" id="btn_cnfm" class="btn2" text="확인" onclick="group1_btn_cnfm_onclick"/>
  476. <Button position="absolute 166 26 208 45" id="button6" class="btn2" text="취소" onclick="group1_button6_onclick"/>
  477. <Combo position="absolute 52 5 208 24" id="combo1" innerdataset="@ds_init_orddept" datacolumn="depthngnm" codecolumn="deptcd"/>
  478. </Layout>
  479. </Layouts>
  480. </Div>
  481. <Button id="btn_ErStaff" taborder="4" text="응급의학과Staff관리" class="btn2" position="absolute 700 121 822 140" anchor="top right" onclick="btn_ErStaff_onclick"/>
  482. </Layout>
  483. </Layouts>
  484. <Objects>
  485. <Dataset id="ds_main_unpreprecinfo_unprepreclist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false" oncolumnchanged="ds_main_unpreprecinfo_unprepreclist_oncolumnchanged">
  486. <ColumnInfo>
  487. <Column id="status" type="STRING" size="256"/>
  488. <Column id="indschflag" type="STRING" size="256"/>
  489. <Column id="pid" type="STRING" size="256"/>
  490. <Column id="hngnm" type="STRING" size="256"/>
  491. <Column id="dschdd" type="STRING" size="256"/>
  492. <Column id="indd" type="STRING" size="256"/>
  493. <Column id="unprepstat" type="STRING" size="256"/>
  494. <Column id="doctkindflag" type="STRING" size="256"/>
  495. <Column id="unprepdrnm" type="STRING" size="256"/>
  496. <Column id="unprepdeptnm" type="STRING" size="256"/>
  497. <Column id="formnm" type="STRING" size="256"/>
  498. <Column id="degnitemnm" type="STRING" size="256"/>
  499. <Column id="formrecdd" type="STRING" size="256"/>
  500. <Column id="medirecalertcnts" type="STRING" size="256"/>
  501. <Column id="drcnfmdt" type="STRING" size="256"/>
  502. <Column id="dralertcnts" type="STRING" size="256"/>
  503. <Column id="fstrgstrnm" type="STRING" size="256"/>
  504. <Column id="fstrgstdt" type="STRING" size="256"/>
  505. <Column id="lastupdtrnm" type="STRING" size="256"/>
  506. <Column id="lastupdtdt" type="STRING" size="256"/>
  507. </ColumnInfo>
  508. <Rows>
  509. <Row>
  510. <Col id="status"/>
  511. <Col id="indschflag"/>
  512. <Col id="pid"/>
  513. <Col id="hngnm"/>
  514. <Col id="dschdd"/>
  515. <Col id="indd"/>
  516. <Col id="unprepstat"/>
  517. <Col id="doctkindflag"/>
  518. <Col id="unprepdrnm"/>
  519. <Col id="unprepdeptnm"/>
  520. <Col id="formnm"/>
  521. <Col id="degnitemnm"/>
  522. <Col id="formrecdd"/>
  523. <Col id="medirecalertcnts"/>
  524. <Col id="drcnfmdt"/>
  525. <Col id="dralertcnts"/>
  526. <Col id="fstrgstrnm"/>
  527. <Col id="fstrgstdt"/>
  528. <Col id="lastupdtrnm"/>
  529. <Col id="lastupdtdt"/>
  530. </Row>
  531. </Rows>
  532. </Dataset>
  533. <Dataset id="ds_main_unpreprecinfo_unprepreccnt" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  534. <ColumnInfo>
  535. <Column id="patcnt" type="STRING" size="256"/>
  536. <Column id="unprepcnt" type="STRING" size="256"/>
  537. </ColumnInfo>
  538. <Rows>
  539. <Row>
  540. <Col id="patcnt"/>
  541. <Col id="unprepcnt"/>
  542. </Row>
  543. </Rows>
  544. </Dataset>
  545. <Dataset id="ds_main_cond_unpreppatbase" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  546. <ColumnInfo>
  547. <Column id="pid" type="STRING" size="256" sumtext="등록번호"/>
  548. <Column id="indd" type="STRING" size="256" sumtext="입원일자"/>
  549. <Column id="cretno" type="STRING" size="256" sumtext="생성번호"/>
  550. <Column id="scrnflag" type="STRING" size="256" sumtext="화면구분"/>
  551. <Column id="dschflag" type="STRING" size="256" sumtext="등록번호"/>
  552. <Column id="unprepstat" type="STRING" size="256" sumtext="미비상태"/>
  553. <Column id="unprepdrid" type="STRING" size="256" sumtext="미비의사ID"/>
  554. <Column id="unprepdrnm" type="STRING" size="256" sumtext="미비의사명"/>
  555. <Column id="doctkindflag" type="STRING" size="256" sumtext="미비의사구분"/>
  556. <Column id="srchflag" type="STRING" size="256" sumtext="검색구분"/>
  557. <Column id="fromdd" type="STRING" size="256" sumtext="시작일자"/>
  558. <Column id="todd" type="STRING" size="256" sumtext="종료일자"/>
  559. <Column id="deptflag" type="STRING" size="256" sumtext="부서구분"/>
  560. <Column id="orddeptcd" type="STRING" size="256" sumtext="부서코드"/>
  561. <Column id="unprepsign" type="STRING" size="256" sumtext="StaffSign구분"/>
  562. <Column id="unprepstatlist" type="STRING" size="256" sumtext="미비상태리스트"/>
  563. <Column id="cosignflag" type="STRING" size="256" sumtext="인증구분"/>
  564. <Column id="drstate" type="STRING" size="256" sumtext="의사상태(파견, 종료)"/>
  565. <Column id="dayflag" type="STRING" size="256" sumtext="날짜조회구분"/>
  566. <Column id="scrnflag" type="STRING" size="256" sumtext="화면구분"/>
  567. <Column id="orderby" type="STRING" size="256" sumtext="정렬"/>
  568. <Column id="detldeptcd" type="STRING" size="256" sumtext="미비세부과"/>
  569. <Column id="hngnm" type="STRING" size="256"/>
  570. <Column id="chosinfo" type="STRING" size="256"/>
  571. </ColumnInfo>
  572. <Rows>
  573. <Row/>
  574. </Rows>
  575. </Dataset>
  576. <Dataset id="ds_main_cond_unprepdrbase" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  577. <ColumnInfo>
  578. <Column id="dschflag" type="STRING" size="256"/>
  579. <Column id="unprepstat" type="STRING" size="256"/>
  580. <Column id="unprepdrnm" type="STRING" size="256"/>
  581. <Column id="unprepdrid" type="STRING" size="256"/>
  582. <Column id="doctkindflag" type="STRING" size="256"/>
  583. <Column id="srchflag" type="STRING" size="256"/>
  584. <Column id="fromdd" type="STRING" size="256"/>
  585. <Column id="todd" type="STRING" size="256"/>
  586. <Column id="deptflag" type="STRING" size="256"/>
  587. <Column id="orddeptcd" type="STRING" size="256"/>
  588. <Column id="unprepstatlist" type="STRING" size="256"/>
  589. <Column id="unprepsign" type="STRING" size="256"/>
  590. <Column id="dayflag" type="STRING" size="256"/>
  591. <Column id="orderby" type="STRING" size="256"/>
  592. <Column id="scrnflag" type="STRING" size="256"/>
  593. <Column id="detldept" type="STRING" size="256"/>
  594. <Column id="detldeptcd" type="STRING" size="256"/>
  595. </ColumnInfo>
  596. <Rows>
  597. <Row>
  598. <Col id="dschflag">E</Col>
  599. <Col id="unprepstat">1 3</Col>
  600. <Col id="unprepdrnm"/>
  601. <Col id="unprepdrid"/>
  602. <Col id="doctkindflag">-</Col>
  603. <Col id="srchflag">dsch</Col>
  604. <Col id="fromdd"/>
  605. <Col id="todd"/>
  606. <Col id="deptflag">unprep</Col>
  607. <Col id="orddeptcd">-</Col>
  608. <Col id="unprepstatlist"/>
  609. <Col id="unprepsign"/>
  610. <Col id="dayflag">N</Col>
  611. <Col id="orderby"/>
  612. <Col id="scrnflag"/>
  613. <Col id="detldept"/>
  614. <Col id="detldeptcd"/>
  615. </Row>
  616. </Rows>
  617. </Dataset>
  618. <Dataset id="ds_main_cond" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  619. <ColumnInfo>
  620. <Column id="srchflag" type="STRING" size="256"/>
  621. <Column id="patcnt" type="STRING" size="256"/>
  622. <Column id="reccnt" type="STRING" size="256"/>
  623. </ColumnInfo>
  624. <Rows>
  625. <Row>
  626. <Col id="srchflag"/>
  627. <Col id="patcnt"/>
  628. <Col id="reccnt"/>
  629. </Row>
  630. </Rows>
  631. </Dataset>
  632. <Dataset id="ds_main_patinfo_pathistlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  633. <Dataset id="ds_main_unprepdrinfo_unprepdrlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  634. <ColumnInfo>
  635. <Column id="checkflag" type="STRING" size="256"/>
  636. <Column id="orddeptnm" type="STRING" size="256"/>
  637. <Column id="orddeptcd" type="STRING" size="256"/>
  638. <Column id="jobposnm" type="STRING" size="256"/>
  639. <Column id="orddrid" type="STRING" size="256"/>
  640. <Column id="orddrnm" type="STRING" size="256"/>
  641. </ColumnInfo>
  642. <Rows>
  643. <Row>
  644. <Col id="checkflag"/>
  645. <Col id="orddeptnm"/>
  646. <Col id="orddeptcd"/>
  647. <Col id="jobposnm"/>
  648. <Col id="orddrid"/>
  649. <Col id="orddrnm"/>
  650. </Row>
  651. </Rows>
  652. </Dataset>
  653. <Dataset id="ds_main_delivefact" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false" oncolumnchanged="ds_main_delivefact_oncolumnchanged">
  654. <ColumnInfo>
  655. <Column id="medirecalertcnts" type="STRING" size="256"/>
  656. <Column id="dralertcnts" type="STRING" size="256"/>
  657. </ColumnInfo>
  658. <Rows>
  659. <Row>
  660. <Col id="medirecalertcnts"/>
  661. <Col id="dralertcnts"/>
  662. </Row>
  663. </Rows>
  664. </Dataset>
  665. <Dataset id="ds_main_unprepiteminfo_unprepiteminfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  666. <Dataset id="ds_main_patreclist_patreclist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  667. <Dataset id="ds_main_unprepdeptcd" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  668. <ColumnInfo>
  669. <Column id="detldeptcd" type="STRING" size="256"/>
  670. <Column id="unprepdeptcd" type="STRING" size="256"/>
  671. </ColumnInfo>
  672. <Rows>
  673. <Row>
  674. <Col id="detldeptcd"/>
  675. <Col id="unprepdeptcd"/>
  676. </Row>
  677. </Rows>
  678. </Dataset>
  679. <Dataset id="ds_main_medalertinfo_medalertlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  680. <Dataset id="ds_main_dralertinfo_dralertlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  681. <Dataset id="ds_init_orddept" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  682. <Dataset id="ds_init_popupmenu_menu_item" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  683. <ColumnInfo>
  684. <Column id="name" type="STRING" size="256"/>
  685. <Column id="func" type="STRING" size="256"/>
  686. <Column id="level" type="STRING" size="256"/>
  687. </ColumnInfo>
  688. <Rows>
  689. <Row>
  690. <Col id="name">배치미비</Col>
  691. <Col id="func">fSetUnPrepRecInfo0</Col>
  692. <Col id="level">0</Col>
  693. </Row>
  694. <Row>
  695. <Col id="name">미비확인</Col>
  696. <Col id="func">fSetUnPrepRecInfo1</Col>
  697. <Col id="level">0</Col>
  698. </Row>
  699. <Row>
  700. <Col id="name">의사확인</Col>
  701. <Col id="func">fSetUnPrepRecInfo2</Col>
  702. <Col id="level">0</Col>
  703. </Row>
  704. <Row>
  705. <Col id="name">재미비</Col>
  706. <Col id="func">fSetUnPrepRecInfo3</Col>
  707. <Col id="level">0</Col>
  708. </Row>
  709. <Row>
  710. <Col id="name">완료</Col>
  711. <Col id="func">fSetUnPrepRecInfo4</Col>
  712. <Col id="level">0</Col>
  713. </Row>
  714. <Row>
  715. <Col id="name">미비삭제</Col>
  716. <Col id="func">fDelUnPrepRecInfo</Col>
  717. <Col id="level">0</Col>
  718. </Row>
  719. <Row>
  720. <Col id="name">-</Col>
  721. <Col id="func"/>
  722. <Col id="level"/>
  723. </Row>
  724. <Row>
  725. <Col id="name">의사변경</Col>
  726. <Col id="func">fChngUnPrepDrInfo</Col>
  727. <Col id="level">0</Col>
  728. </Row>
  729. <Row>
  730. <Col id="name">직종변경(I.)</Col>
  731. <Col id="func">fChngUnPrepInternPos</Col>
  732. <Col id="level">0</Col>
  733. </Row>
  734. <Row>
  735. <Col id="name">직종변경(R.)</Col>
  736. <Col id="func">fChngUnPrepResiPos</Col>
  737. <Col id="level">0</Col>
  738. </Row>
  739. <Row>
  740. <Col id="name">직종변경(St.)</Col>
  741. <Col id="func">fChngUnPrepStaffPos</Col>
  742. <Col id="level">0</Col>
  743. </Row>
  744. <Row>
  745. <Col id="name">-</Col>
  746. <Col id="func"/>
  747. <Col id="level"/>
  748. </Row>
  749. <Row>
  750. <Col id="name">미비과변경</Col>
  751. <Col id="func">fOpenUnPrepDeptCD</Col>
  752. <Col id="level">0</Col>
  753. </Row>
  754. <Row>
  755. <Col id="name">미비분과변경</Col>
  756. <Col id="func">fOpenUnPrepDeltDeptCD</Col>
  757. <Col id="level">0</Col>
  758. </Row>
  759. <Row>
  760. <Col id="name">변경취소</Col>
  761. <Col id="func">fCnclSetPrepRecInfo</Col>
  762. <Col id="level">0</Col>
  763. </Row>
  764. <Row>
  765. <Col id="name">기록연결 해제</Col>
  766. <Col id="func">fCnclFormRecSeq</Col>
  767. <Col id="level">0</Col>
  768. </Row>
  769. </Rows>
  770. </Dataset>
  771. <Dataset id="ds_init" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  772. <ColumnInfo>
  773. <Column id="unprepdeptcd" type="STRING" size="256"/>
  774. <Column id="openday" type="STRING" size="256"/>
  775. <Column id="hardcd" type="STRING" size="256"/>
  776. <Column id="merge" type="STRING" size="256"/>
  777. </ColumnInfo>
  778. <Rows>
  779. <Row>
  780. <Col id="unprepdeptcd"/>
  781. <Col id="openday"/>
  782. <Col id="hardcd"/>
  783. <Col id="merge">1</Col>
  784. </Row>
  785. </Rows>
  786. </Dataset>
  787. <Dataset id="ds_init_M0501" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  788. <Dataset id="ds_init_M0502" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  789. <Dataset id="ds_init_M0503" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  790. <Dataset id="ds_init_M0504_M0504" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  791. <Dataset id="ds_temp_unpreprecinfo_unprepreclist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  792. <Dataset id="ds_temp_userinfo_usercombo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  793. <Dataset id="ds_tmp" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  794. <ColumnInfo>
  795. <Column id="pid" type="STRING" size="256"/>
  796. <Column id="hngnm" type="STRING" size="256"/>
  797. <Column id="srchcond" type="STRING" size="256"/>
  798. <Column id="autoflag" type="STRING" size="256"/>
  799. </ColumnInfo>
  800. <Rows>
  801. <Row>
  802. <Col id="pid"/>
  803. <Col id="hngnm"/>
  804. <Col id="srchcond"/>
  805. <Col id="autoflag"/>
  806. </Row>
  807. </Rows>
  808. </Dataset>
  809. <Dataset id="ds_init_hardcd" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  810. <Dataset id="ds_init_openday" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  811. <Dataset id="ds_send_reqdata" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  812. <Dataset id="ds_main_condition" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  813. <ColumnInfo>
  814. <Column id="indschflag" type="STRING" size="256"/>
  815. </ColumnInfo>
  816. <Rows>
  817. <Row>
  818. <Col id="indschflag"/>
  819. </Row>
  820. </Rows>
  821. </Dataset>
  822. <Dataset id="ds_main_cond_excelcond" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  823. <ColumnInfo>
  824. <Column id="startdate" type="STRING" size="256"/>
  825. <Column id="enddate" type="STRING" size="256"/>
  826. <Column id="steps" type="STRING" size="256"/>
  827. </ColumnInfo>
  828. <Rows>
  829. <Row>
  830. <Col id="startdate"/>
  831. <Col id="enddate"/>
  832. <Col id="steps">3</Col>
  833. </Row>
  834. </Rows>
  835. </Dataset>
  836. <Dataset id="ds_init_openday_M0037M0546" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  837. <ColumnInfo>
  838. <Column id="cdid" type="STRING" size="256"/>
  839. </ColumnInfo>
  840. <Rows>
  841. <Row>
  842. <Col id="cdid"/>
  843. </Row>
  844. </Rows>
  845. </Dataset>
  846. <Dataset id="ds_send_recreqdata" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  847. <Dataset id="ds_chk_unprepflag" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  848. <ColumnInfo>
  849. <Column id="label" type="STRING" size="256"/>
  850. <Column id="value" type="STRING" size="256"/>
  851. </ColumnInfo>
  852. <Rows>
  853. <Row>
  854. <Col id="label">전체</Col>
  855. <Col id="value">-</Col>
  856. </Row>
  857. <Row>
  858. <Col id="label">배치미비</Col>
  859. <Col id="value">0</Col>
  860. </Row>
  861. <Row>
  862. <Col id="label">미비확인</Col>
  863. <Col id="value">1</Col>
  864. </Row>
  865. <Row>
  866. <Col id="label">의사확인</Col>
  867. <Col id="value">2</Col>
  868. </Row>
  869. <Row>
  870. <Col id="label">재미비</Col>
  871. <Col id="value">3</Col>
  872. </Row>
  873. <Row>
  874. <Col id="label">완료</Col>
  875. <Col id="value">4</Col>
  876. </Row>
  877. <Row>
  878. <Col id="label">기록삭제</Col>
  879. <Col id="value">8</Col>
  880. </Row>
  881. </Rows>
  882. </Dataset>
  883. <Dataset id="ds_cbo_unprepstat" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  884. <ColumnInfo>
  885. <Column id="label" type="STRING" size="256"/>
  886. <Column id="value" type="STRING" size="256"/>
  887. </ColumnInfo>
  888. <Rows>
  889. <Row>
  890. <Col id="label">배치미비</Col>
  891. <Col id="value">0</Col>
  892. </Row>
  893. <Row>
  894. <Col id="label">미비확인</Col>
  895. <Col id="value">1</Col>
  896. </Row>
  897. <Row>
  898. <Col id="label">의사확인</Col>
  899. <Col id="value">2</Col>
  900. </Row>
  901. <Row>
  902. <Col id="label">재미비</Col>
  903. <Col id="value">3</Col>
  904. </Row>
  905. <Row>
  906. <Col id="label">완료</Col>
  907. <Col id="value">4</Col>
  908. </Row>
  909. <Row>
  910. <Col id="label">기록삭제</Col>
  911. <Col id="value">8</Col>
  912. </Row>
  913. </Rows>
  914. </Dataset>
  915. <Dataset id="ds_send_savedata" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  916. <Dataset id="ds_send_srchdata" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  917. <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  918. <Dataset id="ds_attachfile" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  919. <PropertyAnimation id="PropertyAnimation00" endingmode="to" repeat="1" repeattype="normal" duration="0" starttime="0"/>
  920. </Objects>
  921. <Bind>
  922. <BindItem id="item0" compid="ipt_pid" propid="value" datasetid="ds_main_cond_unpreppatbase" columnid="pid"/>
  923. <BindItem id="item1" compid="input1" propid="value" datasetid="ds_main_cond_unpreppatbase" columnid="hngnm"/>
  924. <BindItem id="item2" compid="cmb_chosinfo" propid="value" datasetid="ds_main_cond_unpreppatbase" columnid="chosinfo"/>
  925. <BindItem id="item3" compid="rdo_deptflag" propid="value" datasetid="ds_main_cond_unprepdrbase" columnid="deptflag"/>
  926. <BindItem id="item4" compid="cmb_orddept" propid="value" datasetid="ds_main_cond_unprepdrbase" columnid="orddeptcd"/>
  927. <BindItem id="item5" compid="cmb_detldept" propid="value" datasetid="ds_main_cond_unprepdrbase" columnid="detldeptcd"/>
  928. <BindItem id="item6" compid="ipt_unprepdrnm" propid="value" datasetid="ds_main_cond_unprepdrbase" columnid="unprepdrnm"/>
  929. <BindItem id="item7" compid="combo2" propid="value" datasetid="ds_main_cond_unprepdrbase" columnid="doctkindflag"/>
  930. <BindItem id="item8" compid="rdo_inoutflag" propid="value" datasetid="ds_main_cond_unprepdrbase" columnid="dschflag"/>
  931. <BindItem id="item16" compid="radio_detldept" propid="value" datasetid="ds_main_cond_unprepdrbase" columnid="detldept"/>
  932. <BindItem id="item17" compid="bool1" propid="value" datasetid="ds_main_cond_unprepdrbase" columnid="dayflag"/>
  933. <BindItem id="item18" compid="cmb_inoutddflag" propid="value" datasetid="ds_main_cond_unprepdrbase" columnid="srchflag"/>
  934. <BindItem id="item19" compid="ipt_fromdd" propid="value" datasetid="ds_main_cond_unprepdrbase" columnid="fromdd"/>
  935. <BindItem id="item20" compid="ipt_todd" propid="value" datasetid="ds_main_cond_unprepdrbase" columnid="todd"/>
  936. <BindItem id="item21" compid="opt_pid" propid="value" datasetid="ds_main_cond" columnid="patcnt"/>
  937. <BindItem id="item22" compid="opt_formcd" propid="value" datasetid="ds_main_cond" columnid="reccnt"/>
  938. <BindItem id="item23" compid="chk_merge" propid="value" datasetid="ds_init" columnid="merge"/>
  939. <BindItem id="item24" compid="group3.cmb_detldeptcd" propid="value" datasetid="ds_main_unprepdeptcd" columnid="detldeptcd"/>
  940. <BindItem id="item25" compid="group1.combo1" propid="value" datasetid="ds_init" columnid="unprepdeptcd"/>
  941. <BindItem id="item26" compid="textarea2" propid="value" datasetid="ds_main_delivefact" columnid="medirecalertcnts"/>
  942. <BindItem id="item27" compid="textarea1" propid="value" datasetid="ds_main_delivefact" columnid="dralertcnts"/>
  943. <BindItem id="item28" compid="group2.radio1" propid="value" datasetid="ds_main_cond_excelcond" columnid="steps"/>
  944. <BindItem id="item29" compid="group2.input3" propid="value" datasetid="ds_main_cond_excelcond" columnid="enddate"/>
  945. <BindItem id="item30" compid="group2.input2" propid="value" datasetid="ds_main_condition" columnid="startdate"/>
  946. </Bind>
  947. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  948. * System Name :
  949. * Job Name :
  950. * Creator :
  951. * Make Date : 2015-05-01
  952. * Description :
  953. *---------------------------------------------------------------------------------------
  954. * Modify Date Modifier Modify Description
  955. *---------------------------------------------------------------------------------------
  956. * 2015-05-01 Live Converter TF->XP
  957. *
  958. *---------------------------------------------------------------------------------------
  959. ****************************************************************************************/
  960. include "com_commonxp::comm_main.xjs";
  961. include "emr_prcpmngtxp::MMOCommon.xjs"
  962. include "emr_unprepmngtxp::SMMRI01700.xjs"
  963. var arErrorCode = new HashArray();
  964. function SMMRI02800_oninit(obj:Form, e:InitEventInfo)
  965. {
  966. frmf_initForm(obj); //폼 초기화
  967. grdf_initGrid(grd_patreclist);
  968. }
  969. function SMMRI02800_onload(obj:Form, e:LoadEventInfo)
  970. {
  971. lf_getHardCDList("N", 1240, null, ds_init_hardcd);
  972. var sProp = "col=7,row=1,cellspacing=2,vcellspacing=0,itemWidth=-1,itemHeight=20,overflow='visible'";
  973. chk_unprepflag.setInitComp(sProp, ds_chk_unprepflag,"value","label", "fn_unprepflag");
  974. chk_unprepflag.setData(ds_main_cond_unprepdrbase.getColumn(0, "unprepstat").split(" "), " ", false);
  975. //미비기록리스트의 merge기본 설정을 false로 처리
  976. // grd_unprepreclist.autoMerge = false;
  977. // for(var i = 0; i < grd_unprepreclist.cols; i++){
  978. // grd_unprepreclist.mergeCol(i) = false;
  979. // }
  980. var arrParam = new Array();
  981. arrParam.push({bizId:"M0037", cdGrpId:"M0546", dsNm:"ds_init_openday", sortField:"cdnm", sortMehotd:"desc"});
  982. appf_getKindCodeList(arrParam);
  983. //그리드의 짝수행의 색변화를 제거
  984. //grd_unprepreclist.backColorAlternate = "#ffffff";
  985. //조회구분일자(퇴원, 작업) 설정
  986. ds_main_cond_unprepdrbase.setColumn(0, "fromdd", utlf_getCurrentDate());
  987. ds_main_cond_unprepdrbase.setColumn(0, "todd" , utlf_getCurrentDate());
  988. //미비과, 퇴원과설정
  989. lf_mmbfGetDeptCodeComboList(ds_init_orddept, "A", utlf_getCurrentDate()); //병동코드 콤보
  990. frmf_addComboItem("cmb_orddept", "전체", "-", "above");
  991. frmf_addComboItem("cmb_orddept", "호스피스과", "3100000000", "below");
  992. //Count예외 미비항목 조회
  993. reqGetUnPrepBaseExptCnt();
  994. //미비기록리스트 grid 초기화
  995. ds_main_unpreprecinfo_unprepreclist.clearData();
  996. //차트분서관리 화면 연동 처리
  997. if(frmf_checkOpener()){
  998. var recvparam = opener.frmf_getParameter("SMMRI01700_Param");
  999. if(!utlf_isNull(recvparam)){
  1000. recvparam = utlf_transNullToEmpty(recvparam).split("▩");
  1001. data = utlf_transNullToEmpty(recvparam[1]).split("▦");
  1002. ds_main_cond_unpreppatbase.setColumn(0, "pid", data[0]);
  1003. fReqGetUnPrepPatChosInfo(data[0], "I", "A");
  1004. cmb_chosinfo.index = 0;
  1005. var pid = ds_main_patinfo_pathistlist.lookup("rowcnt", cmb_chosinfo.value, "pid");
  1006. var indd = ds_main_patinfo_pathistlist.lookup("rowcnt", cmb_chosinfo.value, "orddd");
  1007. var cretno = ds_main_patinfo_pathistlist.lookup("rowcnt", cmb_chosinfo.value, "cretno");
  1008. var hngnm = ds_main_patinfo_pathistlist.lookup("rowcnt", cmb_chosinfo.value, "hngnm");
  1009. ds_main_cond_unpreppatbase.setColumn(0, "pid" , pid);
  1010. ds_main_cond_unpreppatbase.setColumn(0, "indd" , indd);
  1011. ds_main_cond_unpreppatbase.setColumn(0, "cretno", cretno);
  1012. ds_main_cond_unpreppatbase.setColumn(0, "hngnm" , hngnm);
  1013. frmf_inputEnterKey("cmb_chosinfo", "onitemchanged", new ItemChangeEventInfo );
  1014. }
  1015. }
  1016. var arrParam = [{dsNm: "ds_init_M0501", cdGrpId: "M0501"},
  1017. {dsNm: "ds_init_M0502", cdGrpId: "M0502"},
  1018. {dsNm: "ds_init_M0503", cdGrpId: "M0503"}];
  1019. appf_getCodeList(arrParam);
  1020. group1.position.height = 0;
  1021. group3.position.height = 0;
  1022. }
  1023. function ds_main_delivefact_oncolumnchanged(obj:Dataset, e:DSColChangeEventInfo)
  1024. {
  1025. if(e.columnid == "dralertcnts"){
  1026. if(ds_main_unpreprecinfo_unprepreclist.rowcount > 0){
  1027. if(sDRALERT == textarea1.value){
  1028. return;
  1029. }
  1030. }
  1031. }else if(e.columnid == "medirecalertcnts"){
  1032. if(ds_main_unpreprecinfo_unprepreclist.rowcount > 0){
  1033. if(sMEDIALERT == textarea2.value){
  1034. return;
  1035. }else{
  1036. var status = ds_main_unpreprecinfo_unprepreclist.getColumn(ds_main_unpreprecinfo_unprepreclist.rowposition, "status");
  1037. if(utlf_isNull(status)){
  1038. ds_main_unpreprecinfo_unprepreclist.enableevent = false;
  1039. ds_main_unpreprecinfo_unprepreclist.setColumn(ds_main_unpreprecinfo_unprepreclist.rowposition, "status", "ua");
  1040. ds_main_unpreprecinfo_unprepreclist.enableevent = true;
  1041. }
  1042. ds_main_unpreprecinfo_unprepreclist.enableevent = false;
  1043. ds_main_unpreprecinfo_unprepreclist.setColumn(ds_main_unpreprecinfo_unprepreclist.rowposition, "medirecalertcnts", textarea2.value);
  1044. ds_main_unpreprecinfo_unprepreclist.enableevent = true;
  1045. }
  1046. }
  1047. }
  1048. }
  1049. function textarea1_onsetfocus(obj:TextArea, e:SetFocusEventInfo)
  1050. {
  1051. sDRALERT = textarea1.value;
  1052. }
  1053. function textarea2_onsetfocus(obj:TextArea, e:SetFocusEventInfo)
  1054. {
  1055. sMEDIALERT = textarea2.value;
  1056. }
  1057. function btn_unprepcert_onclick(obj:Button, e:ClickEventInfo)
  1058. {
  1059. //등록번호, 진료일자(입원일자), 생성번호, 진료과, 진료의, 입퇴원구분
  1060. var currow = ds_main_unpreprecinfo_unprepreclist.rowposition;
  1061. if(currow >= 0){
  1062. var pid = ds_main_unpreprecinfo_unprepreclist.getColumn(currow, "pid");
  1063. var orddd = "";
  1064. var cretno = ds_main_unpreprecinfo_unprepreclist.getColumn(currow, "cretno");
  1065. var indschflag = ds_main_condition.getColumn(0, "indschflag");
  1066. if(indschflag != "O"){
  1067. orddd = ds_main_unpreprecinfo_unprepreclist.getColumn(currow, "indd");
  1068. }else{
  1069. orddd = ds_main_unpreprecinfo_unprepreclist.getColumn(currow, "orddd");
  1070. }
  1071. //퇴원일자가 99991231이 아닌 경우는 퇴원처리, 그 이외는 입원
  1072. var dschdd = ds_main_unpreprecinfo_unprepreclist.getColumn(currow, "dschdd");
  1073. if(dschdd != '99991231'){
  1074. indschflag = "D";
  1075. }else{
  1076. indschflag = "I";
  1077. }
  1078. indschflag = ds_main_cond_unprepdrbase.getColumn(0, "dschflag"); //2010.01.07 이남익 추가
  1079. }else{
  1080. if(pid != ds_main_cond_unpreppatbase.getColumn(0, "pid")){
  1081. if(!utlf_isNull(cmb_chosinfo.value)){
  1082. var row = parseInt(cmb_chosinfo.value)-1;
  1083. var pid = ds_main_patinfo_pathistlist.getColumn(row, "pid");
  1084. var orddd = ds_main_patinfo_pathistlist.getColumn(row, "orddd");
  1085. var cretno = ds_main_patinfo_pathistlist.getColumn(row, "cretno");
  1086. var dschdd = ds_main_patinfo_pathistlist.getColumn(row, "dschdd");
  1087. if(dschdd == "99991231"){
  1088. indschflag = "I";
  1089. }else{
  1090. indschflag = "D";
  1091. }
  1092. indschflag = ds_main_cond_unprepdrbase.getColumn(0, "dschflag"); //2010.01.07 이남익 추가
  1093. }
  1094. }
  1095. }
  1096. var wndobj = frmf_findPopup("SPMRI02600");
  1097. if(utlf_isNull(wndobj)){
  1098. frmf_setParameter("SPMRI02600_pid" , pid);
  1099. frmf_setParameter("SPMRI02600_orddd" , orddd);
  1100. frmf_setParameter("SPMRI02600_cretno" , cretno);
  1101. frmf_setParameter("SPMRI02600_dschflag" , indschflag);
  1102. frmf_open("SPMRI02600", "SPMRI02600", "", null, "", "", "", null, null, null, null, null, "M");
  1103. }else{
  1104. wndobj.gRecLoad = "N";
  1105. wndobj.fSetPatInfo(pid, orddd, cretno, indschflag);
  1106. }
  1107. }
  1108. function btn_ex_onclick(obj:Button, e:ClickEventInfo)
  1109. {
  1110. grdf_exportExcel(grd_unprepreclist, "미비기록관리" + utlf_getCurrentDate(), "sheetname1" , true, "" , "" , true);
  1111. }
  1112. function btn_del_onclick(obj:Button, e:ClickEventInfo)
  1113. {
  1114. fDelUnPrepRecInfo();
  1115. }
  1116. function btn_requnprepdrbase_onclick(obj:Button, e:ClickEventInfo)
  1117. {
  1118. ds_main_cond_unprepdrbase.setColumn(0, "orderby", "");
  1119. ds_main_delivefact.setColumn(0, "medirecalertcnts", "");
  1120. ds_main_delivefact.setColumn(0, "dralertcnts", "");
  1121. fReqGetUnPrepRecDrBaseList("N");
  1122. }
  1123. function btn_realunprep_onclick(obj:Button, e:ClickEventInfo)
  1124. {
  1125. ds_main_cond_unprepdrbase.setColumn(0, "orderby", "");
  1126. ds_main_delivefact.setColumn(0, "medirecalertcnts", "");
  1127. ds_main_delivefact.setColumn(0, "dralertcnts", "");
  1128. fReqGetUnPrepRecDrBaseList("TOBE");
  1129. }
  1130. function button1_onclick(obj:Button, e:ClickEventInfo)
  1131. {
  1132. grd_unprepreclist.enable = false;
  1133. btn_requnpreppatbase.enable = false;
  1134. btn_requnprepdrbase.enable = false;
  1135. btn_realunprep.enable = false;
  1136. btn_opinfo.enable = false;
  1137. btn_totrec.enable = false;
  1138. btn_unprepcert.enable = false;
  1139. btn_del.enable = false;
  1140. btn_ex.enable = false;
  1141. btn_save.enable = false;
  1142. group2.position.height = 70;
  1143. ds_main_delivefact.setColumn(0, "medirecalertcnts", "");
  1144. ds_main_delivefact.setColumn(0, "dralertcnts", "");
  1145. // 2009-07-25 이경희
  1146. // 엑셀저장시 2009/07/01로 고정된 부분을 수정.
  1147. var opendd = utlf_transNullToEmpty(ds_init_openday_M0037M0546.getColumn(0, "cdid")); // 병원별 오픈일
  1148. var startDate = opendd.toDate().getDateFormat("YYYYMM") + "01"; // 오픈한 달의 첫날부터로 설정
  1149. ds_main_cond_excelcond.setColumn(0, "startdate", startDate);
  1150. ds_main_cond_excelcond.setColumn(0, "enddate" , utlf_getCurrentDate());
  1151. }
  1152. function btn_patreq_onclick(obj:Button, e:ClickEventInfo)
  1153. {
  1154. ds_tmp.setColumn(0, "pid" , ds_main_cond_unpreppatbase.getColumn(0, "pid"));
  1155. ds_tmp.setColumn(0, "hngnm" , ds_main_cond_unpreppatbase.getColumn(0, "hngnm"));
  1156. if(utlf_isNull(ds_main_cond_unpreppatbase.getColumn(0, "pid"))){
  1157. ds_tmp.setColumn(0, "srchcond", 1);
  1158. }else{
  1159. ds_tmp.setColumn(0, "srchcond", 2);
  1160. }
  1161. ds_tmp.setColumn(0, "autoflag", "Y");
  1162. var objArg = new Object();
  1163. objArg.arg_ds_send = ds_tmp;
  1164. frmf_modal("SPPMC02500", "SPPMC02500", objArg, null, "1", "10", "10", null, null, null, null, null, "M");
  1165. }
  1166. function ipt_unprepdrnm_onkeydown(obj:Edit, e:KeyEventInfo)
  1167. {
  1168. //enter입력시
  1169. if(e.keycode == 13){
  1170. obj.updateToDataset();
  1171. ds_main_cond_unprepdrbase.setColumn(0, "unprepdrnm", ipt_unprepdrnm.text);
  1172. var unprepdrnm = ipt_unprepdrnm.text;
  1173. if((unprepdrnm.charAt(0)).isNumber()){
  1174. fReqGetUnPrepDrSmplList("id", unprepdrnm);
  1175. }else{
  1176. fReqGetUnPrepDrSmplList("nm", unprepdrnm);
  1177. }
  1178. var nodelist = ds_temp_userinfo_usercombo.rowcount;
  1179. if(nodelist == 0){
  1180. sysf_messageBox("의사 정보가", "I004");
  1181. return;
  1182. }else if(nodelist == 1){
  1183. ds_main_cond_unprepdrbase.setColumn(0, "unprepdrid", ds_temp_userinfo_usercombo.getColumn(0, "userid"));
  1184. ds_main_cond_unprepdrbase.setColumn(0, "unprepdrnm", ds_temp_userinfo_usercombo.getColumn(0, "usernm"));
  1185. }else if(nodelist > 1){
  1186. frmf_setParameter("SPMRI02900_stnddd" , utlf_getCurrentDate());
  1187. frmf_setParameter("SPMRI02900_orddrnm", ipt_unprepdrnm.text);
  1188. frmf_modal("SPMRI02900", "SPMRI02900", "", null, "", "", "", null, null, null, null, null, "M");
  1189. if(frmf_getParameter("SPMRI02900_useyn")=="Y"){
  1190. var doctinfo = frmf_getParameter("SPMRI02900_rtnparam");
  1191. doctinfo = utlf_transNullToEmpty(doctinfo).split("^");
  1192. ds_main_cond_unprepdrbase.setColumn(0, "unprepdrid", doctinfo[3]);
  1193. ds_main_cond_unprepdrbase.setColumn(0, "unprepdrnm", doctinfo[4]);
  1194. }
  1195. }else{
  1196. ds_main_cond_unprepdrbase.setColumn(0, "unprepdrid", ds_main_unprepdrinfo_unprepdrlist.getColumn(0, "orddrid"));
  1197. ds_main_cond_unprepdrbase.setColumn(0, "unprepdrnm", ds_main_unprepdrinfo_unprepdrlist.getColumn(0, "orddrnm"));
  1198. }
  1199. }
  1200. }
  1201. function ipt_pid_onkeydown(obj:Edit, e:KeyEventInfo)
  1202. {
  1203. if(e.keycode == 13){
  1204. obj.updateToDataset();
  1205. // sOrdType 추가 2010.01.07 이남익
  1206. var sOrdType = ds_main_cond_unprepdrbase.getColumn(0, "dschflag");
  1207. if(utlf_isNull(sOrdType)){
  1208. sOrdType ="A";
  1209. }
  1210. fReqGetUnPrepPatChosInfo(ipt_pid.text, "I", sOrdType);
  1211. cmb_chosinfo.index = 0;
  1212. var pid = ds_main_patinfo_pathistlist.lookup("rowcnt", cmb_chosinfo.value, "pid");
  1213. var indd = ds_main_patinfo_pathistlist.lookup("rowcnt", cmb_chosinfo.value, "orddd");
  1214. var cretno = ds_main_patinfo_pathistlist.lookup("rowcnt", cmb_chosinfo.value, "cretno");
  1215. var hngnm = ds_main_patinfo_pathistlist.lookup("rowcnt", cmb_chosinfo.value, "hngnm");
  1216. var dschdd = ds_main_patinfo_pathistlist.lookup("rowcnt", cmb_chosinfo.value, "dschdd");
  1217. if(dschdd != '재원중'){
  1218. indschflag = "D";
  1219. }else{
  1220. indschflag = "I";
  1221. }
  1222. ds_main_cond_unpreppatbase.setColumn(0, "pid" , pid);
  1223. ds_main_cond_unpreppatbase.setColumn(0, "indd" , indd);
  1224. ds_main_cond_unpreppatbase.setColumn(0, "cretno", cretno);
  1225. ds_main_cond_unpreppatbase.setColumn(0, "hngnm" , hngnm);
  1226. ds_main_delivefact.setColumn(0, "medirecalertcnts", "");
  1227. ds_main_delivefact.setColumn(0, "dralertcnts", "");
  1228. btn_requnpreppatbase_onclick();
  1229. var wndobj = frmf_findPopup("SPMRI02700");
  1230. if(!utlf_isNull(wndobj)){
  1231. frmf_setParameter("SPMRI02700_pid", pid);
  1232. wndobj.fReqGetUnPrepOpList();
  1233. //wndobj.model.setFocus("grd_unprepoplist");
  1234. }
  1235. var wndobj2 = frmf_findPopup("SPMRI02600");
  1236. if(!utlf_isNull(wndobj2)){
  1237. wndobj2.gRecLoad = "N";
  1238. wndobj2.fSetPatInfo(pid, indd, cretno, indschflag);
  1239. }
  1240. //미비기록 연동창이 떠 있는 경우, 재조회 처리함
  1241. //2009. 02. 18 오지훈
  1242. if(grd_patreclist.visible == true){
  1243. fReqGetPatRecList(pid, indd, cretno);
  1244. sBFPID = pid;
  1245. sBFORDDD = indd;
  1246. sBFCRETNO = cretno;
  1247. }
  1248. }
  1249. }
  1250. function btn_requnpreppatbase_onclick(obj:Button, e:ClickEventInfo)
  1251. {
  1252. fReqGetUnPrepRecList();
  1253. ds_main_delivefact.setColumn(0, "medirecalertcnts", "");
  1254. ds_main_delivefact.setColumn(0, "dralertcnts", "");
  1255. }
  1256. function rdo_inoutflag_onitemchanged(obj:Radio, e:ItemChangeEventInfo)
  1257. {
  1258. if(rdo_inoutflag.value == "D"){
  1259. ds_main_cond_unprepdrbase.setColumn(0, "srchflag", "dsch");
  1260. }else if(rdo_inoutflag.value == "I"){
  1261. ds_main_cond_unprepdrbase.setColumn(0, "srchflag", "indd");
  1262. }else if(rdo_inoutflag.value == "O"){
  1263. ds_main_cond_unprepdrbase.setColumn(0, "srchflag", "orddd");
  1264. }else if(rdo_inoutflag.value == "E"){
  1265. ds_main_cond_unprepdrbase.setColumn(0, "srchflag", "orddd");
  1266. }
  1267. }
  1268. function cmb_orddept_onitemchanged(obj:Combo, e:ItemChangeEventInfo)
  1269. {
  1270. // 외과, 소아청소년과, 산부인과 세부 분과 활성화함.
  1271. var orddeptcd = ds_main_cond_unprepdrbase.getColumn(0, "orddeptcd");
  1272. if(orddeptcd == "2040000000"
  1273. || orddeptcd == "2110000000"
  1274. || orddeptcd == "2100000000")
  1275. {
  1276. radio_detldept.enable = true;
  1277. radio_detldept.value = "Y";
  1278. cmb_detldept.enable = true;
  1279. //미비과에 따라 미비분과 combo정보를 변경
  1280. if(orddeptcd == "2040000000"){ //외과
  1281. cmb_detldept.innerdataset = "ds_init_M0501";
  1282. }else if(orddeptcd == "2100000000"){ //산부인과
  1283. cmb_detldept.innerdataset = "ds_init_M0502";
  1284. }else if(orddeptcd == "2110000000"){ //소아과
  1285. cmb_detldept.innerdataset = "ds_init_M0503";
  1286. }
  1287. frmf_addComboItem("cmb_detldept", "전체", "ALL", "above");
  1288. cmb_detldept.index = 0;
  1289. }
  1290. else
  1291. {
  1292. radio_detldept.enable = false;
  1293. radio_detldept.value = "N";
  1294. cmb_detldept.innerdataset = "ds_init_M0504";
  1295. ds_main_cond_unprepdrbase.setColumn(0, "detldeptcd", "");
  1296. cmb_detldept.enable = false;
  1297. }
  1298. }
  1299. function caption20_onclick(obj:Static, e:ClickEventInfo)
  1300. {
  1301. if(chk_merge.visible == false)
  1302. {
  1303. chk_merge.visible = true;
  1304. return;
  1305. }
  1306. if(chk_merge.visible == true)
  1307. {
  1308. chk_merge.visible = false;
  1309. return;
  1310. }
  1311. }
  1312. function cmb_chosinfo_onitemchanged(obj:Combo, e:ItemChangeEventInfo)
  1313. {
  1314. var pid = ds_main_patinfo_pathistlist.lookup("rowcnt", cmb_chosinfo.value, "pid");
  1315. var indd = ds_main_patinfo_pathistlist.lookup("rowcnt", cmb_chosinfo.value, "orddd");
  1316. var cretno = ds_main_patinfo_pathistlist.lookup("rowcnt", cmb_chosinfo.value, "cretno");
  1317. var dschdd = ds_main_patinfo_pathistlist.lookup("rowcnt", cmb_chosinfo.value, "dschdd");
  1318. ds_main_cond_unpreppatbase.setColumn(0, "pid" , pid);
  1319. ds_main_cond_unpreppatbase.setColumn(0, "indd" , indd);
  1320. ds_main_cond_unpreppatbase.setColumn(0, "cretno" , cretno);
  1321. btn_requnpreppatbase_onclick();
  1322. if(dschdd != '재원중'){
  1323. indschflag = "D";
  1324. }else{
  1325. indschflag = "I";
  1326. }
  1327. var wndobj = frmf_findPopup("SPMRI02700");
  1328. if(!utlf_isNull(wndobj)){
  1329. frmf_setParameter("SPMRI02700_pid", pid);
  1330. wndobj.fReqGetUnPrepOpList();
  1331. // wndobj.model.setFocus("grd_unprepoplist");
  1332. // wndobj.model.refresh();
  1333. }
  1334. var wndobj2 = frmf_findPopup("SPMRI02600");
  1335. if(!utlf_isNull(wndobj2)){
  1336. wndobj2.gRecLoad = "N";
  1337. wndobj2.fSetPatInfo(pid, indd, cretno, indschflag);
  1338. }
  1339. //미비기록 연동창이 떠 있는 경우, 재조회 처리함
  1340. //2009. 02. 18 오지훈
  1341. if(grd_patreclist.visible == true){
  1342. fReqGetPatRecList(pid, indd, cretno);
  1343. sBFPID = pid;
  1344. sBFORDDD = indd;
  1345. sBFCRETNO = cretno;
  1346. }
  1347. }
  1348. function grd_unprepreclist_onexpanddown(obj:Grid, e:GridMouseEventInfo)
  1349. {
  1350. grdf_setSelectedCell(obj, e);
  1351. }
  1352. function grd_unprepreclist_onexpandup(obj:Grid, e:GridMouseEventInfo)
  1353. {
  1354. grdf_setSelectedCell(obj, e);
  1355. //의무기록 전달사항 설정
  1356. var currow = ds_main_unpreprecinfo_unprepreclist.rowposition;
  1357. var curcol = grd_unprepreclist.currentcol;
  1358. if(curcol == grd_unprepreclist.getBindCellIndex("body", "medirecalertcnts")){
  1359. var medirecalertcnts = ds_main_unpreprecinfo_unprepreclist.getColumn(currow, "medirecalertcnts");
  1360. frmf_setParameter("SPMRI01900_scrnflag" , "m");
  1361. frmf_setParameter("SPMRI01900_alertcnts", medirecalertcnts);
  1362. frmf_modal("SPMRI01900", "SPMRI01900", "", null, "", "", "", null, null, null, null, null, "M");
  1363. if(frmf_getParameter("SPMRI01900_useyn") == "Y"){
  1364. ds_main_unpreprecinfo_unprepreclist.enableevent = false;
  1365. ds_main_unpreprecinfo_unprepreclist.setColumn(currow, "medirecalertcnts", frmf_getParameter("SPMRI01900_alertcnts"));
  1366. ds_main_unpreprecinfo_unprepreclist.enableevent = true;
  1367. }
  1368. //의사 전달사항 설정
  1369. }else if(curcol == grd_unprepreclist.getBindCellIndex("body", "dralertcnts")){
  1370. var dralertcnts = ds_main_unpreprecinfo_unprepreclist.getColumn(currow, "dralertcnts");
  1371. frmf_setParameter("SPMRI01900_scrnflag" , "d");
  1372. frmf_setParameter("SPMRI01900_alertcnts", dralertcnts);
  1373. frmf_modal("SPMRI01900", "SPMRI01900", "", null, "", "", "", null, null, null, null, null, "M");
  1374. if(frmf_getParameter("SPMRI01900_useyn") == "Y"){
  1375. ds_main_unpreprecinfo_unprepreclist.enableevent = false;
  1376. ds_main_unpreprecinfo_unprepreclist.setColumn(currow, "dralertcnts", frmf_getParameter("SPMRI01900_alertcnts"));
  1377. ds_main_unpreprecinfo_unprepreclist.enableevent = true;
  1378. }
  1379. }
  1380. //의무기록, 의사전달사항이 수정된 경우, 의무기록 수정(ua)으로 변경
  1381. //u는 미비상태변경을 의미, ua는 의무기록, 의사전달사항 변경을 의미한다.
  1382. if(frmf_getParameter("SPMRI01900_useyn") == "Y"){
  1383. var status = ds_main_unpreprecinfo_unprepreclist.getColumn(currow, "status");
  1384. if(status != "i" || status != "u" || status !="d"){
  1385. ds_main_unpreprecinfo_unprepreclist.enableevent = false;
  1386. ds_main_unpreprecinfo_unprepreclist.setColumn(currow, "status", "ua");
  1387. ds_main_unpreprecinfo_unprepreclist.enableevent = true;
  1388. }
  1389. }
  1390. }
  1391. function grd_unprepreclist_oncellclick(obj:Grid, e:GridClickEventInfo)
  1392. {
  1393. var currow = ds_main_unpreprecinfo_unprepreclist.rowposition;
  1394. var curcol = grd_unprepreclist.currentcol;
  1395. if(e.row >= 0 && e.col >= 0){
  1396. var medirecalertcnts = ds_main_unpreprecinfo_unprepreclist.getColumn(currow, "medirecalertcnts");
  1397. var dralertcnts = ds_main_unpreprecinfo_unprepreclist.getColumn(currow, "dralertcnts");
  1398. ds_main_delivefact.updatecontrol = false;
  1399. ds_main_delivefact.enableevent = false;
  1400. ds_main_delivefact.setColumn(0, "medirecalertcnts", medirecalertcnts);
  1401. ds_main_delivefact.setColumn(0, "dralertcnts" , dralertcnts);
  1402. ds_main_delivefact.enableevent = true;
  1403. ds_main_delivefact.updatecontrol = true;
  1404. //미비기록관리 check 컬럼을 클릭한 경우, 환자의 기록을 조회
  1405. //이전 환자수진 정보와 동일한 경우, 조회하지 않는다.
  1406. //2008. 1. 7 오지훈
  1407. if(curcol == grd_unprepreclist.getBindCellIndex("body", "check")){
  1408. var pid = ds_main_unpreprecinfo_unprepreclist.getColumn(currow, "pid");
  1409. var orddd = ds_main_unpreprecinfo_unprepreclist.getColumn(currow, "indd");
  1410. var cretno = ds_main_unpreprecinfo_unprepreclist.getColumn(currow, "cretno");
  1411. if(pid != sBFPID ||
  1412. (utlf_isNull(sBFPID) && utlf_isNull(sBFORDDD) && utlf_isNull(sBFCRETNO)) ||
  1413. (pid == sBFPID && (orddd != sBFORDDD || cretno != sBFCRETNO)))
  1414. {
  1415. fReqGetPatRecList(pid, orddd, cretno);
  1416. sBFPID = pid;
  1417. sBFORDDD = orddd;
  1418. sBFCRETNO = cretno;
  1419. }
  1420. grd_patreclist.visible = true;
  1421. }
  1422. }
  1423. }
  1424. function grd_unprepreclist_onheadclick(obj:Grid, e:GridClickEventInfo)
  1425. {
  1426. //그리드 Header를 클릭한 경우,
  1427. var srchflag = ds_main_cond.getColumn(0, "srchflag");
  1428. if(sORDERBY == "desc"){
  1429. sORDERBY = "asc";
  1430. }else{
  1431. sORDERBY = "desc";
  1432. }
  1433. //var orderby = grd_unprepreclist.colAttribute(curcol, "ref") + " " + sORDERBY;
  1434. var orderby = grd_unprepreclist.getCellProperty("body", e.col, "text");
  1435. orderby = orderby.replace("bind:", "");
  1436. orderby = orderby + " " + sORDERBY;
  1437. if(srchflag == "dr"){
  1438. ds_main_cond_unprepdrbase.setColumn(0, "orderby", orderby);
  1439. fReqGetUnPrepRecDrBaseList(ds_main_cond_unprepdrbase.getColumn(0, "unprepsign"));
  1440. }else if(srchflag == "pat"){
  1441. ds_main_cond_unpreppatbase.setColumn(0, "orderby", orderby);
  1442. fReqGetUnPrepRecList();
  1443. }
  1444. }
  1445. function ds_main_unpreprecinfo_unprepreclist_oncolumnchanged(obj:Dataset, e:DSColChangeEventInfo)
  1446. {
  1447. if( e.columnid == "medirecalertcnts"){
  1448. var medirecalertcnts = ds_main_unpreprecinfo_unprepreclist.getColumn(ds_main_unpreprecinfo_unprepreclist.rowposition, e.col);
  1449. if(!utlf_isNull(medirecalertcnts)){
  1450. ds_send_savedata.copyData(ds_main_unpreprecinfo_unprepreclist);
  1451. ds_send_savedata.clearData();
  1452. ds_send_savedata.addRow();
  1453. ds_send_savedata.copyRow(0, ds_main_unpreprecinfo_unprepreclist, ds_main_unpreprecinfo_unprepreclist.rowposition);
  1454. dsf_makeValue(ds_send_savedata, "setuseflag", "string", "medi");
  1455. var oParam = {};
  1456. oParam.id = "TXMRI01802";
  1457. oParam.service = "unprepmngtapp.ChrtUnprepMngt";
  1458. oParam.method = "reqSetUnPrepAlertCnts";
  1459. oParam.inds = "req=ds_send_savedata";
  1460. oParam.outds = "";
  1461. oParam.async = false;
  1462. tranf_submit(oParam);
  1463. }
  1464. }
  1465. }
  1466. function grd_unprepreclist_oncelldblclick(obj:Grid, e:GridClickEventInfo)
  1467. {
  1468. // 기록삭제 조회내용에서 더블클릭한 경우 진료기록을 열지 않음.
  1469. // 2009. 8. 26 이경희
  1470. var currow = ds_main_unpreprecinfo_unprepreclist.rowposition;
  1471. //서식명을 더블클릭한 경우, 메인화면에 진료기록을 open
  1472. //2008. 1. 16 오지훈
  1473. var curcol = e.col;
  1474. if(curcol == grd_unprepreclist.getBindCellIndex("body", "formnm")){
  1475. var delyn = ds_main_unpreprecinfo_unprepreclist.getColumn(currow, "delyn");
  1476. if(delyn == "Y")
  1477. return;
  1478. fLoadUnPrepFormRec();
  1479. }
  1480. }
  1481. function button5_onclick(obj:Button, e:ClickEventInfo)
  1482. {
  1483. frmf_modal("SPMRI02300", "SPMRI02300", "", null, "", "", "", null, null, null, null, null, "M");
  1484. }
  1485. function group1_btn_cnfm_onclick(obj:Button, e:ClickEventInfo)
  1486. {
  1487. grd_unprepreclist.enable = true;
  1488. btn_requnpreppatbase.enable = true;
  1489. btn_requnprepdrbase.enable = true;
  1490. btn_realunprep.enable = true;
  1491. btn_opinfo.enable = true;
  1492. btn_totrec.enable = true;
  1493. btn_unprepcert.enable = true;
  1494. btn_del.enable = true;
  1495. btn_ex.enable = true;
  1496. btn_save.enable = true;
  1497. group1.position.height = 0;
  1498. fReqSetUnPrepDeptCD();
  1499. }
  1500. function group1_button6_onclick(obj:Button, e:ClickEventInfo)
  1501. {
  1502. grd_unprepreclist.enable = true;
  1503. btn_requnpreppatbase.enable = true;
  1504. btn_requnprepdrbase.enable = true;
  1505. btn_realunprep.enable = true;
  1506. btn_opinfo.enable = true;
  1507. btn_totrec.enable = true;
  1508. btn_unprepcert.enable = true;
  1509. btn_del.enable = true;
  1510. btn_ex.enable = true;
  1511. btn_save.enable = true;
  1512. group1.position.height = 0;
  1513. }
  1514. function btn_opinfo_onclick(obj:Button, e:ClickEventInfo)
  1515. {
  1516. var pid = "";
  1517. if(ds_init_hardcd.getColumn(0, "hardcd") == "Y")
  1518. {
  1519. if(ds_main_unpreprecinfo_unprepreclist.rowcount > 0)
  1520. {
  1521. var currow = ds_main_unpreprecinfo_unprepreclist.rowposition;
  1522. if(currow >= 0)
  1523. pid = ds_main_unpreprecinfo_unprepreclist.getColumn(currow, "pid"); // 미비조회 버튼으로 조회한 환자의 PID로 검색
  1524. else
  1525. pid = ds_main_cond_unpreppatbase.getColumn(0, "pid"); // PID로 조회한 환자의 PID로 수술정보를 검색
  1526. }
  1527. }
  1528. else
  1529. {
  1530. pid = ds_main_cond_unpreppatbase.getColumn(0, "pid"); // 조회한 환자의 PID로 검색
  1531. }
  1532. if(!utlf_isNull(pid)){
  1533. frmf_setParameter("SPMRI02700_pid", pid);
  1534. frmf_open("SPMRI02700", "SPMRI02700", null, null, "1", "400", "0", null, null, null, null, null, "M");
  1535. }else{
  1536. sysf_messageBox("등록번호를", "C001");
  1537. return;
  1538. }
  1539. }
  1540. function btn_totrec_onclick(obj:Button, e:ClickEventInfo)
  1541. {
  1542. var currow = ds_main_unpreprecinfo_unprepreclist.rowposition;
  1543. var pid = ds_main_unpreprecinfo_unprepreclist.getColumn(currow, "pid");
  1544. if(utlf_isNull(pid)){
  1545. sysf_messageBox("통합기록조회를 검색할 환자를", "C002");
  1546. return;
  1547. }
  1548. var monitorNumber = sysf_getCurrentMonitorNumber();
  1549. // var monitorResolutions = app.monitorResolution;
  1550. // var monitorResolutionsArr = monitorResolutions.split('|');
  1551. //
  1552. // var resolution = monitorResolutionsArr[monitorNumber-1];
  1553. // var resolution_width = resolution.split(',')[0];
  1554. // var resolution_height = resolution.split(',')[1];
  1555. var wndobj = frmf_findPopup("SMMRI00400");
  1556. if(wndobj != null){
  1557. frmf_setParameter("SMMRI00400_param_pid", pid);
  1558. wndobj.fInitalize();
  1559. }else{
  1560. frmf_setParameter("SMMRI00400_param_pid", pid);
  1561. //open("SMMRI00400", monitorNumber, 0, 0);
  1562. frmf_open("SMMRI00400", "SMMRI00400", null, null, monitorNumber, 0, 0, null, null, null, null, null, "M");
  1563. }
  1564. }
  1565. function bool1_onclick(obj:CheckBox, e:ClickEventInfo)
  1566. {
  1567. if(bool1.value == "Y"){
  1568. cmb_inoutddflag.enable = true;
  1569. ipt_fromdd.enable = true;
  1570. ipt_todd.enable = true;
  1571. }else{
  1572. cmb_inoutddflag.enable = false;
  1573. ipt_fromdd.enable = false;
  1574. ipt_todd.enable = false;
  1575. }
  1576. }
  1577. function button4_onclick(obj:Button, e:ClickEventInfo)
  1578. {
  1579. grd_unprepreclist.setFormatColProperty(grd_unprepreclist.getBindCellIndex("body", "indd"), "size", 75);//75
  1580. }
  1581. function button2_onclick(obj:Button, e:ClickEventInfo)
  1582. {
  1583. grd_unprepreclist.setFormatColProperty(grd_unprepreclist.getBindCellIndex("body", "indd"), "size", 0);//75
  1584. }
  1585. function button3_onclick(obj:Button, e:ClickEventInfo)
  1586. {
  1587. var objDOM = rptf_createDOM();
  1588. rptf_setNodeListToDOM(objDOM, "root/main/unpreprecinfo/unprepreclist", ds_main_unpreprecinfo_unprepreclist); // 데이터셋 1
  1589. rptf_setNodeListToDOM(objDOM, "root/main/unpreprecinfo/unprepreccnt", ds_main_unpreprecinfo_unprepreccnt); // 데이터셋 2
  1590. var objParam = new Object();
  1591. objParam.xml_data_XML1 = objDOM.documentElement.source; // 최상의노드 XML 스트링 추출
  1592. var option = "open=1;save=1;directprint=0;print=1;zoom=0;";
  1593. //var option = "open=1;save=1;directprint=1;printdialog=0;print=1;zoom=0;";
  1594. rptf_exeReportPreview30(["RPMRI01700"],[objParam], option);
  1595. }
  1596. function grd_patreclist_oncellclick(obj:Grid, e:GridClickEventInfo)
  1597. {
  1598. var currow = ds_main_patreclist_patreclist.rowposition;
  1599. var curcol = e.col;
  1600. // 그리드 header의 X를 클릭하면 그리드 hidden
  1601. if(currow == 0 && curcol == grd_patreclist.getBindCellIndex("body", "check")){
  1602. grd_patreclist.visible = false;
  1603. }
  1604. }
  1605. function grd_patreclist_onkeydown(obj:Grid, e:KeyEventInfo)
  1606. {
  1607. if(e.keycode == 13){
  1608. var trgtrow = ds_main_unpreprecinfo_unprepreclist.rowposition;
  1609. var srcrow = ds_main_patreclist_patreclist.rowposition;
  1610. if(srcrow >= 0){
  1611. var srcformcd = ds_main_patreclist_patreclist.getColumn(srcrow, "srcformcd");
  1612. var trgtsrcformcd = ds_main_unpreprecinfo_unprepreclist.getColumn(srcrow, "srcformcd");
  1613. }
  1614. }
  1615. }
  1616. function grd_patreclist_oncelldblclick(obj:Grid, e:GridClickEventInfo)
  1617. {
  1618. if(e.row >= 0 && e.col >= 0){
  1619. var trgtrow = ds_main_unpreprecinfo_unprepreclist.rowposition;
  1620. var srcrow = ds_main_patreclist_patreclist.rowposition;
  1621. var trgtformrecseq = ds_main_unpreprecinfo_unprepreclist.getColumn(trgtrow, "formrecseq");
  1622. var trgtsrcformcd = ds_main_unpreprecinfo_unprepreclist.getColumn(trgtrow, "srcformcd");
  1623. var formrecseq = ds_main_patreclist_patreclist.getColumn(srcrow, "formrecseq");
  1624. var srcformcd = ds_main_patreclist_patreclist.getColumn(srcrow, "srcformcd");
  1625. var oprsrvno = ds_main_patreclist_patreclist.getColumn(srcrow, "oprsrvno");
  1626. if(formrecseq <= 0){
  1627. return;
  1628. }
  1629. if(trgtsrcformcd == srcformcd){
  1630. var checkcol = grd_unprepreclist.getBindCellIndex("body", "check");
  1631. ds_main_unpreprecinfo_unprepreclist.setColumn(trgtrow, "formrecseq", formrecseq);
  1632. ds_main_unpreprecinfo_unprepreclist.setColumn(trgtrow, "check" , "V");
  1633. ds_main_unpreprecinfo_unprepreclist.setColumn(trgtrow, "status", "uf");
  1634. ds_main_unpreprecinfo_unprepreclist.setColumn(trgtrow, "oprsrvno", oprsrvno);
  1635. ds_main_patreclist_patreclist.setColumn(srcrow, "check", "<<");
  1636. // ds_main_unpreprecinfo_unprepreclist.enableevent = false;
  1637. // ds_main_unpreprecinfo_unprepreclist.updatecontrol = false;
  1638. ds_main_unpreprecinfo_unprepreclist.setColumn(trgtrow, "bkcolorcheck", "#800080");
  1639. // ds_main_unpreprecinfo_unprepreclist.updatecontrol = true;
  1640. // ds_main_unpreprecinfo_unprepreclist.enableevent = true;
  1641. }else{
  1642. sysf_messageBox("서로 다른 서식", "I009");
  1643. return;
  1644. }
  1645. }
  1646. }
  1647. function group2_button7_onclick(obj:Button, e:ClickEventInfo)
  1648. {
  1649. grd_unprepreclist.enable = true;
  1650. btn_requnpreppatbase.enable = true;
  1651. btn_requnprepdrbase.enable = true;
  1652. btn_realunprep.enable = true;
  1653. btn_opinfo.enable = true;
  1654. btn_totrec.enable = true;
  1655. btn_unprepcert.enable = true;
  1656. btn_del.enable = true;
  1657. btn_ex.enable = true;
  1658. btn_save.enable = true;
  1659. group2.position.height = 0;
  1660. reqGetUnPrepCreateExcelFile();
  1661. }
  1662. function group2_button8_onclick(obj:Button, e:ClickEventInfo)
  1663. {
  1664. grd_unprepreclist.enable = true;
  1665. btn_requnpreppatbase.enable = true;
  1666. btn_requnprepdrbase.enable = true;
  1667. btn_realunprep.enable = true;
  1668. btn_opinfo.enable = true;
  1669. btn_totrec.enable = true;
  1670. btn_unprepcert.enable = true;
  1671. btn_del.enable = true;
  1672. btn_ex.enable = true;
  1673. btn_save.enable = true;
  1674. group2.position.height = 0;
  1675. }
  1676. function group3_button9_onclick(obj:Button, e:ClickEventInfo)
  1677. {
  1678. grd_unprepreclist.enable = true;
  1679. btn_requnpreppatbase.enable = true;
  1680. btn_requnprepdrbase.enable = true;
  1681. btn_realunprep.enable = true;
  1682. btn_opinfo.enable = true;
  1683. btn_totrec.enable = true;
  1684. btn_unprepcert.enable = true;
  1685. btn_del.enable = true;
  1686. btn_ex.enable = true;
  1687. btn_save.enable = true;
  1688. group3.position.height = 0;
  1689. fSetDetlDeptCD();
  1690. }
  1691. function group3_button10_onclick(obj:Button, e:ClickEventInfo)
  1692. {
  1693. grd_unprepreclist.enable = true;
  1694. btn_requnpreppatbase.enable = true;
  1695. btn_requnprepdrbase.enable = true;
  1696. btn_realunprep.enable = true;
  1697. btn_opinfo.enable = true;
  1698. btn_totrec.enable = true;
  1699. btn_unprepcert.enable = true;
  1700. btn_del.enable = true;
  1701. btn_ex.enable = true;
  1702. btn_save.enable = true;
  1703. group3.position.height = 0;
  1704. }
  1705. function chk_merge_onclick(obj:CheckBox, e:ClickEventInfo)
  1706. {
  1707. if(obj.value == "1"){
  1708. fDoMergeUnPrepRecList();
  1709. }else{
  1710. fDoUnMergeUnPrepRecList();
  1711. }
  1712. }
  1713. function btn_save_onclick(obj:Button, e:ClickEventInfo)
  1714. {
  1715. fSaveUnPrepInfo();
  1716. }
  1717. function grd_patreclist_onheadclick(obj:Grid, e:GridClickEventInfo)
  1718. {
  1719. var currow = ds_main_patreclist_patreclist.rowposition;
  1720. var curcol = e.col;
  1721. // 그리드 header의 X를 클릭하면 그리드 hidden
  1722. if(curcol == 0){
  1723. grd_patreclist.visible = false;
  1724. }
  1725. }
  1726. function pmnmenu1_onmenuclick(obj:PopupMenu, e:MenuClickEventInfo)
  1727. {
  1728. eval(e.id + "()");
  1729. }
  1730. var clientX = 0;
  1731. var clientY = 0;
  1732. function grd_unprepreclist_onrbuttonup(obj:Grid, e:GridMouseEventInfo)
  1733. {
  1734. if(e.row < 0 || e.col < 0) return;
  1735. grdf_setSelectedCell(obj, e);
  1736. clientX = e.clientX;
  1737. clientY = e.clientY;
  1738. pmnmenu1.trackPopup(e.screenX,e.screenY);
  1739. }
  1740. function grd_unprepreclist_onrbuttondown(obj:Grid, e:GridMouseEventInfo)
  1741. {
  1742. if(e.row < 0 || e.col < 0) return;
  1743. grdf_setSelectedCell(obj, e);
  1744. }
  1745. function grd_unprepreclist_onkeyup(obj:Grid, e:KeyEventInfo)
  1746. {
  1747. // if(e.keycode == 27)
  1748. // {
  1749. // var cloakval = grd_patreclist.visible;
  1750. // if(cloakval == "visible")
  1751. // {
  1752. // grd_patreclist.visible = false;
  1753. // }
  1754. // else
  1755. // {
  1756. // var currow = ds_main_unpreprecinfo_unprepreclist.rowposition;
  1757. // var pid = ds_main_unpreprecinfo_unprepreclist.getColumn(currow, "pid");
  1758. // var orddd = ds_main_unpreprecinfo_unprepreclist.getColumn(currow, "indd");
  1759. // var cretno= ds_main_unpreprecinfo_unprepreclist.getColumn(currow, "cretno");
  1760. //
  1761. // if(pid != sBFPID ||(utlf_isNull(sBFPID) && utlf_isNull(sBFORDDD) && utlf_isNull(sBFCRETNO))|| (pid == sBFPID && (orddd != sBFORDDD || cretno != sBFCRETNO)))
  1762. // {
  1763. // fReqGetPatRecList(pid, orddd, cretno);
  1764. //
  1765. // sBFPID = pid;
  1766. // sBFORDDD = orddd;
  1767. // sBFCRETNO= cretno;
  1768. // }
  1769. //
  1770. // grd_patreclist.visible = true;
  1771. // }
  1772. // }
  1773. }
  1774. function SMMRI02800_onkeydown(obj:Form, e:KeyEventInfo)
  1775. {
  1776. if(e.keycode == 27)
  1777. {
  1778. var cloakval = grd_patreclist.visible;
  1779. if(cloakval == "visible")
  1780. {
  1781. grd_patreclist.visible = false;
  1782. }
  1783. else
  1784. {
  1785. var currow = ds_main_unpreprecinfo_unprepreclist.rowposition;
  1786. var pid = ds_main_unpreprecinfo_unprepreclist.getColumn(currow, "pid");
  1787. var orddd = ds_main_unpreprecinfo_unprepreclist.getColumn(currow, "indd");
  1788. var cretno= ds_main_unpreprecinfo_unprepreclist.getColumn(currow, "cretno");
  1789. if(pid != sBFPID ||(utlf_isNull(sBFPID) && utlf_isNull(sBFORDDD) && utlf_isNull(sBFCRETNO))|| (pid == sBFPID && (orddd != sBFORDDD || cretno != sBFCRETNO)))
  1790. {
  1791. fReqGetPatRecList(pid, orddd, cretno);
  1792. sBFPID = pid;
  1793. sBFORDDD = orddd;
  1794. sBFCRETNO= cretno;
  1795. }
  1796. grd_patreclist.visible = true;
  1797. }
  1798. }
  1799. }
  1800. function btn_ErStaff_onclick(obj:Button, e:ClickEventInfo)
  1801. {
  1802. frmf_modal("SPMRI03200", "SPMRI03200", null, null, null, null, null, null, null, null, null, null, "M");
  1803. }
  1804. ]]></Script>
  1805. </Form>
  1806. </FDL>