SMMND01800_투석자리생성.xfdl 52 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234
  1. <?xml version="1.0" encoding="utf-8" standalone="no"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SMMND01800" position="absolute 0 0 1180 729" titletext="투석자리생성" onload="SMMND01800_onload">
  5. <Layouts>
  6. <Layout>
  7. <Div id="grp_tle" position="absolute 0 0 1179 25" style="" anchor="left top right">
  8. <Layouts>
  9. <Layout>
  10. <Static id="caption43" class="tit_1" position="absolute 0 0 125 23" style="" text="투석자리생성" anchor="default"/>
  11. </Layout>
  12. </Layouts>
  13. </Div>
  14. <Div id="grp_biz" scrollbars="autoboth" position="absolute 0 18 1180 729" style="" anchor="all">
  15. <Layouts>
  16. <Layout>
  17. <Grid id="grd_choiposinfo" binddataset="ds_main_choiposlist_choiposinfo" position="absolute 399 92 695 256" style="" anchor="default" autofittype="col">
  18. <Formats>
  19. <Format id="default">
  20. <Columns>
  21. <Column size="137"/>
  22. <Column size="156"/>
  23. </Columns>
  24. <Rows>
  25. <Row size="24" band="head"/>
  26. <Row size="24"/>
  27. </Rows>
  28. <Band id="head">
  29. <Cell text="구역"/>
  30. <Cell col="1" text="자리수"/>
  31. </Band>
  32. <Band id="body">
  33. <Cell text="bind:section"/>
  34. <Cell col="1" displaytype="combo" edittype="combo" text="bind:poscont" combodataset="ds_init_poscont" combocodecol="value" combodatacol="label"/>
  35. </Band>
  36. </Format>
  37. </Formats>
  38. </Grid>
  39. <Shape id="roundrect5" anchor="right bottom" type="roundrectangle" position="absolute 704 662 1180 711" style="border: solid #7cbbdd #7cbbdd;background:transparent ;"/>
  40. <Grid id="grd_mngtposinfo" binddataset="ds_main_mngtposlist_mngtposinfo" position="absolute 704 92 1180 656" style="align:center ;" oncellclick="grp_biz_grd_mngtposinfo_oncellclick" anchor="all" selecttype="cell" autofittype="col">
  41. <Formats>
  42. <Format id="default">
  43. <Columns>
  44. <Column size="0"/>
  45. <Column size="96"/>
  46. <Column size="0"/>
  47. <Column size="94"/>
  48. <Column size="0"/>
  49. <Column size="95"/>
  50. <Column size="0"/>
  51. <Column size="95"/>
  52. <Column size="0"/>
  53. <Column size="94"/>
  54. <Column size="0"/>
  55. <Column size="0"/>
  56. <Column size="0"/>
  57. </Columns>
  58. <Rows>
  59. <Row size="24" band="head"/>
  60. <Row size="24"/>
  61. </Rows>
  62. <Band id="head">
  63. <Cell text="status"/>
  64. <Cell col="1" text="A"/>
  65. <Cell col="2" text="dialkindcd1"/>
  66. <Cell col="3" text="B"/>
  67. <Cell col="4" text="dialkindcd2"/>
  68. <Cell col="5" text="C"/>
  69. <Cell col="6" text="dialkindcd3"/>
  70. <Cell col="7" text="D"/>
  71. <Cell col="8" text="dialkindcd4"/>
  72. <Cell col="9" text="E"/>
  73. <Cell col="10" text="dialkindcd5"/>
  74. <Cell col="11" text="적용일자"/>
  75. <Cell col="12" text="dialtodt"/>
  76. <Cell col="13" text="instcd"/>
  77. </Band>
  78. <Band id="body">
  79. <Cell text="bind:status"/>
  80. <Cell col="1" style="background:EXPR(getColumn(currow, 'dialkindcd_1') == '1' ? '#fcd2c1' : (getColumn(currow, 'dialkindcd_1') == '2' ? '#00ccff' : ( getColumn(currow, 'dialkindcd_1') == '3' ? '#fec34d' : ( getColumn(currow, 'dialkindcd_1') == '4' ? '#ff0000' : ( getColumn(currow, 'dialkindcd_1') == '5' ? '#fef392' : ( getColumn(currow, 'dialkindcd_1') == '6' ? '#ccecff' : 'white'))))));background2:EXPR(getColumn(currow, 'dialkindcd_1') == '1' ? '#fcd2c1' : (getColumn(currow, 'dialkindcd_1') == '2' ? '#00ccff' : ( getColumn(currow, 'dialkindcd_1') == '3' ? '#fec34d' : ( getColumn(currow, 'dialkindcd_1') == '4' ? '#ff0000' : ( getColumn(currow, 'dialkindcd_1') == '5' ? '#fef392' : ( getColumn(currow, 'dialkindcd_1') == '6' ? '#ccecff' : 'white'))))));" text="bind:dialseatflag_1"/>
  81. <Cell col="2" text="bind:dialkindcd_1"/>
  82. <Cell col="3" style="background:EXPR(getColumn(currow, 'dialkindcd_2') == '1' ? '#fcd2c1' : (getColumn(currow, 'dialkindcd_2') == '2' ? '#00ccff' : ( getColumn(currow, 'dialkindcd_2') == '3' ? '#fec34d' : ( getColumn(currow, 'dialkindcd_2') == '4' ? '#ff0000' : ( getColumn(currow, 'dialkindcd_2') == '5' ? '#fef392' : ( getColumn(currow, 'dialkindcd_2') == '6' ? '#ccecff' : 'white'))))));background2:EXPR(getColumn(currow, 'dialkindcd_2') == '1' ? '#fcd2c1' : (getColumn(currow, 'dialkindcd_2') == '2' ? '#00ccff' : ( getColumn(currow, 'dialkindcd_2') == '3' ? '#fec34d' : ( getColumn(currow, 'dialkindcd_2') == '4' ? '#ff0000' : ( getColumn(currow, 'dialkindcd_2') == '5' ? '#fef392' : ( getColumn(currow, 'dialkindcd_2') == '6' ? '#ccecff' : 'white'))))));" text="bind:dialseatflag_2"/>
  83. <Cell col="4" text="bind:dialkindcd_2"/>
  84. <Cell col="5" style="background:EXPR(getColumn(currow, 'dialkindcd_3') == '1' ? '#fcd2c1' : (getColumn(currow, 'dialkindcd_3') == '2' ? '#00ccff' : ( getColumn(currow, 'dialkindcd_3') == '3' ? '#fec34d' : ( getColumn(currow, 'dialkindcd_3') == '4' ? '#ff0000' : ( getColumn(currow, 'dialkindcd_3') == '5' ? '#fef392' : ( getColumn(currow, 'dialkindcd_3') == '6' ? '#ccecff' : 'white'))))));background2:EXPR(getColumn(currow, 'dialkindcd_3') == '1' ? '#fcd2c1' : (getColumn(currow, 'dialkindcd_3') == '2' ? '#00ccff' : ( getColumn(currow, 'dialkindcd_3') == '3' ? '#fec34d' : ( getColumn(currow, 'dialkindcd_3') == '4' ? '#ff0000' : ( getColumn(currow, 'dialkindcd_3') == '5' ? '#fef392' : ( getColumn(currow, 'dialkindcd_3') == '6' ? '#ccecff' : 'white'))))));" text="bind:dialseatflag_3"/>
  85. <Cell col="6" text="bind:dialkindcd_3"/>
  86. <Cell col="7" style="background:EXPR(getColumn(currow, 'dialkindcd_4') == '1' ? '#fcd2c1' : (getColumn(currow, 'dialkindcd_4') == '2' ? '#00ccff' : ( getColumn(currow, 'dialkindcd_4') == '3' ? '#fec34d' : ( getColumn(currow, 'dialkindcd_4') == '4' ? '#ff0000' : ( getColumn(currow, 'dialkindcd_4') == '5' ? '#fef392' : ( getColumn(currow, 'dialkindcd_4') == '6' ? '#ccecff' : 'white'))))));background2:EXPR(getColumn(currow, 'dialkindcd_4') == '1' ? '#fcd2c1' : (getColumn(currow, 'dialkindcd_4') == '2' ? '#00ccff' : ( getColumn(currow, 'dialkindcd_4') == '3' ? '#fec34d' : ( getColumn(currow, 'dialkindcd_4') == '4' ? '#ff0000' : ( getColumn(currow, 'dialkindcd_4') == '5' ? '#fef392' : ( getColumn(currow, 'dialkindcd_4') == '6' ? '#ccecff' : 'white'))))));" text="bind:dialseatflag_4"/>
  87. <Cell col="8" text="bind:dialkindcd_4"/>
  88. <Cell col="9" style="background:EXPR(getColumn(currow, 'dialkindcd_5') == '1' ? '#fcd2c1' : (getColumn(currow, 'dialkindcd_5') == '2' ? '#00ccff' : ( getColumn(currow, 'dialkindcd_5') == '3' ? '#fec34d' : ( getColumn(currow, 'dialkindcd_5') == '4' ? '#ff0000' : ( getColumn(currow, 'dialkindcd_5') == '5' ? '#fef392' : ( getColumn(currow, 'dialkindcd_5') == '6' ? '#ccecff' : 'white'))))));background2:EXPR(getColumn(currow, 'dialkindcd_5') == '1' ? '#fcd2c1' : (getColumn(currow, 'dialkindcd_5') == '2' ? '#00ccff' : ( getColumn(currow, 'dialkindcd_5') == '3' ? '#fec34d' : ( getColumn(currow, 'dialkindcd_5') == '4' ? '#ff0000' : ( getColumn(currow, 'dialkindcd_5') == '5' ? '#fef392' : ( getColumn(currow, 'dialkindcd_5') == '6' ? '#ccecff' : 'white'))))));" text="bind:dialseatflag_5"/>
  89. <Cell col="10" text="bind:dialkindcd_5"/>
  90. <Cell col="11" text="bind:appdd"/>
  91. <Cell col="12" text="bind:dialtodt"/>
  92. </Band>
  93. </Format>
  94. </Formats>
  95. </Grid>
  96. <Button id="button18" class="btn2" position="absolute 597 67 639 87" style="" text="생성" onclick="grp_biz_button18_onclick" anchor="default"/>
  97. <Shape id="roundrect6" anchor="right bottom" visible="false" type="roundrectangle" position="absolute 720 671 798 701" style="border: solid #7cbbdd #7cbbdd;background:transparent ;"/>
  98. <Shape id="line22" class="line_1" linetype="horizontal" position="absolute 399 88 695 92" style="strokepen:3 solid #33bbbbff;" anchor="default"/>
  99. <Shape id="roundrect10" anchor="right bottom" visible="false" type="roundrectangle" position="absolute 1027 671 1095 701" style="border: solid #7cbbdd #7cbbdd;background:transparent ;"/>
  100. <Shape id="roundrect7" anchor="right bottom" visible="false" type="roundrectangle" position="absolute 802 671 880 701" style="border: solid #7cbbdd #7cbbdd;background:transparent ;"/>
  101. <Static id="caption42" class="color_2" position="absolute 1071 678 1086 693" style="align: middle;" anchor="right bottom"/>
  102. <Shape id="line23" class="line_1" linetype="horizontal" position="absolute 704 88 1180 92" style="strokepen:3 solid #33bbbbff;" anchor="left top right"/>
  103. <Static id="caption31" class="tit_2" position="absolute 400 70 536 86" style="align: middle;" text="구역별 자리수 선택" anchor="default"/>
  104. <Shape id="roundrect11" anchor="right bottom" visible="false" type="roundrectangle" position="absolute 1097 671 1165 701" style="border: solid #7cbbdd #7cbbdd;background:transparent ;"/>
  105. <Shape id="roundrect8" anchor="right bottom" visible="false" type="roundrectangle" position="absolute 884 671 962 701" style="border: solid #7cbbdd #7cbbdd;background:transparent ;"/>
  106. <Static id="caption54" position="absolute 1106 678 1134 694" style="font:,,bold;align: middle;" text="기타" onclick="grp_biz_caption54_onclick" anchor="right bottom"/>
  107. <Static id="caption32" position="absolute 1032 679 1070 692" style="font:,,bold;align: middle;" text="VDRL" onclick="grp_biz_caption32_onclick" anchor="right bottom"/>
  108. <Shape id="line24" class="line_1" linetype="horizontal" position="absolute 0 26 393 30" style="strokepen:3 solid #33bbbbff;" anchor="default"/>
  109. <Shape id="roundrect9" anchor="right bottom" visible="false" type="roundrectangle" position="absolute 965 671 1023 701" style="border: solid #7cbbdd #7cbbdd;background:transparent ;"/>
  110. <Static id="caption33" position="absolute 724 677 773 695" style="font:,,bold;align: middle;" text="HBsAg" onclick="grp_biz_caption33_onclick" anchor="right bottom"/>
  111. <Static id="caption56" class="color_5" position="absolute 1141 679 1156 694" style="align: middle;" anchor="right bottom"/>
  112. <Static id="caption34" position="absolute 807 679 852 693" style="font:,,bold;align: middle;" text="HBeAg" onclick="grp_biz_caption34_onclick" anchor="right bottom"/>
  113. <Grid id="grd_historyinfo" binddataset="ds_main_historylist_historyinfo" position="absolute 0 30 393 711" style="" oncellclick="grp_biz_grd_historyinfo_oncellclick" anchor="left top bottom" selecttype="multirow" autofittype="col">
  114. <Formats>
  115. <Format id="default">
  116. <Columns>
  117. <Column size="24"/>
  118. <Column size="123"/>
  119. <Column size="127"/>
  120. <Column size="91"/>
  121. </Columns>
  122. <Rows>
  123. <Row size="24" band="head"/>
  124. <Row size="24"/>
  125. </Rows>
  126. <Band id="head">
  127. <Cell/>
  128. <Cell col="1" text="적용일자"/>
  129. <Cell col="2" text="생성일시"/>
  130. <Cell col="3" text="저장자"/>
  131. </Band>
  132. <Band id="body">
  133. <Cell style="background:#b2e6e1ff;background2:#b2e6e1ff;" expr="currow + 1"/>
  134. <Cell col="1" displaytype="date" text="bind:appdd" mask="yyyy-MM-dd" calendardisplaynulltype="nulltext"/>
  135. <Cell col="2" displaytype="date" text="bind:lastupdtdt" mask="yyyy-MM-dd HH:mm" calendardisplaynulltype="nulltext"/>
  136. <Cell col="3" text="bind:usernm"/>
  137. </Band>
  138. </Format>
  139. </Formats>
  140. </Grid>
  141. <Div id="group4" position="absolute 398 26 1180 61" style="align: top;" anchor="left top right" class="div_SA2">
  142. <Layouts>
  143. <Layout>
  144. <Static id="caption29" class="search_name" position="absolute 16 9 102 26" style="" text="생성일자 :" anchor="default"/>
  145. <Button id="button17" class="btn1" position="absolute 598 8 654 28" style="" text="조회" onclick="grp_biz_group4_button17_onclick" anchor="default"/>
  146. <Shape id="line21" class="line_4" linetype="vertical" position="absolute 583 8 586 28" style="" anchor="default"/>
  147. <Calendar id="ipt_cretdd" class="input_search" position="absolute 105 8 195 27" style="" anchor="default" dateformat="yyyy-MM-dd" value="null" autoselect="true"/>
  148. <Calendar id="ipt_appdd" class="input_s_essential" position="absolute 345 8 440 27" style="" anchor="default" onkillfocus="grp_biz_group4_ipt_appdd_onkillfocus" dateformat="yyyy-MM-dd" value="null" autoselect="true"/>
  149. <Static id="caption30" class="search_name" position="absolute 256 9 342 26" style="" text="적용일자 :" anchor="default"/>
  150. <Button id="button19" class="btn5" position="absolute 716 8 772 28" style="" text="저장" onclick="grp_biz_group4_button19_onclick" anchor="default"/>
  151. <Button id="button1" class="btn4" position="absolute 657 8 713 28" style="" text="삭제" onclick="grp_biz_group4_button1_onclick" anchor="default"/>
  152. </Layout>
  153. </Layouts>
  154. </Div>
  155. <Static id="caption35" position="absolute 891 678 940 694" style="font:,,bold;align: middle;" text="HCVAb" onclick="grp_biz_caption35_onclick" anchor="right bottom"/>
  156. <Button id="button20" class="btn2" position="absolute 642 67 695 87" style="" text="초기화" onclick="grp_biz_button20_onclick" anchor="default"/>
  157. <Static id="caption37" class="color_10" position="absolute 855 678 870 693" style="align: middle;" anchor="right bottom"/>
  158. <Static id="caption48" class="color_7" position="absolute 943 678 958 693" style="align: middle;" anchor="right bottom"/>
  159. <Static id="caption38" class="tit_2" position="absolute 704 70 814 86" style="align: middle;" text="투석자리 관리" anchor="default"/>
  160. <Static id="caption49" class="color_1" position="absolute 775 678 790 693" style="align: middle;" anchor="right bottom"/>
  161. <Static id="caption39" class="tit_2" position="absolute 0 8 71 24" style="align: middle;" text="History" anchor="default"/>
  162. <Edit id="opt_histappdd" class="output_fix" position="absolute 555 270 623 289" style="align:center ;" anchor="default" readonly="true" visible="false"/>
  163. <Edit id="opt_rsrvdd" class="output_fix" position="absolute 555 295 623 314" style="align:center ;" anchor="default" readonly="true" visible="false"/>
  164. <Static id="caption36" position="absolute 970 678 999 692" style="font:,,bold;align: middle;" text="HIV" onclick="grp_biz_caption36_onclick" anchor="right bottom"/>
  165. <Static id="caption52" position="absolute 999 678 1014 693" style="align: middle;background:#ff0000 ;" anchor="right bottom"/>
  166. </Layout>
  167. </Layouts>
  168. </Div>
  169. </Layout>
  170. </Layouts>
  171. <Objects>
  172. <Dataset id="ds_main_mngtposlist_mngtposinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  173. <ColumnInfo>
  174. <Column id="status" type="STRING" size="256"/>
  175. <Column id="dialseatflag_1" type="STRING" size="256"/>
  176. <Column id="dialkindcd_1" type="STRING" size="256"/>
  177. <Column id="dialseatflag_2" type="STRING" size="256"/>
  178. <Column id="dialkindcd_2" type="STRING" size="256"/>
  179. <Column id="dialseatflag_3" type="STRING" size="256"/>
  180. <Column id="dialkindcd_3" type="STRING" size="256"/>
  181. <Column id="dialseatflag_4" type="STRING" size="256"/>
  182. <Column id="dialkindcd_4" type="STRING" size="256"/>
  183. <Column id="dialseatflag_5" type="STRING" size="256"/>
  184. <Column id="dialkindcd_5" type="STRING" size="256"/>
  185. <Column id="appdd" type="STRING" size="256"/>
  186. <Column id="dialtodt" type="STRING" size="256"/>
  187. </ColumnInfo>
  188. <Rows>
  189. <Row>
  190. <Col id="status"/>
  191. <Col id="dialseatflag_1"/>
  192. <Col id="dialkindcd_1"/>
  193. <Col id="dialseatflag_2"/>
  194. <Col id="dialkindcd_2"/>
  195. <Col id="dialseatflag_3"/>
  196. <Col id="dialkindcd_3"/>
  197. <Col id="dialseatflag_4"/>
  198. <Col id="dialkindcd_4"/>
  199. <Col id="dialseatflag_5"/>
  200. <Col id="dialkindcd_5"/>
  201. <Col id="appdd"/>
  202. <Col id="dialtodt"/>
  203. </Row>
  204. </Rows>
  205. </Dataset>
  206. <Dataset id="ds_main_chklist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  207. <ColumnInfo/>
  208. </Dataset>
  209. <Dataset id="ds_main_choiposlist_choiposinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  210. <ColumnInfo>
  211. <Column id="section" type="STRING" size="256"/>
  212. <Column id="poscont" type="STRING" size="256"/>
  213. <Column id="section" type="STRING" size="256"/>
  214. <Column id="poscont" type="STRING" size="256"/>
  215. <Column id="section" type="STRING" size="256"/>
  216. <Column id="poscont" type="STRING" size="256"/>
  217. <Column id="section" type="STRING" size="256"/>
  218. <Column id="poscont" type="STRING" size="256"/>
  219. <Column id="section" type="STRING" size="256"/>
  220. <Column id="poscont" type="STRING" size="256"/>
  221. </ColumnInfo>
  222. <Rows>
  223. <Row>
  224. <Col id="section">A</Col>
  225. <Col id="poscont"/>
  226. </Row>
  227. <Row>
  228. <Col id="section">B</Col>
  229. <Col id="poscont"/>
  230. </Row>
  231. <Row>
  232. <Col id="section">C</Col>
  233. <Col id="poscont"/>
  234. </Row>
  235. <Row>
  236. <Col id="section">D</Col>
  237. <Col id="poscont"/>
  238. </Row>
  239. <Row>
  240. <Col id="section">E</Col>
  241. <Col id="poscont"/>
  242. </Row>
  243. </Rows>
  244. </Dataset>
  245. <Dataset id="ds_main_mngtposlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  246. <ColumnInfo/>
  247. </Dataset>
  248. <Dataset id="ds_main_choiposlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  249. <ColumnInfo/>
  250. </Dataset>
  251. <Dataset id="ds_main" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  252. <ColumnInfo>
  253. <Column id="cretdd" type="STRING" size="256"/>
  254. <Column id="histappdd" type="STRING" size="256"/>
  255. </ColumnInfo>
  256. </Dataset>
  257. <Dataset id="ds_init" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  258. <ColumnInfo>
  259. <Column id="init" type="STRING" size="256"/>
  260. </ColumnInfo>
  261. <Rows>
  262. <Row>
  263. <Col id="init"/>
  264. </Row>
  265. </Rows>
  266. </Dataset>
  267. <Dataset id="ds_main_historylist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  268. <ColumnInfo/>
  269. </Dataset>
  270. <Dataset id="ds_main_historylist_historyinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  271. <ColumnInfo>
  272. <Column id="appdd" type="STRING" size="256"/>
  273. <Column id="lastupdtdt" type="STRING" size="256"/>
  274. <Column id="usernm" type="STRING" size="256"/>
  275. </ColumnInfo>
  276. <Rows>
  277. <Row>
  278. <Col id="appdd"/>
  279. <Col id="lastupdtdt"/>
  280. <Col id="usernm"/>
  281. </Row>
  282. </Rows>
  283. </Dataset>
  284. <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  285. <ColumnInfo>
  286. <Column id="reqdata" type="STRING" size="256"/>
  287. <Column id="savedata" type="STRING" size="256"/>
  288. </ColumnInfo>
  289. <Rows>
  290. <Row>
  291. <Col id="reqdata"/>
  292. <Col id="savedata"/>
  293. </Row>
  294. </Rows>
  295. </Dataset>
  296. <Dataset id="ds_main_chklist_chkinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  297. <ColumnInfo>
  298. <Column id="rsrvdd" type="STRING" size="256"/>
  299. </ColumnInfo>
  300. <Rows>
  301. <Row>
  302. <Col id="rsrvdd"/>
  303. </Row>
  304. </Rows>
  305. </Dataset>
  306. <Dataset id="ds_main_condition" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  307. <ColumnInfo>
  308. <Column id="appdd" type="STRING" size="256"/>
  309. </ColumnInfo>
  310. <Rows>
  311. <Row>
  312. <Col id="appdd"/>
  313. </Row>
  314. </Rows>
  315. </Dataset>
  316. <Dataset id="ds_hidden" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  317. <ColumnInfo>
  318. <Column id="hidden" type="STRING" size="256"/>
  319. </ColumnInfo>
  320. <Rows>
  321. <Row>
  322. <Col id="hidden"/>
  323. </Row>
  324. </Rows>
  325. </Dataset>
  326. <Dataset id="ds_temp" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  327. <ColumnInfo>
  328. <Column id="temp" type="STRING" size="256"/>
  329. </ColumnInfo>
  330. </Dataset>
  331. <Dataset id="ds_send_savedata" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  332. <Dataset id="ds_send_reqdata" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  333. <Dataset id="ds_init_poscont" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  334. <ColumnInfo>
  335. <Column id="label" type="STRING" size="256"/>
  336. <Column id="value" type="STRING" size="256"/>
  337. </ColumnInfo>
  338. <Rows>
  339. <Row>
  340. <Col id="label">-</Col>
  341. <Col id="value">0</Col>
  342. </Row>
  343. <Row>
  344. <Col id="label">1</Col>
  345. <Col id="value">1</Col>
  346. </Row>
  347. <Row>
  348. <Col id="label">2</Col>
  349. <Col id="value">2</Col>
  350. </Row>
  351. <Row>
  352. <Col id="label">3</Col>
  353. <Col id="value">3</Col>
  354. </Row>
  355. <Row>
  356. <Col id="label">4</Col>
  357. <Col id="value">4</Col>
  358. </Row>
  359. <Row>
  360. <Col id="label">5</Col>
  361. <Col id="value">5</Col>
  362. </Row>
  363. <Row>
  364. <Col id="label">6</Col>
  365. <Col id="value">6</Col>
  366. </Row>
  367. <Row>
  368. <Col id="label">7</Col>
  369. <Col id="value">7</Col>
  370. </Row>
  371. <Row>
  372. <Col id="label">8</Col>
  373. <Col id="value">8</Col>
  374. </Row>
  375. <Row>
  376. <Col id="label">9</Col>
  377. <Col id="value">9</Col>
  378. </Row>
  379. <Row>
  380. <Col id="label">10</Col>
  381. <Col id="value">10</Col>
  382. </Row>
  383. <Row>
  384. <Col id="label">11</Col>
  385. <Col id="value">11</Col>
  386. </Row>
  387. <Row>
  388. <Col id="label">12</Col>
  389. <Col id="value">12</Col>
  390. </Row>
  391. <Row>
  392. <Col id="label">13</Col>
  393. <Col id="value">13</Col>
  394. </Row>
  395. <Row>
  396. <Col id="label">14</Col>
  397. <Col id="value">14</Col>
  398. </Row>
  399. <Row>
  400. <Col id="label">15</Col>
  401. <Col id="value">15</Col>
  402. </Row>
  403. <Row>
  404. <Col id="label">16</Col>
  405. <Col id="value">16</Col>
  406. </Row>
  407. <Row>
  408. <Col id="label">17</Col>
  409. <Col id="value">17</Col>
  410. </Row>
  411. <Row>
  412. <Col id="label">18</Col>
  413. <Col id="value">18</Col>
  414. </Row>
  415. <Row>
  416. <Col id="label">19</Col>
  417. <Col id="value">19</Col>
  418. </Row>
  419. <Row>
  420. <Col id="label">20</Col>
  421. <Col id="value">20</Col>
  422. </Row>
  423. </Rows>
  424. </Dataset>
  425. </Objects>
  426. <Bind>
  427. <BindItem id="item0" compid="grp_biz.group4.ipt_cretdd" propid="value" datasetid="ds_main" columnid="cretdd"/>
  428. <BindItem id="item1" compid="grp_biz.group4.ipt_appdd" propid="value" datasetid="ds_main_condition" columnid="appdd"/>
  429. <BindItem id="item2" compid="grp_biz.opt_histappdd" propid="value" datasetid="ds_main" columnid="histappdd"/>
  430. <BindItem id="item3" compid="grp_biz.opt_rsrvdd" propid="value" datasetid="ds_main_chklist_chkinfo" columnid="rsrvdd"/>
  431. </Bind>
  432. <Script type="xscript4.0"><![CDATA[include 'com_commonxp::comm_main.xjs';
  433. //include 'emr_dialroomxp::SMMND01800.xjs';
  434. include 'emr_carecomxp::CareCom.xjs';
  435. function SMMND01800_onload(obj:Form, e:LoadEventInfo) {
  436. frmf_initForm(obj);
  437. grdf_initGrid(grp_biz.grd_choiposinfo);
  438. grdf_initGrid(grp_biz.grd_historyinfo);
  439. grdf_initGrid(grp_biz.grd_mngtposinfo);
  440. //grdf_setGridSort(grd_XXX);
  441. //grdf_setRowTypeIcon(grd_XXX, 0_컬럼위치값);
  442. //그리드 초기화
  443. ds_main_historylist_historyinfo.clearData();
  444. ds_main_mngtposlist_mngtposinfo.clearData();
  445. ds_main.clearData();
  446. ds_main.addRow();
  447. //setHelp(); // 온라인 도움말 화면이 있는 경우 ready 에서 실행.
  448. fDone();
  449. fSelectHistory();
  450. fEtc();
  451. }
  452. // header파일 중 SMMND01800.js 파일 시작
  453. /*
  454. 투석자리생성 (SMMND01800.xrw - JScript )
  455. - Version :
  456. 1) : Ver.1.00.01
  457. */
  458. var selColor = "white";
  459. var selColor_Num = 0;
  460. var s1 = "";
  461. var crtChk = 'N';
  462. /**
  463. * _group :
  464. * _ver : 2007.04.04
  465. * _by : 김진아
  466. * _---------------------------------------------------
  467. * _type : function
  468. * _access : public
  469. * _desc : 전체 화면 초기화
  470. * _param :
  471. * _return :
  472. * _---------------------------------------------------
  473. */
  474. function fDone(){
  475. // 생성일자, 적용일자 초기화
  476. var sDate = utlf_getCurrentDate();
  477. var currentdate = new Date();
  478. ds_main.setColumn( 0, "cretdd" , sDate );
  479. dsf_makeValue( ds_main_condition, "appdd", "string", (currentdate.getAddDate(1, "D")).getDateFormat());
  480. //grd_choiposinfo 초기화
  481. for(i = 0; i < ds_main_choiposlist_choiposinfo.rowcount;i++){
  482. ds_main_choiposlist_choiposinfo.setColumn(i, "poscont", 0); // grp_biz.grd_choiposinfo.textMatrix(i,1) = 0;
  483. }
  484. //model.refresh();
  485. }
  486. /**
  487. * _group :
  488. * _ver : 2007.06.27
  489. * _by : 김진아
  490. * _---------------------------------------------------
  491. * _type : function
  492. * _access : public
  493. * _desc : 적용일자 체크 (오늘 이전 적용일자 설정 금지)
  494. * _param :
  495. * _return :
  496. * _---------------------------------------------------
  497. */
  498. function fChkAppdd(){
  499. var sSelDate = ds_main_condition.getColumn(0, "appdd");
  500. var currentdate = new Date();
  501. if(sSelDate <= utlf_getCurrentDate()) {
  502. sysf_messageBox("적용일자를 오늘 이전으로 설정", "E001", "적용일자를 다시 입력하세요.");
  503. ds_main_condition.setColumn( 0, "appdd", (currentdate.getAddDate(1, "D")).getDateFormat());
  504. return;
  505. }
  506. fChkRsrvPat(); // 적용일자에 예약환자 존재 여부 확인
  507. var rsrvdd = utlf_transNullToEmpty(ds_main_chklist_chkinfo.getColumn(0, "rsrvdd"));
  508. trace("rsrvdd : " + rsrvdd);
  509. if(rsrvdd != "") { // 해당 적용일자에 예약환자 있음.
  510. //sysf_messageBox("적용일자에 예약환자가 존재합니다.", "E");
  511. var sMsg = sysf_messageBox("적용일자에 예약환자가 존재합니다.", "S", "HD Scheduling화면으로 이동하시겠습니까?");
  512. if( sMsg == 6) { //return : yes=6, no=7, 취소=2
  513. frmf_modal("SMMND01100", "SMMND01100", "", "", "", "1", "1", "", "", "", "", "", "M");
  514. }
  515. else {
  516. fPosinfoinit();
  517. return;
  518. }
  519. }
  520. }
  521. /**
  522. * _group :
  523. * _ver : 2007.07.07
  524. * _by : 김진아
  525. * _---------------------------------------------------
  526. * _type : function
  527. * _access : public
  528. * _desc : 적용일자에 예확환자 존재 여부 확인
  529. * _param :
  530. * _return :
  531. * _---------------------------------------------------
  532. */
  533. function fChkRsrvPat(){
  534. ds_send_reqdata.clearData();
  535. dsf_makeValue( ds_send_reqdata, "appdd", "string", ds_main_condition.getColumn(0, "appdd"));
  536. ds_main_chklist_chkinfo.clearData();
  537. //submit("TRMND01803");
  538. var oParam = {};
  539. oParam.id = "TRMND01803";
  540. oParam.service = "dialapp.DialPatMngt";
  541. oParam.method = "getAppdd";
  542. oParam.inds = "req=ds_send_reqdata";
  543. oParam.outds = "ds_main_chklist_chkinfo=chkinfo";
  544. oParam.async = false;
  545. tranf_submit(oParam);
  546. }
  547. /**
  548. * _group :
  549. * _ver : 2007.04.11
  550. * _by : 김진아
  551. * _---------------------------------------------------
  552. * _type : function
  553. * _access : public
  554. * _desc : grd_historyinfo 조회
  555. * _param :
  556. * _return :
  557. * _---------------------------------------------------
  558. */
  559. function fSelectHistory(){
  560. // submit("TRMND01802");
  561. var instcd = sysf_getUserInfo("dutplceinstcd");
  562. dsf_makeValue(ds_send, "instcd", "string", instcd );
  563. var oParam = {};
  564. oParam.id = "TRMND01802";
  565. oParam.service = "dialapp.DialPatMngt";
  566. oParam.method = "reqGetHistInfo";
  567. oParam.inds = "req=ds_send";
  568. oParam.outds = "ds_main_historylist_historyinfo=historyinfo";
  569. oParam.async = false;
  570. tranf_submit(oParam);
  571. }
  572. /**
  573. * _group :
  574. * _ver : 2007.04.04
  575. * _by : 김진아
  576. * _---------------------------------------------------
  577. * _type : function
  578. * _access : public
  579. * _desc : grd_mngtposinfo 생성
  580. * _param :
  581. * _return :
  582. * _---------------------------------------------------
  583. */
  584. function fCreatePos(){
  585. var sPosValue_1 = ds_main_choiposlist_choiposinfo.getColumn(1, "poscont");
  586. var sPosValue_2 = ds_main_choiposlist_choiposinfo.getColumn(2, "poscont");
  587. var sPosValue_3 = ds_main_choiposlist_choiposinfo.getColumn(3, "poscont");
  588. var sPosValue_4 = ds_main_choiposlist_choiposinfo.getColumn(4, "poscont");
  589. var sPosValue_5 = ds_main_choiposlist_choiposinfo.getColumn(5, "poscont");
  590. if(sPosValue_1 == "0" && sPosValue_2 == "0" && sPosValue_3 =="0" && sPosValue_4 =="0" && sPosValue_5 =="0") {
  591. sysf_messageBox("구역별 자리수는", "I003", "하나이상의 자리수를 선택하십시오.");
  592. return;
  593. }
  594. if(ds_main_condition.getColumn(0, "appdd") == ""){
  595. var msg = sysf_messageBox("적용일자를", "C001", ""); //return : yes=6, no=7
  596. }
  597. else{
  598. //grd_mngtposinfo 초기화
  599. ds_main_mngtposlist_mngtposinfo.clearData();
  600. //grp_biz.grd_mngtposinfo.rebuild();
  601. // 가장 많은 자리수(max) 구하기
  602. var i, j, section, max=0;
  603. for(i = 0; i < ds_main_choiposlist_choiposinfo.rowcount; i++){
  604. if(max < parseInt(ds_main_choiposlist_choiposinfo.getColumn(i, "poscont"))){ //'1'
  605. max = parseInt(ds_main_choiposlist_choiposinfo.getColumn(i, "poscont"));
  606. }
  607. }
  608. // grd_mngtposinfo 그리기
  609. ds_main_mngtposlist_mngtposinfo.updatecontrol = false;
  610. ds_main_mngtposlist_mngtposinfo.enableevent = false;
  611. for(i=0; i < max; i++){
  612. ds_main_mngtposlist_mngtposinfo.addRow(); //grp_biz.grd_mngtposinfo.addRow(false);
  613. }
  614. ds_main_mngtposlist_mngtposinfo.updatecontrol = true;
  615. ds_main_mngtposlist_mngtposinfo.enableevent = true;
  616. //grp_biz.grd_mngtposinfo.refresh();
  617. //grd_mngtposinfo data넣기
  618. for(i = 0; i < parseInt( ds_main_choiposlist_choiposinfo.getColumn(0, "poscont") ); i++){ //grp_biz.grd_choiposinfo.textmatrix(1,1)
  619. if(i < 10){
  620. i = "0" + i;
  621. }
  622. //grp_biz.grd_mngtposinfo.textmatrix(i,1) = "A"+i;
  623. ds_main_mngtposlist_mngtposinfo.setColumn(i, "seq", i);
  624. ds_main_mngtposlist_mngtposinfo.setColumn(i, "dialseatflag_1", "A"+i);
  625. ds_main_mngtposlist_mngtposinfo.setColumn(i, "dialseatflag_2", "B"+i);
  626. ds_main_mngtposlist_mngtposinfo.setColumn(i, "dialseatflag_3", "C"+i);
  627. ds_main_mngtposlist_mngtposinfo.setColumn(i, "dialseatflag_4", "D"+i);
  628. ds_main_mngtposlist_mngtposinfo.setColumn(i, "dialseatflag_5", "E"+i);
  629. ds_main_mngtposlist_mngtposinfo.setColumn(i, "appdd", ds_main_condition.getColumn(0, "appdd"));
  630. ds_main_mngtposlist_mngtposinfo.setColumn(i, "status", "i");
  631. }
  632. // for(i = 0; i < parseInt(ds_main_choiposlist_choiposinfo.getColumn(1, "poscont")); i++){ //grp_biz.grd_choiposinfo.textmatrix(2,1)
  633. // if(i<10){
  634. // i = "0" + i;
  635. // }
  636. // //grp_biz.grd_mngtposinfo.textmatrix(i,3) = "B"+i;
  637. // ds_main_mngtposlist_mngtposinfo.setColumn(i, "dialseatflag_2", "B"+i);
  638. // }
  639. // for(i = 0; i < parseInt(ds_main_choiposlist_choiposinfo.getColumn(2, "poscont")); i++){ //grp_biz.grd_choiposinfo.textmatrix(3,1)
  640. // if(i<10){
  641. // i = "0" + i;
  642. // }
  643. // //grp_biz.grd_mngtposinfo.textmatrix(i,5) = "C"+i;
  644. // ds_main_mngtposlist_mngtposinfo.setColumn(i, "dialseatflag_3", "C"+i);
  645. // }
  646. // for(i = 0; i < parseInt(ds_main_choiposlist_choiposinfo.getColumn(3, "poscont")); i++){ //grp_biz.grd_choiposinfo.textmatrix(4,1)/
  647. // if(i<10){
  648. // i = "0" + i;
  649. // }
  650. // //grp_biz.grd_mngtposinfo.textmatrix(i,7) = "D"+i;
  651. // ds_main_mngtposlist_mngtposinfo.setColumn(i, "dialseatflag_4", "D"+i);
  652. // }
  653. // for(i = 0; i < parseInt(ds_main_choiposlist_choiposinfo.getColumn(4, "poscont")); i++){ //grp_biz.grd_choiposinfo.textmatrix(5,1)
  654. // if(i<10){
  655. // i = "0" + i;
  656. // }
  657. // //grp_biz.grd_mngtposinfo.textmatrix(i,9) = "E"+i;
  658. // ds_main_mngtposlist_mngtposinfo.setColumn(i, "dialseatflag_5", "E"+i);
  659. // }
  660. // for(i = 0; i < ds_main_mngtposlist_mngtposinfo.rowcount ; i++){ //적용일자 지정 //grp_biz.grd_mngtposinfo.rows
  661. // ds_main_mngtposlist_mngtposinfo.setColumn(i, "appdd", ds_main_condition.getColumn(0, "appdd")); ////grp_biz.grd_mngtposinfo.textmatrix(i,11) = ds_main_condition.getColumn(0, "appdd");
  662. // }
  663. // for(i = 0; i < ds_main_mngtposlist_mngtposinfo.rowcount ; i++){ //state(insert) 지정
  664. // ds_main_mngtposlist_mngtposinfo.setColumn(i, "status", "i"); //grp_biz.grd_mngtposinfo.textmatrix(i,0) = "i";
  665. // }
  666. var chkFlag = "";
  667. for(var i = 0; i < ds_main_choiposlist_choiposinfo.rowcount; i++) {
  668. var sHistAppdd = ds_main_historylist_historyinfo.getColumn(i, "appdd");
  669. if(sHistAppdd == ds_main_condition.getColumn(0, "appdd")) {
  670. chkFlag = "Y";
  671. break;
  672. }
  673. }
  674. if(chkFlag == "") {
  675. for(i = 0; i < ds_main_mngtposlist_mngtposinfo.rowcount; i++){ //종료일자 지정 //grp_biz.grd_mngtposinfo.rows
  676. ds_main_mngtposlist_mngtposinfo.setColumn(i, "dialtodt", "99991231") ; // grp_biz.grd_mngtposinfo.textmatrix(i,12) =
  677. }
  678. } else if(chkFlag == "Y") {
  679. for(i = 0; i < ds_main_mngtposlist_mngtposinfo.rowcount;i++){ //종료일자 지정 //grp_biz.grd_mngtposinfo.rows
  680. ds_main_mngtposlist_mngtposinfo.setColumn(i, "dialtodt", ds_main.getColumn(0, "histappdd") );
  681. }
  682. }
  683. // for(i = 0; i < ds_main_mngtposlist_mngtposinfo.rowcount;i++){ //구역지정 //grp_biz.grd_mngtposinfo.rows
  684. // ds_main_mngtposlist_mngtposinfo.setColumn(i, 13, "A"); //grp_biz.grd_mngtposinfo.textmatrix(i,13) = "A";
  685. // ds_main_mngtposlist_mngtposinfo.setColumn(i, 14, "B"); //grp_biz.grd_mngtposinfo.textmatrix(i,14) = "B";
  686. // ds_main_mngtposlist_mngtposinfo.setColumn(i, 15, "C"); //grp_biz.grd_mngtposinfo.textmatrix(i,15) = "C";
  687. // ds_main_mngtposlist_mngtposinfo.setColumn(i, 16, "D"); //grp_biz.grd_mngtposinfo.textmatrix(i,16) = "D";
  688. // ds_main_mngtposlist_mngtposinfo.setColumn(i, 17, "E"); //grp_biz.grd_mngtposinfo.textmatrix(i,17) = "E";
  689. // }
  690. crtChk = 'Y';
  691. }
  692. }
  693. /**
  694. * _group :
  695. * _ver : 2007.04.04
  696. * _by : 김진아
  697. * _---------------------------------------------------
  698. * _type : function
  699. * _access : public
  700. * _desc : mngtposinfo 입력후 저장
  701. * _param :
  702. * _return :
  703. * _---------------------------------------------------
  704. */
  705. function fInsertPos(){
  706. var sAppdd = ds_main_condition.getColumn(0, "appdd");
  707. var chkFlag = "";
  708. for(var i = 0; i < ds_main_choiposlist_choiposinfo.rowcount; i++) {
  709. var sHistAppdd = ds_main_historylist_historyinfo.getColumn(i, "appdd");
  710. if(sHistAppdd == sAppdd) {
  711. chkFlag = "Y";
  712. /*
  713. var sMsg = sysf_messageBox("동일 적용일자에 투석자리가 존재합니다.", "S", "수정하시겠습니까?");
  714. if( sMsg == 7 || sMsg == 2) { //return : yes=6, no=7, 취소=2
  715. fPosinfoinit(); // 초기화
  716. return;
  717. }
  718. */
  719. sysf_messageBox("동일 적용일자에 투석자리가 존재합니다.", "E");
  720. fPosinfoinit();
  721. return;
  722. }
  723. }
  724. if(chkFlag == "") {
  725. for(var i = 0; i < ds_main_choiposlist_choiposinfo.rowcount; i++) {
  726. var sHistAppdd = ds_main_historylist_historyinfo.getColumn(i, "appdd");
  727. if(sHistAppdd > sAppdd) {
  728. sysf_messageBox("적용일자 이후에 투석자리가 존재합니다.", "E", sAppdd+"일자의 투석자리를 생성 할 수 없습니다.");
  729. fPosinfoinit(); // 초기화
  730. return;
  731. }
  732. }
  733. }
  734. if(crtChk == 'N'){
  735. var msg = sysf_messageBox("구역별 자리수를", "C001", ""); //return : yes=6, no=7
  736. }else{
  737. fChkRsrvPat(); // 적용일자에 예약환자 존재 여부 확인
  738. var rsrvdd = utlf_transNullToEmpty(ds_main_chklist_chkinfo.getColumn(0, "rsrvdd"));
  739. trace("rsrvdd 2 : " + rsrvdd);
  740. if(rsrvdd != "") { // 해당 적용일자에 예약환자 있음.
  741. var sMsg = sysf_messageBox("예약환자가 존재합니다.", "S", "HD Scheduling화면으로 이동하시겠습니까?");
  742. if( sMsg == 6) { //return : yes=6, no=7, 취소=2
  743. frmf_modal("SMMND01100", "SMMND01100", "", "", "", "1", "1", "", "", "", "", "", "M");
  744. } else {
  745. ds_main_chklist_chkinfo.setColumn( 0, "rsrvdd", "");
  746. fPosinfoinit(); // 초기화
  747. return;
  748. }
  749. } else {
  750. for(i = 0; i< ds_main_mngtposlist_mngtposinfo.rowcount;i++){ //적용일자 지정
  751. ds_main_mngtposlist_mngtposinfo.setColumn( i, "appdd", ds_main_condition.getColumn(0, "appdd") );
  752. }
  753. ds_send_savedata.clearData();
  754. //dsf_makeValue( ds_send_savedata, "savedata", "string", grp_biz.grd_mngtposinfo.getupdatedataAll("i"));
  755. dsf_copyDs(ds_send_savedata, grdf_getGridUpdateData(grp_biz.grd_mngtposinfo),"replace");
  756. //submit("TXMND01801");
  757. var oParam = {};
  758. oParam.id = "TXMND01801";
  759. oParam.service = "dialapp.DialPatMngt";
  760. oParam.method = "reqExeChoiposInfo";
  761. oParam.inds = "req=ds_send_savedata";
  762. oParam.outds = "ds_main_mngtposlist_mngtposinfo=savedata";
  763. oParam.async = false;
  764. tranf_submit(oParam);
  765. dsf_makeValue(ds_main_mngtposlist_mngtposinfo, "status", "string", "");
  766. dsf_setDefaultVal(ds_main_mngtposlist_mngtposinfo, "all");
  767. var appdd = ds_main_condition.getColumn(0, "appdd");
  768. fSelectPos(appdd);
  769. fSelectHistory();
  770. crtChk = "N";
  771. var chk = "N"; //투석자리 저장 여부 확인
  772. for( i = 0; i < ds_main_mngtposlist_mngtposinfo.rowcount ;i++){
  773. if(ds_main_historylist_historyinfo.getColumn( i, "appdd") == ds_main_condition.getColumn(0, "appdd")){
  774. chk = "Y"; //투석자리 저장 성공
  775. break;
  776. }
  777. }
  778. if(chk == "Y"){
  779. sysf_messageBox("", "I001", ""); //성공 메세지
  780. }else{
  781. //sysf_messageBox("해당 적용일자에 예약환자가 존재", "E008", ""); //에약환자 존재 메세지
  782. }
  783. }
  784. }
  785. }
  786. /**
  787. * _group :
  788. * _ver : 2007.04.04
  789. * _by : 김진아
  790. * _---------------------------------------------------
  791. * _type : function
  792. * _access : public
  793. * _desc : mngtposinfo 셀 색상지정
  794. * _param :
  795. * _return :
  796. * _---------------------------------------------------
  797. */
  798. function fInsColor(){
  799. var flag=0;
  800. var co = selColor;
  801. var co_Num = selColor_Num ;
  802. var iRow = grp_biz.grd_mngtposinfo.currentrow; //.row;
  803. var iCol = grp_biz.grd_mngtposinfo.currentcol; //.col;
  804. trace("iRow : " + iRow + ", iCol : " + iCol );
  805. ds_main_mngtposlist_mngtposinfo.rowposition = iRow;
  806. var retbool = grp_biz.grd_mngtposinfo.setCellPos("body", iCol);
  807. var retValue = grp_biz.grd_mngtposinfo.getCellValue(iRow, iCol);
  808. trace("retText: " + retValue);
  809. var retCheckValue= grp_biz.grd_mngtposinfo.getCellValue(iRow, iCol + 1);
  810. trace("retText1: " + retCheckValue);
  811. var msg = grp_biz.grd_mngtposinfo.getCellProperty("body", iCol, "backgroundColor"); //.cellstyle("background-color", iRow,iCol, iRow, iCol);
  812. trace("select BackgroundColor : " + msg);
  813. if(retValue != ""){
  814. var prefix = String(retValue).substr(0, 1);
  815. var findCol = "";
  816. switch(prefix) {
  817. case "A" : findCol = "dialkindcd_1"; break;
  818. case "B" : findCol = "dialkindcd_2"; break;
  819. case "C" : findCol = "dialkindcd_3"; break;
  820. case "D" : findCol = "dialkindcd_4"; break;
  821. case "E" : findCol = "dialkindcd_5"; break;
  822. }
  823. if(ds_main_mngtposlist_mngtposinfo.getColumn(iRow , findCol) == "0" || ds_main_mngtposlist_mngtposinfo.getColumn(iRow , findCol) == "" ) {
  824. //grp_biz.grd_mngtposinfo.cellstyle("background-color", iRow, iCol, iRow, iCol) = co;
  825. //grp_biz.grd_mngtposinfo.setCellProperty("body", iCol, "backgroundColor", co)
  826. //if(iRow != 0 && iCol%2 != 0){
  827. //ds_main_mngtposlist_mngtposinfo.setColumn(iRow, iCol+1, co_Num);
  828. ds_main_mngtposlist_mngtposinfo.setColumn(iRow , findCol, co_Num);
  829. //}
  830. //model.refresh();
  831. } else {
  832. //grp_biz.grd_mngtposinfo.cellstyle("background-color", iRow, iCol, iRow, iCol) = "white";
  833. //grp_biz.grd_mngtposinfo.setCellProperty("body", iCol, "backgroundColor", co)
  834. //if(iRow != 0 & iCol%2 != 0){
  835. //grp_biz.grd_mngtposinfo.textmatrix(iRow, iCol+1) = 0;
  836. //ds_main_mngtposlist_mngtposinfo.setColumn(iRow, iCol+1, 0);
  837. ds_main_mngtposlist_mngtposinfo.setColumn(iRow , findCol, co_Num);
  838. //}
  839. }
  840. }
  841. grp_biz.grd_mngtposinfo.updateToDataset();
  842. }
  843. function fHbsag(){
  844. selColor = '#fcd2c1';
  845. selColor_Num = 1;
  846. grp_biz.roundrect6.visible = true ; //투석코드 선택 표시
  847. grp_biz.roundrect7.visible = false;
  848. grp_biz.roundrect8.visible = false;
  849. grp_biz.roundrect9.visible = false;
  850. grp_biz.roundrect10.visible = false;
  851. grp_biz.roundrect11.visible = false;
  852. }
  853. function fHbeag(){
  854. selColor = '#00ccff';
  855. selColor_Num = 2;
  856. grp_biz.roundrect6.visible = false;
  857. grp_biz.roundrect7.visible = true ;
  858. grp_biz.roundrect8.visible = false;
  859. grp_biz.roundrect9.visible = false;
  860. grp_biz.roundrect10.visible = false;
  861. grp_biz.roundrect11.visible = false;
  862. }
  863. function fHcvab(){
  864. selColor = '#fec34d';
  865. selColor_Num = 3;
  866. grp_biz.roundrect6.visible = false;
  867. grp_biz.roundrect7.visible = false;
  868. grp_biz.roundrect8.visible = true ;
  869. grp_biz.roundrect9.visible = false;
  870. grp_biz.roundrect10.visible = false;
  871. grp_biz.roundrect11.visible = false;
  872. }
  873. function fHiv(){
  874. selColor = '#ff0000';
  875. selColor_Num = 4;
  876. grp_biz.roundrect6.visible = false;
  877. grp_biz.roundrect7.visible = false;
  878. grp_biz.roundrect8.visible = false;
  879. grp_biz.roundrect9.visible = true ;
  880. grp_biz.roundrect10.visible = false;
  881. grp_biz.roundrect11.visible = false;
  882. }
  883. function fVdrl(){
  884. selColor = '#fef392';
  885. selColor_Num =5;
  886. grp_biz.roundrect6.visible = false;
  887. grp_biz.roundrect7.visible = false;
  888. grp_biz.roundrect8.visible = false;
  889. grp_biz.roundrect9.visible = false;
  890. grp_biz.roundrect10.visible = true ;
  891. grp_biz.roundrect11.visible = false;
  892. }
  893. function fEtc(){
  894. selColor = '#ccecff';
  895. selColor_Num =6;
  896. grp_biz.roundrect6.visible = false;
  897. grp_biz.roundrect7.visible = false;
  898. grp_biz.roundrect8.visible = false;
  899. grp_biz.roundrect9.visible = false;
  900. grp_biz.roundrect10.visible = false;
  901. grp_biz.roundrect11.visible = true ;
  902. }
  903. /**
  904. * _group :
  905. * _ver : 2007.04.04
  906. * _by : 김진아
  907. * _---------------------------------------------------
  908. * _type : function
  909. * _access : public
  910. * _desc : grd_mngtposinfo,grd_choiposinfo 초기화
  911. * _param :
  912. * _return :
  913. * _---------------------------------------------------
  914. */
  915. function fPosinfoinit(){
  916. //grd_mngtposinfo 초기화
  917. ds_main_mngtposlist_mngtposinfo.clearData();
  918. //grp_biz.grd_mngtposinfo.rebuild();
  919. //grd_choiposinfo 초기화
  920. for(i = 0; i < ds_main_choiposlist_choiposinfo.rowcount ;i++){
  921. //grp_biz.grd_choiposinfo.textMatrix(i,1) = 0;
  922. ds_main_choiposlist_choiposinfo.setColumn(i, "poscont", 0);
  923. }
  924. // 생성일자, 적용일자 초기화
  925. var sDate = utlf_getCurrentDate();
  926. var currentdate = new Date();
  927. ds_main.setColumn( 0, "cretdd", sDate);
  928. dsf_makeValue( ds_main_condition, "appdd", "string", (currentdate.getAddDate(1, "D")).getDateFormat());
  929. //model.refresh();
  930. }
  931. /**
  932. * _group :
  933. * _ver : 2007.04.06
  934. * _by : 김진아
  935. * _---------------------------------------------------
  936. * _type : function
  937. * _access : public
  938. * _desc : mngtposinfo 조회
  939. * _param :
  940. * _return :
  941. * _---------------------------------------------------
  942. */
  943. function fSelectPos(appdd){
  944. //grd_mngtposinfo 초기화
  945. ds_main_mngtposlist_mngtposinfo.clearData();
  946. //grp_biz.grd_mngtposinfo.rebuild();
  947. //grd_choiposinfo 초기화
  948. for( i = 0; i < ds_main_choiposlist_choiposinfo.rowcount ;i++){
  949. //grp_biz.grd_choiposinfo.textMatrix(i,1) = 0;
  950. ds_main_choiposlist_choiposinfo.setColumn(i, "poscont", 0);
  951. }
  952. ds_send_reqdata.clearData();
  953. dsf_makeValue( ds_send_reqdata, "appdd", "string", appdd);
  954. //submit("TRMND01801");
  955. var oParam = {};
  956. oParam.id = "TRMND01801";
  957. oParam.service = "dialapp.DialPatMngt";
  958. oParam.method = "reqGetMngtposInfo";
  959. oParam.inds = "req=ds_send_reqdata";
  960. oParam.outds = "ds_main_mngtposlist_mngtposinfo=mngtposinfo";
  961. oParam.async = false;
  962. tranf_submit(oParam);
  963. dsf_makeValue(ds_main_mngtposlist_mngtposinfo, "status", "string", "");
  964. dsf_setDefaultVal(ds_main_mngtposlist_mngtposinfo, "all");
  965. //조회시 저장된 셀색상 지정해주기
  966. // expr로 대체함.
  967. // for(i = 0;i < ds_main_mngtposlist_mngtposinfo.rowcount ;i++){
  968. // for(j = 0; j < ds_main_mngtposlist_mngtposinfo.colcount;j++){
  969. // if(grp_biz.grd_mngtposinfo.valueMatrix(i,j+1) != null){
  970. // if(grp_biz.grd_mngtposinfo.valueMatrix(i,j+1)=='1'){
  971. // grp_biz.grd_mngtposinfo.cellstyle("background-color", i, j, i, j) = '#fcd2c1';
  972. // }
  973. // else if(grp_biz.grd_mngtposinfo.valueMatrix(i,j+1)=='2'){
  974. // grp_biz.grd_mngtposinfo.cellstyle("background-color", i, j, i, j) = '#00ccff';
  975. // }
  976. // else if(grp_biz.grd_mngtposinfo.valueMatrix(i,j+1)=='3'){
  977. // grp_biz.grd_mngtposinfo.cellstyle("background-color", i, j, i, j) = '#fec34d';
  978. // }
  979. // else if(grp_biz.grd_mngtposinfo.valueMatrix(i,j+1)=='4'){
  980. // grp_biz.grd_mngtposinfo.cellstyle("background-color", i, j, i, j) = '#ff0000';
  981. // }
  982. // else if(grp_biz.grd_mngtposinfo.valueMatrix(i,j+1)=='5'){
  983. // grp_biz.grd_mngtposinfo.cellstyle("background-color", i, j, i, j) = '#fef392';
  984. // }
  985. // else if(grp_biz.grd_mngtposinfo.valueMatrix(i,j+1)=='6'){
  986. // grp_biz.grd_mngtposinfo.cellstyle("background-color", i, j, i, j) = '#ccecff';
  987. // }
  988. // }//end of if
  989. // }//end of for(j)
  990. // }// end of for(i)
  991. //
  992. ds_main.setColumn( 0, "histappdd", ds_main_mngtposlist_mngtposinfo.getColumn(0, "dialtodt")); // 종료일자 설정 // (1, "dialtodt)
  993. //model.refresh();
  994. }
  995. /**
  996. * _group :
  997. * _ver : 2007.04.11
  998. * _by : 김진아
  999. * _---------------------------------------------------
  1000. * _type : function
  1001. * _access : public
  1002. * _desc : 투석자리 삭제 버튼 클릭 시
  1003. * _param :
  1004. * _return :
  1005. * _---------------------------------------------------
  1006. */
  1007. function fDeletePos(){
  1008. var msg = sysf_messageBox("투석자리를", "Q001", ""); //return : yes=6, no=7
  1009. //투석자리 삭제
  1010. if(msg == 6){
  1011. for(i=1;i<=grp_biz.grd_mngtposinfo.rows;i++){ //state(delete) 지정
  1012. grp_biz.grd_mngtposinfo.textmatrix(i,0) = "d";
  1013. }
  1014. crtChk = 'Y';
  1015. ds_send_savedata.clearData();
  1016. //dsf_makeValue( ds_send, "savedata", "string", grp_biz.grd_mngtposinfo.getupdatedataAll("i"));
  1017. dsf_copyDs(ds_send_savedata, grdf_getGridUpdateData(grp_biz.grd_mngtposinfo),"replace");
  1018. //submit("TXMND01801");
  1019. var oParam = {};
  1020. oParam.id = "TXMND01801";
  1021. oParam.service = "dialapp.DialPatMngt";
  1022. oParam.method = "reqExeChoiposInfo";
  1023. oParam.inds = "req=ds_send_savedata";
  1024. oParam.outds = "ds_main_mngtposlist_mngtposinfo=savedata";
  1025. oParam.async = false;
  1026. tranf_submit(oParam);
  1027. dsf_makeValue(ds_main_mngtposlist_mngtposinfo, "status", "string", "");
  1028. dsf_setDefaultVal(ds_main_mngtposlist_mngtposinfo, "all");
  1029. //fInsertPos();
  1030. var appdd = ds_main_condition.getColumn(0, "appdd");
  1031. fSelectPos(appdd);
  1032. fSelectHistory();
  1033. }
  1034. }
  1035. /**
  1036. * _group :
  1037. * _ver : 2007.04.11
  1038. * _by : 김진아
  1039. * _---------------------------------------------------
  1040. * _type : function
  1041. * _access : public
  1042. * _desc : History선택시 해당 데이타 조회
  1043. * _param :
  1044. * _return :
  1045. * _---------------------------------------------------
  1046. */
  1047. function fChioHis(){
  1048. var iRow = ds_main_historylist_historyinfo.rowposition; //grp_biz.grd_historyinfo.row;
  1049. var appdd = ds_main_historylist_historyinfo.getColumn(iRow, "appdd"); //1
  1050. ds_main_condition.setColumn( 0, "appdd", appdd);
  1051. crtChk = 'Y';
  1052. //model.refresh();
  1053. var appdd = ds_main_condition.getColumn(0, "appdd");
  1054. fSelectPos(appdd);
  1055. }
  1056. // header파일 중 SMMND01800.js 파일 끝
  1057. function grp_biz_grd_mngtposinfo_oncellclick(obj:Grid, e:GridClickEventInfo) {
  1058. fInsColor();
  1059. }
  1060. function grp_biz_button18_onclick(obj:Button, e:ClickEventInfo) {
  1061. fCreatePos();
  1062. }
  1063. function grp_biz_caption54_onclick(obj:Static, e:ClickEventInfo) {
  1064. fEtc();
  1065. }
  1066. function grp_biz_caption32_onclick(obj:Static, e:ClickEventInfo) {
  1067. fVdrl();
  1068. }
  1069. function grp_biz_caption33_onclick(obj:Static, e:ClickEventInfo) {
  1070. fHbsag();
  1071. }
  1072. function grp_biz_caption34_onclick(obj:Static, e:ClickEventInfo) {
  1073. fHbeag();
  1074. }
  1075. function grp_biz_grd_historyinfo_oncellclick(obj:Grid, e:GridClickEventInfo) {
  1076. if(e.row >= 0) {
  1077. fChioHis();
  1078. }
  1079. }
  1080. function grp_biz_group4_button17_onclick(obj:Button, e:ClickEventInfo) {
  1081. var appdd = ds_main_condition.getColumn(0, "appdd");
  1082. fSelectPos(appdd);
  1083. }
  1084. function grp_biz_group4_ipt_appdd_onkillfocus(obj:Calendar, e:KillFocusEventInfo) {
  1085. fChkAppdd(); // 적용일자 체크 (오늘 이전 적용일자 설정 금지)
  1086. }
  1087. function grp_biz_group4_button19_onclick(obj:Button, e:ClickEventInfo) {
  1088. fInsertPos();
  1089. }
  1090. function grp_biz_group4_button1_onclick(obj:Button, e:ClickEventInfo) {
  1091. fDeletePos();
  1092. }
  1093. function grp_biz_caption35_onclick(obj:Static, e:ClickEventInfo) {
  1094. fHcvab();
  1095. }
  1096. function grp_biz_button20_onclick(obj:Button, e:ClickEventInfo) {
  1097. fPosinfoinit();
  1098. }
  1099. function grp_biz_caption36_onclick(obj:Static, e:ClickEventInfo) {
  1100. fHiv();
  1101. }
  1102. ]]></Script>
  1103. </Form>
  1104. </FDL>