SMMNP00800_수술실간호기록-수술료 마감.xfdl 109 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SMMNP00800" position="absolute 0 0 1195 750" titletext="수술실간호기록/수술료 마감" onload="SMMNP00800_onload" ontimer="SMMNP00800_ontimer">
  5. <Layouts>
  6. <Layout>
  7. <Div position="absolute 0 83 1195 750" id="grp_anstlist" anchor="all">
  8. <Layouts>
  9. <Layout width="1195" height="667">
  10. <Grid position="absolute 0 59 1194 667" id="grd_anstlist" class="datagrid2" binddataset="ds_main_anstendlist" onrbuttondown="grp_anstlist_grd_anstlist_onrbuttondown" oncelldblclick="grp_anstlist_grd_anstlist_oncelldblclick" anchor="all" onheadclick="grp_anstlist_grd_anstlist_onheadclick" oncellclick="grp_anstlist_grd_anstlist_oncellclick" onrbuttonup="grp_anstlist_grd_anstlist_onrbuttonup" autofittype="col">
  11. <Formats>
  12. <Format id="default">
  13. <Columns>
  14. <Column size="25"/>
  15. <Column size="35"/>
  16. <Column size="50"/>
  17. <Column size="35"/>
  18. <Column size="50"/>
  19. <Column size="35"/>
  20. <Column size="50"/>
  21. <Column size="40"/>
  22. <Column size="120"/>
  23. <Column size="50"/>
  24. <Column size="60"/>
  25. <Column size="75"/>
  26. <Column size="70"/>
  27. <Column size="50"/>
  28. <Column size="230"/>
  29. <Column size="80"/>
  30. <Column size="75"/>
  31. <Column size="50"/>
  32. <Column size="35"/>
  33. <Column size="35"/>
  34. <Column size="0"/>
  35. <Column size="0"/>
  36. <Column size="0"/>
  37. <Column size="0"/>
  38. </Columns>
  39. <Rows>
  40. <Row size="30" band="head"/>
  41. <Row size="24"/>
  42. </Rows>
  43. <Band id="head">
  44. <Cell/>
  45. <Cell col="1" displaytype="checkbox" edittype="checkbox"/>
  46. <Cell col="2" text="마취&#10;처방"/>
  47. <Cell col="3" displaytype="checkbox" edittype="checkbox"/>
  48. <Cell col="4" text="회복실&#10;처방"/>
  49. <Cell col="5" displaytype="checkbox" edittype="checkbox"/>
  50. <Cell col="6" text="회복실&#10;기록"/>
  51. <Cell col="7" text="방"/>
  52. <Cell col="8" text="수술일시"/>
  53. <Cell col="9" text="과"/>
  54. <Cell col="10" text="병실"/>
  55. <Cell col="11" text="환자명"/>
  56. <Cell col="12" text="등록번호"/>
  57. <Cell col="13" text="S/A"/>
  58. <Cell col="14" text="수술명"/>
  59. <Cell col="15" text="마취방법"/>
  60. <Cell col="16" text="마취의"/>
  61. <Cell col="17" text="구분"/>
  62. <Cell col="18" text="협진"/>
  63. <Cell col="19" text="보험"/>
  64. <Cell col="20"/>
  65. <Cell col="21"/>
  66. <Cell col="22"/>
  67. <Cell col="23"/>
  68. </Band>
  69. <Band id="body">
  70. <Cell celltype="head" text="expr:currow + 1"/>
  71. <Cell col="1" displaytype="checkbox" edittype="checkbox" text="bind:anstprcpchk"/>
  72. <Cell col="2" text="bind:anstprcp"/>
  73. <Cell col="3" displaytype="checkbox" edittype="checkbox" text="bind:recovprcprchk"/>
  74. <Cell col="4" text="bind:recovprcp"/>
  75. <Cell col="5" displaytype="checkbox" edittype="checkbox" text="bind:recovrecchk"/>
  76. <Cell col="6" text="bind:recovrec"/>
  77. <Cell col="7" text="bind:oproomnm"/>
  78. <Cell col="8" text="bind:opcnfmdt" wordwrap="char"/>
  79. <Cell col="9" text="bind:deptnm"/>
  80. <Cell col="10" text="bind:roomcd"/>
  81. <Cell col="11" text="bind:patnm" wordwrap="char"/>
  82. <Cell col="12" text="bind:pid"/>
  83. <Cell col="13" text="bind:sa"/>
  84. <Cell col="14" style="align:left middle;" text="bind:opnm" wordwrap="char"/>
  85. <Cell col="15" style="align:left middle;" text="bind:anstmthnm" wordwrap="char"/>
  86. <Cell col="16" style="align:center middle;" text="bind:anstnm" wordwrap="char"/>
  87. <Cell col="17" style="align:center middle;" text="bind:optype"/>
  88. <Cell col="18" text="bind:cnst"/>
  89. <Cell col="19" text="bind:insu"/>
  90. <Cell col="20" text="bind:indd"/>
  91. <Cell col="21" text="bind:orddeptcd"/>
  92. <Cell col="22" text="bind:instcd"/>
  93. <Cell col="23" text="bind:perfdrid1"/>
  94. </Band>
  95. </Format>
  96. </Formats>
  97. </Grid>
  98. <Shape position="absolute 0 54 1195 60" linetype="horizontal" id="line9" class="line_1" style="strokepen:3 solid #33bbbbff;" anchor="left top right"/>
  99. <Static text="총수술건수" position="absolute 3 2 76 25" align="align:center middle;" id="caption16" class="cell_1" anchor="default"/>
  100. <Static text="수술건수" position="absolute 3 28 76 51" align="align:center middle;" id="caption17" class="cell_1" anchor="default"/>
  101. <Static text="마취 처방" position="absolute 162 2 257 25" align="align:center middle;" id="caption22" class="cell_1" anchor="default"/>
  102. <Static text="임시" position="absolute 260 2 300 25" align="align:center middle;" id="caption23" class="cell_1" anchor="default"/>
  103. <Static text="확정" position="absolute 305 2 345 25" align="align:center middle;" id="caption24" class="cell_1" anchor="default"/>
  104. <Static text="마감" position="absolute 350 2 390 25" align="align:center middle;" id="caption25" class="cell_1" anchor="default"/>
  105. <Edit position="absolute 78 3 140 24" align="align:right middle;" id="input11" anchor="default" style="align:center middle; :disabled {color:black;}" enable="true"/>
  106. <Edit position="absolute 78 29 140 50" align="align:right middle;" id="input12" anchor="default" style="align:center middle; :disabled {color:black;}" enable="true"/>
  107. <Edit position="absolute 350 29 390 50" align="align:right middle;" id="input15" anchor="default" style="align:center middle; :disabled {color:black;}" enable="true"/>
  108. <Edit position="absolute 305 29 345 50" align="align:right middle;" id="input16" anchor="default" style="align:center middle; :disabled {color:black;}" enable="true"/>
  109. <Edit position="absolute 260 29 300 50" align="align:right middle;" id="input17" anchor="default" style="align:center middle; :disabled {color:black;}" enable="true"/>
  110. <Shape position="absolute 0 24 901 30" linetype="horizontal" id="line10" class="line_2" anchor="default"/>
  111. <Shape position="absolute 0 50 901 56" linetype="horizontal" id="line12" class="line_2" anchor="default"/>
  112. <Shape position="absolute 645 1 651 52" linetype="vertical" id="line14" class="line_2" anchor="default"/>
  113. <Shape position="absolute 899 0 905 52" linetype="vertical" id="line15" class="line_2" anchor="default"/>
  114. <Shape position="absolute 141 1 147 52" linetype="vertical" id="line17" class="line_2" anchor="default"/>
  115. <Shape position="absolute 300 0 306 52" linetype="vertical" id="line18" class="line_2" anchor="default"/>
  116. <Button position="absolute 1033 33 1113 53" id="button2" class="btn4" text="마감완료" onclick="grp_anstlist_button2_onclick" anchor="top right"/>
  117. <Button position="absolute 1115 33 1195 53" id="button3" class="btn4" text="마감취소" onclick="grp_anstlist_button3_onclick" anchor="top right"/>
  118. <Edit position="absolute 515 29 555 50" align="align:right middle;" id="input18" anchor="default" style="align:center middle; :disabled {color:black;}" enable="true"/>
  119. <Static text="회복실 처방" position="absolute 417 2 512 25" align="align:center middle;" id="caption26" class="cell_1" anchor="default"/>
  120. <Static text="임시" position="absolute 515 2 555 25" align="align:center middle;" id="caption27" class="cell_1" anchor="default"/>
  121. <Static text="확정" position="absolute 560 2 600 25" align="align:center middle;" id="caption28" class="cell_1" anchor="default"/>
  122. <Static text="마감" position="absolute 605 2 645 25" align="align:center middle;" id="caption29" class="cell_1" anchor="default"/>
  123. <Edit position="absolute 605 29 645 50" align="align:right middle;" id="input19" anchor="default" style="align:center middle; :disabled {color:black;}" enable="true"/>
  124. <Edit position="absolute 560 29 600 50" align="align:right middle;" id="input20" anchor="default" style="align:center middle; :disabled {color:black;}" enable="true"/>
  125. <Shape position="absolute 809 0 815 51" linetype="vertical" id="line19" class="line_2" anchor="default"/>
  126. <Edit position="absolute 814 29 854 50" align="align:right middle;" id="input13" anchor="default" style="align:center middle; :disabled {color:black;}" enable="true"/>
  127. <Static text="회복실 기록지" position="absolute 671 2 766 25" align="align:center middle;" id="caption19" class="cell_1" anchor="default"/>
  128. <Static text="임시" position="absolute 769 2 809 25" align="align:center middle;" id="caption20" class="cell_1" anchor="default"/>
  129. <Static text="확정" position="absolute 814 2 854 25" align="align:center middle;" id="caption21" class="cell_1" anchor="default"/>
  130. <Edit position="absolute 769 29 809 50" align="align:right middle;" id="input14" anchor="default" style="align:center middle; :disabled {color:black;}" enable="true"/>
  131. <Static text="마감" position="absolute 859 2 899 25" align="align:center middle;" id="caption30" class="cell_1" anchor="default"/>
  132. <Edit position="absolute 859 29 899 50" align="align:right middle;" id="input21" anchor="default" style="align:center middle; :disabled {color:black;}" enable="true"/>
  133. <Shape id="line00" class="line_2" position="absolute 0 -2 901 4" anchor="default"/>
  134. <Shape id="line01" linetype="vertical" class="line_2" position="absolute 345 0 351 52" anchor="default"/>
  135. <Shape id="line02" linetype="vertical" class="line_2" position="absolute 555 0 561 52" anchor="default"/>
  136. <Shape id="line03" linetype="vertical" class="line_2" position="absolute 600 0 606 52" anchor="default"/>
  137. <Shape id="line04" linetype="vertical" class="line_2" position="absolute 854 0 860 51" anchor="default"/>
  138. <Shape id="line05" linetype="vertical" class="line_2" position="absolute -2 1 4 52" anchor="default"/>
  139. <Shape id="line06" linetype="vertical" class="line_2" position="absolute 390 0 396 52" anchor="default"/>
  140. </Layout>
  141. </Layouts>
  142. </Div>
  143. <Div id="grp_oplist" taborder="1" position="absolute 0 83 1195 750" anchor="all">
  144. <Layouts>
  145. <Layout width="1195" height="667">
  146. <Grid id="grd_oplist" class="datagrid2" taborder="40" useinputpanel="false" position="absolute 0 59 1195 667" binddataset="ds_main_opendlist" anchor="all" onrbuttondown="grp_oplist_grd_oplist_onrbuttondown" oncelldblclick="grp_oplist_grd_oplist_oncelldblclick" cellsizebandtype="allband" cellsizingtype="both" onheadclick="grp_oplist_grd_oplist_onheadclick" oncellclick="grp_oplist_grd_oplist_oncellclick" onrbuttonup="grp_oplist_grd_oplist_onrbuttonup" extendsizetype="row" selecttype="multirow" cellclickbound="cell" autosizingtype="none" autosizebandtype="allband">
  147. <Formats>
  148. <Format id="default">
  149. <Columns>
  150. <Column size="25" band="left"/>
  151. <Column size="35" band="left"/>
  152. <Column size="40" band="left"/>
  153. <Column size="35" band="left"/>
  154. <Column size="40" band="left"/>
  155. <Column size="35" band="left"/>
  156. <Column size="0" band="left"/>
  157. <Column size="40" band="left"/>
  158. <Column size="0" band="left"/>
  159. <Column size="65" band="left"/>
  160. <Column size="67" band="left"/>
  161. <Column size="40" band="left"/>
  162. <Column size="65"/>
  163. <Column size="223"/>
  164. <Column size="210"/>
  165. <Column size="40"/>
  166. <Column size="40"/>
  167. <Column size="40"/>
  168. <Column size="47"/>
  169. <Column size="45"/>
  170. <Column size="50"/>
  171. <Column size="62"/>
  172. <Column size="47"/>
  173. <Column size="100"/>
  174. <Column size="100"/>
  175. <Column size="100"/>
  176. <Column size="100"/>
  177. <Column size="100"/>
  178. <Column size="100"/>
  179. <Column size="61"/>
  180. <Column size="54"/>
  181. <Column size="65"/>
  182. <Column size="62"/>
  183. <Column size="40"/>
  184. <Column size="40"/>
  185. <Column size="54"/>
  186. <Column size="0"/>
  187. <Column size="0"/>
  188. <Column size="0"/>
  189. <Column size="0"/>
  190. <Column size="0"/>
  191. <Column size="0"/>
  192. <Column size="0"/>
  193. <Column size="0"/>
  194. <Column size="0"/>
  195. <Column size="0"/>
  196. <Column size="0"/>
  197. <Column size="0"/>
  198. <Column size="0"/>
  199. <Column size="0"/>
  200. <Column size="0"/>
  201. <Column size="0"/>
  202. <Column size="0"/>
  203. <Column size="0"/>
  204. <Column size="0"/>
  205. <Column size="0"/>
  206. <Column size="0"/>
  207. <Column size="0"/>
  208. <Column size="0"/>
  209. <Column size="0"/>
  210. <Column size="0"/>
  211. <Column size="0"/>
  212. <Column size="0"/>
  213. <Column size="186"/>
  214. </Columns>
  215. <Rows>
  216. <Row size="30" band="head"/>
  217. <Row size="30"/>
  218. </Rows>
  219. <Band id="head">
  220. <Cell autosizerow="limitmin"/>
  221. <Cell col="1" displaytype="checkbox" edittype="checkbox" autosizerow="limitmin"/>
  222. <Cell col="2" text="간호&#10;기록" autosizerow="limitmin"/>
  223. <Cell col="3" displaytype="checkbox" edittype="checkbox" autosizerow="limitmin"/>
  224. <Cell col="4" text="간호&#10;처방" autosizerow="limitmin"/>
  225. <Cell col="5" text="방" autosizerow="limitmin"/>
  226. <Cell col="6" text="수술일시" autosizerow="limitmin"/>
  227. <Cell col="7" text="과" autosizerow="limitmin"/>
  228. <Cell col="8" text="병실" autosizerow="limitmin"/>
  229. <Cell col="9" text="환자명" autosizerow="limitmin"/>
  230. <Cell col="10" text="등록번호" autosizerow="limitmin"/>
  231. <Cell col="11" text="S/A" autosizerow="limitmin"/>
  232. <Cell col="12" text="집도의" autosizerow="limitmin"/>
  233. <Cell col="13" text="진단명" autosizerow="limitmin"/>
  234. <Cell col="14" text="수술명" autosizerow="limitmin"/>
  235. <Cell col="15" text="수술&#10;준비" autosizerow="limitmin"/>
  236. <Cell col="16" text="간호&#10;기록" autosizerow="limitmin"/>
  237. <Cell col="17" text="간호&#10;처방" autosizerow="limitmin"/>
  238. <Cell col="18" text="수술&#10;스케일" autosizerow="limitmin"/>
  239. <Cell col="19" text="수술&#10;구분" autosizerow="limitmin"/>
  240. <Cell col="20" text="최종&#13;&#10;Scrub" autosizerow="limitmin"/>
  241. <Cell col="21" text="최종&#13;&#10;Circulating" autosizerow="limitmin"/>
  242. <Cell col="22" text="내시경&#10;사용" autosizerow="limitmin"/>
  243. <Cell col="23" text="입실시간"/>
  244. <Cell col="24" text="마취시작시간"/>
  245. <Cell col="25" text="수술시작시간"/>
  246. <Cell col="26" displaytype="normal" text="수술종료시간" calendardisplaynulltype="none"/>
  247. <Cell col="27" text="마취종료시간"/>
  248. <Cell col="28" text="퇴실일시" autosizerow="limitmin"/>
  249. <Cell col="29" text="기록&#13;&#10;일치여부"/>
  250. <Cell col="30" text="입실~&#13;&#10;퇴실시간"/>
  251. <Cell col="31" text="총마취&#13;&#10;시간"/>
  252. <Cell col="32" text="수술&#13;&#10;소요시간"/>
  253. <Cell col="33" text="시간&#13;&#10;체크"/>
  254. <Cell col="34" text="마취&#13;&#10;구분"/>
  255. <Cell col="35" text="수술포&#13;&#10;처방유무"/>
  256. <Cell col="36" text="수술료" autosizerow="limitmin"/>
  257. <Cell col="37" text="마취료" autosizerow="limitmin"/>
  258. <Cell col="38" text="퇴실&#10;장소" autosizerow="limitmin"/>
  259. <Cell col="39" text="Pat" autosizerow="limitmin"/>
  260. <Cell col="40" text="Cy" autosizerow="limitmin"/>
  261. <Cell col="41" text="Cul" autosizerow="limitmin"/>
  262. <Cell col="42" text="Fro" autosizerow="limitmin"/>
  263. <Cell col="43" text="Oth" autosizerow="limitmin"/>
  264. <Cell col="44" text="Bar" autosizerow="limitmin"/>
  265. <Cell col="45" autosizerow="limitmin"/>
  266. <Cell col="46" autosizerow="limitmin"/>
  267. <Cell col="47" autosizerow="limitmin"/>
  268. <Cell col="48" autosizerow="limitmin"/>
  269. <Cell col="49" autosizerow="limitmin"/>
  270. <Cell col="50" autosizerow="limitmin"/>
  271. <Cell col="51" autosizerow="limitmin"/>
  272. <Cell col="52" autosizerow="limitmin"/>
  273. <Cell col="53" autosizerow="limitmin"/>
  274. <Cell col="54" autosizerow="limitmin"/>
  275. <Cell col="55" autosizerow="limitmin"/>
  276. <Cell col="56" autosizerow="limitmin"/>
  277. <Cell col="57" autosizerow="limitmin"/>
  278. <Cell col="58" autosizerow="limitmin"/>
  279. <Cell col="59" autosizerow="limitmin"/>
  280. <Cell col="60" autosizerow="limitmin"/>
  281. <Cell col="61" autosizerow="limitmin"/>
  282. <Cell col="62" autosizerow="limitmin"/>
  283. <Cell col="63" text="시간 오류 내역"/>
  284. </Band>
  285. <Band id="body">
  286. <Cell celltype="head" text="expr:currow + 1"/>
  287. <Cell col="1" displaytype="checkbox" edittype="checkbox" text="bind:oprecchk" expr="expr:(oprecchk == 'true' || oprecchk == '1') ? 1 : 0"/>
  288. <Cell col="2" text="bind:oprec" wordwrap="char"/>
  289. <Cell col="3" displaytype="checkbox" edittype="checkbox" text="bind:opprcpchk" expr="expr:(opprcpchk == 'true' || opprcpchk == '1') ? 1 : 0"/>
  290. <Cell col="4" text="bind:opprcp" wordwrap="char"/>
  291. <Cell col="5" style="padding:2 2 2 2;" text="bind:oproomnm" wordwrap="char" autosizerow="limitmin"/>
  292. <Cell col="6" style="padding:0 0 0 0;" text="bind:opcnfmdt" wordwrap="char"/>
  293. <Cell col="7" style="padding:0 0 0 0;" text="bind:deptnm" wordwrap="char"/>
  294. <Cell col="8" text="bind:roomcd" wordwrap="char"/>
  295. <Cell col="9" text="bind:patnm" wordwrap="char"/>
  296. <Cell col="10" text="bind:pid" wordwrap="char"/>
  297. <Cell col="11" text="bind:sa" wordwrap="char"/>
  298. <Cell col="12" text="bind:perfnm" wordwrap="char"/>
  299. <Cell col="13" style="align:left middle;padding:2 2 2 2;" text="bind:diagnm" wordwrap="char"/>
  300. <Cell col="14" style="align:left middle;padding:2 2 2 2;" text="bind:opnm" wordwrap="char"/>
  301. <Cell col="15" text="bind:preop" wordwrap="char"/>
  302. <Cell col="16" text="bind:nurserec" wordwrap="char"/>
  303. <Cell col="17" text="bind:nurseprcp" wordwrap="char"/>
  304. <Cell col="18" text="bind:opscale" wordwrap="char"/>
  305. <Cell col="19" text="bind:optype" wordwrap="char"/>
  306. <Cell col="20" text="bind:scrub" wordwrap="char"/>
  307. <Cell col="21" text="bind:cir" wordwrap="char"/>
  308. <Cell col="22" text="bind:escopeeqmtuseyn" wordwrap="char"/>
  309. <Cell col="23" displaytype="date" text="bind:patinroomdt" wordwrap="char" mask="yyyy-MM-dd HH:mm" calendardisplaynulltype="none"/>
  310. <Cell col="24" displaytype="date" text="bind:anstfromdt" mask="yyyy-MM-dd HH:mm"/>
  311. <Cell col="25" displaytype="date" text="bind:opfromdt" wordwrap="char" mask="yyyy-MM-dd HH:mm" calendardisplaynulltype="none"/>
  312. <Cell col="26" displaytype="date" text="bind:optodt" mask="yyyy-MM-dd HH:mm" calendardisplaynulltype="none"/>
  313. <Cell col="27" displaytype="date" text="bind:ansttodt" mask="yyyy-MM-dd HH:mm"/>
  314. <Cell col="28" displaytype="date" text="bind:patoutroomdt" wordwrap="char" mask="yyyy-MM-dd HH:mm" calendardisplaynulltype="none"/>
  315. <Cell col="29" text="bind:recmatchyn"/>
  316. <Cell col="30" displaytype="normal" text="bind:oproomstytime"/>
  317. <Cell col="31" style="align:center;" text="bind:ansttime"/>
  318. <Cell col="32" displaytype="text" style="align:center;" text="bind:optime" calendardisplaynulltype="none"/>
  319. <Cell col="33" text="bind:totalelapsedtimecheck" calendardisplaynulltype="none"/>
  320. <Cell col="34" displaytype="combo" style="align:center;" text="bind:anstmthdcd" combodataset="ds_init_anst" combocodecol="codecolumn" combodatacol="datacolumn"/>
  321. <Cell col="35" style="align:center;" text="bind:opsheetyn"/>
  322. <Cell col="36" text="bind:opcost" wordwrap="char"/>
  323. <Cell col="37" text="bind:anstcost" wordwrap="char"/>
  324. <Cell col="38" style="padding:2 2 2 2;" text="bind:outpos" wordwrap="char"/>
  325. <Cell col="39" text="bind:pathology" wordwrap="char"/>
  326. <Cell col="40" text="bind:cytology" wordwrap="char"/>
  327. <Cell col="41" text="bind:culture" wordwrap="char"/>
  328. <Cell col="42" text="bind:frozen" wordwrap="char"/>
  329. <Cell col="43" text="bind:others" wordwrap="char"/>
  330. <Cell col="44" text="bind:barcode" wordwrap="char"/>
  331. <Cell col="45" text="bind:ophistcd"/>
  332. <Cell col="46" text="bind:ophistno"/>
  333. <Cell col="47" text="bind:oppatflagcd"/>
  334. <Cell col="48" text="bind:wardnm"/>
  335. <Cell col="49" text="bind:opcnfmdd"/>
  336. <Cell col="50" text="bind:disp1"/>
  337. <Cell col="51" text="bind:disp2"/>
  338. <Cell col="52" text="bind:disp3"/>
  339. <Cell col="53" text="bind:ccrtstat"/>
  340. <Cell col="54" text="bind:oproomcd"/>
  341. <Cell col="55" text="bind:deptcd"/>
  342. <Cell col="56" text="bind:oprsrvno"/>
  343. <Cell col="57" text="bind:prcpendflag"/>
  344. <Cell col="58" text="bind:recendflag"/>
  345. <Cell col="59" text="bind:indd"/>
  346. <Cell col="60" text="bind:orddeptcd"/>
  347. <Cell col="61" text="bind:instcd"/>
  348. <Cell col="62" text="bind:perfdrid1"/>
  349. <Cell col="63" style="align:left;" text="bind:timeerrmsg"/>
  350. </Band>
  351. </Format>
  352. </Formats>
  353. </Grid>
  354. <Shape id="line1" class="line_1" position="absolute 0 54 1195 60" style="strokepen:3 solid #33bbbbff;" anchor="left top right"/>
  355. <Static id="caption18" text="총수술건수" class="cell_1" position="absolute 3 2 76 25" anchor="default"/>
  356. <Static id="caption1" text="수술건수" class="cell_1" position="absolute 3 28 76 51" anchor="default"/>
  357. <Static id="caption2" text="수술료" class="cell_1" position="absolute 160 2 210 25" anchor="default"/>
  358. <Static id="caption3" text="발행" class="cell_1" position="absolute 215 2 255 25" anchor="default"/>
  359. <Static id="caption5" text="수술간호기록" class="cell_1" position="absolute 280 2 375 25" anchor="default"/>
  360. <Static id="caption7" text="임시" class="cell_1" position="absolute 380 2 420 25" anchor="default"/>
  361. <Static id="caption8" text="확정" class="cell_1" position="absolute 425 2 465 25" anchor="default"/>
  362. <Static id="caption9" text="마감" class="cell_1" position="absolute 470 2 510 25" anchor="default"/>
  363. <Edit id="input1" taborder="41" position="absolute 78 3 140 24" anchor="default" style="align:center middle;" autoselect="true"/>
  364. <Edit id="input2" taborder="42" position="absolute 78 29 140 50" anchor="default" style="align:center middle;" autoselect="true"/>
  365. <Edit id="input3" taborder="43" position="absolute 215 29 255 50" anchor="default" style="align:center middle;" autoselect="true"/>
  366. <Edit id="input5" taborder="44" position="absolute 470 29 510 50" anchor="default" style="align:center middle;"/>
  367. <Edit id="input6" taborder="45" position="absolute 425 29 465 50" anchor="default" style="align:center middle;"/>
  368. <Edit id="input7" taborder="46" position="absolute 380 29 420 50" anchor="default" style="align:center middle;"/>
  369. <Shape id="line11" class="line_2" position="absolute -45 24 766 30" anchor="default"/>
  370. <Shape id="line2" class="line_2" position="absolute -45 50 766 56" anchor="default"/>
  371. <Shape id="line3" class="line_2" position="absolute -45 -2 766 4" style="strokepen:1 solid #dedcdcff;" anchor="default"/>
  372. <Shape id="line6" linetype="vertical" class="line_2" position="absolute 141 0 147 52" anchor="default"/>
  373. <Button id="bbt_tSave" taborder="47" text="마감완료" class="btn4" position="absolute 1033 33 1113 53" anchor="top right" onclick="grp_oplist_bbt_tSave_onclick"/>
  374. <Button id="button1" taborder="48" text="마감취소" class="btn4" position="absolute 1115 33 1195 53" anchor="top right" onclick="grp_oplist_button1_onclick"/>
  375. <Edit id="input8" taborder="49" position="absolute 635 29 675 50" anchor="default" style="align:center middle;"/>
  376. <Static id="caption10" text="수술간호처방" class="cell_1" position="absolute 535 2 630 25" anchor="default"/>
  377. <Static id="caption12" text="임시" class="cell_1" position="absolute 635 2 675 25" anchor="default"/>
  378. <Static id="caption13" text="확정" class="cell_1" position="absolute 680 2 720 25" anchor="default"/>
  379. <Static id="caption14" text="마감" class="cell_1" position="absolute 725 2 765 25" anchor="default"/>
  380. <Edit id="input9" taborder="50" position="absolute 725 29 765 50" anchor="default" style="align:center middle;"/>
  381. <Edit id="input10" taborder="51" position="absolute 680 29 720 50" anchor="default" style="align:center middle;"/>
  382. <Shape id="line8" linetype="vertical" class="line_2" position="absolute 764 0 770 53" anchor="default"/>
  383. <Shape id="line00" linetype="vertical" class="line_2" position="absolute -2 0 4 52" anchor="default"/>
  384. <Shape id="line04" linetype="vertical" class="line_2" position="absolute 257 0 263 52" anchor="default"/>
  385. <Shape id="line05" linetype="vertical" class="line_2" position="absolute 420 0 426 52" anchor="default"/>
  386. <Shape id="line07" linetype="vertical" class="line_2" position="absolute 465 0 471 52" anchor="default"/>
  387. <Shape id="line09" linetype="vertical" class="line_2" position="absolute 510 0 516 52" anchor="default"/>
  388. <Shape id="line10" linetype="vertical" class="line_2" position="absolute 675 0 681 52" anchor="default"/>
  389. <Shape id="line12" linetype="vertical" class="line_2" position="absolute 720 -1 726 51" anchor="default"/>
  390. </Layout>
  391. </Layouts>
  392. </Div>
  393. <Div position="absolute 0 25 1195 82" align="align:center top;" id="grp" class="div_SA" anchor="left top right">
  394. <Layouts>
  395. <Layout>
  396. <Button position="absolute 1047 21 1103 41" id="btn_search" class="btn1" text="조회" onclick="grp_btn_search_onclick" anchor="top right"/>
  397. <Shape position="absolute 1032 14 1038 47" linetype="vertical" id="line43" class="line_4" anchor="top right"/>
  398. <Combo position="absolute 588 31 643 51" id="cmb_oproomlist" class="combo_default" innerdataset="@ds_init_oproomlist" datacolumn="oproomnm" codecolumn="oproomcd" onitemchanged="grp_cmb_oproomlist_onitemchanged"/>
  399. <Static text="수 술 방 :" position="absolute 458 31 543 51" id="caption44" class="search_name"/>
  400. <Static text="수술일자 :" position="absolute 15 31 105 51" align="align:center middle;" id="caption45" class="search_name"/>
  401. <Calendar position="absolute 92 31 182 51" id="ipt_reqfromdd" class="input_essential" taborder="1" dateformat="yyyy-MM-dd" autoselect="true" autoskip="true"/>
  402. <Calendar position="absolute 203 31 293 51" id="ipt_reqtodd" class="input_essential" taborder="2" dateformat="yyyy-MM-dd" value="null" autoselect="true" autoskip="true"/>
  403. <Static text="~" position="absolute 187 31 199 51" id="caption11" class="search_n_b"/>
  404. <CheckBox position="absolute 656 31 701 51" id="checkbox1" class="checkbox_search" text="정규" truevalue="1"/>
  405. <CheckBox position="absolute 706 31 751 51" id="checkbox2" class="checkbox_search" text="응급" truevalue="2"/>
  406. <CheckBox position="absolute 756 31 801 51" id="checkbox3" class="checkbox_search" text="추가" truevalue="3"/>
  407. <CheckBox position="absolute 866 31 911 51" id="checkbox4" class="checkbox_search" text="병실" truevalue="I"/>
  408. <CheckBox position="absolute 966 31 1011 51" id="checkbox5" class="checkbox_search" text="외래" truevalue="O"/>
  409. <Static text="부서구분 :" position="absolute 15 6 105 26" align="align:center middle;" id="caption15" class="search_name"/>
  410. <Radio position="absolute 91 6 236 26" id="radio1" columncount="3" codecolumn="codecolumn" datacolumn="datacolumn" onitemchanged="grp_radio1_onitemchanged">
  411. <Dataset id="innerdataset">
  412. <ColumnInfo>
  413. <Column id="codecolumn"/>
  414. <Column id="datacolumn"/>
  415. </ColumnInfo>
  416. <Rows>
  417. <Row>
  418. <Col id="codecolumn">O</Col>
  419. <Col id="datacolumn">수술</Col>
  420. </Row>
  421. <Row>
  422. <Col id="codecolumn">A</Col>
  423. <Col id="datacolumn">마취</Col>
  424. </Row>
  425. <Row>
  426. <Col id="codecolumn">R</Col>
  427. <Col id="datacolumn">회복</Col>
  428. </Row>
  429. </Rows>
  430. </Dataset>
  431. </Radio>
  432. <Combo position="absolute 531 31 586 51" id="cmb_rosette" class="combo_default" innerdataset="ds_init_rosetteinit" datacolumn="rosettenm" codecolumn="rosettecd" onitemchanged="grp_cmb_rosette_onitemchanged"/>
  433. <CheckBox position="absolute 816 31 861 51" id="chk_dsc" class="checkbox_search" text="DSC"/>
  434. <CheckBox position="absolute 916 31 961 51" id="checkbox11" class="checkbox_search" text="ER" truevalue="E"/>
  435. <CheckBox position="absolute 816 31 861 51" id="chk_dcc" class="checkbox_search" visible="false" text="DCC" truevalue="D"/>
  436. <Button position="absolute 1105 21 1185 41" id="button5" class="btn7" text="엑셀저장" onclick="grp_button5_onclick" anchor="top right"/>
  437. <Button position="absolute 385 31 427 51" id="button6" class="btn2" text="내일" onclick="grp_button6_onclick"/>
  438. <Button position="absolute 341 31 383 51" id="button7" class="btn2" text="오늘" onclick="grp_button7_onclick"/>
  439. <Button position="absolute 297 31 339 51" id="button25" class="btn2" text="어제" onclick="grp_button25_onclick"/>
  440. <CheckBox position="absolute 239 6 324 26" id="checkbox10" text="마취만 제외" falsevalue="N" truevalue="Y" value="N"/>
  441. <CheckBox position="absolute 331 6 431 26" id="checkbox12" text="수술안함 제외" falsevalue="N" truevalue="Y"/>
  442. </Layout>
  443. </Layouts>
  444. </Div>
  445. <Static id="caption6" text="수술간호기록/처방 마감" class="tit_1" position="absolute 0 0 180 25"/>
  446. <Div id="group5" taborder="2" style="background:#87cefaff;shadow:outer 3,3 3 gray;" visible="false" position="absolute 505 360 800 410">
  447. <Layouts>
  448. <Layout>
  449. <Static id="caption4" text="출력할 구분을 체크하십시요." class="tit_2" position="absolute 4 5 192 22" onclick="group5_caption4_onclick"/>
  450. <Button id="btn_prtlabel" taborder="25" text="확인" class="btn5" position="absolute 207 26 249 46" onclick="group5_btn_prtlabel_onclick"/>
  451. <Button id="button4" taborder="26" text="취소" class="btn5" position="absolute 250 26 292 46" onclick="group5_button4_onclick"/>
  452. <CheckBox id="checkbox6" taborder="27" text="가납" position="absolute 4 26 49 46" style="textpadding:0 0 0 2;" falsevalue="N" truevalue="Y"/>
  453. <CheckBox id="checkbox7" taborder="28" text="물품" position="absolute 51 26 96 46" style="textpadding:0 0 0 2;" falsevalue="N" truevalue="Y"/>
  454. <CheckBox id="checkbox8" taborder="29" text="Drug" position="absolute 98 26 148 46" style="textpadding:0 0 0 2;" falsevalue="N" truevalue="Y" onclick="group5_checkbox8_onclick"/>
  455. <CheckBox id="checkbox9" taborder="30" text="수술료" position="absolute 148 26 203 46" style="textpadding:0 0 0 2;" falsevalue="N" truevalue="Y"/>
  456. </Layout>
  457. </Layouts>
  458. </Div>
  459. </Layout>
  460. </Layouts>
  461. <Objects>
  462. <Dataset id="ds_main_anstendlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  463. <ColumnInfo>
  464. <Column id="anstprcpchk" type="STRING" size="256" sumtext="마취처방체크"/>
  465. <Column id="anstprcp" type="STRING" size="256" sumtext="마취처방"/>
  466. <Column id="recovprcprchk" type="STRING" size="256" sumtext="회복실처방체크"/>
  467. <Column id="recovprcp" type="STRING" size="256" sumtext="회복실처방"/>
  468. <Column id="recovrecchk" type="STRING" size="256" sumtext="회복실기록지체크"/>
  469. <Column id="recovrec" type="STRING" size="256" sumtext="회복실기록지"/>
  470. <Column id="oproomnm" type="STRING" size="256" sumtext="수술방"/>
  471. <Column id="oproomcd" type="STRING" size="256" sumtext="수술방코드"/>
  472. <Column id="opcnfmdt" type="STRING" size="256" sumtext="수술일시"/>
  473. <Column id="deptnm" type="STRING" size="256" sumtext="부서명"/>
  474. <Column id="deptcd" type="STRING" size="256" sumtext="부서코드"/>
  475. <Column id="roomcd" type="STRING" size="256" sumtext="병실코드"/>
  476. <Column id="patnm" type="STRING" size="256" sumtext="환자명"/>
  477. <Column id="pid" type="STRING" size="256" sumtext="등록번호"/>
  478. <Column id="sa" type="STRING" size="256" sumtext="S/A"/>
  479. <Column id="opnm" type="STRING" size="256" sumtext="수술명"/>
  480. <Column id="anstmthnm" type="STRING" size="256" sumtext="마취방법"/>
  481. <Column id="anstnm" type="STRING" size="256" sumtext="마취의"/>
  482. <Column id="optype" type="STRING" size="256" sumtext="수술구분"/>
  483. <Column id="cnst" type="STRING" size="256" sumtext="협진"/>
  484. <Column id="insu" type="STRING" size="256" sumtext="보험"/>
  485. <Column id="oprsrvno" type="STRING" size="256" sumtext="수술예약번호"/>
  486. <Column id="prcpendflag" type="STRING" size="256" sumtext="처방마감플래그"/>
  487. <Column id="recendflag" type="STRING" size="256" sumtext="기록마감플래그"/>
  488. <Column id="ophistcd" type="STRING" size="256" sumtext="ophistcd"/>
  489. <Column id="ophistno" type="STRING" size="256" sumtext="ophistno"/>
  490. <Column id="oppatflagcd" type="STRING" size="256" sumtext="oppatflagcd"/>
  491. <Column id="indd" type="STRING" size="256" sumtext="입원일자"/>
  492. <Column id="orddeptcd" type="STRING" size="256" sumtext="진료과"/>
  493. <Column id="instcd" type="STRING" size="256" sumtext="기관코드"/>
  494. <Column id="opcnfmdd" type="STRING" size="256" sumtext="수술일자"/>
  495. <Column id="perfdrid1" type="STRING" size="256" sumtext="집도의"/>
  496. </ColumnInfo>
  497. </Dataset>
  498. <Dataset id="ds_main_opendlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  499. <ColumnInfo>
  500. <Column id="oprecchk" type="STRING" size="256" sumtext="수술기록체크"/>
  501. <Column id="oprec" type="STRING" size="256" sumtext="수술기록"/>
  502. <Column id="opprcpchk" type="STRING" size="256" sumtext="간호처방체크"/>
  503. <Column id="opprcp" type="STRING" size="256" sumtext="간호처방"/>
  504. <Column id="preop" type="STRING" size="256" sumtext="수술준비확인"/>
  505. <Column id="nurserec" type="STRING" size="256" sumtext="수술간호기록"/>
  506. <Column id="nurseprcp" type="STRING" size="256" sumtext="수술간호처방"/>
  507. <Column id="opscale" type="STRING" size="256" sumtext="수술스케일"/>
  508. <Column id="outpos" type="STRING" size="256" sumtext="퇴실장소"/>
  509. <Column id="opcost" type="STRING" size="256" sumtext="수술료"/>
  510. <Column id="anstcost" type="STRING" size="256" sumtext="마취료"/>
  511. <Column id="scrub" type="STRING" size="256" sumtext="SCRUB"/>
  512. <Column id="cir" type="STRING" size="256" sumtext="CIR"/>
  513. <Column id="patoutroomdt" type="STRING" size="256" sumtext="퇴실일시"/>
  514. <Column id="escopeeqmtuseyn" type="STRING" size="256" sumtext="내시경장비사용여부"/>
  515. <Column id="oproomnm" type="STRING" size="256" sumtext="수술방"/>
  516. <Column id="oproomcd" type="STRING" size="256" sumtext="수술방코드"/>
  517. <Column id="opcnfmdt" type="STRING" size="256" sumtext="수술일시"/>
  518. <Column id="deptnm" type="STRING" size="256" sumtext="부서명"/>
  519. <Column id="deptcd" type="STRING" size="256" sumtext="부서코드"/>
  520. <Column id="roomcd" type="STRING" size="256" sumtext="병실코드"/>
  521. <Column id="patnm" type="STRING" size="256" sumtext="환자명"/>
  522. <Column id="pid" type="STRING" size="256" sumtext="등록번호"/>
  523. <Column id="sa" type="STRING" size="256" sumtext="S/A"/>
  524. <Column id="diagnm" type="STRING" size="256" sumtext="진단명"/>
  525. <Column id="opnm" type="STRING" size="256" sumtext="수술명"/>
  526. <Column id="perfnm" type="STRING" size="256" sumtext="집도의"/>
  527. <Column id="optype" type="STRING" size="256" sumtext="수술구분"/>
  528. <Column id="oprsrvno" type="STRING" size="256" sumtext="수술예약번호"/>
  529. <Column id="prcpendflag" type="STRING" size="256" sumtext="처방마감플래그"/>
  530. <Column id="recendflag" type="STRING" size="256" sumtext="기록마감플래그"/>
  531. <Column id="pathology" type="STRING" size="256" sumtext="pathology"/>
  532. <Column id="cytology" type="STRING" size="256" sumtext="cytology"/>
  533. <Column id="culture" type="STRING" size="256" sumtext="culture"/>
  534. <Column id="frozen" type="STRING" size="256" sumtext="frozen"/>
  535. <Column id="others" type="STRING" size="256" sumtext="others"/>
  536. <Column id="barcode" type="STRING" size="256" sumtext="barcode"/>
  537. <Column id="ophistcd" type="STRING" size="256" sumtext="ophistcd"/>
  538. <Column id="ophistno" type="STRING" size="256" sumtext="ophistno"/>
  539. <Column id="oppatflagcd" type="STRING" size="256" sumtext="oppatflagcd"/>
  540. <Column id="wardnm" type="STRING" size="256" sumtext="병동"/>
  541. <Column id="opcnfmdd" type="STRING" size="256" sumtext="수술확정일자"/>
  542. <Column id="disp1" type="STRING" size="256" sumtext="혈액"/>
  543. <Column id="disp2" type="STRING" size="256" sumtext="접촉"/>
  544. <Column id="disp3" type="STRING" size="256" sumtext="공기"/>
  545. <Column id="ccrtstat" type="STRING" size="256" sumtext="카트상태"/>
  546. <Column id="indd" type="STRING" size="256" sumtext="입원일자"/>
  547. <Column id="orddeptcd" type="STRING" size="256" sumtext="진료과"/>
  548. <Column id="instcd" type="STRING" size="256" sumtext="기관코드"/>
  549. <Column id="perfdrid1" type="STRING" size="256" sumtext="집도의"/>
  550. <Column id="anstmthdcd" type="STRING" size="256" sumtext="마취구분"/>
  551. <Column id="ansttime" type="STRING" size="256" sumtext="총마취시간"/>
  552. <Column id="opsheetyn" type="STRING" size="256" sumtext="수술포처방유무"/>
  553. </ColumnInfo>
  554. </Dataset>
  555. <Dataset id="ds_init_oproomlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  556. <ColumnInfo>
  557. <Column id="oproomcd" type="STRING" size="256" sumtext="수술실코드"/>
  558. <Column id="oproomnm" type="STRING" size="256" sumtext="수술실명 "/>
  559. </ColumnInfo>
  560. </Dataset>
  561. <Dataset id="ds_init_rosetteinit" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  562. <ColumnInfo>
  563. <Column id="rosettenm" type="STRING"/>
  564. <Column id="rosettecd" type="STRING"/>
  565. </ColumnInfo>
  566. </Dataset>
  567. <Dataset id="ds_main_cond" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  568. <ColumnInfo>
  569. <Column id="deptflag" type="STRING" size="256"/>
  570. <Column id="opfromdd" type="STRING" size="256"/>
  571. <Column id="optodd" type="STRING" size="256"/>
  572. <Column id="oproomcd" type="STRING" size="256"/>
  573. <Column id="optypeflag" type="STRING" size="256"/>
  574. <Column id="optypeflag1" type="STRING" size="256"/>
  575. <Column id="optypeflag2" type="STRING" size="256"/>
  576. <Column id="optypeflag3" type="STRING" size="256"/>
  577. <Column id="ioflag" type="STRING" size="256"/>
  578. <Column id="ioflag1" type="STRING" size="256"/>
  579. <Column id="ioflag2" type="STRING" size="256"/>
  580. <Column id="ioflag3" type="STRING" size="256"/>
  581. <Column id="ioflag4" type="STRING" size="256"/>
  582. <Column id="oprosette" type="STRING" size="256"/>
  583. <Column id="prnti" type="STRING" size="256"/>
  584. <Column id="prntii" type="STRING" size="256"/>
  585. <Column id="prntiii" type="STRING" size="256"/>
  586. <Column id="prntiv" type="STRING" size="256"/>
  587. <Column id="anstonly" type="STRING" size="256"/>
  588. <Column id="opnoynchk" type="STRING" size="256"/>
  589. </ColumnInfo>
  590. <Rows>
  591. <Row>
  592. <Col id="deptflag">O</Col>
  593. <Col id="opfromdd"/>
  594. <Col id="optodd"/>
  595. <Col id="oproomcd"/>
  596. <Col id="optypeflag"/>
  597. <Col id="optypeflag1"/>
  598. <Col id="optypeflag2"/>
  599. <Col id="optypeflag3"/>
  600. <Col id="ioflag"/>
  601. <Col id="ioflag1"/>
  602. <Col id="ioflag2"/>
  603. <Col id="ioflag3"/>
  604. <Col id="ioflag4"/>
  605. <Col id="oprosette"/>
  606. <Col id="prnti">Y</Col>
  607. <Col id="prntii">Y</Col>
  608. <Col id="prntiii">Y</Col>
  609. <Col id="prntiv">Y</Col>
  610. <Col id="anstonly"/>
  611. <Col id="opnoynchk"/>
  612. </Row>
  613. </Rows>
  614. </Dataset>
  615. <Dataset id="ds_main_opkindendcnt" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  616. <ColumnInfo>
  617. <Column id="totopcnt" type="INT" size="256" sumtext="총수술건수"/>
  618. <Column id="opcnt" type="INT" size="256" sumtext="수술건수"/>
  619. <Column id="costiss" type="INT" size="256" sumtext="수술료 발행"/>
  620. <Column id="rectemp" type="INT" size="256" sumtext="수술간호기록지-임시"/>
  621. <Column id="reccnfm" type="INT" size="256" sumtext="수술간호기록지-확정"/>
  622. <Column id="recend" type="INT" size="256" sumtext="수술간호기록지-마감"/>
  623. <Column id="prcptemp" type="INT" size="256" sumtext="수술간호처방-임시"/>
  624. <Column id="prcpcnfm" type="INT" size="256" sumtext="수술간호처방-확정"/>
  625. <Column id="prcpend" type="INT" size="256" sumtext="수술간호처방-마감"/>
  626. </ColumnInfo>
  627. </Dataset>
  628. <Dataset id="ds_main_anstkindendcnt" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  629. <ColumnInfo>
  630. <Column id="totopcnt" type="INT" size="256" sumtext="총수술건수"/>
  631. <Column id="opcnt" type="INT" size="256" sumtext="수술건수"/>
  632. <Column id="ansttemp" type="STRING" size="256" sumtext="마취처방-임시"/>
  633. <Column id="anstcnfm" type="STRING" size="256" sumtext="마취처방-확정"/>
  634. <Column id="anstend" type="STRING" size="256" sumtext="마취처방-마감"/>
  635. <Column id="recovrtemp" type="STRING" size="256" sumtext="회복실처방-임시"/>
  636. <Column id="recovrcnfm" type="STRING" size="256" sumtext="회복실처방-확정"/>
  637. <Column id="recovrend" type="STRING" size="256" sumtext="회복실처방-마감"/>
  638. <Column id="recovrrectemp" type="STRING" size="256" sumtext="회복실기록지-임시"/>
  639. <Column id="recovrreccnfm" type="STRING" size="256" sumtext="회복실기록지-확정"/>
  640. <Column id="recovrrecend" type="STRING" size="256" sumtext="회복실기록지-마감"/>
  641. </ColumnInfo>
  642. </Dataset>
  643. <Dataset id="ds_hidedata_otptinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  644. <ColumnInfo>
  645. <Column id="pid" type="STRING" size="256" sumtext="등록번호 "/>
  646. <Column id="orddd" type="STRING" size="256" sumtext="진료일자 "/>
  647. <Column id="cretno" type="STRING" size="256" sumtext="생성번호 "/>
  648. <Column id="ordtype" type="STRING" size="256" sumtext="진료형태 "/>
  649. <Column id="orgorddd" type="STRING" size="256" sumtext="실제진료일자 "/>
  650. <Column id="instcd" type="STRING" size="256" sumtext="기관코드 "/>
  651. </ColumnInfo>
  652. </Dataset>
  653. <Dataset id="ds_main_mmohoprslist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  654. <Dataset id="ds_init_anst" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  655. <ColumnInfo>
  656. <Column id="codecolumn" type="STRING" size="256"/>
  657. <Column id="datacolumn" type="STRING" size="256"/>
  658. </ColumnInfo>
  659. <Rows>
  660. <Row>
  661. <Col id="codecolumn">-</Col>
  662. <Col id="datacolumn">-</Col>
  663. </Row>
  664. <Row>
  665. <Col id="codecolumn">01</Col>
  666. <Col id="datacolumn">전신</Col>
  667. </Row>
  668. <Row>
  669. <Col id="codecolumn">02</Col>
  670. <Col id="datacolumn">부위</Col>
  671. </Row>
  672. <Row>
  673. <Col id="codecolumn">03</Col>
  674. <Col id="datacolumn">국소</Col>
  675. </Row>
  676. </Rows>
  677. </Dataset>
  678. </Objects>
  679. <Bind>
  680. <BindItem id="item0" compid="grp.radio1" propid="value" datasetid="ds_main_cond" columnid="deptflag"/>
  681. <BindItem id="item1" compid="grp.checkbox10" propid="value" datasetid="ds_main_cond" columnid="anstonly"/>
  682. <BindItem id="item2" compid="grp.checkbox12" propid="value" datasetid="ds_main_cond" columnid="opnoynchk"/>
  683. <BindItem id="item3" compid="grp.ipt_reqfromdd" propid="value" datasetid="ds_main_cond" columnid="opfromdd"/>
  684. <BindItem id="item4" compid="grp.ipt_reqtodd" propid="value" datasetid="ds_main_cond" columnid="optodd"/>
  685. <BindItem id="item5" compid="grp.cmb_rosette" propid="value" datasetid="ds_main_cond" columnid="oprosette"/>
  686. <BindItem id="item6" compid="grp.cmb_oproomlist" propid="value" datasetid="ds_main_cond" columnid="oproomcd"/>
  687. <BindItem id="item7" compid="grp.checkbox1" propid="value" datasetid="ds_main_cond" columnid="optypeflag1"/>
  688. <BindItem id="item8" compid="grp.checkbox2" propid="value" datasetid="ds_main_cond" columnid="optypeflag2"/>
  689. <BindItem id="item9" compid="grp.checkbox3" propid="value" datasetid="ds_main_cond" columnid="optypeflag3"/>
  690. <BindItem id="item10" compid="grp.chk_dcc" propid="value" datasetid="ds_main_cond" columnid="ioflag1"/>
  691. <BindItem id="item11" compid="grp.checkbox4" propid="value" datasetid="ds_main_cond" columnid="ioflag2"/>
  692. <BindItem id="item12" compid="grp.checkbox11" propid="value" datasetid="ds_main_cond" columnid="ioflag3"/>
  693. <BindItem id="item13" compid="grp.checkbox5" propid="value" datasetid="ds_main_cond" columnid="ioflag4"/>
  694. <BindItem id="item14" compid="grp_anstlist.input11" propid="value" datasetid="ds_main_anstkindendcnt" columnid="totopcnt"/>
  695. <BindItem id="item15" compid="grp_anstlist.input12" propid="value" datasetid="ds_main_anstkindendcnt" columnid="opcnt"/>
  696. <BindItem id="item16" compid="grp_anstlist.input17" propid="value" datasetid="ds_main_anstkindendcnt" columnid="ansttemp"/>
  697. <BindItem id="item17" compid="grp_anstlist.input16" propid="value" datasetid="ds_main_anstkindendcnt" columnid="anstcnfm"/>
  698. <BindItem id="item18" compid="grp_anstlist.input15" propid="value" datasetid="ds_main_anstkindendcnt" columnid="anstend"/>
  699. <BindItem id="item19" compid="grp_anstlist.input18" propid="value" datasetid="ds_main_anstkindendcnt" columnid="recovrtemp"/>
  700. <BindItem id="item20" compid="grp_anstlist.input20" propid="value" datasetid="ds_main_anstkindendcnt" columnid="recovrcnfm"/>
  701. <BindItem id="item21" compid="grp_anstlist.input19" propid="value" datasetid="ds_main_anstkindendcnt" columnid="recovrend"/>
  702. <BindItem id="item22" compid="grp_anstlist.input14" propid="value" datasetid="ds_main_anstkindendcnt" columnid="recovrrectemp"/>
  703. <BindItem id="item23" compid="grp_anstlist.input13" propid="value" datasetid="ds_main_anstkindendcnt" columnid="recovrreccnfm"/>
  704. <BindItem id="item24" compid="grp_anstlist.input21" propid="value" datasetid="ds_main_anstkindendcnt" columnid="recovrrecend"/>
  705. <BindItem id="item25" compid="grp_oplist.input1" propid="value" datasetid="ds_main_opkindendcnt" columnid="totopcnt"/>
  706. <BindItem id="item26" compid="grp_oplist.input2" propid="value" datasetid="ds_main_opkindendcnt" columnid="opcnt"/>
  707. <BindItem id="item27" compid="grp_oplist.input3" propid="value" datasetid="ds_main_opkindendcnt" columnid="costiss"/>
  708. <BindItem id="item28" compid="grp_oplist.input7" propid="value" datasetid="ds_main_opkindendcnt" columnid="rectemp"/>
  709. <BindItem id="item29" compid="grp_oplist.input6" propid="value" datasetid="ds_main_opkindendcnt" columnid="reccnfm"/>
  710. <BindItem id="item30" compid="grp_oplist.input5" propid="value" datasetid="ds_main_opkindendcnt" columnid="recend"/>
  711. <BindItem id="item31" compid="grp_oplist.input8" propid="value" datasetid="ds_main_opkindendcnt" columnid="prcptemp"/>
  712. <BindItem id="item32" compid="grp_oplist.input10" propid="value" datasetid="ds_main_opkindendcnt" columnid="prcpcnfm"/>
  713. <BindItem id="item33" compid="grp_oplist.input9" propid="value" datasetid="ds_main_opkindendcnt" columnid="prcpend"/>
  714. <BindItem id="item34" compid="grp.chk_dsc" propid="value" datasetid="ds_main_cond" columnid="ioflag1"/>
  715. <BindItem id="item35" compid="group5.checkbox6" propid="value" datasetid="ds_main_cond" columnid="prnti"/>
  716. <BindItem id="item36" compid="group5.checkbox7" propid="value" datasetid="ds_main_cond" columnid="prntii"/>
  717. <BindItem id="item37" compid="group5.checkbox8" propid="value" datasetid="ds_main_cond" columnid="prntiii"/>
  718. <BindItem id="item38" compid="group5.checkbox9" propid="value" datasetid="ds_main_cond" columnid="prntiv"/>
  719. </Bind>
  720. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  721. * System Name :
  722. * Job Name :
  723. * Creator :
  724. * Make Date : 2015-11-13
  725. * Description :
  726. *---------------------------------------------------------------------------------------
  727. * Modify Date Modifier Modify Description
  728. *---------------------------------------------------------------------------------------
  729. * 2015-11-13 Live Converter TF->XP
  730. *
  731. *---------------------------------------------------------------------------------------
  732. ****************************************************************************************/
  733. //=======================================================================================
  734. // Lib Include
  735. //---------------------------------------------------------------------------------------
  736. include 'com_commonxp::comm_main.xjs';
  737. var arErrorCode = new HashArray();
  738. //=======================================================================================
  739. // Local methods
  740. //---------------------------------------------------------------------------------------
  741. /****************************************************************************************
  742. * Argument :
  743. * Description : fInit
  744. ****************************************************************************************/
  745. function fInit(){
  746. var param = frmf_getMenuParam();
  747. if(param == 'G' || param == 'g'){
  748. grp_oplist.bbt_tSave.enable = false;
  749. grp_oplist.button1.enable = false;
  750. grp_anstlist.button2.enable = false;
  751. grp_anstlist.button3.enable = false;
  752. }
  753. var curDate = utlf_getCurrentDate();
  754. curDate = curDate.substr(0, 8);
  755. ds_main_cond.setColumn(0, 'opfromdd', curDate);
  756. ds_main_cond.setColumn(0, 'optodd', curDate);
  757. var dutplceinstcd = sysf_getUserInfo('dutplceinstcd');
  758. if(dutplceinstcd == '014'){
  759. grp.chk_dcc.visible = true;
  760. grp.chk_dsc.visible = false;
  761. }
  762. else{
  763. grp.chk_dcc.visible = false;
  764. grp.chk_dsc.visible = true;
  765. }
  766. grp_oplist.visible = true;
  767. grp_anstlist.visible = false;
  768. ds_init_rosetteinit.clearData();
  769. ds_init_rosetteinit.addRow();
  770. var oParam = {};
  771. oParam.id = "TRMNP03004";
  772. oParam.service = "opanstapp.OpAnstStocMngt";
  773. oParam.method = "reqGetRosettelist";
  774. oParam.inds = "";
  775. oParam.outds = "ds_init_rosetteinit=rosettelist";
  776. oParam.async = false;
  777. //oParam.callback = "cf_TRMNP03004";
  778. tranf_submit(oParam);
  779. frmf_addComboItem('grp.cmb_rosette', '전체', '', 'above');
  780. dsf_createDsRow('ds_send', [
  781. { col: 'opcnfmdd', type: 'string', size: 256, val: ds_main_cond.getColumn(0, 'opfromdd') },
  782. { col: 'rosette', type: 'string', size: 256, val: ds_main_cond.getColumn(0, 'oprosette') }
  783. ], false);
  784. oParam = {};
  785. oParam.id = "TRMNP03002";
  786. oParam.service = "opanstapp.OpAnstCCrtGoodMngt";
  787. oParam.method = "reqGetOmcdlist";
  788. oParam.inds = "req=ds_send";
  789. oParam.outds = "ds_init_oproomlist=oproomlist";
  790. oParam.async = false;
  791. //oParam.callback = "cf_TRMNP03002";
  792. tranf_submit(oParam);
  793. frmf_addComboItem('grp.cmb_oproomlist', '전체', '', 'above');
  794. //grdf_setRowTypeIcon(grp_oplist.grd_oplist, 0);
  795. //grdf_setRowTypeIcon(grp_anstlist.grd_anstlist, 0);
  796. ds_main_anstendlist.clearData();
  797. //ds_main_anstendlist.addRow();
  798. ds_main_opendlist.clearData();
  799. //ds_main_opendlist.addRow();
  800. // // 김현석, 그리드 색깔 표시 설정
  801. // grp_oplist.grd_oplist.setCellProperty("Body", 4, "color", "Expr(recmatchyn=='N'?'red':'black')");
  802. // grp_oplist.grd_oplist.setCellProperty("Body", 4, "color2", "Expr(recmatchyn=='N'?'red':'black')");
  803. // grp_oplist.grd_oplist.setCellProperty("Body", 4, "selectcolor", "Expr(recmatchyn=='N'?'red':'black')");
  804. var colid = lf_getGridColumnIndexByBindCellName("grp_oplist.grd_oplist", "recmatchyn");
  805. grp_oplist.grd_oplist.setCellProperty("Body", colid , "background", "Expr(recmatchyn=='N'?'#ff8080':'')");
  806. grp_oplist.grd_oplist.setCellProperty("Body", colid , "background2", "Expr(recmatchyn=='N'?'#ff8080':'')");
  807. grp_oplist.grd_oplist.setCellProperty("Body", colid , "selectbackground", "Expr(recmatchyn=='N'?'#ff8080':'')");
  808. var colid = lf_getGridColumnIndexByBindCellName("grp_oplist.grd_oplist", "totalelapsedtimecheck");
  809. grp_oplist.grd_oplist.setCellProperty("Body", colid , "background", "Expr(totalelapsedtimecheck=='N'?'#ff8080':'')");
  810. grp_oplist.grd_oplist.setCellProperty("Body", colid , "background2", "Expr(totalelapsedtimecheck=='N'?'#ff8080':'')");
  811. grp_oplist.grd_oplist.setCellProperty("Body", colid , "selectbackground", "Expr(totalelapsedtimecheck=='N'?'#ff8080':'')");
  812. }
  813. function lf_getGridColumnIndexByBindCellName(grdName, bindname)
  814. {
  815. var columIndex = -1;
  816. var grd = eval(grdName);
  817. for(var i = 0; i < grd.getFormatColCount(); i++)
  818. {
  819. var sTrgtText = grd.getCellProperty("body", i, "text");
  820. if (! utlf_isNull(sTrgtText))
  821. {
  822. sTrgtText = sTrgtText.replace("bind:","");
  823. if (! utlf_isNull(sTrgtText))
  824. {
  825. if ( sTrgtText == bindname)
  826. {
  827. columIndex = i;
  828. break;
  829. }
  830. }
  831. }
  832. }
  833. return columIndex ;
  834. }
  835. /****************************************************************************************
  836. * Argument :
  837. * Description : fCalcdate
  838. ****************************************************************************************/
  839. function fCalcdate(n, date){
  840. date = date.toDate('YYYYMMDD');
  841. date = date.getAddDate(n, 'D');
  842. date = date.getDateFormat('YYYYMMDD');
  843. return date;
  844. }
  845. /****************************************************************************************
  846. * Argument :
  847. * Description : 수술실간호기록/수술료 조회
  848. ****************************************************************************************/
  849. function fSearch(){
  850. var optypeflag1 = ds_main_cond.getColumn(0, 'optypeflag1');
  851. var optypeflag2 = ds_main_cond.getColumn(0, 'optypeflag2');
  852. var optypeflag3 = ds_main_cond.getColumn(0, 'optypeflag3');
  853. if(optypeflag1 == '1' && optypeflag2 == '2' && optypeflag3 == '3'){
  854. // 정규, 응급, 추가
  855. ds_main_cond.setColumn(0, 'optypeflag', '7');
  856. }
  857. else if(optypeflag1 == '1' && optypeflag2 == '2'){
  858. // 정규, 응급
  859. ds_main_cond.setColumn(0, 'optypeflag', '4');
  860. }
  861. else if(optypeflag1 == '1' && optypeflag3 == '3'){
  862. // 정규, 추가
  863. ds_main_cond.setColumn(0, 'optypeflag', '5');
  864. }
  865. else if(optypeflag2 == '2' && optypeflag3 == '3'){
  866. // 응급, 추가
  867. ds_main_cond.setColumn(0, 'optypeflag', '6');
  868. }
  869. else if(optypeflag1 == '1'){
  870. // 정규
  871. ds_main_cond.setColumn(0, 'optypeflag', '1');
  872. }
  873. else if(optypeflag2 == '2'){
  874. // 응급
  875. ds_main_cond.setColumn(0, 'optypeflag', '2');
  876. }
  877. else if(optypeflag3 == '3'){
  878. // 추가
  879. ds_main_cond.setColumn(0, 'optypeflag', '3');
  880. }
  881. var ioflag1 = utlf_transNullToEmpty(ds_main_cond.getColumn(0, 'ioflag1'));
  882. var ioflag2 = utlf_transNullToEmpty(ds_main_cond.getColumn(0, 'ioflag2'));
  883. var ioflag3 = utlf_transNullToEmpty(ds_main_cond.getColumn(0, 'ioflag3'));
  884. var ioflag4 = utlf_transNullToEmpty(ds_main_cond.getColumn(0, 'ioflag4'));
  885. var ioflag = '';
  886. if(ioflag1 != ''){
  887. if(ioflag == ''){
  888. ioflag = "'" + ioflag1 + "'";
  889. }
  890. else{
  891. ioflag = ioflag + ", '" + ioflag1 + "'";
  892. }
  893. }
  894. if(ioflag2 != ''){
  895. if(ioflag == ''){
  896. ioflag = "'" + ioflag2 + "'";
  897. }
  898. else{
  899. ioflag = ioflag + ", '" + ioflag2 + "'";
  900. }
  901. }
  902. if(ioflag3 != ''){
  903. if(ioflag == ''){
  904. ioflag = "'" + ioflag3 + "'";
  905. }
  906. else{
  907. ioflag = ioflag + ", '" + ioflag3 + "'";
  908. }
  909. }
  910. if(ioflag4 != ''){
  911. if(ioflag == ''){
  912. ioflag = "'" + ioflag4 + "'";
  913. }
  914. else{
  915. ioflag = ioflag + ", '" + ioflag4 + "'";
  916. }
  917. }
  918. var deptflag = ds_main_cond.getColumn(0, 'deptflag');
  919. dsf_createDs('ds_req', [
  920. { col: 'deptflag', type: 'string', size: 256 },
  921. { col: 'opfromdd', type: 'string', size: 256 },
  922. { col: 'optodd', type: 'string', size: 256 },
  923. { col: 'oproomcd', type: 'string', size: 256 },
  924. { col: 'optypeflag', type: 'string', size: 256 },
  925. { col: 'ioflag', type: 'string', size: 256 },
  926. { col: 'oprosette', type: 'string', size: 256 },
  927. { col: 'instcd', type: 'string', size: 256 },
  928. { col: 'anstonly', type: 'string', size: 256 },
  929. { col: 'opnoynchk', type: 'string', size: 256 }
  930. ]);
  931. var idx = ds_req.addRow();
  932. ds_req.copyRow(idx, ds_main_cond, 0);
  933. ds_req.setColumn(0, 'instcd', sysf_getUserInfo('dutplceinstcd'));
  934. // 수술
  935. if(deptflag == 'O'){
  936. var opendlistrowp = grp_oplist.grd_oplist.vscrollbar.pos;
  937. ds_main_opendlist.clearData();
  938. ds_main_opendlist.addRow();
  939. ds_main_opkindendcnt.clearData();
  940. ds_main_opkindendcnt.addRow();
  941. var oParam = {};
  942. oParam.id = "TRMNP00801";
  943. oParam.service = "opanstapp.OpAnstRef";
  944. oParam.method = "reqGetOpCntList";
  945. oParam.inds = "reqdata=ds_req";
  946. oParam.outds = "ds_main_opkindendcnt=opkindendcnt ds_main_opendlist=opendlist";
  947. oParam.async = false;
  948. //oParam.callback = "callback";
  949. tranf_submit(oParam);
  950. grp_oplist.grd_oplist.vscrollbar.pos = opendlistrowp;
  951. dsf_setTypeFormat(ds_main_opkindendcnt, "totopcnt:INT^opcnt:INT^costiss:INT^rectemp:INT^reccnfm:INT^"
  952. + "recend:INT^prcptemp:INT^prcpcnfm:INT^prcpend:INT");
  953. }
  954. // 마취, 회복
  955. else{
  956. ds_main_anstkindendcnt.clearData();
  957. ds_main_anstkindendcnt.addRow();
  958. ds_main_anstendlist.clearData();
  959. ds_main_anstendlist.addRow();
  960. var oParam = {};
  961. oParam.id = "TRMNP00802";
  962. oParam.service = "opanstapp.OpAnstRef";
  963. oParam.method = "reqGetAnstRecovrCntList";
  964. oParam.inds = "reqdata=ds_req";
  965. oParam.outds = "ds_main_anstkindendcnt=anstkindendcnt ds_main_anstendlist=anstendlist";
  966. oParam.async = false;
  967. //oParam.callback = "cf_TRMNP00802";
  968. tranf_submit(oParam);
  969. }
  970. }
  971. /****************************************************************************************
  972. * Argument :
  973. * Description : 수술실간호기록/수술료 마감완료
  974. ****************************************************************************************/
  975. function fEndPrcpRec(){
  976. var iRow = -1, iNode = '';
  977. var chkflag, oprsrvno, opprcpchk = 'false', oprecchk = 'false', prcpendflag = '0', recendflag = '0', flagValue1 = '0', flagValue2 = '0';
  978. var anstprcpchk = 'false', recovprcprchk = 'false', recovrecchk = 'false';
  979. var cnt = 0, cnt2 = 0;
  980. var deptflag = ds_main_cond.getColumn(0, 'deptflag');
  981. if(deptflag == 'O'){
  982. iRows = grp_oplist.grd_oplist.rowcount;
  983. iNode = ds_main_opendlist;
  984. }
  985. else{
  986. iRows = grp_anstlist.grd_anstlist.rowcount;
  987. iNode = ds_main_anstendlist;
  988. }
  989. var prcpendlist = 'oprsrvno▦prcpendflag';
  990. var recendlist = 'oprsrvno▦recendflag';
  991. for(var i = 0; i < iRows; i++){
  992. if(deptflag == 'O'){
  993. oprecchk = iNode.getColumn(i, 'oprecchk'); // 수술기록
  994. opprcpchk = iNode.getColumn(i, 'opprcpchk'); // 수술간호처방
  995. oprsrvno = iNode.getColumn(i, 'oprsrvno');
  996. prcpendflag = iNode.getColumn(i, 'prcpendflag');
  997. recendflag = iNode.getColumn(i, 'recendflag');
  998. if(opprcpchk == 'true'){
  999. cnt++;
  1000. // 플래값 체크(1:수술, 2:마취, 3:회복, 4:수술/마취, 5:수술/회복, 6:마취/회복, 7:수술/마취/회복)
  1001. flagValue1 = fEndPrcpFlagRtn(prcpendflag, 'true');
  1002. prcpendlist += '▩' + oprsrvno + '▦' + flagValue1;
  1003. }
  1004. if(oprecchk == 'true'){
  1005. cnt2++;
  1006. // 플래값 체크(1:수술, 2:회복, 3:수술/회복
  1007. flagValue2 = fEndRecFlagRtn(recendflag, 'true');
  1008. recendlist += '▩' + oprsrvno + '▦' + flagValue2;
  1009. }
  1010. }
  1011. else if(deptflag == 'A'){
  1012. anstprcpchk = iNode.getColumn(i, 'anstprcpchk');
  1013. oprsrvno = iNode.getColumn(i, 'oprsrvno');
  1014. prcpendflag = iNode.getColumn(i, 'prcpendflag');
  1015. recendflag = iNode.getColumn(i, 'recendflag');
  1016. if(anstprcpchk == 'true'){
  1017. cnt++;
  1018. // 플래값 체크(1:수술, 2:마취, 3:회복, 4:수술/마취, 5:수술/회복, 6:마취/회복, 7:수술/마취/회복)
  1019. flagValue1 = fEndPrcpFlagRtn(prcpendflag, 'true');
  1020. prcpendflag = flagValue1;
  1021. prcpendlist += '▩' + oprsrvno + '▦' + flagValue1;
  1022. }
  1023. }
  1024. else if(deptflag == 'R'){
  1025. recovprcprchk = iNode.getColumn(i, 'recovprcprchk');
  1026. recovrecchk = iNode.getColumn(i, 'recovrecchk');
  1027. oprsrvno = iNode.getColumn(i, 'oprsrvno');
  1028. prcpendflag = iNode.getColumn(i, 'prcpendflag');
  1029. recendflag = iNode.getColumn(i, 'recendflag');
  1030. if(recovrecchk == 'true'){
  1031. cnt2++;
  1032. // 플래값 체크(1:수술, 2:회복, 3:수술/회복
  1033. flagValue2 = fEndRecFlagRtn(recendflag, 'true');
  1034. recendlist += '▩' + oprsrvno + '▦' + flagValue2;
  1035. }
  1036. if(recovprcprchk == 'true'){
  1037. cnt++;
  1038. // 플래값 체크(1:수술, 2:마취, 3:회복, 4:수술/마취, 5:수술/회복, 6:마취/회복, 7:수술/마취/회복)
  1039. flagValue1 = fEndPrcpFlagRtn(prcpendflag, 'true');
  1040. prcpendlist += '▩' + oprsrvno + '▦' + flagValue1;
  1041. }
  1042. }
  1043. } // end of for(var i = 0; i < iRows; i++)
  1044. prcpendlist += '▩';
  1045. recendlist += '▩';
  1046. if((cnt + cnt2) > 0){
  1047. // 처방
  1048. if(cnt > 0){
  1049. // dsf_createDsRow('ds_req', [
  1050. // { col: 'oprsrvno', type: 'string', size: 256, val: '' },
  1051. // { col: 'prcpendflag', type: 'string', size: 256, val: prcpendlist }
  1052. // ], false);
  1053. dsf_setCSVToDs('ds_req', prcpendlist);
  1054. var oParam = {};
  1055. oParam.id = "TXMNP00801";
  1056. oParam.service = "opanstapp.OpAnstRef";
  1057. oParam.method = "reqSetPrcpEndList";
  1058. oParam.inds = "prcpenddata=ds_req";
  1059. oParam.outds = "";
  1060. oParam.async = false;
  1061. //oParam.callback = "cf_TXMNP00801";
  1062. tranf_submit(oParam);
  1063. }
  1064. // 기록
  1065. if(cnt2 > 0){
  1066. dsf_setCSVToDs('ds_req', recendlist);
  1067. var oParam = {};
  1068. oParam.id = "TXMNP00802";
  1069. oParam.service = "opanstapp.OpAnstRef";
  1070. oParam.method = "reqSetRecEndList";
  1071. oParam.inds = "recenddata=ds_req";
  1072. oParam.outds = "";
  1073. oParam.async = false;
  1074. //oParam.callback = "cf_TXMNP00802";
  1075. tranf_submit(oParam);
  1076. }
  1077. fSearch();
  1078. }
  1079. else{
  1080. sysf_messageBox('선택한것이 ', 'I004');
  1081. }
  1082. }
  1083. /****************************************************************************************
  1084. * Argument :
  1085. * Description : 수술실간호기록/수술료 간호처방 체크
  1086. ****************************************************************************************/
  1087. function fEndPrcpFlagRtn(flag, callflag){
  1088. var flagValue = '0';
  1089. var deptflag = ds_main_cond.getColumn(0, 'deptflag');
  1090. if(callflag == 'true'){
  1091. switch(flag){
  1092. case '0':
  1093. // 수술
  1094. if(deptflag == 'O'){
  1095. flagValue = '1';
  1096. }
  1097. // 마취
  1098. else if(deptflag == 'A'){
  1099. flagValue = '2';
  1100. }
  1101. // 회복
  1102. else if(deptflag == 'R'){
  1103. flagValue = '3';
  1104. }
  1105. break;
  1106. case '1':
  1107. // 수술
  1108. if(deptflag == 'O'){
  1109. flagValue = '1';
  1110. }
  1111. // 마취
  1112. else if(deptflag == 'A'){
  1113. flagValue = '4';
  1114. }
  1115. // 회복
  1116. else if(deptflag == 'R'){
  1117. flagValue = '5';
  1118. }
  1119. break;
  1120. case '2':
  1121. // 수술
  1122. if(deptflag == 'O'){
  1123. flagValue = '4';
  1124. }
  1125. // 마취
  1126. else if(deptflag == 'A'){
  1127. flagValue = '2';
  1128. }
  1129. // 회복
  1130. else if(deptflag == 'R'){
  1131. flagValue = '6';
  1132. }
  1133. break;
  1134. case '3':
  1135. // 수술
  1136. if(deptflag == 'O'){
  1137. flagValue = '5';
  1138. }
  1139. // 마취
  1140. else if(deptflag == 'A'){
  1141. flagValue = '6';
  1142. }
  1143. // 회복
  1144. else if(deptflag == 'R'){
  1145. flagValue = '3';
  1146. }
  1147. break;
  1148. case '4':
  1149. // 수술
  1150. if(deptflag == 'O'){
  1151. flagValue = '4';
  1152. }
  1153. // 마취
  1154. else if(deptflag == 'A'){
  1155. flagValue = '4';
  1156. }
  1157. // 회복
  1158. else if(deptflag == 'R'){
  1159. flagValue = '7';
  1160. }
  1161. break;
  1162. case '5':
  1163. // 수술
  1164. if(deptflag == 'O'){
  1165. flagValue = '5';
  1166. }
  1167. // 마취
  1168. else if(deptflag == 'A'){
  1169. flagValue = '7';
  1170. }
  1171. // 회복
  1172. else if(deptflag == 'R'){
  1173. flagValue = '5';
  1174. }
  1175. break;
  1176. case '6':
  1177. // 수술
  1178. if(deptflag == 'O'){
  1179. flagValue = '7';
  1180. }
  1181. // 마취
  1182. else if(deptflag == 'A'){
  1183. flagValue = '6';
  1184. }
  1185. // 회복
  1186. else if(deptflag == 'R'){
  1187. flagValue = '6';
  1188. }
  1189. break;
  1190. case '7':
  1191. flagValue = '7';
  1192. break;
  1193. }
  1194. }
  1195. // 마감취소
  1196. else{
  1197. switch(flag){
  1198. case '0':
  1199. // 수술
  1200. if(deptflag == 'O'){
  1201. flagValue = '0';
  1202. }
  1203. // 마취
  1204. else if(deptflag == 'A'){
  1205. flagValue = '0';
  1206. }
  1207. // 회복
  1208. else if(deptflag == 'R'){
  1209. flagValue = '0';
  1210. }
  1211. break;
  1212. case '1':
  1213. // 수술
  1214. if(deptflag == 'O'){
  1215. flagValue = '0';
  1216. }
  1217. // 마취
  1218. else if(deptflag == 'A'){
  1219. flagValue = '1';
  1220. }
  1221. // 회복
  1222. else if(deptflag == 'R'){
  1223. flagValue = '1';
  1224. }
  1225. break;
  1226. case '2':
  1227. // 수술
  1228. if(deptflag == 'O'){
  1229. flagValue = '2';
  1230. }
  1231. // 마취
  1232. else if(deptflag == 'A'){
  1233. flagValue = '0';
  1234. }
  1235. // 회복
  1236. else if(deptflag == 'R'){
  1237. flagValue = '0';
  1238. }
  1239. break;
  1240. case '3':
  1241. // 수술
  1242. if(deptflag == 'O'){
  1243. flagValue = '3';
  1244. }
  1245. // 마취
  1246. else if(deptflag == 'A'){
  1247. flagValue = '3';
  1248. }
  1249. // 회복
  1250. else if(deptflag == 'R'){
  1251. flagValue = '0';
  1252. }
  1253. break;
  1254. case '4':
  1255. // 수술
  1256. if(deptflag == 'O'){
  1257. flagValue = '2';
  1258. }
  1259. // 마취
  1260. else if(deptflag == 'A'){
  1261. flagValue = '1';
  1262. }
  1263. // 회복
  1264. else if(deptflag == 'R'){
  1265. flagValue = '4';
  1266. }
  1267. break;
  1268. case '5':
  1269. // 수술
  1270. if(deptflag == 'O'){
  1271. flagValue = '3';
  1272. }
  1273. // 마취
  1274. else if(deptflag == 'A'){
  1275. flagValue = '5';
  1276. }
  1277. // 회복
  1278. else if(deptflag == 'R'){
  1279. flagValue = '1';
  1280. }
  1281. break;
  1282. case '6':
  1283. // 수술
  1284. if(deptflag == 'O'){
  1285. flagValue = '6';
  1286. }
  1287. // 마취
  1288. else if(deptflag == 'A'){
  1289. flagValue = '3';
  1290. }
  1291. // 회복
  1292. else if(deptflag == 'R'){
  1293. flagValue = '2';
  1294. }
  1295. break;
  1296. case '7':
  1297. // 수술
  1298. if(deptflag == 'O'){
  1299. flagValue = '6';
  1300. }
  1301. // 마취
  1302. else if(deptflag == 'A'){
  1303. flagValue = '5';
  1304. }
  1305. // 회복
  1306. else if(deptflag == 'R'){
  1307. flagValue = '4';
  1308. }
  1309. break;
  1310. } // end of switch
  1311. } // end of else
  1312. return flagValue;
  1313. }
  1314. /****************************************************************************************
  1315. * Argument :
  1316. * Description : 수술실간호기록/수술료 기록 체크
  1317. ****************************************************************************************/
  1318. function fEndRecFlagRtn(flag, callflag){
  1319. var flagValue = '0';
  1320. var deptflag = ds_main_cond.getColumn(0, 'deptflag');
  1321. // 마감완료
  1322. if(callflag == 'true'){
  1323. switch(flag){
  1324. case '0':
  1325. // 수술
  1326. if(deptflag == 'O'){
  1327. flagValue = '1';
  1328. }
  1329. // 회복
  1330. else if(deptflag == 'R'){
  1331. flagValue = '2';
  1332. }
  1333. break;
  1334. case '1':
  1335. // 수술
  1336. if(deptflag == 'O'){
  1337. flagValue = '1';
  1338. }
  1339. // 회복
  1340. else if(deptflag == 'R'){
  1341. flagValue = '3';
  1342. }
  1343. break;
  1344. case '2':
  1345. // 수술
  1346. if(deptflag == 'O'){
  1347. flagValue = '3';
  1348. }
  1349. // 회복
  1350. else if(deptflag == 'R'){
  1351. flagValue = '2';
  1352. }
  1353. break;
  1354. case '3':
  1355. flagValue = '3';
  1356. break;
  1357. } // end of switch
  1358. }
  1359. // 마감취소
  1360. else{
  1361. switch(flag){
  1362. case '0':
  1363. // 수술
  1364. if(deptflag == 'O'){
  1365. flagValue = '0';
  1366. }
  1367. // 회복
  1368. else if(deptflag == 'R'){
  1369. flagValue = '0';
  1370. }
  1371. break;
  1372. case '1':
  1373. // 수술
  1374. if(deptflag == 'O'){
  1375. flagValue = '0';
  1376. }
  1377. // 회복
  1378. else if(deptflag == 'R'){
  1379. flagValue = '1';
  1380. }
  1381. break;
  1382. case '2':
  1383. // 수술
  1384. if(deptflag == 'O'){
  1385. flagValue = '2';
  1386. }
  1387. // 회복
  1388. else if(deptflag == 'R'){
  1389. flagValue = '0';
  1390. }
  1391. break;
  1392. case '3':
  1393. // 수술
  1394. if(deptflag == 'O'){
  1395. flagValue = '2';
  1396. }
  1397. // 회복
  1398. else if(deptflag == 'R'){
  1399. flagValue = '1';
  1400. }
  1401. break;
  1402. } // end of switch
  1403. } // end of else
  1404. return flagValue;
  1405. }
  1406. /****************************************************************************************
  1407. * Argument :
  1408. * Description : 수술실간호기록/수술료 기록 체크
  1409. ****************************************************************************************/
  1410. function fEndPrcpRecCncl(){
  1411. var iRows = -1, iNode = "";
  1412. var chkflag, oprsrvno, opprcpchk = "false", oprecchk = "false", prcpendflag = "0", recendflag = "0", flagValue1 = "0", flagValue2 = "0";
  1413. var anstprcpchk = "false", recovprcprchk = "false", recovrecchk = "false";
  1414. var cnt = 0, cnt2 = 0;
  1415. var deptflag = ds_main_cond.getColumn(0, 'deptflag');
  1416. if(deptflag == 'O'){
  1417. iRows = grp_oplist.grd_oplist.rowcount;
  1418. iNode = ds_main_opendlist;
  1419. }
  1420. else{
  1421. iRows = grp_anstlist.grd_anstlist.rowcount;
  1422. iNode = ds_main_anstendlist;
  1423. }
  1424. var prcpendlist = 'oprsrvno▦prcpendflag';
  1425. var recendlist = 'oprsrvno▦recendflag';
  1426. for(var i = 0; i < iRows; i++){
  1427. if(deptflag == 'O'){
  1428. oprecchk = iNode.getColumn(i, 'oprecchk');
  1429. opprcpchk = iNode.getColumn(i, 'opprcpchk');
  1430. oprsrvno = iNode.getColumn(i, 'oprsrvno');
  1431. prcpendflag = iNode.getColumn(i, 'prcpendflag');
  1432. recendflag = iNode.getColumn(i, 'recendflag');
  1433. if(opprcpchk == 'true'){
  1434. cnt++;
  1435. // 플래값 체크(1:수술, 2:마취, 3:회복, 4:수술/마취, 5:수술/회복, 6:마취/회복, 7:수술/마취/회복)
  1436. flagValue1 = fEndPrcpFlagRtn(prcpendflag, '2');
  1437. prcpendlist += '▩' + oprsrvno + '▦' + flagValue1;
  1438. }
  1439. if(oprecchk == 'true'){
  1440. cnt2++;
  1441. // 플래값 체크(1:수술, 2:회복, 3:수술/회복
  1442. flagValue2 = fEndRecFlagRtn(recendflag, '2');
  1443. recendlist += '▩' + oprsrvno + '▦' + flagValue2;
  1444. }
  1445. }
  1446. else if(deptflag == 'A'){
  1447. anstprcpchk = iNode.getColumn(i, 'anstprcpchk');
  1448. oprsrvno = iNode.getColumn(i, 'oprsrvno');
  1449. prcpendflag = iNode.getColumn(i, 'prcpendflag');
  1450. recendflag = iNode.getColumn(i, 'recendflag');
  1451. if(anstprcpchk == 'true'){
  1452. cnt++;
  1453. // 플래값 체크(1:수술, 2:마취, 3:회복, 4:수술/마취, 5:수술/회복, 6:마취/회복, 7:수술/마취/회복)
  1454. flagValue1 = fEndPrcpFlagRtn(prcpendflag, '2');
  1455. prcpendflag = flagValue1;
  1456. prcpendlist += "▩" + oprsrvno + "▦" + flagValue1;
  1457. }
  1458. }
  1459. else if(deptflag == 'R'){
  1460. recovprcprchk = iNode.getColumn(i, 'recovprcprchk');
  1461. recovrecchk = iNode.getColumn(i, 'recovrecchk');
  1462. oprsrvno = iNode.getColumn(i, 'oprsrvno');
  1463. prcpendflag = iNode.getColumn(i, 'prcpendflag');
  1464. recendflag = iNode.getColumn(i, 'recendflag');
  1465. if(recovrecchk == 'true'){
  1466. cnt2++;
  1467. // 플래값 체크(1:수술, 2:회복, 3:수술/회복
  1468. flagValue2 = fEndRecFlagRtn(recendflag, '2');
  1469. recendlist += "▩" + oprsrvno + "▦" + flagValue2;
  1470. }
  1471. if(recovprcprchk == 'true'){
  1472. cnt++;
  1473. // 플래값 체크(1:수술, 2:마취, 3:회복, 4:수술/마취, 5:수술/회복, 6:마취/회복, 7:수술/마취/회복)
  1474. flagValue1 = fEndPrcpFlagRtn(prcpendflag, '2');
  1475. prcpendlist += "▩" + oprsrvno + "▦" + flagValue1;
  1476. }
  1477. }
  1478. } // end of for
  1479. prcpendlist += "▩";
  1480. recendlist += "▩";
  1481. if((cnt + cnt2) > 0){
  1482. // 처방
  1483. if(cnt > 0){
  1484. dsf_setCSVToDs('ds_req', prcpendlist);
  1485. var oParam = {};
  1486. oParam.id = "TXMNP00801";
  1487. oParam.service = "opanstapp.OpAnstRef";
  1488. oParam.method = "reqSetPrcpEndList";
  1489. oParam.inds = "prcpenddata=ds_req";
  1490. oParam.outds = "";
  1491. oParam.async = false;
  1492. //oParam.callback = "cf_TXMNP00801";
  1493. tranf_submit(oParam);
  1494. }
  1495. // 기록
  1496. if(cnt2 > 0){
  1497. // dsf_createDsRow('ds_req', [
  1498. // { col: 'oprsrvno', type: 'string', size: 256, val: '' },
  1499. // { col: 'recendflag', type: 'string', size: 256, val: recendlist }
  1500. // ], false);
  1501. dsf_setCSVToDs('ds_req', recendlist);
  1502. var oParam = {};
  1503. oParam.id = "TXMNP00802";
  1504. oParam.service = "opanstapp.OpAnstRef";
  1505. oParam.method = "reqSetRecEndList";
  1506. oParam.inds = "recenddata=ds_req";
  1507. oParam.outds = "";
  1508. oParam.async = false;
  1509. //oParam.callback = "cf_TXMNP00802";
  1510. tranf_submit(oParam);
  1511. }
  1512. fSearch();
  1513. }
  1514. else{
  1515. sysf_messageBox('선택한것이 ' , 'I004');
  1516. }
  1517. }
  1518. /****************************************************************************************
  1519. * Argument :
  1520. * Description : 화면상단정보설정
  1521. ****************************************************************************************/
  1522. function fSetParam(flag){
  1523. var ds;
  1524. var currow;
  1525. if(flag == 'O'){
  1526. if(grp_oplist.grd_oplist.rowcount == 0){
  1527. return;
  1528. }
  1529. ds = ds_main_opendlist;
  1530. currow = grp_oplist.grd_oplist.currentrow;
  1531. }
  1532. else{
  1533. if(grp_anstlist.grd_anstlist.rowcount == 0){
  1534. return;
  1535. }
  1536. ds = ds_main_anstendlist;
  1537. currow = grp_anstlist.grd_anstlist.currentrow;
  1538. }
  1539. var patFlag = ds.getColumn(currow, 'oppatflagcd');
  1540. // 2008-08-28 오전 9:26:44 taebum add 수술기록 관련 요구사항 처리중
  1541. //var openSusulOprsrvno = sysf_getModelAttribute('susulrec_oprsrvno');
  1542. var openSusulOprsrvno = frmf_getParameter('susulrec_oprsrvno');
  1543. var currentOprsrvno = ds.getColumn(currow, 'oprsrvno');
  1544. if(utlf_transNullToEmpty(openSusulOprsrvno) != ''){
  1545. if(openSusulOprsrvno != currentOprsrvno){
  1546. var openSusulPid = frmf_getParameter('susulrec_pid');
  1547. var openSusulHngnm = frmf_getParameter('susulrec_hngnm');
  1548. // var openSusulPid = sysf_getModelAttribute('susulrec_pid');
  1549. // var openSusulHngnm = sysf_getModelAttribute('susulrec_hngnm');
  1550. sysf_messageBox('등록번호: ' + openSusulPid + ' ' + openSusulHngnm +
  1551. '님의 수술기록 작성 중 입니다. 작성완료 후 수술기록을 닫으시기 바랍니다.', '');
  1552. return;
  1553. }
  1554. }
  1555. // 2008-08-30 오후 2:52:48 taebum
  1556. // 환자구분이 DSC일 경우 수술구분이 정규이면서 현재일자가 수술일자 이전일 경우 CartList만
  1557. // 저장할 수 있도록 외래상단정보 세팅. 후 수술마취 간호처방에 parameter를 전송한다.
  1558. // 2008-09-26 오전 11:05:01 taebum DSC 뿐 아니라 외래로 확정한 케이스에도 CartList 저장 및 상단 정보 생성요청 적용중.
  1559. var tmpIndd = ds.getColumn(currow, 'indd');
  1560. var orddeptcd = ds.getColumn(currow, 'orddeptcd');
  1561. var opcnfmdd = ds.getColumn(currow, 'opcnfmdd');
  1562. var currentdd = utlf_getCurrentDate();
  1563. if(utlf_transNullToEmpty(tmpIndd) == ''){
  1564. var tmpPid = ds.getColumn(currow, 'pid');
  1565. dsf_createDsRow('ds_req', [
  1566. { col: 'pid', type: 'string', size: 256, val: tmpPid },
  1567. { col: 'opcnfmdd', type: 'string', size: 256, val: opcnfmdd },
  1568. { col: 'orddeptcd', type: 'string', size: 256, val: orddeptcd }
  1569. ], false);
  1570. ds_hidedata_otptinfo.clearData();
  1571. ds_hidedata_otptinfo.addRow();
  1572. var oParam = {};
  1573. oParam.id = "TRMNP00108";
  1574. oParam.service = "opanstapp.OpAnstPatMngt";
  1575. oParam.method = "reqGetPidOtptInfo";
  1576. oParam.inds = "reqdata=ds_req";
  1577. oParam.outds = "ds_hidedata_otptinfo=otptinfo";
  1578. oParam.async = false;
  1579. //oParam.callback = "cf_TRMNP00108";
  1580. tranf_submit(oParam);
  1581. var pid = ds_hidedata_otptinfo.getColumn(0, 'pid');
  1582. if(utlf_transNullToEmpty(pid) != ''){
  1583. if(patFlag == ''){
  1584. patFlag = 'O';
  1585. }
  1586. var param = '';
  1587. if(patFlag == 'D' || patFlag == 'I' || patFlag == 'E'){
  1588. // 외래환자 상단올리기
  1589. // 2009-05-11 YCD 외래 환자 상단정보 세팅 변경
  1590. param = ds_hidedata_otptinfo.getColumn(0, 'ordtype') + '▦' +
  1591. ds_hidedata_otptinfo.getColumn(0, 'pid') + '▦' +
  1592. ds_hidedata_otptinfo.getColumn(0, 'orddd') + '▦' +
  1593. utlf_transNullToEmpty(ds_hidedata_otptinfo.getColumn(0, 'cretno')) + '▦' +
  1594. ds_hidedata_otptinfo.getColumn(0, 'instcd') + '▦' +
  1595. '' + '▦' +
  1596. ds_hidedata_otptinfo.getColumn(0, 'orgorddd');
  1597. }
  1598. else{
  1599. param = 'T▦' + // 01 O:외래, I:입원구분, T:수술예약
  1600. ds.getColumn(currow, 'pid') + '▦' + // 02 등록번호
  1601. ds.getColumn(currow, 'opcnfmdd') + '▦' + // 03 수술시작일자
  1602. utlf_transNullToEmpty(ds.getColumn(currow, 'cretno')) + '▦' + // 04 cretno(없는 경우 ""로 처리)
  1603. ds.getColumn(currow, 'instcd') + '▦' + // 05 기관코드
  1604. ds.getColumn(currow, 'deptcd') + '▦' + // 06 집도과부서
  1605. ds.getColumn(currow, 'perfdrid1') + '▦' + // 07 집도의ID
  1606. patFlag + '▦' + // 08 환자구분
  1607. 'F▦' + // 09 F -처리구분 무조건 F로 설정
  1608. ds.getColumn(currow, 'oprsrvno') + '▦' + // 10 수술예약번호
  1609. ds.getColumn(currow, 'ophistno') + '▦' + // 11 수술이력번호
  1610. ds.getColumn(currow, 'opcnfmdd') + '▦'; // 12 조회일자 2007-09-13 오지훈 추가...
  1611. }
  1612. appf_initPatientInfo(param);
  1613. // frmf_setParameter('condparam', param);
  1614. //
  1615. // frmf_modal("SPMMO08900", "SPMMO08900", '', "", '', '', '', "", "", "", "", "", "M");
  1616. } // end of if(utlf_transNullToEmpty(pid) != '')
  1617. }
  1618. else{
  1619. param = 'T▦' + // 01 O:외래, I:입원구분, T:수술예약
  1620. ds.getColumn(currow, 'pid') + '▦' + // 02 등록번호
  1621. ds.getColumn(currow, 'opcnfmdd') + '▦' + // 03 수술시작일자
  1622. '▦' + // 04 cretno(없는 경우 ""로 처리)
  1623. ds.getColumn(currow, 'instcd') + '▦' + // 05 기관코드
  1624. ds.getColumn(currow, 'deptcd') + '▦' + // 06 집도과부서
  1625. ds.getColumn(currow, 'perfdrid1') + '▦' + // 07 집도의ID
  1626. patFlag + '▦' + // 08 환자구분
  1627. 'F▦' + // 09 F -처리구분 무조건 F로 설정
  1628. ds.getColumn(currow, 'oprsrvno') + '▦' + // 10 수술예약번호
  1629. ds.getColumn(currow, 'ophistno') + '▦' + // 11 수술이력번호
  1630. ds.getColumn(currow, 'opcnfmdd') + '▦'; // 12 조회일자 2007-09-13 오지훈 추가...
  1631. appf_initPatientInfo(param);
  1632. // frmf_setParameter('condparam', param);
  1633. //
  1634. // frmf_modal("SPMMO08900", "SPMMO08900", '', "", '', '', '', "", "", "", "", "", "M");
  1635. }
  1636. }
  1637. /****************************************************************************************
  1638. * Argument :
  1639. * Description : 처방 출력
  1640. ****************************************************************************************/
  1641. function fPrntPrcpList(){
  1642. dsf_createDsRow('ds_req', [
  1643. { col: 'instcd', type: 'string', size: 256, val: sysf_getUserInfo('dutplceinstcd') }, // 기관코드
  1644. { col: 'oprsrvno', type: 'string', size: 256, val: '' },
  1645. { col: 'ophistno', type: 'int', size: 256, val: '' },
  1646. { col: 'ophistcd', type: 'string', size: 256, val: '' }
  1647. ], false);
  1648. dsf_setTypeFormat(ds_req, "ophistno:INT");
  1649. if(ds_main_cond.getColumn('deptflag') == 'O'){
  1650. // 수술예약(의뢰)번호 (년도 + 일련번호)
  1651. ds_req.setColumn(0, 'oprsrvno', ds_main_opendlist.getColumn(grp_oplist.grd_oplist.currentrow, 'oprervno'));
  1652. // 예약번호에따른이력번호
  1653. ds_req.setColumn(0, 'ophistno', ds_main_opendlist.getColumn(grp_oplist.grd_oplist.currentrow, 'ophistno'));
  1654. // 수술예약의이력코드
  1655. ds_req.setColumn(0, 'ophistcd', ds_main_opendlist.getColumn(grp_oplist.grd_oplist.currentrow, 'ophistcd'));
  1656. }
  1657. else{
  1658. // 수술예약(의뢰)번호 (년도 + 일련번호)
  1659. ds_req.setColumn(0, 'oprsrvno', ds_main_anstendlist.getColumn(grp_anstlist.grd_anstlist.currentrow, 'oprervno'));
  1660. // 예약번호에따른이력번호
  1661. ds_req.setColumn(0, 'ophistno', ds_main_anstendlist.getColumn(grp_anstlist.grd_anstlist.currentrow, 'ophistno'));
  1662. // 수술예약의이력코드
  1663. ds_req.setColumn(0, 'ophistcd', ds_main_anstendlist.getColumn(grp_anstlist.grd_anstlist.currentrow, 'ophistcd'));
  1664. }
  1665. ds_main_mmohoprslist.clearData();
  1666. ds_main_mmohoprslist.addRow();
  1667. // 수술예약정보를 가져온다
  1668. var oParam = {};
  1669. oParam.id = "TRMNP01800";
  1670. oParam.service = "opanstapp.OpAnstCCrtGoodMngt";
  1671. oParam.method = "reqGetMmohoprsList";
  1672. oParam.inds = "req=ds_req";
  1673. oParam.outds = "ds_main_mmohoprslist=mmohoprslist";
  1674. oParam.async = false;
  1675. //oParam.callback = "cf_TRMNP01800";
  1676. tranf_submit(oParam);
  1677. ds_main_mmohoprslist.addColumn('prnti', 'string');
  1678. ds_main_mmohoprslist.addColumn('prntii', 'string');
  1679. ds_main_mmohoprslist.addColumn('prntiii', 'string');
  1680. ds_main_mmohoprslist.addColumn('prntv', 'string');
  1681. ds_main_mmohoprslist.addColumn('cartgubn', 'string');
  1682. if(ds_main_mmohoprslist.rowcount < 1){
  1683. ds_main_mmohoprslist.copyRow(0, ds_main_cond, 0, 'prnti=prnti,prntii=prntii,prntiii=prntiii,prntv=prntv,cartgubn=deptflag');
  1684. }
  1685. else{
  1686. ds_main_mmohoprslist.copyRow(0, ds_main_cond, 0, 'prnti=prnti,prntii=prntii,prntiii=prntiii,prntv=prntv,cartgubn=deptflag');
  1687. }
  1688. // DOM 객체 설정
  1689. var objDOM = rptf_createDOM();
  1690. rptf_setNodeListToDOM(objDOM, '/root/main/prtinfo/MmohoprsLists/mmohoprslist' , ds_main_mmohoprslist);
  1691. // dbs227 XML 파일 없음
  1692. // rptf_setNodeListToDOM(objDOM, '/root/main/prtinfo/CartOrdData/ListDiposit' , ds_main_mmohoprslist);
  1693. // rptf_setNodeListToDOM(objDOM, '/root/main/prtinfo/CartOrdData/ListSupplies' , ds_main_mmohoprslist);
  1694. // rptf_setNodeListToDOM(objDOM, 'root/main/prtinfo/CartOrdData/ListDrug' , ds_main_mmohoprslist);
  1695. var objParam = new Object();
  1696. rptf_exeReportPreview30(["RPMNP01800"],[{ xml_data_XML1: objDOM.documentElement.source }],
  1697. "open=1;save=1;directprint=1;printdialog=0;print=1;zoom=0");
  1698. }
  1699. /****************************************************************************************
  1700. * Argument :
  1701. * Description : 처치 팝업
  1702. ****************************************************************************************/
  1703. function popupAnst(obj:PopupMenu, e:MenuClickEventInfo){
  1704. fShowPopup(e.id);
  1705. }
  1706. /****************************************************************************************
  1707. * Argument :
  1708. * Description : 수술 팝업
  1709. ****************************************************************************************/
  1710. function popupOplist(obj:PopupMenu, e:MenuClickEventInfo){
  1711. fShowPopup(e.id);
  1712. }
  1713. function fShowPopup(flag){
  1714. var deptflag = ds_main_cond.getColumn(0, 'deptflag');
  1715. // 수술
  1716. if(deptflag == 'O'){
  1717. var oprsrvno = ds_main_opendlist.getColumn(grp_oplist.grd_oplist.currentrow, 'oprsrvno');
  1718. var ophistcd = ds_main_opendlist.getColumn(grp_oplist.grd_oplist.currentrow, 'ophistcd');
  1719. var ophistno = ds_main_opendlist.getColumn(grp_oplist.grd_oplist.currentrow, 'ophistno');
  1720. var pid = ds_main_opendlist.getColumn(grp_oplist.grd_oplist.currentrow, 'pid');
  1721. var oppatflagcd = ds_main_opendlist.getColumn(grp_oplist.grd_oplist.currentrow, 'oppatflagcd');
  1722. var oproomnm = ds_main_opendlist.getColumn(grp_oplist.grd_oplist.currentrow, 'oproomnm');
  1723. var deptflag = ds_main_cond.getColumn(0, 'deptflag');
  1724. var indd = ds_main_opendlist.getColumn(grp_oplist.grd_oplist.currentrow, 'indd');
  1725. var orddeptcd = ds_main_opendlist.getColumn(grp_oplist.grd_oplist.currentrow, 'orddeptcd');
  1726. var instcd = ds_main_opendlist.getColumn(grp_oplist.grd_oplist.currentrow, 'instcd');
  1727. var opcnfmdd = ds_main_opendlist.getColumn(grp_oplist.grd_oplist.currentrow, 'opcnfmdd');
  1728. }
  1729. else{
  1730. var oprsrvno = ds_main_opendlist.getColumn(grp_anstlist.grd_anstlist.currentrow, 'oprsrvno');
  1731. var ophistcd = ds_main_opendlist.getColumn(grp_anstlist.grd_anstlist.currentrow, 'ophistcd');
  1732. var ophistno = ds_main_opendlist.getColumn(grp_anstlist.grd_anstlist.currentrow, 'ophistno');
  1733. var pid = ds_main_opendlist.getColumn(grp_anstlist.grd_anstlist.currentrow, 'pid');
  1734. var oppatflagcd = ds_main_opendlist.getColumn(grp_anstlist.grd_anstlist.currentrow, 'oppatflagcd');
  1735. var oproomnm = ds_main_opendlist.getColumn(grp_anstlist.grd_anstlist.currentrow, 'oproomnm');
  1736. var deptflag = ds_main_cond.getColumn(0, 'deptflag');
  1737. var indd = ds_main_opendlist.getColumn(grp_anstlist.grd_anstlist.currentrow, 'indd');
  1738. var orddeptcd = ds_main_opendlist.getColumn(grp_anstlist.grd_anstlist.currentrow, 'orddeptcd');
  1739. var instcd = ds_main_opendlist.getColumn(grp_anstlist.grd_anstlist.currentrow, 'instcd');
  1740. var opcnfmdd = ds_main_opendlist.getColumn(grp_anstlist.grd_anstlist.currentrow, 'opcnfmdd');
  1741. }
  1742. fSetParam(deptflag);
  1743. switch(flag){
  1744. // 확정처방조회
  1745. case '1':
  1746. frmf_clearParameter();
  1747. frmf_setParameter('oprsrvno', oprsrvno);
  1748. frmf_setParameter('ophistcd', ophistcd);
  1749. frmf_setParameter('ophistno', ophistno);
  1750. frmf_setParameter('pid', pid);
  1751. frmf_setParameter('deptflag', deptflag);
  1752. frmf_setParameter('oppatflagcd', oppatflagcd);
  1753. frmf_setParameter('oproomnm', oproomnm);
  1754. frmf_modal("SPMNP01900", "SPMNP01900", '', "", '', '', '', "", "", "", "", "", "M");
  1755. break;
  1756. // 확정처방저장
  1757. case '2':
  1758. var today = utlf_getCurrentDate();
  1759. if(utlf_transNullToEmpty(indd) == ''){
  1760. sysf_setModelAttribute('SuSulOrder_Oprsinfo_oprsrvno', oprsrvno);
  1761. sysf_setModelAttribute('SuSulOrder_Oprsinfo_instcd', instcd);
  1762. sysf_setModelAttribute('SuSulOrder_Oprsinfo_ophistno', ophistno);
  1763. sysf_setModelAttribute('SuSulOrder_Oprsinfo_ophistcd', ophistcd);
  1764. }
  1765. frmf_modal("SMMNP01800", "SMMNP01800", '', "", '', '', '', "", "", "", "", "", "M");
  1766. break;
  1767. // 확정처방출력
  1768. case '3':
  1769. frmf_clearParameter();
  1770. group5.visible = true;
  1771. break;
  1772. // 수술간호기록
  1773. case '4':
  1774. frmf_open("SMMNP00300", "SMMNP00300", "", "", "", "", "", "", "", "", "", "", "M");
  1775. break;
  1776. // 반납내역서조회
  1777. case '5':
  1778. var patnm = ds_main_opendlist.getColumn(grp_oplist.grd_oplist.currentrow, 'patnm');
  1779. var pid = ds_main_opendlist.getColumn(grp_oplist.grd_oplist.currentrow, 'pid');
  1780. var roomcd = ds_main_opendlist.getColumn(grp_oplist.grd_oplist.currentrow, 'roomcd');
  1781. var sa = ds_main_opendlist.getColumn(grp_oplist.grd_oplist.currentrow, 'sa');
  1782. var perfdeptabbr = ds_main_opendlist.getColumn(grp_oplist.grd_oplist.currentrow, 'deptnm');
  1783. var perfnm = ds_main_opendlist.getColumn(grp_oplist.grd_oplist.currentrow, 'perfnm');
  1784. var opnm = ds_main_opendlist.getColumn(grp_oplist.grd_oplist.currentrow, 'opnm');
  1785. var oproomnm = ds_main_opendlist.getColumn(grp_oplist.grd_oplist.currentrow, 'oproomnm');
  1786. var wardnm = ds_main_opendlist.getColumn(grp_oplist.grd_oplist.currentrow, 'wardnm');
  1787. var optype = ds_main_opendlist.getColumn(grp_oplist.grd_oplist.currentrow, 'optype');
  1788. var tm = ds_main_opendlist.getColumn(grp_oplist.grd_oplist.currentrow, 'opcnfmdt');
  1789. var patinfo = wardnm + ' ' + roomcd + ' ' + patnm + ' ' + sa + ' ' + pid;
  1790. var opcnfmdd = ds_main_opendlist.getColumn(grp_oplist.grd_oplist.currentrow, 'opcnfmdd');
  1791. var opinfo = perfdeptabbr + ' ' + oproomnm + ' ' + perfnm + ' ' + opnm;
  1792. var disp1 = ds_main_opendlist.getColumn(grp_oplist.grd_oplist.currentrow, 'disp1');
  1793. var disp2 = ds_main_opendlist.getColumn(grp_oplist.grd_oplist.currentrow, 'disp2');
  1794. var disp3 = ds_main_opendlist.getColumn(grp_oplist.grd_oplist.currentrow, 'disp3');
  1795. var patflagcd = ds_main_opendlist.getColumn(grp_oplist.grd_oplist.currentrow, 'oppatflagcd');
  1796. var ccrtstat = ds_main_opendlist.getColumn(grp_oplist.grd_oplist.currentrow, 'ccrtstat');
  1797. if(ccrtstat < '5'){
  1798. sysf_messageBox('확정처방 이후만 조회 가능합니다.', 'E000');
  1799. return;
  1800. }
  1801. frmf_clearParameter();
  1802. frmf_setParameter('patinfo', patinfo);
  1803. frmf_setParameter('opcnfmdd', opcnfmdd);
  1804. frmf_setParameter('opinfo', opinfo);
  1805. frmf_setParameter('patnm', patnm);
  1806. frmf_setParameter('pid', pid);
  1807. frmf_setParameter('roomcd', roomcd);
  1808. frmf_setParameter('sa', sa);
  1809. frmf_setParameter('perfdeptabbr', perfdeptabbr);
  1810. frmf_setParameter('opnm', opnm);
  1811. frmf_setParameter('perfnm', perfnm);
  1812. frmf_setParameter('oproomnm', oproomnm);
  1813. frmf_setParameter('wardnm', wardnm);
  1814. frmf_setParameter('optype', optype);
  1815. frmf_setParameter('patflagcd', patflagcd);
  1816. frmf_setParameter('disp1', disp1);
  1817. frmf_setParameter('disp2', disp2);
  1818. frmf_setParameter('disp3', disp3);
  1819. frmf_setParameter('tm', tm);
  1820. frmf_setParameter('oprsrvno', ds_main_opendlist.getColumn(grp_oplist.grd_oplist.currentrow, 'oprsrvno'));
  1821. frmf_setParameter('opdd', opcnfmdd);
  1822. frmf_setParameter('cartgubn', 'O');
  1823. frmf_modal("SMMNP03600", "SMMNP03600", '', "", '', '', '', "", "", "", "", "", "M");
  1824. break;
  1825. } // end of switch
  1826. }
  1827. //=======================================================================================
  1828. // callback
  1829. //---------------------------------------------------------------------------------------
  1830. function callback(sSvcId, nErrorCode, sErrorMsg){
  1831. arErrorCode.push(sSvcId, nErrorCode);
  1832. }
  1833. //=======================================================================================
  1834. // Events
  1835. //---------------------------------------------------------------------------------------
  1836. /****************************************************************************************
  1837. * Argument :
  1838. * Description : onload
  1839. ****************************************************************************************/
  1840. function SMMNP00800_onload(obj:Form, e:LoadEventInfo){
  1841. // 폼 초기화
  1842. frmf_initForm(obj);
  1843. /*
  1844. fInit();
  1845. // 팝업메뉴 생성
  1846. frmf_createPopupMenu('anstPopupMenu', 'popupAnst', [
  1847. { id: '1', Level: '0', title: '확정간호처방조회' },
  1848. { id: '2', Level: '0', title: '확정간호처방수정' },
  1849. { id: '3', Level: '0', title: '확정간호처방출력' },
  1850. { id: '4', Level: '0', title: '수술간호기록' },
  1851. { id: '5', Level: '0', title: '반납리스트조회' }
  1852. ]);
  1853. frmf_createPopupMenu('oplistPopupMenu', 'popupOplist', [
  1854. { id: '1', Level: '0', title: '확정간호처방조회' },
  1855. { id: '2', Level: '0', title: '확정간호처방수정' },
  1856. { id: '3', Level: '0', title: '확정간호처방출력' }
  1857. ]);
  1858. */
  1859. this.setTimer(0, 100);
  1860. }
  1861. /****************************************************************************************
  1862. * Argument :
  1863. * Description : 부서구분 라디오 아이템 변경 이벤트
  1864. ****************************************************************************************/
  1865. function grp_radio1_onitemchanged(obj:Radio, e:ItemChangeEventInfo){
  1866. var deptflag = ds_main_cond.getColumn(0, 'deptflag');
  1867. // 수술
  1868. if(deptflag == 'O'){
  1869. grp_oplist.visible = true;
  1870. grp_anstlist.visible = false;
  1871. ds_main_opendlist.clearData();
  1872. ds_main_anstendlist.clearData();
  1873. }
  1874. // 마취
  1875. else if(deptflag == 'A'){
  1876. grp_oplist.visible = false;
  1877. grp_anstlist.visible = true;
  1878. grp_anstlist.grd_anstlist.setFormatColProperty(1, 'size', 25);
  1879. grp_anstlist.grd_anstlist.setFormatColProperty(2, 'size', 50);
  1880. grp_anstlist.grd_anstlist.setFormatColProperty(3, 'size', 0);
  1881. grp_anstlist.grd_anstlist.setFormatColProperty(4, 'size', 0);
  1882. grp_anstlist.grd_anstlist.setFormatColProperty(5, 'size', 0);
  1883. // grp_anstlist.grd_anstlist.setFormatColProperty(3, 'size', 35);
  1884. // grp_anstlist.grd_anstlist.setFormatColProperty(4, 'size', 40);
  1885. // grp_anstlist.grd_anstlist.setFormatColProperty(5, 'size', 35);
  1886. grp_anstlist.grd_anstlist.setFormatColProperty(6, 'size', 0);
  1887. ds_main_opendlist.clearData();
  1888. ds_main_anstendlist.clearData();
  1889. }
  1890. // 회복
  1891. else if(deptflag == 'R'){
  1892. grp_oplist.visible = false;
  1893. grp_anstlist.visible = true;
  1894. grp_anstlist.grd_anstlist.setFormatColProperty(1, 'size', 0);
  1895. grp_anstlist.grd_anstlist.setFormatColProperty(2, 'size', 0);
  1896. grp_anstlist.grd_anstlist.setFormatColProperty(3, 'size', 35);
  1897. grp_anstlist.grd_anstlist.setFormatColProperty(4, 'size', 40);
  1898. grp_anstlist.grd_anstlist.setFormatColProperty(5, 'size', 35);
  1899. grp_anstlist.grd_anstlist.setFormatColProperty(6, 'size', 50);
  1900. ds_main_opendlist.clearData();
  1901. ds_main_anstendlist.clearData();
  1902. }
  1903. }
  1904. /****************************************************************************************
  1905. * Argument :
  1906. * Description : 어제 버튼 클릭 이벤트
  1907. ****************************************************************************************/
  1908. function grp_button25_onclick(obj:Button, e:ClickEventInfo){
  1909. var sChkdd = utlf_getCurrentDate();
  1910. var sCalcdd = fCalcdate(-1, sChkdd);
  1911. ds_main_cond.setColumn(0, 'opfromdd', sCalcdd);
  1912. ds_main_cond.setColumn(0, 'optodd', sCalcdd);
  1913. }
  1914. /****************************************************************************************
  1915. * Argument :
  1916. * Description : 오늘 버튼 클릭 이벤트
  1917. ****************************************************************************************/
  1918. function grp_button7_onclick(obj:Button, e:ClickEventInfo){
  1919. var sChkdd = utlf_getCurrentDate();
  1920. ds_main_cond.setColumn(0, 'opfromdd', sChkdd);
  1921. ds_main_cond.setColumn(0, 'optodd', sChkdd);
  1922. }
  1923. /****************************************************************************************
  1924. * Argument :
  1925. * Description : 내일 버튼 클릭 이벤트
  1926. ****************************************************************************************/
  1927. function grp_button6_onclick(obj:Button, e:ClickEventInfo){
  1928. var sChkdd = utlf_getCurrentDate();
  1929. var sCalcdd = fCalcdate(1, sChkdd);
  1930. ds_main_cond.setColumn(0, 'opfromdd', sCalcdd);
  1931. ds_main_cond.setColumn(0, 'optodd', sCalcdd);
  1932. }
  1933. /****************************************************************************************
  1934. * Argument :
  1935. * Description : 수술방 콤보 아이템 아이템 변경 이벤트
  1936. ****************************************************************************************/
  1937. function grp_cmb_rosette_onitemchanged(obj:Combo, e:ItemChangeEventInfo){
  1938. dsf_createDsRow('ds_req', [
  1939. { col: 'opcnfmdd', type: 'string', size: 256, val: ds_main_cond.getColumn(0, 'opfromdd') },
  1940. { col: 'rosette', type: 'string', size: 256, val: ds_main_cond.getColumn(0, 'oprosette') }
  1941. ], false);
  1942. ds_init_oproomlist.clearData();
  1943. ds_init_oproomlist.addRow();
  1944. var oParam = {};
  1945. oParam.id = "TRMNP03002";
  1946. oParam.service = "opanstapp.OpAnstCCrtGoodMngt";
  1947. oParam.method = "reqGetOmcdlist";
  1948. oParam.inds = "req=ds_req";
  1949. oParam.outds = "ds_init_oproomlist=oproomlist";
  1950. oParam.async = false;
  1951. oParam.callback = "callback";
  1952. tranf_submit(oParam);
  1953. if(arErrorCode.pop("TRMNP03002") > -1){
  1954. frmf_addComboItem('grp.cmb_oproomlist', '전체', '', 'above');
  1955. }
  1956. }
  1957. /****************************************************************************************
  1958. * Argument :
  1959. * Description : 수술방 오른쪽 콤보 아이템 아이템 변경 이벤트
  1960. ****************************************************************************************/
  1961. function grp_cmb_oproomlist_onitemchanged(obj:Combo, e:ItemChangeEventInfo){
  1962. fSearch();
  1963. }
  1964. /****************************************************************************************
  1965. * Argument :
  1966. * Description : 조회 버튼 클릭 이벤트
  1967. ****************************************************************************************/
  1968. function grp_btn_search_onclick(obj:Button, e:ClickEventInfo){
  1969. fSearch();
  1970. }
  1971. /****************************************************************************************
  1972. * Argument :
  1973. * Description : 엑셀 버튼 클릭 이벤트
  1974. ****************************************************************************************/
  1975. function grp_button5_onclick(obj:Button, e:ClickEventInfo){
  1976. var deptflag = ds_main_cond.getColumn(0, 'deptflag');
  1977. var ds;
  1978. if(deptflag == 'O'){
  1979. ds = grp_oplist.grd_oplist;
  1980. }
  1981. else{
  1982. ds = grp_anstlist.grd_anstlist;
  1983. }
  1984. grdf_exportExcel(ds, 'excel', 'SheetName', true, '', 'user', false);
  1985. }
  1986. /****************************************************************************************
  1987. * Argument :
  1988. * Description : 마취 마감완료 버튼 클릭 이벤트
  1989. ****************************************************************************************/
  1990. function grp_anstlist_button2_onclick(obj:Button, e:ClickEventInfo){
  1991. fEndPrcpRec();
  1992. }
  1993. /****************************************************************************************
  1994. * Argument :
  1995. * Description : 마취 마감취소 버튼 클릭 이벤트
  1996. ****************************************************************************************/
  1997. function grp_anstlist_button3_onclick(obj:Button, e:ClickEventInfo){
  1998. fEndPrcpRecCncl();
  1999. }
  2000. /****************************************************************************************
  2001. * Argument :
  2002. * Description : 마취 그리드 셀 마우스 우클릭 이벤트
  2003. ****************************************************************************************/
  2004. function grp_anstlist_grd_anstlist_onrbuttondown(obj:Grid, e:GridMouseEventInfo){
  2005. //anstPopupMenu.trackPopup(e.screenX, e.screenY);
  2006. }
  2007. /****************************************************************************************
  2008. * Argument :
  2009. * Description : 마취 그리드 셀 더블클릭 이벤트
  2010. ****************************************************************************************/
  2011. function grp_anstlist_grd_anstlist_oncelldblclick(obj:Grid, e:GridClickEventInfo){
  2012. fSetParam(ds_main_cond.getColumn(0, 'deptflag'));
  2013. }
  2014. /****************************************************************************************
  2015. * Argument :
  2016. * Description : 수술 마감완료 버튼 클릭 이벤트
  2017. ****************************************************************************************/
  2018. function grp_oplist_bbt_tSave_onclick(obj:Button, e:ClickEventInfo){
  2019. fEndPrcpRec();
  2020. }
  2021. /****************************************************************************************
  2022. * Argument :
  2023. * Description : 수술 마감취소 버튼 클릭 이벤트
  2024. ****************************************************************************************/
  2025. function grp_oplist_button1_onclick(obj:Button, e:ClickEventInfo){
  2026. fEndPrcpRecCncl();
  2027. }
  2028. /****************************************************************************************
  2029. * Argument :
  2030. * Description : 수술 그리드 셀 마우스 우클릭 이벤트
  2031. ****************************************************************************************/
  2032. function grp_oplist_grd_oplist_onrbuttondown(obj:Grid, e:GridMouseEventInfo){
  2033. //oplistPopupMenu.trackPopup(e.screenX, e.screenY);
  2034. }
  2035. /****************************************************************************************
  2036. * Argument :
  2037. * Description : 수술 그리드 셀 더블클릭 이벤트
  2038. ****************************************************************************************/
  2039. function grp_oplist_grd_oplist_oncelldblclick(obj:Grid, e:GridClickEventInfo){
  2040. var flag = ds_main_cond.getColumn(0, 'deptflag');
  2041. fSetParam(flag);
  2042. }
  2043. /****************************************************************************************
  2044. * Argument :
  2045. * Description : group5 확인 버튼 클릭 이벤트
  2046. ****************************************************************************************/
  2047. function group5_btn_prtlabel_onclick(obj:Button, e:ClickEventInfo){
  2048. fPrntPrcpList();
  2049. group5.visible = false;
  2050. }
  2051. /****************************************************************************************
  2052. * Argument :
  2053. * Description : group5 취소 버튼 클릭 이벤트
  2054. ****************************************************************************************/
  2055. function group5_button4_onclick(obj:Button, e:ClickEventInfo){
  2056. group5.visible = false;
  2057. }
  2058. /****************************************************************************************
  2059. * Argument :
  2060. * Description : 수술기록 그리드 헤드 클릭 이벤트
  2061. ****************************************************************************************/
  2062. function grp_oplist_grd_oplist_onheadclick(obj:Grid, e:GridClickEventInfo){
  2063. grdf_setEventGrid(grp_oplist.grd_oplist, e);
  2064. var colname = eval(obj.binddataset).getColID(e.col - 1);
  2065. if(colname == 'oprecchk' || colname == 'opprcpchk'){
  2066. if(obj.getCellProperty('Head', e.cell, 'text') == 0 || obj.getCellProperty('Head', e.cell, 'text') == undefined){
  2067. //obj.setCellProperty('Head', e.cell, 'text', 1);
  2068. for(var i = 0; i < obj.rowcount; i ++){
  2069. eval(obj.binddataset).setColumn(i, colname, 'false');
  2070. }
  2071. }
  2072. else{
  2073. // obj.setCellProperty('Head', e.cell, 'text', 0);
  2074. for(var i = 0; i < obj.rowcount; i ++){
  2075. eval(obj.binddataset).setColumn(i, colname, 'true');
  2076. }
  2077. }
  2078. }
  2079. }
  2080. /****************************************************************************************
  2081. * Argument :
  2082. * Description : 마취 그리드 헤드 클릭 이벤트
  2083. ****************************************************************************************/
  2084. function grp_anstlist_grd_anstlist_onheadclick(obj:Grid, e:GridClickEventInfo){
  2085. var idx = (e.cell == 5) ? 1 : e.cell;
  2086. var colname = eval(obj.binddataset).getColID(idx - 1);
  2087. if(colname == 'anstprcpchk' || colname == 'recovprcprchk' || colname == 'recovrecchk'){
  2088. if(obj.getCellProperty('Head', e.cell, 'text') == 0 || obj.getCellProperty('Head', e.cell, 'text') == undefined){
  2089. obj.setCellProperty('Head', e.cell, 'text', 1);
  2090. for(var i = 0; i < obj.rowcount; i ++){
  2091. eval(obj.binddataset).setColumn(i, colname, 'true');
  2092. }
  2093. }
  2094. else{
  2095. obj.setCellProperty('Head', e.cell, 'text', 0);
  2096. for(var i = 0; i < obj.rowcount; i ++){
  2097. eval(obj.binddataset).setColumn(i, colname, 'false');
  2098. }
  2099. }
  2100. }
  2101. }
  2102. /****************************************************************************************
  2103. * Argument :
  2104. * Description : 수술기록 그리드 셀 클릭 이벤트
  2105. ****************************************************************************************/
  2106. function grp_oplist_grd_oplist_oncellclick(obj:Grid, e:GridClickEventInfo){
  2107. var colname = eval(obj.binddataset).getColID(e.col - 1);
  2108. if(colname == 'oprecchk' || colname == 'opprcpchk'){
  2109. var value = eval(obj.binddataset).getColumn(e.row, colname);
  2110. value = (value == 'true' || value == '1') ? 'true' : 'false';
  2111. eval(obj.binddataset).setColumn(e.row, colname, value);
  2112. }
  2113. }
  2114. /****************************************************************************************
  2115. * Argument :
  2116. * Description : 마취 그리드 셀 클릭 이벤트
  2117. ****************************************************************************************/
  2118. function grp_anstlist_grd_anstlist_oncellclick(obj:Grid, e:GridClickEventInfo){
  2119. var idx = (e.cell == 5) ? 1 : e.cell;
  2120. var colname = eval(obj.binddataset).getColID(idx - 1);
  2121. if(colname == 'anstprcpchk' || colname == 'recovprcprchk' || colname == 'recovrecchk'){
  2122. var value = eval(obj.binddataset).getColumn(e.row, colname);
  2123. value = (value == 'true' || value == '1') ? 'true' : 'false';
  2124. eval(obj.binddataset).setColumn(e.row, colname, value);
  2125. }
  2126. }
  2127. function SMMNP00800_ontimer(obj:Form, e:TimerEventInfo)
  2128. {
  2129. if( e.timerid == 0 ){
  2130. this.killTimer( 0 );
  2131. fInit();
  2132. // 팝업메뉴 생성
  2133. frmf_createPopupMenu('anstPopupMenu', 'popupAnst', [
  2134. { id: '1', Level: '0', title: '확정간호처방조회' },
  2135. { id: '2', Level: '0', title: '확정간호처방수정' },
  2136. { id: '3', Level: '0', title: '확정간호처방출력' }
  2137. ]);
  2138. frmf_createPopupMenu('oplistPopupMenu', 'popupOplist', [
  2139. { id: '1', Level: '0', title: '확정간호처방조회' },
  2140. { id: '2', Level: '0', title: '확정간호처방수정' },
  2141. { id: '3', Level: '0', title: '확정간호처방출력' },
  2142. { id: '4', Level: '0', title: '수술간호기록' },
  2143. { id: '5', Level: '0', title: '반납리스트조회' }
  2144. ]);
  2145. }
  2146. }
  2147. function grp_oplist_grd_oplist_onrbuttonup(obj:Grid, e:GridMouseEventInfo)
  2148. {
  2149. if(e.row < 0 || e.col < 0) return;
  2150. grdf_setSelectedCell(obj, e);
  2151. oplistPopupMenu.trackPopup(e.screenX, e.screenY);
  2152. }
  2153. function grp_anstlist_grd_anstlist_onrbuttonup(obj:Grid, e:GridMouseEventInfo)
  2154. {
  2155. anstPopupMenu.trackPopup(e.screenX, e.screenY);
  2156. }
  2157. ]]></Script>
  2158. </Form>
  2159. </FDL>