SMMNG03502_운송수거관리.xfdl 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SMMNG03502" position="absolute 0 0 1191 718" titletext="운송수거관리" oninit="SMMNG03502_oninit" onload="SMMNG03502_onload">
  5. <Layouts>
  6. <Layout>
  7. <Static id="caption6" text="수거 관리" class="tit_1" position="absolute 0 0 186 25"/>
  8. <Div id="group4" taborder="3" position="absolute 0 25 1185 65" class="div_SA" anchor="left top right">
  9. <Layouts>
  10. <Layout>
  11. <Static id="cap_instcd" text="기관코드 :" class="search_name" position="absolute 10 11 96 28"/>
  12. <Edit id="opt_instcdnm" taborder="1" readonly="true" position="absolute 100 11 235 30" autoselect="true" autoskip="true" class="output"/>
  13. <Static id="cap_csrreqdeptcd" text="업무일자:" class="search_name" position="absolute 254 12 327 29"/>
  14. <Calendar id="ipt_workdd" taborder="2" class="input_default" position="absolute 330 11 415 30" mask="yyyy-mm-dd" autoselect="true" autoskip="true" onchanged="group4_ipt_workdd_onchanged"/>
  15. <Static id="caption1" text="부서구분:" class="search_name" position="absolute 440 12 513 29"/>
  16. <Combo id="cmb_deptcd" taborder="3" innerdataset="@ds_init_grupcdinfo_grupcdlist" codecolumn="cdid" datacolumn="cdnm" position="absolute 521 11 621 30"/>
  17. <Static id="caption2" text="업무구분:" class="search_name" position="absolute 645 12 718 29"/>
  18. <Radio id="rdo_workflag" taborder="4" columncount="-1" rowcount="-1" innerdataset="@ds_init_grupcdinfo1_grupcdlist" codecolumn="cdid" datacolumn="cdnm" position="absolute 722 9 1043 32" style="itempadding:5 5 5 5;"/>
  19. <Shape id="line2" linetype="vertical" class="line_4" position="absolute 1047 6 1053 31" anchor="top right"/>
  20. <Button id="btn_search" taborder="5" text="조회" class="btn1" position="absolute 1062 8 1118 30" anchor="top right" onclick="group4_btn_search_onclick"/>
  21. <Button id="btn_prt" taborder="6" text="출력" class="btn1" position="absolute 1125 8 1181 30" anchor="top right"/>
  22. </Layout>
  23. </Layouts>
  24. </Div>
  25. <Static id="caption12" text="수거 관리" class="tit_2" position="absolute 0 76 138 98"/>
  26. <Shape id="line1" linetype="horizontal" class="line_10" position="absolute 0 91 1185 100" anchor="left top right"/>
  27. <Button id="btn_sav" taborder="4" text="저장" class="btn5" position="absolute 1143 72 1185 91" anchor="top right" onclick="btn_sav_onclick"/>
  28. <Grid id="grd_takelist" taborder="5" binddataset="ds_main_takeinfo_takelist" useinputpanel="false" position="absolute 0 97 1185 712" autoenter="select" autofittype="col" cellsizingtype="col" anchor="all" onexpanddown="grd_takelist_onexpanddown">
  29. <Formats>
  30. <Format id="default">
  31. <Columns>
  32. <Column size="22"/>
  33. <Column size="70"/>
  34. <Column size="100"/>
  35. <Column size="80"/>
  36. <Column size="70"/>
  37. <Column size="150"/>
  38. <Column size="100"/>
  39. <Column size="55"/>
  40. <Column size="100"/>
  41. <Column size="100"/>
  42. <Column size="70"/>
  43. <Column size="120"/>
  44. <Column size="130"/>
  45. <Column size="0"/>
  46. <Column size="0"/>
  47. <Column size="0"/>
  48. </Columns>
  49. <Rows>
  50. <Row size="24" band="head"/>
  51. <Row size="24"/>
  52. </Rows>
  53. <Band id="head">
  54. <Cell/>
  55. <Cell col="1" text="업무구분"/>
  56. <Cell col="2" text="부서명"/>
  57. <Cell col="3" text="물품코드"/>
  58. <Cell col="4" text="상세코드"/>
  59. <Cell col="5" text="린넨품명"/>
  60. <Cell col="6" text="상세규격"/>
  61. <Cell col="7" text="단위"/>
  62. <Cell col="8" text="수거량"/>
  63. <Cell col="9" text="무게"/>
  64. <Cell col="10" text="수거자"/>
  65. <Cell col="11" text="수거일시"/>
  66. <Cell col="12" text="비고"/>
  67. <Cell col="13"/>
  68. <Cell col="14"/>
  69. <Cell col="15"/>
  70. </Band>
  71. <Band id="body">
  72. <Cell celltype="head"/>
  73. <Cell col="1" displaytype="combo" style="padding:0 0 0 2;" text="bind:workflag" combodataset="ds_init_grupcdinfo1_grupcdlist" combocodecol="cdid" combodatacol="cdnm" enable="false"/>
  74. <Cell col="2" displaytype="combo" edittype="combo" style="padding:0 0 0 2;" text="bind:deptcd" combodataset="ds_init_grupcdinfo_grupcdlist" combocodecol="cdid" combodatacol="cdnm"/>
  75. <Cell col="3" displaytype="text" edittype="text" text="bind:goodcd" expandshow="show" enable="false"/>
  76. <Cell col="4" text="bind:goodcdseq"/>
  77. <Cell col="5" text="bind:lngoodnm"/>
  78. <Cell col="6" text="bind:goodmodel"/>
  79. <Cell col="7" text="bind:goodunit"/>
  80. <Cell col="8" displaytype="number" edittype="text" text="bind:takecnt"/>
  81. <Cell col="9" displaytype="text" edittype="text" text="bind:weight"/>
  82. <Cell col="10" text="bind:takenm"/>
  83. <Cell col="11" text="bind:takedt" mask="####-##-## ##:##" maskchar=" "/>
  84. <Cell col="12" displaytype="text" edittype="text" text="bind:remark"/>
  85. <Cell col="13" text="bind:takeid"/>
  86. <Cell col="14" text="bind:workdd"/>
  87. <Cell col="15" text="bind:workno"/>
  88. </Band>
  89. </Format>
  90. <Format id="format_copy"/>
  91. </Formats>
  92. </Grid>
  93. <Button id="btn_add" taborder="6" text="추가" class="btn2" position="absolute 1053 72 1095 91" anchor="top right" onclick="btn_add_onclick"/>
  94. <Button id="btn_del" taborder="7" text="삭제" class="btn2" position="absolute 1098 72 1140 91" anchor="top right" onclick="btn_del_onclick"/>
  95. <Div id="grp_lncd" taborder="8" visible="false" position="absolute 215 207 683 342" style="background:#339966ff;border:1 solid #000000ff ;">
  96. <Layouts>
  97. <Layout>
  98. <Grid id="grd_lncdlist" taborder="1" binddataset="ds_init_lncdinfo_lncdlist" useinputpanel="false" position="absolute 2 31 465 104" anchor="default" autoenter="select" autofittype="col" cellsizingtype="col">
  99. <Formats>
  100. <Format id="default">
  101. <Columns>
  102. <Column size="80"/>
  103. <Column size="60"/>
  104. <Column size="150"/>
  105. <Column size="86"/>
  106. <Column size="83"/>
  107. </Columns>
  108. <Rows>
  109. <Row size="24" band="head"/>
  110. <Row size="24"/>
  111. </Rows>
  112. <Band id="head">
  113. <Cell text="물품코드"/>
  114. <Cell col="1" text="상세코드"/>
  115. <Cell col="2" text="린넨품명"/>
  116. <Cell col="3" text="상세규격"/>
  117. <Cell col="4" text="단위"/>
  118. </Band>
  119. <Band id="body">
  120. <Cell text="bind:goodcd"/>
  121. <Cell col="1" text="bind:goodcdseq"/>
  122. <Cell col="2" text="bind:lngoodnm"/>
  123. <Cell col="3" text="bind:goodmodel"/>
  124. <Cell col="4" text="bind:goodunit"/>
  125. </Band>
  126. </Format>
  127. </Formats>
  128. </Grid>
  129. <Button id="button1" taborder="2" text="닫기" class="btn2" position="absolute 419 109 461 128" anchor="default"/>
  130. <Static id="caption3" text="물품목록" class="search_name" position="absolute 10 10 96 27" anchor="default"/>
  131. </Layout>
  132. </Layouts>
  133. </Div>
  134. </Layout>
  135. </Layouts>
  136. <Objects>
  137. <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  138. <ColumnInfo>
  139. <Column id="instcdnm" type="STRING" size="256"/>
  140. <Column id="workdd" type="STRING" size="256"/>
  141. <Column id="deptcd" type="STRING" size="256"/>
  142. <Column id="workflag" type="STRING" size="256"/>
  143. <Column id="cdgrupid1" type="STRING" size="256"/>
  144. <Column id="cdgrupid" type="STRING" size="256"/>
  145. </ColumnInfo>
  146. <Rows>
  147. <Row>
  148. <Col id="instcdnm"/>
  149. <Col id="workdd"/>
  150. <Col id="deptcd"/>
  151. <Col id="workflag"/>
  152. <Col id="cdgrupid1">T66</Col>
  153. <Col id="cdgrupid">T82</Col>
  154. </Row>
  155. </Rows>
  156. </Dataset>
  157. <Dataset id="ds_init_grupcdinfo1_grupcdlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  158. <ColumnInfo>
  159. <Column id="cdnm" type="STRING" size="256"/>
  160. <Column id="cdid" type="STRING" size="256"/>
  161. </ColumnInfo>
  162. </Dataset>
  163. <Dataset id="ds_init_grupcdinfo_grupcdlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  164. <ColumnInfo>
  165. <Column id="cdid" type="STRING" size="256"/>
  166. <Column id="cdnm" type="STRING" size="256"/>
  167. </ColumnInfo>
  168. </Dataset>
  169. <Dataset id="ds_main_takeinfo_takelist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  170. <ColumnInfo>
  171. <Column id="workflag" type="STRING" size="256" sumtext="업무구분"/>
  172. <Column id="workno" type="STRING" size="256" sumtext="일련번호"/>
  173. <Column id="deptcd" type="STRING" size="256" sumtext="부서코드"/>
  174. <Column id="goodcd" type="STRING" size="256" sumtext="물품코드"/>
  175. <Column id="goodcdseq" type="STRING" size="256" sumtext="상세코드"/>
  176. <Column id="lngoodnm" type="STRING" size="256" sumtext="린넨품명"/>
  177. <Column id="goodmodel" type="STRING" size="256" sumtext="상세코드"/>
  178. <Column id="goodunit" type="STRING" size="256" sumtext="단위"/>
  179. <Column id="takecnt" type="STRING" size="256" sumtext="수거량"/>
  180. <Column id="weight" type="STRING" size="256" sumtext="무게"/>
  181. <Column id="takenm" type="STRING" size="256" sumtext="수거자명"/>
  182. <Column id="takeid" type="STRING" size="256" sumtext="수거자id"/>
  183. <Column id="takedt" type="STRING" size="256" sumtext="상세코드"/>
  184. <Column id="remark" type="STRING" size="256" sumtext="비고"/>
  185. <Column id="workdd" type="STRING" size="256" sumtext="업무일자"/>
  186. </ColumnInfo>
  187. </Dataset>
  188. <Dataset id="ds_init_lncdinfo_lncdlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  189. <ColumnInfo>
  190. <Column id="goodcd" type="STRING" size="256" sumtext="물품코드"/>
  191. <Column id="goodcdseq" type="STRING" size="256" sumtext="상세코드"/>
  192. <Column id="lngoodnm" type="STRING" size="256" sumtext="린넨품명"/>
  193. <Column id="goodmodel" type="STRING" size="256" sumtext="상세코드"/>
  194. <Column id="goodunit" type="STRING" size="256" sumtext="단위"/>
  195. </ColumnInfo>
  196. </Dataset>
  197. </Objects>
  198. <Bind>
  199. <BindItem id="item0" compid="group4.opt_instcdnm" propid="value" datasetid="ds_send" columnid="instcdnm"/>
  200. <BindItem id="item1" compid="group4.ipt_workdd" propid="value" datasetid="ds_send" columnid="workdd"/>
  201. <BindItem id="item2" compid="group4.cmb_deptcd" propid="value" datasetid="ds_send" columnid="deptcd"/>
  202. <BindItem id="item3" compid="group4.rdo_workflag" propid="value" datasetid="ds_send" columnid="workflag"/>
  203. </Bind>
  204. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  205. * System Name :
  206. * Job Name :
  207. * Creator :
  208. * Make Date : 2017-07-11
  209. * Description :
  210. *---------------------------------------------------------------------------------------
  211. * Modify Date Modifier Modify Description
  212. *---------------------------------------------------------------------------------------
  213. * 2017-07-11 Live Converter TF->XP
  214. *
  215. *---------------------------------------------------------------------------------------
  216. ****************************************************************************************/
  217. include "com_commonxp::comm_main.xjs";
  218. function SMMNG03502_oninit(obj:Form, e:InitEventInfo)
  219. {
  220. frmf_initForm(obj);
  221. }
  222. function SMMNG03502_onload(obj:Form, e:LoadEventInfo)
  223. {
  224. grdf_initGrid(grd_takelist);
  225. grdf_setRowTypeIcon(grd_takelist, 0);
  226. grdf_initGrid(grp_lncd.grd_lncdlist);
  227. fInitialize();
  228. }
  229. function fInitialize()
  230. {
  231. group4.opt_instcdnm.value = sysf_getUserInfo("dutplceinstnm");
  232. ds_send.setColumn(0, "workdd", utlf_getCurrentDate());
  233. var oParam = {};
  234. oParam.id = "TRMNG02305";
  235. oParam.service = "csrapp.CsrDryMngt";
  236. oParam.method = "reqGetGrupcdList";
  237. oParam.inds = "req=ds_send";
  238. oParam.outds = "ds_init_grupcdinfo_grupcdlist=grupcdlist";
  239. oParam.async = false;
  240. //oParam.callback = "cf_TRMNG02305";
  241. tranf_submit(oParam);
  242. dsf_createDsRow("ds_req", [{col:"cdgrupid", type:"STRING", size:256 , val : ds_send.getColumn(0, "cdgrupid1")}]);
  243. var oParam = {};
  244. oParam.id = "TRMNG02305";
  245. oParam.service = "csrapp.CsrDryMngt";
  246. oParam.method = "reqGetGrupcdList";
  247. oParam.inds = "req=ds_req";
  248. oParam.outds = "ds_init_grupcdinfo1_grupcdlist=grupcdlist";
  249. oParam.async = false;
  250. //oParam.callback = "cf_TRMNG02305";
  251. tranf_submit(oParam);
  252. group4.rdo_workflag.value = "L";
  253. group4.rdo_workflag.enable = false;
  254. grd_takelist.setCellProperty("Body", grd_takelist.getBindCellIndex("Body", "goodcd"), "edittype", "none");
  255. frmf_addComboItem("group4.cmb_deptcd","--전체--","","above");
  256. var oParam = {};
  257. oParam.id = "TRMNG03504";
  258. oParam.service = "csrapp.CsrDryMngt";
  259. oParam.method = "reqGetTakeLncdList";
  260. oParam.inds = "req=ds_send";
  261. oParam.outds = "ds_init_lncdinfo_lncdlist=lncdlist";
  262. oParam.async = false;
  263. //oParam.callback = "cf_TRMNG03504";
  264. tranf_submit(oParam);
  265. }
  266. function group4_ipt_workdd_onchanged(obj:Calendar, e:ChangeEventInfo)
  267. {
  268. fSearch();
  269. }
  270. function group4_btn_search_onclick(obj:Button, e:ClickEventInfo)
  271. {
  272. fSearch();
  273. }
  274. function fSearch()
  275. {
  276. var oParam = {};
  277. oParam.id = "TRMNG03503";
  278. oParam.service = "csrapp.CsrDryMngt";
  279. oParam.method = "reqGetTakeList";
  280. oParam.inds = "req=ds_send";
  281. oParam.outds = "ds_main_takeinfo_takelist=takelist";
  282. oParam.async = false;
  283. //oParam.callback = "cf_TRMNG03503";
  284. tranf_submit(oParam);
  285. }
  286. function btn_add_onclick(obj:Button, e:ClickEventInfo)
  287. {
  288. var addRow = ds_main_takeinfo_takelist.addRow();
  289. ds_main_takeinfo_takelist.setColumn(addRow, "workflag", group4.rdo_workflag.value);
  290. }
  291. function btn_del_onclick(obj:Button, e:ClickEventInfo)
  292. {
  293. if ( ds_main_takeinfo_takelist.getRowType(ds_main_takeinfo_takelist.rowposition) == 2)
  294. {
  295. ds_main_takeinfo_takelist.deleteRow(ds_main_takeinfo_takelist.rowposition);
  296. }
  297. else
  298. {
  299. ds_main_takeinfo_takelist.updatecontrol = false;
  300. ds_main_takeinfo_takelist.setRowType(ds_main_takeinfo_takelist.rowposition, "d");
  301. ds_main_takeinfo_takelist.updatecontrol = true;
  302. }
  303. }
  304. function btn_sav_onclick(obj:Button, e:ClickEventInfo)
  305. {
  306. var oParam = {};
  307. oParam.id = "TXMNG03502";
  308. oParam.service = "csrapp.CsrDryMngt";
  309. oParam.method = "reqExeTakeList";
  310. oParam.inds = "req=ds_main_takeinfo_takelist:u";
  311. oParam.outds = "";
  312. oParam.async = false;
  313. //oParam.callback = "cf_TXMNG03502";
  314. tranf_submit(oParam);
  315. }
  316. function grd_takelist_onexpanddown(obj:Grid, e:GridMouseEventInfo)
  317. {
  318. grp_lncd.visible = true;
  319. }
  320. ]]></Script>
  321. </Form>
  322. </FDL>