SMMNR02200_약물계산식관리.xfdl 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SMMNR02200" position="absolute 0 0 1256 805" titletext="약물계산식관리" onload="SMMNR02200_onload" oninit="SMMNR02200_oninit">
  5. <Layouts>
  6. <Layout>
  7. <Div id="grp_btn" position="absolute 0 757 1195 784" anchor="default" positiontype="position" scrollbars="autoboth">
  8. <Layouts>
  9. <Layout/>
  10. </Layouts>
  11. </Div>
  12. <Static id="caption6" text="약물계산식관리" class="tit_1" position="absolute 0 3 160 32" positiontype="position"/>
  13. <Static id="caption42" text="계산항목 리스트" class="tit_2" position="absolute 0 33 160 53" positiontype="position"/>
  14. <Grid id="grd_itemlist" class="datagrid2" taborder="1" useinputpanel="false" position="absolute 0 53 616 805" onlbuttonDown="grd_itemlist_onlbuttonDown" autofittype="col" anchor="left top bottom" binddataset="ds_grid_grd_itemlist" positiontype="position" onbuttondown="grd_itemlist_onbuttondown" onclick="grd_itemlist_onclick" onrbuttondown="grd_itemlist_onrbuttondown" oncellclick="grd_itemlist_oncellclick">
  15. <Formats>
  16. <Format id="default">
  17. <Columns>
  18. <Column size="40"/>
  19. <Column size="239"/>
  20. <Column size="299"/>
  21. <Column size="54"/>
  22. <Column size="0"/>
  23. <Column size="0"/>
  24. <Column size="0"/>
  25. </Columns>
  26. <Rows>
  27. <Row size="22" band="head"/>
  28. <Row size="20"/>
  29. </Rows>
  30. <Band id="head">
  31. <Cell/>
  32. <Cell col="1" text="항목명"/>
  33. <Cell col="2" text="항목설명"/>
  34. <Cell col="3" text="조회순서"/>
  35. <Cell col="4" text="itemcd"/>
  36. <Cell col="5" text="calform"/>
  37. <Cell col="6" text="supcd"/>
  38. </Band>
  39. <Band id="body">
  40. <Cell displaytype="image" expr="expr: getRowType(currow) == 2 ?'theme://images/ico_i.png' : (getRowType(currow) == 4 ? 'theme://images/ico_u.png' : (getRowType(currow) == 8 ? 'theme://images/ico_d.png' : 'theme://images/ico_e.png'))"/>
  41. <Cell col="1" displaytype="text" edittype="text" text="bind:itemnm"/>
  42. <Cell col="2" displaytype="text" edittype="text" text="bind:desccnts"/>
  43. <Cell col="3" displaytype="text" edittype="text" text="bind:refseq"/>
  44. <Cell col="4" text="bind:itemcd"/>
  45. <Cell col="5" text="bind:calform"/>
  46. <Cell col="6" text="bind:supcd"/>
  47. <Cell col="7"/>
  48. <Cell col="8"/>
  49. <Cell col="9"/>
  50. <Cell col="10"/>
  51. </Band>
  52. </Format>
  53. </Formats>
  54. </Grid>
  55. <Button id="btn_srch" taborder="2" text="조회" onlbuttonup="btn_srch_onlbuttonup" class="btn2" position="absolute 500 30 544 50" positiontype="position" onclick="btn_srch_onclick"/>
  56. <Button id="btn_saveitem" taborder="3" text="항목저장" onlbuttonup="btn_saveitem_onlbuttonup" class="btn2" position="absolute 549 30 617 50" positiontype="position" onclick="btn_saveitem_onclick"/>
  57. <Static id="caption1" text="약물계산식 관리" class="tit_2" position="absolute 626 33 755 53" anchor="left top" positiontype="position"/>
  58. <Grid id="grd_elmtlist" class="datagrid2" taborder="4" useinputpanel="false" position="absolute 626 53 1256 436" onlbuttonDown="grd_elmtlist_onlbuttonDown" autofittype="col" anchor="left top right" binddataset="ds_grid_grd_elmtlist" positiontype="position" onbuttondown="grd_elmtlist_onbuttondown" onrbuttondown="grd_elmtlist_onrbuttondown">
  59. <Formats>
  60. <Format id="default">
  61. <Columns>
  62. <Column size="40"/>
  63. <Column size="224"/>
  64. <Column size="320"/>
  65. <Column size="52"/>
  66. <Column size="0"/>
  67. </Columns>
  68. <Rows>
  69. <Row size="22" band="head"/>
  70. <Row size="20"/>
  71. </Rows>
  72. <Band id="head">
  73. <Cell/>
  74. <Cell col="1" text="요소명칭"/>
  75. <Cell col="2" text="요소설명"/>
  76. <Cell col="3" text="조회순서"/>
  77. <Cell col="4" text="itemcd"/>
  78. </Band>
  79. <Band id="body">
  80. <Cell displaytype="image" expr="expr: getRowType(currow) == 2 ?'theme://images/ico_i.png' : (getRowType(currow) == 4 ? 'theme://images/ico_u.png' : (getRowType(currow) == 8 ? 'theme://images/ico_d.png' : 'theme://images/ico_e.png'))"/>
  81. <Cell col="1" displaytype="text" edittype="text" text="bind:itemnm"/>
  82. <Cell col="2" displaytype="text" edittype="text" text="bind:desccnts"/>
  83. <Cell col="3" displaytype="text" edittype="text" text="bind:refseq"/>
  84. <Cell col="4" text="bind:itemcd"/>
  85. <Cell col="5" text="bind:supcd"/>
  86. <Cell col="6"/>
  87. <Cell col="7"/>
  88. </Band>
  89. </Format>
  90. </Formats>
  91. </Grid>
  92. <Static id="caption2" text="항목별 계산식" class="tit_2" position="absolute 626 446 755 466" anchor="left top" positiontype="position"/>
  93. <TextArea id="tar_calform" taborder="5" position="absolute 626 466 1256 805" anchor="all" imemode="hangul" positiontype="position" oneditclick="tar_calform_oneditclick" style="font:Dotum,16,bold;"/>
  94. <Button id="btn_saveelmt" taborder="6" text="요소저장" onlbuttonup="btn_saveelmt_onlbuttonup" class="btn2" position="absolute 1188 30 1256 50" anchor="top right" positiontype="position" onclick="btn_saveelmt_onclick"/>
  95. </Layout>
  96. </Layouts>
  97. <Objects>
  98. <Dataset id="ds_grid_grd_itemlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  99. <ColumnInfo>
  100. <Column id="itemnm" type="STRING"/>
  101. <Column id="desccnts" type="STRING"/>
  102. <Column id="refseq" type="STRING"/>
  103. <Column id="itemcd" type="STRING"/>
  104. <Column id="calform" type="STRING"/>
  105. <Column id="supcd" type="STRING"/>
  106. </ColumnInfo>
  107. </Dataset>
  108. <Dataset id="ds_grid_grd_elmtlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  109. <ColumnInfo>
  110. <Column id="itemnm" type="STRING"/>
  111. <Column id="desccnts" type="STRING"/>
  112. <Column id="refseq" type="STRING"/>
  113. <Column id="itemcd" type="STRING"/>
  114. <Column id="supcd" type="STRING"/>
  115. </ColumnInfo>
  116. </Dataset>
  117. <Dataset id="ds_data_itemlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  118. <ColumnInfo>
  119. <Column id="m"/>
  120. <Column id="itemnm"/>
  121. <Column id="desccnts"/>
  122. <Column id="refseq"/>
  123. <Column id="itemcd"/>
  124. <Column id="calform"/>
  125. <Column id="supcd"/>
  126. </ColumnInfo>
  127. </Dataset>
  128. <Dataset id="ds_temp" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  129. <ColumnInfo>
  130. <Column id="supcd" type="STRING" size="256"/>
  131. <Column id="itemlist" type="STRING" size="256"/>
  132. </ColumnInfo>
  133. <Rows>
  134. <Row/>
  135. </Rows>
  136. </Dataset>
  137. <Dataset id="ds_init" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  138. <ColumnInfo>
  139. <Column id="itemcalform" type="STRING" size="256"/>
  140. </ColumnInfo>
  141. <Rows>
  142. <Row/>
  143. </Rows>
  144. </Dataset>
  145. <Dataset id="ds_temp1" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  146. </Objects>
  147. <Bind>
  148. <BindItem id="item0" compid="tar_calform" propid="value" datasetid="ds_init" columnid="itemcalform"/>
  149. </Bind>
  150. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  151. * System Name :
  152. * Job Name :
  153. * File Name : SMMNR02200_약물계산식관리.xfdl
  154. * Creator :
  155. * Make Date :
  156. *
  157. * Description :
  158. *---------------------------------------------------------------------------------------
  159. * Modify Date Modifier Modify Description
  160. *---------------------------------------------------------------------------------------
  161. *
  162. *---------------------------------------------------------------------------------------
  163. ****************************************************************************************/
  164. //=======================================================================================
  165. // xjs Include
  166. //---------------------------------------------------------------------------------------
  167. include "emr_carerecxp::SMMNR022.xjs";
  168. include "com_commonxp::comm_main.xjs";
  169. var lfv_itemnm = ""; //검색할 항목코드 또는 명
  170. //=======================================================================================
  171. // Event
  172. //---------------------------------------------------------------------------------------
  173. /****************************************************************************************
  174. * Components :
  175. * Components ID : SMMNR02200
  176. * Event : onload
  177. * Argument : 01.obj : Object Event has occurred
  178. * : 02.e : Event Object
  179. * Description :
  180. ****************************************************************************************/
  181. function SMMNR02200_onload(obj:Form, e:LoadEventInfo)
  182. {
  183. fInitialize();
  184. frmf_createPopupMenu("pmn_popupMenu", "pmn_popupMenu_onmenuclick", [{id: "add", level: "1", title: "항목추가"},{id: "delete", level: "1", title: "항목삭제"}]);
  185. frmf_createPopupMenu("pn_popupMenu", "pn_popupMenu_onmenuclick", [{id: "addd", level: "1", title: "요소추가"},{id: "deletee", level: "1", title: "요소삭제"}]);
  186. ds_grid_grd_itemlist.rowposition = '-1';
  187. }
  188. function SMMNR02200_oninit(obj:Form, e:InitEventInfo)
  189. {
  190. frmf_initForm(obj); // 화면공통
  191. }
  192. /****************************************************************************************
  193. * Components :
  194. * Components ID : btn_srch
  195. * Event : onclick
  196. * Argument : 01.obj : Object Event has occurred
  197. * : 02.e : Event Object
  198. * Description :
  199. ****************************************************************************************/
  200. function btn_srch_onclick(obj:Button, e:ClickEventInfo)
  201. {
  202. fSrchItemList("item");
  203. }
  204. /****************************************************************************************
  205. * Components :
  206. * Components ID : btn_saveitem
  207. * Event : onclick
  208. * Argument : 01.obj : Object Event has occurred
  209. * : 02.e : Event Object
  210. * Description :
  211. ****************************************************************************************/
  212. function btn_saveitem_onclick(obj:Button, e:ClickEventInfo)
  213. {
  214. fSaveItemList("item");
  215. }
  216. /****************************************************************************************
  217. * Components :
  218. * Components ID : btn_saveelmt
  219. * Event : onclick
  220. * Argument : 01.obj : Object Event has occurred
  221. * : 02.e : Event Object
  222. * Description :
  223. ****************************************************************************************/
  224. function btn_saveelmt_onclick(obj:Button, e:ClickEventInfo)
  225. {
  226. fSaveItemList("elmt");
  227. }
  228. /****************************************************************************************
  229. * Components :
  230. * Components ID : grd_itemlist
  231. * Event : onbuttondown
  232. * Argument : 01.obj : Object Event has occurred
  233. * : 02.e : Event Object
  234. * Description :
  235. ****************************************************************************************/
  236. function grd_itemlist_onrbuttondown(obj:Grid, e:GridMouseEventInfo)
  237. {
  238. pmn_popupMenu.trackPopup(e.screenX,e.screenY);
  239. }
  240. /****************************************************************************************
  241. * Components :
  242. * Components ID : grd_itemlist
  243. * Event : onclick
  244. * Argument : 01.obj : Object Event has occurred
  245. * : 02.e : Event Object
  246. * Description :
  247. ****************************************************************************************/
  248. function grd_itemlist_oncellclick(obj:Grid, e:GridClickEventInfo)
  249. {
  250. fSrchItemList("elmt");
  251. }
  252. /****************************************************************************************
  253. * Components :
  254. * Components ID : grd_itemlist
  255. * Event : onmouseleave
  256. * Argument : 01.obj : Object Event has occurred
  257. * : 02.e : Event Object
  258. * Description :
  259. ****************************************************************************************/
  260. function grd_itemlist_onmouseleave(obj:Grid, e:MouseEventInfo)
  261. {
  262. }
  263. /****************************************************************************************
  264. * Components :
  265. * Components ID : grd_elmtlist
  266. * Event : onbuttondown
  267. * Argument : 01.obj : Object Event has occurred
  268. * : 02.e : Event Object
  269. * Description :
  270. ****************************************************************************************/
  271. function grd_elmtlist_onrbuttondown(obj:Grid, e:GridMouseEventInfo)
  272. {
  273. pn_popupMenu.trackPopup(e.screenX,e.screenY);
  274. }
  275. /****************************************************************************************
  276. * Components :
  277. * Components ID : grd_elmtlist
  278. * Event : onmouseleave
  279. * Argument : 01.obj : Object Event has occurred
  280. * : 02.e : Event Object
  281. * Description :
  282. ****************************************************************************************/
  283. function grd_elmtlist_onmouseleave(obj:Grid, e:MouseEventInfo)
  284. {
  285. //window.setPopupMenu(false);
  286. }
  287. function pmn_popupMenu_onmenuclick(obj:PopupMenu, e:MenuClickEventInfo){
  288. if(e.id == "add"){
  289. fAddItem()
  290. }else if(e.id == "delete"){
  291. fDelItem()
  292. }
  293. }
  294. function pn_popupMenu_onmenuclick(obj:PopupMenu, e:MenuClickEventInfo){
  295. if(e.id == "addd"){
  296. fAddElmt()
  297. }else if(e.id == "deletee"){
  298. fDelElmt()
  299. }
  300. }
  301. ]]></Script>
  302. </Form>
  303. </FDL>