SPMNG02301_부서별보유물품(린넨)조회HELP.xfdl 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SPMNG02301" position="absolute 0 0 789 582" titletext="부서별 보유물품(린넨)조회" oninit="SPMNG02301_oninit" onload="SPMNG02301_onload">
  5. <Layouts>
  6. <Layout>
  7. <Div position="absolute 0 25 785 545" id="group3" scrollbars="autoboth">
  8. <Layouts>
  9. <Layout>
  10. <Div position="absolute 0 0 780 30" id="group2">
  11. <Layouts>
  12. <Layout>
  13. <Shape position="absolute 0 0 780 29" id="roundrect1" class="roundrect_search" type="roundrectangle"/>
  14. <Button position="absolute 719 4 775 26" id="btn_search" class="btn1" text="조회" onclick="group3_group2_btn_search_onclick"/>
  15. <Shape position="absolute 712 0 718 29" linetype="vertical" id="line13" class="line_4"/>
  16. <Static text="조회조건:" position="absolute 10 6 96 23" id="caption2" class="search_name"/>
  17. <Radio position="absolute 105 5 235 25" id="radio1" columncount="-1" codecolumn="codecolumn" datacolumn="datacolumn" rowcount="-1">
  18. <Dataset id="innerdataset">
  19. <ColumnInfo>
  20. <Column id="codecolumn"/>
  21. <Column id="datacolumn"/>
  22. </ColumnInfo>
  23. <Rows>
  24. <Row>
  25. <Col id="codecolumn">C</Col>
  26. <Col id="datacolumn">물품코드</Col>
  27. </Row>
  28. <Row>
  29. <Col id="codecolumn">N</Col>
  30. <Col id="datacolumn">물품명</Col>
  31. </Row>
  32. </Rows>
  33. </Dataset>
  34. </Radio>
  35. <Edit position="absolute 235 5 390 24" id="ipt_good" class="input_search"/>
  36. </Layout>
  37. </Layouts>
  38. </Div>
  39. <Static text="린넨 물품리스트" position="absolute 2 43 133 60" id="caption1" class="tit_2"/>
  40. <Shape position="absolute 0 60 780 66" linetype="horizontal" id="line1" class="line_10"/>
  41. <Grid position="absolute 0 65 780 515" id="grd_lnsflist" binddataset="ds_main_lnsflist" oncelldblclick="group3_grd_lnsflist_oncelldblclick" cellclickbound="cell">
  42. <Formats>
  43. <Format id="default">
  44. <Columns>
  45. <Column size="24"/>
  46. <Column size="20"/>
  47. <Column size="100"/>
  48. <Column size="75"/>
  49. <Column size="160"/>
  50. <Column size="60"/>
  51. <Column size="80"/>
  52. <Column size="80"/>
  53. <Column size="70"/>
  54. <Column size="0"/>
  55. <Column size="0"/>
  56. <Column size="0"/>
  57. </Columns>
  58. <Rows>
  59. <Row size="24" band="head"/>
  60. <Row size="24"/>
  61. </Rows>
  62. <Band id="head">
  63. <Cell/>
  64. <Cell col="1" displaytype="checkbox" edittype="checkbox"/>
  65. <Cell col="2" text="물품코드"/>
  66. <Cell col="3" text="상세코드"/>
  67. <Cell col="4" text="린넨품명"/>
  68. <Cell col="5" text="규격"/>
  69. <Cell col="6" text="상세규격"/>
  70. <Cell col="7" text="불출단위"/>
  71. <Cell col="8" text="안전재고"/>
  72. <Cell col="9" text="실재고"/>
  73. <Cell col="10" text="existyn"/>
  74. <Cell col="11"/>
  75. </Band>
  76. <Band id="body">
  77. <Cell celltype="head" expr="currow + 1"/>
  78. <Cell col="1" displaytype="checkbox" edittype="checkbox" text="bind:chkyn" expr="expr:chkyn == 'Y' || chkyn == '1' ? '1' : '0'"/>
  79. <Cell col="2" style="align:left top;padding:5 2 1 2;" text="bind:goodcd" wordwrap="word"/>
  80. <Cell col="3" style="align:left middle;padding:1 2 1 2;" text="bind:goodcdseq"/>
  81. <Cell col="4" style="align:left top;padding:5 2 1 2;" text="bind:lngoodnm" wordwrap="word"/>
  82. <Cell col="5" style="align:left top;padding:5 2 1 2;" text="bind:goodspec" wordwrap="word"/>
  83. <Cell col="6" style="align:left top;padding:5 2 1 2;" text="bind:goodmodel" wordwrap="word"/>
  84. <Cell col="7" style="align:left middle;padding:1 2 1 2;" text="bind:goodunit"/>
  85. <Cell col="8" style="align:left middle;padding:1 2 1 2;" text="bind:lnsfcnt"/>
  86. <Cell col="9" text="bind:lnrlcnt"/>
  87. <Cell col="10" text="bind:existyn"/>
  88. <Cell col="11" text="bind:deptcd"/>
  89. </Band>
  90. </Format>
  91. </Formats>
  92. </Grid>
  93. </Layout>
  94. </Layouts>
  95. </Div>
  96. <Div position="absolute 0 546 780 573" id="group1" scrollbars="autoboth">
  97. <Layouts>
  98. <Layout>
  99. <Button position="absolute 661 2 717 24" id="btn_confirm" class="btn4" text="확인" onclick="group1_btn_confirm_onclick"/>
  100. <Button position="absolute 720 2 776 24" id="btn_cancel" class="btn4" text="취소" onclick="group1_btn_cancel_onclick"/>
  101. <Shape position="absolute 0 0 518 6" linetype="vertical" id="line32" class="line_6"/>
  102. </Layout>
  103. </Layouts>
  104. </Div>
  105. <Static id="caption6" text="부서별 보유물품(린넨)조회" class="tit_1" position="absolute 0 0 191 25"/>
  106. </Layout>
  107. </Layouts>
  108. <Objects>
  109. <Dataset id="ds_send_reqdata" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  110. <ColumnInfo>
  111. <Column id="goodcd" type="STRING" size="256"/>
  112. <Column id="srchflag" type="STRING" size="256"/>
  113. <Column id="deptcd" type="STRING" size="256"/>
  114. </ColumnInfo>
  115. <Rows>
  116. <Row>
  117. <Col id="goodcd"/>
  118. <Col id="srchflag"/>
  119. <Col id="deptcd"/>
  120. </Row>
  121. </Rows>
  122. </Dataset>
  123. <Dataset id="ds_main_lnsflist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false" oncolumnchanged="ds_main_lnsflist_oncolumnchanged"/>
  124. <Dataset id="ds_send_lnsflist" 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="group3.group2.radio1" propid="value" datasetid="ds_send_reqdata" columnid="srchflag"/>
  128. <BindItem id="item1" compid="group3.group2.ipt_good" propid="value" datasetid="ds_send_reqdata" columnid="goodcd"/>
  129. </Bind>
  130. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  131. * System Name :
  132. * Job Name :
  133. * Creator :
  134. * Make Date : 2017-07-11
  135. * Description :
  136. *---------------------------------------------------------------------------------------
  137. * Modify Date Modifier Modify Description
  138. *---------------------------------------------------------------------------------------
  139. * 2017-07-11 Live Converter TF->XP
  140. *
  141. *---------------------------------------------------------------------------------------
  142. ****************************************************************************************/
  143. include "com_commonxp::comm_main.xjs";
  144. var arErrorCode = new HashArray();
  145. function SPMNG02301_oninit(obj:Form, e:InitEventInfo)
  146. {
  147. frmf_initForm(obj); //폼 초기화
  148. grdf_initGrid(group3.grd_lnsflist);
  149. }
  150. function SPMNG02301_onload(obj:Form, e:LoadEventInfo)
  151. {
  152. var deptcd = opener.frmf_getParameter("deptcd");
  153. ds_send_reqdata.setColumn(0, "deptcd", deptcd);
  154. group3_group2_btn_search_onclick();
  155. }
  156. function group3_group2_btn_search_onclick(obj:Button, e:ClickEventInfo)
  157. {
  158. if (!utlf_isNull(group3.group2.ipt_good.value)) {
  159. if (utlf_isNull(group3.group2.radio1.value)) {
  160. alert("조회조건을 선택하세요");
  161. return;
  162. }
  163. }
  164. var oParam = {};
  165. oParam.id = "TRMNG02304";
  166. oParam.service = "csrapp.CsrDryMngt";
  167. oParam.method = "reqGetLnsfDeptList";
  168. oParam.inds = "req=ds_send_reqdata";
  169. oParam.outds = "ds_main_lnsflist=lnsflist";
  170. oParam.async = false;
  171. tranf_submit(oParam);
  172. ds_main_lnsflist.addColumn("chkyn", "string");
  173. }
  174. function group1_btn_confirm_onclick(obj:Button, e:ClickEventInfo)
  175. {
  176. if(ds_main_lnsflist.rowcount == 0)
  177. {
  178. sysf_messageBox("적용할 내역이","I004");
  179. this.close();
  180. return;
  181. }
  182. ds_main_lnsflist.filter("chkyn == 'Y' && existyn == 'Y'");
  183. ds_send_lnsflist.copyData(ds_main_lnsflist, true);
  184. ds_main_lnsflist.filter("");
  185. var node = ds_send_lnsflist.rowcount;
  186. if(node.rowcount > 0) {
  187. var goodnm = ds_send_lnsflist.getColumn(0, "lngoodnm");
  188. var goodmodel = ds_send_lnsflist.getColumn(0, "goodmodel");
  189. sysf_messageBox("현재 안전재고변경 요청 중인" + "(" + goodnm + " " +goodmodel + " " + ")" + "물품은 청구하실수 없습니다.", "E");
  190. return;
  191. }
  192. ds_main_lnsflist.filter("chkyn=='Y'");
  193. var rCVS = dsf_getDsCSV(ds_main_lnsflist);
  194. ds_main_lnsflist.filter("");
  195. if ( frmf_checkOpener() ) {
  196. opener.frmf_setParameter("SPMNG02301_", rCVS);
  197. } else {
  198. var rtn = sysf_messageBox("상위화면을 찾을 수", "E001");
  199. }
  200. this.close();
  201. }
  202. function group3_grd_lnsflist_oncelldblclick(obj:Grid, e:GridClickEventInfo)
  203. {
  204. if(e.row >= 0 && e.col >= 0){
  205. group1_btn_confirm_onclick();
  206. }
  207. }
  208. function group1_btn_cancel_onclick(obj:Button, e:ClickEventInfo)
  209. {
  210. this.close();
  211. }
  212. function ds_main_lnsflist_oncolumnchanged(obj:Dataset, e:DSColChangeEventInfo)
  213. {
  214. switch( e.columnid ){
  215. case "chkyn" :
  216. if( e.newvalue == "Y" || e.newvalue == "1" ){
  217. obj.setColumn(e.row, e.columnid, "Y");
  218. }else{
  219. obj.setColumn(e.row, e.columnid, "N");
  220. }
  221. break;
  222. default :
  223. break;
  224. }
  225. }
  226. ]]></Script>
  227. </Form>
  228. </FDL>