SMMNW08800_병력.xfdl 43 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SMMNW08800" position="absolute 0 0 1194 642" titletext="Untitle" oninit="SMMNW08800_oninit" onload="SMMNW08800_onload">
  5. <Layouts>
  6. <Layout>
  7. <Radio position="absolute 488 22 734 51" id="rdo_smokinfo" taborder="33" columncount="7" codecolumn="codecolumn" datacolumn="datacolumn" onitemchanged="rdo_smokinfo_onitemchanged" rowcount="0">
  8. <Dataset id="innerdataset">
  9. <ColumnInfo>
  10. <Column id="codecolumn" size="256"/>
  11. <Column id="datacolumn" size="256"/>
  12. </ColumnInfo>
  13. <Rows>
  14. <Row>
  15. <Col id="codecolumn">1</Col>
  16. <Col id="datacolumn">무</Col>
  17. </Row>
  18. <Row>
  19. <Col id="codecolumn">2</Col>
  20. <Col id="datacolumn">유</Col>
  21. </Row>
  22. <Row>
  23. <Col id="codecolumn">-</Col>
  24. <Col id="datacolumn">-</Col>
  25. </Row>
  26. <Row>
  27. <Col id="codecolumn">-</Col>
  28. <Col id="datacolumn">-</Col>
  29. </Row>
  30. <Row>
  31. <Col id="codecolumn">-</Col>
  32. <Col id="datacolumn">-</Col>
  33. </Row>
  34. <Row>
  35. <Col id="codecolumn">3</Col>
  36. <Col id="datacolumn"/>
  37. </Row>
  38. </Rows>
  39. </Dataset>
  40. </Radio>
  41. <Button position="absolute 1128 1 1181 20" id="btn_smokinfodel" class="btn2" visible="false" text="행삭제" onclick="btn_smokinfodel_onclick"/>
  42. <Button position="absolute 1072 111 1125 130" id="btn_drunkinfoadd" class="btn2" visible="false" text="행추가" onclick="btn_drunkinfoadd_onclick"/>
  43. <Shape position="absolute 790 130 1181 136" linetype="horizontal" id="line20" class="line_10" visible="false"/>
  44. <CheckBox position="absolute 946 115 1016 130" id="chk_drunkinfoinclyn" visible="false" text="해당없음" truevalue="1" onchanged="chk_drunkinfoinclyn_onchanged" onclick="chk_drunkinfoinclyn_onclick"/>
  45. <Shape position="absolute 790 241 1181 247" linetype="horizontal" id="line21" class="line_10" visible="false"/>
  46. <Static text="음주정보" position="absolute 790 114 894 135" id="caption30" class="tit_2" visible="false"/>
  47. <Button position="absolute 1072 222 1125 241" id="btn_gustofoodinfoadd" class="btn2" visible="false" text="행추가" onclick="btn_gustofoodinfoadd_onclick"/>
  48. <Static text="기호식품" position="absolute 790 225 902 246" id="caption31" class="tit_2" visible="false"/>
  49. <Shape position="absolute 790 20 1181 26" linetype="horizontal" id="line34" class="line_10" visible="false"/>
  50. <Grid position="absolute 790 25 1181 105" id="grd_smokinfo" visible="false" scrollbars="autoboth" binddataset="ds_data_smok2" autofittype="col" cellsizingtype="col" autoenter="select">
  51. <Formats>
  52. <Format id="default">
  53. <Columns>
  54. <Column size="75"/>
  55. <Column size="299"/>
  56. </Columns>
  57. <Rows>
  58. <Row size="24" band="head"/>
  59. <Row size="24"/>
  60. </Rows>
  61. <Band id="head">
  62. <Cell text="양(갑/일)"/>
  63. <Cell col="1" text="기간(년)"/>
  64. </Band>
  65. <Band id="body">
  66. <Cell text="bind:dosetoday" edittype="combo" displaytype="combo"/>
  67. <Cell col="1" text="bind:term" edittype="text" displaytype="text"/>
  68. </Band>
  69. </Format>
  70. </Formats>
  71. </Grid>
  72. <CheckBox position="absolute 946 226 1016 241" id="chk_gustofoodinclyn" visible="false" text="해당없음" truevalue="1" onclick="chk_gustofoodinclyn_onclick" onchanged="chk_gustofoodinclyn_onchanged"/>
  73. <Button position="absolute 1072 1 1125 20" id="btn_smokinfoadd" class="btn2" visible="false" text="행추가" onclick="btn_smokinfoadd_onclick"/>
  74. <CheckBox position="absolute 946 5 1016 20" id="chk_smokinfoinclyn" visible="false" text="해당없음" truevalue="1" onclick="chk_smokinfoinclyn_onclick" onchanged="chk_smokinfoinclyn_onchanged"/>
  75. <Grid position="absolute 790 246 1181 327" id="grd_gustofood" visible="false" scrollbars="autoboth" binddataset="ds_data_gustofood2" autofittype="col" cellsizingtype="col" autoenter="select">
  76. <Formats>
  77. <Format id="default">
  78. <Columns>
  79. <Column size="74"/>
  80. <Column size="75"/>
  81. <Column size="74"/>
  82. <Column size="151"/>
  83. </Columns>
  84. <Rows>
  85. <Row size="24" band="head"/>
  86. <Row size="24"/>
  87. </Rows>
  88. <Band id="head">
  89. <Cell text="종류"/>
  90. <Cell col="1" text="양(잔)"/>
  91. <Cell col="2" text="횟수(일)"/>
  92. <Cell col="3" text="기간(년)"/>
  93. </Band>
  94. <Band id="body">
  95. <Cell text="bind:kind" edittype="combo" displaytype="combo"/>
  96. <Cell col="1" text="bind:dose" edittype="text" displaytype="text"/>
  97. <Cell col="2" text="bind:tims" edittype="text" displaytype="text"/>
  98. <Cell col="3" text="bind:term" edittype="text" displaytype="text"/>
  99. </Band>
  100. </Format>
  101. </Formats>
  102. </Grid>
  103. <Static text="수혈부작용" position="absolute 790 336 894 357" id="caption36" class="tit_2" visible="false"/>
  104. <Shape position="absolute 790 352 1181 358" linetype="horizontal" id="line29" class="line_10" visible="false"/>
  105. <Button position="absolute 1128 111 1181 130" id="btn_drunkinfodel" class="btn2" visible="false" text="행삭제" onclick="btn_drunkinfodel_onclick"/>
  106. <Static text="흡연정보" position="absolute 790 4 894 25" id="caption39" class="tit_2" visible="false"/>
  107. <Button position="absolute 1128 222 1181 241" id="btn_gustofoodinfodel" class="btn2" visible="false" text="행삭제" onclick="btn_gustofoodinfodel_onclick"/>
  108. <Grid position="absolute 790 135 1181 216" id="grd_drunkinfo" visible="false" scrollbars="autoboth" binddataset="ds_data_drunk2" autofittype="col" cellsizingtype="col" autoenter="select">
  109. <Formats>
  110. <Format id="default">
  111. <Columns>
  112. <Column size="75"/>
  113. <Column size="75"/>
  114. <Column size="75"/>
  115. <Column size="149"/>
  116. </Columns>
  117. <Rows>
  118. <Row size="24" band="head"/>
  119. <Row size="24"/>
  120. </Rows>
  121. <Band id="head">
  122. <Cell text="종류"/>
  123. <Cell col="1" text="양(병)"/>
  124. <Cell col="2" text="횟수(월)"/>
  125. <Cell col="3" text="기간(년)"/>
  126. </Band>
  127. <Band id="body">
  128. <Cell text="bind:kind" edittype="combo" displaytype="combo"/>
  129. <Cell col="1" text="bind:dose" edittype="text" displaytype="text"/>
  130. <Cell col="2" text="bind:tims" edittype="text" displaytype="text"/>
  131. <Cell col="3" text="bind:term" edittype="text" displaytype="text"/>
  132. </Band>
  133. </Format>
  134. </Formats>
  135. </Grid>
  136. <CheckBox position="absolute 946 337 1016 352" id="chk_tnsseffcinclyn" visible="false" text="해당없음" truevalue="1" onclick="chk_tnsseffcinclyn_onclick" onchanged="chk_tnsseffcinclyn_onchanged"/>
  137. <Radio position="absolute 874 357 974 378" id="rdo_tnsseffcyn" visible="false" columncount="2" codecolumn="codecolumn" datacolumn="datacolumn" onitemchanged="rdo_tnsseffcyn_onitemchanged">
  138. <Dataset id="innerdataset">
  139. <ColumnInfo>
  140. <Column id="codecolumn"/>
  141. <Column id="datacolumn"/>
  142. </ColumnInfo>
  143. <Rows>
  144. <Row>
  145. <Col id="codecolumn">1</Col>
  146. <Col id="datacolumn">무</Col>
  147. </Row>
  148. <Row>
  149. <Col id="codecolumn">2</Col>
  150. <Col id="datacolumn">유</Col>
  151. </Row>
  152. </Rows>
  153. </Dataset>
  154. </Radio>
  155. <Edit position="absolute 975 358 1181 377" id="ipt_tnsseffcdetl" class="input_default" visible="false" autoselect="true" autoskip="true"/>
  156. <Static text="수혈부작용" position="absolute 790 357 870 378" align="align:center middle;" id="caption98" class="cell_1" visible="false"/>
  157. <Shape position="absolute 790 377 1181 383" linetype="horizontal" id="line95" class="line_3" visible="false"/>
  158. <Button position="absolute 280 1 333 20" id="btn_pasthistadd" class="btn2" taborder="57" text="행추가" onclick="btn_pasthistadd_onclick"/>
  159. <CheckBox position="absolute 154 308 224 323" id="chk_ophistinclyn" taborder="65" text="해당없음" truevalue="1" onclick="chk_ophistinclyn_onclick" onchanged="chk_ophistinclyn_onchanged"/>
  160. <Grid position="absolute 0 543 390 614" id="grd_allghist" scrollbars="autoboth" binddataset="ds_data_allghist2" autofittype="col" cellsizingtype="col" autoenter="select">
  161. <Formats>
  162. <Format id="default">
  163. <Columns>
  164. <Column size="85"/>
  165. <Column size="70"/>
  166. <Column size="216"/>
  167. </Columns>
  168. <Rows>
  169. <Row size="24" band="head"/>
  170. <Row size="24"/>
  171. </Rows>
  172. <Band id="head">
  173. <Cell text="발생일자"/>
  174. <Cell col="1" text="구분"/>
  175. <Cell col="2" text="Allergy 내역"/>
  176. </Band>
  177. <Band id="body">
  178. <Cell displaytype="normal" edittype="date" text="bind:genrdd" editautoselect="true" editautoskip="true" calendardisplaynulltype="nulltext"/>
  179. <Cell col="1" displaytype="combo" edittype="combo" class="gridcombo" text="bind:flag" combodataset="ds_init_mlist_M0090" combocodecol="cdid" combodatacol="cdnm" combodisplayrowcount="20"/>
  180. <Cell col="2" displaytype="text" edittype="text" text="bind:allergespec"/>
  181. </Band>
  182. </Format>
  183. </Formats>
  184. </Grid>
  185. <Static text="최근투약상태" position="absolute 0 410 104 431" id="caption1" class="tit_2"/>
  186. <Button position="absolute 336 407 389 426" id="btn_rectmedistatdel" class="btn2" taborder="70" text="행삭제" onclick="btn_rectmedistatdel_onclick"/>
  187. <Button position="absolute 336 203 389 222" id="btn_inhistdel" class="btn2" taborder="64" text="행삭제" onclick="btn_inhistdel_onclick"/>
  188. <Grid position="absolute 0 227 390 298" id="grd_inhist" scrollbars="autoboth" binddataset="ds_data_inhist2" autofittype="col" cellsizingtype="col" autoenter="select">
  189. <Formats>
  190. <Format id="default">
  191. <Columns>
  192. <Column size="85"/>
  193. <Column size="85"/>
  194. <Column size="133"/>
  195. <Column size="67"/>
  196. <Column size="0"/>
  197. </Columns>
  198. <Rows>
  199. <Row size="24" band="head"/>
  200. <Row size="24"/>
  201. </Rows>
  202. <Band id="head">
  203. <Cell text="입원일자"/>
  204. <Cell col="1" text="퇴원일자"/>
  205. <Cell col="2" text="병명"/>
  206. <Cell col="3" text="진료기관"/>
  207. <Cell col="4" text="inhistpk"/>
  208. </Band>
  209. <Band id="body">
  210. <Cell displaytype="normal" edittype="date" text="bind:indd" editautoselect="true" editautoskip="true" calendardisplaynulltype="nulltext"/>
  211. <Cell col="1" displaytype="date" edittype="date" text="bind:dschdd" editautoselect="true" editautoskip="true" calendardisplaynulltype="nulltext"/>
  212. <Cell col="2" displaytype="text" edittype="text" text="bind:illnm"/>
  213. <Cell col="3" displaytype="text" edittype="text" text="bind:orddept"/>
  214. <Cell col="4" text="bind:inhistpk"/>
  215. </Band>
  216. </Format>
  217. </Formats>
  218. </Grid>
  219. <CheckBox position="absolute 154 4 224 19" id="chk_pasthistyn" taborder="56" text="해당없음" truevalue="1" onclick="chk_pasthistyn_onclick" onchanged="chk_pasthistyn_onchanged"/>
  220. <Static text="과거병력" position="absolute 0 4 104 25" id="caption2" class="tit_2"/>
  221. <Shape position="absolute -1 121 389 127" linetype="horizontal" id="line1" class="line_10"/>
  222. <CheckBox position="absolute 154 105 224 120" id="chk_famyhistyn" taborder="59" text="해당없음" truevalue="1" onclick="chk_famyhistyn_onclick" onchanged="chk_famyhistyn_onchanged"/>
  223. <Static text="가족병력" position="absolute 0 105 74 126" id="caption3" class="tit_2"/>
  224. <Button position="absolute 280 102 333 121" id="btn_famyhistadd" class="btn2" taborder="60" text="행추가" onclick="btn_famyhistadd_onclick"/>
  225. <Grid position="absolute 0 25 390 96" id="grd_pasthist" scrollbars="autoboth" binddataset="ds_data_pasthist2" autofittype="col" cellsizingtype="col" autoenter="select">
  226. <Formats>
  227. <Format id="default">
  228. <Columns>
  229. <Column size="85"/>
  230. <Column size="169"/>
  231. <Column size="116"/>
  232. </Columns>
  233. <Rows>
  234. <Row size="24" band="head"/>
  235. <Row size="24"/>
  236. </Rows>
  237. <Band id="head">
  238. <Cell text="발생일자"/>
  239. <Cell col="1" text="병력내역"/>
  240. <Cell col="2" text="비고"/>
  241. </Band>
  242. <Band id="body">
  243. <Cell displaytype="date" edittype="date" text="bind:genrdd" editautoselect="true" editautoskip="true" calendardisplaynulltype="nulltext"/>
  244. <Cell col="1" displaytype="combo" edittype="combo" style="align:left middle;padding:0 0 0 2;" class="gridcombo" text="bind:histspec" combodataset="ds_init_mlist_M0532" combocodecol="cdid" combodatacol="cdnm" combodisplayrowcount="20"/>
  245. <Cell col="2" displaytype="text" edittype="text" style="padding:0 0 0 2;" text="bind:remfact" wordwrap="word"/>
  246. </Band>
  247. </Format>
  248. </Formats>
  249. </Grid>
  250. <Shape position="absolute -1 222 389 228" linetype="horizontal" id="line2" class="line_10"/>
  251. <Grid position="absolute 0 126 390 197" id="grd_famyhist" scrollbars="autoboth" binddataset="ds_data_famyhist2" autofittype="col" cellsizingtype="col" autoenter="select">
  252. <Formats>
  253. <Format id="default">
  254. <Columns>
  255. <Column size="60"/>
  256. <Column size="40"/>
  257. <Column size="169"/>
  258. <Column size="102"/>
  259. </Columns>
  260. <Rows>
  261. <Row size="24" band="head"/>
  262. <Row size="24"/>
  263. </Rows>
  264. <Band id="head">
  265. <Cell text="관계"/>
  266. <Cell col="1" text="생존"/>
  267. <Cell col="2" text="병력내역"/>
  268. <Cell col="3" text="비고"/>
  269. </Band>
  270. <Band id="body">
  271. <Cell displaytype="combo" edittype="combo" style="align:center middle;" class="gridcombo" text="bind:famyrel" combodataset="ds_init_mlist_M0072" combocodecol="cdid" combodatacol="cdnm" combodisplayrowcount="20"/>
  272. <Cell col="1" displaytype="combo" edittype="combo" style="align:center middle;" class="gridcombo" text="bind:existyn" combodataset="ds_init_mlist_M0088" combocodecol="cdid" combodatacol="cdnm"/>
  273. <Cell col="2" displaytype="combo" edittype="combo" style="align:center middle;" class="gridcombo" text="bind:histspec" combodataset="ds_init_mlist_M0368" combocodecol="cdid" combodatacol="cdnm" combodisplayrowcount="20"/>
  274. <Cell col="3" displaytype="text" edittype="text" text="bind:remfact"/>
  275. </Band>
  276. </Format>
  277. </Formats>
  278. </Grid>
  279. <Shape position="absolute -1 323 389 329" linetype="horizontal" id="line3" class="line_10"/>
  280. <Static text="수술이력" position="absolute 0 307 104 328" id="caption4" class="tit_2"/>
  281. <Button position="absolute 336 518 389 537" id="btn_allghistdel" class="btn2" taborder="73" text="행삭제" onclick="btn_allghistdel_onclick"/>
  282. <Button position="absolute 280 407 333 426" id="btn_rectmedistatadd" class="btn2" taborder="69" text="행추가" onclick="btn_rectmedistatadd_onclick"/>
  283. <Button position="absolute 280 203 333 222" id="btn_inhistadd" class="btn2" taborder="63" text="행추가" onclick="btn_inhistadd_onclick"/>
  284. <Shape position="absolute -1 426 389 432" linetype="horizontal" id="line5" class="line_10"/>
  285. <Button position="absolute 336 304 389 323" id="btn_ophistdel" class="btn2" taborder="67" text="행삭제" onclick="btn_ophistdel_onclick"/>
  286. <Button position="absolute 336 1 389 20" id="btn_pasthistdel" class="btn2" taborder="58" text="행삭제" onclick="btn_pasthistdel_onclick"/>
  287. <Shape position="absolute -1 538 389 544" linetype="horizontal" id="line7" class="line_10"/>
  288. <Static text="입원이력" position="absolute 0 206 104 227" id="caption6" class="tit_2"/>
  289. <Shape position="absolute -1 20 390 26" linetype="horizontal" id="line8" class="line_10"/>
  290. <Grid position="absolute 0 431 390 502" id="grd_rectmedistat" scrollbars="autoboth" binddataset="ds_data_rectmedistat2" autofittype="col" cellsizingtype="col" autoenter="select">
  291. <Formats>
  292. <Format id="default">
  293. <Columns>
  294. <Column size="70"/>
  295. <Column size="200"/>
  296. <Column size="101"/>
  297. </Columns>
  298. <Rows>
  299. <Row size="24" band="head"/>
  300. <Row size="24"/>
  301. </Rows>
  302. <Band id="head">
  303. <Cell text="약명"/>
  304. <Cell col="1" text="복용법(용도/용량/용법)"/>
  305. <Cell col="2" text="진료기관"/>
  306. </Band>
  307. <Band id="body">
  308. <Cell text="bind:drugnm" edittype="text" displaytype="text"/>
  309. <Cell col="1" text="bind:direc" edittype="text" displaytype="text"/>
  310. <Cell col="2" text="bind:orddept" edittype="text" displaytype="text"/>
  311. </Band>
  312. </Format>
  313. </Formats>
  314. </Grid>
  315. <CheckBox position="absolute 154 207 224 222" id="chk_inhistyn" taborder="62" text="해당없음" truevalue="1" onclick="chk_inhistyn_onclick" onchanged="chk_inhistyn_onchanged"/>
  316. <Grid position="absolute 0 328 390 399" id="grd_ophist" scrollbars="autoboth" binddataset="ds_data_ophist2" autofittype="col" cellsizingtype="col" autoenter="select">
  317. <Formats>
  318. <Format id="default">
  319. <Columns>
  320. <Column size="85"/>
  321. <Column size="185"/>
  322. <Column size="101"/>
  323. <Column size="0"/>
  324. </Columns>
  325. <Rows>
  326. <Row size="24" band="head"/>
  327. <Row size="24"/>
  328. </Rows>
  329. <Band id="head">
  330. <Cell text="수술일자"/>
  331. <Cell col="1" text="수술명"/>
  332. <Cell col="2" text="진료기관"/>
  333. <Cell col="3" text="ophistpk"/>
  334. </Band>
  335. <Band id="body">
  336. <Cell displaytype="normal" edittype="date" text="bind:opdd" editautoselect="true" editautoskip="true" calendardisplaynulltype="nulltext"/>
  337. <Cell col="1" displaytype="text" edittype="text" text="bind:opnm"/>
  338. <Cell col="2" displaytype="text" edittype="text" text="bind:orddept"/>
  339. <Cell col="3" text="bind:ophistpk"/>
  340. </Band>
  341. </Format>
  342. </Formats>
  343. </Grid>
  344. <Button position="absolute 336 102 389 121" id="btn_famyhistdel" class="btn2" taborder="61" text="행삭제" onclick="btn_famyhistdel_onclick"/>
  345. <CheckBox position="absolute 154 411 224 426" id="chk_rectmedistatinclyn" taborder="68" visible="false" text="해당없음" truevalue="1" onclick="chk_rectmedistatinclyn_onclick" onchanged="chk_rectmedistatinclyn_onchanged"/>
  346. <Button position="absolute 280 518 333 537" id="btn_allghistadd" class="btn2" taborder="72" text="행추가" onclick="btn_allghistadd_onclick"/>
  347. <Button position="absolute 280 304 333 323" id="btn_ophistadd" class="btn2" taborder="66" text="행추가" onclick="btn_ophistadd_onclick"/>
  348. <Static text="Allergy" position="absolute 0 522 69 543" id="caption7" class="tit_2"/>
  349. <Button position="absolute 259 204 275 220" id="btn_inhistpop" class="icon_search" text="" onclick="btn_inhistpop_onclick"/>
  350. <Button position="absolute 259 305 275 321" id="btn_ophistpop" class="icon_search" text="" onclick="btn_ophistpop_onclick"/>
  351. <Button position="absolute 259 520 275 536" id="btn_allg" class="icon_search" text="" onclick="btn_allg_onclick"/>
  352. <Edit position="absolute 565 52 679 71" align="align:center middle;" id="ipt_drunkinfokind" enable="false" taborder="38" autoselect="true" autoskip="true"/>
  353. <Radio position="absolute 487 50 578 71" id="rdo_drunkinfo" taborder="37" columncount="2" codecolumn="codecolumn" datacolumn="datacolumn" onitemchanged="rdo_drunkinfo_onitemchanged">
  354. <Dataset id="innerdataset">
  355. <ColumnInfo>
  356. <Column id="codecolumn"/>
  357. <Column id="datacolumn"/>
  358. </ColumnInfo>
  359. <Rows>
  360. <Row>
  361. <Col id="codecolumn">1</Col>
  362. <Col id="datacolumn">무</Col>
  363. </Row>
  364. <Row>
  365. <Col id="codecolumn">2</Col>
  366. <Col id="datacolumn">유</Col>
  367. </Row>
  368. </Rows>
  369. </Dataset>
  370. </Radio>
  371. <Shape position="absolute 394 71 785 77" linetype="horizontal" id="line31" class="line_2"/>
  372. <Static text="흡연정보" position="absolute 394 25 484 48" align="align:left middle;" id="cap_smokinfo" class="cell_1"/>
  373. <Edit position="absolute 565 76 783 95" id="ipt_gustofood" enable="false" taborder="41" autoselect="true" autoskip="true"/>
  374. <Static text="기호식품" position="absolute 394 73 484 96" id="cap_gustofoodyn" class="cell_1"/>
  375. <Shape position="absolute 394 95 785 101" linetype="horizontal" id="line32" class="line_2"/>
  376. <Shape position="absolute 394 47 785 53" linetype="horizontal" id="line44" class="line_2"/>
  377. <Shape position="absolute 394 20 785 26" linetype="horizontal" id="line33" class="line_10"/>
  378. <Static text="기호정보" position="absolute 394 4 490 25" id="caption42" class="tit_2"/>
  379. <Radio position="absolute 487 75 578 96" id="rdo_gustofoodyn" taborder="40" columncount="2" codecolumn="codecolumn" datacolumn="datacolumn" onitemchanged="rdo_gustofoodyn_onitemchanged">
  380. <Dataset id="innerdataset">
  381. <ColumnInfo>
  382. <Column id="codecolumn"/>
  383. <Column id="datacolumn"/>
  384. </ColumnInfo>
  385. <Rows>
  386. <Row>
  387. <Col id="codecolumn">1</Col>
  388. <Col id="datacolumn">무</Col>
  389. </Row>
  390. <Row>
  391. <Col id="codecolumn">2</Col>
  392. <Col id="datacolumn">유</Col>
  393. </Row>
  394. </Rows>
  395. </Dataset>
  396. </Radio>
  397. <Shape position="absolute 394 119 785 125" linetype="horizontal" id="line36" class="line_3"/>
  398. <Static text="수혈부작용" position="absolute 394 97 484 120" id="cap_tnsseffcyn" class="cell_1"/>
  399. <Edit position="absolute 682 52 737 71" align="align:center middle;" id="ipt_drunkinfoterm" enable="false" taborder="39" autoselect="true" autoskip="true"/>
  400. <Static text="기간(년)" position="absolute 741 52 790 71" align="align:center middle;" id="cap_drunkinfoterm"/>
  401. <Edit position="absolute 565 100 783 119" id="ipt_tnsseffc" enable="false" taborder="43" autoselect="true" autoskip="true"/>
  402. <Radio position="absolute 487 100 578 121" id="radio1" taborder="42" columncount="2" codecolumn="codecolumn" datacolumn="datacolumn" onitemchanged="radio1_onitemchanged">
  403. <Dataset id="innerdataset">
  404. <ColumnInfo>
  405. <Column id="codecolumn"/>
  406. <Column id="datacolumn"/>
  407. </ColumnInfo>
  408. <Rows>
  409. <Row>
  410. <Col id="codecolumn">1</Col>
  411. <Col id="datacolumn">무</Col>
  412. </Row>
  413. <Row>
  414. <Col id="codecolumn">2</Col>
  415. <Col id="datacolumn">유</Col>
  416. </Row>
  417. </Rows>
  418. </Dataset>
  419. </Radio>
  420. <Static text="음주정보" position="absolute 394 49 484 72" id="cap_drunkinfo" class="cell_1"/>
  421. <Edit position="absolute 568 26 678 45" id="ipt_smokinfocnt" enable="false" taborder="41" autoselect="true" autoskip="true"/>
  422. <Radio position="absolute 82 519 254 540" id="rdo_allgyn" columncount="-1" codecolumn="codecolumn" datacolumn="datacolumn" rowcount="-1" onitemchanged="rdo_allgyn_onitemchanged">
  423. <Dataset id="innerdataset">
  424. <ColumnInfo>
  425. <Column id="codecolumn"/>
  426. <Column id="datacolumn"/>
  427. </ColumnInfo>
  428. <Rows>
  429. <Row>
  430. <Col id="codecolumn">1</Col>
  431. <Col id="datacolumn">무</Col>
  432. </Row>
  433. <Row>
  434. <Col id="codecolumn">2</Col>
  435. <Col id="datacolumn">유</Col>
  436. </Row>
  437. <Row>
  438. <Col id="codecolumn">3</Col>
  439. <Col id="datacolumn">잘모름</Col>
  440. </Row>
  441. </Rows>
  442. </Dataset>
  443. </Radio>
  444. <Static id="Static00" position="absolute 715 27 767 48" text="확인불능"/>
  445. </Layout>
  446. </Layouts>
  447. <Objects/>
  448. <Bind>
  449. <BindItem id="item0" compid="chk_pasthistyn" propid="value" datasetid="ds_data_pasthist1" columnid="pasthistinclyn"/>
  450. <BindItem id="item1" compid="chk_famyhistyn" propid="value" datasetid="ds_data_famyhist1" columnid="famyhistinclyn"/>
  451. <BindItem id="item2" compid="chk_inhistyn" propid="value" datasetid="ds_data_inhist1" columnid="inhistinclyn"/>
  452. <BindItem id="item3" compid="chk_ophistinclyn" propid="value" datasetid="ds_data_ophist1" columnid="ophistinclyn"/>
  453. <BindItem id="item4" compid="chk_rectmedistatinclyn" propid="value" datasetid="ds_data_rectmedistat1" columnid="rectmedistatinfoinclyn"/>
  454. <BindItem id="item5" compid="rdo_allgyn" propid="value" datasetid="ds_data_allghist1" columnid="allghistinclyn"/>
  455. <BindItem id="item6" compid="rdo_smokinfo" propid="value" datasetid="ds_data_smokinfo" columnid="smokinfoyn"/>
  456. <BindItem id="item7" compid="rdo_drunkinfo" propid="value" datasetid="ds_data_drunkinfo" columnid="drunkinfoyn"/>
  457. <BindItem id="item8" compid="rdo_gustofoodyn" propid="value" datasetid="ds_data_gustofoodinfo" columnid="gustofoodyn"/>
  458. <BindItem id="item9" compid="radio1" propid="value" datasetid="ds_data_tnsseffcinfo" columnid="tnsseffcyn"/>
  459. <BindItem id="item10" compid="ipt_tnsseffc" propid="value" datasetid="ds_data_tnsseffcinfo" columnid="tnsseffcdetl"/>
  460. <BindItem id="item11" compid="ipt_gustofood" propid="value" datasetid="ds_data_gustofoodinfo" columnid="gustofooddetl"/>
  461. <BindItem id="item12" compid="ipt_drunkinfokind" propid="value" datasetid="ds_data_drunkinfo" columnid="drunkinfokind"/>
  462. <BindItem id="item13" compid="ipt_drunkinfoterm" propid="value" datasetid="ds_data_drunkinfo" columnid="drunkinfoterm"/>
  463. <BindItem id="item14" compid="ipt_smokinfocnt" propid="value" datasetid="ds_data_smokinfo" columnid="smokinfocnt"/>
  464. <BindItem id="item15" compid="chk_smokinfoinclyn" propid="value" datasetid="ds_data_smok" columnid="smokinclyn"/>
  465. <BindItem id="item16" compid="chk_drunkinfoinclyn" propid="value" datasetid="ds_data_drunk1" columnid="drunkinclyn"/>
  466. <BindItem id="item17" compid="chk_gustofoodinclyn" propid="value" datasetid="ds_data_gustofood1" columnid="gustofoodinclyn"/>
  467. <BindItem id="item18" compid="chk_tnsseffcinclyn" propid="value" datasetid="ds_data_tnsseffc1" columnid="tnsseffcinclyn"/>
  468. <BindItem id="item19" compid="rdo_tnsseffcyn" propid="value" datasetid="ds_data_tnsseffc1" columnid="tnsyn"/>
  469. <BindItem id="item20" compid="ipt_tnsseffcdetl" propid="value" datasetid="ds_data_tnsseffc1" columnid="tnsdetl"/>
  470. </Bind>
  471. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  472. * System Name :
  473. * Job Name :
  474. * Creator :
  475. * Make Date : 2015-11-13
  476. * Description :
  477. *---------------------------------------------------------------------------------------
  478. * Modify Date Modifier Modify Description
  479. *---------------------------------------------------------------------------------------
  480. * 2015-11-13 Live Converter TF->XP
  481. *
  482. *---------------------------------------------------------------------------------------
  483. ****************************************************************************************/
  484. include "com_commonxp::comm_main.xjs";
  485. var status = "select";
  486. function SMMNW08800_oninit(obj:Form, e:InitEventInfo)
  487. {
  488. frmf_initForm(obj);
  489. }
  490. function SMMNW08800_onload(obj:Form, e:LoadEventInfo)
  491. {
  492. grdf_initGrid(grd_allghist);
  493. grdf_initGrid(grd_drunkinfo);
  494. grdf_initGrid(grd_famyhist);
  495. grdf_initGrid(grd_gustofood);
  496. grdf_initGrid(grd_inhist);
  497. grdf_initGrid(grd_ophist);
  498. grdf_initGrid(grd_pasthist);
  499. grdf_initGrid(grd_rectmedistat);
  500. grdf_initGrid(grd_smokinfo);
  501. }
  502. function isCheckGridDataYN(grdData)
  503. {
  504. var isEmptyYN = "Y";
  505. if(grdData.rowcount == 2)
  506. {
  507. for(var i = 0; i < grdData.getColCount(); i++)
  508. {
  509. if(!utlf_isNull(grdData.getColumn(0, i)))
  510. {
  511. isEmptyYN = "N";
  512. break;
  513. }
  514. else
  515. {
  516. isEmptyYN = "Y";
  517. break;
  518. }
  519. }
  520. }
  521. else if(grdData.rowcount < 1)
  522. {
  523. isEmptyYN = "Y";
  524. }
  525. else
  526. {
  527. isEmptyYN = "N";
  528. }
  529. if(isEmptyYN == "Y")
  530. {
  531. status = "select";
  532. }
  533. return isEmptyYN;
  534. }
  535. function fSetStatus()
  536. {
  537. var rtn = "";
  538. if(status == "select")
  539. {
  540. rtn = "6";
  541. }
  542. else
  543. {
  544. rtn = sysf_messageBox("데이터를 ", "Q001");
  545. }
  546. return rtn;
  547. }
  548. function chk_pasthistyn_onclick(obj:CheckBox, e:ClickEventInfo)
  549. {
  550. if(obj.value == "1")
  551. {
  552. var isEmptyYN = "Y";
  553. isEmptyYN = isCheckGridDataYN(ds_data_pasthist2);
  554. var rtn = fSetStatus();
  555. if(rtn == "6")
  556. {
  557. ds_data_pasthist2.clearData();
  558. btn_pasthistadd.enable = false;
  559. btn_pasthistdel.enable = false;
  560. }
  561. else if(rtn == "7")
  562. {
  563. ds_data_pasthist1.setColumn(0, "pasthistinclyn", "");
  564. }
  565. }
  566. else
  567. {
  568. ds_data_pasthist1.setColumn(0, "pasthistinclyn", "");
  569. btn_pasthistadd.enable = true;
  570. btn_pasthistdel.enable = true;
  571. ds_data_pasthist2.addRow();
  572. }
  573. }
  574. function btn_pasthistadd_onclick(obj:Button, e:ClickEventInfo)
  575. {
  576. ds_data_pasthist2.addRow();
  577. }
  578. function btn_pasthistdel_onclick(obj:Button, e:ClickEventInfo)
  579. {
  580. ds_data_pasthist2.deleteRow(ds_data_pasthist2.rowposition);
  581. }
  582. function chk_famyhistyn_onclick(obj:CheckBox, e:ClickEventInfo)
  583. {
  584. if(obj.value == "1")
  585. {
  586. var isEmptyYN = "Y";
  587. isEmptyYN = isCheckGridDataYN(ds_data_famyhist2);
  588. var rtn = fSetStatus();
  589. if(rtn == "6")
  590. {
  591. ds_data_famyhist2.clearData();
  592. btn_famyhistadd.enable = false;
  593. btn_famyhistdel.enable = false;
  594. status = "select";
  595. }
  596. else if(rtn == "7")
  597. {
  598. ds_data_famyhist1.setColumn(0, "famyhistinclyn", "");
  599. }
  600. }
  601. else
  602. {
  603. ds_data_famyhist1.setColumn(0, "famyhistinclyn", "");
  604. btn_famyhistadd.enable = true;
  605. btn_famyhistdel.enable = true;
  606. ds_data_famyhist2.addRow();
  607. }
  608. }
  609. function btn_famyhistadd_onclick(obj:Button, e:ClickEventInfo)
  610. {
  611. ds_data_famyhist2.addRow();
  612. }
  613. function btn_famyhistdel_onclick(obj:Button, e:ClickEventInfo)
  614. {
  615. ds_data_famyhist2.deleteRow(ds_data_famyhist2.rowposition);
  616. }
  617. function chk_inhistyn_onclick(obj:CheckBox, e:ClickEventInfo)
  618. {
  619. if(obj.value == "1")
  620. {
  621. var isEmptyYN = "Y";
  622. isEmptyYN = isCheckGridDataYN(ds_data_inhist2);
  623. var rtn = fSetStatus();
  624. if(rtn == "6")
  625. {
  626. ds_data_inhist2.clearData();
  627. btn_inhistadd.enable = false;
  628. btn_inhistdel.enable = false;
  629. btn_inhistpop.enable = false;
  630. }
  631. else if(rtn == "7")
  632. {
  633. ds_data_inhist1.setColumn(0, "inhistinclyn", "");
  634. }
  635. }
  636. else
  637. {
  638. ds_data_inhist1.setColumn(0, "inhistinclyn", "");
  639. btn_inhistadd.enable = true;
  640. btn_inhistdel.enable = true;
  641. btn_inhistpop.enable = true;
  642. ds_data_inhist2.addRow();
  643. }
  644. }
  645. function btn_inhistpop_onclick(obj:Button, e:ClickEventInfo)
  646. {
  647. var ioflag = ds_temp_cond_list.getColumn(0, "ioflag");
  648. var indd = "";
  649. if(ioflag == "O")
  650. {
  651. indd = ds_temp_cond_list.getColumn(0, "orddd");
  652. }
  653. else
  654. {
  655. indd = ds_temp_cond_list.getColumn(0, "indd");
  656. }
  657. frmf_setParameter("histflag", "inhist");
  658. frmf_setParameter("pid", ds_temp_cond_list.getColumn(0, "pid"));
  659. frmf_setParameter("indd", indd);
  660. frmf_setParameter("instcd", ds_temp_cond_list.getColumn(0, "instcd"));
  661. frmf_setParameter("parentFormId", ds_parentFormId.getColumn(0, "cd"));
  662. frmf_open("SPMNW12800", "SPMNW12800", "", "", "", "", "", "", "", "", "", "", "M");
  663. }
  664. function btn_inhistadd_onclick(obj:Button, e:ClickEventInfo)
  665. {
  666. ds_data_inhist2.addRow();
  667. grdDateType(ds_data_inhist2, "indd", 0, grd_inhist);
  668. grdDateType(ds_data_inhist2, "dschdd", 1, grd_inhist);
  669. }
  670. function btn_inhistdel_onclick(obj:Button, e:ClickEventInfo)
  671. {
  672. ds_data_inhist2.deleteRow(ds_data_inhist2.rowposition);
  673. }
  674. function chk_ophistinclyn_onclick(obj:CheckBox, e:ClickEventInfo)
  675. {
  676. if(obj.value == "1")
  677. {
  678. var isEmptyYN = "Y";
  679. isEmptyYN = isCheckGridDataYN(ds_data_ophist2);
  680. var rtn = fSetStatus();
  681. if(rtn == "6")
  682. {
  683. ds_data_ophist2.clearData();
  684. btn_ophistadd.enable = false;
  685. btn_ophistdel.enable = false;
  686. btn_ophistpop.enable = false;
  687. }
  688. else if(rtn == "7")
  689. {
  690. ds_data_ophist1.setColumn(0, "ophistinclyn", "");
  691. }
  692. }
  693. else
  694. {
  695. ds_data_ophist1.setColumn(0, "ophistinclyn", "");
  696. btn_ophistadd.enable = true;
  697. btn_ophistdel.enable = true;
  698. btn_ophistpop.enable = true;
  699. ds_data_ophist2.addRow();
  700. }
  701. }
  702. function btn_ophistpop_onclick(obj:Button, e:ClickEventInfo)
  703. {
  704. var ioflag = ds_temp_cond_list.getColumn(0, "ioflag");
  705. var indd = "";
  706. if(ioflag == "O")
  707. {
  708. indd = ds_temp_cond_list.getColumn(0, "orddd");
  709. }
  710. else
  711. {
  712. indd = ds_temp_cond_list.getColumn(0, "indd");
  713. }
  714. frmf_setParameter("histflag", "ophist");
  715. frmf_setParameter("pid", ds_temp_cond_list.getColumn(0, "pid"));
  716. frmf_setParameter("indd", indd);
  717. frmf_setParameter("instcd", ds_temp_cond_list.getColumn(0, "instcd"));
  718. frmf_open("SPMNW12800", "SPMNW12800", "", "", "", "", "", "", "", "", "", "", "M");
  719. }
  720. function btn_ophistadd_onclick(obj:Button, e:ClickEventInfo)
  721. {
  722. ds_data_ophist2.addRow();
  723. grdDateType(ds_data_ophist2, "opdd", 0, grd_ophist);
  724. }
  725. function btn_ophistdel_onclick(obj:Button, e:ClickEventInfo)
  726. {
  727. ds_data_ophist.deleteRow(ds_data_ophist.rowposition);
  728. }
  729. function chk_rectmedistatinclyn_onclick(obj:CheckBox, e:ClickEventInfo)
  730. {
  731. if(obj.value == "1")
  732. {
  733. var isEmptyYN = "Y";
  734. isEmptyYN = isCheckGridDataYN(ds_data_rectmedistat2);
  735. var rtn = fSetStatus();
  736. if(rtn == "6")
  737. {
  738. ds_data_rectmedistat2.clearData();
  739. btn_rectmedistatadd.enable = false;
  740. btn_rectmedistatdel.enable = false;
  741. }
  742. else if(rtn == "7")
  743. {
  744. ds_data_rectmedistat1.setColumn(0, "rectmedistatinfoinclyn", "");
  745. }
  746. }
  747. else
  748. {
  749. ds_data_rectmedistat1.setColumn(0, "rectmedistatinfoinclyn", "");
  750. btn_rectmedistatadd.enable = true;
  751. btn_rectmedistatdel.enable = true;
  752. ds_data_rectmedistat2.addRow();
  753. }
  754. }
  755. function btn_rectmedistatadd_onclick(obj:Button, e:ClickEventInfo)
  756. {
  757. ds_data_rectmedistat2.addRow();
  758. }
  759. function btn_rectmedistatdel_onclick(obj:Button, e:ClickEventInfo)
  760. {
  761. ds_data_rectmedistat2.deleteRow(ds_data_rectmedistat2.rowposition);
  762. }
  763. function rdo_allgyn_onitemchanged(obj:Radio, e:ItemChangeEventInfo)
  764. {
  765. if(obj.value == "1")
  766. {
  767. var isEmptyYN = "Y";
  768. isEmptyYN = isCheckGridDataYN(ds_data_allghist2);
  769. var rtn = fSetStatus();
  770. if(rtn == "6")
  771. {
  772. ds_data_allghist2.clearData();
  773. btn_allghistadd.enable = false;
  774. btn_allghistdel.enable = false;
  775. }
  776. else if(rtn == "7")
  777. {
  778. ds_data_allghist1.setColumn(0, "allghistinclyn", "");
  779. }
  780. }
  781. else
  782. {
  783. btn_allghistadd.enable = true;
  784. btn_allghistdel.enable = true;
  785. if(ds_data_allghist2.rowcoumnt == 1)
  786. {
  787. ds_data_allghist2.addRow();
  788. }
  789. }
  790. }
  791. function btn_allg_onclick(obj:Button, e:ClickEventInfo)
  792. {
  793. frmf_open("SPMMD03300", "SPMMD03300", "", "", "", "", "", "", "", "", "", "", "M");
  794. }
  795. function btn_allghistadd_onclick(obj:Button, e:ClickEventInfo)
  796. {
  797. ds_data_allghist2.addRow();
  798. }
  799. function btn_allghistdel_onclick(obj:Button, e:ClickEventInfo)
  800. {
  801. ds_data_allghist2.deleteRow(ds_data_allghist2.rowposition);
  802. }
  803. function rdo_smokinfo_onitemchanged(obj:Radio, e:ItemChangeEventInfo)
  804. {
  805. if(obj.value == "2")
  806. {
  807. ipt_smokinfocnt.enable = true;
  808. }
  809. else
  810. {
  811. ipt_smokinfocnt.enable = false;
  812. ds_data_smokinfo.setColumn(0, "smokinfocnt", "");
  813. }
  814. }
  815. function rdo_drunkinfo_onitemchanged(obj:Radio, e:ItemChangeEventInfo)
  816. {
  817. if(obj.value == "2")
  818. {
  819. ipt_drunkinfokind.enable = true;
  820. ipt_drunkinfoterm.enable = true;
  821. }
  822. else
  823. {
  824. ds_data_drunkinfo.setColumn(0, "drunkinfokind", "");
  825. ds_data_drunkinfo.setColumn(0, "drunkinfoterm", "");
  826. ipt_drunkinfokind.enable = false;
  827. ipt_drunkinfoterm.enable = false;
  828. }
  829. }
  830. function rdo_gustofoodyn_onitemchanged(obj:Radio, e:ItemChangeEventInfo)
  831. {
  832. if(obj.value == "2")
  833. {
  834. ipt_gustofood.enable = true;
  835. }
  836. else
  837. {
  838. ds_data_gustofoodinfo.setColumn(0, "gustofooddetl", "");
  839. ipt_gustofood.enable = false;
  840. }
  841. }
  842. function radio1_onitemchanged(obj:Radio, e:ItemChangeEventInfo)
  843. {
  844. if(obj.value == "2")
  845. {
  846. ipt_tnsseffc.enable = true;
  847. }
  848. else
  849. {
  850. ds_data_tnsseffcinfo.setColumn(0, "tnsseffcdetl", "");
  851. ipt_tnsseffc.enable = false;
  852. }
  853. }
  854. function chk_smokinfoinclyn_onclick(obj:CheckBox, e:ClickEventInfo)
  855. {
  856. if(obj.value == "1")
  857. {
  858. var rtn = "";
  859. rtn = fSetStatus();
  860. if(rtn == "6")
  861. {
  862. btn_smokinfoadd.enable = false;
  863. btn_smokinfodel.enable = false;
  864. ds_data_smok2.clearData();
  865. }
  866. else
  867. {
  868. ds_data_smok1.setColumn(0, "smokinclyn", "");
  869. return;
  870. }
  871. }
  872. else
  873. {
  874. ds_data_smok1.setColumn(0, "smokinclyn", "");
  875. btn_smokinfoadd.enable = true;
  876. btn_smokinfodel.enable = true;
  877. }
  878. }
  879. function btn_smokinfoadd_onclick(obj:Button, e:ClickEventInfo)
  880. {
  881. ds_data_smok2.addRow();
  882. }
  883. function btn_smokinfodel_onclick(obj:Button, e:ClickEventInfo)
  884. {
  885. ds_data_smok2.deleteRow(ds_data_smok2.rowposition)
  886. }
  887. function chk_pasthistyn_onchanged(obj:CheckBox, e:CheckBoxChangeEventInfo)
  888. {
  889. status = "";
  890. }
  891. function chk_famyhistyn_onchanged(obj:CheckBox, e:CheckBoxChangeEventInfo)
  892. {
  893. status = "";
  894. }
  895. function chk_inhistyn_onchanged(obj:CheckBox, e:CheckBoxChangeEventInfo)
  896. {
  897. status = "";
  898. }
  899. function chk_ophistinclyn_onchanged(obj:CheckBox, e:CheckBoxChangeEventInfo)
  900. {
  901. status = "";
  902. }
  903. function chk_rectmedistatinclyn_onchanged(obj:CheckBox, e:CheckBoxChangeEventInfo)
  904. {
  905. status = "";
  906. }
  907. function chk_smokinfoinclyn_onchanged(obj:CheckBox, e:CheckBoxChangeEventInfo)
  908. {
  909. status = "";
  910. }
  911. function chk_drunkinfoinclyn_onchanged(obj:CheckBox, e:CheckBoxChangeEventInfo)
  912. {
  913. status = "";
  914. }
  915. function chk_drunkinfoinclyn_onclick(obj:CheckBox, e:ClickEventInfo)
  916. {
  917. if(obj.value == "1")
  918. {
  919. var rtn = "";
  920. rtn = fSetStatus();
  921. if(rtn =="6")
  922. {
  923. btn_drunkinfoadd.enable = false;
  924. btn_drunkinfodel.enable = false;
  925. ds_data_drunkinfo.clearData();
  926. }
  927. else
  928. {
  929. ds_data_drunkinfo.setColumn(0, "drunkinclyn", "");
  930. return;
  931. }
  932. }
  933. else
  934. {
  935. ds_data_drunkinfo.setColumn(0, "drunkinclyn", "");
  936. btn_drunkinfoadd.enable = true;
  937. btn_drunkinfodel.enable = true;
  938. }
  939. }
  940. function btn_drunkinfoadd_onclick(obj:Button, e:ClickEventInfo)
  941. {
  942. ds_data_drunkinfo.addRow();
  943. }
  944. function btn_drunkinfodel_onclick(obj:Button, e:ClickEventInfo)
  945. {
  946. ds_data_drunkinfo.deleteRow(ds_data_drunkinfo.rowposition);
  947. }
  948. function chk_gustofoodinclyn_onclick(obj:CheckBox, e:ClickEventInfo)
  949. {
  950. if(obj.value == "1")
  951. {
  952. var rtn = "";
  953. rtn = fSetStatus();
  954. if(rtn == "6")
  955. {
  956. btn_gustofoodinfoadd.enable = false;
  957. btn_gustofoodinfodel.enable = false;
  958. ds_data_gustofood2.clearData();
  959. }
  960. else
  961. {
  962. ds_data_gustofood1.setColumn(0, "gustofoodinclyn", "");
  963. return;
  964. }
  965. }
  966. else
  967. {
  968. ds_data_gustofood1.setColumn(0, "gustofoodinclyn", "");
  969. btn_gustofoodinfoadd.enable = true;
  970. btn_gustofoodinfodel.enable = true;
  971. }
  972. }
  973. function chk_gustofoodinclyn_onchanged(obj:CheckBox, e:CheckBoxChangeEventInfo)
  974. {
  975. status = "";
  976. }
  977. function btn_gustofoodinfoadd_onclick(obj:Button, e:ClickEventInfo)
  978. {
  979. ds_data_gustofood2.addRow();
  980. }
  981. function btn_gustofoodinfodel_onclick(obj:Button, e:ClickEventInfo)
  982. {
  983. ds_data_gustofood2.deleteRow(ds_data_gustofood2.rowposition);
  984. }
  985. function chk_tnsseffcinclyn_onclick(obj:CheckBox, e:ClickEventInfo)
  986. {
  987. if(obj.value == "1")
  988. {
  989. var rtn = "";
  990. rtn = fSetStatus();
  991. if(rtn == "6")
  992. {
  993. status = "click";
  994. rdo_tnsseffcyn.enable = false;
  995. ipt_tnsseffcdetl.enable = false;
  996. ds_data_tnsseffcinfo.setColumn(0, "tnsyn", "");
  997. ds_data_tnsseffcinfo.setColumn(0, "tnsdetl", "");
  998. }
  999. else
  1000. {
  1001. ds_data_tnsseffcinfo.setColumn(0, "tnsseffcinclyn", "");
  1002. return;
  1003. }
  1004. }
  1005. else
  1006. {
  1007. ds_data_tnsseffcinfo.setColumn(0, "tnsseffcinclyn", "");
  1008. rdo_tnsseffcyn.enable = true;
  1009. ipt_tnsseffcdetl.enable = true;
  1010. }
  1011. }
  1012. function chk_tnsseffcinclyn_onchanged(obj:CheckBox, e:CheckBoxChangeEventInfo)
  1013. {
  1014. status = "";
  1015. }
  1016. function rdo_tnsseffcyn_onitemchanged(obj:Radio, e:ItemChangeEventInfo)
  1017. {
  1018. if(obj.value == "2")
  1019. {
  1020. ipt_tnsseffcdetl.enable = true;
  1021. }
  1022. else
  1023. {
  1024. ipt_tnsseffcdetl.enable = false;
  1025. dsf_makeValue(ds_data_tnsseffc1, "tnsseffcdetl", "string", "", 0);
  1026. }
  1027. }
  1028. function fInitEventHistInfo()
  1029. {
  1030. if(ds_data_pasthist1.getColumn(0, "pasthistinclyn") == "1")
  1031. {
  1032. frmf_inputEnterKey("chk_pasthistyn", "onclick", new ClickEventInfo );
  1033. }
  1034. if(ds_data_famyhist1.getColumn(0, "famyhistinclyn") == "1")
  1035. {
  1036. frmf_inputEnterKey("chk_famyhistyn", "onclick", new ClickEventInfo );
  1037. }
  1038. if(ds_data_inhist1.getColumn(0, "inhistinclyn") == "1")
  1039. {
  1040. frmf_inputEnterKey("chk_inhistyn", "onclick", new ClickEventInfo );
  1041. }
  1042. if(ds_data_ophist1.getColumn(0, "ophistinclyn") == "1")
  1043. {
  1044. frmf_inputEnterKey("chk_ophistinclyn", "onclick", new ClickEventInfo );
  1045. }
  1046. if(ds_data_rectmedistat1.getColumn(0, "rectmedistatinfoinclyn") == "1")
  1047. {
  1048. frmf_inputEnterKey("chk_rectmedistatinclyn", "onclick", new ClickEventInfo );
  1049. }
  1050. if(ds_data_allghist1.getColumn(0, "allghistinclyn") == "1")
  1051. {
  1052. frmf_inputEnterKey("rdo_allgyn", "onitemchanged", new ItemChangeEventInfo );
  1053. }
  1054. frmf_inputEnterKey("rdo_smokinfo", "onitemchanged", new ItemChangeEventInfo );
  1055. frmf_inputEnterKey("rdo_drunkinfo", "onitemchanged", new ItemChangeEventInfo );
  1056. frmf_inputEnterKey("rdo_gustofoodyn", "onitemchanged", new ItemChangeEventInfo );
  1057. frmf_inputEnterKey("rdo_tnsseffcyn", "onitemchanged", new ItemChangeEventInfo );
  1058. }]]></Script>
  1059. </Form>
  1060. </FDL>