SPMNG02802_린넨안전재고물품조회HELP.xfdl 7.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SPMNG02801" position="absolute 0 0 790 560" titletext="린넨물품(린넨)조회 HELP" oninit="SPMNG02801_oninit" onload="SPMNG02801_onload">
  5. <Layouts>
  6. <Layout>
  7. <Div position="absolute 0 0 790 548" id="group3" scrollbars="autoboth">
  8. <Layouts>
  9. <Layout>
  10. <Static text="이불 물품리스트" position="absolute 0 0 131 16" id="caption1" class="tit_2" anchor="default"/>
  11. <Shape position="absolute 0 61 780 67" linetype="horizontal" id="line1" class="line_10" anchor="default"/>
  12. <Grid position="absolute 0 20 790 536" id="grd_rscdlist" binddataset="ds_main_rscdlist" autofittype="col" anchor="default" oncelldblclick="group3_grd_rscdlist_oncelldblclick">
  13. <Formats>
  14. <Format id="default">
  15. <Columns>
  16. <Column size="25"/>
  17. <Column size="20"/>
  18. <Column size="100"/>
  19. <Column size="65"/>
  20. <Column size="160"/>
  21. <Column size="0"/>
  22. <Column size="60"/>
  23. <Column size="80"/>
  24. <Column size="80"/>
  25. <Column size="70"/>
  26. <Column size="0"/>
  27. <Column size="87"/>
  28. </Columns>
  29. <Rows>
  30. <Row size="24" band="head"/>
  31. <Row size="24"/>
  32. </Rows>
  33. <Band id="head">
  34. <Cell/>
  35. <Cell col="1" displaytype="checkbox" edittype="checkbox"/>
  36. <Cell col="2" text="물품코드"/>
  37. <Cell col="3" text="상세코드"/>
  38. <Cell col="4" text="린넨품명"/>
  39. <Cell col="5" text="물품영문명"/>
  40. <Cell col="6" text="사용여부"/>
  41. <Cell col="7" text="규격"/>
  42. <Cell col="8" text="상세규격"/>
  43. <Cell col="9" text="불출단위"/>
  44. <Cell col="10"/>
  45. <Cell col="11" text="운용 안전재고"/>
  46. </Band>
  47. <Band id="body">
  48. <Cell celltype="head" text="expr:currow + 1"/>
  49. <Cell col="1" displaytype="checkbox" edittype="checkbox" text="bind:chkyn" expr="expr:(chkyn == &quot;Y&quot; || chkyn == 1) ? 1 : 0"/>
  50. <Cell col="2" style="align:left;" text="bind:goodcd"/>
  51. <Cell col="3" style="align:left;" text="bind:goodcdseq"/>
  52. <Cell col="4" style="align:left top;padding:4 2 2 2;" text="bind:lngoodnm" wordwrap="word"/>
  53. <Cell col="5" style="align:left;" text="bind:goodengnm"/>
  54. <Cell col="6" style="align:left;" text="bind:useyn"/>
  55. <Cell col="7" style="align:left top;padding:4 2 2 2;" text="bind:goodspec" wordwrap="word"/>
  56. <Cell col="8" style="align:left top;padding:4 2 2 2;" text="bind:goodmodel" wordwrap="word"/>
  57. <Cell col="9" style="align:left;" text="bind:goodunit"/>
  58. <Cell col="10" text="bind:instcd"/>
  59. <Cell col="11" text="bind:deptlnsfcnt"/>
  60. </Band>
  61. </Format>
  62. </Formats>
  63. </Grid>
  64. </Layout>
  65. </Layouts>
  66. </Div>
  67. <Button id="btn_confirm" taborder="1" text="확인" class="btn4" position="absolute 676 538 732 560" onclick="btn_confirm_onclick"/>
  68. <Button id="btn_cancel" taborder="2" text="취소" onclick="group1_btn_cancel_onclick" class="btn4" position="absolute 734 538 790 560"/>
  69. </Layout>
  70. </Layouts>
  71. <Objects>
  72. <Dataset id="ds_main_rscdlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false" oncolumnchanged="ds_main_rscdlist_oncolumnchanged">
  73. <ColumnInfo>
  74. <Column id="chkyn" type="STRING" size="256"/>
  75. </ColumnInfo>
  76. <Rows>
  77. <Row/>
  78. </Rows>
  79. </Dataset>
  80. <Dataset id="ds_init" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  81. <Dataset id="ds_send_reqdata" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  82. <ColumnInfo>
  83. <Column id="goodcd" type="STRING" size="256"/>
  84. <Column id="srchflag" type="STRING" size="256"/>
  85. <Column id="deptcd" type="STRING" size="256"/>
  86. </ColumnInfo>
  87. <Rows>
  88. <Row>
  89. <Col id="srchflag">C</Col>
  90. </Row>
  91. </Rows>
  92. </Dataset>
  93. </Objects>
  94. <Bind/>
  95. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  96. * System Name :
  97. * Job Name :
  98. * Creator :
  99. * Make Date : 2017-07-11
  100. * Description :
  101. *---------------------------------------------------------------------------------------
  102. * Modify Date Modifier Modify Description
  103. *---------------------------------------------------------------------------------------
  104. * 2017-07-11 Live Converter TF->XP
  105. *
  106. *---------------------------------------------------------------------------------------
  107. ****************************************************************************************/
  108. include "com_commonxp::comm_main.xjs";
  109. function SPMNG02801_oninit(obj:Form, e:InitEventInfo)
  110. {
  111. frmf_initForm(obj);
  112. }
  113. function SPMNG02801_onload(obj:Form, e:LoadEventInfo)
  114. {
  115. var deptcd = sysf_getModelProperty("deptcd");
  116. ds_send_reqdata.setColumn(0, "deptcd" , deptcd);
  117. fSearch();
  118. }
  119. function fSearch()
  120. {
  121. var oParam = {};
  122. oParam.id = "TRMNG02804";
  123. oParam.service = "csrapp.CsrDryMngt";
  124. oParam.method = "reqGetBlanketList";
  125. oParam.inds = "req=ds_send_reqdata";
  126. oParam.outds = "ds_main_rscdlist=rscdlist";
  127. oParam.async = false;
  128. tranf_submit(oParam);
  129. }
  130. function group3_grd_rscdlist_oncelldblclick(obj:Grid, e:GridClickEventInfo)
  131. {
  132. if(e.row > -1 && e.col > -1)
  133. {
  134. btn_confirm.click();
  135. }
  136. }
  137. function group1_btn_cancel_onclick(obj:Button, e:ClickEventInfo)
  138. {
  139. this.close();
  140. }
  141. function btn_confirm_onclick(obj:Button, e:ClickEventInfo)
  142. {
  143. if(ds_main_rscdlist.rowcount == 0)
  144. {
  145. sysf_messageBox("적용할 내역이","I004");
  146. this.close();
  147. return;
  148. }
  149. ds_main_rscdlist.filter("chkyn=='Y'");
  150. var rCVS = dsf_getDsCSV(ds_main_rscdlist);
  151. ds_main_rscdlist.filter("");
  152. if ( frmf_checkOpener() ) {
  153. opener.frmf_setParameter("SPMNG02802_", rCVS);
  154. } else {
  155. var rtn = sysf_messageBox("상위화면을 찾을 수", "E001");
  156. }
  157. this.close();
  158. }
  159. function ds_main_rscdlist_oncolumnchanged(obj:Dataset, e:DSColChangeEventInfo)
  160. {
  161. if( e.columnid == "chkyn" ){
  162. obj.setColumn(e.row, "chkyn", (e.newvalue == "Y" || e.newvalue == 1) ? "Y" : "N");
  163. }
  164. }
  165. ]]></Script>
  166. </Form>
  167. </FDL>