SMMNG03400_세탁물폐품관리.xfdl 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SMMNG03400" position="absolute 0 0 1193 720" titletext="세탁물 폐품 관리" oninit="SMMNG03400_oninit" onload="SMMNG03400_onload">
  5. <Layouts>
  6. <Layout>
  7. <Div position="absolute 0 65 1185 710" id="grp_biz" scrollbars="autoboth">
  8. <Layouts>
  9. <Layout>
  10. <Static text="세탁물 폐품 관리" position="absolute 1 8 122 25" id="caption12" class="tit_2" anchor="default"/>
  11. <Shape position="absolute 0 26 1185 31" linetype="horizontal" id="line1" class="line_10" anchor="default"/>
  12. <Button position="absolute 1137 3 1179 22" id="btn_sav" class="btn5" text="저장" anchor="default" onclick="grp_biz_btn_sav_onclick"/>
  13. <Grid position="absolute 0 30 1185 645" id="grd_whiolist" visible="true" binddataset="ds_main_whioinfo_whiolist" anchor="default" autoenter="select" autofittype="col" onkeydown="grp_biz_grd_whiolist_onkeydown" cellsizebandtype="allband" cellsizingtype="col">
  14. <Formats>
  15. <Format id="default">
  16. <Columns>
  17. <Column size="24"/>
  18. <Column size="136"/>
  19. <Column size="197"/>
  20. <Column size="182"/>
  21. <Column size="101"/>
  22. <Column size="100"/>
  23. <Column size="110"/>
  24. <Column size="308"/>
  25. <Column size="0"/>
  26. <Column size="0"/>
  27. <Column size="0"/>
  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" text="물품코드"/>
  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="seq"/>
  43. <Cell col="9" text="flag"/>
  44. <Cell col="10" text="일자"/>
  45. </Band>
  46. <Band id="body">
  47. <Cell celltype="head"/>
  48. <Cell col="1" style="align:left middle;" text="bind:goodcd"/>
  49. <Cell col="2" style="align:left middle;" text="bind:goodnm"/>
  50. <Cell col="3" style="align:left middle;" text="bind:goodspec"/>
  51. <Cell col="4" displaytype="number" edittype="text" text="bind:outcnt"/>
  52. <Cell col="5" displaytype="number" edittype="text" text="bind:delcnt"/>
  53. <Cell col="6" text="bind:fstrgstrid"/>
  54. <Cell col="7" displaytype="text" edittype="text" style="align:left middle;" text="bind:remark1"/>
  55. <Cell col="8" text="bind:ioseq"/>
  56. <Cell col="9" text="bind:ioflag"/>
  57. <Cell col="10" text="bind:iodd"/>
  58. </Band>
  59. </Format>
  60. </Formats>
  61. </Grid>
  62. <Radio position="absolute 220 5 610 20" id="rdo_gubuncd" enable="false" visible="false" columncount="-1" codecolumn="codecolumn" datacolumn="datacolumn" rowcount="-1" anchor="default">
  63. <Dataset id="innerdataset">
  64. <ColumnInfo>
  65. <Column id="codecolumn"/>
  66. <Column id="datacolumn"/>
  67. </ColumnInfo>
  68. <Rows>
  69. <Row>
  70. <Col id="codecolumn">01</Col>
  71. <Col id="datacolumn">물품마스터</Col>
  72. </Row>
  73. <Row>
  74. <Col id="codecolumn">02</Col>
  75. <Col id="datacolumn">창고마스터</Col>
  76. </Row>
  77. </Rows>
  78. </Dataset>
  79. </Radio>
  80. </Layout>
  81. </Layouts>
  82. </Div>
  83. <Shape position="absolute 0 25 1185 60" id="roundrect1" class="roundrect_search" type="roundrectangle"/>
  84. <Button position="absolute 1007 32 1063 54" id="btn_search" class="btn1" taborder="2" text="조회" onclick="btn_search_onclick"/>
  85. <Shape position="absolute 997 30 1003 55" linetype="vertical" id="line2" class="line_4"/>
  86. <Static text="일자:" position="absolute 285 35 366 52" id="cap_csrreqdeptcd" class="search_name"/>
  87. <Calendar position="absolute 345 33 430 52" id="ipt_iodd" class="input_default" mask="yyyy-mm-dd" oncloseup="ipt_iodd_oncloseup"/>
  88. <Static text="기관코드 :" position="absolute 10 35 96 52" id="cap_instcd" class="search_name"/>
  89. <Edit readonly="true" position="absolute 100 33 275 52" align="align:center middle;" id="opt_instcdnm" class="output"/>
  90. <Button position="absolute 1125 32 1181 54" id="btn_prt" class="btn6" text="출력" onclick="btn_prt_onclick"/>
  91. <Radio position="absolute 525 33 700 53" id="rdo_selyymmdd" columncount="-1" codecolumn="codecolumn" datacolumn="datacolumn" rowcount="-1" onitemchanged="rdo_selyymmdd_onitemchanged">
  92. <Dataset id="innerdataset">
  93. <ColumnInfo>
  94. <Column id="codecolumn"/>
  95. <Column id="datacolumn"/>
  96. </ColumnInfo>
  97. <Rows>
  98. <Row>
  99. <Col id="codecolumn">DD</Col>
  100. <Col id="datacolumn">일별</Col>
  101. </Row>
  102. <Row>
  103. <Col id="codecolumn">MM</Col>
  104. <Col id="datacolumn">월별</Col>
  105. </Row>
  106. <Row>
  107. <Col id="codecolumn">YY</Col>
  108. <Col id="datacolumn">년별</Col>
  109. </Row>
  110. </Rows>
  111. </Dataset>
  112. </Radio>
  113. <Static text="일자구분:" position="absolute 440 35 525 52" id="caption2" class="search_name"/>
  114. <Button position="absolute 1066 32 1122 54" id="button3" class="btn7" text="엑셀" onclick="button3_onclick"/>
  115. <Static id="caption6" text="세탁물 폐품 관리" class="tit_1" position="absolute 0 0 186 25"/>
  116. </Layout>
  117. </Layouts>
  118. <Objects>
  119. <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  120. <ColumnInfo>
  121. <Column id="instcdnm" type="STRING" size="256"/>
  122. <Column id="iodd" type="STRING" size="256"/>
  123. <Column id="gubuncd" type="STRING" size="256"/>
  124. </ColumnInfo>
  125. <Rows>
  126. <Row>
  127. <Col id="instcdnm"/>
  128. <Col id="iodd"/>
  129. <Col id="gubuncd">01</Col>
  130. </Row>
  131. </Rows>
  132. </Dataset>
  133. <Dataset id="ds_cond" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  134. <ColumnInfo>
  135. <Column id="iodd" type="STRING" size="256"/>
  136. <Column id="selyymmdd" type="STRING" size="256"/>
  137. </ColumnInfo>
  138. <Rows>
  139. <Row>
  140. <Col id="iodd"/>
  141. <Col id="selyymmdd">DD</Col>
  142. </Row>
  143. </Rows>
  144. </Dataset>
  145. <Dataset id="ds_main_whioinfo_whiolist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  146. <Dataset id="ds_send_savedata_whiolist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  147. <Dataset id="ds_main_whiorexinfo_whiorexlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  148. <Dataset id="ds_send_report_csmtrexinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  149. </Objects>
  150. <Bind>
  151. <BindItem id="item0" compid="opt_instcdnm" propid="value" datasetid="ds_send" columnid="instcdnm"/>
  152. <BindItem id="item1" compid="ipt_iodd" propid="value" datasetid="ds_cond" columnid="iodd"/>
  153. <BindItem id="item2" compid="rdo_selyymmdd" propid="value" datasetid="ds_cond" columnid="selyymmdd"/>
  154. <BindItem id="item3" compid="grp_biz.rdo_gubuncd" propid="value" datasetid="ds_send" columnid="gubuncd"/>
  155. </Bind>
  156. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  157. * System Name :
  158. * Job Name :
  159. * Creator :
  160. * Make Date : 2017-07-11
  161. * Description :
  162. *---------------------------------------------------------------------------------------
  163. * Modify Date Modifier Modify Description
  164. *---------------------------------------------------------------------------------------
  165. * 2017-07-11 Live Converter TF->XP
  166. *
  167. *---------------------------------------------------------------------------------------
  168. ****************************************************************************************/
  169. include "com_commonxp::comm_main.xjs";
  170. var arErrorCode = new HashArray();
  171. function SMMNG03400_oninit(obj:Form, e:InitEventInfo)
  172. {
  173. frmf_initForm(obj); //폼 초기화
  174. grdf_setRowTypeIcon(grp_biz.grd_whiolist, 0);
  175. }
  176. function SMMNG03400_onload(obj:Form, e:LoadEventInfo)
  177. {
  178. fInitialize();
  179. }
  180. // 화면 open시와 초기화 버튼 클릭시 화면 초기화 기능을 수행한다.
  181. function fInitialize()
  182. {
  183. opt_instcdnm.value = sysf_getUserInfo("dutplceinstnm");////기관코드
  184. ipt_iodd.value = utlf_getCurrentDate();//년월
  185. fSearch();
  186. }
  187. function fSearch() {
  188. ds_send.setColumn(0, "gubuncd", grp_biz.rdo_gubuncd.value); //마스터코드구분 01:물품마스터02:창고마스터
  189. var reqdd = ipt_iodd.value;
  190. grp_biz.btn_sav.enable = true;
  191. if (rdo_selyymmdd.value == 'MM' ) {
  192. reqdd = utlf_transNullToEmpty(String(reqdd)).substr(0, 6);
  193. grp_biz.btn_sav.enable = false;
  194. } else if (rdo_selyymmdd.value == 'YY' ){
  195. reqdd = utlf_transNullToEmpty(String(reqdd)).substr(0, 4);
  196. grp_biz.btn_sav.enable = false;
  197. }
  198. ds_send.setColumn(0, "iodd", reqdd);
  199. var oParam = {};
  200. oParam.id = "TRMNG03401";
  201. oParam.service = "csrapp.CsrDryMngt";
  202. oParam.method = "reqGetDsioList";
  203. oParam.inds = "req=ds_send";
  204. oParam.outds = "ds_main_whioinfo_whiolist=whiolist";
  205. oParam.async = false;
  206. tranf_submit(oParam);
  207. var ioflag;
  208. for(var i = 0; i < ds_main_whioinfo_whiolist.rowcount; i++) {
  209. ioflag = ds_main_whioinfo_whiolist.getColumn(i, "ioflag");
  210. if(ioflag == "N") {
  211. ds_main_whioinfo_whiolist.enableevent = false;
  212. ds_main_whioinfo_whiolist.updatecontrol = false;
  213. ds_main_whioinfo_whiolist.setRowType(i, 2);
  214. ds_main_whioinfo_whiolist.updatecontrol = true;
  215. ds_main_whioinfo_whiolist.enableevent = true;
  216. }
  217. }
  218. }
  219. function ipt_iodd_oncloseup(obj:Calendar, e:CalendarCloseUpEventInfo)
  220. {
  221. fSearch();
  222. }
  223. function rdo_selyymmdd_onitemchanged(obj:Radio, e:ItemChangeEventInfo)
  224. {
  225. fSearch();
  226. }
  227. function btn_search_onclick(obj:Button, e:ClickEventInfo)
  228. {
  229. fSearch();
  230. }
  231. function button3_onclick(obj:Button, e:ClickEventInfo)
  232. {
  233. grdf_exportExcel(grp_biz.grd_whiolist, "세탁물폐품관리" + utlf_getCurrentDate(), "sheetname1" , true, "" , "" , true);
  234. }
  235. function grp_biz_btn_sav_onclick(obj:Button, e:ClickEventInfo)
  236. {
  237. var updateData = grdf_getGridUpdateData(grp_biz.grd_whiolist);
  238. grdf_setStatusColumn(updateData, "status");
  239. ds_send_savedata_whiolist.copyData(updateData);
  240. var oParam = {};
  241. oParam.id = "TXMNG03401";
  242. oParam.service = "csrapp.CsrDryMngt";
  243. oParam.method = "reqExeDsioList";
  244. oParam.inds = "req=ds_send_savedata_whiolist";
  245. oParam.outds = "";
  246. oParam.async = false;
  247. tranf_submit(oParam);
  248. fSearch();
  249. }
  250. function grp_biz_grd_whiolist_onkeydown(obj:Grid, e:KeyEventInfo)
  251. {
  252. var row = ds_main_whioinfo_whiolist.rowposition;
  253. if (e.keycode == 13) { // Enter 쳤을 경우 아래 수량으로
  254. if (grp_biz.grd_whiolist.currentcol == grp_biz.grd_whiolist.getBindCellIndex("body", "cptcnt") ||
  255. grp_biz.grd_whiolist.currentcol == grp_biz.grd_whiolist.getBindCellIndex("body", "stycnt") ||
  256. grp_biz.grd_whiolist.currentcol == grp_biz.grd_whiolist.getBindCellIndex("body", "ingcnt")) { //불출수량이나 미불출수량 엔터시
  257. if (ds_main_whioinfo_whiolist.rowposition + 1 < ds_main_whioinfo_whiolist.rowcount) {
  258. ds_main_whioinfo_whiolist.rowposition = row + 1;
  259. }
  260. }
  261. }
  262. }
  263. function btn_prt_onclick(obj:Button, e:ClickEventInfo)
  264. {
  265. fPrintRex();
  266. }
  267. function fPrintRex() {
  268. var oParam = {};
  269. oParam.id = "TRMNG03402";
  270. oParam.service = "csrapp.CsrDryMngt";
  271. oParam.method = "reqGetDsioRexList";
  272. oParam.inds = "req=ds_send";
  273. oParam.outds = "ds_main_whiorexinfo_whiorexlist=whiorexlist";
  274. oParam.async = false;
  275. tranf_submit(oParam);
  276. dsf_createDs("ds_send_report_csmtrexinfo");
  277. ds_send_report_csmtrexinfo.copyData(ds_main_whiorexinfo_whiorexlist);
  278. //미리보기출력
  279. var objDOM = rptf_createDOM();
  280. rptf_setNodeListToDOM(objDOM, "root/main/whiorexinfo/whiorexlist", ds_send_report_csmtrexinfo); // 데이터셋 1
  281. var objParam = new Object();
  282. objParam.xml_data_XML1 = objDOM.documentElement.source; // 최상의노드 XML 스트링 추출
  283. var option = "open=1;save=1;directprint=0;print=1;zoom=0;";
  284. rptf_exeReportPreview30(["RPMNG03400"],[objParam], option);
  285. }
  286. ]]></Script>
  287. </Form>
  288. </FDL>