SMRST00900_재고자산수불현황출력(약국).xfdl 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SMRST00900" position="absolute 0 0 1201 774" titletext="재고자산수불현황출력(약품)" oninit="SMRST00900_oninit" onload="SMRST00900_onload">
  5. <Layouts>
  6. <Layout>
  7. <Static text="재고자산수불현황" position="absolute 1 91 212 108" id="caption21" class="tit_2"/>
  8. <Div position="absolute 0 48 1195 83" align="align:center top;" id="group6">
  9. <Layouts>
  10. <Layout>
  11. <Shape position="absolute 0 0 1195 35" id="roundrect3" type="roundrectangle"/>
  12. <Static text="마 감 월 :" position="absolute 353 9 446 26" id="caption10" class="search_name"/>
  13. <Static text="기관코드 :" position="absolute 15 9 108 26" id="caption7" class="search_name"/>
  14. <Combo position="absolute 100 8 241 27" align="align:center middle;" id="cmb_instcd" class="combo_essential" enable="false"/>
  15. <Calendar position="absolute 435 8 535 27" align="align:center middle;" id="ipt_stocym" class="input_essential" mask="yyyy-mm"/>
  16. <Shape position="absolute 1106 7 1112 29" linetype="vertical" id="line18" class="line_4"/>
  17. <Button position="absolute 1124 7 1180 29" id="btn_search" class="btn1" text="조회" onclick="group6_btn_search_onclick"/>
  18. <Edit readonly="true" position="absolute 960 5 1060 24" id="opt_goodflag" visible="false"/>
  19. <Combo position="absolute 810 8 960 27" id="cmb_mngtcls" class="combo_essential"/>
  20. <Static text="관리분류 :" position="absolute 725 9 813 26" id="caption2" class="search_name"/>
  21. <Static text="~" position="absolute 542 10 557 30" id="caption1"/>
  22. <Calendar position="absolute 560 8 660 27" align="align:center middle;" id="ipt_tostocym" class="input_essential" mask="yyyy-mm"/>
  23. </Layout>
  24. </Layouts>
  25. </Div>
  26. <Shape position="absolute 0 107 1195 113" linetype="horizontal" id="line15" class="line_10"/>
  27. <Grid position="absolute 0 112 1195 769" id="grd_stocpropertylist" class="datagrid2" binddataset="ds_main_stocpropertylist">
  28. <Formats>
  29. <Format id="default">
  30. <Columns>
  31. <Column size="24"/>
  32. <Column size="0"/>
  33. <Column size="0"/>
  34. <Column size="84"/>
  35. <Column size="169"/>
  36. <Column size="0"/>
  37. <Column size="42"/>
  38. <Column size="40"/>
  39. <Column size="44"/>
  40. <Column size="42"/>
  41. <Column size="0"/>
  42. <Column size="67"/>
  43. <Column size="101"/>
  44. <Column size="70"/>
  45. <Column size="113"/>
  46. <Column size="64"/>
  47. <Column size="100"/>
  48. <Column size="66"/>
  49. <Column size="113"/>
  50. <Column size="0"/>
  51. </Columns>
  52. <Rows>
  53. <Row size="24" band="head"/>
  54. <Row size="24"/>
  55. </Rows>
  56. <Band id="head">
  57. <Cell/>
  58. <Cell col="1" text="약분류"/>
  59. <Cell col="2" text="계정명"/>
  60. <Cell col="3" text="약품코드"/>
  61. <Cell col="4" text="약품명"/>
  62. <Cell col="5" text="단가"/>
  63. <Cell col="6" colspan="2" text="함량/단위" taborder="undefined"/>
  64. <Cell col="8" colspan="2" text="포장수량/단위" taborder="undefined"/>
  65. <Cell col="10" text="최소단위"/>
  66. <Cell col="11" text="이월수량"/>
  67. <Cell col="12" text="이월금액"/>
  68. <Cell col="13" text="입고수량"/>
  69. <Cell col="14" text="입고금액"/>
  70. <Cell col="15" text="출고수량"/>
  71. <Cell col="16" text="출고금액"/>
  72. <Cell col="17" text="재고수량"/>
  73. <Cell col="18" text="재고금액"/>
  74. <Cell col="19" text="계정코드"/>
  75. </Band>
  76. <Band id="body">
  77. <Cell celltype="head" expr="currow + 1"/>
  78. <Cell col="1" text="bind:lrgnm"/>
  79. <Cell col="2" text="bind:dcntnm"/>
  80. <Cell col="3" style="align:left top;padding:5 2 1 2;" text="bind:goodcd" wordwrap="word"/>
  81. <Cell col="4" style="align:left top;padding:5 2 1 2;" text="bind:goodnm" wordwrap="word"/>
  82. <Cell col="5" text="bind:goodunitcost" mask="#,###.##"/>
  83. <Cell col="6" text="bind:cntsqty"/>
  84. <Cell col="7" text="bind:cntsunit"/>
  85. <Cell col="8" text="bind:exchqty"/>
  86. <Cell col="9" text="bind:purcunit"/>
  87. <Cell col="10" text="bind:deliveunit"/>
  88. <Cell col="11" displaytype="number" style="align:right middle;" text="bind:brngfwrdqty" mask="#,###.##"/>
  89. <Cell col="12" displaytype="number" style="align:right middle;" text="bind:brngfwrdamt" mask="#,###.##"/>
  90. <Cell col="13" displaytype="number" style="align:right middle;" text="bind:abwinqty" mask="#,###.##"/>
  91. <Cell col="14" displaytype="number" style="align:right middle;" text="bind:abwinamt" mask="#,###.##"/>
  92. <Cell col="15" displaytype="number" style="align:right middle;" text="bind:deliveqty" mask="#,###.##"/>
  93. <Cell col="16" displaytype="number" style="align:right middle;" text="bind:deliveamt" mask="#,###.##"/>
  94. <Cell col="17" displaytype="number" style="align:right middle;" text="bind:abstocqty" mask="#,###.##"/>
  95. <Cell col="18" displaytype="number" style="align:right middle;" text="bind:stocamt" mask="#,###.##"/>
  96. <Cell col="19" text="bind:amtacnt"/>
  97. </Band>
  98. </Format>
  99. </Formats>
  100. </Grid>
  101. <Button position="absolute 1106 87 1192 106" id="btn_excel" class="btn5" text="Excel Save" onclick="btn_excel_onclick"/>
  102. <Static id="caption6" text="재고자산수불현황출력(약품)" class="tit_1" position="absolute 0 0 209 25"/>
  103. <Button id="btn_prt" taborder="1" text="출력" class="btn6" position="absolute 0 26 56 48" onclick="btn_prt_onclick"/>
  104. </Layout>
  105. </Layouts>
  106. <Objects>
  107. <Dataset id="ds_send_sendlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  108. <ColumnInfo>
  109. <Column id="instcd" type="STRING" size="256"/>
  110. <Column id="goodflag" type="STRING" size="256"/>
  111. <Column id="stocym" type="STRING" size="256"/>
  112. <Column id="tostocym" type="STRING" size="256"/>
  113. <Column id="mngtcls" type="STRING" size="256"/>
  114. </ColumnInfo>
  115. <Rows>
  116. <Row>
  117. <Col id="instcd"/>
  118. <Col id="goodflag"/>
  119. <Col id="stocym"/>
  120. <Col id="tostocym"/>
  121. <Col id="mngtcls"/>
  122. </Row>
  123. </Rows>
  124. </Dataset>
  125. <Dataset id="ds_main_stocpropertylist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  126. </Objects>
  127. <Bind>
  128. <BindItem id="item0" compid="group6.cmb_instcd" propid="value" datasetid="ds_send_sendlist" columnid="instcd"/>
  129. <BindItem id="item1" compid="group6.ipt_stocym" propid="value" datasetid="ds_send_sendlist" columnid="stocym"/>
  130. <BindItem id="item2" compid="group6.ipt_tostocym" propid="value" datasetid="ds_send_sendlist" columnid="tostocym"/>
  131. <BindItem id="item3" compid="group6.cmb_mngtcls" propid="value" datasetid="ds_send_sendlist" columnid="mngtcls"/>
  132. <BindItem id="item4" compid="group6.opt_goodflag" propid="value" datasetid="ds_send_sendlist" columnid="goodflag"/>
  133. </Bind>
  134. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  135. * System Name :
  136. * Job Name :
  137. * Creator :
  138. * Make Date : 2017-06-19
  139. * Description :
  140. *---------------------------------------------------------------------------------------
  141. * Modify Date Modifier Modify Description
  142. *---------------------------------------------------------------------------------------
  143. * 2017-06-19 Live Converter TF->XP
  144. *
  145. *---------------------------------------------------------------------------------------
  146. ****************************************************************************************/
  147. include "com_commonxp::comm_main.xjs";
  148. include "mis_miscommonxp::MIS.xjs";
  149. include "mis_miscommonxp::PIC002.xjs";
  150. include "mis_miscommonxp::RAC001.xjs";
  151. include "mis_miscommonxp::RBC001.xjs";
  152. include "mis_miscommonxp::RSZ001.xjs";
  153. var arErrorCode = new HashArray();
  154. function SMRST00900_oninit(obj:Form, e:InitEventInfo)
  155. {
  156. frmf_initForm(obj); //폼 초기화
  157. }
  158. function SMRST00900_onload(obj:Form, e:LoadEventInfo)
  159. {
  160. fInitialize();
  161. misfGridInit(grd_stocpropertylist);
  162. rszfUserInstList(group6.cmb_instcd, sysf_getUserInfo("userid"));
  163. //화면 권한 설정
  164. btn_prt.enable = frmf_checkAuth("P");
  165. }
  166. // 화면 open시와 초기화 버튼 클릭시 화면 초기화 기능을 수행한다.
  167. function fInitialize() {
  168. ds_main_stocpropertylist.clearData();
  169. ds_send_sendlist.clearData();
  170. ds_send_sendlist.addRow();
  171. misfComboComCdList("030M0003",group6.cmb_mngtcls,"Y");
  172. ds_send_sendlist.setColumn(0, "instcd", sysf_getUserInfo("dutplceinstcd"));
  173. var curdd = utlf_getCurrentDate();
  174. group6.ipt_stocym.value = curdd.substr(0,6);
  175. group6.ipt_tostocym.value = curdd.substr(0,6);
  176. // [2010.08.26]AS-IS 코드 TO_BE 코드 전환을 위한 물품구분 변경 (goodflag= P) => (goodflag= PH)
  177. group6.opt_goodflag.value = "PH";
  178. group6.cmb_mngtcls.value = "";
  179. }
  180. function group6_btn_search_onclick(obj:Button, e:ClickEventInfo)
  181. {
  182. var null_check = group6.cmb_instcd.value;
  183. ds_send_sendlist.setColumn(0, "stocym", ds_send_sendlist.getColumn(0, "stocym").substr(0,6));
  184. ds_send_sendlist.setColumn(0, "tostocym", ds_send_sendlist.getColumn(0, "tostocym").substr(0,6));
  185. var oParam = {};
  186. oParam.id = "TRRST00901";
  187. oParam.service = "stocsumapp.StocSumMngt";
  188. oParam.method = "reqGetStocPropertyDrugList";
  189. oParam.inds = "req=ds_send_sendlist";
  190. oParam.outds = "ds_main_stocpropertylist=stocpropertylist";
  191. oParam.async = false;
  192. tranf_submit(oParam);
  193. }
  194. function btn_excel_onclick(obj:Button, e:ClickEventInfo)
  195. {
  196. grdf_exportExcel(grd_stocpropertylist, "재고자산수불현황(" + utlf_getCurrentDate() + ")", "sheetname1" , true, "" , "" , true);
  197. }
  198. function btn_prt_onclick(obj:Button, e:ClickEventInfo)
  199. {
  200. var objDOM = rptf_createDOM();
  201. rptf_setNodeListToDOM(objDOM, "root/send/sendlist", ds_send_sendlist); // 데이터셋 1
  202. rptf_setNodeListToDOM(objDOM, "root/tmp/rexinfo/stocpropertylist" , ds_main_stocpropertylist); // 데이터셋 2
  203. var objParam = new Object();
  204. objParam.xml_data_XML1 = objDOM.documentElement.source; // 최상의노드 XML 스트링 추출
  205. var option = "open=1;save=1;directprint=0;print=1;zoom=0;";
  206. rptf_exeReportPreview30(["RPRST00902"],[objParam], option);
  207. }
  208. ]]></Script>
  209. </Form>
  210. </FDL>