SMMNG03500_세탁물린넨운용현황.xfdl 15 KB

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