SPMNP01801_수술마취약속처방조회IMPORT.xfdl 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SPMNP01801" position="absolute 0 0 1005 655" titletext="약속처방 조회" oninit="SPMNP01801_oninit" onload="SPMNP01801_onload">
  5. <Layouts>
  6. <Layout>
  7. <Div position="absolute 0 0 995 646" id="grp_stemain" scrollbars="autoboth">
  8. <Layouts>
  9. <Layout>
  10. <Div position="absolute 0 1 990 292" id="group2">
  11. <Layouts>
  12. <Layout>
  13. <Grid position="absolute 0 28 990 289" treeusecheckbox="false" id="trv_setcode" treeinitstatus="collapse,all" autofittype="col" selecttype="treecell" binddataset="ds_main_MmbhprmsLists_settreelist" oncellclick="grp_stemain_group2_trv_setcode_oncellclick">
  14. <Formats>
  15. <Format id="default">
  16. <Columns>
  17. <Column size="500"/>
  18. </Columns>
  19. <Rows>
  20. <Row size="18"/>
  21. </Rows>
  22. <Band id="body">
  23. <Cell displaytype="tree" edittype="tree" style="line:0 none #808080ff ;" text="bind:codenm" treestartlevel="1" treelevel="bind:depth"/>
  24. </Band>
  25. </Format>
  26. </Formats>
  27. </Grid>
  28. <Shape position="absolute 0 23 990 29" linetype="horizontal" id="line16" class="line_10"/>
  29. <Static text="약속처방조회" position="absolute 0 7 103 23" id="caption8" class="tit_2"/>
  30. </Layout>
  31. </Layouts>
  32. </Div>
  33. <Shape position="absolute 0 317 990 323" linetype="horizontal" id="line18" class="line_10"/>
  34. <Button position="absolute 945 296 987 315" id="bbt_append1" class="btn2" visible="true" text="추가" onclick="grp_stemain_bbt_append1_onclick"/>
  35. <Grid position="absolute 0 322 990 642" id="grd_setcode" binddataset="ds_main_MmbhppdsLists_mmbhppdslist" onheadclick="grp_stemain_grd_setcode_onheadclick" cellsizingtype="both" selecttype="multirow" extendsizetype="row" autosizingtype="row">
  36. <Formats>
  37. <Format id="default">
  38. <Columns>
  39. <Column size="25"/>
  40. <Column size="70"/>
  41. <Column size="35"/>
  42. <Column size="35"/>
  43. <Column size="300"/>
  44. <Column size="100"/>
  45. <Column size="90"/>
  46. <Column size="85"/>
  47. <Column size="50"/>
  48. <Column size="84"/>
  49. <Column size="53"/>
  50. <Column size="45"/>
  51. <Column size="0"/>
  52. <Column size="0"/>
  53. <Column size="0"/>
  54. <Column size="0"/>
  55. <Column size="0"/>
  56. <Column size="0"/>
  57. <Column size="0"/>
  58. <Column size="0"/>
  59. <Column size="0"/>
  60. <Column size="0"/>
  61. <Column size="0"/>
  62. <Column size="0"/>
  63. <Column size="0"/>
  64. <Column size="0"/>
  65. <Column size="0"/>
  66. <Column size="0"/>
  67. </Columns>
  68. <Rows>
  69. <Row size="24" band="head"/>
  70. <Row size="24"/>
  71. </Rows>
  72. <Band id="head">
  73. <Cell displaytype="checkbox" edittype="checkbox" expr="0"/>
  74. <Cell col="1" text="처방코드"/>
  75. <Cell col="2" text="Size"/>
  76. <Cell col="3" text="산정"/>
  77. <Cell col="4" text="처방명"/>
  78. <Cell col="5" text="규격"/>
  79. <Cell col="6" text="모델"/>
  80. <Cell col="7" text="제조원"/>
  81. <Cell col="8" text="단위"/>
  82. <Cell col="9" text="거래처"/>
  83. <Cell col="10" text="사용구분"/>
  84. <Cell col="11" text="횟수"/>
  85. <Cell col="12"/>
  86. <Cell col="13"/>
  87. <Cell col="14"/>
  88. <Cell col="15"/>
  89. <Cell col="16"/>
  90. <Cell col="17"/>
  91. <Cell col="18"/>
  92. <Cell col="19"/>
  93. <Cell col="20"/>
  94. <Cell col="21"/>
  95. <Cell col="22"/>
  96. <Cell col="23"/>
  97. <Cell col="24"/>
  98. <Cell col="25"/>
  99. <Cell col="26"/>
  100. <Cell col="27"/>
  101. </Band>
  102. <Band id="body">
  103. <Cell displaytype="checkbox" edittype="checkbox" text="bind:fcheck"/>
  104. <Cell col="1" style="align:left;padding:2 2 2 2;" text="bind:goodcd" wordwrap="word"/>
  105. <Cell col="2" text="bind:allsizespecid"/>
  106. <Cell col="3" text="bind:calculyn"/>
  107. <Cell col="4" style="align:left;padding:2 2 2 2;" text="bind:goodengnm" wordwrap="char" autosizerow="limitmin"/>
  108. <Cell col="5" style="align:left;padding:2 2 2 2;" text="bind:goodspec" wordwrap="char"/>
  109. <Cell col="6" text="bind:goodmodel"/>
  110. <Cell col="7" text="bind:prodcmpynm"/>
  111. <Cell col="8" text="bind:prcpunit"/>
  112. <Cell col="9" text="bind:custnm"/>
  113. <Cell col="10" displaytype="combo" edittype="none" text="bind:useflag" combodataset="ds_grd_useflag" combocodecol="value" combodatacol="label" enable="false"/>
  114. <Cell col="11" text="bind:drprcpetc8"/>
  115. <Cell col="12" text="bind:makernm"/>
  116. <Cell col="13" text="bind:instcd"/>
  117. <Cell col="14" text="bind:payflagcd"/>
  118. <Cell col="15" text="bind:prcpunit"/>
  119. <Cell col="16" text="bind:goodcls"/>
  120. <Cell col="17" text="bind:goodflag"/>
  121. <Cell col="18" text="bind:cureflag"/>
  122. <Cell col="19" text="bind:prcpclscd"/>
  123. <Cell col="20" text="bind:drugmthdspccd"/>
  124. <Cell col="21" text="bind:checkgoodcd"/>
  125. <Cell col="22" text="bind:stocqty"/>
  126. <Cell col="23" text="bind:acmlbaseqty"/>
  127. <Cell col="24" text="bind:reqmthd"/>
  128. <Cell col="25" text="bind:purcflag"/>
  129. <Cell col="26" text="bind:insuyn"/>
  130. <Cell col="27" text="bind:calcscorcd"/>
  131. </Band>
  132. </Format>
  133. </Formats>
  134. </Grid>
  135. <Button position="absolute 900 296 942 315" id="button1" class="btn2" text="엑셀" onclick="grp_stemain_button1_onclick"/>
  136. </Layout>
  137. </Layouts>
  138. </Div>
  139. </Layout>
  140. </Layouts>
  141. <Objects>
  142. <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  143. <ColumnInfo>
  144. <Column id="instcd" type="STRING" size="256" sumtext=" 기관코드"/>
  145. <Column id="setno" type="INT" size="256" sumtext=" 처방 Set코드"/>
  146. <Column id="oproomcd" type="STRING" size="256" sumtext=" 수술방코드"/>
  147. <Column id="cartgubn" type="STRING" size="256" sumtext=" Cart 구분"/>
  148. <Column id="insukind" type="STRING" size="256" sumtext="보험여부"/>
  149. <Column id="payflagcd" type="STRING" size="256" sumtext="급비여부"/>
  150. </ColumnInfo>
  151. <Rows>
  152. <Row/>
  153. </Rows>
  154. </Dataset>
  155. <Dataset id="ds_main_MmbhprmsLists_settreelist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  156. <ColumnInfo>
  157. <Column id="depth" type="STRING" size="256" sumtext=" 01 Depth "/>
  158. <Column id="codecd" type="STRING" size="256" sumtext=" 02 코드 "/>
  159. <Column id="codenm" type="STRING" size="256" sumtext=" 03 명칭 "/>
  160. <Column id="settrgtcd" type="STRING" size="256" sumtext=" 04 진료과코드 "/>
  161. <Column id="setno" type="STRING" size="256" sumtext=" 05 약처방SET Code "/>
  162. <Column id="settypecd" type="STRING" size="256" sumtext=" 06 SET에대한형태(M0023참조) "/>
  163. <Column id="drugmthdspccd" type="STRING" size="256" sumtext=" 07 투여방법 및 검체코드 "/>
  164. </ColumnInfo>
  165. </Dataset>
  166. <Dataset id="ds_main_MmbhppdsLists_mmbhppdslist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false" oncolumnchanged="ds_main_MmbhppdsLists_mmbhppdslist_oncolumnchanged">
  167. <ColumnInfo>
  168. <Column id="goodengnm" type="STRING" size="256" sumtext=" 01 물품명"/>
  169. <Column id="makernm" type="STRING" size="256" sumtext=" 02 제조원"/>
  170. <Column id="goodqty" type="STRING" size="256" sumtext=" 03 수량"/>
  171. <Column id="instcd" type="STRING" size="256" sumtext=" 04 기관코드"/>
  172. <Column id="goodcd" type="STRING" size="256" sumtext=" 05 물품코드"/>
  173. <Column id="allsizespecid" type="STRING" size="256" sumtext=" 06 Size 코드"/>
  174. <Column id="payflagcd" type="STRING" size="256" sumtext=" 07 급여구분"/>
  175. <Column id="goodspec" type="STRING" size="256" sumtext=" 08 Size내역"/>
  176. <Column id="goodmodel" type="STRING" size="256" sumtext=" 09 물품모델"/>
  177. <Column id="prcpunit" type="STRING" size="256" sumtext=" 10 처방단위"/>
  178. <Column id="goodcls" type="STRING" size="256" sumtext=" 11 물품(처치)구분"/>
  179. <Column id="custnm" type="STRING" size="256" sumtext=" 12 거래처"/>
  180. <Column id="useflag" type="STRING" size="256" sumtext=" 13 사용구분"/>
  181. <Column id="goodflag" type="STRING" size="256" sumtext=" 14 물품구분"/>
  182. <Column id="cureflag" type="STRING" size="256" sumtext=" 15 처치구분"/>
  183. <Column id="prcpclscd" type="STRING" size="256" sumtext=" 16 처방분류"/>
  184. <Column id="fcheck" type="STRING" size="256" sumtext=" 17 Check Flag"/>
  185. <Column id="drugmthdspccd" type="STRING" size="256" sumtext=" 18 투여방법 및 검체코드"/>
  186. <Column id="checkgoodcd" type="STRING" size="256" sumtext=" 19 CCR 물품코드"/>
  187. <Column id="stocqty" type="STRING" size="256" sumtext=" 20 현재 수술방 재고량"/>
  188. <Column id="acmlbaseqty" type="STRING" size="256" sumtext=" 21 기준 수량"/>
  189. <Column id="prcpclscd" type="STRING" size="256" sumtext=" 22 처방분류"/>
  190. <Column id="reqmthd" type="STRING" size="256" sumtext=" 23 청구방법"/>
  191. <Column id="purcflag" type="STRING" size="256" sumtext=" 24 구매구분"/>
  192. <Column id="calculyn" type="STRING" size="256" sumtext=" 25 산정여부"/>
  193. <Column id="insuyn" type="STRING" size="256" sumtext=" 26 보험여부"/>
  194. <Column id="calcscorcd" type="STRING" size="256" sumtext=" 27 수가코드"/>
  195. <!-- 20110111_KNUH_Start 일회용량,일회수량 추가. -->
  196. <Column id="drprcpetc7" type="STRING" size="256" sumtext=" 28 일회용량"/>
  197. <Column id="drprcpetc8" type="STRING" size="256" sumtext=" 29 일회수량"/>
  198. <Column id="grupcd" type="STRING" size="256" sumtext="기왕증유무"/>
  199. <Column id="anamneflag" type="STRING" size="256" sumtext="기왕증유무"/>
  200. <Column id="subcretno" type="STRING" size="256" sumtext="부유형"/>
  201. <!-- 20110111_KNUH_End 일회용량,일회수량 추가. -->
  202. </ColumnInfo>
  203. </Dataset>
  204. <Dataset id="ds_grd_useflag" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  205. <ColumnInfo>
  206. <Column id="label" type="STRING" size="256"/>
  207. <Column id="value" type="STRING" size="256"/>
  208. </ColumnInfo>
  209. <Rows>
  210. <Row>
  211. <Col id="label">재사용</Col>
  212. <Col id="value">Y</Col>
  213. </Row>
  214. <Row>
  215. <Col id="label">분할사용</Col>
  216. <Col id="value">Z</Col>
  217. </Row>
  218. <Row>
  219. <Col id="label">1회사용</Col>
  220. <Col id="value">N</Col>
  221. </Row>
  222. </Rows>
  223. </Dataset>
  224. </Objects>
  225. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  226. * System Name : 경대 의료정보시스템
  227. * Job Name : emr_opanstxp -> SPMNP01801
  228. * Creator : yjh
  229. * Make Date : 2016-02-12
  230. * Description :
  231. *---------------------------------------------------------------------------------------
  232. * Modify Date Modifier Modify Description
  233. *---------------------------------------------------------------------------------------
  234. * 2016-02-12 yjh TF->XP
  235. *
  236. *---------------------------------------------------------------------------------------
  237. ****************************************************************************************/
  238. //=======================================================================================
  239. // Lib Include
  240. //---------------------------------------------------------------------------------------
  241. include "com_commonxp::comm_main.xjs";
  242. include "emr_opanstxp::SPMNP01801.xjs"; //yjh : 커밋
  243. //=======================================================================================
  244. // Global Form Variable
  245. //---------------------------------------------------------------------------------------
  246. //=======================================================================================
  247. // Function
  248. //---------------------------------------------------------------------------------------
  249. /****************************************************************************************
  250. * Argument : N/A
  251. * Description :
  252. ****************************************************************************************/
  253. //=======================================================================================
  254. // Event
  255. //---------------------------------------------------------------------------------------
  256. /****************************************************************************************
  257. * Components : Form
  258. * Components ID : SPMNP01801
  259. * Event : oninit
  260. * Argument : 01.obj : Object Event has occurred
  261. * : 02.e : Event Object
  262. * Description : 화면 처음 초기화시
  263. ****************************************************************************************/
  264. function SPMNP01801_oninit(obj:Form, e:InitEventInfo)
  265. {
  266. frmf_initForm(obj); //폼 초기화
  267. }
  268. /****************************************************************************************
  269. * Components : Form
  270. * Components ID : SPMNP01801
  271. * Event : onload
  272. * Argument : 01.obj : Object Event has occurred
  273. * : 02.e : Event Object
  274. * Description : 화면 로딩 완료시
  275. ****************************************************************************************/
  276. function SPMNP01801_onload(obj:Form, e:LoadEventInfo)
  277. {
  278. fInit1801();
  279. }
  280. /****************************************************************************************
  281. * Components : Grid
  282. * Components ID : trv_setcode
  283. * Event : oncellclick
  284. * Argument : 01.obj : Object Event has occurred
  285. * : 02.e : Event Object
  286. * Description : 그리드 셀 클릭시
  287. ****************************************************************************************/
  288. function grp_stemain_group2_trv_setcode_oncellclick(obj:Grid, e:GridClickEventInfo)
  289. {
  290. fTreeClick(grp_stemain.group2.trv_setcode.currentrow);
  291. }
  292. /****************************************************************************************
  293. * Components : Button
  294. * Components ID : bbt_append1
  295. * Event : onclick
  296. * Argument : 01.obj : Object Event has occurred
  297. * : 02.e : Event Object
  298. * Description : 추가버튼 클릭시
  299. ****************************************************************************************/
  300. function grp_stemain_bbt_append1_onclick(obj:Button, e:ClickEventInfo)
  301. {
  302. fCopyGood();
  303. }
  304. /****************************************************************************************
  305. * Components : Button
  306. * Components ID : button1
  307. * Event : onclick
  308. * Argument : 01.obj : Object Event has occurred
  309. * : 02.e : Event Object
  310. * Description : 엑셀버튼 클릭시
  311. ****************************************************************************************/
  312. function grp_stemain_button1_onclick(obj:Button, e:ClickEventInfo)
  313. {
  314. if( ds_main_MmbhppdsLists_mmbhppdslist.rowcount > 0 ){
  315. grdf_exportExcel(grp_stemain.grd_setcode, "수술마취약속처방", "약속처방", false, "", "user", false);
  316. } else {
  317. sysf_messageBox("자료가 존재하지 않습니다.", "E999", "");
  318. }
  319. }
  320. /****************************************************************************************
  321. * Components : Grid
  322. * Components ID : grd_setcode
  323. * Event : onheadclick
  324. * Argument : 01.obj : Object Event has occurred
  325. * : 02.e : Event Object
  326. * Description : 그리드 헤더 클릭시
  327. ****************************************************************************************/
  328. function grp_stemain_grd_setcode_onheadclick(obj:Grid, e:GridClickEventInfo)
  329. {
  330. switch( e.col ){
  331. case 0 :
  332. if( obj.getCellProperty("Head", e.col, "expr") == "0" ){
  333. obj.setCellProperty("Head", e.col, "expr", "1");
  334. }else{
  335. obj.setCellProperty("Head", e.col, "expr", "0");
  336. }
  337. grdf_setGridCheckAll(obj, e);
  338. break;
  339. default :
  340. break;
  341. }
  342. }
  343. /****************************************************************************************
  344. * Components : Dataset
  345. * Components ID : ds_main_MmbhppdsLists_mmbhppdslist
  346. * Event : oncolumnchanged
  347. * Argument : 01.obj : Object Event has occurred
  348. * : 02.e : Event Object
  349. * Description : 데이터셋 값 변경시
  350. ****************************************************************************************/
  351. function ds_main_MmbhppdsLists_mmbhppdslist_oncolumnchanged(obj:Dataset, e:DSColChangeEventInfo)
  352. {
  353. switch( e.columnid ){
  354. case "fcheck" :
  355. if( e.newvalue == "0" ){
  356. grp_stemain.grd_setcode.setCellProperty("Head", 0, "expr", "0");
  357. }
  358. break;
  359. default :
  360. break;
  361. }
  362. }
  363. ]]></Script>
  364. </Form>
  365. </FDL>