SMMNP00580_수술실카덱스 약품 기준자료.xfdl 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SMMNP00580" position="absolute 0 0 900 720" titletext="수술실 카덱스 약품 기준자료" oninit="SMMNP00580_oninit" onload="SMMNP00580_onload">
  5. <Layouts>
  6. <Layout>
  7. <Div position="absolute 0 0 899 25" id="grp_tle">
  8. <Layouts>
  9. <Layout>
  10. <Static text="수술실 카덱스 약품 관리 기준자료 등록" position="absolute 8 0 276 25" id="cap_title" class="tit_1"/>
  11. </Layout>
  12. </Layouts>
  13. </Div>
  14. <Div position="absolute 5 25 900 715" id="group1">
  15. <Layouts>
  16. <Layout>
  17. <Shape id="roundrect5" type="roundrectangle" position="absolute 3 0 879 39"/>
  18. <Static text="약품명 :" position="absolute 21 11 111 28" id="caption4" class="search_name" anchor="default"/>
  19. <Edit position="absolute 115 10 545 29" id="ipt_srchnm" anchor="default" autoselect="true"/>
  20. <Grid position="absolute 5 70 880 335" id="grd_drugstndlist" binddataset="ds_main_stndlist_druglists_druglist" anchor="default" oncelldblclick="group1_grd_drugstndlist_oncelldblclick" selecttype="multirow" cellsizingtype="both">
  21. <Formats>
  22. <Format id="default">
  23. <Columns>
  24. <Column size="0"/>
  25. <Column size="90"/>
  26. <Column size="180"/>
  27. <Column size="100"/>
  28. <Column size="50"/>
  29. <Column size="55"/>
  30. <Column size="85"/>
  31. <Column size="265"/>
  32. <Column size="0"/>
  33. <Column size="0"/>
  34. <Column size="0"/>
  35. </Columns>
  36. <Rows>
  37. <Row size="24" band="head"/>
  38. <Row size="24"/>
  39. </Rows>
  40. <Band id="head">
  41. <Cell/>
  42. <Cell col="1" text="물품코드"/>
  43. <Cell col="2" text="약품명"/>
  44. <Cell col="3" text="규격"/>
  45. <Cell col="4" text="단위"/>
  46. <Cell col="5" text="사용구분"/>
  47. <Cell col="6" text="제조원"/>
  48. <Cell col="7" text="수가명"/>
  49. <Cell col="8" text="allsizespecid"/>
  50. <Cell col="9" text="histno"/>
  51. <Cell col="10" text="histcd"/>
  52. </Band>
  53. <Band id="body">
  54. <Cell displaytype="checkbox" edittype="checkbox" text="bind:chkflag"/>
  55. <Cell col="1" style="align:left;" text="bind:goodcd"/>
  56. <Cell col="2" style="align:left;" text="bind:prcpnm" wordwrap="word"/>
  57. <Cell col="3" style="align:left;" text="bind:goodspec"/>
  58. <Cell col="4" style="align:left;" text="bind:prcpunit"/>
  59. <Cell col="5" style="align:left;" text="bind:useflag"/>
  60. <Cell col="6" style="align:left top;padding:6 2 0 2;" text="bind:prodcmpynm" wordwrap="word"/>
  61. <Cell col="7" style="align:left;" text="bind:calhngnm" wordwrap="word"/>
  62. <Cell col="8" text="bind:allsizespecid"/>
  63. <Cell col="9" text="bind:histno"/>
  64. <Cell col="10" text="bind:histcd"/>
  65. </Band>
  66. </Format>
  67. </Formats>
  68. </Grid>
  69. <Button position="absolute 740 345 782 364" id="button1" class="btn2" text="삭제" anchor="default" onclick="group1_button1_onclick"/>
  70. <Button position="absolute 815 340 871 362" id="button2" class="btn3" text="저장" anchor="default" onclick="group1_button2_onclick"/>
  71. <Grid position="absolute 5 370 880 685" id="grd_drugmnglist" binddataset="ds_main_mnglist_druglists_druglist" anchor="default" selecttype="multirow" cellsizingtype="both" autosizingtype="none" extendsizetype="row">
  72. <Formats>
  73. <Format id="default">
  74. <Columns>
  75. <Column size="24" band="left"/>
  76. <Column size="30"/>
  77. <Column size="90"/>
  78. <Column size="180"/>
  79. <Column size="100"/>
  80. <Column size="50"/>
  81. <Column size="55"/>
  82. <Column size="85"/>
  83. <Column size="265"/>
  84. <Column size="0"/>
  85. <Column size="0"/>
  86. <Column size="0"/>
  87. </Columns>
  88. <Rows>
  89. <Row size="24" band="head"/>
  90. <Row size="24"/>
  91. </Rows>
  92. <Band id="head">
  93. <Cell/>
  94. <Cell col="1"/>
  95. <Cell col="2" text="물품코드"/>
  96. <Cell col="3" text="약품명"/>
  97. <Cell col="4" text="규격"/>
  98. <Cell col="5" text="단위"/>
  99. <Cell col="6" text="사용구분"/>
  100. <Cell col="7" text="제조원"/>
  101. <Cell col="8" text="수가명"/>
  102. <Cell col="9" text="allsizespecid"/>
  103. <Cell col="10" text="histno"/>
  104. <Cell col="11" text="histcd"/>
  105. </Band>
  106. <Band id="body">
  107. <Cell celltype="head"/>
  108. <Cell col="1" displaytype="checkbox" style="controlbackground:silver;" text="bind:chkflag" enable="false"/>
  109. <Cell col="2" style="align:left;" text="bind:goodcd"/>
  110. <Cell col="3" style="align:left;" text="bind:prcpnm" wordwrap="word"/>
  111. <Cell col="4" style="align:left;" text="bind:goodspec"/>
  112. <Cell col="5" style="align:left;" text="bind:prcpunit"/>
  113. <Cell col="6" style="align:left;" text="bind:useflag"/>
  114. <Cell col="7" style="align:left top;padding:6 2 0 2;" text="bind:prodcmpynm" wordwrap="word"/>
  115. <Cell col="8" style="align:left;" text="bind:calhngnm" wordwrap="word"/>
  116. <Cell col="9" text="bind:allsizespecid"/>
  117. <Cell col="10" text="bind:histno"/>
  118. <Cell col="11" text="bind:histcd"/>
  119. </Band>
  120. </Format>
  121. </Formats>
  122. </Grid>
  123. </Layout>
  124. </Layouts>
  125. </Div>
  126. <Button position="absolute 800 33 856 55" id="btn_srch" class="btn1" text="조회" onclick="btn_srch_onclick"/>
  127. <Shape position="absolute 786 32 792 57" linetype="vertical" id="line4"/>
  128. <Static text="약품 검색" position="absolute 10 74 92 90" id="caption2" class="tit_2"/>
  129. <Shape position="absolute 11 90 885 96" linetype="horizontal" id="line1" class="line_10"/>
  130. <Static text="등록 약품" position="absolute 10 374 92 390" id="caption1" class="tit_2"/>
  131. <Shape position="absolute 11 390 885 396" linetype="horizontal" id="line2" class="line_10"/>
  132. </Layout>
  133. </Layouts>
  134. <Objects>
  135. <Dataset id="ds_send_drugmnglist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  136. <ColumnInfo>
  137. <Column id="status" type="STRING" size="256" sumtext="status"/>
  138. <Column id="chkflag" type="STRING" size="256" sumtext="체크상태"/>
  139. <Column id="goodcd" type="STRING" size="256" sumtext="물품코드"/>
  140. <Column id="prcpnm" type="STRING" size="256" sumtext="물품명"/>
  141. <Column id="goodspec" type="STRING" size="256" sumtext="규격"/>
  142. <Column id="prcpunit" type="STRING" size="256" sumtext="단위"/>
  143. <Column id="useflag" type="STRING" size="256" sumtext="사용구분"/>
  144. <Column id="prodcmpynm" type="STRING" size="256" sumtext="제조원"/>
  145. <Column id="calhngnm" type="STRING" size="256" sumtext="수가명"/>
  146. <Column id="allsizespecid" type="STRING" size="256" sumtext="ALLSIZE규격ID"/>
  147. <Column id="histno" type="STRING" size="256" sumtext="이력번호"/>
  148. <Column id="histcd" type="STRING" size="256" sumtext="이력코드"/>
  149. </ColumnInfo>
  150. </Dataset>
  151. <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  152. <ColumnInfo>
  153. <Column id="prcpnm" type="STRING" size="256"/>
  154. </ColumnInfo>
  155. <Rows>
  156. <Row>
  157. <Col id="prcpnm"/>
  158. </Row>
  159. </Rows>
  160. </Dataset>
  161. <Dataset id="ds_main_stndlist_druglists_druglist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  162. <ColumnInfo>
  163. <Column id="N" type="STRING" size="256" sumtext=""/>
  164. <Column id="goodcd" type="STRING" size="256" sumtext="물품코드"/>
  165. <Column id="prcpnm" type="STRING" size="256" sumtext="물품명"/>
  166. <Column id="goodspec" type="STRING" size="256" sumtext="규격"/>
  167. <Column id="prcpunit" type="STRING" size="256" sumtext="단위"/>
  168. <Column id="useflag" type="STRING" size="256" sumtext="사용구분"/>
  169. <Column id="prodcmpynm" type="STRING" size="256" sumtext="제조원"/>
  170. <Column id="calhngnm" type="STRING" size="256" sumtext="수가명"/>
  171. <Column id="allsizespecid" type="STRING" size="256" sumtext="ALLSIZE규격ID"/>
  172. <Column id="histno" type="STRING" size="256" sumtext="이력번호"/>
  173. <Column id="histcd" type="STRING" size="256" sumtext="이력코드"/>
  174. </ColumnInfo>
  175. </Dataset>
  176. <Dataset id="ds_main_mnglist_druglists_druglist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  177. <ColumnInfo>
  178. <Column id="N" type="STRING" size="256" sumtext=""/>
  179. <Column id="goodcd" type="STRING" size="256" sumtext="물품코드"/>
  180. <Column id="prcpnm" type="STRING" size="256" sumtext="물품명"/>
  181. <Column id="goodspec" type="STRING" size="256" sumtext="규격"/>
  182. <Column id="prcpunit" type="STRING" size="256" sumtext="단위"/>
  183. <Column id="useflag" type="STRING" size="256" sumtext="사용구분"/>
  184. <Column id="prodcmpynm" type="STRING" size="256" sumtext="제조원"/>
  185. <Column id="calhngnm" type="STRING" size="256" sumtext="수가명"/>
  186. <Column id="allsizespecid" type="STRING" size="256" sumtext="ALLSIZE규격ID"/>
  187. <Column id="histno" type="STRING" size="256" sumtext="이력번호"/>
  188. <Column id="histcd" type="STRING" size="256" sumtext="이력코드"/>
  189. </ColumnInfo>
  190. </Dataset>
  191. <Dataset id="ds_main" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  192. <ColumnInfo>
  193. <Column id="srchdrugnm" type="STRING" size="256"/>
  194. </ColumnInfo>
  195. <Rows>
  196. <Row>
  197. <Col id="srchdrugnm"/>
  198. </Row>
  199. </Rows>
  200. </Dataset>
  201. </Objects>
  202. <Bind>
  203. <BindItem id="item0" compid="group1.ipt_srchnm" propid="value" datasetid="ds_main" columnid="srchdrugnm"/>
  204. </Bind>
  205. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  206. * System Name : 경대 의료정보시스템
  207. * Job Name : emr_opanstxp -> SMMNP00580
  208. * Creator : yjh
  209. * Make Date : 2016-03-07
  210. * Description :
  211. *---------------------------------------------------------------------------------------
  212. * Modify Date Modifier Modify Description
  213. *---------------------------------------------------------------------------------------
  214. * 2016-03-07 yjh TF->XP
  215. *
  216. *---------------------------------------------------------------------------------------
  217. ****************************************************************************************/
  218. //=======================================================================================
  219. // Lib Include
  220. //---------------------------------------------------------------------------------------
  221. include "com_commonxp::comm_main.xjs";
  222. //=======================================================================================
  223. // Global Form Variable
  224. //---------------------------------------------------------------------------------------
  225. //=======================================================================================
  226. // Function
  227. //---------------------------------------------------------------------------------------
  228. /****************************************************************************************
  229. * Argument : N/A
  230. * Description :
  231. ****************************************************************************************/
  232. //=======================================================================================
  233. // Event
  234. //---------------------------------------------------------------------------------------
  235. /****************************************************************************************
  236. * Components : Form
  237. * Components ID : SMMNP00580
  238. * Event : oninit
  239. * Argument : 01.obj : Object Event has occurred
  240. * : 02.e : Event Object
  241. * Description : 화면 처음 초기화시
  242. ****************************************************************************************/
  243. function SMMNP00580_oninit(obj:Form, e:InitEventInfo)
  244. {
  245. frmf_initForm(obj); //폼 초기화
  246. }
  247. /****************************************************************************************
  248. * Components : Form
  249. * Components ID : SMMNP00580
  250. * Event : onload
  251. * Argument : 01.obj : Object Event has occurred
  252. * : 02.e : Event Object
  253. * Description : 화면 로딩 완료시
  254. ****************************************************************************************/
  255. function SMMNP00580_onload(obj:Form, e:LoadEventInfo)
  256. {
  257. grdf_setRowTypeIcon(group1.grd_drugmnglist, 0); //그리드 상태 아이콘 보여주기
  258. btn_srch.click();
  259. }
  260. /****************************************************************************************
  261. * Components : Button
  262. * Components ID : btn_srch
  263. * Event : onclick
  264. * Argument : 01.obj : Object Event has occurred
  265. * : 02.e : Event Object
  266. * Description : 조회버튼 클릭시
  267. ****************************************************************************************/
  268. function btn_srch_onclick(obj:Button, e:ClickEventInfo)
  269. {
  270. var srchdrugnm = ds_main.getColumn(0, "srchdrugnm");
  271. ds_send.setColumn(0, "prcpnm", srchdrugnm);
  272. var oParam = {};
  273. oParam.id = "TRMNP00588";
  274. oParam.service = "opanstapp.OpAnstRec";
  275. oParam.method = "reqGetOpCdxDrugStandList";
  276. oParam.inds = "req=ds_send";
  277. oParam.outds = "ds_main_stndlist_druglists_druglist=druglist";
  278. oParam.async = false;
  279. //oParam.callback = "cf_TRMNP00588";
  280. tranf_submit(oParam);
  281. var oParam = {};
  282. oParam.id = "TRMNP00589";
  283. oParam.service = "opanstapp.OpAnstRec";
  284. oParam.method = "reqGetOpCdxDrugMngList";
  285. oParam.inds = "req=ds_send";
  286. oParam.outds = "ds_main_mnglist_druglists_druglist=druglist";
  287. oParam.async = false;
  288. oParam.callback = "cf_TRMNP00589";
  289. tranf_submit(oParam);
  290. }
  291. function cf_TRMNP00589(sSvcId, nErrorCode, sErrorMsg) {
  292. if(nErrorCode < 0) return;
  293. ds_main_mnglist_druglists_druglist.addColumn("chkflag", "string");
  294. }
  295. /****************************************************************************************
  296. * Components : Grid
  297. * Components ID : grd_drugstndlist
  298. * Event : oncelldblclick
  299. * Argument : 01.obj : Object Event has occurred
  300. * : 02.e : Event Object
  301. * Description : 그리드 셀 더블클릭시
  302. ****************************************************************************************/
  303. function group1_grd_drugstndlist_oncelldblclick(obj:Grid, e:GridClickEventInfo)
  304. {
  305. var currow = ds_main_stndlist_druglists_druglist.rowposition;
  306. var insGoodcd = ds_main_stndlist_druglists_druglist.getColumn(currow, "goodcd");
  307. for( var i=0 ; i<ds_main_mnglist_druglists_druglist.rowcount ; i++ ){
  308. var goodcd = ds_main_mnglist_druglists_druglist.getColumn(i, "goodcd");
  309. if (insGoodcd == goodcd ){
  310. sysf_messageBox("중복된 처방명을 등록 ","E001");
  311. return;
  312. }
  313. }
  314. ds_main_mnglist_druglists_druglist.enableevent = false;
  315. ds_main_mnglist_druglists_druglist.updatecontrol = false;
  316. var nRow = ds_main_mnglist_druglists_druglist.addRow();
  317. ds_main_mnglist_druglists_druglist.copyRow(nRow, ds_main_stndlist_druglists_druglist, currow);
  318. ds_main_mnglist_druglists_druglist.setColumn(nRow, "chkflag", "1");
  319. ds_main_mnglist_druglists_druglist.updatecontrol = true;
  320. ds_main_mnglist_druglists_druglist.enableevent = true;
  321. }
  322. /****************************************************************************************
  323. * Components : Button
  324. * Components ID : button1
  325. * Event : onclick
  326. * Argument : 01.obj : Object Event has occurred
  327. * : 02.e : Event Object
  328. * Description : 삭제버튼 클릭시
  329. ****************************************************************************************/
  330. function group1_button1_onclick(obj:Button, e:ClickEventInfo)
  331. {
  332. ds_main_mnglist_druglists_druglist.deleteRow(ds_main_mnglist_druglists_druglist.rowposition);
  333. }
  334. /****************************************************************************************
  335. * Components : Button
  336. * Components ID : button2
  337. * Event : onclick
  338. * Argument : 01.obj : Object Event has occurred
  339. * : 02.e : Event Object
  340. * Description : 저장버튼 클릭시
  341. ****************************************************************************************/
  342. function group1_button2_onclick(obj:Button, e:ClickEventInfo)
  343. {
  344. ds_main_mnglist_druglists_druglist.enableevent = false;
  345. ds_main_mnglist_druglists_druglist.updatecontrol = false;
  346. for( var i=0 ; i<ds_main_mnglist_druglists_druglist.rowcount ; i++ ){
  347. if( ds_main_mnglist_druglists_druglist.getColumn(i, "chkflag") == "1" ){
  348. ds_main_mnglist_druglists_druglist.setRowType(i, 2);
  349. }
  350. }
  351. ds_main_mnglist_druglists_druglist.updatecontrol = true;
  352. ds_main_mnglist_druglists_druglist.enableevent = true;
  353. grdf_setStatusColumn(ds_main_mnglist_druglists_druglist, "status");
  354. ds_send_drugmnglist.copyData(grdf_getGridUpdateData(group1.grd_drugmnglist, "all"));
  355. var oParam = {};
  356. oParam.id = "TXMNP00588";
  357. oParam.service = "opanstapp.OpAnstRec";
  358. oParam.method = "reqExeOpCdxDrugMngList";
  359. oParam.inds = "drugmnglist=ds_send_drugmnglist";
  360. //oParam.outds = "ds_=tmp";
  361. oParam.async = false;
  362. oParam.callback = "cf_TXMNP00588";
  363. tranf_submit(oParam);
  364. }
  365. function cf_TXMNP00588(sSvcId, nErrorCode, sErrorMsg) {
  366. if(nErrorCode < 0) return;
  367. btn_srch.click();
  368. }
  369. ]]></Script>
  370. </Form>
  371. </FDL>