SMABO02000_타기관채취스케쥴.xfdl 38 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SMABO02000" position="absolute 0 0 1200 789" titletext="타기관채취스케쥴" oninit="SMABO02000_oninit" onload="SMABO02000_onload">
  5. <Layouts>
  6. <Layout>
  7. <Static id="caption6" text="타기관 채취 스케쥴" class="tit_1" position="absolute 0 0 200 23"/>
  8. <Button id="btn_save" taborder="1" text="저장" class="btn4" position="absolute 1014 1 1070 21" anchor="top right" onclick="btn_save_onclick"/>
  9. <Button id="btn_del" taborder="2" text="삭제" class="btn4" position="absolute 1073 1 1129 21" anchor="top right" onclick="btn_del_onclick"/>
  10. <Button id="button1" taborder="3" text="초기화" class="btn4" position="absolute 1132 1 1200 21" anchor="top right" onclick="button1_onclick"/>
  11. <Button id="btn_grdadd" taborder="4" text="행추가" class="btn2" position="absolute 1038 573 1091 592" anchor="right bottom"/>
  12. <Button id="btn_grddel" taborder="5" text="행삭제" class="btn2" position="absolute 1070 557 1123 576" anchor="right bottom"/>
  13. <Button id="btn_memosave" taborder="6" text="저장" class="btn5" position="absolute 1126 557 1168 576" anchor="right bottom"/>
  14. <Static id="caption1" text="월별 스케쥴" class="tit_2" position="absolute 0 64 100 85"/>
  15. <Shape id="line1" class="line_10" position="absolute 0 81 885 87" anchor="left top right"/>
  16. <Div id="grp_sea" taborder="7" class="div_SA" position="absolute 0 23 1200 58" anchor="left top right">
  17. <Layouts>
  18. <Layout>
  19. <Shape id="line13" linetype="vertical" class="line_4" position="absolute 1112 7 1118 29" anchor="top right"/>
  20. <Button id="btn_sea" taborder="1" text="조회" class="btn1" position="absolute 1131 7 1187 29" anchor="top right" onclick="grp_sea_btn_sea_onclick"/>
  21. </Layout>
  22. </Layouts>
  23. </Div>
  24. <Edit id="input21" taborder="8" class="input_default" enable="false" position="absolute 1004 254 1106 275" anchor="right bottom"/>
  25. <Shape id="line15" class="line_10" position="absolute 890 81 1200 87" anchor="top right"/>
  26. <Static id="caption4" text="스케쥴 관리" class="tit_2" position="absolute 890 207 990 228" anchor="right bottom"/>
  27. <Shape id="line2" class="line_10" position="absolute 890 224 1200 230" anchor="right bottom"/>
  28. <Edit id="input2" taborder="9" class="input_essential" position="absolute 1004 230 1090 251" autoselect="true" anchor="right bottom"/>
  29. <Button id="button33" taborder="10" class="icon_search" position="absolute 1093 230 1109 246" anchor="right bottom" onclick="button33_onclick"/>
  30. <Shape id="line4" class="line_2" position="absolute 890 250 1200 256" anchor="right bottom"/>
  31. <Shape id="line5" class="line_2" position="absolute 890 274 1200 280" anchor="right bottom"/>
  32. <Shape id="line6" class="line_2" position="absolute 890 322 1200 328" anchor="right bottom"/>
  33. <TextArea id="textarea1" taborder="11" position="absolute 1004 326 1200 495" autoselect="true" wordwrap="word" anchor="right bottom"/>
  34. <Div id="grp_calendar" taborder="12" class="div_SA" position="absolute 0 86 885 126" anchor="left top right">
  35. <Layouts>
  36. <Layout>
  37. <Button id="button31" taborder="7" class="icon_pre_year" position="absolute 340 12 356 28" onclick="grp_calendar_button31_onclick" anchor="default"/>
  38. <Button id="button32" taborder="8" class="icon_next_year" position="absolute 515 12 531 28" anchor="default" onclick="grp_calendar_button32_onclick"/>
  39. <Button id="btn_premonth" taborder="9" class="icon_pre_month" position="absolute 359 12 375 28" anchor="default" onclick="grp_calendar_btn_premonth_onclick"/>
  40. <Button id="button34" taborder="10" class="icon_next_month" position="absolute 496 12 512 28" anchor="default" onclick="grp_calendar_button34_onclick"/>
  41. <Edit id="opt_year" taborder="11" readonly="true" class="calendar_output" position="absolute 382 11 420 30" style="border:1 none #3576aeff ;color:black;font:Dotum,9,bold;" anchor="default"/>
  42. <Edit id="opt_month" taborder="12" readonly="true" class="calendar_output" position="absolute 441 11 471 30" style="border:1 none #3576aeff ;color:black;align:right middle;font:Dotum,9,bold;" anchor="default"/>
  43. <Static id="caption2" text="년" class="calendar_output" position="absolute 416 11 436 30" style="color:black;font:Dotum,9,bold;" anchor="default"/>
  44. <Static id="caption3" text="월" class="calendar_output" position="absolute 466 11 486 30" style="color:black;font:Dotum,9,bold;" anchor="default"/>
  45. </Layout>
  46. </Layouts>
  47. </Div>
  48. <Combo id="combo7" taborder="14" innerdataset="@ds_init_cmbinfo_boneassocd_A0164" class="combo_default" position="absolute 1004 278 1200 299" anchor="right bottom" value="null" datacolumn="hsctmdlnm" codecolumn="hsctmdlcd"/>
  49. <Edit id="input10" taborder="15" class="input_default" enable="false" position="absolute 1173 254 1200 275" anchor="right bottom"/>
  50. <Combo id="combo10" taborder="16" innerdataset="@ds_init_cmbinfo_sex_P0313" codecolumn="cdid" datacolumn="cdnm" class="combo_default" enable="false" position="absolute 1108 254 1171 275" anchor="right bottom"/>
  51. <Calendar id="ipt_trnptschedd" taborder="17" class="input_default" position="absolute 1004 302 1200 323" dateformat="yyyy-MM-dd" autoselect="true" anchor="right bottom"/>
  52. <Shape id="line3" class="line_2" position="absolute 890 298 1200 304" anchor="right bottom"/>
  53. <Static id="caption13" text="이식예정일" class="cell_1" position="absolute 890 301 1001 324" anchor="right bottom"/>
  54. <Static id="caption7" text="등록번호" class="cell_1" position="absolute 890 229 1001 252" anchor="right bottom"/>
  55. <Static id="caption16" text="비고" class="cell_1" position="absolute 890 325 1001 495" anchor="right bottom"/>
  56. <Static id="caption8" text="협회" class="cell_1" position="absolute 890 277 1001 300" anchor="right bottom"/>
  57. <Static id="caption18" text="공여자명" class="cell_1" position="absolute 890 253 1001 276" anchor="right bottom"/>
  58. <Static id="cap_seldate" class="tit_2" position="absolute 890 64 1096 85" mask="yyyy-mm-dd" anchor="top right" text="스케쥴"/>
  59. <Grid id="grd_patientlist" taborder="18" binddataset="ds_main_patientlist_patientlist" useinputpanel="false" position="absolute 890 86 1200 201" autofittype="col" cellsizingtype="col" anchor="top right bottom" oncellclick="grd_patientlist_oncellclick">
  60. <Formats>
  61. <Format id="default">
  62. <Columns>
  63. <Column size="25"/>
  64. <Column size="120"/>
  65. <Column size="120"/>
  66. </Columns>
  67. <Rows>
  68. <Row size="24" band="head"/>
  69. <Row size="24"/>
  70. </Rows>
  71. <Band id="head">
  72. <Cell/>
  73. <Cell col="1" text="등록번호"/>
  74. <Cell col="2" text="공여자명"/>
  75. </Band>
  76. <Band id="body">
  77. <Cell celltype="head" expr="currow+1"/>
  78. <Cell col="1" displaytype="normal" edittype="none" text="bind:pid"/>
  79. <Cell col="2" displaytype="normal" edittype="none" text="bind:hngnm"/>
  80. </Band>
  81. </Format>
  82. </Formats>
  83. </Grid>
  84. <Static id="caption5" text="memo" class="tit_2" position="absolute 889 501 989 523" anchor="right bottom"/>
  85. <Shape id="line7" class="line_10" position="absolute 889 518 1200 524" anchor="right bottom"/>
  86. <Grid id="grd_memo" taborder="19" binddataset="ds_main_trnptdairymemo_trnptdairymemo" useinputpanel="false" position="absolute 889 524 1200 789" autofittype="col" cellsizingtype="col" anchor="right bottom">
  87. <Formats>
  88. <Format id="default">
  89. <Columns>
  90. <Column size="22"/>
  91. <Column size="80"/>
  92. <Column size="172"/>
  93. </Columns>
  94. <Rows>
  95. <Row size="24" band="head"/>
  96. <Row size="24"/>
  97. </Rows>
  98. <Band id="head">
  99. <Cell/>
  100. <Cell col="1" text="등록일자"/>
  101. <Cell col="2" text="메모"/>
  102. </Band>
  103. <Band id="body">
  104. <Cell celltype="head" expr="currow+1"/>
  105. <Cell col="1" displaytype="date" edittype="none" text="bind:memoiptdt" calendardisplaynulltype="nulltext"/>
  106. <Cell col="2" displaytype="text" edittype="text" text="bind:memocnts"/>
  107. </Band>
  108. </Format>
  109. </Formats>
  110. </Grid>
  111. <Grid id="grd_calendar" class="gridcalendar" taborder="20" binddataset="ds_hidden_calendar_weeklist_list" useinputpanel="false" selecttype="cell" autofittype="col,allrow" oncellclick="grd_calendar_oncellclick" position="absolute 0 125 885 789" anchor="all" onclick="">
  112. <Formats>
  113. <Format id="default">
  114. <Columns>
  115. <Column size="61"/>
  116. <Column size="61"/>
  117. <Column size="61"/>
  118. <Column size="61"/>
  119. <Column size="61"/>
  120. <Column size="61"/>
  121. <Column size="61"/>
  122. </Columns>
  123. <Rows>
  124. <Row size="24" band="head"/>
  125. <Row size="24"/>
  126. <Row size="24"/>
  127. </Rows>
  128. <Band id="head">
  129. <Cell text="일"/>
  130. <Cell col="1" text="월"/>
  131. <Cell col="2" text="화"/>
  132. <Cell col="3" text="수"/>
  133. <Cell col="4" text="목"/>
  134. <Cell col="5" text="금"/>
  135. <Cell col="6" text="토"/>
  136. </Band>
  137. <Band id="body">
  138. <Cell rowspan="2" style="selectbackground:#daa7d9ff;" taborder="undefined">
  139. <Cell style="color:crimson;color2:crimson;font:arial,9,bold;selectcolor:BIND(sun_hui);selectfont:arial,9,bold;" class="color_sun" text="bind:sun" taborder="undefined"/>
  140. <Cell row="1" style="color:crimson;color2:crimson;" text="bind:sun_memo" wordwrap="word"/>
  141. </Cell>
  142. <Cell col="1" rowspan="2" style="selectbackground:#daa7d9ff;" taborder="undefined">
  143. <Cell style="color:BIND(mon_hui);color2:BIND(mon_hui);font:arial,9,bold;selectcolor:BIND(mon_hui);selectfont:arial,9,bold;" text="bind:mon" taborder="undefined"/>
  144. <Cell row="1" text="bind:mon_memo" wordwrap="word"/>
  145. </Cell>
  146. <Cell col="2" rowspan="2" style="selectbackground:#daa7d9ff;" taborder="undefined">
  147. <Cell style="color:BIND(tue_hui);color2:BIND(tue_hui);font:arial,9,bold;selectcolor:BIND(thu_hui);selectfont:arial,9,bold;" text="bind:tue" taborder="undefined"/>
  148. <Cell row="1" text="bind:tue_memo" wordwrap="word"/>
  149. </Cell>
  150. <Cell col="3" rowspan="2" style="selectbackground:#daa7d9ff;" taborder="undefined">
  151. <Cell style="color:BIND(wed_hui);color2:BIND(wed_hui);font:arial,9,bold;selectcolor:BIND(wed_hui);selectfont:arial,9,bold;" text="bind:wed" taborder="undefined"/>
  152. <Cell row="1" text="bind:wed_memo" wordwrap="word"/>
  153. </Cell>
  154. <Cell col="4" rowspan="2" style="background:0;selectbackground:#daa7d9ff;" taborder="undefined">
  155. <Cell style="background:0;color:BIND(thu_hui);color2:BIND(thu_hui);font:arial,9,bold;selectcolor:BIND(thu_hui);selectfont:arial,9,bold;" text="bind:thu" taborder="undefined"/>
  156. <Cell row="1" text="bind:thu_memo" wordwrap="word"/>
  157. </Cell>
  158. <Cell col="5" rowspan="2" style="selectbackground:#daa7d9ff;" taborder="undefined">
  159. <Cell style="color:BIND(fri_hui);color2:BIND(fri_hui);font:arial,9,bold;selectcolor:BIND(fri_hui);selectfont:arial,9,bold;" text="bind:fri" taborder="undefined"/>
  160. <Cell row="1" text="bind:fri_memo" wordwrap="word"/>
  161. </Cell>
  162. <Cell col="6" rowspan="2" style="selectbackground:#daa7d9ff;" taborder="undefined">
  163. <Cell style="color:dodgerblue;color2:dodgerblue;font:arial,9,bold;selectcolor:BIND(sat_hui);selectfont:arial,9,bold;" class="color_sat" text="bind:sat" taborder="undefined"/>
  164. <Cell row="1" style="color:dodgerblue;color2:dodgerblue;" text="bind:sat_memo" wordwrap="word"/>
  165. </Cell>
  166. </Band>
  167. </Format>
  168. </Formats>
  169. </Grid>
  170. <Button id="btn_momeadd" taborder="21" text="행추가" onclick="btn_momeadd_onclick" class="btn2" position="absolute 1050 497 1103 517" anchor="right bottom"/>
  171. <Button id="btn_memodelete" taborder="22" text="행삭제" onclick="btn_memodelete_onclick" class="btn2" position="absolute 1104 497 1157 517" anchor="right bottom"/>
  172. <Button id="btn_memosave00" taborder="23" text="저장" onclick="btn_memosave_onclick" class="btn2" position="absolute 1158 497 1200 517" anchor="right bottom"/>
  173. </Layout>
  174. </Layouts>
  175. <Objects>
  176. <Dataset id="ds_hidden_calendar" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  177. <ColumnInfo>
  178. <Column id="year" type="STRING" size="256"/>
  179. <Column id="month" type="STRING" size="256"/>
  180. <Column id="dd" type="STRING" size="256"/>
  181. </ColumnInfo>
  182. <Rows>
  183. <Row/>
  184. </Rows>
  185. </Dataset>
  186. <Dataset id="ds_hidden_grdcellcolor" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  187. <ColumnInfo>
  188. <Column id="calrow" type="INT" size="256"/>
  189. <Column id="calcol" type="INT" size="256"/>
  190. <Column id="bfcalcol" type="INT" size="256"/>
  191. <Column id="bfcalrow" type="INT" size="256"/>
  192. <Column id="color" type="STRING" size="256"/>
  193. </ColumnInfo>
  194. <Rows>
  195. <Row/>
  196. </Rows>
  197. </Dataset>
  198. <Dataset id="ds_hidden_calendar_weeklist_list" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  199. <ColumnInfo>
  200. <Column id="sun" type="STRING"/>
  201. <Column id="mon" type="STRING"/>
  202. <Column id="tue" type="STRING"/>
  203. <Column id="wed" type="STRING"/>
  204. <Column id="thu" type="STRING"/>
  205. <Column id="fri" type="STRING"/>
  206. <Column id="sat" type="STRING"/>
  207. <Column id="sun_memo" type="STRING"/>
  208. <Column id="mon_memo" type="STRING"/>
  209. <Column id="tue_memo" type="STRING"/>
  210. <Column id="wed_memo" type="STRING"/>
  211. <Column id="thu_memo" type="STRING"/>
  212. <Column id="fri_memo" type="STRING"/>
  213. <Column id="sat_memo" type="STRING"/>
  214. <Column id="sun_hui" type="STRING" size="256"/>
  215. <Column id="mon_hui" type="STRING" size="256"/>
  216. <Column id="tue_hui" type="STRING" size="256"/>
  217. <Column id="wed_hui" type="STRING" size="256"/>
  218. <Column id="thu_hui" type="STRING" size="256"/>
  219. <Column id="fri_hui" type="STRING" size="256"/>
  220. <Column id="sat_hui" type="STRING" size="256"/>
  221. </ColumnInfo>
  222. </Dataset>
  223. <Dataset id="ds_init_cmbinfo_sex_P0313" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  224. <ColumnInfo>
  225. <Column id="cdnm" type="STRING" size="256"/>
  226. <Column id="cdid" type="STRING" size="256"/>
  227. </ColumnInfo>
  228. </Dataset>
  229. <Dataset id="ds_main_patientlist_patientlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  230. <ColumnInfo>
  231. <Column id="pid" type="STRING" size="256"/>
  232. <Column id="hngnm" type="STRING" size="256"/>
  233. <Column id="boneassocd" type="STRING" size="256"/>
  234. <Column id="trnptscherem" type="STRING" size="256"/>
  235. </ColumnInfo>
  236. <Rows>
  237. <Row>
  238. <Col id="pid"/>
  239. <Col id="hngnm"/>
  240. <Col id="boneassocd"/>
  241. <Col id="trnptscherem"/>
  242. </Row>
  243. </Rows>
  244. </Dataset>
  245. <Dataset id="ds_main_patientscheinfo_patientscheinfo" firefirstcount="0" firenextcount="0" useclientlayout="true" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  246. <ColumnInfo>
  247. <Column id="pid" type="STRING" size="256"/>
  248. <Column id="hngnm" type="STRING" size="256"/>
  249. <Column id="sex" type="STRING" size="256"/>
  250. <Column id="age" type="STRING" size="256"/>
  251. <Column id="boneassocd" type="STRING" size="256"/>
  252. <Column id="trnptschedd" type="STRING" size="256"/>
  253. <Column id="trnptscherem" type="STRING" size="256"/>
  254. <Column id="updttrnptschedd" type="STRING" size="256"/>
  255. <Column id="flag" type="STRING" size="256"/>
  256. </ColumnInfo>
  257. <Rows>
  258. <Row>
  259. <Col id="pid"/>
  260. <Col id="hngnm"/>
  261. <Col id="sex"/>
  262. <Col id="age"/>
  263. <Col id="boneassocd"/>
  264. <Col id="trnptschedd"/>
  265. <Col id="trnptscherem"/>
  266. <Col id="updttrnptschedd"/>
  267. <Col id="flag"/>
  268. </Row>
  269. </Rows>
  270. </Dataset>
  271. <Dataset id="ds_send_srchinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  272. <ColumnInfo>
  273. <Column id="trnptschedd" type="STRING" size="256"/>
  274. <Column id="pid" type="STRING" size="256"/>
  275. </ColumnInfo>
  276. <Rows>
  277. <Row>
  278. <Col id="trnptschedd"/>
  279. <Col id="pid"/>
  280. </Row>
  281. </Rows>
  282. </Dataset>
  283. <Dataset id="ds_temp_templist_calendarlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  284. <ColumnInfo>
  285. <Column id="pid" type="STRING" size="256" sumtext="등록번호"/>
  286. <Column id="hngnm" type="STRING" size="256" sumtext="환자명"/>
  287. <Column id="trnptschedd" type="STRING" size="256" sumtext="이식예정일"/>
  288. <Column id="boneassocd" type="STRING" size="256" sumtext="협회코드"/>
  289. <Column id="boneassonm" type="STRING" size="256" sumtext="협회명"/>
  290. <Column id="trnptscherem" type="STRING" size="256" sumtext="비고"/>
  291. <Column id="updttrnptschedd" type="STRING" size="256" sumtext="이식예정일"/>
  292. </ColumnInfo>
  293. </Dataset>
  294. <Dataset id="ds_send_temp" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  295. <Dataset id="ds_main_trnptdairymemo_trnptdairymemo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  296. <Dataset id="ds_main" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  297. <ColumnInfo>
  298. <Column id="popupendflag" type="STRING" size="256"/>
  299. </ColumnInfo>
  300. <Rows>
  301. <Row/>
  302. </Rows>
  303. </Dataset>
  304. <Dataset id="ds_patinfolist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  305. <Dataset id="ds_init_cmbinfo_boneassocd_A0164" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  306. <ColumnInfo>
  307. <Column id="hsctmdlnm" type="STRING" size="256"/>
  308. <Column id="hsctmdlcd" type="STRING" size="256"/>
  309. </ColumnInfo>
  310. </Dataset>
  311. </Objects>
  312. <Bind>
  313. <BindItem id="item0" compid="input2" propid="value" datasetid="ds_main_patientscheinfo_patientscheinfo" columnid="pid"/>
  314. <BindItem id="item1" compid="input21" propid="value" datasetid="ds_main_patientscheinfo_patientscheinfo" columnid="hngnm"/>
  315. <BindItem id="item2" compid="combo10" propid="value" datasetid="ds_main_patientscheinfo_patientscheinfo" columnid="sex"/>
  316. <BindItem id="item3" compid="input10" propid="value" datasetid="ds_main_patientscheinfo_patientscheinfo" columnid="age"/>
  317. <BindItem id="item4" compid="combo7" propid="value" datasetid="ds_main_patientscheinfo_patientscheinfo" columnid="boneassocd"/>
  318. <BindItem id="item5" compid="ipt_trnptschedd" propid="value" datasetid="ds_main_patientscheinfo_patientscheinfo" columnid="trnptschedd"/>
  319. <BindItem id="item6" compid="textarea1" propid="value" datasetid="ds_main_patientscheinfo_patientscheinfo" columnid="trnptscherem"/>
  320. <BindItem id="item7" compid="grp_calendar.opt_year" propid="value" datasetid="ds_hidden_calendar" columnid="year"/>
  321. <BindItem id="item8" compid="grp_calendar.opt_month" propid="value" datasetid="ds_hidden_calendar" columnid="month"/>
  322. </Bind>
  323. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  324. * System Name :
  325. * Job Name :
  326. * Creator :
  327. * Make Date : 2015-11-13
  328. * Description :
  329. *---------------------------------------------------------------------------------------
  330. * Modify Date Modifier Modify Description
  331. *---------------------------------------------------------------------------------------
  332. * 2015-11-13 Live Converter TF->XP
  333. *
  334. *---------------------------------------------------------------------------------------
  335. ****************************************************************************************/
  336. include "com_commonxp::comm_main.xjs";
  337. include "ast_hsctxp::bmtcommon.xjs";
  338. function SMABO02000_oninit(obj:Form, e:InitEventInfo)
  339. {
  340. frmf_initForm(obj);
  341. }
  342. function SMABO02000_onload(obj:Form, e:LoadEventInfo)
  343. {
  344. grdf_initGrid(grd_patientlist);
  345. grdf_initGrid(grd_memo);
  346. initCalendar();
  347. setCurrentDate();
  348. var arrParam = [{dsNm: "ds_init_cmbinfo_sex_P0313", cdGrpId: "P0313"}]
  349. appf_getCodeList(arrParam);
  350. var arrParam2 = [{dsNm: "ds_init_cmbinfo_boneassocd_A0164", cdGrpId: "A0164"}];
  351. aboGetCodeList(arrParam2);
  352. ds_init_cmbinfo_boneassocd_A0164.insertRow(0);
  353. fGetMonthRecipientList();
  354. btn_save.enable = frmf_checkAuth("X");
  355. btn_del.enable = frmf_checkAuth("X");
  356. var oParam = {};
  357. oParam.id = "TRABO02004";
  358. oParam.service = "hsctcoordinatorapp.HsctSchedule";
  359. oParam.method = "reqGetBmtOutDailyMemo";
  360. oParam.inds = "srchinfo=ds_send_srchinfo";
  361. oParam.outds = "ds_main_trnptdairymemo_trnptdairymemo=trnptdairymemo";
  362. oParam.async = false;
  363. //oParam.callback = "cf_TRABO02004";
  364. tranf_submit(oParam);
  365. }
  366. function initCalendar()
  367. {
  368. var curDate = utlf_getCurrentDate().toDate();
  369. ds_hidden_calendar.setColumn(0, "year", curDate.getDateFormat('YYYY'));
  370. ds_hidden_calendar.setColumn(0, "month", curDate.getDateFormat('MM'));
  371. ds_hidden_calendar.setColumn(0, "dd", curDate.getDateFormat('DD'));
  372. setCalendar(curDate);
  373. }
  374. function setCurrentDate()
  375. {
  376. var curDate = utlf_getCurrentDate().substr(6,2); //오늘날짜
  377. var curWeek = utlf_getCurrentDate().toDate().getDayOfWeek("E").toLowerCase(); //오늘요일
  378. if (curDate < 10)
  379. {
  380. curDate= curDate.substr(1,1);
  381. }
  382. if (curWeek == "sun")
  383. {
  384. ds_hidden_grdcellcolor.setColumn(0, "calcol", "0");
  385. ds_hidden_grdcellcolor.setColumn(0, "bfcalcol", "0");
  386. }
  387. else if (curWeek == "mon")
  388. {
  389. ds_hidden_grdcellcolor.setColumn(0, "calcol", "1");
  390. ds_hidden_grdcellcolor.setColumn(0, "bfcalcol", "1");
  391. }
  392. else if (curWeek == "tue")
  393. {
  394. ds_hidden_grdcellcolor.setColumn(0, "calcol", "2");
  395. ds_hidden_grdcellcolor.setColumn(0, "bfcalcol", "2");
  396. }
  397. else if (curWeek == "wed")
  398. {
  399. ds_hidden_grdcellcolor.setColumn(0, "calcol", "3");
  400. ds_hidden_grdcellcolor.setColumn(0, "bfcalcol", "3");
  401. }
  402. else if (curWeek == "thu")
  403. {
  404. ds_hidden_grdcellcolor.setColumn(0, "calcol", "4");
  405. ds_hidden_grdcellcolor.setColumn(0, "bfcalcol", "4");
  406. }
  407. else if (curWeek == "fri")
  408. {
  409. ds_hidden_grdcellcolor.setColumn(0, "calcol", "5");
  410. ds_hidden_grdcellcolor.setColumn(0, "bfcalcol", "5");
  411. }
  412. else if (curWeek == "sat")
  413. {
  414. ds_hidden_grdcellcolor.setColumn(0, "calcol", "6");
  415. ds_hidden_grdcellcolor.setColumn(0, "bfcalcol", "6");
  416. }
  417. for (var i = 0 ; i <ds_hidden_calendar_weeklist_list.rowcount; i++ )
  418. {
  419. if(ds_hidden_calendar_weeklist_list.getColumn(i, curWeek) == curDate)
  420. {
  421. ds_hidden_grdcellcolor.setColumn(0, "calrow", i);
  422. ds_hidden_grdcellcolor.setColumn(0, "bfcalrow", i);
  423. }
  424. }
  425. ds_hidden_grdcellcolor.setColumn(0, "color", "1");
  426. setCellColor(grd_calendar);
  427. }
  428. function setCalendar(dateObj)
  429. {
  430. ds_hidden_calendar_weeklist_list.clearData();
  431. dateObj.setDate(1);
  432. var startDay = dateObj.getDay();
  433. var days = dateObj.getMonthDay();
  434. var rows = Math.ceil( ( startDay + days ) / 7 );
  435. for ( var i = 0; i < rows; i++ )
  436. {
  437. ds_hidden_calendar_weeklist_list.addRow();
  438. }
  439. var rowIndex = 0;
  440. var colIndex = startDay;
  441. var dutflag = "";
  442. for ( var i = 1; i <= days; i++ )
  443. {
  444. ds_hidden_calendar_weeklist_list.setColumn(rowIndex, colIndex, i);
  445. colIndex++;
  446. if ( colIndex == 7 )
  447. {
  448. colIndex = 0;
  449. rowIndex++;
  450. }
  451. }
  452. }
  453. function fGetMonthRecipientList()
  454. {
  455. ds_main_patientlist_patientlist.clearData();
  456. ds_main_patientscheinfo_patientscheinfo.clearData();
  457. ds_main_patientscheinfo_patientscheinfo.addRow();
  458. var sRsrvMon = ds_hidden_calendar.getColumn(0, "year")+ds_hidden_calendar.getColumn(0, "month")
  459. ds_send_srchinfo.setColumn(0, "trnptschedd", sRsrvMon+"%");
  460. var oParam = {};
  461. oParam.id = "TRABO02001";
  462. oParam.service = "hsctcoordinatorapp.HsctSchedule";
  463. oParam.method = "reqGetBmtOutMonthSchedule";
  464. oParam.inds = "req=ds_send_srchinfo";
  465. oParam.outds = "ds_temp_templist_calendarlist=calendarlist";
  466. oParam.async = false;
  467. //oParam.callback = "cf_TRABO02001";
  468. tranf_submit(oParam);
  469. sNode = ds_temp_templist_calendarlist.rowcount;
  470. if(sNode != 0)
  471. {
  472. var dd = null ;
  473. var iCol = null;
  474. var iRow = null;
  475. var firstDay = (sRsrvMon+ "01").toDate().getDay();
  476. for( var i = 0 ; i < ds_temp_templist_calendarlist.rowcount; i++)
  477. {
  478. dd = ds_temp_templist_calendarlist.getColumn(i, "trnptschedd")
  479. dd = dd.substr(6,2);
  480. iCol = ( sRsrvMon + dd).toDate().getDay();
  481. iRow = Math.ceil( ( firstDay + Number(dd) ) / 7 );
  482. ds_hidden_calendar_weeklist_list.setColumn(iRow, iCol + 7, "");
  483. }
  484. for(var i = 0; i < ds_temp_templist_calendarlist.rowcount; i++)
  485. {
  486. dd = ds_temp_templist_calendarlist.getColumn(i, "trnptschedd");
  487. dd = dd.substr(6,2);
  488. iCol = ( sRsrvMon + dd).toDate().getDay();
  489. iRow = Math.ceil( ( firstDay + Number(dd) ) / 7 );
  490. if(utlf_isNull(ds_hidden_calendar_weeklist_list.getColumn(iRow , iCol+7)))
  491. {
  492. ds_hidden_calendar_weeklist_list.setColumn(iRow-1, iCol + 7, ds_temp_templist_calendarlist.getColumn(i, "hngnm")+" "+ ds_temp_templist_calendarlist.getColumn(i, "boneassonm") + " "+ ds_temp_templist_calendarlist.getColumn(i, "trnptscherem"));
  493. }
  494. else
  495. {
  496. ds_hidden_calendar_weeklist_list.setColumn(iRow-1, iCol + 7, ds_hidden_calendar_weeklist_list.getColumn(iRow, iCol+7)+"\n"+ ds_temp_templist_calendarlist.getColumn(i, "hngnm")+ " "+ds_temp_templist_calendarlist.getColumn(i, "boneassonm")+" " + ds_temp_templist_calendarlist.getColumn(i, "trnptscherem"));
  497. }
  498. }
  499. }
  500. }
  501. function grp_sea_btn_sea_onclick(obj:Button, e:ClickEventInfo)
  502. {
  503. fGetMonthRecipientList();
  504. }
  505. function grd_calendar_oncellclick(obj:Grid, e:GridClickEventInfo)
  506. {
  507. var seldate = fGetCalendarDate(grd_calendar);
  508. if (seldate.length == 9)
  509. {
  510. return
  511. }
  512. fGetPatientList();
  513. }
  514. function setCellColor(gridObj)
  515. {
  516. var calRow = 0; //현재선택
  517. var calCol = 0; //현재선택
  518. var bfcalRow = 0; //전에 선택
  519. var bfcalCol = 0; //전에 선택
  520. calRow = Number(ds_hidden_grdcellcolor.getColumn(0, "calrow"));
  521. calCol = Number(ds_hidden_grdcellcolor.getColumn(0, "calcol"));
  522. bfcalRow = Number(ds_hidden_grdcellcolor.getColumn(0, "bfcalrow"));
  523. bfcalCol = Number(ds_hidden_grdcellcolor.getColumn(0, "bfcalcol"));
  524. ds_hidden_calendar_weeklist_list.clearSelect();
  525. ds_hidden_calendar_weeklist_list.selectRow(bfcalRow);
  526. ds_hidden_calendar_weeklist_list.rowposition = bfcalRow;
  527. this.grd_calendar.setCellPos(bfcalCol);
  528. }
  529. function fGetCalendarDate(grdObj)
  530. {
  531. var cal_row = grdObj.currentrow;
  532. var cal_col = grdObj.currentcol;
  533. if( cal_col > 6)
  534. {
  535. cal_col -= 7;
  536. }
  537. var rsrvdd = "";
  538. if( cal_row >= 0 )
  539. {
  540. var dd = ds_hidden_calendar_weeklist_list.getColumn(cal_row, cal_col);
  541. if( dd.length < 2 )
  542. {
  543. dd = "0" + dd;
  544. }
  545. rsrvdd = ds_hidden_calendar.getColumn(0, "year")+ds_hidden_calendar.getColumn(0, "month")+dd ;
  546. }
  547. return rsrvdd;
  548. }
  549. function fGetPatientList()
  550. {
  551. var seldate = fGetCalendarDate(grd_calendar);
  552. ds_send_srchinfo.setColumn(0, "trnptschedd", seldate);
  553. ds_send_srchinfo.setColumn(0, "pid", "");
  554. ds_main_patientlist_patientlist.clearData();
  555. ds_main_patientscheinfo_patientscheinfo.clearData();
  556. ds_main_patientscheinfo_patientscheinfo.addRow();
  557. var oParam = {};
  558. oParam.id = "TRABO02002";
  559. oParam.service = "hsctcoordinatorapp.HsctSchedule";
  560. oParam.method = "reqGetBmtOutDailySchedule";
  561. oParam.inds = "req=ds_send_srchinfo";
  562. oParam.outds = "ds_main_patientlist_patientlist=patientlist";
  563. oParam.async = false;
  564. //oParam.callback = "cf_TRABO02002";
  565. tranf_submit(oParam);
  566. cap_seldate.text = String(seldate).substr(0,4)+"-"+String(seldate).substr(4,2)+"-"+String(seldate).substr(6,2) +" "+"스케쥴";
  567. }
  568. function grp_calendar_button31_onclick(obj:Button, e:ClickEventInfo)
  569. {
  570. var isMonth = ds_hidden_calendar.getColumn(0, "month");
  571. var isYear = ds_hidden_calendar.getColumn(0, "year");
  572. var isDate = (isYear+isMonth+1).toDate().getAddDate(-1,'Y');
  573. ds_hidden_calendar.setColumn(0, "year", isDate.getDateFormat('YYYY'));
  574. ds_hidden_calendar.setColumn(0, "month", isDate.getDateFormat('MM'));
  575. setCalendar(isDate);
  576. }
  577. function grp_calendar_button32_onclick(obj:Button, e:ClickEventInfo)
  578. {
  579. var isMonth = ds_hidden_calendar.getColumn(0, "month");
  580. var isYear = ds_hidden_calendar.getColumn(0, "year");
  581. var isDate = (isYear+isMonth+1).toDate().getAddDate(1,'Y');
  582. ds_hidden_calendar.setColumn(0, "year", isDate.getDateFormat('YYYY'));
  583. ds_hidden_calendar.setColumn(0, "month", isDate.getDateFormat('MM'));
  584. setCalendar(isDate);
  585. }
  586. function grp_calendar_btn_premonth_onclick(obj:Button, e:ClickEventInfo)
  587. {
  588. var isMonth = ds_hidden_calendar.getColumn(0, "month");
  589. var isYear = ds_hidden_calendar.getColumn(0, "year");
  590. var isDate = (isYear+isMonth+1).toDate().getAddDate(-1,'M');
  591. fGetCalendar(isDate.getDateFormat('MM'));
  592. }
  593. function grp_calendar_button34_onclick(obj:Button, e:ClickEventInfo)
  594. {
  595. var isMonth = ds_hidden_calendar.getColumn(0, "month");
  596. var isYear = ds_hidden_calendar.getColumn(0, "year");
  597. var isDate = (isYear+isMonth+1).toDate().getAddDate(1,'M');
  598. fGetCalendar(isDate.getDateFormat('MM'));
  599. }
  600. function fGetCalendar(arg)
  601. {
  602. var isMonth = ds_hidden_calendar.getColumn(0, "month");
  603. var isYear = ds_hidden_calendar.getColumn(0, "year");
  604. if(ds_hidden_calendar.getColumn(0, "month") < arg)
  605. {
  606. var num = arg- isMonth ;
  607. var isDate = (isYear+isMonth+1).toDate().getAddDate(+num,'M');
  608. }
  609. if(ds_hidden_calendar.getColumn(0, "month") > arg)
  610. {
  611. var num = isMonth - arg ;
  612. var isDate = (isYear+isMonth+1).toDate().getAddDate(-num,'M');
  613. }
  614. ds_hidden_calendar.setColumn(0, "year", isDate.getDateFormat('YYYY'));
  615. ds_hidden_calendar.setColumn(0, "month", isDate.getDateFormat('MM'));
  616. setCalendar(isDate);
  617. }
  618. function btn_save_onclick(obj:Button, e:ClickEventInfo)
  619. {
  620. if (utlf_isNull(ds_main_patientscheinfo_patientscheinfo.getColumn(0, "trnptschedd")))
  621. {
  622. sysf_messageBox("이식예정일은 반드시 선택해야 합니다", "E999", "");
  623. return false;
  624. }
  625. if (utlf_isNull(ds_main_patientscheinfo_patientscheinfo.getColumn(0, "pid")))
  626. {
  627. sysf_messageBox("등록번호는 반드시 선택해야 합니다. ", "E999", "");
  628. return false;
  629. }
  630. var oParam = {};
  631. oParam.id = "TXABO02001";
  632. oParam.service = "hsctcoordinatorapp.HsctSchedule";
  633. oParam.method = "reqExeBmtOutSchedule";
  634. oParam.inds = "patientscheinfo=ds_main_patientscheinfo_patientscheinfo";
  635. oParam.outds = "ds_=item";
  636. oParam.async = false;
  637. //oParam.callback = "cf_TXABO02001";
  638. tranf_submit(oParam);
  639. fGetMonthRecipientList();
  640. }
  641. function btn_del_onclick(obj:Button, e:ClickEventInfo)
  642. {
  643. ds_main_patientscheinfo_patientscheinfo.setColumn(0, "flag", "D");
  644. if(!utlf_isNull(ds_main_patientscheinfo_patientscheinfo.getColumn(0, "pid")))
  645. {
  646. var oParam = {};
  647. oParam.id = "TXABO02001";
  648. oParam.service = "hsctcoordinatorapp.HsctSchedule";
  649. oParam.method = "reqExeBmtOutSchedule";
  650. oParam.inds = "patientscheinfo=ds_main_patientscheinfo_patientscheinfo";
  651. oParam.outds = "ds_=item";
  652. oParam.async = false;
  653. //oParam.callback = "cf_TXABO02001";
  654. tranf_submit(oParam);
  655. ds_main_patientscheinfo_patientscheinfo.clearData();
  656. ds_main_patientscheinfo_patientscheinfo.addRow();
  657. }
  658. setCalendarDate(0, 'M');
  659. }
  660. function setCalendarDate(flagValue, flagMonthYear)
  661. {
  662. var isMonth = ds_hidden_calendar.getColumn(0, "month");
  663. var isYear = ds_hidden_calendar.getColumn(0, "year");
  664. var isDate = (isYear+isMonth+1).toDate().getAddDate(flagValue, flagMonthYear);
  665. ds_hidden_calendar.setColumn(0, "year", isDate.getDateFormat('YYYY'));
  666. ds_hidden_calendar.setColumn(0, "month", isDate.getDateFormat('MM'));
  667. setCalendar(isDate);
  668. fGetMonthRecipientList();
  669. }
  670. function fGetSelectPatientInfo()
  671. {
  672. var idx = ds_main_patientlist_patientlist.rowposition;
  673. if(idx < 0)
  674. {
  675. sysf_messageBox("환자를 선택하세요","E999");
  676. return;
  677. }
  678. var vPid = ds_main_patientlist_patientlist.getColumn(idx, "pid");
  679. if(utlf_isNull(vPid))
  680. {
  681. sysf_messageBox("환자를 선택하세요","E999");
  682. return ;
  683. }
  684. ds_send_srchinfo.setColumn(0, "pid", vPid);
  685. ds_send_srchinfo.setColumn(0, "trnptschedd", ds_main_patientlist_patientlist.getColumn(idx, "trnptschedd"));
  686. var oParam = {};
  687. oParam.id = "TRABO02003";
  688. oParam.service = "hsctcoordinatorapp.HsctSchedule";
  689. oParam.method = "reqGetBmtOutMngtSchedule";
  690. oParam.inds = "req=ds_send_srchinfo";
  691. oParam.outds = "ds_main_patientscheinfo_patientscheinfo=patientscheinfo";
  692. oParam.async = false;
  693. //oParam.callback = "cf_TRABO02003";
  694. tranf_submit(oParam);
  695. ds_main_patientscheinfo_patientscheinfo.setColumn(0, "flag", "U");
  696. ds_main_patientscheinfo_patientscheinfo.setColumn(0, "updttrnptschedd", ds_main_patientscheinfo_patientscheinfo.getColumn(0, "trnptschedd"));
  697. }
  698. function grd_patientlist_oncellclick(obj:Grid, e:GridClickEventInfo)
  699. {
  700. fGetSelectPatientInfo();
  701. }
  702. function button33_onclick(obj:Button, e:ClickEventInfo)
  703. {
  704. ds_main_patientscheinfo_patientscheinfo.setColumn(0, "flag", "I");
  705. frmf_modal("SPPMC02500", "SPPMC02500", "", "", "", "", "", "", "", "", "", "", "M");
  706. ds_main_patientscheinfo_patientscheinfo.setColumn(0, "pid", ds_patinfolist.getColumn(0, "pid"));
  707. ds_main_patientscheinfo_patientscheinfo.setColumn(0, "hngnm", ds_patinfolist.getColumn(0, "hngnm"));
  708. ds_main_patientscheinfo_patientscheinfo.setColumn(0, "sex", ds_patinfolist.getColumn(0, "sex"));
  709. ds_main_patientscheinfo_patientscheinfo.setColumn(0, "age", ds_patinfolist.getColumn(0, "age"));
  710. }
  711. function btn_momeadd_onclick(obj:Button, e:ClickEventInfo)
  712. {
  713. if(ds_main_trnptdairymemo_trnptdairymemo.getColumn(ds_main_trnptdairymemo_trnptdairymemo.rowcount-1, "memoiptdt") != (utlf_getCurrentDate()+utlf_getCurrentTime()))
  714. {
  715. var row = ds_main_trnptdairymemo_trnptdairymemo.addRow();
  716. ds_main_trnptdairymemo_trnptdairymemo.setColumn(row, "memoiptdt", (utlf_getCurrentDate()+utlf_getCurrentTime()));
  717. }
  718. else
  719. {
  720. }
  721. }
  722. function btn_memodelete_onclick(obj:Button, e:ClickEventInfo)
  723. {
  724. ds_main_trnptdairymemo_trnptdairymemo.deleteRow(ds_main_trnptdairymemo_trnptdairymemo.rowposition);
  725. }
  726. function btn_memosave_onclick(obj:Button, e:ClickEventInfo)
  727. {
  728. var oParam = {};
  729. oParam.id = "TRABO02002";
  730. oParam.service = "hsctcoordinatorapp.HsctSchedule";
  731. oParam.method = "reqExeBmtOutDailyMemo";
  732. oParam.inds = "req=ds_main_trnptdairymemo_trnptdairymemo:U";
  733. oParam.outds = "ds_=item";
  734. oParam.typeStr = "m";
  735. oParam.async = false;
  736. //oParam.callback = "cf_TRABO02002";
  737. tranf_submit(oParam);
  738. var oParam = {};
  739. oParam.id = "TRABO02004";
  740. oParam.service = "hsctcoordinatorapp.HsctSchedule";
  741. oParam.method = "reqGetBmtOutDailyMemo";
  742. oParam.inds = "srchinfo=ds_send_srchinfo";
  743. oParam.outds = "ds_main_trnptdairymemo_trnptdairymemo=trnptdairymemo";
  744. oParam.async = false;
  745. //oParam.callback = "cf_TRABO02004";
  746. tranf_submit(oParam);
  747. }
  748. function button1_onclick(obj:Button, e:ClickEventInfo)
  749. {
  750. initCalendar();
  751. }
  752. ]]></Script>
  753. </Form>
  754. </FDL>