SMRSO22700_입출고현황조회(팝업).xfdl 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SMRSO22700" position="absolute 0 0 775 392" titletext="입출고현황조회" oninit="SMRSO22700_oninit" onload="SMRSO22700_onload">
  5. <Layouts>
  6. <Layout>
  7. <Div id="group4" taborder="6" position="absolute 0 23 770 83" class="div_SA">
  8. <Layouts>
  9. <Layout>
  10. <Static id="caption8" text="소속기관" class="search_name" position="absolute 5 8 110 25"/>
  11. <Static id="caption1" text="출고부서" class="search_name" position="absolute 5 33 86 50"/>
  12. <Combo id="cmb_instcd" taborder="1" class="combo_search" position="absolute 85 7 250 26"/>
  13. <Edit id="ipt_delivedeptcd" taborder="2" class="input_default" position="absolute 85 32 175 51" autoselect="true" autoskip="true"/>
  14. <Button id="btn_delivedeptcd" taborder="3" class="icon_search" position="absolute 180 32 196 48" onclick="group4_btn_delivedeptcd_onclick"/>
  15. <Edit id="ipt_delivedeptnm" taborder="4" readonly="true" position="absolute 200 32 336 51" class="output"/>
  16. <Static id="caption12" text="출고일자" class="search_name" position="absolute 280 8 360 25"/>
  17. <Calendar id="ipt_delivedd" taborder="5" position="absolute 360 7 450 26" mask="yyyy-mm-dd" autoselect="true" autoskip="true"/>
  18. <Static id="caption2" text="~" position="absolute 450 7 465 27"/>
  19. <Calendar id="ipt_delivetodd" taborder="6" position="absolute 461 7 551 26" mask="yyyy-mm-dd" autoselect="true" autoskip="true"/>
  20. <Shape id="line3" linetype="vertical" class="line_4" position="absolute 687 7 693 52"/>
  21. <Button id="btn_search" taborder="7" text="조회" class="btn1" position="absolute 700 17 756 39" onclick="group4_btn_search_onclick"/>
  22. </Layout>
  23. </Layouts>
  24. </Div>
  25. <Shape position="absolute 0 105 770 111" linetype="horizontal" id="line8" class="line_10"/>
  26. <Static text="출고내역" position="absolute 0 89 184 110" id="caption20" class="tit_2"/>
  27. <Grid position="absolute 0 110 770 388" id="grd_delivemst" visible="true" binddataset="ds_grd_delivemst" autofittype="col" cellsizingtype="col" autoenter="select">
  28. <Formats>
  29. <Format id="default">
  30. <Columns>
  31. <Column size="84"/>
  32. <Column size="100"/>
  33. <Column size="130"/>
  34. <Column size="160"/>
  35. <Column size="60"/>
  36. <Column size="60"/>
  37. <Column size="0"/>
  38. <Column size="0"/>
  39. <Column size="0"/>
  40. </Columns>
  41. <Rows>
  42. <Row size="24" band="head"/>
  43. <Row size="24"/>
  44. </Rows>
  45. <Band id="head">
  46. <Cell text="출고유형"/>
  47. <Cell col="1" text="일자"/>
  48. <Cell col="2" text="창고"/>
  49. <Cell col="3" text="부서명"/>
  50. <Cell col="4" text="입고여부"/>
  51. <Cell col="5" text="출고여부"/>
  52. <Cell col="6"/>
  53. <Cell col="7"/>
  54. <Cell col="8"/>
  55. </Band>
  56. <Band id="body">
  57. <Cell text="bind:deliveflagnm"/>
  58. <Cell col="1" displaytype="date" text="bind:delivedd" calendardisplaynulltype="nulltext"/>
  59. <Cell col="2" displaytype="none" edittype="none" text="bind:wareflagnm"/>
  60. <Cell col="3" text="bind:delivedeptnm"/>
  61. <Cell col="4" text="bind:wincallyn"/>
  62. <Cell col="5" text="bind:delivecallyn"/>
  63. <Cell col="6" text="bind:wareflag"/>
  64. <Cell col="7" text="bind:delivedeptcd"/>
  65. <Cell col="8" text="bind:instcd"/>
  66. </Band>
  67. </Format>
  68. </Formats>
  69. </Grid>
  70. <Button position="absolute 715 0 771 22" id="btn_cancel" class="btn4" text="닫기" onclick="btn_cancel_onclick"/>
  71. <Static text="출고내역팝업" position="absolute 0 0 295 23" id="caption6" class="tit_1"/>
  72. </Layout>
  73. </Layouts>
  74. <Objects>
  75. <Dataset id="ds_send_search" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false" oncolumnchanged="ds_send_search_oncolumnchanged">
  76. <ColumnInfo>
  77. <Column id="instcd" type="STRING" size="256"/>
  78. <Column id="delivedd" type="STRING" size="256"/>
  79. <Column id="delivedeptcd" type="STRING" size="256"/>
  80. <Column id="delivedeptnm" type="STRING" size="256"/>
  81. <Column id="opener" type="STRING" size="256"/>
  82. <Column id="delivetodd" type="STRING" size="256"/>
  83. </ColumnInfo>
  84. <Rows>
  85. <Row>
  86. <Col id="instcd"/>
  87. <Col id="delivedd"/>
  88. <Col id="delivedeptcd"/>
  89. <Col id="delivedeptnm"/>
  90. <Col id="opener"/>
  91. <Col id="delivetodd"/>
  92. </Row>
  93. </Rows>
  94. </Dataset>
  95. <Dataset id="ds_main_delivemst_delivemstlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  96. <ColumnInfo>
  97. <Column id="instcd" type="STRING" size="256" sumtext="기관코드"/>
  98. <Column id="delivedd" type="STRING" size="256" sumtext="출고일자"/>
  99. <Column id="deliveno" type="STRING" size="256" sumtext="출고번호"/>
  100. <Column id="wareflag" type="STRING" size="256" sumtext="창고구분"/>
  101. <Column id="wareflagnm" type="STRING" size="256" sumtext="창고구분명"/>
  102. <Column id="delivedeptcd" type="STRING" size="256" sumtext="출고부서"/>
  103. <Column id="delivedeptnm" type="STRING" size="256" sumtext="출고부서명"/>
  104. <Column id="deliveflagnm" type="STRING" size="256" sumtext="출고유형명"/>
  105. <Column id="deliveflag" type="STRING" size="256" sumtext="출고유형"/>
  106. <Column id="wincallyn" type="STRING" size="256" sumtext="입고여부"/>
  107. <Column id="delivecallyn" type="STRING" size="256" sumtext="출고여부"/>
  108. <Column id="gubun" type="STRING" size="256" sumtext="구분"/>
  109. </ColumnInfo>
  110. </Dataset>
  111. <Dataset id="ds_popdata" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  112. </Objects>
  113. <Bind>
  114. <BindItem id="item0" compid="group4.cmb_instcd" propid="value" datasetid="ds_send_search" columnid="instcd"/>
  115. <BindItem id="item1" compid="group4.ipt_delivedd" propid="value" datasetid="ds_send_search" columnid="delivedd"/>
  116. <BindItem id="item2" compid="group4.ipt_delivetodd" propid="value" datasetid="ds_send_search" columnid="delivetodd"/>
  117. <BindItem id="item3" compid="group4.ipt_delivedeptcd" propid="value" datasetid="ds_send_search" columnid="delivedeptcd"/>
  118. <BindItem id="item4" compid="group4.ipt_delivedeptnm" propid="value" datasetid="ds_send_search" columnid="delivedeptnm"/>
  119. </Bind>
  120. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  121. * System Name :
  122. * Job Name :
  123. * Creator :
  124. * Make Date : 2017-06-19
  125. * Description :
  126. *---------------------------------------------------------------------------------------
  127. * Modify Date Modifier Modify Description
  128. *---------------------------------------------------------------------------------------
  129. * 2017-06-19 Live Converter TF->XP
  130. *
  131. *---------------------------------------------------------------------------------------
  132. ****************************************************************************************/
  133. include "com_commonxp::comm_main.xjs";
  134. include "mis_miscommonxp::MIS.xjs";
  135. function SMRSO22700_oninit(obj:Form, e:InitEventInfo)
  136. {
  137. frmf_initForm(obj);
  138. }
  139. function SMRSO22700_onload(obj:Form, e:LoadEventInfo)
  140. {
  141. grdf_initGrid(grd_delivemst);
  142. misfComboInstCdListMulti("group4.cmb_instcd",utlf_getCurrentDate(),"","N");
  143. try
  144. {
  145. ds_popdata.copyData(arg_ds_popdata);
  146. }
  147. catch(e)
  148. {
  149. }
  150. ds_send_search.setColumn(0, "instcd", ds_popdata.getColumn(0, "instcd"));
  151. ds_send_search.setColumn(0, "delivedd", String(ds_popdata.getColumn(0, "delivedd")).substr(0,6)+"01");
  152. ds_send_search.setColumn(0, "delivetodd", ds_popdata.getColumn(0, "delivedd"));
  153. ds_send_search.setColumn(0, "delivedeptcd", ds_popdata.getColumn(0, "delivedeptcd"));
  154. ds_send_search.setColumn(0, "delivedeptnm", ds_popdata.getColumn(0, "delivedeptnm"));
  155. ds_send_search.setColumn(0, "opener", ds_popdata.getColumn(0, "opener"));
  156. var oParam = {};
  157. oParam.id = "TRRSO21051";
  158. oParam.service = "deliveapp.DeliveMngt";
  159. oParam.method = "reqGetWinCallDeliveWare";
  160. oParam.inds = "req=ds_send_search";
  161. oParam.outds = "ds_main_delivemst_delivemstlist=delivemstlist";
  162. oParam.async = false;
  163. //oParam.callback = "cf_TRRSO21051";
  164. tranf_submit(oParam);
  165. }
  166. function ds_send_search_oncolumnchanged(obj:Dataset, e:DSColChangeEventInfo)
  167. {
  168. if(e.columnid == "delivedeptcd")
  169. {
  170. group4.ipt_delivedeptcd.value = e.newvalue
  171. group4.ipt_delivedeptcd.setFocus();
  172. misfValidationCheck("02", "", "delivedeptcd,delivedeptnm" );
  173. if(utlf_isNull(e.newvalue))
  174. {
  175. group4.ipt_delivedeptnm.value = "";
  176. }
  177. if(ds_main_delivemst_delivemstlist.rowcount > 0)
  178. {
  179. misfGridInit(grd_deptwinlist);
  180. }
  181. }
  182. }
  183. function group4_btn_delivedeptcd_onclick(obj:Button, e:ClickEventInfo)
  184. {
  185. var vOrigDeptcd = group4.ipt_delivedeptcd.value;
  186. var recv_list = "delivedeptcd,delivedeptnm";
  187. misfOpenPopUpList("02", ds_send_search,"", recv_list) ;
  188. }
  189. function group4_btn_search_onclick(obj:Button, e:ClickEventInfo)
  190. {
  191. misfGridInit(grd_delivemst);
  192. var oParam = {};
  193. oParam.id = "TRRSO21051";
  194. oParam.service = "deliveapp.DeliveMngt";
  195. oParam.method = "reqGetWinCallDeliveWare";
  196. oParam.inds = "req=ds_send_search";
  197. oParam.outds = "ds_main_delivemst_delivemstlist=delivemstlist";
  198. oParam.async = false;
  199. //oParam.callback = "cf_TRRSO21051";
  200. tranf_submit(oParam)
  201. }
  202. function btn_cancel_onclick(obj:Button, e:ClickEventInfo)
  203. {
  204. this.close();
  205. }
  206. ]]></Script>
  207. </Form>
  208. </FDL>