SPMNG04100_응급CCDBAG물품코드HELP.xfdl 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SPMNG04100" position="absolute 0 0 590 550" titletext="응급CCDBAG 물품코드 HELP" oninit="SPMNG04100_oninit" onload="SPMNG04100_onload">
  5. <Layouts>
  6. <Layout>
  7. <Div position="absolute 0 0 580 520" id="group3" scrollbars="autoboth">
  8. <Layouts>
  9. <Layout>
  10. <Div position="absolute 0 0 580 35" id="group2" class="div_SA">
  11. <Layouts>
  12. <Layout>
  13. <Button position="absolute 519 7 575 29" id="btn_search" class="btn1" text="조회" onclick="group3_group2_btn_search_onclick" anchor="default"/>
  14. <Shape position="absolute 512 3 518 32" linetype="vertical" id="line13" class="line_4" anchor="default"/>
  15. <Static text="조회조건 :" position="absolute 10 10 96 27" id="caption2" class="search_name" anchor="default"/>
  16. <Radio position="absolute 85 8 223 28" id="radio1" columncount="2" codecolumn="codecolumn" datacolumn="datacolumn" anchor="default">
  17. <Dataset id="innerdataset">
  18. <ColumnInfo>
  19. <Column id="codecolumn"/>
  20. <Column id="datacolumn"/>
  21. </ColumnInfo>
  22. <Rows>
  23. <Row>
  24. <Col id="codecolumn">A</Col>
  25. <Col id="datacolumn">물품코드</Col>
  26. </Row>
  27. <Row>
  28. <Col id="codecolumn">B</Col>
  29. <Col id="datacolumn">처방명</Col>
  30. </Row>
  31. </Rows>
  32. </Dataset>
  33. </Radio>
  34. <Edit position="absolute 215 8 370 27" id="ipt_good" class="input_search" anchor="default"/>
  35. </Layout>
  36. </Layouts>
  37. </Div>
  38. <Static text="수술실 물품 리스트" position="absolute 5 44 151 60" id="caption1" class="tit_2"/>
  39. <Shape position="absolute 0 60 580 66" linetype="horizontal" id="line1" class="line_10"/>
  40. <Grid position="absolute 0 65 580 520" id="grd_goodlist" binddataset="ds_main_goodlist" autofittype="col" oncelldblclick="group3_grd_goodlist_oncelldblclick" cellsizingtype="both" cellsizebandtype="allband" extendsizetype="row" selecttype="multirow">
  41. <Formats>
  42. <Format id="default">
  43. <Columns>
  44. <Column size="30" band="left"/>
  45. <Column size="20"/>
  46. <Column size="140"/>
  47. <Column size="300"/>
  48. <Column size="0"/>
  49. <Column size="0"/>
  50. </Columns>
  51. <Rows>
  52. <Row size="24" band="head"/>
  53. <Row size="24"/>
  54. </Rows>
  55. <Band id="head">
  56. <Cell/>
  57. <Cell col="1"/>
  58. <Cell col="2" text="물품코드"/>
  59. <Cell col="3" text="처방명"/>
  60. <Cell col="4"/>
  61. <Cell col="5"/>
  62. </Band>
  63. <Band id="body">
  64. <Cell celltype="head" expr="expr:currow + 1"/>
  65. <Cell col="1" displaytype="checkbox" edittype="checkbox" text="bind:chkyn"/>
  66. <Cell col="2" style="align:left;" text="bind:goodcd"/>
  67. <Cell col="3" style="align:left top;padding:4 2 2 2;" text="bind:prcpnm" wordwrap="word"/>
  68. <Cell col="4" text="bind:allsizespecid"/>
  69. <Cell col="5" text="bind:payflagcd"/>
  70. </Band>
  71. </Format>
  72. </Formats>
  73. </Grid>
  74. </Layout>
  75. </Layouts>
  76. </Div>
  77. <Div position="absolute 0 521 580 548" id="group1" scrollbars="autoboth">
  78. <Layouts>
  79. <Layout>
  80. <Button position="absolute 461 2 517 24" id="btn_confirm" class="btn4" text="확인" onclick="group1_btn_confirm_onclick"/>
  81. <Button position="absolute 520 2 576 24" id="btn_cancel" class="btn4" text="취소" onclick="group1_btn_cancel_onclick"/>
  82. </Layout>
  83. </Layouts>
  84. </Div>
  85. </Layout>
  86. </Layouts>
  87. <Objects>
  88. <Dataset id="ds_send_reqdata" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  89. <ColumnInfo>
  90. <Column id="goodflag" type="STRING" size="256" sumtext="조회구분"/>
  91. <Column id="goodcd" type="STRING" size="256" sumtext="물품코드(명)"/>
  92. </ColumnInfo>
  93. <Rows>
  94. <Row/>
  95. </Rows>
  96. </Dataset>
  97. <Dataset id="ds_main_goodlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  98. <ColumnInfo>
  99. <Column id="chkyn" type="STRING" size="256" sumtext="check여부"/>
  100. <Column id="goodcd" type="STRING" size="256" sumtext="물품코드"/>
  101. <Column id="prcpnm" type="STRING" size="256" sumtext="처방명"/>
  102. <Column id="allsizespecid" type="STRING" size="256" sumtext="allsize규격id"/>
  103. <Column id="payflagcd" type="STRING" size="256" sumtext="급여구분"/>
  104. </ColumnInfo>
  105. </Dataset>
  106. </Objects>
  107. <Bind>
  108. <BindItem id="item0" compid="group3.group2.radio1" propid="value" datasetid="ds_send_reqdata" columnid="goodflag"/>
  109. <BindItem id="item1" compid="group3.group2.ipt_good" propid="value" datasetid="ds_send_reqdata" columnid="goodcd"/>
  110. </Bind>
  111. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  112. * System Name : 경대 의료정보시스템
  113. * Job Name : emr_csrxp -> SPMNG04100
  114. * Creator : yjh
  115. * Make Date : 2016-02-12
  116. * Description :
  117. *---------------------------------------------------------------------------------------
  118. * Modify Date Modifier Modify Description
  119. *---------------------------------------------------------------------------------------
  120. * 2016-02-12 yjh TF->XP
  121. *
  122. *---------------------------------------------------------------------------------------
  123. ****************************************************************************************/
  124. //=======================================================================================
  125. // Lib Include
  126. //---------------------------------------------------------------------------------------
  127. include "com_commonxp::comm_main.xjs";
  128. include "mis_miscommonxp::MIS.xjs";
  129. //=======================================================================================
  130. // Global Form Variable
  131. //---------------------------------------------------------------------------------------
  132. //=======================================================================================
  133. // Function
  134. //---------------------------------------------------------------------------------------
  135. /****************************************************************************************
  136. * Argument : N/A
  137. * Description :
  138. ****************************************************************************************/
  139. //=======================================================================================
  140. // Event
  141. //---------------------------------------------------------------------------------------
  142. /****************************************************************************************
  143. * Components : Form
  144. * Components ID : SPMNG04100
  145. * Event : oninit
  146. * Argument : 01.obj : Object Event has occurred
  147. * : 02.e : Event Object
  148. * Description : 화면 처음 초기화시
  149. ****************************************************************************************/
  150. function SPMNG04100_oninit(obj:Form, e:InitEventInfo)
  151. {
  152. frmf_initForm(obj); //폼 초기화
  153. }
  154. /****************************************************************************************
  155. * Components : Form
  156. * Components ID : SPMNG04100
  157. * Event : onload
  158. * Argument : 01.obj : Object Event has occurred
  159. * : 02.e : Event Object
  160. * Description : 화면 로딩 완료시
  161. ****************************************************************************************/
  162. function SPMNG04100_onload(obj:Form, e:LoadEventInfo)
  163. {
  164. group3.group2.btn_search.click();
  165. }
  166. /****************************************************************************************
  167. * Components : Button
  168. * Components ID : btn_search
  169. * Event : onclick
  170. * Argument : 01.obj : Object Event has occurred
  171. * : 02.e : Event Object
  172. * Description : 조회버튼 클릭시
  173. ****************************************************************************************/
  174. function group3_group2_btn_search_onclick(obj:Button, e:ClickEventInfo)
  175. {
  176. if( !utlf_isNull(group3.group2.ipt_good.value) ){
  177. if( utlf_isNull(group3.group2.radio1.value) ){
  178. alert("조회조건을 선택하세요");
  179. return;
  180. }
  181. }
  182. var oParam = {};
  183. oParam.id = "TRMNG04100";
  184. oParam.service = "csrapp.CsrMngt";
  185. oParam.method = "reqGetBagGoodList";
  186. oParam.inds = "req=ds_send_reqdata";
  187. oParam.outds = "ds_main_goodlist=goodlist";
  188. oParam.async = false;
  189. //oParam.callback = "cf_TRMNG04100";
  190. tranf_submit(oParam);
  191. ds_main_goodlist.addColumn("chkyn", "string");
  192. ds_main_goodlist.filter("");
  193. }
  194. /****************************************************************************************
  195. * Components : Grid
  196. * Components ID : grd_goodlist
  197. * Event : oncelldblclick
  198. * Argument : 01.obj : Object Event has occurred
  199. * : 02.e : Event Object
  200. * Description : 그리드 셀 더블클릭시
  201. ****************************************************************************************/
  202. function group3_grd_goodlist_oncelldblclick(obj:Grid, e:GridClickEventInfo)
  203. {
  204. group1.btn_confirm.click();
  205. }
  206. /****************************************************************************************
  207. * Components : Button
  208. * Components ID : btn_confirm
  209. * Event : onclick
  210. * Argument : 01.obj : Object Event has occurred
  211. * : 02.e : Event Object
  212. * Description : 확인버튼 클릭시
  213. ****************************************************************************************/
  214. function group1_btn_confirm_onclick(obj:Button, e:ClickEventInfo)
  215. {
  216. if( group3.grd_goodlist.rowcount == 0 )
  217. {
  218. sysf_messageBox("적용할 내역이","I004");
  219. close();
  220. return;
  221. }
  222. //var iParam = ds_main_goodlist;
  223. //var nodelist = instance1.selectNodes(grd_goodlist.nodeset + "[chkyn='Y']");
  224. ds_main_goodlist.filter("chkyn=='1'");
  225. var rCVS = dsf_getDsCSV(ds_main_goodlist);
  226. ds_main_goodlist.filter("");
  227. if ( frmf_checkOpener() ) {
  228. opener.frmf_setParameter("SPMNG04100_", rCVS);
  229. } else {
  230. var rtn = sysf_messageBox("상위화면을 찾을 수", "E001");
  231. }
  232. close();
  233. }
  234. /****************************************************************************************
  235. * Components : Button
  236. * Components ID : btn_cancel
  237. * Event : onclick
  238. * Argument : 01.obj : Object Event has occurred
  239. * : 02.e : Event Object
  240. * Description : 취소버튼 클릭시
  241. ****************************************************************************************/
  242. function group1_btn_cancel_onclick(obj:Button, e:ClickEventInfo)
  243. {
  244. misfPopUpListCancel();
  245. }
  246. ]]></Script>
  247. </Form>
  248. </FDL>