SMMNR03400_간호일지타입II.xfdl 63 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SMMNR03400" position="absolute 0 0 950 762" titletext="간호일지 Type Ⅱ" onload="SMMNR03400_onload" onclose="SMMNR03400_onclose" scrollbars="none" ontimer="SMMNR03400_ontimer">
  5. <Layouts>
  6. <Layout>
  7. <Static id="cap_settingrn" text="내환자" class="cell_1" position="absolute 390 27 475 50" visible="false"/>
  8. <Static id="Static03" position="absolute 0 26 950 52" anchor="left top right" class="div_SA"/>
  9. <Div id="grp_opanst" visible="false" position="absolute 0 191 190 326" anchor="default" positiontype="position">
  10. <Layouts>
  11. <Layout>
  12. <Button id="button2" class="btn2" position="absolute 87 110 129 130" anchor="default" positiontype="position" text="선택" onlbuttonup="button2_onlbuttonup" onclick="button2_onclick"/>
  13. <Button id="button8" class="btn2" position="absolute 132 110 174 130" anchor="default" positiontype="position" text="닫기" onlbuttonup="button8_onlbuttonup" onclick="button8_onclick"/>
  14. <Grid id="grd_opanst" position="absolute 15 5 175 105" anchor="default" positiontype="position" onkeydown="grd_opanst_onkeydown" binddataset="ds_init_opanstlist" ondbclick="grd_opanst_ondbclick" oncelldblclick="grp_opanst_grd_opanst_oncelldblclick">
  15. <Formats>
  16. <Format id="default">
  17. <Columns>
  18. <Column size="158"/>
  19. <Column size="0"/>
  20. <Column size="0"/>
  21. </Columns>
  22. <Rows>
  23. <row size="24" band="head"/>
  24. <row size="24"/>
  25. </Rows>
  26. <Band id="head">
  27. <Cell text="용도(부서)"/>
  28. <Cell col="1" text="recflag"/>
  29. <Cell col="2" text="그룹코드"/>
  30. </Band>
  31. <Band id="body">
  32. <Cell text="bind:hngnm"/>
  33. <Cell col="1" visible="false" text="bind:recflag"/>
  34. <Cell col="2" visible="false" text="bind:grupcd"/>
  35. <Cell col="3"/>
  36. </Band>
  37. </Format>
  38. </Formats>
  39. </Grid>
  40. </Layout>
  41. </Layouts>
  42. </Div>
  43. <Shape id="line7" class="line_10" position="absolute 0 23 950 29" anchor="default" positiontype="position" linetype="horizontal" style="strokepen:3 solid #33bbbbff;"/>
  44. <Static id="caption3" class="cell_1" position="absolute 1 27 101 51" anchor="default" positiontype="position" text="용도(부서)선택"/>
  45. <Shape id="line3" class="line_2" position="absolute 0 59 653 59" anchor="default" positiontype="position" linetype="horizontal"/>
  46. <Static id="caption4" class="cell_1" position="absolute 390 27 475 52" anchor="default" positiontype="position" text="환자정보" style="align:center middle;"/>
  47. <Tab id="swt_recinfo" position="absolute 0 41 950 756" anchor="all" positiontype="position" class="tab_Normal">
  48. <Tabpages>
  49. <Tabpage id="stmtinfo" class="tab_Normal" scrollbars="autoboth">
  50. <Layouts>
  51. <Layout>
  52. <Static id="Static00" class="div_SA" position="absolute 0 652 950 703" anchor="left right bottom"/>
  53. <Static id="Static03" class="div_SA" position="absolute 0 0 950 29" anchor="left top right"/>
  54. <Button id="button1" class="btn3" position="absolute 866 5 946 25" anchor="top right" positiontype="position" text="기록조회" onclick="button1_onclick"/>
  55. <Button id="btn_stmtsave" class="btn3" position="absolute 783 5 863 25" anchor="top right" positiontype="position" text="인증저장" onclick="btn_stmtsave_onclick"/>
  56. <Calendar id="ipt_recdd" class="input_default" taborder="2" position="absolute 197 5 297 25" anchor="default" positiontype="position" dateformat="yyyy-MM-dd" value="null" autoselect="true" autoskip="true"/>
  57. <MaskEdit id="ipt_rectm" class="input_default" taborder="3" mask="##:##" position="absolute 300 5 340 25" anchor="default" positiontype="position" imemode="hangul" type="string" onkeydown="swt_recinfo_stmtinfo_ipt_rectm_onkeydown" maskchar=" " displaynulltext=" " style="align:center middle;" ontextchange="swt_recinfo_stmtinfo_ipt_rectm_ontextchange" autoselect="true" trimtype="both" autoskip="true"/>
  58. <Button id="btn_recdt" class="btn5" enable="true" taborder="4" position="absolute 343 5 387 25" anchor="default" positiontype="position" text="적용" onclick="btn_recdt_onclick"/>
  59. <Static id="caption2" class="cell_1" position="absolute 0 3 100 27" anchor="default" positiontype="position" text="기록일자 정보"/>
  60. <Radio id="rdo_recflag" taborder="1" columncount="2" position="absolute 104 5 200 25" anchor="default" positiontype="position" codecolumn="codecolumn" datacolumn="datacolumn" onitemchanged="swt_recinfo_stmtinfo_rdo_recflag_onitemchanged">
  61. <Dataset id="innerdataset">
  62. <ColumnInfo>
  63. <Column id="codecolumn" size="256"/>
  64. <Column id="datacolumn" size="256"/>
  65. </ColumnInfo>
  66. <Rows>
  67. <Row>
  68. <Col id="codecolumn">A</Col>
  69. <Col id="datacolumn">자동</Col>
  70. </Row>
  71. <Row>
  72. <Col id="codecolumn">U</Col>
  73. <Col id="datacolumn">지정</Col>
  74. </Row>
  75. </Rows>
  76. </Dataset>
  77. </Radio>
  78. <Static id="caption52" class="cell_1" position="absolute 1 678 143 702" style="align:center middle;" anchor="left bottom" positiontype="position" text=""/>
  79. <Button id="btn_freetextsave" class="btn5" taborder="11" position="absolute 902 655 946 675" anchor="right bottom" positiontype="position" text="선택" onclick="btn_freetextsave_onclick"/>
  80. <Static id="caption56" class="cell_1" position="absolute 1 653 143 677" anchor="left bottom" positiontype="position" text="Free Text" onkeydown="caption56_onkeydown" ondbclick="caption56_ondbclick"/>
  81. <Radio id="rdo_freetextdnarflag" columncount="5" position="absolute 2 680 144 700" anchor="left bottom" positiontype="position" codecolumn="codecolumn" datacolumn="datacolumn">
  82. <Dataset id="innerdataset">
  83. <ColumnInfo>
  84. <Column id="codecolumn" size="256"/>
  85. <Column id="datacolumn" size="256"/>
  86. </ColumnInfo>
  87. <Rows>
  88. <Row>
  89. <Col id="codecolumn">S</Col>
  90. <Col id="datacolumn">S</Col>
  91. </Row>
  92. <Row>
  93. <Col id="codecolumn">2N</Col>
  94. <Col id="datacolumn">N</Col>
  95. </Row>
  96. <Row>
  97. <Col id="codecolumn">1D</Col>
  98. <Col id="datacolumn">D</Col>
  99. </Row>
  100. <Row>
  101. <Col id="codecolumn">3A</Col>
  102. <Col id="datacolumn">A</Col>
  103. </Row>
  104. <Row>
  105. <Col id="codecolumn">4R</Col>
  106. <Col id="datacolumn">R</Col>
  107. </Row>
  108. </Rows>
  109. </Dataset>
  110. </Radio>
  111. <TextArea id="textarea4" position="absolute 146 655 899 700" anchor="left right bottom" positiontype="position" imemode="hangul"/>
  112. <Grid id="grd_stmtinfo" taborder="12" binddataset="ds_grid_grd_stmtinfo" autoenter="select" useinputpanel="false" selecttype="multirow" extendsizetype="both" cellsizingtype="both" oncellclick="swt_recinfo_stmtinfo_grd_stmtinfo_oncellclick" onenteredit="swt_recinfo_stmtinfo_grd_stmtinfo_onenteredit" onexpanddown="swt_recinfo_stmtinfo_grd_stmtinfo_onexpanddown" usebitmapcache="true" position="absolute 0 29 950 654" anchor="all" onclick="grd_stmtinfo_onclick" onmousemove="swt_recinfo_stmtinfo_grd_stmtinfo_onmousemove" oncloseup="swt_recinfo_stmtinfo_grd_stmtinfo_oncloseup" onlbuttondown="swt_recinfo_stmtinfo_grd_stmtinfo_onlbuttondown" onlbuttonup="swt_recinfo_stmtinfo_grd_stmtinfo_onlbuttonup" onselectchanged="swt_recinfo_stmtinfo_grd_stmtinfo_onselectchanged" onkeydown="swt_recinfo_stmtinfo_grd_stmtinfo_onkeydown" ontextchanged="swt_recinfo_stmtinfo_grd_stmtinfo_ontextchanged" onkillfocus="swt_recinfo_stmtinfo_grd_stmtinfo_onkillfocus">
  113. <Formats>
  114. <Format id="default">
  115. <Columns>
  116. <Column size="31" band="left"/>
  117. <Column size="20" band="left"/>
  118. <Column size="0"/>
  119. <Column size="71"/>
  120. <Column size="105"/>
  121. <Column size="0"/>
  122. <Column size="224"/>
  123. <Column size="0"/>
  124. <Column size="0"/>
  125. <Column size="0"/>
  126. <Column size="0"/>
  127. <Column size="0"/>
  128. <Column size="0"/>
  129. </Columns>
  130. <Rows>
  131. <Row size="21" band="head"/>
  132. <Row size="24"/>
  133. </Rows>
  134. <Band id="head">
  135. <Cell text="속성"/>
  136. <Cell col="1" displaytype="checkbox" edittype="checkbox"/>
  137. <Cell col="2" text="grupcd"/>
  138. <Cell col="3" text="그룹명"/>
  139. <Cell col="4" text="기록일시"/>
  140. <Cell col="5" text="stmtcd"/>
  141. <Cell col="6" text="진술문장"/>
  142. <Cell col="7" text="diagstmtcd"/>
  143. <Cell col="8" text="attrinfo1"/>
  144. <Cell col="9" text="attrinfo2"/>
  145. <Cell col="10" text="attressnyn"/>
  146. <Cell col="11" text="dnarflag"/>
  147. <Cell col="12" text="attrcnt"/>
  148. </Band>
  149. <Band id="body">
  150. <Cell celltype="head" text="bind:attryn"/>
  151. <Cell col="1" displaytype="checkbox" edittype="checkbox" text="bind:check"/>
  152. <Cell col="2" text="bind:grupcd"/>
  153. <Cell col="3" style="align:center middle;" text="bind:grupnm" wordwrap="char" suppress="1" suppressalign="middle,over" autosizerow="limitmin"/>
  154. <Cell col="4" displaytype="date" text="bind:recdt" mask="yyyy-MM-dd HH:mm" suppress="1" suppressalign="middle,over" calendardisplaynulltype="nulltext"/>
  155. <Cell col="5" text="bind:stmtcd"/>
  156. <Cell col="6" style="align:top;padding:3 0 0 2;linespace:2;" text="bind:stmtcnts" wordwrap="char" suppress="1" suppressalign="first,over" autosizerow="limitmin"/>
  157. <Cell col="7" text="bind:diagstmtcd"/>
  158. <Cell col="8" text="bind:attrinfo1"/>
  159. <Cell col="9" text="bind:attrinfo2"/>
  160. <Cell col="10" text="bind:attressnyn"/>
  161. <Cell col="11" text="bind:dnarflag"/>
  162. <Cell col="12" text="bind:attrcnt"/>
  163. </Band>
  164. </Format>
  165. </Formats>
  166. </Grid>
  167. </Layout>
  168. </Layouts>
  169. </Tabpage>
  170. <Tabpage id="recinfo" class="tab_Normal">
  171. <Layouts>
  172. <Layout>
  173. <Div id="group9" position="absolute 0 2 950 34" anchor="left top right" positiontype="position" class="div_SA">
  174. <Layouts>
  175. <Layout>
  176. <Static id="caption1" class="search_name" position="absolute 8 7 94 27" anchor="default" text="조회일자:" positiontype="position"/>
  177. <Static id="caption60" position="absolute 171 7 187 27" anchor="default" text="~" style="align:center middle;" positiontype="position"/>
  178. <Static id="caption62" class="search_name" position="absolute 301 7 385 27" anchor="default" text="DNAR 구분:" positiontype="position"/>
  179. <Static id="caption63" class="search_name" position="absolute 474 7 543 27" anchor="default" text="정렬순서:" positiontype="position"/>
  180. <Calendar id="input13" class="input_search" taborder="1" position="absolute 81 7 171 27" anchor="default" dateformat="yyyy-MM-dd" value="null" positiontype="position" autoselect="true" autoskip="true"/>
  181. <Combo id="combo2" class="combo_essential" taborder="3" position="absolute 390 7 450 27" anchor="default" codecolumn="itemcd" datacolumn="itemnm" innerdataset="@ds_init_dnarflag" positiontype="position"/>
  182. <Button id="button6" taborder="6" position="absolute 807 4 863 24" anchor="top right" text="조회" onlbuttonup="button6_onlbuttonup" onclick="button6_onclick" positiontype="position" class="btn1"/>
  183. <Calendar id="input14" class="input_search" taborder="2" position="absolute 187 7 277 27" anchor="default" dateformat="yyyy-MM-dd" value="null" positiontype="position" autoselect="true" autoskip="true"/>
  184. <Combo id="combo3" class="combo_essential" taborder="5" position="absolute 547 7 652 27" anchor="default" codecolumn="codecolumn" datacolumn="datacolumn" positiontype="position">
  185. <Dataset id="innerdataset">
  186. <ColumnInfo>
  187. <Column id="codecolumn" size="256"/>
  188. <Column id="datacolumn" size="256"/>
  189. </ColumnInfo>
  190. <Rows>
  191. <Row>
  192. <Col id="codecolumn">A</Col>
  193. <Col id="datacolumn">기록일자↓</Col>
  194. </Row>
  195. <Row>
  196. <Col id="codecolumn">D</Col>
  197. <Col id="datacolumn">기록일자↑</Col>
  198. </Row>
  199. </Rows>
  200. </Dataset>
  201. </Combo>
  202. </Layout>
  203. </Layouts>
  204. </Div>
  205. <Button id="btn_rec" class="btn3" position="absolute 866 6 946 26" anchor="top right" positiontype="position" text="기록작성" onclick="btn_rec_onclick"/>
  206. <Grid id="grd_carerecspec" position="absolute 0 33 950 705" anchor="all" positiontype="position" onlbuttonDown="grd_carerecspec_onlbuttonDown" binddataset="ds_grid_grd_carerecspec" onbuttondown="grd_carerecspec_onbuttondown" onclick="grd_carerecspec_onclick" onrbuttondown="swt_recinfo_recinfo_grd_carerecspec_onrbuttondown" selecttype="multirow" autofittype="col" oncellclick="swt_recinfo_recinfo_grd_carerecspec_oncellclick" autosizingtype="row" cellsizingtype="both" extendsizetype="both" onmousemove="swt_recinfo_recinfo_grd_carerecspec_onmousemove">
  207. <Formats>
  208. <Format id="default">
  209. <Columns>
  210. <Column size="77"/>
  211. <Column size="49"/>
  212. <Column size="42"/>
  213. <Column size="659"/>
  214. <Column size="79"/>
  215. <Column size="0"/>
  216. <Column size="0"/>
  217. <Column size="0"/>
  218. <Column size="0"/>
  219. <Column size="0"/>
  220. <Column size="0"/>
  221. <Column size="0"/>
  222. <Column size="0"/>
  223. <Column size="0"/>
  224. <Column size="0"/>
  225. </Columns>
  226. <Rows>
  227. <Row size="21" band="head"/>
  228. <Row size="21"/>
  229. </Rows>
  230. <Band id="head">
  231. <Cell text="기록일자"/>
  232. <Cell col="1" text="시간"/>
  233. <Cell col="2" text="DNAR"/>
  234. <Cell col="3" text="간호기록"/>
  235. <Cell col="4" text="작성자"/>
  236. <Cell col="5" text="stmtcd"/>
  237. <Cell col="6" text="origincd"/>
  238. <Cell col="7" text="recoriginflag"/>
  239. <Cell col="8" text="carerecno"/>
  240. <Cell col="9" text="recflag"/>
  241. <Cell col="10" text="reclnkkey"/>
  242. <Cell col="11" text="interprecyn"/>
  243. <Cell col="12" text="fstrgstrid"/>
  244. <Cell col="13" text="certselyn"/>
  245. <Cell col="14" text="recverno"/>
  246. </Band>
  247. <Band id="body">
  248. <Cell style="align:center middle;" text="bind:recdd" mask="####-##-##" suppress="1" suppressalign="middle,over"/>
  249. <Cell col="1" style="align:center middle;" text="bind:rectm" mask="##:##" suppress="2" suppressalign="middle,over"/>
  250. <Cell col="2" displaytype="combo" edittype="none" style="align:center middle;" text="bind:dnarflag" suppress="3" suppressalign="middle,over" combodataset="ds_init_dnarflag" combocodecol="itemcd" combodatacol="itemnm"/>
  251. <Cell col="3" style="align:left middle;" text="bind:stmtspec" wordwrap="char" suppress="4" suppressalign="middle,over" autosizerow="limitmin"/>
  252. <Cell col="4" style="align:center middle;" text="bind:fstrgstrnm" wordwrap="char" suppressalign="first" autosizerow="limitmin"/>
  253. <Cell col="5" text="bind:stmtcd"/>
  254. <Cell col="6" text="bind:origincd"/>
  255. <Cell col="7" text="bind:recoriginflag"/>
  256. <Cell col="8" text="bind:carerecno"/>
  257. <Cell col="9" text="bind:recflag"/>
  258. <Cell col="10" text="bind:reclnkkey"/>
  259. <Cell col="11" text="bind:interprecyn"/>
  260. <Cell col="12" text="bind:fstrgstrid"/>
  261. <Cell col="13" text="bind:certselyn"/>
  262. <Cell col="14" text="bind:recverno"/>
  263. </Band>
  264. </Format>
  265. </Formats>
  266. </Grid>
  267. </Layout>
  268. </Layouts>
  269. </Tabpage>
  270. </Tabpages>
  271. </Tab>
  272. <Static id="cap_title" class="tit_2" position="absolute 0 5 156 25" anchor="default" positiontype="position" text="간호일지 Type Ⅱ"/>
  273. <Edit readonly="true" id="opt_pid" position="absolute 478 29 585 49" anchor="default" positiontype="position" class="output"/>
  274. <Edit readonly="true" id="opt_pname" position="absolute 588 29 684 49" anchor="default" positiontype="position" class="output"/>
  275. <Edit readonly="true" id="opt_age" position="absolute 687 29 743 49" anchor="default" positiontype="position" class="output"/>
  276. <Combo id="cmb_deptflag" enable="false" position="absolute 104 29 387 49" anchor="default" positiontype="position" innerdataset="@ds_init_gruplist" codecolumn="grupcd" datacolumn="hngnm" onitemchanged="cmb_deptflag_onitemchanged"/>
  277. <Button id="btn_set" class="btn4" position="absolute 836 29 946 49" anchor="top right" positiontype="position" text="간호기록 Set" onclick="btn_set_onclick"/>
  278. <PopupDiv id="PopupDiv00" text="PopupDiv00" scrollbars="none" position="absolute 474 105 609 180">
  279. <Layouts>
  280. <Layout>
  281. <Grid id="Grid00" taborder="0" binddataset="ds_combo" scrollbars="none" useinputpanel="false" autosizingtype="col" oncellclick="PopupDiv00_Grid00_oncellclick" position="absolute 0 0 135 75" class="grd_Listbox">
  282. <Formats>
  283. <Format id="default">
  284. <Columns>
  285. <Column size="119"/>
  286. </Columns>
  287. <Rows>
  288. <Row size="24"/>
  289. </Rows>
  290. <Band id="body">
  291. <Cell style="align:left;" text="bind:attrnm"/>
  292. </Band>
  293. </Format>
  294. </Formats>
  295. </Grid>
  296. </Layout>
  297. </Layouts>
  298. </PopupDiv>
  299. <Combo id="cmb_pid_er" taborder="1" text="Combo00" position="absolute 479 30 584 49" innerdataset="@ds_init_nursemainlist" datacolumn="patnm" codecolumn="pid" onitemchanged="cmb_pid_er_onitemchanged"/>
  300. <Combo id="cmb_pid" taborder="2" innerdataset="@ds_init_chemolist" codecolumn="pid" datacolumn="hngnm" position="absolute 479 30 584 49" onitemchanged="cmb_pid_onitemchanged"/>
  301. <Combo id="cmb_settingrn" taborder="3" innerdataset="@ds_init_settinginfo" codecolumn="settingrnid" datacolumn="settingrnnm" position="absolute 479 30 584 49" visible="false" onitemchanged="cmb_settingrn_onitemchanged"/>
  302. <Edit id="ipt_srchpid" taborder="4" readonly="true" position="absolute 478 29 585 49" class="output" visible="false"/>
  303. <Button id="btn_srchpid" taborder="5" onclick="grp_biz_group1_btn_pid2_onclick" class="icon_search" visible="false" position="absolute 571 30 587 46"/>
  304. <Static id="cap_prtlnm" position="absolute 593 3 946 25"/>
  305. </Layout>
  306. </Layouts>
  307. <Objects>
  308. <Dataset id="ds_grid_grd_opanst" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  309. <ColumnInfo>
  310. <Column id="hngnm" type="STRING"/>
  311. <Column id="recflag" type="STRING"/>
  312. <Column id="grupcd" type="STRING"/>
  313. </ColumnInfo>
  314. </Dataset>
  315. <Dataset id="ds_grid_grd_stmtinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false" oncolumnchanged="ds_grid_grd_stmtinfo_oncolumnchanged">
  316. <ColumnInfo>
  317. <Column id="attryn" type="STRING"/>
  318. <Column id="check" type="STRING"/>
  319. <Column id="grupcd" type="STRING"/>
  320. <Column id="grupnm" type="STRING"/>
  321. <Column id="recdt" type="STRING"/>
  322. <Column id="stmtcd" type="STRING"/>
  323. <Column id="stmtcnts" type="STRING"/>
  324. <Column id="diagstmtcd" type="STRING"/>
  325. <Column id="attrinfo1" type="STRING"/>
  326. <Column id="attrinfo2" type="STRING"/>
  327. <Column id="attressnyn" type="STRING"/>
  328. <Column id="dnarflag" type="STRING"/>
  329. <Column id="attrcnt" type="STRING"/>
  330. </ColumnInfo>
  331. </Dataset>
  332. <Dataset id="ds_grid_grd_carerecspec" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  333. <ColumnInfo>
  334. <Column id="recdd" type="STRING"/>
  335. <Column id="rectm" type="STRING"/>
  336. <Column id="dnar" type="STRING"/>
  337. <Column id="stmtspec" type="STRING"/>
  338. <Column id="fstrgstrnm" type="STRING"/>
  339. <Column id="stmtcd" type="STRING"/>
  340. <Column id="origincd" type="STRING"/>
  341. <Column id="recoriginflag" type="STRING"/>
  342. <Column id="carerecno" type="STRING"/>
  343. <Column id="recflag" type="STRING"/>
  344. <Column id="reclnkkey" type="STRING"/>
  345. <Column id="interprecyn" type="STRING"/>
  346. <Column id="fstrgstrid" type="STRING"/>
  347. <Column id="certselyn" type="STRING"/>
  348. <Column id="recverno" type="STRING"/>
  349. </ColumnInfo>
  350. </Dataset>
  351. <Dataset id="ds_data_stmtinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  352. <Dataset id="ds_init_stmtinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  353. <Dataset id="ds_data_pamlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  354. <Dataset id="ds_init_opanstlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  355. <Dataset id="ds_cond" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  356. <ColumnInfo>
  357. <Column id="grupcd" type="STRING" size="256"/>
  358. <Column id="recdateflag" type="STRING" size="256"/>
  359. <Column id="certrecflag" type="STRING" size="256"/>
  360. <Column id="fromdd" type="STRING" size="256"/>
  361. <Column id="todd" type="STRING" size="256"/>
  362. <Column id="dnarflag" type="STRING" size="256"/>
  363. <Column id="sortseq" type="STRING" size="256"/>
  364. <Column id="pid" type="STRING" size="256"/>
  365. <Column id="pname" type="STRING" size="256"/>
  366. <Column id="age" type="STRING" size="256"/>
  367. <Column id="srch_pid" type="STRING" size="256"/>
  368. <Column id="recdd" type="STRING" size="256"/>
  369. <Column id="rectm" type="STRING" size="256"/>
  370. <Column id="freetextdnarflag" type="STRING" size="256"/>
  371. <Column id="maxattrcnt" type="STRING" size="256"/>
  372. <Column id="freetextsrchcnts" type="STRING" size="256"/>
  373. <Column id="carediagflag" type="STRING" size="256"/>
  374. <Column id="acptuniqno" type="STRING" size="256"/>
  375. <Column id="pastorddd" type="STRING" size="256"/>
  376. <Column id="pastordddflag" type="STRING" size="256"/>
  377. <Column id="settingrnid" type="STRING" size="256"/>
  378. <Column id="Column1" type="STRING" size="256"/>
  379. <Column id="Column2" type="STRING" size="256"/>
  380. <Column id="Column3" type="STRING" size="256"/>
  381. <Column id="Column4" type="STRING" size="256"/>
  382. <Column id="Column5" type="STRING" size="256"/>
  383. <Column id="Column6" type="STRING" size="256"/>
  384. <Column id="Column7" type="STRING" size="256"/>
  385. <Column id="Column8" type="STRING" size="256"/>
  386. <Column id="Column9" type="STRING" size="256"/>
  387. <Column id="Column10" type="STRING" size="256"/>
  388. <Column id="Column11" type="STRING" size="256"/>
  389. </ColumnInfo>
  390. <Rows>
  391. <Row/>
  392. </Rows>
  393. </Dataset>
  394. <Dataset id="ds_data_gruplist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  395. <ColumnInfo>
  396. <Column id="hngnm" type="STRING" size="256"/>
  397. <Column id="grupcd" type="STRING" size="256"/>
  398. </ColumnInfo>
  399. </Dataset>
  400. <Dataset id="ds_data_attrinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  401. <Dataset id="ds_init_gruplist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  402. <Dataset id="ds_init_dnarflag" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  403. <ColumnInfo>
  404. <Column id="itemcd" type="STRING" size="256"/>
  405. <Column id="itemnm" type="STRING" size="256"/>
  406. </ColumnInfo>
  407. <Rows>
  408. <Row>
  409. <Col id="itemcd">%</Col>
  410. <Col id="itemnm">전체</Col>
  411. </Row>
  412. <Row>
  413. <Col id="itemcd">1D</Col>
  414. <Col id="itemnm">D</Col>
  415. </Row>
  416. <Row>
  417. <Col id="itemcd">2N</Col>
  418. <Col id="itemnm">N</Col>
  419. </Row>
  420. <Row>
  421. <Col id="itemcd">3A</Col>
  422. <Col id="itemnm">A</Col>
  423. </Row>
  424. <Row>
  425. <Col id="itemcd">4R</Col>
  426. <Col id="itemnm">R</Col>
  427. </Row>
  428. </Rows>
  429. </Dataset>
  430. <Dataset id="ds_temp_save" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  431. <Dataset id="ds_temp_tmpsign" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  432. <Dataset id="ds_temp_fsign" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  433. <ColumnInfo>
  434. <Column id="pid" type="STRING" size="256"/>
  435. <Column id="orddd" type="STRING" size="256"/>
  436. <Column id="signno" type="STRING" size="256"/>
  437. <Column id="cretno" type="STRING" size="256"/>
  438. <Column id="recdd" type="STRING" size="256"/>
  439. <Column id="rectm" type="STRING" size="256"/>
  440. <Column id="recsaveflag" type="STRING" size="256"/>
  441. <Column id="signflag" type="STRING" size="256"/>
  442. <Column id="signgenrflag" type="STRING" size="256"/>
  443. <Column id="formcd" type="STRING" size="256"/>
  444. <Column id="orddeptcd" type="STRING" size="256"/>
  445. <Column id="orddrid" type="STRING" size="256"/>
  446. <Column id="dispyn" type="STRING" size="256"/>
  447. <Column id="signbfcnts" type="STRING" size="256"/>
  448. <Column id="signaftcnts" type="STRING" size="256"/>
  449. <Column id="screenid" type="STRING" size="256"/>
  450. <Column id="status" type="STRING" size="256"/>
  451. <Column id="acptuniqno" type="STRING" size="256"/>
  452. </ColumnInfo>
  453. </Dataset>
  454. <Dataset id="ds_data_recddlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  455. <Dataset id="ds_data_totnursingrecordlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  456. <Dataset id="ds_data_srchpatlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  457. <Dataset id="ds_data_dutplcdcdm" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  458. <ColumnInfo>
  459. <Column id="hngnm" type="STRING" size="256"/>
  460. <Column id="grupcd" type="STRING" size="256"/>
  461. </ColumnInfo>
  462. <Rows>
  463. <Row/>
  464. </Rows>
  465. </Dataset>
  466. <Dataset id="ds_init_nursemainlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  467. <ColumnInfo>
  468. <Column id="patnm" type="STRING" size="256"/>
  469. <Column id="pid" type="STRING" size="256"/>
  470. </ColumnInfo>
  471. </Dataset>
  472. <Dataset id="ds_init_chemolist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  473. <ColumnInfo>
  474. <Column id="hngnm" type="STRING" size="256"/>
  475. <Column id="pid" type="STRING" size="256"/>
  476. </ColumnInfo>
  477. </Dataset>
  478. <Dataset id="ds_init_settinginfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  479. <ColumnInfo>
  480. <Column id="settingrnnm" type="STRING" size="256"/>
  481. <Column id="settingrnid" type="STRING" size="256"/>
  482. </ColumnInfo>
  483. </Dataset>
  484. <Dataset id="ds_prerecinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  485. <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  486. <Dataset id="ds_tmp_cond" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  487. <Dataset id="ds_send_reqdata" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  488. <Dataset id="ds_main_prerecinfo_prereclist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  489. </Objects>
  490. <Bind>
  491. <BindItem id="item0" compid="cmb_deptflag" propid="value" datasetid="ds_cond" columnid="grupcd"/>
  492. <BindItem id="item2" compid="opt_pid" propid="value" datasetid="ds_cond" columnid="pid"/>
  493. <BindItem id="item3" compid="opt_pname" propid="value" datasetid="ds_cond" columnid="pname"/>
  494. <BindItem id="item4" compid="opt_age" propid="value" datasetid="ds_cond" columnid="age"/>
  495. <BindItem id="item5" compid="swt_recinfo.stmtinfo.rdo_recflag" propid="value" datasetid="ds_cond" columnid="recdateflag"/>
  496. <BindItem id="item6" compid="swt_recinfo.stmtinfo.ipt_recdd" propid="value" datasetid="ds_cond" columnid="recdd"/>
  497. <BindItem id="item7" compid="swt_recinfo.stmtinfo.ipt_rectm" propid="value" datasetid="ds_cond" columnid="rectm"/>
  498. <BindItem id="item8" compid="swt_recinfo.stmtinfo.rdo_freetextdnarflag" propid="value" datasetid="ds_cond" columnid="freetextdnarflag"/>
  499. <BindItem id="item9" compid="swt_recinfo.recinfo.group9.input13" propid="value" datasetid="ds_cond" columnid="fromdd"/>
  500. <BindItem id="item10" compid="swt_recinfo.recinfo.group9.input14" propid="value" datasetid="ds_cond" columnid="todd"/>
  501. <BindItem id="item11" compid="swt_recinfo.recinfo.group9.combo2" propid="value" datasetid="ds_cond" columnid="dnarflag"/>
  502. <BindItem id="item12" compid="swt_recinfo.recinfo.group9.combo3" propid="value" datasetid="ds_cond" columnid="sortseq"/>
  503. <BindItem id="item13" compid="swt_recinfo.stmtinfo.textarea4" propid="value" datasetid="ds_cond" columnid="freetextsrchcnts"/>
  504. <BindItem id="item1" compid="ipt_srchpid" propid="value" datasetid="ds_cond" columnid="srch_pid"/>
  505. <BindItem id="item14" compid="cmb_pid" propid="value" datasetid="ds_cond" columnid="srch_pid"/>
  506. <BindItem id="item15" compid="cmb_pid_er" propid="value" datasetid="ds_cond" columnid="srch_pid"/>
  507. <BindItem id="item16" compid="cmb_settingrn" propid="value" datasetid="ds_cond" columnid="settingrnid"/>
  508. </Bind>
  509. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  510. * System Name : KU2.0
  511. * Job Name :
  512. * File Name : SMMNR03400_간호일지타입II.xfdl
  513. * Creator :
  514. * Make Date : 2016-03-02
  515. *
  516. * Description :
  517. *---------------------------------------------------------------------------------------
  518. * Modify Date Modifier Modify Description
  519. *---------------------------------------------------------------------------------------
  520. *
  521. *---------------------------------------------------------------------------------------
  522. ****************************************************************************************/
  523. //=======================================================================================
  524. // xjs Include
  525. //---------------------------------------------------------------------------------------
  526. include "emr_carerecxp::SMMNR034.xjs";
  527. include "com_commonxp::comm_main.xjs";
  528. include "emr_carecomxp::CareCom.xjs";
  529. include "emr_carecomxp::ENRSignEngine.xjs";
  530. include "emr_spclcarexp::MNS001.xjs";
  531. //=======================================================================================
  532. // Function
  533. //---------------------------------------------------------------------------------------
  534. function fcolwidth() {
  535. var cnt = 0;
  536. for ( var i = 0; i < swt_recinfo.stmtinfo.grd_stmtinfo.getCellCount("Head"); i++ ) {
  537. cnt =+ cnt + swt_recinfo.stmtinfo.grd_stmtinfo.getFormatColSize(i);
  538. }
  539. // alert( cnt);
  540. var wid = swt_recinfo.stmtinfo.grd_stmtinfo.position.width.toString();
  541. var allcnt = wid.substr(0,3);
  542. var checkcnt = allcnt - cnt;
  543. // alert(checkcnt);
  544. var stmtcnt = swt_recinfo.stmtinfo.grd_stmtinfo.getFormatColSize(swt_recinfo.stmtinfo.grd_stmtinfo.getBindCellIndex("body","stmtcnts"));
  545. if ( allcnt > (cnt+25) ) {
  546. if ( checkcnt > 300 ) {
  547. swt_recinfo.stmtinfo.grd_stmtinfo.setFormatColProperty(swt_recinfo.stmtinfo.grd_stmtinfo.getBindCellIndex("body","stmtcnts"),"size",stmtcnt + 300);
  548. } else {
  549. swt_recinfo.stmtinfo.grd_stmtinfo.setFormatColProperty(swt_recinfo.stmtinfo.grd_stmtinfo.getBindCellIndex("body","stmtcnts"),"size",stmtcnt + checkcnt - 25);
  550. }
  551. }
  552. }
  553. function fprtlnm(){
  554. var pid = ds_cond.getColumn(0,"srch_pid");
  555. var chemo = ds_init_chemolist.rowcount;
  556. var prtlnm = "";
  557. if (!utlf_isNull(pid)){
  558. if(chemo > 0){
  559. prtlnm = ds_init_chemolist.lookup("pid", pid, "prtlnm");
  560. cap_prtlnm.text = prtlnm ;
  561. }
  562. }
  563. }
  564. //=======================================================================================
  565. // Event
  566. //---------------------------------------------------------------------------------------
  567. /****************************************************************************************
  568. * Components :
  569. * Components ID : SMMNR03400
  570. * Event : onload
  571. * Argument : 01.obj : Object Event has occurred
  572. * : 02.e : Event Object
  573. * Description :
  574. ****************************************************************************************/
  575. function SMMNR03400_onload(obj:Form, e:LoadEventInfo)
  576. {
  577. frmf_initForm(obj);
  578. zesf_InitSign(); // 전자서명관련 모듈 생성 및 초기화
  579. frmf_createPopupMenu("pmn_popupMenu", "pmn_popupMenu_onmenuclick",
  580. [{id: "fUpdtNursingRecord", level: "1", title: "간호기록 수정"}
  581. ,{id: "fDelNursingRecord", level: "1", title: "간호기록 삭제"}
  582. ,{id: "fStmtListRecdt", level: "1", title: "기록시간수정"}]);
  583. grdf_setAllCheck(swt_recinfo.stmtinfo.grd_stmtinfo);
  584. this.setTimer(0, 100);
  585. /*
  586. fInitialize();
  587. fcolwidth();
  588. fprtlnm();
  589. */
  590. }
  591. /****************************************************************************************
  592. * Components :
  593. * Components ID : SMMNR03400
  594. * Event : onclose
  595. * Argument : 01.obj : Object Event has occurred
  596. * : 02.e : Event Object
  597. * Description :
  598. ****************************************************************************************/
  599. function SMMNR03400_onclose(obj:Form, e:CloseEventInfo)
  600. {
  601. var tmp_chk = 0;
  602. for(var i=0; i<ds_grid_grd_stmtinfo.rowcount; i++){
  603. if(ds_grid_grd_stmtinfo.getColumn(i,"check") == 1 || ds_grid_grd_stmtinfo.getColumn(i,"check") == "true"){
  604. tmp_chk++;
  605. break;
  606. }
  607. }
  608. if(tmp_chk != 0){
  609. var returnMsg = sysf_messageBox("저장하지 않은 간호기록 내역이 있습니다. 다시 저장", "I008");// 하십시오.
  610. return false;
  611. }
  612. if ( gSignRecYN == "Y" ){
  613. opener.frmf_setParameter("SMMNR03400_SignRecYN", "Y");
  614. }else{
  615. opener.frmf_setParameter("SMMNR03400_SignRecYN", "");
  616. }
  617. }
  618. /****************************************************************************************
  619. * Components :
  620. * Components ID : button2
  621. * Event : onclick
  622. * Argument : 01.obj : Object Event has occurred
  623. * : 02.e : Event Object
  624. * Description :
  625. ****************************************************************************************/
  626. function button2_onclick(obj:Button, e:ClickEventInfo)
  627. {
  628. fGrpOpAnstSel();
  629. }
  630. /****************************************************************************************
  631. * Components :
  632. * Components ID : button8
  633. * Event : onclick
  634. * Argument : 01.obj : Object Event has occurred
  635. * : 02.e : Event Object
  636. * Description :
  637. ****************************************************************************************/
  638. function button8_onclick(obj:Button, e:ClickEventInfo)
  639. {
  640. grp_opanst.grd_opanst.visible = false;
  641. }
  642. /****************************************************************************************
  643. * Components :
  644. * Components ID : grd_stmtinfo
  645. * Event : onclick
  646. * Argument : 01.obj : Object Event has occurred
  647. * : 02.e : Event Object
  648. * Description :
  649. ****************************************************************************************/
  650. function grd_stmtinfo_onclick(obj:Grid, e:ClickEventInfo)
  651. {
  652. if( grd_stmtinfo.col > 0 && isDataCell()) {
  653. fClickedGridRow();
  654. }
  655. }
  656. /****************************************************************************************
  657. * Components :
  658. * Components ID : button1
  659. * Event : onclick
  660. * Argument : 01.obj : Object Event has occurred
  661. * : 02.e : Event Object
  662. * Description :
  663. ****************************************************************************************/
  664. function button1_onclick(obj:Button, e:ClickEventInfo)
  665. {
  666. fSrchCareRec();
  667. //swt_recinfo.stmtinfo.grd_stmtinfo.setFormatColProperty(0,"band","");
  668. }
  669. /****************************************************************************************
  670. * Components :
  671. * Components ID : btn_stmtsave
  672. * Event : onclick
  673. * Argument : 01.obj : Object Event has occurred
  674. * : 02.e : Event Object
  675. * Description :
  676. ****************************************************************************************/
  677. function btn_stmtsave_onclick(obj:Button, e:ClickEventInfo)
  678. {
  679. fSaveCareRec();
  680. }
  681. /****************************************************************************************
  682. * Components :
  683. * Components ID : btn_recdt
  684. * Event : onclick
  685. * Argument : 01.obj : Object Event has occurred
  686. * : 02.e : Event Object
  687. * Description :
  688. ****************************************************************************************/
  689. function btn_recdt_onclick(obj:Button, e:ClickEventInfo)
  690. {
  691. // var sTime = swt_recinfo.stmtinfo.ipt_rectm.value;
  692. //
  693. // if(utlf_trim(sTime).length != 4){
  694. // sysf_messageBox("시간입력이 잘못되었습니다.","I");
  695. // return;
  696. // }
  697. fRecDTAppend();
  698. }
  699. /****************************************************************************************
  700. * Components :
  701. * Components ID : btn_freetextsave
  702. * Event : onclick
  703. * Argument : 01.obj : Object Event has occurred
  704. * : 02.e : Event Object
  705. * Description :
  706. ****************************************************************************************/
  707. function btn_freetextsave_onclick(obj:Button, e:ClickEventInfo)
  708. {
  709. fSelTextStmtInfo();
  710. }
  711. /****************************************************************************************
  712. * Components :
  713. * Components ID : caption56
  714. * Event : ondbclick
  715. * Argument : 01.obj : Object Event has occurred
  716. * : 02.e : Event Object
  717. * Description :
  718. ****************************************************************************************/
  719. function caption56_ondbclick(obj:Static, e:MouseEventInfo)
  720. {
  721. button7.disabled = false;
  722. }
  723. /****************************************************************************************
  724. * Components :
  725. * Components ID : button6
  726. * Event : onclick
  727. * Argument : 01.obj : Object Event has occurred
  728. * : 02.e : Event Object
  729. * Description :
  730. ****************************************************************************************/
  731. function button6_onclick(obj:Button, e:ClickEventInfo)
  732. {
  733. fSearchRecInfo();
  734. }
  735. /****************************************************************************************
  736. * Components :
  737. * Components ID : btn_rec
  738. * Event : onclick
  739. * Argument : 01.obj : Object Event has occurred
  740. * : 02.e : Event Object
  741. * Description :
  742. ****************************************************************************************/
  743. function btn_rec_onclick(obj:Button, e:ClickEventInfo)
  744. {
  745. swt_recinfo.tabindex = 0;
  746. btn_set.visible = true;
  747. fMakeStmtList("false");
  748. }
  749. /****************************************************************************************
  750. * Components :
  751. * Components ID : grd_carerecspec
  752. * Event : onbuttondown
  753. * Argument : 01.obj : Object Event has occurred
  754. * : 02.e : Event Object
  755. * Description :
  756. ****************************************************************************************/
  757. function grd_carerecspec_onbuttondown(obj:Grid, e:MouseEventInfo)
  758. {
  759. fSettingPopUpMenu();
  760. }
  761. /****************************************************************************************
  762. * Components :
  763. * Components ID : grd_carerecspec
  764. * Event : onclick
  765. * Argument : 01.obj : Object Event has occurred
  766. * : 02.e : Event Object
  767. * Description :
  768. ****************************************************************************************/
  769. function grd_carerecspec_onclick(obj:Grid, e:ClickEventInfo)
  770. {
  771. //fSettingCertImg("R");
  772. }
  773. /****************************************************************************************
  774. * Components :
  775. * Components ID : btn_set
  776. * Event : onclick
  777. * Argument : 01.obj : Object Event has occurred
  778. * : 02.e : Event Object
  779. * Description :
  780. ****************************************************************************************/
  781. function btn_set_onclick(obj:Button, e:ClickEventInfo)
  782. {
  783. fCallDeptSet();
  784. }
  785. /****************************************************************************************
  786. * Components :
  787. * Components ID : btn_inputpid
  788. * Event : onclick
  789. * Argument : 01.obj : Object Event has occurred
  790. * : 02.e : Event Object
  791. * Description :
  792. ****************************************************************************************/
  793. function btn_inputpid_onclick(obj:Button, e:ClickEventInfo)
  794. {
  795. //fSrchPatInfo("P");
  796. }
  797. /****************************************************************************************
  798. * Components :
  799. * Components ID : btn_srchpid
  800. * Event : onclick
  801. * Argument : 01.obj : Object Event has occurred
  802. * : 02.e : Event Object
  803. * Description :
  804. ****************************************************************************************/
  805. function btn_srchpid_onclick(obj:Button, e:ClickEventInfo)
  806. {
  807. fSrchPatInfo();
  808. }
  809. function swt_recinfo_stmtinfo_grd_stmtinfo_oncellclick(obj:Grid, e:GridClickEventInfo)
  810. {
  811. lastrow = -1;
  812. lastcol = -1;
  813. if(e.row > -1 && e.col > -1){
  814. var iRow = e.row;
  815. var iCol = e.col;
  816. goldCol = e.col;
  817. goldRow = e.row;
  818. if ( iRow > -1 && iRow < ds_grid_grd_stmtinfo.rowcount ){
  819. //if(iCol < gStndColCnt){
  820. if(iCol <= swt_recinfo.stmtinfo.grd_stmtinfo.getBindCellIndex("body","check")){
  821. if( ds_grid_grd_stmtinfo.getColumn(iRow, "check") == "true" || ds_grid_grd_stmtinfo.getColumn(iRow, "check") == 1){
  822. //grd_stmtinfo.rowstyle(iRow,"data","background-color") = "#ffff88";
  823. }else{
  824. //grd_stmtinfo.rowstyle(iRow,"data","background-color") = "#FFFFFF";
  825. }
  826. }else if(iCol >= gStndColCnt && (iCol-gStndColCnt)%3 == 2 ){
  827. fCallAttrPopUp(e.col);
  828. }
  829. }
  830. }
  831. /*
  832. var sStndColCnt = gStndColCnt;
  833. var tmp_maxcnt = ds_cond.getColumn(0,"maxattrcnt");
  834. var chckflag = 0;
  835. if(swt_recinfo.stmtinfo.grd_stmtinfo.rowcount > 0)
  836. {
  837. if(e.col <= swt_recinfo.stmtinfo.grd_stmtinfo.getBindCellIndex( "body", "grupnm"))
  838. {
  839. if(e.col == swt_recinfo.stmtinfo.grd_stmtinfo.getBindCellIndex( "body", "grupnm")){
  840. selGrupCd = ds_grid_grd_stmtinfo.getColumn(e.row,"grupcd");
  841. var tmp_chk = ds_grid_grd_stmtinfo.findRowExpr("grupcd=='"+selGrupCd+"' && (check=='true'||check=='1')");
  842. if(tmp_chk >= 0)
  843. chckflag = 1;
  844. for(var i=0;i<ds_grid_grd_stmtinfo.rowcount;i++){
  845. if(chckflag){
  846. if(ds_grid_grd_stmtinfo.getColumn(i,"grupcd") == selGrupCd){
  847. ds_grid_grd_stmtinfo.setColumn(i,"check",0);
  848. }
  849. }else{
  850. if(ds_grid_grd_stmtinfo.getColumn(i,"grupcd") == selGrupCd){
  851. ds_grid_grd_stmtinfo.setColumn(i,"check",1);
  852. }
  853. }
  854. }
  855. }
  856. }else if(e.col >= gStndColCnt && (e.col-gStndColCnt)%3 == 2 ){ //아이콘클릭(다중선택시)
  857. fCallAttrPopUp(e.col);
  858. }
  859. }
  860. */
  861. }
  862. function swt_recinfo_recinfo_grd_carerecspec_onrbuttondown(obj:Grid, e:GridMouseEventInfo)
  863. {
  864. var tmp_chk = 0;
  865. for(var i=0; i<ds_grid_grd_carerecspec.rowcount; i++){
  866. if(ds_grid_grd_carerecspec.getSelect(i) == true)
  867. tmp_chk++;
  868. }
  869. if(tmp_chk == 1)
  870. ds_grid_grd_carerecspec.clearSelect();
  871. ds_grid_grd_carerecspec.selectRow(e.row);
  872. ds_grid_grd_carerecspec.rowposition = e.row;
  873. pmn_popupMenu.trackPopup(e.screenX,e.screenY,"",true);
  874. }
  875. function pmn_popupMenu_onmenuclick(obj:PopupMenu, e:MenuClickEventInfo)
  876. {
  877. if(e.id == "fUpdtNursingRecord")
  878. fUpdtNursingRecord();
  879. else if(e.id == "fDelNursingRecord")
  880. fDelNursingRecord();
  881. else if(e.id == "fStmtListRecdt")
  882. fStmtListRecdt();
  883. }
  884. function swt_recinfo_stmtinfo_grd_stmtinfo_onexpanddown(obj:Grid, e:GridMouseEventInfo)
  885. {
  886. var sStndColCnt = gStndColCnt;
  887. var tmp_maxcnt = ds_cond.getColumn(0,"maxattrcnt");
  888. var arrCellRect = obj.getCellRect(e.row,e.cell);
  889. var nDivX = system.clientToScreenX(obj,arrCellRect.left);
  890. var nDivY = system.clientToScreenY(obj,arrCellRect.bottom);
  891. checkCol = e.col;
  892. if(e.col > gStndColCnt && e.col < gStndColCnt+tmp_maxcnt)
  893. {
  894. ds_data_attrinfo.filter("");
  895. var filterchk = "";
  896. for(var i=0; i<tmp_maxcnt; i++){
  897. if(e.col == (sStndColCnt+1)+(3*i))
  898. filterchk = ds_grid_grd_stmtinfo.getColumn(e.row,"attrcd"+(i+1));
  899. }
  900. ds_data_attrinfo.filter("supcd=='"+filterchk+"'");
  901. PopupDiv00.Grid00.binddataset = "ds_data_attrinfo";
  902. var nHeight = 24;
  903. if(ds_data_attrinfo.rowcount > 0){
  904. nHeight = ds_data_attrinfo.rowcount * 24;
  905. }else{
  906. return;
  907. }
  908. var Grid0Size = PopupDiv00.Grid00.getRealColFullSize("body");
  909. PopupDiv00.position.height = nHeight+2;
  910. PopupDiv00.Grid00.position.height = nHeight;
  911. if(Grid0Size >= 135){
  912. PopupDiv00.position.width = Grid0Size+2;
  913. PopupDiv00.Grid00.position.width = Grid0Size;
  914. }
  915. if(checkClick==false)
  916. {
  917. PopupDiv00.trackPopup(nDivX,nDivY);// 24는 그리드 헤드의 size 값
  918. checkClick = true;
  919. }
  920. else
  921. {
  922. PopupDiv00.closePopup();
  923. checkClick = false;
  924. }
  925. }
  926. }
  927. function ListBox00_onitemclick(obj:ListBox, e:ListBoxClickEventInfo)
  928. {
  929. ds_grid_grd_stmtinfo.setColumn(ds_grid_grd_stmtinfo.rowposition,ds_grid_grd_stmtinfo.getColID(checkCol),ds_data_attrinfo.getColumn(e.index, "attrnm"));
  930. checkCol = "";
  931. PopupDiv00.closePopup();
  932. }
  933. function swt_recinfo_stmtinfo_rdo_recflag_onitemchanged(obj:Radio, e:ItemChangeEventInfo)
  934. {
  935. fSettingRecInfo();
  936. }
  937. function swt_recinfo_stmtinfo_ipt_rectm_onkeydown(obj:MaskEdit, e:KeyEventInfo)
  938. {
  939. if(e.keycode == '13'){
  940. fRecDTAppend();
  941. }
  942. }
  943. function cmb_deptflag_onitemchanged(obj:Combo, e:ItemChangeEventInfo)
  944. {
  945. // swt_recinfo.stmtinfo.grd_stmtinfo.setFormatColProperty(0,"band","");
  946. fGrpOpAnstSel();
  947. swt_recinfo.tabindex = 0;
  948. btn_set.visible = true;
  949. fMakeStmtList("false");
  950. // if(ds_grid_grd_stmtinfo.getColumnInfo("prcpchk")){
  951. // ds_grid_grd_stmtinfo.filter("prcpchk!='Y'");
  952. // }
  953. // fKeyset();
  954. }
  955. function swt_recinfo_stmtinfo_grd_stmtinfo_onenteredit(obj:Grid, e:GridEditEventInfo)
  956. {
  957. if( e.col == 1 || e.col == 3 ){
  958. if(ds_grid_grd_stmtinfo.getColumn(e.row,"check") != 1){
  959. ds_grid_grd_stmtinfo.setColumn(e.row,"check",1);
  960. }
  961. }
  962. }
  963. function swt_recinfo_recinfo_grd_carerecspec_oncellclick(obj:Grid, e:GridClickEventInfo)
  964. {
  965. if(e.col != 4) return;
  966. if(ds_grid_grd_carerecspec.getColumn(e.row,"fstrgstrid") != sysf_getUserId()){
  967. sysf_messageBox("다른 사람의 기록은 인증처리","E001");
  968. return;
  969. }
  970. }
  971. function PopupDiv00_Grid00_oncellclick(obj:Grid, e:GridClickEventInfo)
  972. {
  973. ds_grid_grd_stmtinfo.setColumn(ds_grid_grd_stmtinfo.rowposition,ds_grid_grd_stmtinfo.getColID(checkCol),ds_data_attrinfo.getColumn(e.row, "attrnm"));
  974. checkCol = "";
  975. PopupDiv00.closePopup();
  976. }
  977. function grp_opanst_grd_opanst_oncelldblclick(obj:Grid, e:GridClickEventInfo)
  978. {
  979. fGrpOpAnstSel();
  980. }
  981. function swt_recinfo_stmtinfo_ipt_rectm_ontextchange(obj:MaskEdit, e:TextChangeEventInfo)
  982. {
  983. var posttext = utlf_trim(e.posttext.replace(":",""));
  984. if(!utlf_isNull(posttext.substring(0,1))){
  985. if(eval(posttext.substring(0,1)) > 2){
  986. swt_recinfo.stmtinfo.ipt_rectm.value = "";
  987. swt_recinfo.stmtinfo.ipt_rectm.setCaretPos(0);
  988. return;
  989. }
  990. }
  991. if(!utlf_isNull(posttext.substring(1,2))){
  992. if(eval(posttext.substring(0,1)) > 1){
  993. if(eval(posttext.substring(1,2)) > 3){
  994. swt_recinfo.stmtinfo.ipt_rectm.value = posttext.substring(0,1);
  995. swt_recinfo.stmtinfo.ipt_rectm.setCaretPos(1);
  996. return;
  997. }
  998. }
  999. }
  1000. if(!utlf_isNull(posttext.substring(3,2))){
  1001. if(eval(posttext.substring(3,2)) > 5){
  1002. swt_recinfo.stmtinfo.ipt_rectm.value = posttext.substring(0,2);
  1003. swt_recinfo.stmtinfo.ipt_rectm.setCaretPos(2);
  1004. return;
  1005. }
  1006. }
  1007. }
  1008. function cmb_pid_er_onitemchanged(obj:Combo, e:ItemChangeEventInfo)
  1009. {
  1010. swt_recinfo.tabindex = 0;
  1011. fSetPatInfoER();
  1012. fSetPatInitInfo();
  1013. fMakeStmtList(true);
  1014. ds_cond.setColumn(0, "freetextsrchcnts", "");
  1015. ds_cond.setColumn(0, "freetextdnarflag", "");
  1016. }
  1017. function swt_recinfo_stmtinfo_grd_stmtinfo_onmousemove(obj:Grid, e:GridMouseEventInfo)
  1018. {
  1019. if(e.row >-1 && e.col > -1){
  1020. if(!utlf_isNull(swt_recinfo.stmtinfo.grd_stmtinfo.getCellValue(e.row,e.col))){
  1021. swt_recinfo.stmtinfo.grd_stmtinfo.tooltiptext = swt_recinfo.stmtinfo.grd_stmtinfo.getCellValue(e.row,e.col);
  1022. }else{
  1023. swt_recinfo.stmtinfo.grd_stmtinfo.tooltiptext ="";
  1024. }
  1025. }
  1026. }
  1027. function swt_recinfo_recinfo_grd_carerecspec_onmousemove(obj:Grid, e:GridMouseEventInfo)
  1028. {
  1029. if(e.row >-1 && e.col > -1){
  1030. if(!utlf_isNull(swt_recinfo.recinfo.grd_carerecspec.getCellValue(e.row,e.col))){
  1031. swt_recinfo.recinfo.grd_carerecspec.tooltiptext = swt_recinfo.recinfo.grd_carerecspec.getCellValue(e.row,e.col);
  1032. }else{
  1033. swt_recinfo.recinfo.grd_carerecspec.tooltiptext ="";
  1034. }
  1035. }
  1036. }
  1037. function cmb_pid_onitemchanged(obj:Combo, e:ItemChangeEventInfo)
  1038. {
  1039. swt_recinfo.tabindex = 0;
  1040. fSetPatInfo();
  1041. fSetPatInitInfo();
  1042. fMakeStmtList(true);
  1043. ds_cond.setColumn(0, "freetextsrchcnts", "");
  1044. ds_cond.setColumn(0, "freetextdnarflag", "");
  1045. fprtlnm();
  1046. }
  1047. function cmb_settingrn_onitemchanged(obj:Combo, e:ItemChangeEventInfo)
  1048. {
  1049. ds_tmp_cond.addColumn("settingrnid","string");
  1050. ds_tmp_cond.setColumn(0, "settingrnid", ds_cond.getColumn(0, "settingrnid") );
  1051. fGetPatList();
  1052. }
  1053. function SMMNR03400_ontimer(obj:Form, e:TimerEventInfo)
  1054. {
  1055. if( e.timerid == 0 ){
  1056. this.killTimer(0);
  1057. fInitialize();
  1058. fcolwidth();
  1059. fprtlnm();
  1060. }
  1061. }
  1062. function ds_grid_grd_stmtinfo_oncolumnchanged(obj:Dataset, e:DSColChangeEventInfo)
  1063. {
  1064. var iRow = e.row;
  1065. var iCol = e.col;
  1066. if(iCol >= gStndColCnt && (iCol-gStndColCnt)%3 == 1 ){
  1067. //if( e.col != swt_recinfo.stmtinfo.grd_stmtinfo.getBindCellIndex("body","check") ){
  1068. if(ds_grid_grd_stmtinfo.getColumn(e.row,"check") == 1 || ds_grid_grd_stmtinfo.getColumn(e.row,"check") == "true"){
  1069. }else{
  1070. ds_grid_grd_stmtinfo.setColumn(e.row,"check",1);
  1071. }
  1072. //if(ds_grid_grd_stmtinfo.getColumn(e.row,"check") != 1){
  1073. // ds_grid_grd_stmtinfo.setColumn(e.row,"check",1);
  1074. //}
  1075. }
  1076. }
  1077. var gstredit2 = "";
  1078. var goldRow = 0;
  1079. var goldCol = 0;
  1080. var lastrow = -1;
  1081. var lastcol = -1;
  1082. var bDrop = false;
  1083. var bolenter = false;
  1084. function swt_recinfo_stmtinfo_grd_stmtinfo_oncloseup(obj:Grid, e:GridEditEventInfo)
  1085. {
  1086. var preVal = utlf_transNullToEmpty(ds_grid_grd_stmtinfo.getColumn(e.row, e.col));
  1087. var posVal = utlf_transNullToEmpty(e.value);
  1088. if( bDrop == true && (!utlf_isNull(posVal) || preVal != posVal )){
  1089. bComboEdit = false;
  1090. obj.showEditor(false);
  1091. // ds_grd_24hoursclincobsreclist.setColumn(e.row, "edittype" + e.col, "none");
  1092. //obj.setCellPos(e.col);
  1093. gstredit2 = "";
  1094. goldRow = ds_grid_grd_stmtinfo.rowposition;
  1095. }
  1096. bDrop = false;
  1097. lastrow = e.row;
  1098. lastcol = e.col;
  1099. }
  1100. function swt_recinfo_stmtinfo_grd_stmtinfo_onlbuttondown(obj:Grid, e:GridMouseEventInfo)
  1101. {
  1102. }
  1103. function swt_recinfo_stmtinfo_grd_stmtinfo_onlbuttonup(obj:Grid, e:GridMouseEventInfo)
  1104. {
  1105. // Combo DropDown Click 처리
  1106. //grdf_setSelectedCell(obj, e);
  1107. swt_recinfo.stmtinfo.grd_stmtinfo.autoenter = "key";
  1108. if( e.fromreferenceobject.name == "dropbutton" ){
  1109. bDrop = true;
  1110. }
  1111. if(utlf_isNull(ds_grid_grd_stmtinfo.getColumnInfo("sdataset" + e.col))){
  1112. swt_recinfo.stmtinfo.grd_stmtinfo.autoenter = "key";
  1113. }else{
  1114. if(e.row > -1 && e.col > 0 && utlf_transNullToEmpty(ds_grid_grd_stmtinfo.getColumn(e.row, "sdataset" + e.col)).substr(0, 11) == "ds_comborow") {
  1115. //group4.grd_24hoursclincobsreclist.autoenter = "select";
  1116. // Combo 선택시 활성화 및 combodatacol 변경
  1117. if(grdf_getSelectedCols(swt_recinfo.stmtinfo.grd_stmtinfo).length == 1
  1118. && grdf_getSelectedRows(swt_recinfo.stmtinfo.grd_stmtinfo).length == 1
  1119. && swt_recinfo.stmtinfo.grd_stmtinfo.getEditText() == undefined){
  1120. swt_recinfo.stmtinfo.grd_stmtinfo.showEditor(true);
  1121. } else {
  1122. if(!obj.isDropdownCombo() && (lastrow != e.row || lastcol != e.col)) {
  1123. obj.setCellPos(e.col);
  1124. ds_grid_grd_stmtinfo.rowposition = e.row;
  1125. //2017.07.12_속성정보 현재컬럼 타자입력 후 현재컬럼 클릭 시 입력값 없어지는 현상 오류 수정
  1126. //obj.showEditor(true);
  1127. if(bDrop) {
  1128. obj.dropdownCombo();
  1129. }
  1130. }
  1131. }
  1132. }
  1133. else
  1134. {
  1135. swt_recinfo.stmtinfo.grd_stmtinfo.autoenter = "key";
  1136. }
  1137. }
  1138. var ColMCount = grdf_getSelectedCols(swt_recinfo.stmtinfo.grd_stmtinfo);
  1139. var RowMCount = grdf_getSelectedRows(swt_recinfo.stmtinfo.grd_stmtinfo);
  1140. if(ColMCount.length > 1 || RowMCount.length > 1)
  1141. {
  1142. obj.showEditor(false);
  1143. }
  1144. }
  1145. function lf_showExpr(nsdatasetname, nRow, nCol, nedit){
  1146. //sysf_trace("nRow : " + nRow)
  1147. var sVal = ds_grid_grd_stmtinfo.getColumn(nRow, nCol);
  1148. if(!utlf_isNull(nedit))
  1149. {
  1150. sVal = nedit;
  1151. }
  1152. var inDs = this.objects[nsdatasetname];
  1153. var sName = sVal;
  1154. if( inDs != null ) {
  1155. if(!utlf_isNull(sVal))
  1156. {
  1157. sName = inDs.lookup("attrcd", sVal, "attrnm");
  1158. if( !utlf_isNull(sVal) && utlf_isNull(sName) ){
  1159. sName = sVal;
  1160. var nFindRow = inDs.findRow("supcd", nAddRow -1);
  1161. var nAddRow = inDs.rowcount - 1;
  1162. inDs.copyRow(nAddRow, inDs, nAddRow - 1);
  1163. inDs.setColumn(nAddRow, "refseq", nAddRow);
  1164. inDs.setColumn(nAddRow, "attrcd", sName);
  1165. inDs.setColumn(nAddRow, "attrnm", sName);
  1166. return true;
  1167. }
  1168. }
  1169. }
  1170. return false;
  1171. }
  1172. function swt_recinfo_stmtinfo_grd_stmtinfo_onselectchanged(obj:Grid, e:GridSelectEventInfo)
  1173. {
  1174. if(!utlf_isNull(ds_grid_grd_stmtinfo.getColumnInfo("sdataset" + goldCol)) && utlf_transNullToEmpty(ds_grid_grd_stmtinfo.getColumn(goldRow, "sdataset" + goldCol)).substr(0, 11) == "ds_comborow")
  1175. {
  1176. if(!utlf_isNull(gstredit2))
  1177. {
  1178. var Gubun = false;
  1179. var nAttrcd = utlf_transNullToEmpty(ds_grid_grd_stmtinfo.getColumn(goldRow, "sdataset" + goldCol));
  1180. Gubun = lf_showExpr(nAttrcd, goldRow, goldCol, gstredit2);
  1181. var attrvalCol = utlf_transNullToEmpty(swt_recinfo.stmtinfo.grd_stmtinfo.getCellProperty("body", goldCol, "text")).replace("bind:", "");
  1182. ds_grid_grd_stmtinfo.setColumn(goldRow, attrvalCol, gstredit2);
  1183. }
  1184. else if(utlf_isNull(gstredit2))
  1185. {
  1186. if(!utlf_isNull(swt_recinfo.stmtinfo.grd_stmtinfo.getCellProperty("body", goldCol, "text")))
  1187. {
  1188. var attrvalCol = utlf_transNullToEmpty(swt_recinfo.stmtinfo.grd_stmtinfo.getCellProperty("body", goldCol, "text")).replace("bind:", "");
  1189. if(boltextchange == true){
  1190. ds_grid_grd_stmtinfo.enableevent = false;
  1191. ds_grid_grd_stmtinfo.updatecontrol = false;
  1192. ds_grid_grd_stmtinfo.setColumn(goldRow, attrvalCol, gstredit2);
  1193. ds_grid_grd_stmtinfo.enableevent = true;
  1194. ds_grid_grd_stmtinfo.updatecontrol = true;
  1195. }
  1196. // if(utlf_isNull(ds_grid_grd_stmtinfo.getColumn(goldRow, attrvalCol)))
  1197. // {
  1198. // ds_grid_grd_stmtinfo.enableevent = false;
  1199. // ds_grid_grd_stmtinfo.updatecontrol = false;
  1200. // ds_grid_grd_stmtinfo.setColumn(goldRow, attrvalCol, gstredit2);
  1201. // ds_grid_grd_stmtinfo.enableevent = true;
  1202. // ds_grid_grd_stmtinfo.updatecontrol = true;
  1203. // }
  1204. }
  1205. }
  1206. }
  1207. gstredit2 = "";
  1208. boltextchange = false;
  1209. if(e.col != 0){
  1210. obj.showEditor(true);
  1211. }
  1212. }
  1213. function swt_recinfo_stmtinfo_grd_stmtinfo_onkeydown(obj:Grid, e:KeyEventInfo)
  1214. {
  1215. var iRow = ds_grid_grd_stmtinfo.rowposition;
  1216. var iCol = obj.currentcol;
  1217. goldRow = iRow;
  1218. goldCol = iCol;
  1219. if(e.keycode == 13){
  1220. if(utlf_isNull(gstredit2))
  1221. {
  1222. if(iCol >6){
  1223. var attrvalCol = utlf_transNullToEmpty(swt_recinfo.stmtinfo.grd_stmtinfo.getCellProperty("body", goldCol, "text")).replace("bind:", "");
  1224. ds_grid_grd_stmtinfo.setColumn(goldRow, attrvalCol, gstredit2);
  1225. }
  1226. }
  1227. bolenter = true;
  1228. goldRow = iRow;
  1229. goldCol = iCol;
  1230. if(!utlf_isNull(ds_grid_grd_stmtinfo.getColumnInfo("sdataset" + goldCol)) && utlf_transNullToEmpty(ds_grid_grd_stmtinfo.getColumn(goldRow, "sdataset" + goldCol)).substr(0, 11) == "ds_comborow")
  1231. {
  1232. if(!utlf_isNull(gstredit2))
  1233. {
  1234. var Gubun = false;
  1235. var nAttrcd = utlf_transNullToEmpty(ds_grid_grd_stmtinfo.getColumn(goldRow, "sdataset" + goldCol));
  1236. Gubun = lf_showExpr(nAttrcd, goldRow, goldCol, gstredit2);
  1237. var attrvalCol = utlf_transNullToEmpty(swt_recinfo.stmtinfo.grd_stmtinfo.getCellProperty("body", goldCol, "text")).replace("bind:", "");
  1238. ds_grid_grd_stmtinfo.setColumn(goldRow, attrvalCol, gstredit2);
  1239. }
  1240. else if(utlf_isNull(gstredit2))
  1241. {
  1242. if(!utlf_isNull(swt_recinfo.stmtinfo.grd_stmtinfo.getCellProperty("body", goldCol, "text")))
  1243. {
  1244. var attrvalCol = utlf_transNullToEmpty(swt_recinfo.stmtinfo.grd_stmtinfo.getCellProperty("body", goldCol, "text")).replace("bind:", "");
  1245. if(utlf_isNull(ds_grid_grd_stmtinfo.getColumn(goldRow, attrvalCol)))
  1246. {
  1247. ds_grid_grd_stmtinfo.enableevent = false;
  1248. ds_grid_grd_stmtinfo.updatecontrol = false;
  1249. ds_grid_grd_stmtinfo.setColumn(goldRow, attrvalCol, gstredit2);
  1250. ds_grid_grd_stmtinfo.enableevent = true;
  1251. ds_grid_grd_stmtinfo.updatecontrol = true;
  1252. }
  1253. }
  1254. }
  1255. obj.showEditor(false);
  1256. }
  1257. boltextchange = false;
  1258. gstredit2 = "";
  1259. }
  1260. }
  1261. function swt_recinfo_stmtinfo_grd_stmtinfo_ontextchanged(obj:Grid, e:GridEditTextChangedEventInfo)
  1262. {
  1263. var iRow = ds_grid_grd_stmtinfo.rowposition;
  1264. var iCol = e.col;
  1265. goldRow = iRow;
  1266. goldCol = iCol;
  1267. gstredit2 = utlf_transNullToEmpty(swt_recinfo.stmtinfo.grd_stmtinfo.getEditText(iRow, iCol));
  1268. boltextchange = true;
  1269. }
  1270. function swt_recinfo_stmtinfo_grd_stmtinfo_onkillfocus(obj:Grid, e:KillFocusEventInfo)
  1271. {
  1272. frmf_inputEnterKey("swt_recinfo.stmtinfo.grd_stmtinfo", "onselectchanged", new GridSelectEventInfo);
  1273. }]]></Script>
  1274. </Form>
  1275. </FDL>