SMMNG02104_부서별안전재고보유현황.xfdl 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SMMNG02104" position="absolute 0 0 1185 770" titletext="안전재고관리" oninit="SMMNG02104_oninit" onload="SMMNG02104_onload">
  5. <Layouts>
  6. <Layout>
  7. <Div position="absolute 0 0 1180 25" id="grp_tle">
  8. <Layouts>
  9. <Layout>
  10. <Static text="부서별 안전재고 보유현황" position="absolute 0 0 186 25" id="caption6" class="tit_1"/>
  11. </Layout>
  12. </Layouts>
  13. </Div>
  14. <Div position="absolute 0 64 1180 769" id="grp_biz" scrollbars="autoboth">
  15. <Layouts>
  16. <Layout>
  17. <Static text="부서별 안전재고 보유현황" position="absolute 0 5 200 21" id="caption12" class="tit_2"/>
  18. <Grid position="absolute 0 25 1178 695" id="grd_lnsflist" binddataset="ds_main_lnsfinfo_lnsflist">
  19. <Formats>
  20. <Format id="default">
  21. <Columns>
  22. <Column size="25"/>
  23. <Column size="86"/>
  24. <Column size="65"/>
  25. <Column size="200"/>
  26. <Column size="150"/>
  27. <Column size="70"/>
  28. <Column size="100"/>
  29. <Column size="81"/>
  30. <Column size="80"/>
  31. <Column size="100"/>
  32. <Column size="200"/>
  33. <Column size="0"/>
  34. <Column size="0"/>
  35. <Column size="0"/>
  36. <Column size="0"/>
  37. </Columns>
  38. <Rows>
  39. <Row size="24" band="head"/>
  40. <Row size="24" band="head"/>
  41. <Row size="24"/>
  42. </Rows>
  43. <Band id="head">
  44. <Cell rowspan="2"/>
  45. <Cell col="1" rowspan="2" text="물품코드"/>
  46. <Cell col="2" rowspan="2" text="상세코드"/>
  47. <Cell col="3" rowspan="2" text="린넨품명"/>
  48. <Cell col="4" rowspan="2" text="상세규격"/>
  49. <Cell col="5" rowspan="2" text="단위"/>
  50. <Cell col="6" rowspan="2" text="운용안전재고"/>
  51. <Cell col="7" colspan="2" text="린넨보관실"/>
  52. <Cell col="9" rowspan="2" text="부서코드"/>
  53. <Cell col="10" rowspan="2" text="비고"/>
  54. <Cell col="11"/>
  55. <Cell col="12"/>
  56. <Cell col="13"/>
  57. <Cell col="14"/>
  58. <Cell row="1" col="7" text="안전재고수량"/>
  59. <Cell row="1" col="8" text="실재고수량"/>
  60. <Cell row="1" col="11"/>
  61. <Cell row="1" col="12"/>
  62. <Cell row="1" col="13"/>
  63. <Cell row="1" col="14"/>
  64. </Band>
  65. <Band id="body">
  66. <Cell celltype="head"/>
  67. <Cell col="1" text="bind:goodcd"/>
  68. <Cell col="2" text="bind:goodcdseq"/>
  69. <Cell col="3" text="bind:lngoodnm"/>
  70. <Cell col="4" text="bind:goodmodel"/>
  71. <Cell col="5" text="bind:goodunit"/>
  72. <Cell col="6" text="bind:deptlnsfcnt"/>
  73. <Cell col="7" text="bind:lnsfcnt"/>
  74. <Cell col="8" text="bind:lnrlcnt"/>
  75. <Cell col="9" displaytype="combo" edittype="none" text="bind:deptcd" combodataset="ds_main_csrdeptlist" combocodecol="deptcd" combodatacol="deptnm"/>
  76. <Cell col="10" text="bind:remark"/>
  77. <Cell col="11" displaytype="none" edittype="none" text="bind:lastupdtrid"/>
  78. <Cell col="12" text="bind:oldlnsfcnt"/>
  79. <Cell col="13" text="bind:fromdd"/>
  80. <Cell col="14" text="bind:todd"/>
  81. </Band>
  82. </Format>
  83. </Formats>
  84. </Grid>
  85. <Shape position="absolute 1 21 1178 27" linetype="horizontal" id="line5" class="line_10"/>
  86. </Layout>
  87. </Layouts>
  88. </Div>
  89. <Shape position="absolute 0 24 1175 59" id="roundrect1" class="roundrect_search" type="roundrectangle"/>
  90. <Static text="부 서 명 :" position="absolute 285 34 373 51" id="caption2" class="search_name"/>
  91. <Button position="absolute 1114 31 1170 53" id="btn_search" class="btn1" taborder="2" text="조회" onclick="btn_search_onclick"/>
  92. <Combo position="absolute 380 34 480 53" id="cmb_deptcd" enable="false" innerdataset="@ds_main_csrdeptlist" datacolumn="deptnm" codecolumn="deptcd" onitemchanged="cmb_deptcd_onitemchanged"/>
  93. <Shape position="absolute 1102 29 1108 54" linetype="vertical" id="line2" class="line_4"/>
  94. <Static text="기관코드 :" position="absolute 10 34 96 51" id="cap_instcd" class="search_name"/>
  95. <Edit readonly="true" position="absolute 100 34 260 53" align="align:center middle;" id="opt_instcdnm" class="output"/>
  96. <Static text="일 자 :" position="absolute 500 34 588 51" id="caption1" class="search_name"/>
  97. <Calendar position="absolute 570 34 670 53" id="ipt_workdd" class="input" autoselect="true" autoskip="true" onchanged="ipt_workdd_onchanged"/>
  98. </Layout>
  99. </Layouts>
  100. <Objects>
  101. <Dataset id="ds_main_lnsfinfo_lnsflist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  102. <Dataset id="ds_main_lnsfinfo_csrdeptlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  103. <Dataset id="ds_main_cond" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  104. <ColumnInfo>
  105. <Column id="deptcd" type="STRING" size="256"/>
  106. <Column id="srchflag" type="STRING" size="256"/>
  107. </ColumnInfo>
  108. <Rows>
  109. <Row/>
  110. </Rows>
  111. </Dataset>
  112. <Dataset id="ds_main_csrdeptlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  113. <Dataset id="ds_send_reqdata" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  114. <ColumnInfo>
  115. <Column id="deptcd" type="STRING" size="256"/>
  116. <Column id="instcdnm" type="STRING" size="256"/>
  117. <Column id="workdd" type="STRING" size="256"/>
  118. </ColumnInfo>
  119. <Rows>
  120. <Row/>
  121. </Rows>
  122. </Dataset>
  123. <Dataset id="ds_init_csrdeptinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  124. <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  125. </Objects>
  126. <Bind>
  127. <BindItem id="item0" compid="cmb_deptcd" propid="value" datasetid="ds_send" columnid="deptcd"/>
  128. <BindItem id="item1" compid="opt_instcdnm" propid="value" datasetid="ds_send" columnid="instcdnm"/>
  129. <BindItem id="item2" compid="ipt_workdd" propid="value" datasetid="ds_send" columnid="workdd"/>
  130. </Bind>
  131. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  132. * System Name :
  133. * Job Name :
  134. * Creator :
  135. * Make Date : 2017-07-11
  136. * Description :
  137. *---------------------------------------------------------------------------------------
  138. * Modify Date Modifier Modify Description
  139. *---------------------------------------------------------------------------------------
  140. * 2017-07-11 Live Converter TF->XP
  141. *
  142. *---------------------------------------------------------------------------------------
  143. ****************************************************************************************/
  144. include "com_commonxp::comm_main.xjs";
  145. function SMMNG02104_oninit(obj:Form, e:InitEventInfo)
  146. {
  147. frmf_initForm(obj);
  148. }
  149. function SMMNG02104_onload(obj:Form, e:LoadEventInfo)
  150. {
  151. grdf_setRowTypeIcon(grp_biz.grd_lnsflist,0);
  152. fInitialize();
  153. }
  154. // 화면 open시와 초기화 버튼 클릭시 화면 초기화 기능을 수행한다.
  155. function fInitialize()
  156. {
  157. ds_send.setColumn(0, "instcdnm", sysf_getUserInfo("dutplceinstnm")); //기관코드
  158. dsf_makeValue(ds_send_reqdata,"instcd" , "string", sysf_getUserInfo("dutplceinstcd"));
  159. dsf_makeValue(ds_send_reqdata,"useyn" , "string", "Y");
  160. ds_send.setColumn(0, "workdd", utlf_getCurrentDate());
  161. ds_send.setColumn(0, "deptcd", sysf_getUserInfo("dutplcecd") );
  162. var oParam = {};
  163. oParam.id = "TRMNG00402";
  164. oParam.service = "csrapp.CsrMngt";
  165. oParam.method = "getCsrDeptList";
  166. oParam.inds = "req=ds_send_reqdata";
  167. oParam.outds = "ds_main_csrdeptlist=csrdeptlist";
  168. oParam.async = false;
  169. tranf_submit(oParam);
  170. fSearch();
  171. }
  172. function fSearch() {
  173. var oParam = {};
  174. oParam.id = "TRMNG02108";
  175. oParam.service = "csrapp.CsrDryMngt";
  176. oParam.method = "reqGetDeptLnsfList";
  177. oParam.inds = "req=ds_send";
  178. oParam.outds = "ds_main_lnsfinfo_lnsflist=lnsflist";
  179. oParam.async = false;
  180. tranf_submit(oParam);
  181. //grd_lnsflist.colDisabled(grd_lnsflist.colRef("deptcd")) = true;
  182. }
  183. function btn_search_onclick(obj:Button, e:ClickEventInfo)
  184. {
  185. fSearch();
  186. }
  187. function cmb_deptcd_onitemchanged(obj:Combo, e:ItemChangeEventInfo)
  188. {
  189. fSearch();
  190. }
  191. function ipt_workdd_onchanged(obj:Calendar, e:ChangeEventInfo)
  192. {
  193. fSearch();
  194. }
  195. ]]></Script>
  196. </Form>
  197. </FDL>