SPPIE00150_조제제제약대상조회.xfdl 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225
  1. <?xml version="1.0" encoding="utf-8" standalone="no"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SPPIE00150" position="absolute 0 0 980 600" titletext="조제_제제약 신고대상 조회" onload="SPPIE00150_onload">
  5. <Layouts>
  6. <Layout>
  7. <Div id="group3" scrollbars="autoboth" position="absolute 0 68 980 576" style="" anchor="all">
  8. <Layouts>
  9. <Layout>
  10. <Shape id="line1" class="line_10" linetype="horizontal" position="absolute 0 17 980 20" style="" anchor="default"/>
  11. <Static id="caption2" class="tit_2" position="absolute 0 0 126 15" style="" text="대상내역" anchor="default"/>
  12. <Grid id="grd_piehh702list" binddataset="ds_main_list01_piehh702list" class="datagrid2" position="absolute 0 20 980 506" style="" oncelldblclick="group3_grd_piehh702list_oncelldblclick" anchor="all">
  13. <Formats>
  14. <Format id="default">
  15. <Columns>
  16. <Column size="50"/>
  17. <Column size="80"/>
  18. <Column size="130"/>
  19. <Column size="100"/>
  20. <Column size="120"/>
  21. <Column size="120"/>
  22. <Column size="60"/>
  23. <Column size="47"/>
  24. <Column size="118"/>
  25. <Column size="80"/>
  26. <Column size="60"/>
  27. </Columns>
  28. <Rows>
  29. <Row size="25" band="head"/>
  30. <Row size="25"/>
  31. </Rows>
  32. <Band id="head">
  33. <Cell text="신고&#10;대상여부"/>
  34. <Cell col="1" text="처방코드"/>
  35. <Cell col="2" text="품명"/>
  36. <Cell col="3" text="신고품목코드"/>
  37. <Cell col="4" text="조제&#10;제제구분"/>
  38. <Cell col="5" text="투여형태"/>
  39. <Cell col="6" text="주요&#10;효능군"/>
  40. <Cell col="7" text="규격"/>
  41. <Cell col="8" text="효능효과"/>
  42. <Cell col="9" text="용법용량"/>
  43. <Cell col="10" text="단위"/>
  44. </Band>
  45. <Band id="body">
  46. <Cell displaytype="checkbox" edittype="checkbox" text="bind:chkyn" expr="chkyn == 'Y' || chk == '1' ? 1 : 0"/>
  47. <Cell col="1" style="align:left;" text="bind:tpndrugcd"/>
  48. <Cell col="2" style="align:left;" text="bind:drugnm"/>
  49. <Cell col="3" style="align:left;" text="bind:reptitemcd"/>
  50. <Cell col="4" style="align:right;" text="bind:prcpprodflag"/>
  51. <Cell col="5" style="align:right;" text="bind:drugtype"/>
  52. <Cell col="6" text="bind:efcygrup"/>
  53. <Cell col="7" style="align:left;" text="bind:spec"/>
  54. <Cell col="8" style="align:left;" text="bind:efcy"/>
  55. <Cell col="9" style="align:left;" text="bind:direcvol"/>
  56. <Cell col="10" style="align:left;" text="bind:unit"/>
  57. </Band>
  58. </Format>
  59. </Formats>
  60. </Grid>
  61. </Layout>
  62. </Layouts>
  63. </Div>
  64. <Div id="group2" position="absolute 0 25 980 65" style="" class="div_SA" anchor="left top right">
  65. <Layouts>
  66. <Layout>
  67. <Button id="btn_srch" class="btn1" taborder="4" position="absolute 901 10 957 32" style="" text="조회" onclick="group2_btn_srch_onclick" anchor="top right"/>
  68. <Shape id="line13" class="line_4" linetype="vertical" position="absolute 879 10 882 32" style="" anchor="top right"/>
  69. <Static id="caption1" position="absolute 181 14 196 29" style="" text="~" anchor="left top"/>
  70. <Static id="caption6" class="search_name" position="absolute 6 11 95 28" style="" text="입고일자 :" anchor="left top"/>
  71. <cp_monthCal id="ipt_fromdd" titletext="monthCalendar" taborder="5" text="cp_monthCal00" scrollbars="none" position="absolute 96 11 171 31" anchor="left top"/>
  72. <cp_monthCal id="ipt_todd" titletext="monthCalendar" taborder="6" text="cp_monthCal00" scrollbars="none" position="absolute 203 11 278 31" anchor="left top"/>
  73. </Layout>
  74. </Layouts>
  75. </Div>
  76. <Static id="cap_title" text="조제_제제약 신고대상 조회" class="tit_1" position="absolute 0 0 325 25"/>
  77. <Button id="btn_select" taborder="1" text="확인" onclick="grp_btn_btn_select_onclick" class="btn4" position="absolute 864 578 920 600" anchor="right bottom"/>
  78. <Button id="btn_close" taborder="2" text="닫기" onclick="grp_btn_btn_close_onclick" class="btn4" position="absolute 921 578 977 600" anchor="right bottom"/>
  79. </Layout>
  80. </Layouts>
  81. <Objects>
  82. <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  83. <ColumnInfo>
  84. <Column id="fromdd" type="STRING" size="256"/>
  85. <Column id="todd" type="STRING" size="256"/>
  86. </ColumnInfo>
  87. <Rows>
  88. <Row>
  89. <Col id="fromdd"/>
  90. <Col id="todd"/>
  91. </Row>
  92. </Rows>
  93. </Dataset>
  94. <Dataset id="ds_main_list01_piehh702list" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep" oncolumnchanged="ds_main_list01_piehh702list_oncolumnchanged">
  95. <ColumnInfo>
  96. <Column id="piehh702list" type="STRING" size="256"/>
  97. </ColumnInfo>
  98. <Rows>
  99. <Row>
  100. <Col id="piehh702list"/>
  101. </Row>
  102. </Rows>
  103. </Dataset>
  104. </Objects>
  105. <Bind/>
  106. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  107. * System Name :
  108. * Job Name :
  109. * Creator :
  110. * Make Date : 2016-10-07
  111. * Description :
  112. *---------------------------------------------------------------------------------------
  113. * Modify Date Modifier Modify Description
  114. *---------------------------------------------------------------------------------------
  115. * 2016-10-07 Live Converter TF->XP
  116. *
  117. *---------------------------------------------------------------------------------------
  118. ****************************************************************************************/
  119. //=======================================================================================
  120. // Lib Include
  121. //---------------------------------------------------------------------------------------
  122. include "com_commonxp::comm_main.xjs";
  123. function SPPIE00150_onload(obj:Form, e:LoadEventInfo) {
  124. frmf_initForm(obj);
  125. grdf_initGrid(group3.grd_piehh702list);
  126. var currdate = utlf_getCurrentDate();
  127. var fromdd = "";
  128. var todd = "";
  129. fromdd = currdate.toDate().getAddDate(-3, "M").getDateFormat();
  130. todd = currdate.toDate().getAddDate(-1, "M").getDateFormat();
  131. group2.ipt_fromdd.setData(fromdd.substr(0,6));
  132. group2.ipt_todd.setData(todd.substr(0,6));
  133. }
  134. function group3_grd_piehh702list_oncelldblclick(obj:Grid, e:GridClickEventInfo) {
  135. var row = e.row;
  136. opener.frmf_setParameter("chkyn", ds_main_list01_piehh702list.getColumn(row, "chkyn"));
  137. opener.frmf_setParameter("tpndrugcd", ds_main_list01_piehh702list.getColumn(row, "tpndrugcd"));
  138. opener.frmf_setParameter("drugnm", ds_main_list01_piehh702list.getColumn(row, "drugnm"));
  139. opener.frmf_setParameter("reptitemcd", ds_main_list01_piehh702list.getColumn(row, "reptitemcd"));
  140. opener.frmf_setParameter("prcpprodflag", ds_main_list01_piehh702list.getColumn(row, "prcpprodflag"));
  141. opener.frmf_setParameter("drugtype", ds_main_list01_piehh702list.getColumn(row, "drugtype"));
  142. opener.frmf_setParameter("efcygrup", ds_main_list01_piehh702list.getColumn(row, "efcygrup"));
  143. opener.frmf_setParameter("spec", ds_main_list01_piehh702list.getColumn(row, "spec"));
  144. opener.frmf_setParameter("efcy", ds_main_list01_piehh702list.getColumn(row, "efcy"));
  145. opener.frmf_setParameter("direcvol", ds_main_list01_piehh702list.getColumn(row, "direcvol"));
  146. opener.frmf_setParameter("unit", ds_main_list01_piehh702list.getColumn(row, "unit"));
  147. opener.frmf_setParameter("okflag", "Y");
  148. opener.frmf_setParameter("fromdd", group2.ipt_fromdd.getData());
  149. opener.frmf_setParameter("todd", group2.ipt_todd.getData());
  150. this.close();
  151. }
  152. function grp_btn_btn_close_onclick(obj:Button, e:ClickEventInfo) {
  153. // 윈도우 닫기
  154. opener.frmf_setParameter("okflag", "Y");
  155. this.close();
  156. }
  157. function grp_btn_btn_select_onclick(obj:Button, e:ClickEventInfo) {
  158. var row = ds_main_list01_piehh702list.rowposition
  159. opener.frmf_setParameter("chkyn", ds_main_list01_piehh702list.getColumn(row, "chkyn"));
  160. opener.frmf_setParameter("tpndrugcd", ds_main_list01_piehh702list.getColumn(row, "tpndrugcd"));
  161. opener.frmf_setParameter("drugnm", ds_main_list01_piehh702list.getColumn(row, "drugnm"));
  162. opener.frmf_setParameter("reptitemcd", ds_main_list01_piehh702list.getColumn(row, "reptitemcd"));
  163. opener.frmf_setParameter("prcpprodflag", ds_main_list01_piehh702list.getColumn(row, "prcpprodflag"));
  164. opener.frmf_setParameter("drugtype", ds_main_list01_piehh702list.getColumn(row, "drugtype"));
  165. opener.frmf_setParameter("efcygrup", ds_main_list01_piehh702list.getColumn(row, "efcygrup"));
  166. opener.frmf_setParameter("spec", ds_main_list01_piehh702list.getColumn(row, "spec"));
  167. opener.frmf_setParameter("efcy", ds_main_list01_piehh702list.getColumn(row, "efcy"));
  168. opener.frmf_setParameter("direcvol", ds_main_list01_piehh702list.getColumn(row, "direcvol"));
  169. opener.frmf_setParameter("unit", ds_main_list01_piehh702list.getColumn(row, "unit"));
  170. opener.frmf_setParameter("okflag", "Y");
  171. opener.frmf_setParameter("fromdd", group2.ipt_fromdd.getData() );
  172. opener.frmf_setParameter("todd", group2.ipt_todd.getData() );
  173. this.close();
  174. }
  175. function group2_btn_srch_onclick(obj:Button, e:ClickEventInfo) {
  176. ds_send.setColumn(0, "fromdd", group2.ipt_fromdd.getData());
  177. ds_send.setColumn(0, "todd", group2.ipt_todd.getData());
  178. var oParam = {};
  179. oParam.id = "TRPIE00308";
  180. oParam.service = "edimngtapp.EdiMngt";
  181. oParam.method = "reqGetPiehh702Info";
  182. oParam.inds = "req=ds_send";
  183. oParam.outds = "ds_main_list01_piehh702list=piehh702list";
  184. oParam.async = false;
  185. //oParam.callback = "cf_TRPIE00308";
  186. tranf_submit(oParam);
  187. opener.frmf_setParameter("fromdd", ds_send.getColumn(0, "fromdd"));
  188. opener.frmf_setParameter("todd", ds_send.getColumn(0, "todd"));
  189. }
  190. function group2_ipt_fromdd_onkillfocus(obj:Calendar, e:KillFocusEventInfo) {
  191. }
  192. function ds_main_list01_piehh702list_oncolumnchanged(obj:Dataset, e:DSColChangeEventInfo)
  193. {
  194. if( e.columnid == "chkyn" ){
  195. obj.setColumn(e.row, e.columnid, (e.newvalue == "Y" || e.newvalue == 1) ? "Y" : "N");
  196. }
  197. }
  198. ]]></Script>
  199. </Form>
  200. </FDL>