SMRSM00600_부서별물품별청구현황조회.xfdl 8.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SMRSM00600" position="absolute 0 0 1197 773" titletext="미등록물질 청구 부서 조회" oninit="SMRSM00600_oninit" onload="SMRSM00600_onload">
  5. <Layouts>
  6. <Layout>
  7. <Static id="caption6" text="미등록물질 청구 부서 조회" class="tit_1" position="absolute 0 0 211 25" anchor="left top"/>
  8. <Shape id="line2" linetype="horizontal" class="line_6" position="absolute 0 38 1194 44" anchor="left top right"/>
  9. <Div id="grp_sea" taborder="1" class="div_SA2" position="absolute 0 41 1194 81" anchor="left top right">
  10. <Layouts>
  11. <Layout>
  12. <Static id="caption7" text="청구일자" class="search_name" position="absolute 71 11 150 28" anchor="left top"/>
  13. <Shape id="line5" linetype="vertical" class="line_4" position="absolute 377 8 383 30" anchor="left top"/>
  14. <Button id="btn_search" taborder="2" text="조회" class="btn1" position="absolute 403 9 459 31" anchor="left top" onclick="grp_sea_btn_search_onclick"/>
  15. <Static id="caption1" text="~" position="absolute 247 13 258 28" anchor="left top"/>
  16. <Calendar id="ipt_fromdd" taborder="3" class="input_default" position="absolute 144 10 245 29" mask="yyyy-mm-dd" anchor="left top" autoselect="true"/>
  17. <Calendar id="ipt_todd" taborder="4" class="input_default" position="absolute 261 10 362 29" mask="yyyy-mm-dd" anchor="left top" autoselect="true"/>
  18. </Layout>
  19. </Layouts>
  20. </Div>
  21. <Shape id="line3" linetype="horizontal" class="line_10" position="absolute 0 113 1193 119" anchor="left top right"/>
  22. <Static id="caption21" text="부서별 미등록된 물류 MSDS물품 목록" class="tit_2" position="absolute 1 95 253 111"/>
  23. <Grid id="grd_goodlist" taborder="2" binddataset="ds_main_goodlist" useinputpanel="false" position="absolute 0 118 1193 718" anchor="all" cellsizingtype="col">
  24. <Formats>
  25. <Format id="default">
  26. <Columns>
  27. <Column size="29" band="left"/>
  28. <Column size="79"/>
  29. <Column size="202"/>
  30. <Column size="77"/>
  31. <Column size="313"/>
  32. <Column size="181"/>
  33. <Column size="139"/>
  34. <Column size="138"/>
  35. </Columns>
  36. <Rows>
  37. <Row size="24" band="head"/>
  38. <Row size="24"/>
  39. </Rows>
  40. <Band id="head">
  41. <Cell/>
  42. <Cell col="1" text="부서코드"/>
  43. <Cell col="2" text="청구부서명"/>
  44. <Cell col="3" text="물품코드"/>
  45. <Cell col="4" text="물품명"/>
  46. <Cell col="5" text="규격"/>
  47. <Cell col="6" text="제조회사"/>
  48. <Cell col="7" text="주거래처"/>
  49. </Band>
  50. <Band id="body">
  51. <Cell celltype="head" text="expr:currow + 1"/>
  52. <Cell col="1" style="align:center middle;" text="bind:reqdeptcd"/>
  53. <Cell col="2" style="align:left middle;" text="bind:reqdeptnm"/>
  54. <Cell col="3" style="align:center middle;" class="text_center" text="bind:goodcd"/>
  55. <Cell col="4" style="align:left middle;" text="bind:goodnm"/>
  56. <Cell col="5" style="align:left middle;" text="bind:goodspec"/>
  57. <Cell col="6" style="align:left middle;" text="bind:prodcmpynm"/>
  58. <Cell col="7" style="align:left middle;" text="bind:maincustlastsuplplcenm"/>
  59. </Band>
  60. </Format>
  61. </Formats>
  62. </Grid>
  63. <Static id="caption3" text="※ 1. 소모품 청구건 만을 대상으로 합니다." position="absolute 5 725 1070 745" anchor="left right bottom" style="color:red;"/>
  64. <Button id="btn_excel" taborder="3" text="엑셀출력" class="btn7" position="absolute 1121 95 1193 114" anchor="top right" onclick="btn_excel_onclick"/>
  65. <Static id="caption2" text="2. 물류 물품마스터에서 물품코드의 제조회사를 변경하였을 경우, 해당 물품코드가 화학물질코드로 기등록된 것이면 제조회사와 무관하게 위의 목록 상에는 나타나지 않음을 양지하시기 바랍니다." position="absolute 20 745 1084 765" anchor="left right bottom" style="color:red;"/>
  66. </Layout>
  67. </Layouts>
  68. <Objects>
  69. <Dataset id="ds_main_goodlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  70. <ColumnInfo>
  71. <Column id="reqdeptcd" type="STRING"/>
  72. <Column id="reqdeptnm" type="STRING"/>
  73. <Column id="goodcd" type="STRING"/>
  74. <Column id="goodnm" type="STRING"/>
  75. <Column id="goodspec" type="STRING"/>
  76. <Column id="prodcmpynm" type="STRING"/>
  77. <Column id="maincustlastsuplplcenm" type="STRING"/>
  78. </ColumnInfo>
  79. </Dataset>
  80. <Dataset id="ds_main_condition" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  81. <ColumnInfo>
  82. <Column id="fromdd" type="STRING" size="256"/>
  83. <Column id="todd" type="STRING" size="256"/>
  84. </ColumnInfo>
  85. <Rows>
  86. <Row/>
  87. </Rows>
  88. </Dataset>
  89. <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  90. </Objects>
  91. <Bind>
  92. <BindItem id="item0" compid="grp_sea.ipt_fromdd" propid="value" datasetid="ds_main_condition" columnid="fromdd"/>
  93. <BindItem id="item1" compid="grp_sea.ipt_todd" propid="value" datasetid="ds_main_condition" columnid="todd"/>
  94. </Bind>
  95. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  96. * System Name :
  97. * Job Name :
  98. * Creator :
  99. * Make Date : 2017-06-19
  100. * Description :
  101. *---------------------------------------------------------------------------------------
  102. * Modify Date Modifier Modify Description
  103. *---------------------------------------------------------------------------------------
  104. * 2017-06-19 Live Converter TF->XP
  105. *
  106. *---------------------------------------------------------------------------------------
  107. ****************************************************************************************/
  108. include "com_commonxp::comm_main.xjs";
  109. include "mis_miscommonxp::MIS.xjs";
  110. include "mis_miscommonxp::RAC001.xjs";
  111. include "mis_miscommonxp::RSZ001.xjs";
  112. function SMRSM00600_oninit(obj:Form, e:InitEventInfo)
  113. {
  114. frmf_initForm(obj);
  115. }
  116. function SMRSM00600_onload(obj:Form, e:LoadEventInfo)
  117. {
  118. grdf_initGrid(grd_goodlist);
  119. fOpenForm();
  120. }
  121. //화면 로드시 초기화 함수
  122. function fOpenForm()
  123. {
  124. misfGridInit(grd_goodlist);
  125. ds_main_condition.setColumn(0, "fromdd", utlf_getCurrentDate().toDate().getAddDate(-1,"M").getDateFormat());
  126. ds_main_condition.setColumn(0, "todd", utlf_getCurrentDate());
  127. }
  128. //조회 버튼클릭
  129. function grp_sea_btn_search_onclick(obj:Button, e:ClickEventInfo)
  130. {
  131. fGetGoodList();
  132. }
  133. //코드 목록 조회 함수
  134. function fGetGoodList()
  135. {
  136. misfGridInit(grd_goodlist);
  137. ds_send.copyData(ds_main_condition);
  138. var oParam = {};
  139. oParam.id = "TRRSM00601";
  140. oParam.service = "purcbaseapp.PurcBaseMngt";
  141. oParam.method = "reqGetDeptMsdsGoodList";
  142. oParam.inds = "req=ds_main_condition";
  143. oParam.outds = "ds_main_goodlist=goodlist";
  144. oParam.async = false;
  145. //oParam.callback = "cf_TRRSM00601";
  146. tranf_submit(oParam);
  147. }
  148. //엑셀출력
  149. function btn_excel_onclick(obj:Button, e:ClickEventInfo)
  150. {
  151. misfSaveExcel(grd_goodlist);
  152. }
  153. ]]></Script>
  154. </Form>
  155. </FDL>