SMADT50600_임상약품적정재고량관리.xfdl 7.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SMADT50200" position="absolute 0 0 615 777" titletext="약품 재고 관리" oninit="SMADT50200_oninit" onload="SMADT50200_onload">
  5. <Layouts>
  6. <Layout>
  7. <Static id="caption6" text="적정재고량 관리" class="tit_1" position="absolute 0 0 229 25" onclick="caption6_onclick"/>
  8. <Shape id="line00" class="line_1" position="absolute 2 44 609 54" style="strokepen:3 solid #33bbbbff;"/>
  9. <Static id="caption3" text="임상재고관리 리스트" class="search_name" position="absolute 7 29 149 46"/>
  10. <Grid id="grd_iolist" taborder="2" binddataset="ds_iolist" useinputpanel="false" oncellclick="Grid00_oncellclick" onheadclick="Grid00_onheadclick" oncelldblclick="Grid00_oncelldblclick" position="absolute 2 51 608 768">
  11. <Formats>
  12. <Format id="default">
  13. <Columns>
  14. <Column size="117"/>
  15. <Column size="73"/>
  16. <Column size="330"/>
  17. <Column size="66"/>
  18. </Columns>
  19. <Rows>
  20. <Row size="45" band="head"/>
  21. <Row size="24"/>
  22. </Rows>
  23. <Band id="head">
  24. <Cell text="과제명"/>
  25. <Cell col="1" text="약품코드"/>
  26. <Cell col="2" text="약품명"/>
  27. <Cell col="3" text="적정재고량"/>
  28. </Band>
  29. <Band id="body">
  30. <Cell style="align:left;padding:0 0 0 5;" text="bind:subjid"/>
  31. <Cell col="1" style="align:left;padding:5 5 5 5;" text="bind:drugcd"/>
  32. <Cell col="2" style="align:left;padding:0 0 0 5;" text="bind:drugnm"/>
  33. <Cell col="3" displaytype="number" edittype="text" editfilter="number" style="padding:0 5 0 0;" text="bind:safestocqty"/>
  34. </Band>
  35. </Format>
  36. </Formats>
  37. </Grid>
  38. <Button id="Button00" taborder="3" text="저장" position="absolute 567 26 609 46" class="btn5" onclick="Button00_onclick"/>
  39. <Button id="Button01" taborder="4" text="엑셀저장" position="absolute 499 25 565 47" onclick="Button01_onclick"/>
  40. </Layout>
  41. </Layouts>
  42. <Objects>
  43. <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  44. <ColumnInfo>
  45. <Column id="fromdd" type="STRING" size="256"/>
  46. <Column id="todd" type="STRING" size="256"/>
  47. <Column id="drugcd" type="STRING" size="256"/>
  48. </ColumnInfo>
  49. <Rows>
  50. <Row/>
  51. </Rows>
  52. </Dataset>
  53. <Dataset id="ds_iolist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  54. <ColumnInfo>
  55. <Column id="drugcd" type="STRING" size="256"/>
  56. <Column id="drugnm" type="STRING" size="256"/>
  57. <Column id="safestocqty" type="STRING" size="256"/>
  58. </ColumnInfo>
  59. </Dataset>
  60. <Dataset id="ds_send_savedata" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  61. <Dataset id="ds_stoclist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  62. <ColumnInfo>
  63. <Column id="drugcd" type="STRING" size="256"/>
  64. <Column id="inqty" type="STRING" size="256"/>
  65. <Column id="outqty" type="STRING" size="256"/>
  66. <Column id="rtnqty" type="STRING" size="256"/>
  67. <Column id="totstocqty" type="STRING" size="256"/>
  68. </ColumnInfo>
  69. <Rows>
  70. <Row/>
  71. </Rows>
  72. </Dataset>
  73. </Objects>
  74. <Bind/>
  75. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  76. * System Name :
  77. * Job Name :
  78. * Creator :
  79. * Make Date : 2015-11-13
  80. * Description :
  81. *---------------------------------------------------------------------------------------
  82. * Modify Date Modifier Modify Description
  83. *---------------------------------------------------------------------------------------
  84. * 2015-11-13 Live Converter TF->XP
  85. *
  86. *---------------------------------------------------------------------------------------
  87. ****************************************************************************************/
  88. include "com_commonxp::comm_main.xjs";
  89. var arErrorCode = new HashArray();
  90. /******************************************************************
  91. * Argument :
  92. * Description : 초기화
  93. ******************************************************************/
  94. function SMADT50200_oninit(obj:Form, e:InitEventInfo)
  95. {
  96. frmf_initForm(obj);
  97. }
  98. function SMADT50200_onload(obj:Form, e:LoadEventInfo)
  99. {
  100. var drugcd = arg_drugcd;
  101. ds_send.setColumn(0, "fromdd", utlf_getCurrentDate().substr(0,6) + "01");
  102. ds_send.setColumn(0, "todd", utlf_getLastDate(utlf_getCurrentDate()));
  103. ds_send.setColumn(0, "drugcd", drugcd);
  104. //grdf_setRowTypeIcon(grd_iolist, 0); //상태값 표시
  105. //ds_iolist.updatecontrol = true;
  106. fSearch();
  107. }
  108. function group3_group2_btn_sea_onclick(obj:Button, e:ClickEventInfo)
  109. {
  110. fSearch();
  111. }
  112. function fSearch() {
  113. var oParam = {};
  114. oParam.id = "TRADT50601";
  115. oParam.service = "pharmacystocapp.DrugStocSum";
  116. oParam.method = "reqGetSafeStocInfo";
  117. oParam.inds = "req=ds_send";
  118. oParam.outds = "ds_iolist=info";
  119. oParam.async = false;
  120. //oParam.callback = "TRADT50300";
  121. tranf_submit(oParam);
  122. }
  123. function btn_save_onclick(obj:Button, e:ClickEventInfo)
  124. {
  125. ds_send_savedata.clearData();
  126. alert(1);
  127. var updtdata1 = grdf_getGridUpdateData(grd_iolist, "all");
  128. grdf_setStatusColumn(updtdata1, "m");
  129. ds_send_savedata.copyData(updtdata1,true);
  130. var oParam = {};
  131. oParam.id = "TXADT50401";
  132. oParam.service = "pharmacystocapp.DrugStocSum";
  133. oParam.method = "reqSetSafeStocInfo";
  134. oParam.inds = "req=ds_send_savedata";
  135. oParam.outds = "ds_iolist=info";
  136. oParam.async = false;
  137. //oParam.callback = "TRADT50300";
  138. tranf_submit(oParam);
  139. //fSearch();
  140. }
  141. function group2_caption24_onclick(obj:Static, e:ClickEventInfo)
  142. {
  143. }
  144. function Button00_onclick(obj:Button, e:ClickEventInfo)
  145. {
  146. ds_send_savedata.clearData();
  147. var updtdata1 = grdf_getGridUpdateData(grd_iolist, "all");
  148. grdf_setStatusColumn(updtdata1, "m");
  149. ds_send_savedata.copyData(updtdata1,true);
  150. var oParam = {};
  151. oParam.id = "TXADT50401";
  152. oParam.service = "pharmacystocapp.DrugStocSum";
  153. oParam.method = "reqSetSafeStocInfo";
  154. oParam.inds = "req=ds_send_savedata";
  155. oParam.outds = "ds_iolist=info";
  156. oParam.async = false;
  157. //oParam.callback = "TRADT50300";
  158. tranf_submit(oParam);
  159. fSearch();
  160. }
  161. function caption6_onclick(obj:Static, e:ClickEventInfo)
  162. {
  163. }
  164. function Button01_onclick(obj:Button, e:ClickEventInfo)
  165. {
  166. //조회된 자료가 없으면 먼저 조회하라고 message
  167. if(ds_iolist.rowcount < 1) {
  168. sysf_messageBox("조회된 결과가 존재하지 않습니다. \n\n먼저 조회 후 Download 하십시요. ", "E999", "");
  169. return;
  170. }
  171. grdf_exportExcel(grd_iolist, "excel", "입출고내역조회", false, "", "user", false);
  172. }
  173. ]]></Script>
  174. </Form>
  175. </FDL>