SMMNW18000_입퇴원라운지메인.xfdl 97 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074
  1. <?xml version="1.0" encoding="utf-8" standalone="no"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SMMNW18000" position="absolute 0 0 1219 791" titletext="입퇴원라운지메인" onload="SMMNW18000_onload">
  5. <Layouts>
  6. <Layout>
  7. <Div id="group1" position="absolute 0 0 1195 21" style="" scrollbars="none">
  8. <Layouts>
  9. <Layout>
  10. <Static id="caption6" class="tit_1" position="absolute 0 0 159 23" style="" text="입퇴원라운지메인" anchor="default"/>
  11. </Layout>
  12. </Layouts>
  13. </Div>
  14. <Div id="group3" position="absolute 0 13 1195 775" style="" scrollbars="none">
  15. <Layouts>
  16. <Layout>
  17. <Div id="group2" position="absolute 0 10 1194 45" style="">
  18. <Layouts>
  19. <Layout>
  20. <Shape id="roundrect1" anchor="default" class="roundrect_search" type="roundrectangle" position="absolute 0 0 1194 35" style="border:1 solid #ffd799 #ffd799;background:#fffbf2 ;"/>
  21. <Static id="caption1" class="search_name" position="absolute 370 8 456 25" style="font:Dotum,9,bold;" text="방문여부 :"/>
  22. <Shape id="line2" class="line_4" linetype="vertical" position="absolute 1053 7 1056 29" style="border:1 solid #ffe4bb #ffe4bb;" anchor="default"/>
  23. <Calendar id="ipt_fromdd" class="input_search" mask="yyyy-mm-dd" position="absolute 122 8 220 27" style="font:Dotum,9;" anchor="default" autoselect="true" readonly="false"/>
  24. <Calendar id="ipt_todd" class="input_search" position="absolute 242 8 340 27" style="font:Dotum,9;" anchor="default" autoselect="true" readonly="false"/>
  25. <Static id="cpt_line" class="search_no_b" position="absolute 225 8 237 25" style="font:굴림,,굴림;" text="~"/>
  26. <Button id="btn_search" class="btn1" position="absolute 1068 7 1124 29" style="" text="조회" onclick="group3_group2_btn_search_onclick"/>
  27. <Radio datacolumn="datacolumn" codecolumn="codecolumn" columncount="-1" rowcount="-1" id="rdo_inlvflag" position="absolute 465 8 650 28" style="font:Dotum,9,bold;">
  28. <Dataset id="innerdataset">
  29. <ColumnInfo>
  30. <Column id="codecolumn"/>
  31. <Column id="datacolumn"/>
  32. </ColumnInfo>
  33. <Rows>
  34. <Row>
  35. <Col id="codecolumn">0</Col>
  36. <Col id="datacolumn">전체</Col>
  37. </Row>
  38. <Row>
  39. <Col id="codecolumn">1</Col>
  40. <Col id="datacolumn">방문</Col>
  41. </Row>
  42. <Row>
  43. <Col id="codecolumn">2</Col>
  44. <Col id="datacolumn">미방문</Col>
  45. </Row>
  46. </Rows>
  47. </Dataset>
  48. </Radio>
  49. <Button id="btn_excsave" class="btn1" position="absolute 1125 7 1181 29" style="" text="액셀" onclick="group3_group2_btn_excsave_onclick"/>
  50. <Static id="caption4" class="search_name" position="absolute 675 8 761 25" style="font:Dotum,9,bold;" text="환자명 :"/>
  51. <Edit id="input1" class="input_search" position="absolute 760 8 860 27" style="font:Dotum,9;" anchor="default" onkeyup="group3_group2_input1_onkeyup"/>
  52. <Static id="cap_ddnm" class="search_name" position="absolute 20 8 110 25" style="font:Dotum,9,bold;" text="입원일자 :"/>
  53. </Layout>
  54. </Layouts>
  55. </Div>
  56. <Tab id="switch1" position="absolute 0 51 1208 760" style="" anchor="default" onchanged="group3_switch1_onchanged">
  57. <Tabpages>
  58. <Tabpage id="inlv" selected="true" anchor="default" text="입원">
  59. <Layouts>
  60. <Layout>
  61. <Button id="button3" class="btn21" position="absolute 1059 5 1189 24" style="font:Dotum,9;" text="간호정보조사 임시저장" onclick="group3_switch1_inlv_button3_onclick" visible="false"/>
  62. <Static id="caption2" class="tit_2" position="absolute 5 8 305 22" style="align:left middle;font:Dotum,9,bold;" text="입원 방문관리"/>
  63. <Grid id="grd_inlvlist" binddataset="ds_main_inlvinfo_inlvlist" position="absolute 0 30 1190 648" style="" onaftersort="group3_switch1_inlv_grd_inlvlist_onaftersort" oncelldblclick="group3_switch1_inlv_grd_inlvlist_oncelldblclick" cellsizingtype="col" onexpanddown="group3_switch1_inlv_grd_inlvlist_onexpanddown" selecttype="row" autoenter="select">
  64. <Formats>
  65. <Format id="default">
  66. <Columns>
  67. <Column size="22" band="left"/>
  68. <Column size="65" band="left"/>
  69. <Column size="70" band="left"/>
  70. <Column size="40" band="left"/>
  71. <Column size="35" band="left"/>
  72. <Column size="75"/>
  73. <Column size="60"/>
  74. <Column size="45"/>
  75. <Column size="110"/>
  76. <Column size="100"/>
  77. <Column size="70"/>
  78. <Column size="90"/>
  79. <Column size="210"/>
  80. <Column size="90"/>
  81. <Column size="60"/>
  82. <Column size="80"/>
  83. <Column size="45"/>
  84. <Column size="0"/>
  85. <Column size="45"/>
  86. <Column size="45"/>
  87. <Column size="45"/>
  88. <Column size="45"/>
  89. <Column size="45"/>
  90. <Column size="60"/>
  91. <Column size="45"/>
  92. <Column size="45"/>
  93. <Column size="45"/>
  94. <Column size="100"/>
  95. <Column size="80"/>
  96. <Column size="0"/>
  97. <Column size="0"/>
  98. <Column size="0"/>
  99. <Column size="0"/>
  100. <Column size="0"/>
  101. <Column size="0"/>
  102. <Column size="0"/>
  103. <Column size="0"/>
  104. <Column size="0"/>
  105. <Column size="0"/>
  106. <Column size="0"/>
  107. <Column size="0"/>
  108. </Columns>
  109. <Rows>
  110. <Row size="24" band="head"/>
  111. <Row size="24"/>
  112. </Rows>
  113. <Band id="head">
  114. <Cell/>
  115. <Cell col="1" text="등록번호"/>
  116. <Cell col="2" text="환자명"/>
  117. <Cell col="3" text="성별"/>
  118. <Cell col="4" text="나이"/>
  119. <Cell col="5" text="병동"/>
  120. <Cell col="6" text="병상"/>
  121. <Cell col="7" text="병실"/>
  122. <Cell col="8" text="병실등급"/>
  123. <Cell col="9" text="진료과"/>
  124. <Cell col="10" text="진료의"/>
  125. <Cell col="11" text="진단코드"/>
  126. <Cell col="12" text="진단명"/>
  127. <Cell col="13" colspan="2" text="방문저장일시" taborder="undefined"/>
  128. <Cell col="15" text="입실일시"/>
  129. <Cell col="16" text="입실일시"/>
  130. <Cell col="17" text="간호정보조사"/>
  131. <Cell col="18" colspan="2" text="혈압(고_저)" taborder="undefined"/>
  132. <Cell col="20" text="맥박"/>
  133. <Cell col="21" text="호흡"/>
  134. <Cell col="22" colspan="2" text="체온" taborder="undefined"/>
  135. <Cell col="24" text="신장"/>
  136. <Cell col="25" text="체중"/>
  137. <Cell col="26" text="SPO2"/>
  138. <Cell col="27" text="혈액형"/>
  139. <Cell col="28" text="인증저장여부"/>
  140. <Cell col="29" text="instcd"/>
  141. <Cell col="30" text="indd"/>
  142. <Cell col="31" text="cretno"/>
  143. <Cell col="32" text="ordtype"/>
  144. <Cell col="33" text="tocntctel"/>
  145. <Cell col="34" text="방문저장여부"/>
  146. <Cell col="35" text="진료과코드"/>
  147. <Cell col="36" text="진료의ID"/>
  148. <Cell col="37" text="진료의핸드폰번호"/>
  149. <Cell col="38" text="담당의ID"/>
  150. <Cell col="39" text="담당의"/>
  151. <Cell col="40" text="담당의핸드폰번호"/>
  152. </Band>
  153. <Band id="body">
  154. <Cell celltype="body" displaytype="checkbox" edittype="checkbox" text="bind:check"/>
  155. <Cell col="1" text="bind:pid"/>
  156. <Cell col="2" style="align:left middle;" text="bind:hngnm"/>
  157. <Cell col="3" text="bind:sex"/>
  158. <Cell col="4" text="bind:age"/>
  159. <Cell col="5" displaytype="combo" text="bind:wardcd" combodataset="ds_item_wardcd" combocodecol="cd" combodatacol="nm"/>
  160. <Cell col="6" displaytype="combo" text="bind:bedcd" combodataset="ds_item_bedcd" combocodecol="cd" combodatacol="nm"/>
  161. <Cell col="7" displaytype="normal" text="bind:roomcd"/>
  162. <Cell col="8" displaytype="combo" style="align:left top;" text="bind:roomgrdecd" wordwrap="char" combodataset="ds_item_roomgrdecd" combocodecol="cd" combodatacol="nm"/>
  163. <Cell col="9" style="align:left middle;" text="bind:orddeptnm"/>
  164. <Cell col="10" style="align:left middle;" text="bind:orddrnm"/>
  165. <Cell col="11" style="align:left middle;" text="bind:diagcd"/>
  166. <Cell col="12" style="align:left middle;" text="bind:diagnm"/>
  167. <Cell col="13" displaytype="date" text="bind:inrecdd" mask="yyyy-MM-dd" calendardisplaynulltype="nulltext"/>
  168. <Cell col="14" edittype="text" style="align:center middle;" text="bind:inrectm" mask="##:##" editautoselect="true" expandshow="show"/>
  169. <Cell col="15" displaytype="date" text="bind:careinrmdd" mask="yyyy-MM-dd" calendardisplaynulltype="nulltext"/>
  170. <Cell col="16" text="bind:careinrmtm" mask="##:##"/>
  171. <Cell col="17" displaytype="combo" text="bind:recflag" combodataset="ds_codelist" combocodecol="cdid" combodatacol="cdnm"/>
  172. <Cell col="18" text="bind:highbp"/>
  173. <Cell col="19" text="bind:lowbp"/>
  174. <Cell col="20" text="bind:pulse"/>
  175. <Cell col="21" text="bind:breth"/>
  176. <Cell col="22" text="bind:bdtp"/>
  177. <Cell col="23" displaytype="combo" text="bind:bdtppartcd" combodataset="ds_comcodelist_bdtppartcd_cmblist_M0375" combocodecol="cdid" combodatacol="cdnm"/>
  178. <Cell col="24" style="align:left middle;" text="bind:bdht"/>
  179. <Cell col="25" style="align:left middle;" text="bind:bdwt"/>
  180. <Cell col="26" style="align:left middle;" text="bind:spo2"/>
  181. <Cell col="27" displaytype="combo" text="bind:bdbtype" combodataset="ds_comcodelist_bdbtype_cmblist_M0376" combocodecol="cdid" combodatacol="cdnm"/>
  182. <Cell col="28" text="bind:signinfoyn"/>
  183. <Cell col="29" text="bind:instcd"/>
  184. <Cell col="30" text="bind:indd"/>
  185. <Cell col="31" text="bind:cretno"/>
  186. <Cell col="32" text="bind:ordtype"/>
  187. <Cell col="33" text="bind:tocntctel"/>
  188. <Cell col="34" text="bind:inrecyn"/>
  189. <Cell col="35" text="bind:orddeptcd"/>
  190. <Cell col="36" text="bind:medispclid"/>
  191. <Cell col="37" text="bind:medispclphonno"/>
  192. <Cell col="38" text="bind:atdoctid"/>
  193. <Cell col="39" text="bind:atdoctnm"/>
  194. <Cell col="40" text="bind:atdoctidphonno"/>
  195. </Band>
  196. </Format>
  197. </Formats>
  198. </Grid>
  199. <Shape id="line1" class="line_1" linetype="horizontal" position="absolute 0 25 1190 28" style="strokepen:5 solid #33bbbbff;" anchor="default"/>
  200. <Button id="button10" class="btn2" position="absolute 993 5 1057 24" style="" text="입실저장" onclick="group3_switch1_inlv_button10_onclick" visible="false"/>
  201. <Button id="button2" class="btn5" position="absolute 1039 5 1103 24" style="" text="방문저장" onclick="group3_switch1_inlv_button2_onclick"/>
  202. <Button id="button11" class="btn2" position="absolute 918 5 1037 24" style="" text="중증도 및 위험사정" onclick="group3_switch1_inlv_button11_onclick"/>
  203. <Button id="button1" class="btn5" position="absolute 1105 5 1191 24" style="" text="방문저장취소" onclick="group3_switch1_inlv_button1_onclick"/>
  204. </Layout>
  205. </Layouts>
  206. </Tabpage>
  207. <Tabpage id="dschlv" anchor="default" text="퇴원">
  208. <Layouts>
  209. <Layout>
  210. <Button id="button4" class="btn5" position="absolute 1101 5 1187 24" style="" text="방문저장취소" onclick="group3_switch1_dschlv_button4_onclick"/>
  211. <Button id="button5" class="btn5" position="absolute 1035 5 1099 24" style="" text="방문저장" onclick="group3_switch1_dschlv_button5_onclick"/>
  212. <Static id="caption3" class="tit_2" position="absolute 5 9 305 23" style="align:left middle;font:Dotum,9,bold;" text="퇴원 방문관리"/>
  213. <Grid id="grd_dschlvlist" binddataset="ds_main_dschlvinfo_dschlvlist" position="absolute 0 30 1190 680" style="" onaftersort="group3_switch1_dschlv_grd_dschlvlist_onaftersort" oncelldblclick="group3_switch1_dschlv_grd_dschlvlist_oncelldblclick" cellsizingtype="col" onexpanddown="group3_switch1_dschlv_grd_dschlvlist_onexpanddown" autoenter="select">
  214. <Formats>
  215. <Format id="default">
  216. <Columns>
  217. <Column size="23"/>
  218. <Column size="22"/>
  219. <Column size="60"/>
  220. <Column size="60"/>
  221. <Column size="40"/>
  222. <Column size="35"/>
  223. <Column size="80"/>
  224. <Column size="75"/>
  225. <Column size="60"/>
  226. <Column size="45"/>
  227. <Column size="110"/>
  228. <Column size="100"/>
  229. <Column size="70"/>
  230. <Column size="90"/>
  231. <Column size="60"/>
  232. <Column size="90"/>
  233. <Column size="175"/>
  234. <Column size="0"/>
  235. <Column size="0"/>
  236. <Column size="0"/>
  237. <Column size="0"/>
  238. <Column size="0"/>
  239. <Column size="0"/>
  240. </Columns>
  241. <Rows>
  242. <Row size="24" band="head"/>
  243. <Row size="24"/>
  244. </Rows>
  245. <Band id="head">
  246. <Cell/>
  247. <Cell col="1"/>
  248. <Cell col="2" text="등록번호"/>
  249. <Cell col="3" text="환자명"/>
  250. <Cell col="4" text="성별"/>
  251. <Cell col="5" text="나이"/>
  252. <Cell col="6" text="입원일자"/>
  253. <Cell col="7" text="병동"/>
  254. <Cell col="8" text="병상"/>
  255. <Cell col="9" text="병실"/>
  256. <Cell col="10" text="병실등급"/>
  257. <Cell col="11" text="진료과"/>
  258. <Cell col="12" text="진료의"/>
  259. <Cell col="13" colspan="2" text="방문저장일시" taborder="undefined"/>
  260. <Cell col="15" text="진단코드"/>
  261. <Cell col="16" text="진단명"/>
  262. <Cell col="17" text="instcd"/>
  263. <Cell col="18" text="cretno"/>
  264. <Cell col="19" text="ordtype"/>
  265. <Cell col="20" text="방문저장여부"/>
  266. <Cell col="21" text="진료과코드"/>
  267. <Cell col="22" text="진료의ID"/>
  268. </Band>
  269. <Band id="body">
  270. <Cell celltype="head" expr="currow+1"/>
  271. <Cell col="1" displaytype="checkbox" edittype="checkbox" text="bind:check"/>
  272. <Cell col="2" text="bind:pid"/>
  273. <Cell col="3" text="bind:hngnm"/>
  274. <Cell col="4" text="bind:sex"/>
  275. <Cell col="5" text="bind:age"/>
  276. <Cell col="6" text="bind:indd"/>
  277. <Cell col="7" displaytype="combo" style="align:left middle;" text="bind:wardcd" combodataset="ds_item_wardcd" combocodecol="cd" combodatacol="nm"/>
  278. <Cell col="8" displaytype="combo" style="align:left middle;" text="bind:bedcd" combodataset="ds_item_bedcd" combocodecol="cd" combodatacol="nm"/>
  279. <Cell col="9" text="bind:roomcd" combodataset="ds_item_roomcd" combocodecol="cd" combodatacol="nm"/>
  280. <Cell col="10" displaytype="combo" style="align:left middle;" text="bind:roomgrdecd" combodataset="ds_item_roomgrdecd" combocodecol="cd" combodatacol="nm"/>
  281. <Cell col="11" style="align:left middle;" text="bind:orddeptnm"/>
  282. <Cell col="12" style="align:left middle;" text="bind:orddrnm"/>
  283. <Cell col="13" displaytype="date" text="bind:inrecdd" mask="yyyy-MM-dd" calendardisplaynulltype="nulltext"/>
  284. <Cell col="14" edittype="text" style="align:center middle;" text="bind:inrectm" mask="##:##" expandshow="show"/>
  285. <Cell col="15" style="align:left middle;" text="bind:diagcd"/>
  286. <Cell col="16" style="align:left middle;" text="bind:diagnm"/>
  287. <Cell col="17" text="bind:instcd"/>
  288. <Cell col="18" text="bind:cretno"/>
  289. <Cell col="19" text="bind:ordtype"/>
  290. <Cell col="20" text="bind:inrecyn"/>
  291. <Cell col="21" text="bind:orddeptcd"/>
  292. <Cell col="22" text="bind:medispclid"/>
  293. </Band>
  294. </Format>
  295. </Formats>
  296. </Grid>
  297. <Shape id="line3" class="line_1" linetype="horizontal" position="absolute 0 25 1190 28" style="strokepen:5 solid #33bbbbff;" anchor="default"/>
  298. <Button id="button12" class="btn2" position="absolute 914 5 1033 24" style="" text="중증도 및 위험사정" onclick="group3_switch1_dschlv_button12_onclick"/>
  299. </Layout>
  300. </Layouts>
  301. </Tabpage>
  302. <Tabpage id="testlv" anchor="default" text="검사대기">
  303. <Layouts>
  304. <Layout>
  305. <Button id="button6" class="btn5" position="absolute 1101 5 1187 24" style="" text="방문저장취소" onclick="group3_switch1_testlv_button6_onclick"/>
  306. <Button id="button7" class="btn5" position="absolute 1035 5 1099 24" style="" text="방문저장" onclick="group3_switch1_testlv_button7_onclick"/>
  307. <Grid id="grd_testlvlist" binddataset="ds_main_testlvinfo_testlvlist" position="absolute 0 30 1190 680" style="" onaftersort="group3_switch1_testlv_grd_testlvlist_onaftersort" cellsizingtype="col" autoenter="select" onexpanddown="group3_switch1_testlv_grd_testlvlist_onexpanddown">
  308. <Formats>
  309. <Format id="default">
  310. <Columns>
  311. <Column size="26" band="left"/>
  312. <Column size="22" band="left"/>
  313. <Column size="60"/>
  314. <Column size="60"/>
  315. <Column size="40"/>
  316. <Column size="35"/>
  317. <Column size="100"/>
  318. <Column size="100"/>
  319. <Column size="70"/>
  320. <Column size="190"/>
  321. <Column size="80"/>
  322. <Column size="80"/>
  323. <Column size="90"/>
  324. <Column size="60"/>
  325. <Column size="90"/>
  326. <Column size="175"/>
  327. <Column size="0"/>
  328. <Column size="0"/>
  329. <Column size="0"/>
  330. <Column size="0"/>
  331. <Column size="0"/>
  332. <Column size="0"/>
  333. <Column size="0"/>
  334. </Columns>
  335. <Rows>
  336. <Row size="24" band="head"/>
  337. <Row size="24"/>
  338. </Rows>
  339. <Band id="head">
  340. <Cell/>
  341. <Cell col="1"/>
  342. <Cell col="2" text="등록번호"/>
  343. <Cell col="3" text="환자명"/>
  344. <Cell col="4" text="성별"/>
  345. <Cell col="5" text="나이"/>
  346. <Cell col="6" text="센터"/>
  347. <Cell col="7" text="진료과"/>
  348. <Cell col="8" text="진료의"/>
  349. <Cell col="9" text="검사명"/>
  350. <Cell col="10" text="처방일자"/>
  351. <Cell col="11" text="예약일자"/>
  352. <Cell col="12" colspan="2" text="방문저장일시" taborder="undefined"/>
  353. <Cell col="14" text="진단코드"/>
  354. <Cell col="15" text="진단명"/>
  355. <Cell col="16" text="instcd"/>
  356. <Cell col="17" text="orddd"/>
  357. <Cell col="18" text="cretno"/>
  358. <Cell col="19" text="prcpno"/>
  359. <Cell col="20" text="방문저장여부"/>
  360. <Cell col="21" text="진료과코드"/>
  361. <Cell col="22" text="진료의ID"/>
  362. </Band>
  363. <Band id="body">
  364. <Cell celltype="head" expr="currow+1"/>
  365. <Cell col="1" displaytype="checkbox" edittype="checkbox" text="bind:check"/>
  366. <Cell col="2" text="bind:pid"/>
  367. <Cell col="3" text="bind:hngnm"/>
  368. <Cell col="4" text="bind:sex"/>
  369. <Cell col="5" text="bind:age"/>
  370. <Cell col="6" displaytype="combo" style="align:left middle;" text="bind:centcd" combodataset="ds_item_centcd" combocodecol="cd" combodatacol="nm"/>
  371. <Cell col="7" displaytype="normal" style="align:left middle;" text="bind:orddeptnm"/>
  372. <Cell col="8" style="align:left middle;" text="bind:orddrnm"/>
  373. <Cell col="9" style="align:left middle;" text="bind:prcpnm"/>
  374. <Cell col="10" displaytype="date" text="bind:prcpdd" mask="yyyy-MM-dd" calendardisplaynulltype="nulltext"/>
  375. <Cell col="11" displaytype="date" text="bind:rsrvdd" mask="yyyy-MM-dd" calendardisplaynulltype="nulltext"/>
  376. <Cell col="12" displaytype="date" text="bind:inrecdd" mask="yyyy-MM-dd" calendardisplaynulltype="nulltext"/>
  377. <Cell col="13" edittype="text" style="align:center middle;" text="bind:inrectm" mask="##:##" expandshow="show"/>
  378. <Cell col="14" style="align:left middle;" text="bind:diagcd"/>
  379. <Cell col="15" style="align:left middle;" text="bind:diagnm"/>
  380. <Cell col="16" text="bind:instcd"/>
  381. <Cell col="17" text="bind:orddd"/>
  382. <Cell col="18" text="bind:cretno"/>
  383. <Cell col="19" text="bind:prcpno"/>
  384. <Cell col="20" text="bind:inrecyn"/>
  385. <Cell col="21" text="bind:orddeptcd"/>
  386. <Cell col="22" text="bind:orddrid"/>
  387. </Band>
  388. </Format>
  389. </Formats>
  390. </Grid>
  391. <Static id="caption5" class="tit_2" position="absolute 5 10 305 24" style="align:left middle;font:Dotum,9,bold;" text="검사대기 방문관리"/>
  392. <Shape id="line4" class="line_1" linetype="horizontal" position="absolute 0 25 1190 28" style="" anchor="default"/>
  393. </Layout>
  394. </Layouts>
  395. </Tabpage>
  396. <Tabpage id="medilv" anchor="default" text="진료대기">
  397. <Layouts>
  398. <Layout>
  399. <Button id="button8" class="btn5" position="absolute 1101 5 1187 24" style="" text="방문저장취소" onclick="group3_switch1_medilv_button8_onclick"/>
  400. <Button id="button9" class="btn5" position="absolute 1035 5 1099 24" style="" text="방문저장" onclick="group3_switch1_medilv_button9_onclick"/>
  401. <Static id="caption7" class="tit_2" position="absolute 5 10 305 24" style="align:left middle;font:Dotum,9,bold;" text="진료대기 방문관리"/>
  402. <Shape id="line5" class="line_1" linetype="horizontal" position="absolute 0 25 1190 28" style="strokepen:5 solid #33bbbbff;" anchor="default"/>
  403. <Grid id="grd_medilvlist" binddataset="ds_main_medilvinfo_medilvlist" position="absolute 0 30 1190 680" style="" onaftersort="group3_switch1_medilv_grd_medilvlist_onaftersort" onlbuttonup="group3_switch1_medilv_grd_medilvlist_onlbuttonup" cellsizingtype="col" autoenter="select" onexpanddown="group3_switch1_medilv_grd_medilvlist_onexpanddown">
  404. <Formats>
  405. <Format id="default">
  406. <Columns>
  407. <Column size="25" band="left"/>
  408. <Column size="22" band="left"/>
  409. <Column size="60" band="left"/>
  410. <Column size="60" band="left"/>
  411. <Column size="40" band="left"/>
  412. <Column size="35" band="left"/>
  413. <Column size="100"/>
  414. <Column size="100"/>
  415. <Column size="60"/>
  416. <Column size="80"/>
  417. <Column size="110"/>
  418. <Column size="80"/>
  419. <Column size="100"/>
  420. <Column size="90"/>
  421. <Column size="60"/>
  422. <Column size="90"/>
  423. <Column size="175"/>
  424. <Column size="0"/>
  425. <Column size="0"/>
  426. <Column size="0"/>
  427. <Column size="0"/>
  428. <Column size="0"/>
  429. <Column size="0"/>
  430. </Columns>
  431. <Rows>
  432. <Row size="24" band="head"/>
  433. <Row size="24"/>
  434. </Rows>
  435. <Band id="head">
  436. <Cell/>
  437. <Cell col="1"/>
  438. <Cell col="2" text="등록번호"/>
  439. <Cell col="3" text="환자명"/>
  440. <Cell col="4" text="성별"/>
  441. <Cell col="5" text="나이"/>
  442. <Cell col="6" text="센터"/>
  443. <Cell col="7" text="진료과"/>
  444. <Cell col="8" text="진료의"/>
  445. <Cell col="9" text="예약구분"/>
  446. <Cell col="10" text="재진예약참고사항"/>
  447. <Cell col="11" text="보험유형"/>
  448. <Cell col="12" text="보조유형"/>
  449. <Cell col="13" colspan="2" text="방문저장일시" taborder="undefined"/>
  450. <Cell col="15" text="진단코드"/>
  451. <Cell col="16" text="진단명"/>
  452. <Cell col="17" text="instcd"/>
  453. <Cell col="18" text="orddd"/>
  454. <Cell col="19" text="cretno"/>
  455. <Cell col="20" text="방문저장여부"/>
  456. <Cell col="21" text="진료과코드"/>
  457. <Cell col="22" text="진료의ID"/>
  458. </Band>
  459. <Band id="body">
  460. <Cell celltype="head" expr="currow+1"/>
  461. <Cell col="1" displaytype="checkbox" edittype="checkbox" text="bind:check"/>
  462. <Cell col="2" text="bind:pid"/>
  463. <Cell col="3" style="align:left middle;" text="bind:hngnm"/>
  464. <Cell col="4" text="bind:sex"/>
  465. <Cell col="5" text="bind:age"/>
  466. <Cell col="6" displaytype="combo" style="align:left middle;" text="bind:centcd" combodataset="ds_item_centcd" combocodecol="cd" combodatacol="nm"/>
  467. <Cell col="7" style="align:left middle;" text="bind:orddeptnm"/>
  468. <Cell col="8" style="align:left middle;" text="bind:orddrnm"/>
  469. <Cell col="9" displaytype="combo" style="align:left middle;" text="bind:rsrvflag" combodataset="ds_comcodelist_rsrvflag_cmblist_P0341" combocodecol="cdid" combodatacol="cdnm"/>
  470. <Cell col="10" style="align:left middle;" text="bind:remfact"/>
  471. <Cell col="11" displaytype="combo" style="align:left middle;" text="bind:insukind" combodataset="ds_item_insukind" combocodecol="cd" combodatacol="nm"/>
  472. <Cell col="12" displaytype="combo" style="align:left middle;" text="bind:suppkind" combodataset="ds_item_suppkind" combocodecol="cd" combodatacol="nm"/>
  473. <Cell col="13" displaytype="date" text="bind:inrecdd" calendardisplaynulltype="nulltext"/>
  474. <Cell col="14" edittype="text" style="align:center middle;" text="bind:inrectm" mask="##:##" expandshow="show"/>
  475. <Cell col="15" style="align:left middle;" text="bind:diagcd"/>
  476. <Cell col="16" style="align:left middle;" text="bind:diagnm"/>
  477. <Cell col="17" text="bind:instcd"/>
  478. <Cell col="18" text="bind:orddd"/>
  479. <Cell col="19" text="bind:cretno"/>
  480. <Cell col="20" text="bind:inrecyn"/>
  481. <Cell col="21" text="bind:orddeptcd"/>
  482. <Cell col="22" text="bind:orddrid"/>
  483. </Band>
  484. </Format>
  485. </Formats>
  486. </Grid>
  487. </Layout>
  488. </Layouts>
  489. </Tabpage>
  490. </Tabpages>
  491. </Tab>
  492. </Layout>
  493. </Layouts>
  494. </Div>
  495. </Layout>
  496. </Layouts>
  497. <Objects>
  498. <Dataset id="ds_main_cond" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  499. <ColumnInfo>
  500. <Column id="inlvflag" type="STRING" size="256"/>
  501. <Column id="fromdd" type="STRING" size="256"/>
  502. <Column id="todd" type="STRING" size="256"/>
  503. <Column id="menuflag" type="STRING" size="256"/>
  504. <Column id="patnm" type="STRING" size="256"/>
  505. </ColumnInfo>
  506. <Rows>
  507. <Row>
  508. <Col id="inlvflag">0</Col>
  509. <Col id="fromdd"/>
  510. <Col id="todd"/>
  511. <Col id="menuflag"/>
  512. <Col id="patnm"/>
  513. </Row>
  514. </Rows>
  515. </Dataset>
  516. <Dataset id="ds_main_rtninfo_patinfolist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  517. <ColumnInfo>
  518. <Column id="pid" type="STRING" size="256"/>
  519. <Column id="patnm" type="STRING" size="256"/>
  520. <Column id="sexage" type="STRING" size="256"/>
  521. </ColumnInfo>
  522. <Rows>
  523. <Row>
  524. <Col id="pid"/>
  525. <Col id="patnm"/>
  526. <Col id="sexage"/>
  527. </Row>
  528. </Rows>
  529. </Dataset>
  530. <Dataset id="ds_main_rtninfo_rtnmsg" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  531. <ColumnInfo>
  532. <Column id="resultflag" type="STRING" size="256"/>
  533. </ColumnInfo>
  534. <Rows>
  535. <Row>
  536. <Col id="resultflag"/>
  537. </Row>
  538. </Rows>
  539. </Dataset>
  540. <Dataset id="ds_codelist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  541. <ColumnInfo>
  542. <Column id="bdtppartcd_cmblist" type="STRING" size="256"/>
  543. <Column id="bdbtype_cmblist" type="STRING" size="256"/>
  544. <Column id="rsrvflag_cmblist" type="STRING" size="256"/>
  545. <Column id="insukind_cmblist" type="STRING" size="256"/>
  546. <Column id="suppkind_cmblist" type="STRING" size="256"/>
  547. </ColumnInfo>
  548. <Rows>
  549. <Row>
  550. <Col id="bdtppartcd_cmblist"/>
  551. <Col id="bdbtype_cmblist"/>
  552. <Col id="rsrvflag_cmblist"/>
  553. <Col id="insukind_cmblist"/>
  554. <Col id="suppkind_cmblist"/>
  555. </Row>
  556. </Rows>
  557. </Dataset>
  558. <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  559. <ColumnInfo>
  560. <Column id="send" type="STRING" size="256"/>
  561. </ColumnInfo>
  562. <Rows>
  563. <Row>
  564. <Col id="send"/>
  565. </Row>
  566. </Rows>
  567. </Dataset>
  568. <Dataset id="ds_hidden" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  569. <ColumnInfo>
  570. <Column id="hidden" type="STRING" size="256"/>
  571. </ColumnInfo>
  572. <Rows>
  573. <Row>
  574. <Col id="hidden"/>
  575. </Row>
  576. </Rows>
  577. </Dataset>
  578. <Dataset id="ds_main_rtninfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  579. <ColumnInfo/>
  580. </Dataset>
  581. <Dataset id="ds_main" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  582. <ColumnInfo>
  583. <Column id="inlvinfo" type="STRING" size="256"/>
  584. <Column id="dschlvinfo" type="STRING" size="256"/>
  585. <Column id="testlvinfo" type="STRING" size="256"/>
  586. <Column id="medilvinfo" type="STRING" size="256"/>
  587. </ColumnInfo>
  588. </Dataset>
  589. <Dataset id="ds_init" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  590. <ColumnInfo>
  591. <Column id="init" type="STRING" size="256"/>
  592. </ColumnInfo>
  593. </Dataset>
  594. <Dataset id="ds_comcodelist_bdtppartcd_cmblist_M0375" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  595. <Dataset id="ds_comcodelist_bdbtype_cmblist_M0376" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  596. <Dataset id="ds_comcodelist_rsrvflag_cmblist_P0341" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  597. <Dataset id="ds_comcodelist_insukind_cmblist_P0008" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  598. <Dataset id="ds_comcodelist_suppkind_cmblist_P0010" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  599. <Dataset id="ds_main_inlvinfo_inlvlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  600. <Dataset id="ds_send_data1" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  601. <Dataset id="ds_main_dschlvinfo_dschlvlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  602. <Dataset id="ds_main_testlvinfo_testlvlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  603. <Dataset id="ds_main_medilvinfo_medilvlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  604. <Dataset id="ds_main_rtninfo_result" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  605. <Dataset id="ds_item_disccd" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  606. <Dataset id="ds_item_insukind" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  607. <Dataset id="ds_item_suppkind" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  608. <Dataset id="ds_item_suppkindhist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  609. <Dataset id="ds_item_orddeptcd" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  610. <Dataset id="ds_item_orddrid" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  611. <Dataset id="ds_item_wardcd" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  612. <Dataset id="ds_item_roomcd" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  613. <Dataset id="ds_item_bedcd" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  614. <Dataset id="ds_item_roomgrdecd" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  615. <Dataset id="ds_item_roomgrdelist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  616. <Dataset id="ds_item_roomtypecd" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  617. <Dataset id="ds_item_flag" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  618. <Dataset id="ds_item_proccd" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  619. <Dataset id="ds_item_centcd" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  620. <Dataset id="ds_item_hospgrde" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  621. <Dataset id="ds_item_naticd" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  622. <Dataset id="ds_item_erorddrid" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  623. <Dataset id="ds_item_insucd" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  624. <Dataset id="ds_item_uncocd" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  625. <Dataset id="ds_send_inlvinfo_inlvlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  626. </Objects>
  627. <Bind>
  628. <BindItem id="item0" compid="group3.group2.ipt_fromdd" propid="value" datasetid="ds_main_cond" columnid="fromdd"/>
  629. <BindItem id="item1" compid="group3.group2.ipt_todd" propid="value" datasetid="ds_main_cond" columnid="todd"/>
  630. <BindItem id="item2" compid="group3.group2.rdo_inlvflag" propid="value" datasetid="ds_main_cond" columnid="inlvflag"/>
  631. <BindItem id="item3" compid="group3.group2.input1" propid="value" datasetid="ds_main_cond" columnid="patnm"/>
  632. </Bind>
  633. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  634. * System Name : 경대 의료정보시스템
  635. * Job Name : emr_wardcarexp -> SMMNW17300
  636. * Creator : yjh
  637. * Make Date : 2017-01-09
  638. * Description :
  639. *---------------------------------------------------------------------------------------
  640. * Modify Date Modifier Modify Description
  641. *---------------------------------------------------------------------------------------
  642. * 2017-01-09 yjh TF->XP
  643. *
  644. *---------------------------------------------------------------------------------------
  645. ****************************************************************************************/
  646. include "com_commonxp::comm_main.xjs";
  647. include "emr_carecomxp::CareCom.xjs";
  648. include "com_basiccodexp::ZBC001.xjs";
  649. //include "emr_wardcarexp::SMMNW18000.xjs";
  650. // header파일 중 SMMNW18000.js 파일 시작
  651. var xInlvListPath = "ds_main_inlvinfo_inlvlist"; //입원방문관리
  652. var xDschlvListPath = "ds_main_dschlvinfo_dschlvlist"; //퇴원방문관리
  653. var xTestlvListPath = "ds_main_testlvinfo_testlvlist"; //검사대기방문관리
  654. var xMedilvListPath = "ds_main_medilvinfo_medilvlist"; //진료대기방문관리
  655. function SMMNW18000_onload(obj:Form, e:LoadEventInfo) {
  656. frmf_initForm(obj);
  657. //grdf_initGrid(grd_XXX);
  658. //grdf_setGridSort(grd_XXX);
  659. //grdf_setRowTypeIcon(grd_XXX, 0_컬럼위치값);
  660. fInitialize();
  661. }
  662. // 초기화
  663. function fInitialize(){
  664. //grdf_setRowTypeIcon(group3.switch1.inlv.grd_inlvlist, 0);
  665. //grdf_setRowTypeIcon(group3.switch1.testlv.grd_testlvlist, 0);
  666. var arrParam = [
  667. { dsNm: "ds_comcodelist_bdtppartcd_cmblist_M0375",cdGrpId: "M0375" },
  668. { dsNm: "ds_comcodelist_bdbtype_cmblist_M0376", cdGrpId: "M0376" },
  669. { dsNm: "ds_comcodelist_rsrvflag_cmblist_P0341", cdGrpId: "P0341" },
  670. { dsNm: "ds_comcodelist_insukind_cmblist_P0008", cdGrpId: "P0008" },
  671. { dsNm: "ds_comcodelist_suppkind_cmblist_P0010", cdGrpId: "P0010" }
  672. ];
  673. appf_getCodeList(arrParam, true);
  674. fGetNursHardCdInfo("'R2'", utlf_getCurrentDate());
  675. ds_main_inlvinfo_inlvlist.clearData();
  676. ds_send.clearData();
  677. ds_send.addRow();
  678. ds_main_cond.setColumn( 0, "fromdd",utlf_getCurrentDate());
  679. ds_main_cond.setColumn( 0, "todd",utlf_getCurrentDate());
  680. var oParam = {};
  681. oParam.id = "TRPMI00106";
  682. oParam.service = "pamcomnapp.PamComn";
  683. oParam.method = "reqGetComCD";
  684. oParam.inds = "req=ds_main_cond";
  685. oParam.outds = "ds_item_disccd=disccd ds_item_insukind=insukind ds_item_suppkind=suppkind ds_item_suppkindhist=suppkindhist ds_item_orddeptcd=orddeptcd ds_item_orddrid=orddrid ds_item_wardcd=wardcd ds_item_roomcd=roomcd ds_item_bedcd=bedcd ds_item_roomgrdecd=roomgrdecd ds_item_roomgrdelist=roomgrdelist ds_item_roomtypecd=roomtypecd ds_item_flag=flag ds_item_proccd=proccd ds_item_centcd=centcd ds_item_hospgrde=hospgrde ds_item_naticd=naticd ds_item_erorddrid=erorddrid ds_item_insucd=insucd ds_item_uncocd=uncocd";
  686. oParam.async = false;
  687. //oParam.callback = "cf_TRPMI00106";
  688. tranf_submit(oParam);
  689. var instcd = sysf_getUserInfo("dutplceinstcd");
  690. dsf_makeValue( ds_send_data1, "sess_posinstcd", "string", instcd);
  691. // submit("TRPMI00405");
  692. var oParam = {};
  693. oParam.id = "TRPMI00405";
  694. oParam.service = "ipatmngtapp.InhospUpdt";
  695. oParam.method = "reqGetRoomGrdeInfoList";
  696. oParam.inds = "req=ds_send_data1";
  697. oParam.outds = "ds_=roomgrdelist";
  698. oParam.async = false;
  699. //oParam.callback = "cf_TRPMI00405";
  700. tranf_submit(oParam);
  701. // model.toggle("group3.switch1.inlv");
  702. // group3.group2.cap_ddnm.attribute("left") = "20";
  703. // group3.group2.cap_ddnm.attribute("width") = "90";
  704. // group3.group2.cap_ddnm.text = "입원일자 :";
  705. // ds_main_cond.setColumn( 0, "menuflag", "group3.switch1.inlv");
  706. //model.refresh();
  707. //fSearch();
  708. }
  709. // 방문조회
  710. function fSearch(){
  711. var fromdd = ds_main_cond.getColumn(0, "fromdd");
  712. var todd = ds_main_cond.getColumn(0, "todd");
  713. if(utlf_getDateInterval(fromdd, todd) > 2){
  714. sysf_messageBox("조회기간은 3일 이상을 넘을 수", "I004");
  715. group3.group2.ipt_todd.setFocus();
  716. return;
  717. }
  718. //trace('aaa :'+group3.switch1.tabindex);
  719. if (group3.switch1.tabindex == 0 ) {
  720. fSearchinlv();
  721. } else if (group3.switch1.tabindex == 1 ) {
  722. fSearchdschlv();
  723. } else if (group3.switch1.tabindex == 2 ) {
  724. fSearchtestlv();
  725. } else if (group3.switch1.tabindex == 3 ) {
  726. fSearchmedilv();
  727. }else {
  728. fSearchinlv();
  729. }
  730. }
  731. // 입원방문조회
  732. function fSearchinlv(){
  733. ds_main_inlvinfo_inlvlist.clearData();
  734. // submit("TRMNW18000");
  735. var oParam = {};
  736. oParam.id = "TRMNW18000";
  737. oParam.service = "wardcareapp.WardCareMngt";
  738. oParam.method = "reqGetInlvList";
  739. oParam.inds = "req=ds_main_cond";
  740. oParam.outds = "ds_main_inlvinfo_inlvlist=inlvlist";
  741. oParam.async = true;
  742. oParam.callback = "cf_TRMNW18000";
  743. tranf_submit(oParam);
  744. }
  745. function cf_TRMNW18000(sSvcId, nErrorCode, sErrorMsg) {
  746. if(nErrorCode < 0) return;
  747. ds_main_inlvinfo_inlvlist.updatecontrol = false;
  748. ds_main_inlvinfo_inlvlist.enableevent = false;
  749. ds_main_inlvinfo_inlvlist.addColumn("check","string");
  750. ds_main_inlvinfo_inlvlist.addColumn("recflag","string");
  751. for (i=0; i<ds_main_inlvinfo_inlvlist.rowcount; i++){
  752. ds_main_inlvinfo_inlvlist.setColumn(i,"recflag","01");
  753. }
  754. ds_main_inlvinfo_inlvlist.enableevent = true;
  755. ds_main_inlvinfo_inlvlist.updatecontrol = true;
  756. //trace(ds_main_inlvinfo_inlvlist.saveXML());
  757. }
  758. // 퇴원방문조회
  759. function fSearchdschlv(){
  760. ds_main_dschlvinfo_dschlvlist.clearData();
  761. ds_send.copyData(ds_main_cond);
  762. // submit("TRMNW18010");
  763. var oParam = {};
  764. oParam.id = "TRMNW18010";
  765. oParam.service = "wardcareapp.WardCareMngt";
  766. oParam.method = "reqGetDschlvList";
  767. oParam.inds = "req=ds_main_cond";
  768. oParam.outds = "ds_main_dschlvinfo_dschlvlist=dschlvlist";
  769. oParam.async = true;
  770. oParam.callback = "cf_TRMNW18010";
  771. tranf_submit(oParam);
  772. }
  773. function cf_TRMNW18010(sSvcId, nErrorCode, sErrorMsg) {
  774. if(nErrorCode < 0) return;
  775. ds_main_dschlvinfo_dschlvlist.addColumn("check","string");
  776. }
  777. // 검사대기 방문조회
  778. function fSearchtestlv(){
  779. ds_main_testlvinfo_testlvlist.clearData();
  780. ds_send.copyData(ds_main_cond);
  781. // submit("TRMNW18020");
  782. var oParam = {};
  783. oParam.id = "TRMNW18020";
  784. oParam.service = "wardcareapp.WardCareMngt";
  785. oParam.method = "reqGetTestlvList";
  786. oParam.inds = "req=ds_main_cond";
  787. oParam.outds = "ds_main_testlvinfo_testlvlist=testlvlist";
  788. oParam.async = true;
  789. oParam.callback = "cf_TRMNW18020";
  790. tranf_submit(oParam);
  791. }
  792. function cf_TRMNW18020(sSvcId, nErrorCode, sErrorMsg) {
  793. if(nErrorCode < 0) return;
  794. //trace(ds_main_testlvinfo_testlvlist.saveXML());
  795. ds_main_testlvinfo_testlvlist.addColumn("check","string");
  796. ds_main_testlvinfo_testlvlist.addColumn("inrecyn","string");
  797. }
  798. // 진료대기 방문조회
  799. function fSearchmedilv(){
  800. ds_main_medilvinfo_medilvlist.clearData();
  801. ds_send.copyData(ds_main_cond);
  802. // submit("TRMNW18030");
  803. var oParam = {};
  804. oParam.id = "TRMNW18030";
  805. oParam.service = "wardcareapp.WardCareMngt";
  806. oParam.method = "reqGetMedilvList";
  807. oParam.inds = "req=ds_main_cond";
  808. oParam.outds = "ds_main_medilvinfo_medilvlist=medilvlist";
  809. oParam.async = true;
  810. oParam.callback = "cf_TRMNW18030";
  811. tranf_submit(oParam);
  812. }
  813. function cf_TRMNW18030(sSvcId, nErrorCode, sErrorMsg) {
  814. if(nErrorCode < 0) return;
  815. ds_main_medilvinfo_medilvlist.addColumn("check","string");
  816. ds_main_medilvinfo_medilvlist.addColumn("inrecyn","string");
  817. }
  818. // 방문저장
  819. function fSave(){
  820. if (group3.switch1.tabindex == 0) {
  821. trace('입원');
  822. fSaveinlv();
  823. }else if (group3.switch1.tabindex == 1 ) {
  824. trace('퇴원');
  825. fSavedschlv();
  826. }else if (group3.switch1.tabindex == 2 ) {
  827. trace('검사대기');
  828. fSavetestlv();
  829. }else if (group3.switch1.tabindex == 3 ) {
  830. trace('진료대기');
  831. fSavemedilv();
  832. }else {
  833. fSaveinlv();
  834. }
  835. }
  836. // 입원방문저장
  837. function fSaveinlv(){
  838. var inlvinfoHeader = "check▦instcd▦pid▦indd▦cretno▦inrecdd▦inrectm▦wardcd▦bedcd▦roomcd▦roomgrdecd▦orddeptcd▦medispclid▩";
  839. var inlvinfoData = "";
  840. var vcnt = 0;
  841. var inrecddcnt = 0;
  842. var inrectmcnt = 0;
  843. var userdeptcd = sysf_getUserInfo("dutplcecd");
  844. for(var i = 0 ; i < ds_main_inlvinfo_inlvlist.rowcount; i++) {
  845. if(ds_main_inlvinfo_inlvlist.getColumn(i, "check") == "1" ){
  846. //var check = ds_main_inlvinfo_inlvlist.getColumn(i, "check");
  847. var check = "Y";
  848. var instcd = ds_main_inlvinfo_inlvlist.getColumn(i, "instcd");
  849. var pid = ds_main_inlvinfo_inlvlist.getColumn(i, "pid");
  850. var indd = ds_main_inlvinfo_inlvlist.getColumn(i, "indd");
  851. var cretno = ds_main_inlvinfo_inlvlist.getColumn(i, "cretno");
  852. var inrecdd = ds_main_inlvinfo_inlvlist.getColumn(i, "inrecdd");
  853. var inrectm = ds_main_inlvinfo_inlvlist.getColumn(i, "inrectm");
  854. var wardcd = ds_main_inlvinfo_inlvlist.getColumn(i, "wardcd");
  855. var bedcd = ds_main_inlvinfo_inlvlist.getColumn(i, "bedcd");
  856. var roomcd = ds_main_inlvinfo_inlvlist.getColumn(i, "roomcd");
  857. var roomgrdecd = ds_main_inlvinfo_inlvlist.getColumn(i, "roomgrdecd");
  858. var orddeptcd = ds_main_inlvinfo_inlvlist.getColumn(i, "orddeptcd");
  859. var medispclid = ds_main_inlvinfo_inlvlist.getColumn(i, "medispclid");
  860. vcnt++;
  861. if(utlf_isNull(inrecdd)){
  862. inrecddcnt++;
  863. }
  864. if(utlf_isNull(inrectm)){
  865. inrectmcnt++;
  866. }
  867. // inlvinfoData += check +"▦"
  868. // + instcd +"▦"
  869. // + pid +"▦"
  870. // + indd +"▦"
  871. // + cretno +"▦"
  872. // + inrecdd +"▦"
  873. // + inrectm +"▦"
  874. // + wardcd +"▦"
  875. // + bedcd +"▦"
  876. // + roomcd +"▦"
  877. // + roomgrdecd +"▦"
  878. // + orddeptcd +"▦"
  879. // + medispclid +"▩";
  880. }
  881. }
  882. var sData = grdf_getGridUpdateData(group3.switch1.inlv.grd_inlvlist);
  883. //trace(sData.saveXML());
  884. grdf_setStatusColumn(sData, "m");
  885. //dsf_createDs("ds_send2_sData");
  886. ds_send_inlvinfo_inlvlist.clearData();
  887. ds_send_inlvinfo_inlvlist.copyData(sData, true);
  888. //trace("inrecddcnt :"+inrecddcnt+"/"+inrectmcnt);
  889. if(vcnt <=0 ) {
  890. sysf_messageBox("선택된 내역이", "I004");
  891. return;
  892. }else if(inrecddcnt > 0 || inrectmcnt > 0 ){
  893. sysf_messageBox("방문저장일시를 입력하십시오.","C");
  894. }else{
  895. //dsf_makeValue( ds_send, "savedata", "string", inlvinfoHeader+inlvinfoData);
  896. var oParam = {};
  897. oParam.id = "TXMNW18000";
  898. oParam.service = "wardcareapp.WardCareMngt";
  899. oParam.method = "reqExeSaveInlvInfo";
  900. //oParam.inds = "savedata=ds_send_inlvinfo_inlvlist:U";
  901. oParam.inds = "savedata=ds_send_inlvinfo_inlvlist";
  902. oParam.outds = "";
  903. oParam.async = false;
  904. //oParam.callback = "cf_TXMNW18000";
  905. tranf_submit(oParam);
  906. if(vcnt > 0) {
  907. fSearch() ;
  908. }
  909. }
  910. }
  911. // 퇴원방문저장
  912. function fSavedschlv(){
  913. var dschlvinfoHeader = "check▦instcd▦pid▦indd▦cretno▦inrecdd▦inrectm▦wardcd▦bedcd▦roomcd▦roomgrdecd▦orddeptcd▦medispclid▩";
  914. var dschlvinfoData = "";
  915. var vcnt = 0;
  916. var inrecddcnt = 0;
  917. var inrectmcnt = 0;
  918. var userdeptcd = sysf_getUserInfo("dutplcecd");
  919. for(var i = 0 ; i < ds_main_dschlvinfo_dschlvlist.rowcount; i++) {
  920. if(ds_main_dschlvinfo_dschlvlist.getColumn(i, "check") == "1"){
  921. //var check = ds_main_dschlvinfo_dschlvlist.getColumn(i, "check");
  922. var check = "Y";
  923. var instcd = ds_main_dschlvinfo_dschlvlist.getColumn(i, "instcd");
  924. var pid = ds_main_dschlvinfo_dschlvlist.getColumn(i, "pid");
  925. var indd = ds_main_dschlvinfo_dschlvlist.getColumn(i, "indd");
  926. var cretno = ds_main_dschlvinfo_dschlvlist.getColumn(i, "cretno");
  927. var inrecdd = ds_main_dschlvinfo_dschlvlist.getColumn(i, "inrecdd");
  928. var inrectm = ds_main_dschlvinfo_dschlvlist.getColumn(i, "inrectm");
  929. var wardcd = ds_main_dschlvinfo_dschlvlist.getColumn(i, "wardcd");
  930. var bedcd = ds_main_dschlvinfo_dschlvlist.getColumn(i, "bedcd");
  931. var roomcd = ds_main_dschlvinfo_dschlvlist.getColumn(i, "roomcd");
  932. var roomgrdecd = ds_main_dschlvinfo_dschlvlist.getColumn(i, "roomgrdecd");
  933. var orddeptcd = ds_main_dschlvinfo_dschlvlist.getColumn(i, "orddeptcd");
  934. var medispclid = ds_main_dschlvinfo_dschlvlist.getColumn(i, "medispclid");
  935. vcnt++;
  936. if(inrecdd == ""){
  937. inrecddcnt++;
  938. }
  939. if(inrectm == ""){
  940. inrectmcnt++;
  941. }
  942. dschlvinfoData += check +"▦"
  943. + instcd +"▦"
  944. + pid +"▦"
  945. + indd +"▦"
  946. + cretno +"▦"
  947. + inrecdd +"▦"
  948. + inrectm +"▦"
  949. + wardcd +"▦"
  950. + bedcd +"▦"
  951. + roomcd +"▦"
  952. + roomgrdecd +"▦"
  953. + orddeptcd +"▦"
  954. + medispclid +"▩";
  955. }
  956. }
  957. //dschlvinfoData = grdf_getGridUpdateData(group3.switch1.inlv.grd_inlvlist);
  958. if(vcnt <= 0) {
  959. sysf_messageBox("선택된 내역이", "I004");
  960. return;
  961. }else if(inrecddcnt > 0 || inrectmcnt > 0 ){
  962. sysf_messageBox("방문저장일시를 입력하십시오.","C");
  963. }else{
  964. //dsf_makeValue( ds_send, "savedata", "string", dschlvinfoHeader+dschlvinfoData);
  965. // submit("TXMNW18010");
  966. var oParam = {};
  967. oParam.id = "TXMNW18010";
  968. oParam.service = "wardcareapp.WardCareMngt";
  969. oParam.method = "reqExeSaveDschlvInfo";
  970. oParam.inds = "savedata=ds_main_dschlvinfo_dschlvlist:U";
  971. oParam.outds = "";
  972. oParam.async = false;
  973. //oParam.callback = "cf_TXMNW18010";
  974. tranf_submit(oParam);
  975. //if(vcnt <= 0) {
  976. if(vcnt > 0) {
  977. fSearch() ;
  978. }
  979. }
  980. }
  981. // 검사대기 방문저장
  982. function fSavetestlv(){
  983. var testlvinfoHeader = "check▦instcd▦pid▦orddd▦cretno▦prcpdd▦prcpno▦inrecdd▦inrectm▦orddeptcd▦centcd▦orddrid▩";
  984. var testlvinfoData = "";
  985. var vcnt = 0;
  986. var inrecddcnt = 0;
  987. var inrectmcnt = 0;
  988. var userdeptcd = sysf_getUserInfo("dutplcecd");
  989. for(var i = 0 ; i < ds_main_testlvinfo_testlvlist.rowcount; i++) {
  990. if(ds_main_testlvinfo_testlvlist.getColumn(i, "check") == "1"){
  991. var check = ds_main_testlvinfo_testlvlist.getColumn(i, "check");
  992. var instcd = ds_main_testlvinfo_testlvlist.getColumn(i, "instcd");
  993. var pid = ds_main_testlvinfo_testlvlist.getColumn(i, "pid");
  994. var orddd = ds_main_testlvinfo_testlvlist.getColumn(i, "orddd");
  995. var cretno = ds_main_testlvinfo_testlvlist.getColumn(i, "cretno");
  996. var prcpdd = ds_main_testlvinfo_testlvlist.getColumn(i, "prcpdd");
  997. var prcpno = ds_main_testlvinfo_testlvlist.getColumn(i, "prcpno");
  998. var inrecdd = ds_main_testlvinfo_testlvlist.getColumn(i, "inrecdd");
  999. var inrectm = ds_main_testlvinfo_testlvlist.getColumn(i, "inrectm");
  1000. var orddeptcd = ds_main_testlvinfo_testlvlist.getColumn(i, "orddeptcd");
  1001. var centcd = ds_main_testlvinfo_testlvlist.getColumn(i, "centcd");
  1002. var orddrid = ds_main_testlvinfo_testlvlist.getColumn(i, "orddrid");
  1003. vcnt++;
  1004. if(inrecdd == ""){
  1005. inrecddcnt++;
  1006. }
  1007. if(inrectm == ""){
  1008. inrectmcnt++;
  1009. }
  1010. // testlvinfoData += check +"▦"
  1011. // + instcd +"▦"
  1012. // + pid +"▦"
  1013. // + orddd +"▦"
  1014. // + cretno +"▦"
  1015. // + prcpdd +"▦"
  1016. // + prcpno +"▦"
  1017. // + inrecdd +"▦"
  1018. // + inrectm +"▦"
  1019. // + orddeptcd +"▦"
  1020. // + centcd +"▦"
  1021. // + orddrid +"▩";
  1022. }
  1023. }
  1024. if(vcnt <= 0) {
  1025. sysf_messageBox("선택된 내역이", "I004");
  1026. return;
  1027. }else if(inrecddcnt > 0 || inrectmcnt > 0 ){
  1028. sysf_messageBox("방문저장일시를 입력하십시오.","C");
  1029. }else{
  1030. var oParam = {};
  1031. oParam.id = "TXMNW18020";
  1032. oParam.service = "wardcareapp.WardCareMngt";
  1033. oParam.method = "reqExeSaveTestlvInfo";
  1034. oParam.inds = "savedata=ds_main_testlvinfo_testlvlist:U";
  1035. oParam.outds = "";
  1036. oParam.async = false;
  1037. //oParam.callback = "cf_TXMNW18020";
  1038. tranf_submit(oParam);
  1039. if(vcnt >0 ) {
  1040. fSearch() ;
  1041. }
  1042. }
  1043. }
  1044. // 진료대기 방문저장
  1045. function fSavemedilv(){
  1046. var medilvinfoHeader = "check▦instcd▦pid▦orddd▦cretno▦inrecdd▦inrectm▦orddeptcd▦centcd▦orddrid▩";
  1047. var medilvinfoData = "";
  1048. var vcnt = 0;
  1049. var inrecddcnt = 0;
  1050. var inrectmcnt = 0;
  1051. var userdeptcd = sysf_getUserInfo("dutplcecd");
  1052. for(var i = 0 ; i < ds_main_medilvinfo_medilvlist.rowcount; i++) {
  1053. if(ds_main_medilvinfo_medilvlist.getColumn(i, "check") == "1"){
  1054. // var check = ds_main_medilvinfo_medilvlist.getColumn(i, "check");
  1055. // var instcd = ds_main_medilvinfo_medilvlist.getColumn(i, "instcd");
  1056. // var pid = ds_main_medilvinfo_medilvlist.getColumn(i, "pid");
  1057. // var orddd = ds_main_medilvinfo_medilvlist.getColumn(i, "orddd");
  1058. // var cretno = ds_main_medilvinfo_medilvlist.getColumn(i, "cretno");
  1059. // var inrecdd = ds_main_medilvinfo_medilvlist.getColumn(i, "inrecdd");
  1060. // var inrectm = ds_main_medilvinfo_medilvlist.getColumn(i, "inrectm");
  1061. // var orddeptcd = ds_main_medilvinfo_medilvlist.getColumn(i, "orddeptcd");
  1062. // var centcd = ds_main_medilvinfo_medilvlist.getColumn(i, "centcd");
  1063. // var orddrid = ds_main_medilvinfo_medilvlist.getColumn(i, "orddrid");
  1064. vcnt++;
  1065. var inrecdd = ds_main_medilvinfo_medilvlist.getColumn(i, "inrecdd");
  1066. var inrectm = ds_main_medilvinfo_medilvlist.getColumn(i, "inrectm");
  1067. if(inrecdd == ""){
  1068. inrecddcnt++;
  1069. }
  1070. if(inrectm == ""){
  1071. inrectmcnt++;
  1072. }
  1073. // medilvinfoData += check +"▦"
  1074. // + instcd +"▦"
  1075. // + pid +"▦"
  1076. // + orddd +"▦"
  1077. // + cretno +"▦"
  1078. // + inrecdd +"▦"
  1079. // + inrectm +"▦"
  1080. // + orddeptcd +"▦"
  1081. // + centcd +"▦"
  1082. // + orddrid +"▩";
  1083. }
  1084. }
  1085. if(vcnt <0) {
  1086. sysf_messageBox("선택된 내역이", "I004");
  1087. return;
  1088. }else if(inrecddcnt > 0 || inrectmcnt > 0 ){
  1089. sysf_messageBox("방문저장일시를 입력하십시오.","C");
  1090. }else{
  1091. var oParam = {};
  1092. oParam.id = "TXMNW18030";
  1093. oParam.service = "wardcareapp.WardCareMngt";
  1094. oParam.method = "reqExeSaveMedilvInfo";
  1095. oParam.inds = "savedata=ds_main_medilvinfo_medilvlist:U";
  1096. oParam.outds = "";
  1097. oParam.async = false;
  1098. //oParam.callback = "cf_TXMNW18030";
  1099. tranf_submit(oParam);
  1100. if(vcnt >0 ) {
  1101. fSearch() ;
  1102. }
  1103. }
  1104. }
  1105. // 방문저장취소
  1106. function fDel(){
  1107. if(group3.switch1.tabindex == 0) {
  1108. fDelinlv();
  1109. }else if(group3.switch1.tabindex == 1) {
  1110. fDeldschlv();
  1111. }else if(group3.switch1.tabindex == 2) {
  1112. fDeltestlv();
  1113. }else if(group3.switch1.tabindex == 3) {
  1114. fDelmedilv();
  1115. }
  1116. }
  1117. // 입원방문저장취소
  1118. function fDelinlv(){
  1119. var inlvinfoHeader = "check▦instcd▦pid▦indd▦cretno▩";
  1120. var inlvinfoData = "";
  1121. var vCnt = 0;
  1122. var inreccnt = 0;
  1123. var userdeptcd = sysf_getUserInfo("dutplcecd");
  1124. for(var i = 0 ; i < ds_main_inlvinfo_inlvlist.rowcount; i++) {
  1125. if(ds_main_inlvinfo_inlvlist.getColumn(i, "check") == "1"){
  1126. vCnt++;
  1127. var inrecyn = ds_main_inlvinfo_inlvlist.getColumn(i,"inrecyn");
  1128. if(inrecyn == "N"){
  1129. inreccnt ++ ;
  1130. }
  1131. }
  1132. }
  1133. if(vCnt <= 0) {
  1134. sysf_messageBox("선택된 내역이", "I004");
  1135. return;
  1136. }else if(inreccnt > 0 ){
  1137. sysf_messageBox("방문저장된 건만 방문저장취소가 가능합니다.","C");
  1138. }else{
  1139. //dsf_makeValue( ds_send, "savedata", "string", inlvinfoHeader+inlvinfoData);
  1140. var oParam = {};
  1141. oParam.id = "TXMNW18001";
  1142. oParam.service = "wardcareapp.WardCareMngt";
  1143. oParam.method = "reqExeDelInlvInfo";
  1144. oParam.inds = "savedata=ds_main_inlvinfo_inlvlist:U";
  1145. oParam.outds = "";
  1146. oParam.async = false;
  1147. //oParam.callback = "cf_TXMNW18001";
  1148. tranf_submit(oParam);
  1149. if (vCnt >0 ) {
  1150. fSearch() ;
  1151. }
  1152. }
  1153. }
  1154. // 퇴원방문저장취소
  1155. function fDeldschlv(){
  1156. var dschvinfoHeader = "check▦instcd▦pid▦indd▦cretno▩";
  1157. var dschlvinfoData = "";
  1158. var vCnt = 0;
  1159. var inreccnt = 0;
  1160. var userdeptcd = sysf_getUserInfo("dutplcecd");
  1161. for(var i = 0 ; i < ds_main_dschlvinfo_dschlvlist.rowcount; i++) {
  1162. if(ds_main_dschlvinfo_dschlvlist.getColumn(i, "check") == "1"){
  1163. // var check = eval(xDschlvListPath).getColumn(i, "check");
  1164. // var instcd = eval(xDschlvListPath).getColumn(i, "instcd");
  1165. // var pid = eval(xDschlvListPath).getColumn(i, "pid");
  1166. // var indd = eval(xDschlvListPath).getColumn(i, "indd");
  1167. // var cretno = eval(xDschlvListPath).getColumn(i, "cretno");
  1168. //var inrecyn = eval(xDschlvListPath).getColumn(i, "inrecyn");
  1169. var inrecyn = ds_main_dschlvinfo_dschlvlist.getColumn(i, "inrecyn");
  1170. vCnt++;
  1171. if(inrecyn == "N"){
  1172. inreccnt ++ ;
  1173. }
  1174. }
  1175. }
  1176. if(vCnt <= 0 ) {
  1177. sysf_messageBox("선택된 내역이", "I004");
  1178. return;
  1179. }else if(inreccnt > 0 ){
  1180. sysf_messageBox("방문저장된 건만 방문저장취소가 가능합니다.","C");
  1181. }else{
  1182. var oParam = {};
  1183. oParam.id = "TXMNW18011";
  1184. oParam.service = "wardcareapp.WardCareMngt";
  1185. oParam.method = "reqExeDelDschlvInfo";
  1186. oParam.inds = "savedata=ds_main_dschlvinfo_dschlvlist:U";
  1187. oParam.outds = "";
  1188. oParam.async = false;
  1189. //oParam.callback = "cf_TXMNW18011";
  1190. tranf_submit(oParam);
  1191. if (vCnt >0 ) {
  1192. fSearch() ;
  1193. }
  1194. }
  1195. }
  1196. // 검사대기 방문저장취소
  1197. function fDeltestlv(){
  1198. var testvinfoHeader = "check▦instcd▦pid▦orddd▦cretno▦prcpdd▦prcpno▩";
  1199. var testlvinfoData = "";
  1200. var vCnt = 0;
  1201. var inreccnt = 0;
  1202. var userdeptcd = sysf_getUserInfo("dutplcecd");
  1203. for(var i = 0 ; i < ds_main_testlvinfo_testlvlist.rowcount; i++) {
  1204. if(ds_main_testlvinfo_testlvlist.getColumn(i, "check") == "1"){
  1205. // var check = eval(xTestlvListPath).getColumn(i, "check");
  1206. // var instcd = eval(xTestlvListPath).getColumn(i, "instcd");
  1207. // var pid = eval(xTestlvListPath).getColumn(i, "pid");
  1208. // var orddd = eval(xTestlvListPath).getColumn(i, "orddd");
  1209. // var cretno = eval(xTestlvListPath).getColumn(i, "cretno");
  1210. // var prcpdd = eval(xTestlvListPath).getColumn(i, "prcpdd");
  1211. // var prcpno = eval(xTestlvListPath).getColumn(i, "prcpno");
  1212. // var inrecyn = eval(xTestlvListPath).getColumn(i, "inrecyn");
  1213. //
  1214. // testlvinfoData += check +"▦"
  1215. // + instcd +"▦"
  1216. // + pid +"▦"
  1217. // + orddd +"▦"
  1218. // + cretno +"▦"
  1219. // + prcpdd +"▦"
  1220. // + prcpno +"▩";
  1221. vCnt++;
  1222. var inrecyn = ds_main_testlvinfo_testlvlist.getColumn(i, "inrecyn");
  1223. if(inrecyn == "N"){
  1224. inreccnt ++ ;
  1225. }
  1226. }
  1227. }
  1228. if(vCnt <= 0) {
  1229. sysf_messageBox("선택된 내역이", "I004");
  1230. return;
  1231. }else if(inreccnt > 0 ){
  1232. sysf_messageBox("방문저장된 건만 방문저장취소가 가능합니다.","C");
  1233. }else{
  1234. var oParam = {};
  1235. oParam.id = "TXMNW18021";
  1236. oParam.service = "wardcareapp.WardCareMngt";
  1237. oParam.method = "reqExeDelTestlvInfo";
  1238. oParam.inds = "savedata=ds_main_testlvinfo_testlvlist:U";
  1239. oParam.outds = "";
  1240. oParam.async = false;
  1241. //oParam.callback = "cf_TXMNW18021";
  1242. tranf_submit(oParam);
  1243. if (vCnt >0 ) {
  1244. fSearch() ;
  1245. }
  1246. }
  1247. }
  1248. // 진료대기 방문저장취소
  1249. function fDelmedilv(){
  1250. var medivinfoHeader = "check▦instcd▦pid▦orddd▦cretno▩";
  1251. var medilvinfoData = "";
  1252. var vCnt = 0;
  1253. var inreccnt = 0;
  1254. var userdeptcd = sysf_getUserInfo("dutplcecd");
  1255. for(var i = 0 ; i < ds_main_medilvinfo_medilvlist.rowcount; i++) {
  1256. if(ds_main_medilvinfo_medilvlist.getColumn(i, "check") == "1"){
  1257. // var check = eval(xMedilvListPath).getColumn(i, "check");
  1258. // var instcd = eval(xMedilvListPath).getColumn(i, "instcd");
  1259. // var pid = eval(xMedilvListPath).getColumn(i, "pid");
  1260. // var orddd = eval(xMedilvListPath).getColumn(i, "orddd");
  1261. // var cretno = eval(xMedilvListPath).getColumn(i, "cretno");
  1262. // var inrecyn = eval(xMedilvListPath).getColumn(i, "inrecyn");
  1263. //
  1264. // medilvinfoData += check +"▦"
  1265. // + instcd +"▦"
  1266. // + pid +"▦"
  1267. // + orddd +"▦"
  1268. // + cretno +"▩";
  1269. vCnt++;
  1270. var inrecyn = ds_main_medilvinfo_medilvlist.getColumn(i, "inrecyn");
  1271. if(inrecyn == "N"){
  1272. inreccnt ++ ;
  1273. }
  1274. }
  1275. }
  1276. if(vCnt <=0) {
  1277. sysf_messageBox("선택된 내역이", "I004");
  1278. return;
  1279. }else if(inreccnt > 0 ){
  1280. sysf_messageBox("방문저장된 건만 방문저장취소가 가능합니다.","C");
  1281. }else{
  1282. var oParam = {};
  1283. oParam.id = "TXMNW18031";
  1284. oParam.service = "wardcareapp.WardCareMngt";
  1285. oParam.method = "reqExeDelMedilvInfo";
  1286. oParam.inds = "savedata=ds_main_medilvinfo_medilvlist:U";
  1287. oParam.outds = "";
  1288. oParam.async = false;
  1289. //oParam.callback = "cf_TXMNW18031";
  1290. tranf_submit(oParam);
  1291. if (vCnt >0 ) {
  1292. fSearch() ;
  1293. }
  1294. }
  1295. }
  1296. function fExcel(){
  1297. if (group3.switch1.tabindex == 0 ) {
  1298. grdf_exportExcel(group3.switch1.inlv.grd_inlvlist, "입원방문관리_"+utlf_getCurrentDate(), "SheetName",true);
  1299. } else if (group3.switch1.tabindex == 1 ) {
  1300. grdf_exportExcel(group3.switch1.dschlv.grd_dschlvlist, "퇴원방문관리_"+utlf_getCurrentDate(), "SheetName",true);
  1301. } else if (group3.switch1.tabindex == 2 ) {
  1302. grdf_exportExcel(group3.switch1.testlv.grd_testlvlist, "검사대기방문관리_"+utlf_getCurrentDate(), "SheetName",true);
  1303. } else if (group3.switch1.tabindex == 3 ) {
  1304. grdf_exportExcel(group3.switch1.medilv.grd_medilvlist, "진료대기방문관리_"+utlf_getCurrentDate(), "SheetName",true);
  1305. }
  1306. }
  1307. // // 입원방문 엑셀저장
  1308. // function fExcelinlv(){
  1309. //
  1310. // var fileName = window.fileDialog("save", ",", false, "입원방문관리_" + utlf_getCurrentDate(), "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
  1311. // var col1 = group3.switch1.inlv.grd_inlvlist.colRef("wardcd");
  1312. // var col2 = group3.switch1.inlv.grd_inlvlist.colRef("bedcd");
  1313. // var col3 = group3.switch1.inlv.grd_inlvlist.colRef("roomcd");
  1314. // var col4 = group3.switch1.inlv.grd_inlvlist.colRef("roomgrdecd");
  1315. // var col5 = group3.switch1.inlv.grd_inlvlist.colRef("bdtppartcd");
  1316. // var col6 = group3.switch1.inlv.grd_inlvlist.colRef("bdbtype");
  1317. //
  1318. // if (fileName != ""){
  1319. // group3.switch1.inlv.grd_inlvlist.saveExcel(fileName, "SheetName;exportfalsecols:1;col_"+col1+":label;col_"+col2+":label;col_"+col3+":label;col_"+col4+":label;col_"+col5+":label;col_"+col6+":label;", true, false, "", "", false);
  1320. // }
  1321. // }
  1322. //
  1323. // // 퇴원방문 엑셀저장
  1324. // function fExceldschlv(){
  1325. //
  1326. // var fileName = window.fileDialog("save", ",", false, "퇴원방문관리_" + utlf_getCurrentDate(), "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
  1327. // var col1 = group3.switch1.dschlv.grd_dschlvlist.colRef("wardcd");
  1328. // var col2 = group3.switch1.dschlv.grd_dschlvlist.colRef("bedcd");
  1329. // var col3 = group3.switch1.dschlv.grd_dschlvlist.colRef("roomcd");
  1330. // var col4 = group3.switch1.dschlv.grd_dschlvlist.colRef("roomgrdecd");
  1331. //
  1332. // if (fileName != ""){
  1333. // group3.switch1.dschlv.grd_dschlvlist.saveExcel(fileName, "SheetName;exportfalsecols:1;col_"+col1+":label;col_"+col2+":label;col_"+col3+":label;col_"+col4+":label;", true, false, "", "", false);
  1334. // }
  1335. // }
  1336. //
  1337. // // 검사대기방문 엑셀저장
  1338. // function fExceltestlv(){
  1339. //
  1340. // var fileName = window.fileDialog("save", ",", false, "검사대기방문관리_" + utlf_getCurrentDate(), "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
  1341. // var col1 = group3.switch1.testlv.grd_testlvlist.colRef("centcd");
  1342. //
  1343. // if (fileName != ""){
  1344. // group3.switch1.testlv.grd_testlvlist.saveExcel(fileName, "SheetName;exportfalsecols:1;col_"+col1+":label;col_", true, false, "", "", false);
  1345. // }
  1346. // }
  1347. //
  1348. // // 진료대기방문 엑셀저장
  1349. // function fExcelmedilv(){
  1350. //
  1351. // var fileName = window.fileDialog("save", ",", false, "진료대기방문관리_" + utlf_getCurrentDate(), "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
  1352. // var col1 = group3.switch1.medilv.grd_medilvlist.colRef("centcd");
  1353. // var col2 = group3.switch1.medilv.grd_medilvlist.colRef("rsrvflag");
  1354. // var col3 = group3.switch1.medilv.grd_medilvlist.colRef("insukind");
  1355. // var col4 = group3.switch1.medilv.grd_medilvlist.colRef("suppkind");
  1356. //
  1357. // if (fileName != ""){
  1358. // group3.switch1.medilv.grd_medilvlist.saveExcel(fileName, "SheetName;exportfalsecols:1;col_"+col1+":label;col_"+col2+":label;col_"+col3+":label;col_"+col4+":label;", true, false, "", "", false);
  1359. // }
  1360. // }
  1361. // 간호정보조사 임시저장
  1362. function fNrInfoSave(){
  1363. var nrinfoHeader = "check▦instcd▦pid▦indd▦cretno▦recflag▦highbp▦lowbp▦pulse▦breth▦bdtp▦bdtppartcd▦bdht▦bdwt▦spo2▦bdbtype▩";
  1364. var nrinfoData = "";
  1365. var checkcnt = 0;
  1366. var recflagcnt = 0;
  1367. var signinfoyncnt = 0;
  1368. var userdeptcd = sysf_getUserInfo("dutplcecd");
  1369. for(var i = 0 ; i < ds_main_inlvinfo_inlvlist.rowcount; i++) {
  1370. if(ds_main_inlvinfo_inlvlist.getColumn(i, "check") == "1"){
  1371. dsf_createDsRow("ds_send_save2", [
  1372. {col:"check", type:"STRING", size:256, val:"Y"}
  1373. , {col:"instcd", type:"STRING", size:256, val:ds_main_inlvinfo_inlvlist.getColumn(0,"instcd")}
  1374. , {col:"pid", type:"STRING", size:256, val:ds_main_inlvinfo_inlvlist.getColumn(0,"pid")}
  1375. , {col:"indd", type:"STRING", size:256, val:ds_main_inlvinfo_inlvlist.getColumn(0,"indd")}
  1376. , {col:"cretno", type:"STRING", size:256, val:ds_main_inlvinfo_inlvlist.getColumn(0,"cretno")}
  1377. , {col:"recflag", type:"STRING", size:256, val:ds_main_inlvinfo_inlvlist.getColumn(0,"recflag")}
  1378. , {col:"highbp", type:"STRING", size:256, val:ds_main_inlvinfo_inlvlist.getColumn(0,"highbp")}
  1379. , {col:"lowbp", type:"STRING", size:256, val:ds_main_inlvinfo_inlvlist.getColumn(0,"lowbp")}
  1380. , {col:"pulse", type:"STRING", size:256, val:ds_main_inlvinfo_inlvlist.getColumn(0,"pulse")}
  1381. , {col:"breth", type:"STRING", size:256, val:ds_main_inlvinfo_inlvlist.getColumn(0,"breth")}
  1382. , {col:"bdtp", type:"STRING", size:256, val:ds_main_inlvinfo_inlvlist.getColumn(0,"bdtp")}
  1383. , {col:"bdtppartcd", type:"STRING", size:256, val:ds_main_inlvinfo_inlvlist.getColumn(0,"bdtppartcd")}
  1384. , {col:"bdht", type:"STRING", size:256, val:ds_main_inlvinfo_inlvlist.getColumn(0,"bdht")}
  1385. , {col:"bdwt", type:"STRING", size:256, val:ds_main_inlvinfo_inlvlist.getColumn(0,"bdwt")}
  1386. , {col:"spo2", type:"STRING", size:256, val:ds_main_inlvinfo_inlvlist.getColumn(0,"spo2")}
  1387. , {col:"bdbtype", type:"STRING", size:256, val:ds_main_inlvinfo_inlvlist.getColumn(0,"bdbtype")}
  1388. , {col:"signinfoyn", type:"STRING", size:256, val:ds_main_inlvinfo_inlvlist.getColumn(0,"signinfoyn")}
  1389. ]);
  1390. checkcnt++;
  1391. // var check = eval(xInlvListPath).getColumn(i, "check");
  1392. // var instcd = eval(xInlvListPath).getColumn(i, "instcd");
  1393. // var pid = eval(xInlvListPath).getColumn(i, "pid");
  1394. // var indd = eval(xInlvListPath).getColumn(i, "indd");
  1395. // var cretno = eval(xInlvListPath).getColumn(i, "cretno");
  1396. // var recflag = eval(xInlvListPath).getColumn(i, "recflag");
  1397. // var highbp = eval(xInlvListPath).getColumn(i, "highbp");
  1398. // var lowbp = eval(xInlvListPath).getColumn(i, "lowbp");
  1399. // var pulse = eval(xInlvListPath).getColumn(i, "pulse");
  1400. // var breth = eval(xInlvListPath).getColumn(i, "breth");
  1401. // var bdtp = eval(xInlvListPath).getColumn(i, "bdtp");
  1402. // var bdtppartcd = eval(xInlvListPath).getColumn(i, "bdtppartcd");
  1403. // var bdht = eval(xInlvListPath).getColumn(i, "bdht");
  1404. // var bdwt = eval(xInlvListPath).getColumn(i, "bdwt");
  1405. // var spo2 = eval(xInlvListPath).getColumn(i, "spo2");
  1406. // var bdbtype = eval(xInlvListPath).getColumn(i, "bdbtype");
  1407. // var signinfoyn = eval(xInlvListPath).getColumn(i, "signinfoyn");
  1408. var recflag = ds_main_inlvinfo_inlvlist.getColumn(i, "recflag");
  1409. var signinfoyn = ds_main_inlvinfo_inlvlist.getColumn(i, "signinfoyn");
  1410. if(recflag == ""){
  1411. recflagcnt++;
  1412. }
  1413. if(signinfoyn == "Y"){
  1414. signinfoyncnt++;
  1415. }
  1416. // nrinfoData += check +"▦"
  1417. // + instcd +"▦"
  1418. // + pid +"▦"
  1419. // + indd +"▦"
  1420. // + cretno +"▦"
  1421. // + recflag +"▦"
  1422. // + highbp +"▦"
  1423. // + lowbp +"▦"
  1424. // + pulse +"▦"
  1425. // + breth +"▦"
  1426. // + bdtp +"▦"
  1427. // + bdtppartcd +"▦"
  1428. // + bdht +"▦"
  1429. // + bdwt +"▦"
  1430. // + spo2 +"▦"
  1431. // + bdbtype +"▩";
  1432. }
  1433. }
  1434. if(checkcnt <=0 ) {
  1435. sysf_messageBox("선택된 내역이", "I004");
  1436. return;
  1437. }else if(signinfoyncnt > 0 ){
  1438. sysf_messageBox("이미 인증저장된 건은 저장 또는 수정이 불가 합니다.","E");
  1439. }else if(recflagcnt > 0 ){
  1440. sysf_messageBox("간호정보조사지 종류를 선택하십시오.","C");
  1441. }else{
  1442. var oParam = {};
  1443. oParam.id = "TXMNW18002";
  1444. oParam.service = "wardcareapp.WardCareMngt";
  1445. oParam.method = "reqExeSaveNrInfo";
  1446. oParam.inds = "savedata=ds_send_save2";
  1447. oParam.outds = "";
  1448. oParam.async = false;
  1449. //oParam.callback = "cf_TXMNW18002";
  1450. tranf_submit(oParam);
  1451. }
  1452. }
  1453. function cf_TXMNW18002(sSvcId, nErrorCode, sErrorMsg) {
  1454. if(nErrorCode < 0) return;
  1455. fSearch() ;
  1456. }
  1457. // 입실저장
  1458. function fSaveInroom(){
  1459. var inroominfoHeader = "check▦stat▦inrmcnfmflag▦saveId▦chngdeptroomflag▦instcd▦pid▦indd▦cretno▦wardcd▦bedcd▦roomcd▦roomgrdecd▦orddeptcd▦ordtype▦patnm▦sexage▦toward▦toroom▦chngorddeptcd▦chngatdoctid▦atdoctnm▦atdoctidphonno▦medispclid▦orddrnm▦medispclphonno▦tocntctel▦curdd▦curtm▦userid▦usernm▩";
  1460. var inroominfoData = "";
  1461. var careinrmddcnt = 0 ;
  1462. var inddcnt = 0;
  1463. var checkcnt = 0;
  1464. var userdeptcd = sysf_getUserInfo("dutplcecd");
  1465. for(var i = 0 ; i < ds_main_inlvinfo_inlvlist.rowcount; i++) {
  1466. if(ds_main_inlvinfo_inlvlist.getColumn(i, "check") == "1"){
  1467. checkcnt++;
  1468. if(checkcnt > 1) {
  1469. sysf_messageBox("입실저장은 1건만 가능합니다.","E");
  1470. return;
  1471. }
  1472. dsf_createDsRow("ds_send_save", [
  1473. {col:"check", type:"STRING", size:256, val:"Y"}
  1474. , {col:"instcd", type:"STRING", size:256, val:ds_main_inlvinfo_inlvlist.getColumn(0,"instcd")}
  1475. , {col:"pid", type:"STRING", size:256, val:ds_main_inlvinfo_inlvlist.getColumn(0,"pid")}
  1476. , {col:"indd", type:"STRING", size:256, val:ds_main_inlvinfo_inlvlist.getColumn(0,"indd")}
  1477. , {col:"cretno", type:"STRING", size:256, val:ds_main_inlvinfo_inlvlist.getColumn(0,"cretno")}
  1478. , {col:"wardcd", type:"STRING", size:256, val:ds_main_inlvinfo_inlvlist.getColumn(0,"wardcd")}
  1479. , {col:"bedcd", type:"STRING", size:256, val:ds_main_inlvinfo_inlvlist.getColumn(0,"bedcd")}
  1480. , {col:"roomcd", type:"STRING", size:256, val:ds_main_inlvinfo_inlvlist.getColumn(0,"roomcd")}
  1481. , {col:"roomgrdecd", type:"STRING", size:256, val:ds_main_inlvinfo_inlvlist.getColumn(0,"roomgrdecd")}
  1482. , {col:"orddeptcd", type:"STRING", size:256, val:ds_main_inlvinfo_inlvlist.getColumn(0,"orddeptcd")}
  1483. , {col:"ordtype", type:"STRING", size:256, val:ds_main_inlvinfo_inlvlist.getColumn(0,"ordtype")}
  1484. , {col:"patnm", type:"STRING", size:256, val:ds_main_inlvinfo_inlvlist.getColumn(0,"hngnm")}
  1485. , {col:"careinrmdd", type:"STRING", size:256, val:ds_main_inlvinfo_inlvlist.getColumn(0,"careinrmdd")}
  1486. , {col:"toward", type:"STRING", size:256, val:ds_main_inlvinfo_inlvlist.getColumn(0,"wardcd")}
  1487. , {col:"toroom", type:"STRING", size:256, val:ds_main_inlvinfo_inlvlist.getColumn(0,"roomcd")}
  1488. , {col:"chngorddeptcd", type:"STRING", size:256, val:ds_main_inlvinfo_inlvlist.getColumn(0,"wardcd")}
  1489. , {col:"chngatdoctid", type:"STRING", size:256, val:ds_main_inlvinfo_inlvlist.getColumn(0,"atdoctid")}
  1490. , {col:"atdoctnm", type:"STRING", size:256, val:ds_main_inlvinfo_inlvlist.getColumn(0,"atdoctnm")}
  1491. , {col:"atdoctidphonno", type:"STRING", size:256, val:ds_main_inlvinfo_inlvlist.getColumn(0,"atdoctidphonno")}
  1492. , {col:"medispclid", type:"STRING", size:256, val:ds_main_inlvinfo_inlvlist.getColumn(0,"medispclid")}
  1493. , {col:"orddrnm", type:"STRING", size:256, val:ds_main_inlvinfo_inlvlist.getColumn(0,"orddrnm")}
  1494. , {col:"medispclphonno", type:"STRING", size:256, val:ds_main_inlvinfo_inlvlist.getColumn(0,"medispclphonno")}
  1495. , {col:"tocntctel", type:"STRING", size:256, val:ds_main_inlvinfo_inlvlist.getColumn(0,"tocntctel")}
  1496. , {col:"stat", type:"STRING", size:256, val:"u"}
  1497. , {col:"chngdeptroomflag", type:"STRING", size:256, val:"01"}
  1498. , {col:"saveId", type:"STRING", size:256, val:"SMMNW18000"}
  1499. , {col:"sexage", type:"STRING", size:256, val:ds_main_inlvinfo_inlvlist.getColumn(0,"sex")+"/"+ds_main_inlvinfo_inlvlist.getColumn(0,"age")}
  1500. , {col:"curdd", type:"STRING", size:256, val:utlf_getCurrentDate()}
  1501. , {col:"curtm", type:"STRING", size:256, val:utlf_getCurrentTime().substr(0,4)}
  1502. , {col:"userid", type:"STRING", size:256, val:sysf_getUserId()}
  1503. , {col:"usernm", type:"STRING", size:256, val:sysf_getUserName()}
  1504. , {col:"ordflag", type:"STRING", size:256, val:"01"}
  1505. , {col:"inrmcnfmflag", type:"STRING", size:256, val:"U"}
  1506. ]);
  1507. // var check = eval(xInlvListPath).getColumn(i, "check");
  1508. // var instcd = eval(xInlvListPath).getColumn(i, "instcd");
  1509. // var pid = eval(xInlvListPath).getColumn(i, "pid");
  1510. // var indd = eval(xInlvListPath).getColumn(i, "indd");
  1511. // var cretno = eval(xInlvListPath).getColumn(i, "cretno");
  1512. // var wardcd = eval(xInlvListPath).getColumn(i, "wardcd");
  1513. // var bedcd = eval(xInlvListPath).getColumn(i, "bedcd");
  1514. // var roomcd = eval(xInlvListPath).getColumn(i, "roomcd");
  1515. // var roomgrdecd = eval(xInlvListPath).getColumn(i, "roomgrdecd");
  1516. // var orddeptcd = eval(xInlvListPath).getColumn(i, "orddeptcd");
  1517. // var ordtype = eval(xInlvListPath).getColumn(i, "ordtype");
  1518. // var patnm = eval(xInlvListPath).getColumn(i, "hngnm");
  1519. // var careinrmdd = eval(xInlvListPath).getColumn(i, "careinrmdd");
  1520. // var toward = group3.switch1.inlv.grd_inlvlist.labelMatrix(group3.switch1.inlv.grd_inlvlist.row, group3.switch1.inlv.grd_inlvlist.colRef("wardcd"));
  1521. // var toroom = group3.switch1.inlv.grd_inlvlist.labelMatrix(group3.switch1.inlv.grd_inlvlist.row, group3.switch1.inlv.grd_inlvlist.colRef("roomcd"));
  1522. // var chngorddeptcd = eval(xInlvListPath).getColumn(i, "wardcd");
  1523. // var chngatdoctid = eval(xInlvListPath).getColumn(i, "atdoctid");
  1524. // var atdoctnm = eval(xInlvListPath).getColumn(i, "atdoctnm");
  1525. // var atdoctidphonno = eval(xInlvListPath).getColumn(i, "atdoctidphonno");
  1526. // var medispclid = eval(xInlvListPath).getColumn(i, "medispclid");
  1527. // var orddrnm = eval(xInlvListPath).getColumn(i, "orddrnm");
  1528. // var medispclphonno = eval(xInlvListPath).getColumn(i, "medispclphonno");
  1529. // var tocntctel = eval(xInlvListPath).getColumn(i, "tocntctel");
  1530. // var stat = "u";
  1531. // var chngdeptroomflag = "01";
  1532. // var saveId = "SMMNW18000";
  1533. // var sexage = eval(xInlvListPath).getColumn(i, "sex") + "/" + eval(xInlvListPath).getColumn(i, "age");
  1534. // var curdd = utlf_getCurrentDate();
  1535. // var curtm = utlf_getCurrentTime().substr(0,4);
  1536. // var userid = sysf_getUserId();
  1537. // var usernm = sysf_getUserName();
  1538. // var ordflag = "01";
  1539. // var inrmcnfmflag = "U";
  1540. var careinrmdd = eval(xInlvListPath).getColumn(i, "careinrmdd");
  1541. var indd = eval(xInlvListPath).getColumn(i, "indd");
  1542. // if(careinrmdd != "-"){
  1543. // careinrmddcnt++;
  1544. // }
  1545. //
  1546. // if(indd != utlf_getCurrentDate()){
  1547. // inddcnt++;
  1548. // }
  1549. // inroominfoData += check +"▦"
  1550. // + stat +"▦"
  1551. // + inrmcnfmflag +"▦"
  1552. // + saveId +"▦"
  1553. // + chngdeptroomflag +"▦"
  1554. // + instcd +"▦"
  1555. // + pid +"▦"
  1556. // + indd +"▦"
  1557. // + cretno +"▦"
  1558. // + wardcd +"▦"
  1559. // + bedcd +"▦"
  1560. // + roomcd +"▦"
  1561. // + roomgrdecd +"▦"
  1562. // + orddeptcd +"▦"
  1563. // + ordtype +"▦"
  1564. // + patnm +"▦"
  1565. // + sexage +"▦"
  1566. // + toward +"▦"
  1567. // + toroom +"▦"
  1568. // + chngorddeptcd +"▦"
  1569. // + chngatdoctid +"▦"
  1570. // + atdoctnm +"▦"
  1571. // + atdoctidphonno +"▦"
  1572. // + medispclid +"▦"
  1573. // + orddrnm +"▦"
  1574. // + medispclphonno +"▦"
  1575. // + tocntctel +"▦"
  1576. // + curdd +"▦"
  1577. // + curtm +"▦"
  1578. // + userid +"▦"
  1579. // + usernm +"▩";
  1580. }
  1581. }
  1582. if(checkcnt <=0 ) {
  1583. sysf_messageBox("선택된 내역이", "I004");
  1584. return;
  1585. }else if(careinrmddcnt > 0 ){
  1586. sysf_messageBox("이미 입실저장된 건은 저장이 불가합니다.","E");
  1587. }else if(inddcnt > 0 ){
  1588. sysf_messageBox("당일 입원환자에 대해서만 입실저장이", "I006","\입원일자를 확인하십시오.","E");
  1589. }else{
  1590. // dsf_makeValue( ds_send, "savedata", "string", inroominfoHeader+inroominfoData);
  1591. // ds_main_rtninfo.clearData();
  1592. var oParam = {};
  1593. oParam.id = "TXMNW18003";
  1594. oParam.service = "wardcareapp.WardCareMngt";
  1595. oParam.method = "reqSetInPatList";
  1596. oParam.inds = "patlist=ds_send_save";
  1597. oParam.outds = "ds_main_rtninfo_result=result ds_main_rtninfo_rtnmsg=rtnmsg ds_main_rtninfo_patinfolist=patinfolist";
  1598. oParam.async = false;
  1599. oParam.callback = "cf_TXMNW18003";
  1600. tranf_submit(oParam);
  1601. }
  1602. }
  1603. function cf_TXMNW18003(sSvcId, nErrorCode, sErrorMsg) {
  1604. if(nErrorCode < 0) return;
  1605. var sMessage = "";
  1606. sMessage = ds_main_rtninfo_patinfolist.getColumn(0, "pid") + " "
  1607. + ds_main_rtninfo_patinfolist.getColumn(0, "patnm") + " "
  1608. + ds_main_rtninfo_patinfolist.getColumn(0, "sexage") + " "
  1609. + "입실등록되었습니다." ;
  1610. if(ds_main_rtninfo_rtnmsg.getColumn(0, "resultflag") == "2") {
  1611. sMessage += "\n\n입원전 검사실에서 미액팅된 검사가 존재합니다.\n입원전 검사실에 확인하십시오!!";
  1612. }
  1613. sysf_messageBox(sMessage, "I");
  1614. if (utlf_isNull(sMessage)) {
  1615. fSearch() ;
  1616. }
  1617. }
  1618. function group3_group2_btn_search_onclick(obj:Button, e:ClickEventInfo) {
  1619. fSearch();
  1620. }
  1621. function group3_group2_btn_excsave_onclick(obj:Button, e:ClickEventInfo) {
  1622. fExcel();
  1623. }
  1624. function group3_group2_input1_onkeyup(obj:Edit, e:KeyEventInfo) {
  1625. if(event.keyCode == "13") {
  1626. obj.updateToDataset();
  1627. inputEnterKey("group3.group2.btn_search", "DOMActivate");
  1628. }
  1629. }
  1630. function group3_switch1_inlv_button1_onclick(obj:Button, e:ClickEventInfo) {
  1631. fDel(); // 취소
  1632. }
  1633. function group3_switch1_inlv_button2_onclick(obj:Button, e:ClickEventInfo) {
  1634. fSave(); // 등록,수정
  1635. }
  1636. function group3_switch1_inlv_button3_onclick(obj:Button, e:ClickEventInfo) {
  1637. fNrInfoSave(); // 간호정보조사지 임시저장,수정
  1638. }
  1639. function group3_switch1_inlv_grd_inlvlist_oncelldblclick(obj:Grid, e:GridClickEventInfo) {
  1640. var condparam = "";
  1641. // 상단정보 올림
  1642. condparam = ds_main_inlvinfo_inlvlist.getColumn(group3.switch1.inlv.grd_inlvlist.row, "ordtype")
  1643. + "▦" + ds_main_inlvinfo_inlvlist.getColumn(group3.switch1.inlv.grd_inlvlist.row, "pid")
  1644. + "▦" + ds_main_inlvinfo_inlvlist.getColumn(group3.switch1.inlv.grd_inlvlist.row, "indd")
  1645. + "▦" + ds_main_inlvinfo_inlvlist.getColumn(group3.switch1.inlv.grd_inlvlist.row, "cretno")
  1646. + "▦" + ds_main_inlvinfo_inlvlist.getColumn(group3.switch1.inlv.grd_inlvlist.row, "instcd")
  1647. + "▦" + utlf_getCurrentDate();
  1648. frmf_setParameter("condparam", condparam);
  1649. frmf_modal("SPMMO08900", "SPMMO08900", null, null, null, null, null, null, null, null, null, null, "M");
  1650. //frmf_modal("SPMMO08900", "SPMMO08900", "", "1", "", "", "", "", "left:0; right:0; width:0; height:0; sysmenu:hidden; caption:hidden; min:hidden", "", "", "M");
  1651. }
  1652. function group3_switch1_inlv_button10_onclick(obj:Button, e:ClickEventInfo) {
  1653. fSaveInroom(); // 입실저장
  1654. }
  1655. function group3_switch1_inlv_button11_onclick(obj:Button, e:ClickEventInfo) {
  1656. frmf_open("SMMNW04000", "SMMNW04000", "", "", "", "", "", "", "", "", "", "", "M");
  1657. }
  1658. function group3_switch1_dschlv_button4_onclick(obj:Button, e:ClickEventInfo) {
  1659. fDel(); // 취소
  1660. }
  1661. function group3_switch1_dschlv_button5_onclick(obj:Button, e:ClickEventInfo) {
  1662. fSave(); // 등록,수정
  1663. }
  1664. // function group3_switch1_dschlv_grd_dschlvlist_onlbuttonup(obj:Grid, e:MouseEventInfo) {
  1665. //
  1666. // var xDschlvlistPath = "ds_main_dschlvinfo_dschlvlist";
  1667. //
  1668. // if(group3.switch1.dschlv.grd_dschlvlist.col == group3.switch1.dschlv.grd_dschlvlist.colRef("inrectm")) {
  1669. // model.setValue(xDschlvlistPath+"["+(group3.switch1.dschlv.grd_dschlvlist.row)+"]_inrecdd", utlf_getCurrentDate());
  1670. // model.setValue(xDschlvlistPath+"["+(group3.switch1.dschlv.grd_dschlvlist.row)+"]_inrectm", utlf_getCurrentDateTime().substring(9,13));
  1671. // }
  1672. //
  1673. // }
  1674. function group3_switch1_dschlv_grd_dschlvlist_oncelldblclick(obj:Grid, e:GridClickEventInfo) {
  1675. var condparam = "";
  1676. // 상단정보 올림
  1677. condparam = ds_main_dschlvinfo_dschlvlist.getColumn(group3.switch1.dschlv.grd_dschlvlist.row, "ordtype")
  1678. + "▦" + ds_main_dschlvinfo_dschlvlist.getColumn(group3.switch1.dschlv.grd_dschlvlist.row, "pid")
  1679. + "▦" + ds_main_dschlvinfo_dschlvlist.getColumn(group3.switch1.dschlv.grd_dschlvlist.row, "indd")
  1680. + "▦" + ds_main_dschlvinfo_dschlvlist.getColumn(group3.switch1.dschlv.grd_dschlvlist.row, "cretno")
  1681. + "▦" + ds_main_dschlvinfo_dschlvlist.getColumn(group3.switch1.dschlv.grd_dschlvlist.row, "instcd")
  1682. + "▦" + utlf_getCurrentDate();
  1683. frmf_setParameter("condparam", condparam);
  1684. frmf_modal("SPMMO08900", "SPMMO08900", null, null, null, null, null, null, null, null, null, null, "M");
  1685. //frmf_modal("SPMMO08900", "", ""-"", "", "1", "", "", "", "", "left:0; right:0; width:0; height:0; sysmenu:hidden; caption:hidden; min:hidden", "", "", "M");
  1686. }
  1687. function group3_switch1_dschlv_button12_onclick(obj:Button, e:ClickEventInfo) {
  1688. frmf_open("SMMNW04000", "SMMNW04000", "", "", "", "", "", "", "", "", "", "", "M");
  1689. }
  1690. function group3_switch1_testlv_button6_onclick(obj:Button, e:ClickEventInfo) {
  1691. fDel(); // 취소
  1692. }
  1693. function group3_switch1_testlv_button7_onclick(obj:Button, e:ClickEventInfo) {
  1694. fSave(); // 등록,수정
  1695. }
  1696. // function group3_switch1_testlv_grd_testlvlist_onlbuttonup(obj:Grid, e:MouseEventInfo) {
  1697. //
  1698. // var xTestlvlistPath = "ds_main_testlvinfo_testlvlist";
  1699. //
  1700. // if(group3.switch1.testlv.grd_testlvlist.col == group3.switch1.testlv.grd_testlvlist.colRef("inrectm")) {
  1701. // model.setValue(xTestlvlistPath+"["+(group3.switch1.testlv.grd_testlvlist.row)+"]_inrecdd", utlf_getCurrentDate());
  1702. // model.setValue(xTestlvlistPath+"["+(group3.switch1.testlv.grd_testlvlist.row)+"]_inrectm", utlf_getCurrentDateTime().substring(9,13));
  1703. // }
  1704. //
  1705. // }
  1706. function group3_switch1_medilv_button8_onclick(obj:Button, e:ClickEventInfo) {
  1707. fDel(); // 취소
  1708. }
  1709. function group3_switch1_medilv_button9_onclick(obj:Button, e:ClickEventInfo) {
  1710. fSave(); // 등록,수정
  1711. }
  1712. // function group3_switch1_medilv_grd_medilvlist_onlbuttonup(obj:Grid, e:MouseEventInfo) {
  1713. //
  1714. // var xMedilvlistPath = "ds_main_medilvinfo_medilvlist";
  1715. //
  1716. // if(group3.switch1.medilv.grd_medilvlist.col == group3.switch1.medilv.grd_medilvlist.colRef("inrectm")) {
  1717. // model.setValue(xMedilvlistPath+"["+(group3.switch1.medilv.grd_medilvlist.row)+"]_inrecdd", utlf_getCurrentDate());
  1718. // model.setValue(xMedilvlistPath+"["+(group3.switch1.medilv.grd_medilvlist.row)+"]_inrectm", utlf_getCurrentDateTime().substring(9,13));
  1719. // }
  1720. //
  1721. // }
  1722. function group3_switch1_onchanged(obj:Tab, e:TabIndexChangeEventInfo)
  1723. {
  1724. ds_main_cond.setColumn( 0, "menuflag", group3.switch1.tabindex );
  1725. ds_main_cond.setColumn( 0, "fromdd",utlf_getCurrentDate());
  1726. ds_main_cond.setColumn( 0, "todd",utlf_getCurrentDate());
  1727. if (obj.tabindex == 0 ) {
  1728. group3.group2.cap_ddnm.text = "입원일자 :";
  1729. } else if (obj.tabindex == 1 ) {
  1730. group3.group2.cap_ddnm.text = "퇴원예고일 : ";
  1731. } else if (obj.tabindex == 2 ) {
  1732. group3.group2.cap_ddnm.text = "예약일자 :";
  1733. } else if (obj.tabindex == 3 ) {
  1734. group3.group2.cap_ddnm.text = "진료일자 :";
  1735. }
  1736. fSearch();
  1737. }
  1738. function group3_switch1_inlv_grd_inlvlist_onexpanddown(obj:Grid, e:GridMouseEventInfo)
  1739. {
  1740. if (e.cell == "14" ) {
  1741. ds_main_inlvinfo_inlvlist.setColumn(e.row,"inrecdd", utlf_getCurrentDate());
  1742. ds_main_inlvinfo_inlvlist.setColumn(e.row,"inrectm", utlf_getCurrentDateTime().substring(9,13));
  1743. }
  1744. }
  1745. function group3_switch1_dschlv_grd_dschlvlist_onexpanddown(obj:Grid, e:GridMouseEventInfo)
  1746. {
  1747. if (e.cell == "14" ) {
  1748. ds_main_dschlvinfo_dschlvlist.setColumn(e.row,"inrecdd", utlf_getCurrentDate());
  1749. ds_main_dschlvinfo_dschlvlist.setColumn(e.row,"inrectm", utlf_getCurrentDateTime().substring(9,13));
  1750. }
  1751. }
  1752. function group3_switch1_testlv_grd_testlvlist_onexpanddown(obj:Grid, e:GridMouseEventInfo)
  1753. {
  1754. if (e.cell == "13" ) {
  1755. ds_main_testlvinfo_testlvlist.setColumn(e.row,"inrecdd", utlf_getCurrentDate());
  1756. ds_main_testlvinfo_testlvlist.setColumn(e.row,"inrectm", utlf_getCurrentDateTime().substring(9,13));
  1757. }
  1758. }
  1759. function group3_switch1_medilv_grd_medilvlist_onexpanddown(obj:Grid, e:GridMouseEventInfo)
  1760. {
  1761. if (e.cell == "14" ) {
  1762. ds_main_medilvinfo_medilvlist.setColumn(e.row,"inrecdd", utlf_getCurrentDate());
  1763. ds_main_medilvinfo_medilvlist.setColumn(e.row,"inrectm", utlf_getCurrentDateTime().substring(9,13));
  1764. }
  1765. }
  1766. ]]></Script>
  1767. </Form>
  1768. </FDL>