SPMNR03300_투약시간관리.xfdl 27 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SPMNR03300" position="absolute 0 0 629 495" titletext="투약시간 관리" oninit="SPMNR03300_oninit" onload="SPMNR03300_onload">
  5. <Layouts>
  6. <Layout>
  7. <Static text="투약시간 관리" position="absolute 1 16 116 32" id="caption22" class="tit_2"/>
  8. <Static text="시작" position="absolute 275 337 330 360" align="align:center middle;" id="caption13" class="cell_1"/>
  9. <Static text="Interval 지정" position="absolute 276 316 376 334" id="caption4" class="tit_2"/>
  10. <Static text="Interval" position="absolute 397 337 452 360" align="align:center middle;" id="caption5" class="cell_1"/>
  11. <Static text="시간" position="absolute 487 338 517 358" align="align:center middle;" id="caption7"/>
  12. <Static text="분" position="absolute 572 338 573 358" align="align:center middle;" id="caption8"/>
  13. <Shape position="absolute 275 357 625 363" linetype="horizontal" id="line5" class="line_3"/>
  14. <Static text="분" position="absolute 554 338 577 358" align="align:center middle;" id="caption1"/>
  15. <Grid position="absolute 0 270 270 490" id="grd_mthd" taborder="1" binddataset="ds_main_drugmthdlist_drugmthdlist" autoenter="key" selecttype="multiarea" autosizingtype="none" autofittype="col" ontextchanged="grd_mthd_ontextchanged" onenterdown="grd_mthd_onenterdown" oncelldblclick="grd_mthd_oncelldblclick">
  16. <Formats>
  17. <Format id="default">
  18. <Columns>
  19. <Column size="0"/>
  20. <Column size="40"/>
  21. <Column size="70"/>
  22. <Column size="40"/>
  23. <Column size="70"/>
  24. <Column size="27"/>
  25. </Columns>
  26. <Rows>
  27. <Row size="24" band="head"/>
  28. <Row size="24" band="head"/>
  29. <Row size="24"/>
  30. </Rows>
  31. <Band id="head">
  32. <Cell text="용법"/>
  33. <Cell col="1" colspan="2" text="기존" taborder="undefined"/>
  34. <Cell col="3" colspan="2" text="변경" taborder="undefined"/>
  35. <Cell col="5" rowspan="2" text="구&#10;분" taborder="undefined"/>
  36. <Cell row="1" text="용법"/>
  37. <Cell row="1" col="1" text="Day"/>
  38. <Cell row="1" col="2" text="기준시간"/>
  39. <Cell row="1" col="3" text="Day"/>
  40. <Cell row="1" col="4" text="기준시간"/>
  41. </Band>
  42. <Band id="body">
  43. <Cell displaytype="none" edittype="none" text="bind:mthdcd"/>
  44. <Cell col="1" edittype="none" text="bind:drugmthdday"/>
  45. <Cell col="2" edittype="none" text="bind:drugmthdtime" mask="expr:utlf_isNull(drugmthdtime) ? '' : '##:##'"/>
  46. <Cell col="3" displaytype="text" edittype="text" style="align:center;" text="bind:c_drugmthdday" editautoselect="true"/>
  47. <Cell col="4" displaytype="text" edittype="mask" style="align:center;" text="bind:c_drugmthdtime" mask="##:##" maskchar=" " edittrimtype="both" editautoselect="true"/>
  48. <Cell col="5" text="bind:medrexecflag"/>
  49. </Band>
  50. </Format>
  51. </Formats>
  52. </Grid>
  53. <Edit readonly="true" position="absolute 57 39 104 58" align="align:left middle;" id="opt_tims"/>
  54. <Edit readonly="true" position="absolute 460 65 628 84" align="align:left middle;" id="opt_mthd" visible="false"/>
  55. <Edit position="absolute 455 339 485 358" align="align:center middle;" id="ipt_hinterval" class="input_default" taborder="3" autoselect="true" autoskip="true" maxlength="2" style="align:center middle;"/>
  56. <MaskEdit position="absolute 333 339 393 358" align="align:center middle;" id="ipt_sinterval" class="input_default" taborder="2" mask="##:##" maskchar=" " autoselect="true" type="string" style="align:center middle;" autoskip="true" displaynulltext=" " trimtype="right"/>
  57. <Edit position="absolute 520 339 550 358" align="align:center middle;" id="ipt_minterval" class="input_default" taborder="4" autoselect="true" maxlength="2" style="align:center middle;"/>
  58. <Button position="absolute 225 245 267 264" id="btn_save" class="btn5" taborder="7" text="저장" onclick="btn_save_onclick"/>
  59. <Button position="absolute 580 312 622 331" id="btn_interval" class="btn2" taborder="7" text="반영" onclick="btn_interval_onclick"/>
  60. <Static text="Interval 지정" position="absolute 276 316 376 332" id="caption3" class="tit_2"/>
  61. <Shape position="absolute 275 332 625 338" linetype="horizontal" id="line2" class="line_10"/>
  62. <Button position="absolute 580 245 622 264" id="button1" class="btn2" taborder="7" text="반영" onclick="button1_onclick"/>
  63. <Shape position="absolute 275 265 625 274" linetype="horizontal" id="line3" class="line_10"/>
  64. <Combo position="absolute 276 271 581 290" id="cmb_mthd" class="combo_search" taborder="1" innerdataset="@ds_temp_timeinfo_timelist" datacolumn="timenm" codecolumn="timecd"/>
  65. <Static text="횟수 :" position="absolute 0 37 55 60" align="align:center middle;" id="caption9" class="cell_1"/>
  66. <Edit readonly="true" position="absolute 280 65 370 84" align="align:left middle;" id="output1" visible="false"/>
  67. <Shape position="absolute 0 57 625 63" linetype="horizontal" id="line6" class="line_3"/>
  68. <Shape position="absolute 277 289 625 295" linetype="horizontal" id="line7" class="line_3"/>
  69. <Shape position="absolute 0 31 625 39" linetype="horizontal" id="line8" class="line_10"/>
  70. <Edit readonly="true" position="absolute 372 65 457 84" align="align:left middle;" id="out_prcphopedd" visible="false"/>
  71. <Static text="입원일" position="absolute 105 37 154 60" align="align:center middle;" id="caption10" class="cell_1"/>
  72. <Edit readonly="true" position="absolute 155 39 245 58" align="align:left middle;" id="out_indd" visible="true"/>
  73. <Static text="시간대 정보" position="absolute 1 249 101 265" id="caption2" class="tit_2"/>
  74. <Static text="처방리스트" position="absolute 1 82 101 98" id="caption11" class="tit_2"/>
  75. <Grid position="absolute 0 103 625 233" id="grd_prcplist" taborder="1" binddataset="ds_hidden_param1_list" selecttype="multiarea" autofittype="col">
  76. <Formats>
  77. <Format id="default">
  78. <Columns>
  79. <Column size="93"/>
  80. <Column size="258"/>
  81. <Column size="172"/>
  82. <Column size="77"/>
  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 edittype="none" style="align:left;" text="bind:prcpcd"/>
  96. <Cell col="1" edittype="none" style="align:left;" text="bind:prcpnm"/>
  97. <Cell col="2" edittype="none" style="align:left;" text="bind:drugmthdspccd"/>
  98. <Cell col="3" edittype="none" text="bind:prcphopedd"/>
  99. </Band>
  100. </Format>
  101. </Formats>
  102. </Grid>
  103. <Shape position="absolute 267 269 273 491" linetype="vertical" id="line9" class="line_3"/>
  104. <Static text="공통 지정" position="absolute 276 249 376 265" id="caption12" class="tit_2"/>
  105. <Shape id="line10" class="line_10" position="absolute 0 97 625 105"/>
  106. <Shape id="line00" class="line_10" position="absolute -1 264 270 272"/>
  107. </Layout>
  108. </Layouts>
  109. <Objects>
  110. <Dataset id="ds_main_drugmthdlist_drugmthdlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false" oncolumnchanged="ds_main_drugmthdlist_drugmthdlist_oncolumnchanged">
  111. <ColumnInfo>
  112. <Column id="mthdcd" type="STRING"/>
  113. <Column id="drugmthdday" type="STRING"/>
  114. <Column id="drugmthdtime" type="STRING"/>
  115. <Column id="c_drugmthdday" type="STRING"/>
  116. <Column id="c_drugmthdtime" type="STRING"/>
  117. <Column id="medrexecflag" type="STRING"/>
  118. </ColumnInfo>
  119. </Dataset>
  120. <Dataset id="ds_temp_timeinfo_timelist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  121. <ColumnInfo>
  122. <Column id="timenm" type="STRING"/>
  123. <Column id="timecd" type="STRING"/>
  124. </ColumnInfo>
  125. </Dataset>
  126. <Dataset id="ds_hidden_param1_list" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  127. <ColumnInfo>
  128. <Column id="check" type="STRING" size="256"/>
  129. <Column id="labelprntyn" type="STRING" size="256"/>
  130. <Column id="prcpkindnm" type="STRING" size="256"/>
  131. <Column id="aprvstat" type="STRING" size="256"/>
  132. <Column id="prcpmixno" type="STRING" size="256"/>
  133. <Column id="prcpcd" type="STRING" size="256"/>
  134. <Column id="prcpnm" type="STRING" size="256"/>
  135. <Column id="prcpvol" type="STRING" size="256"/>
  136. <Column id="drprcpetc7" type="STRING" size="256"/>
  137. <Column id="prcpvolunitflag" type="STRING" size="256"/>
  138. <Column id="prcpqty" type="STRING" size="256"/>
  139. <Column id="drprcpetc8" type="STRING" size="256"/>
  140. <Column id="prcpqtyunitflag" type="STRING" size="256"/>
  141. <Column id="prcptims" type="STRING" size="256"/>
  142. <Column id="abbrnm" type="STRING" size="256"/>
  143. <Column id="drugmthdspccd" type="STRING" size="256"/>
  144. <Column id="drugtmspec_recalc1" type="STRING" size="256"/>
  145. <Column id="prcpdelivefact" type="STRING" size="256"/>
  146. <Column id="orddrnm" type="STRING" size="256"/>
  147. <Column id="fstrgstdt" type="STRING" size="256"/>
  148. <Column id="prcphopedd" type="STRING" size="256"/>
  149. <Column id="sapnoyn" type="STRING" size="256"/>
  150. <Column id="engnm" type="STRING" size="256"/>
  151. <Column id="depth" type="STRING" size="256"/>
  152. <Column id="execprcpnoarr" type="STRING" size="256"/>
  153. <Column id="prcphistnoarr" type="STRING" size="256"/>
  154. <Column id="execuniqnoarr" type="STRING" size="256"/>
  155. <Column id="dispflag" type="STRING" size="256"/>
  156. <Column id="drugtmspec_recalc2" type="STRING" size="256"/>
  157. <Column id="drugtmspeccal" type="STRING" size="256"/>
  158. <Column id="dispddarray" type="STRING" size="256"/>
  159. <Column id="disptmarray" type="STRING" size="256"/>
  160. <Column id="dispflagarray" type="STRING" size="256"/>
  161. <Column id="dispflaggroup" type="STRING" size="256"/>
  162. <Column id="todaydrugtimes" type="STRING" size="256"/>
  163. <Column id="antiastrids" type="STRING" size="256"/>
  164. <Column id="antiastrnms" type="STRING" size="256"/>
  165. <Column id="validateyn1" type="STRING" size="256"/>
  166. <Column id="prcpno" type="STRING" size="256"/>
  167. <Column id="tims" type="STRING" size="256"/>
  168. <Column id="calctims" type="STRING" size="256"/>
  169. <Column id="spcldrug" type="STRING" size="256"/>
  170. <Column id="dccomcountyn" type="STRING" size="256"/>
  171. <Column id="reqflag" type="STRING" size="256"/>
  172. <Column id="drugtmspec" type="STRING" size="256"/>
  173. <Column id="drugbasetmspec" type="STRING" size="256"/>
  174. <Column id="bfprcpequalyn" type="STRING" size="256"/>
  175. <Column id="prcpdd" type="STRING" size="256"/>
  176. <Column id="dccountyn" type="STRING" size="256"/>
  177. <Column id="issdeptcd" type="STRING" size="256"/>
  178. <Column id="psydept" type="STRING" size="256"/>
  179. <Column id="prcpgenrflag" type="STRING" size="256"/>
  180. <Column id="anticheck" type="STRING" size="256"/>
  181. <Column id="pid" type="STRING" size="256"/>
  182. <Column id="indd" type="STRING" size="256"/>
  183. <Column id="cretno" type="STRING" size="256"/>
  184. <Column id="careprnexecflag" type="STRING" size="256"/>
  185. <Column id="prcphistcd" type="STRING" size="256"/>
  186. <Column id="orgprcpclscd" type="STRING" size="256"/>
  187. <Column id="tempdrugtmspeccal" type="STRING" size="256"/>
  188. <Column id="last" type="STRING" size="256"/>
  189. <Column id="row" type="STRING" size="256"/>
  190. <Column id="col" type="STRING" size="256"/>
  191. <Column id="sLineFlag" type="STRING" size="256"/>
  192. <Column id="viewroomcd" type="STRING" size="256"/>
  193. <Column id="soding" type="STRING" size="256"/>
  194. <Column id="prtprcpclscd" type="STRING" size="256"/>
  195. <Column id="mthdcd" type="STRING" size="256"/>
  196. <Column id="todaydrug" type="STRING" size="256"/>
  197. <Column id="patnm" type="STRING" size="256"/>
  198. <Column id="roomcd" type="STRING" size="256"/>
  199. <Column id="sexage" type="STRING" size="256"/>
  200. <Column id="prtabbrnm" type="STRING" size="256"/>
  201. <Column id="hngnm" type="STRING" size="256"/>
  202. <Column id="astyn" type="STRING" size="256"/>
  203. <Column id="prcpcdprt" type="STRING" size="256"/>
  204. <Column id="ast" type="STRING" size="256"/>
  205. <Column id="disp1" type="STRING" size="256"/>
  206. <Column id="disp2" type="STRING" size="256"/>
  207. <Column id="disp3" type="STRING" size="256"/>
  208. <Column id="execcarestatcd" type="STRING" size="256"/>
  209. <Column id="issdept" type="STRING" size="256"/>
  210. <Column id="carertnyn" type="STRING" size="256"/>
  211. <Column id="drugrateqty" type="STRING" size="256"/>
  212. <Column id="orddeptcd" type="STRING" size="256"/>
  213. <Column id="orddrid" type="STRING" size="256"/>
  214. <Column id="rtnstat" type="STRING" size="256"/>
  215. <Column id="preantiyn" type="STRING" size="256"/>
  216. <Column id="mthdcnts4" type="STRING" size="256"/>
  217. <Column id="prcpclscd" type="STRING" size="256"/>
  218. </ColumnInfo>
  219. </Dataset>
  220. <Dataset id="ds_send_reqdata" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  221. <ColumnInfo>
  222. <Column id="direccd" type="STRING" size="256" sumtext="용법코드 "/>
  223. <Column id="exectims" type="STRING" size="256" sumtext="처방횟수 "/>
  224. <Column id="flag" type="STRING" size="256" sumtext="구분 "/>
  225. <Column id="deptcd" type="STRING" size="256" sumtext="부서코드 "/>
  226. <Column id="prcpcd" type="STRING" size="256" sumtext="약품코드 "/>
  227. </ColumnInfo>
  228. <Rows>
  229. <Row/>
  230. </Rows>
  231. </Dataset>
  232. <Dataset id="ds_send_savedata_mthdinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  233. <ColumnInfo>
  234. <Column id="pid" type="STRING" size="256" sumtext="등록번호"/>
  235. <Column id="prcpdd" type="STRING" size="256" sumtext="처방일자"/>
  236. <Column id="prcpcd" type="STRING" size="256" sumtext="처방코드"/>
  237. <Column id="prcpno" type="STRING" size="256" sumtext="처방번호"/>
  238. <Column id="prcphistno" type="STRING" size="256" sumtext="처방이력번호"/>
  239. <Column id="execprcpno" type="STRING" size="256" sumtext="실시처방번호"/>
  240. <Column id="execprcptims" type="STRING" size="256" sumtext="실시처방횟수"/>
  241. <Column id="carebasedd" type="STRING" size="256" sumtext="투약기준일자"/>
  242. <Column id="status" type="STRING" size="256" sumtext="상태값"/>
  243. <Column id="carebasetm" type="STRING" size="256" sumtext="투약기준시간"/>
  244. <Column id="carebasetmspec" type="STRING" size="256" sumtext="투약기준시간(Free text)"/>
  245. <Column id="execprcpuniqno" type="INT" size="256" sumtext="실시처방 유일번호"/>
  246. </ColumnInfo>
  247. </Dataset>
  248. <Dataset id="ds_hidden_param2_list" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  249. <ColumnInfo>
  250. <Column id="medrexecdd" type="STRING"/>
  251. </ColumnInfo>
  252. </Dataset>
  253. <Dataset id="ds_main_drugmthdinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  254. <ColumnInfo>
  255. <Column id="tims" type="STRING" size="256"/>
  256. <Column id="abbrnm" type="STRING" size="256"/>
  257. <Column id="s_interval" type="STRING" size="256"/>
  258. <Column id="h_interval" type="STRING" size="256"/>
  259. <Column id="m_interval" type="STRING" size="256"/>
  260. <Column id="change_flag" type="STRING" size="256"/>
  261. <Column id="drugtmspec" type="STRING" size="256"/>
  262. <Column id="abbrcd" type="STRING" size="256"/>
  263. <Column id="prcphopedd" type="STRING" size="256"/>
  264. <Column id="indd" type="STRING" size="256"/>
  265. <Column id="calctims" type="STRING" size="256"/>
  266. </ColumnInfo>
  267. <Rows>
  268. <Row/>
  269. </Rows>
  270. </Dataset>
  271. <Dataset id="ds_hidden_mthdinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  272. <ColumnInfo>
  273. <Column id="prcpno" type="STRING" size="256"/>
  274. <Column id="prcpdd" type="STRING" size="256"/>
  275. <Column id="prcpcd" type="STRING" size="256"/>
  276. <Column id="execprcptims" type="STRING" size="256"/>
  277. <Column id="prcphistno" type="STRING" size="256"/>
  278. <Column id="execprcpno" type="STRING" size="256"/>
  279. <Column id="execprcpuniqno" type="STRING" size="256"/>
  280. <Column id="carebasedd" type="STRING" size="256"/>
  281. <Column id="carebasetm" type="STRING" size="256"/>
  282. <Column id="pid" type="STRING" size="256"/>
  283. <Column id="carebasetmspec" type="STRING" size="256"/>
  284. <Column id="status" type="STRING" size="256"/>
  285. </ColumnInfo>
  286. <Rows>
  287. <Row/>
  288. </Rows>
  289. </Dataset>
  290. </Objects>
  291. <Bind>
  292. <BindItem id="item0" compid="opt_tims" propid="value" datasetid="ds_main_drugmthdinfo" columnid="tims"/>
  293. <BindItem id="item1" compid="out_indd" propid="value" datasetid="ds_main_drugmthdinfo" columnid="indd"/>
  294. <BindItem id="item2" compid="output1" propid="value" datasetid="ds_main_drugmthdinfo" columnid="abbrcd"/>
  295. <BindItem id="item3" compid="out_prcphopedd" propid="value" datasetid="ds_main_drugmthdinfo" columnid="prcphopedd"/>
  296. <BindItem id="item4" compid="opt_mthd" propid="value" datasetid="ds_main_drugmthdinfo" columnid="abbrnm"/>
  297. <BindItem id="item5" compid="cmb_mthd" propid="value" datasetid="ds_main_drugmthdinfo" columnid="drugtmspec"/>
  298. <BindItem id="item6" compid="ipt_sinterval" propid="value" datasetid="ds_main_drugmthdinfo" columnid="s_interval"/>
  299. <BindItem id="item7" compid="ipt_hinterval" propid="value" datasetid="ds_main_drugmthdinfo" columnid="h_interval"/>
  300. <BindItem id="item8" compid="ipt_minterval" propid="value" datasetid="ds_main_drugmthdinfo" columnid="m_interval"/>
  301. </Bind>
  302. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  303. * System Name : 경대 의료정보시스템
  304. * Job Name : emr_caremedirecxp -> SPMNR03300
  305. * Creator : yjh
  306. * Make Date : 2016-05-26
  307. * Description :
  308. *---------------------------------------------------------------------------------------
  309. * Modify Date Modifier Modify Description
  310. *---------------------------------------------------------------------------------------
  311. * 2016-05-26 yjh TF->XP
  312. *
  313. *---------------------------------------------------------------------------------------
  314. ****************************************************************************************/
  315. //=======================================================================================
  316. // Lib Include
  317. //---------------------------------------------------------------------------------------
  318. include "com_commonxp::comm_main.xjs";
  319. include "emr_caremedirecxp::SPMNR03300.xjs"; //yjh : 커밋
  320. include "emr_carecomxp::CareCom.xjs";
  321. //=======================================================================================
  322. // Global Form Variable
  323. //---------------------------------------------------------------------------------------
  324. //=======================================================================================
  325. // Function
  326. //---------------------------------------------------------------------------------------
  327. //=======================================================================================
  328. // Event
  329. //---------------------------------------------------------------------------------------
  330. /****************************************************************************************
  331. * Components : Form
  332. * Components ID : SPMNR03300
  333. * Event : oninit
  334. * Argument : 01.obj : Object Event has occurred
  335. * : 02.e : Event Object
  336. * Description : 화면 처음 초기화시
  337. ****************************************************************************************/
  338. function SPMNR03300_oninit(obj:Form, e:InitEventInfo)
  339. {
  340. frmf_initForm(obj); //폼 초기화
  341. }
  342. /****************************************************************************************
  343. * Components : Form
  344. * Components ID : SPMNR03300
  345. * Event : onload
  346. * Argument : 01.obj : Object Event has occurred
  347. * : 02.e : Event Object
  348. * Description : 화면 로딩 완료시
  349. ****************************************************************************************/
  350. function SPMNR03300_onload(obj:Form, e:LoadEventInfo)
  351. {
  352. fInitialize();
  353. }
  354. /****************************************************************************************
  355. * Components : Dataset
  356. * Components ID : ds_main_drugmthdlist_drugmthdlist
  357. * Event : oncolumnchanged
  358. * Argument : 01.obj : Object Event has occurred
  359. * : 02.e : Event Object
  360. * Description : 데이터셋 값 변경시
  361. ****************************************************************************************/
  362. function ds_main_drugmthdlist_drugmthdlist_oncolumnchanged(obj:Dataset, e:DSColChangeEventInfo)
  363. {
  364. //----------------------------------------(20080927)
  365. // Day : -3~3
  366. // 기준시간 : 0~2400까지
  367. switch( e.columnid ){
  368. case "c_drugmthdday" :
  369. if( e.newvalue < -3 ){
  370. alert("Day는 -3 ~ 3 일 사이에 변경가능합니다");
  371. obj.setColumn(e.row, e.col, "-3");
  372. return;
  373. }
  374. if( e.newvalue > 3 ){
  375. alert("Day는 -3 ~ 3 일 사이에 변경가능합니다");
  376. obj.setColumn(e.row, e.col, "3");
  377. return;
  378. }
  379. break;
  380. case "c_drugmthdtime" :
  381. if( e.newvalue < 0 ){
  382. alert("기준시간은 0 ~ 2400 시간 사이에 변경가능합니다");
  383. obj.setColumn(e.row, e.col, "0001");
  384. return;
  385. }
  386. // if (pGrd.valueMatrix(row,col) = "0000")
  387. // pGrd.valueMatrix(row,col) = "0001";
  388. if( e.newvalue > 2400 ){
  389. alert("기준시간은 0 ~ 2400 시간 사이에 변경가능합니다");
  390. obj.setColumn(e.row, e.col, "2400");
  391. return;
  392. }
  393. break;
  394. default:
  395. break;
  396. }
  397. //obj.rowposition = obj.rowposition+1;
  398. }
  399. /****************************************************************************************
  400. * Components : Button
  401. * Components ID : btn_save
  402. * Event : onclick
  403. * Argument : 01.obj : Object Event has occurred
  404. * : 02.e : Event Object
  405. * Description : 저장버튼 클릭시
  406. ****************************************************************************************/
  407. function btn_save_onclick(obj:Button, e:ClickEventInfo)
  408. {
  409. fSaveDrugmthd();
  410. }
  411. /****************************************************************************************
  412. * Components : Button
  413. * Components ID : button1
  414. * Event : onclick
  415. * Argument : 01.obj : Object Event has occurred
  416. * : 02.e : Event Object
  417. * Description : 반영버튼 클릭시
  418. ****************************************************************************************/
  419. function button1_onclick(obj:Button, e:ClickEventInfo)
  420. {
  421. fTimeApply();
  422. }
  423. /****************************************************************************************
  424. * Components : Button
  425. * Components ID : btn_interval
  426. * Event : onclick
  427. * Argument : 01.obj : Object Event has occurred
  428. * : 02.e : Event Object
  429. * Description : 반영버튼 클릭시
  430. ****************************************************************************************/
  431. function btn_interval_onclick(obj:Button, e:ClickEventInfo)
  432. {
  433. fSaveInterval();
  434. }
  435. /****************************************************************************************
  436. * Components : Grid
  437. * Components ID : grd_mthd
  438. * Event : ontextchanged
  439. * Argument : 01.obj : Object Event has occurred
  440. * : 02.e : Event Object
  441. * Description : 그리드 텍스트 변경시
  442. ****************************************************************************************/
  443. function grd_mthd_ontextchanged(obj:Grid, e:GridEditTextChangedEventInfo)
  444. {
  445. switch( e.col ){
  446. case 4 :
  447. if( (e.posttext).length == "4" && ds_main_drugmthdlist_drugmthdlist.rowposition < (ds_main_drugmthdlist_drugmthdlist.rowcount-1) ){
  448. ds_main_drugmthdlist_drugmthdlist.rowposition = ds_main_drugmthdlist_drugmthdlist.rowposition+1;
  449. }else if( (e.posttext).length == "4" && ds_main_drugmthdlist_drugmthdlist.rowposition == (ds_main_drugmthdlist_drugmthdlist.rowcount-1) ){
  450. obj.setCellPos(e.col);
  451. obj.showEditor(false);
  452. }
  453. break;
  454. default :
  455. break;
  456. }
  457. }
  458. /****************************************************************************************
  459. * Components : Grid
  460. * Components ID : grd_mthd
  461. * Event : onenterdown
  462. * Argument : 01.obj : Object Event has occurred
  463. * : 02.e : Event Object
  464. * Description : 그리드 엔터키 입력시
  465. ****************************************************************************************/
  466. function grd_mthd_onenterdown(obj:Grid, e:GridEditEventInfo)
  467. {
  468. if( ds_main_drugmthdlist_drugmthdlist.rowposition < (ds_main_drugmthdlist_drugmthdlist.rowcount-1) ){
  469. ds_main_drugmthdlist_drugmthdlist.rowposition = ds_main_drugmthdlist_drugmthdlist.rowposition+1;
  470. grd_mthd.setCellPos(e.col);
  471. grd_mthd.setFocus();
  472. }else if( ds_main_drugmthdlist_drugmthdlist.rowposition == (ds_main_drugmthdlist_drugmthdlist.rowcount-1) ){
  473. obj.setCellPos(e.col);
  474. obj.showEditor(false);
  475. }
  476. }
  477. function grd_mthd_oncelldblclick(obj:Grid, e:GridClickEventInfo)
  478. {
  479. if( e.col == 3 || e.col == 4 ){
  480. obj.showEditor(true);
  481. }
  482. }
  483. ]]></Script>
  484. </Form>
  485. </FDL>