SMRSO22900_물품이동내역승인.xfdl 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SMRSO22900" position="absolute 0 0 1200 762" titletext="물품이동내역승인(물품받는부서)" oninit="SMRSO22900_oninit" onload="SMRSO22900_onload">
  5. <Layouts>
  6. <Layout>
  7. <Static id="caption6" text="물품이동내역승인(물품받는부서)" class="tit_1" position="absolute 0 0 243 25"/>
  8. <Shape id="line17" class="line_6" position="absolute 0 36 1195 42" anchor="left top right"/>
  9. <Button id="btn_help" taborder="1" text="도움말" class="btn4" position="absolute 1070 15 1138 37" anchor="top right" onclick="btn_help_onclick"/>
  10. <Button id="btn_save" taborder="2" text="저장" class="btn4" position="absolute 1138 15 1194 37" anchor="top right" onclick="btn_save_onclick"/>
  11. <Div id="grp_search" taborder="3" class="div_SA2" position="absolute 0 40 1195 80" anchor="left top right">
  12. <Layouts>
  13. <Layout>
  14. <Button id="btn_search" taborder="6" text="조회" class="btn1" position="absolute 1128 7 1184 29" anchor="top right" onclick="grp_search_btn_search_onclick"/>
  15. <Shape id="line30" linetype="vertical" class="line_4" position="absolute 1112 5 1118 30" anchor="top right"/>
  16. <Button id="btn_delivedeptcd" taborder="7" class="icon_search" position="absolute 397 10 413 26" onclick="grp_search_btn_delivedeptcd_onclick"/>
  17. <Combo id="cmb_instcd" taborder="8" innerdataset="@ds_main_init" codecolumn="cnstcd" datacolumn="cnstnm" class="combo_default" enable="false" position="absolute 67 9 203 28"/>
  18. <Calendar id="ipt_movetodd" taborder="9" autoselect="true" autoskip="true" position="absolute 810 9 911 28" mask="yyyy-mm-dd"/>
  19. <Static id="caption20" text="부서:" class="search_name" position="absolute 235 10 316 27"/>
  20. <Static id="caption4" text="~" position="absolute 798 9 810 29"/>
  21. <Edit id="ipt_fromdeptcd" taborder="10" autoselect="true" autoskip="true" class="input_default" position="absolute 290 9 395 28" onkeydown="grp_search_ipt_fromdeptcd_onkeydown"/>
  22. <Calendar id="ipt_movefromdd" taborder="11" autoselect="true" autoskip="true" position="absolute 695 9 796 28" mask="yyyy-mm-dd"/>
  23. <Static id="cap_instcd" text="기관:" class="search_name" position="absolute 13 10 99 27"/>
  24. <Edit id="opt_fromdeptcd" taborder="12" readonly="true" class="output" position="absolute 415 9 571 28"/>
  25. <Static id="caption9" text="이동일자:" class="search_name" position="absolute 614 10 700 27"/>
  26. </Layout>
  27. </Layouts>
  28. </Div>
  29. <Static id="caption2" text="이동요청내역승인(물품받는부서)" class="tit_2" position="absolute 0 87 215 108"/>
  30. <Grid id="grd_moveconflist" class="datagrid2" taborder="4" binddataset="ds_main_moveconf_moveconflist" autoenter="select" useinputpanel="false" cellsizingtype="col" autofittype="col" position="absolute 0 108 1195 758" anchor="all">
  31. <Formats>
  32. <Format id="default">
  33. <Columns>
  34. <Column size="23"/>
  35. <Column size="103"/>
  36. <Column size="125"/>
  37. <Column size="234"/>
  38. <Column size="233"/>
  39. <Column size="60"/>
  40. <Column size="170"/>
  41. <Column size="170"/>
  42. <Column size="60"/>
  43. <Column size="0"/>
  44. <Column size="0"/>
  45. <Column size="0"/>
  46. <Column size="0"/>
  47. </Columns>
  48. <Rows>
  49. <Row size="24" band="head"/>
  50. <Row size="24"/>
  51. </Rows>
  52. <Band id="head">
  53. <Cell/>
  54. <Cell col="1" text="이동일자"/>
  55. <Cell col="2" text="물품코드"/>
  56. <Cell col="3" text="물품명"/>
  57. <Cell col="4" text="규격"/>
  58. <Cell col="5" text="수량"/>
  59. <Cell col="6" text="물품보내는부서"/>
  60. <Cell col="7" text="물품받는부서"/>
  61. <Cell col="8" text="이동승인"/>
  62. <Cell col="9" text="caption1"/>
  63. <Cell col="10" text="caption2"/>
  64. <Cell col="11"/>
  65. <Cell col="12"/>
  66. </Band>
  67. <Band id="body">
  68. <Cell celltype="head"/>
  69. <Cell col="1" displaytype="date" edittype="none" text="bind:movedd" calendardisplaynulltype="nulltext"/>
  70. <Cell col="2" edittype="none" style="align:left middle;" text="bind:goodcd" enable="false"/>
  71. <Cell col="3" style="align:left middle;" text="bind:goodhngnm"/>
  72. <Cell col="4" text="bind:goodspec"/>
  73. <Cell col="5" displaytype="text" edittype="text" style="align:center middle;" text="bind:moveqty"/>
  74. <Cell col="6" edittype="none" style="align:left middle;" text="bind:fromdeptnm"/>
  75. <Cell col="7" edittype="none" style="align:left middle;" text="bind:todeptnm"/>
  76. <Cell col="8" displaytype="combo" edittype="expr:movegubun == '2' ? 'none' : 'combo'" style="align:center middle;" text="bind:movegubun" combodataset="ds_cmb_movegubun" combocodecol="value" combodatacol="label"/>
  77. <Cell col="9" text="bind:instcd"/>
  78. <Cell col="10" text="bind:moveno"/>
  79. <Cell col="11" text="bind:fromdeptcd"/>
  80. <Cell col="12" text="bind:todeptcd"/>
  81. </Band>
  82. </Format>
  83. </Formats>
  84. </Grid>
  85. <Shape id="line3" class="line_10" position="absolute 0 103 1195 109" anchor="left top right"/>
  86. <Button id="btn_add" taborder="5" text="전체승인" class="btn2" position="absolute 1130 84 1194 103" anchor="top right" onclick="btn_add_onclick"/>
  87. </Layout>
  88. </Layouts>
  89. <Objects>
  90. <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">
  91. <ColumnInfo>
  92. <Column id="instcd" type="STRING" size="256"/>
  93. <Column id="fromdeptcd" type="STRING" size="256"/>
  94. <Column id="fromdeptnm" type="STRING" size="256"/>
  95. <Column id="movefromdd" type="STRING" size="256"/>
  96. <Column id="movetodd" type="STRING" size="256"/>
  97. <Column id="movegubun" type="STRING" size="256"/>
  98. </ColumnInfo>
  99. <Rows>
  100. <Row>
  101. <Col id="instcd"/>
  102. <Col id="fromdeptcd"/>
  103. <Col id="fromdeptnm"/>
  104. <Col id="movefromdd"/>
  105. <Col id="movetodd"/>
  106. <Col id="movegubun">2</Col>
  107. </Row>
  108. </Rows>
  109. </Dataset>
  110. <Dataset id="ds_main_moveconf_moveconflist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  111. <ColumnInfo>
  112. <Column id="instcd" type="STRING" size="256" sumtext="기관"/>
  113. <Column id="goodcd" type="STRING" size="256" sumtext="물품코드"/>
  114. <Column id="fromdeptcd" type="STRING" size="256" sumtext="From부서"/>
  115. <Column id="fromdeptnm" type="STRING" size="256" sumtext="From부서"/>
  116. <Column id="goodhngnm" type="STRING" size="256" sumtext="물품명"/>
  117. <Column id="goodspec" type="STRING" size="256" sumtext="규격"/>
  118. <Column id="movedd" type="STRING" size="256" sumtext="이동일자"/>
  119. <Column id="moveno" type="STRING" size="256" sumtext="이동번호"/>
  120. <Column id="movegubun" type="STRING" size="256" sumtext="이동구분"/>
  121. <Column id="todeptcd" type="STRING" size="256" sumtext="To부서"/>
  122. <Column id="todeptnm" type="STRING" size="256" sumtext="To부서"/>
  123. <Column id="moveqty" type="STRING" size="256" sumtext="이동수량"/>
  124. </ColumnInfo>
  125. </Dataset>
  126. <Dataset id="ds_cmb_movegubun" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  127. <ColumnInfo>
  128. <Column id="label" type="STRING" size="256"/>
  129. <Column id="value" type="STRING" size="256"/>
  130. </ColumnInfo>
  131. <Rows>
  132. <Row>
  133. <Col id="label">Y</Col>
  134. <Col id="value">2</Col>
  135. </Row>
  136. <Row>
  137. <Col id="label">N</Col>
  138. <Col id="value">1</Col>
  139. </Row>
  140. </Rows>
  141. </Dataset>
  142. <Dataset id="ds_main_init" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  143. <ColumnInfo>
  144. <Column id="cnstnm" type="STRING" size="256"/>
  145. <Column id="cnstcd" type="STRING" size="256"/>
  146. </ColumnInfo>
  147. </Dataset>
  148. </Objects>
  149. <Bind>
  150. <BindItem id="item0" compid="grp_search.cmb_instcd" propid="value" datasetid="ds_send_search" columnid="instcd"/>
  151. <BindItem id="item1" compid="grp_search.ipt_fromdeptcd" propid="value" datasetid="ds_send_search" columnid="fromdeptcd"/>
  152. <BindItem id="item2" compid="grp_search.opt_fromdeptcd" propid="value" datasetid="ds_send_search" columnid="fromdeptnm"/>
  153. <BindItem id="item3" compid="grp_search.ipt_movefromdd" propid="value" datasetid="ds_send_search" columnid="movefromdd"/>
  154. <BindItem id="item4" compid="grp_search.ipt_movetodd" propid="value" datasetid="ds_send_search" columnid="movetodd"/>
  155. </Bind>
  156. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  157. * System Name :
  158. * Job Name :
  159. * Creator :
  160. * Make Date : 2017-06-19
  161. * Description :
  162. *---------------------------------------------------------------------------------------
  163. * Modify Date Modifier Modify Description
  164. *---------------------------------------------------------------------------------------
  165. * 2017-06-19 Live Converter TF->XP
  166. *
  167. *---------------------------------------------------------------------------------------
  168. ****************************************************************************************/
  169. include "com_commonxp::comm_main.xjs";
  170. include "mis_miscommonxp::MIS.xjs";
  171. function SMRSO22900_oninit(obj:Form, e:InitEventInfo)
  172. {
  173. frmf_initForm(obj);
  174. }
  175. function SMRSO22900_onload(obj:Form, e:LoadEventInfo)
  176. {
  177. grdf_initGrid(grd_moveconflist);
  178. grdf_setRowTypeIcon(grd_moveconflist);
  179. misfComboInstCdListMulti("grp_search.cmb_instcd",utlf_getCurrentDate(),"","N");
  180. ds_send_search.setColumn(0, "instcd", sysf_getUserInfo("dutplceinstcd"));
  181. ds_send_search.setColumn(0, "movefromdd", utlf_getCurrentDate());
  182. ds_send_search.setColumn(0, "movetodd", utlf_getCurrentDate());
  183. var instcd = ds_send_search.getColumn(0, "instcd");
  184. if(instcd == "031")
  185. {
  186. ds_send_search.setColumn(0, "fromdeptcd", sysf_getUserInfo("dutunitcd"));
  187. ds_send_search.setColumn(0, "fromdeptnm", sysf_getUserInfo("dutunitnm"));
  188. }
  189. else
  190. {
  191. ds_send_search.setColumn(0, "fromdeptcd", sysf_getUserInfo("dutplcecd"));
  192. ds_send_search.setColumn(0, "fromdeptnm", sysf_getUserInfo("dutplcenm"));
  193. }
  194. }
  195. function ds_send_search_oncolumnchanged(obj:Dataset, e:DSColChangeEventInfo)
  196. {
  197. if(e.columnid == "fromdeptcd")
  198. {
  199. grp_search.ipt_fromdeptcd.value = e.newvalue;
  200. grp_search.ipt_fromdeptcd.setFocus();
  201. misfValidationCheck("02", "", "fromdeptcd,fromdeptnm" );
  202. }
  203. }
  204. function grp_search_ipt_fromdeptcd_onkeydown(obj:Edit, e:KeyEventInfo)
  205. {
  206. if(e.keycode == 13)
  207. {
  208. obj.updateToDataset();
  209. }
  210. }
  211. function grp_search_btn_delivedeptcd_onclick(obj:Button, e:ClickEventInfo)
  212. {
  213. misfOpenPopUpList("02", ds_send_search,"", "fromdeptcd,fromdeptnm");
  214. }
  215. function grp_search_btn_search_onclick(obj:Button, e:ClickEventInfo)
  216. {
  217. if(utlf_isNull(grp_search.opt_fromdeptcd.value))
  218. {
  219. sysf_messageBox("부서가 선택되지 않았습니다. \n\n먼저 부서를 선택하십시요.", "E999", "");
  220. grp_search.ipt_fromdeptcd.setFocus();
  221. return;
  222. }
  223. if(String(grp_search.ipt_movefromdd.value).length < 8)
  224. {
  225. sysf_messageBox("이동일자가 선택되지 않았거나 잘못되었습니다. \n\n먼저 이동일자를 선택하십시요.", "E999", "");
  226. grp_search.ipt_movefromdd.setFocus();
  227. return;
  228. }
  229. if(String(grp_search.ipt_movetodd.value).length < 8)
  230. {
  231. sysf_messageBox("이동일자가 선택되지 않았거나 잘못되었습니다. \n\n먼저 이동일자를 선택하십시요.", "E999", "");
  232. grp_search.ipt_movetodd.setFocus();
  233. return;
  234. }
  235. misfGridInit(grd_moveconflist);
  236. var oParam = {};
  237. oParam.id = "TRRSO22901";
  238. oParam.service = "deliveapp.DeliveMngt";
  239. oParam.method = "reqGetMoveConfList";
  240. oParam.inds = "req=ds_send_search";
  241. oParam.outds = "ds_main_moveconf_moveconflist=moveconflist";
  242. oParam.async = false;
  243. //oParam.callback = "cf_TRRSO22901";
  244. tranf_submit(oParam);
  245. }
  246. function btn_add_onclick(obj:Button, e:ClickEventInfo)
  247. {
  248. for(var i = 0 ; i < ds_main_moveconf_moveconflist.rowcount ; i++)
  249. {
  250. var movegubun = ds_main_moveconf_moveconflist.getColumn(i, "movegubun");
  251. if(movegubun != "2")
  252. {
  253. ds_main_moveconf_moveconflist.setColumn(i, "movegubun", "2");
  254. }
  255. }
  256. }
  257. function btn_help_onclick(obj:Button, e:ClickEventInfo)
  258. {
  259. frmf_modal("SMRSO22901", "SMRSO22901", "", "", "", "", "", "", "", "", "", "", "M");
  260. }
  261. function btn_save_onclick(obj:Button, e:ClickEventInfo)
  262. {
  263. var oParam = {};
  264. oParam.id = "TXRSO22901";
  265. oParam.service = "deliveapp.DeliveMngt";
  266. oParam.method = "reqExeMoveConfList";
  267. oParam.inds = "moveconflist=ds_main_moveconf_moveconflist:u";
  268. oParam.outds = "";
  269. oParam.async = false;
  270. //oParam.callback = "cf_TXRSO22901";
  271. tranf_submit(oParam);
  272. }
  273. ]]></Script>
  274. </Form>
  275. </FDL>