SPMNG02801_린넨물품(린넨)조회HELP.xfdl 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SPMNG02801" position="absolute 0 0 790 560" titletext="린넨물품(린넨)조회 HELP" oninit="SPMNG02801_oninit" onload="SPMNG02801_onload">
  5. <Layouts>
  6. <Layout>
  7. <Div position="absolute 0 0 781 520" id="group3" scrollbars="autoboth">
  8. <Layouts>
  9. <Layout>
  10. <Div position="absolute 0 0 780 30" id="group2">
  11. <Layouts>
  12. <Layout>
  13. <Shape position="absolute 0 0 780 29" id="roundrect1" class="roundrect_search" type="roundrectangle"/>
  14. <Button position="absolute 719 4 775 26" id="btn_search" class="btn1" text="조회" onclick="group3_group2_btn_search_onclick"/>
  15. <Shape position="absolute 712 0 718 29" linetype="vertical" id="line13" class="line_4"/>
  16. <Static text="조회조건 :" position="absolute 10 6 96 23" id="caption2" class="search_name"/>
  17. <Radio position="absolute 95 5 230 25" id="radio1" columncount="2" codecolumn="codecolumn" datacolumn="datacolumn">
  18. <Dataset id="innerdataset">
  19. <ColumnInfo>
  20. <Column id="codecolumn"/>
  21. <Column id="datacolumn"/>
  22. </ColumnInfo>
  23. <Rows>
  24. <Row>
  25. <Col id="codecolumn">C</Col>
  26. <Col id="datacolumn">물품코드</Col>
  27. </Row>
  28. <Row>
  29. <Col id="codecolumn">N</Col>
  30. <Col id="datacolumn">물품명</Col>
  31. </Row>
  32. </Rows>
  33. </Dataset>
  34. </Radio>
  35. <Edit position="absolute 235 5 390 24" id="ipt_good" class="input_search"/>
  36. </Layout>
  37. </Layouts>
  38. </Div>
  39. <Static text="세탁물 물품리스트" position="absolute 0 45 131 61" id="caption1" class="tit_2"/>
  40. <Shape position="absolute 0 61 780 67" linetype="horizontal" id="line1" class="line_10"/>
  41. <Grid position="absolute 0 65 780 515" id="grd_rscdlist" binddataset="ds_main_rscdlist" oncelldblclick="group3_grd_rscdlist_oncelldblclick" onheadclick="group3_grd_rscdlist_onheadclick">
  42. <Formats>
  43. <Format id="default">
  44. <Columns>
  45. <Column size="25"/>
  46. <Column size="20"/>
  47. <Column size="100"/>
  48. <Column size="65"/>
  49. <Column size="160"/>
  50. <Column size="0"/>
  51. <Column size="60"/>
  52. <Column size="80"/>
  53. <Column size="80"/>
  54. <Column size="70"/>
  55. <Column size="0"/>
  56. </Columns>
  57. <Rows>
  58. <Row size="24" band="head"/>
  59. <Row size="24"/>
  60. </Rows>
  61. <Band id="head">
  62. <Cell/>
  63. <Cell col="1" displaytype="checkbox" edittype="checkbox"/>
  64. <Cell col="2" text="물품코드"/>
  65. <Cell col="3" text="상세코드"/>
  66. <Cell col="4" text="린넨품명"/>
  67. <Cell col="5" text="물품영문명"/>
  68. <Cell col="6" text="사용여부"/>
  69. <Cell col="7" text="규격"/>
  70. <Cell col="8" text="상세규격"/>
  71. <Cell col="9" text="불출단위"/>
  72. <Cell col="10"/>
  73. </Band>
  74. <Band id="body">
  75. <Cell celltype="head" text="expr:currow + 1"/>
  76. <Cell col="1" displaytype="checkbox" edittype="checkbox" text="bind:chkyn" expr="expr:(chkyn == &quot;Y&quot; || chkyn == 1) ? 1 : 0"/>
  77. <Cell col="2" style="align:left;" text="bind:goodcd"/>
  78. <Cell col="3" style="align:left;" text="bind:goodcdseq"/>
  79. <Cell col="4" style="align:left top;padding:4 2 2 2;" text="bind:lngoodnm" wordwrap="word"/>
  80. <Cell col="5" style="align:left;" text="bind:goodengnm"/>
  81. <Cell col="6" style="align:left;" text="bind:useyn"/>
  82. <Cell col="7" style="align:left top;padding:4 2 2 2;" text="bind:goodspec" wordwrap="word"/>
  83. <Cell col="8" style="align:left top;padding:4 2 2 2;" text="bind:goodmodel" wordwrap="word"/>
  84. <Cell col="9" style="align:left;" text="bind:goodunit"/>
  85. <Cell col="10" text="bind:instcd"/>
  86. </Band>
  87. </Format>
  88. </Formats>
  89. </Grid>
  90. </Layout>
  91. </Layouts>
  92. </Div>
  93. <Div position="absolute 0 521 780 548" id="group1" scrollbars="autoboth">
  94. <Layouts>
  95. <Layout>
  96. <Button position="absolute 661 2 717 24" id="btn_confirm" class="btn4" text="확인" onclick="group1_btn_confirm_onclick"/>
  97. <Button position="absolute 720 2 776 24" id="btn_cancel" class="btn4" text="취소" onclick="group1_btn_cancel_onclick"/>
  98. <Shape position="absolute 0 0 518 6" linetype="vertical" id="line32" class="line_6"/>
  99. </Layout>
  100. </Layouts>
  101. </Div>
  102. </Layout>
  103. </Layouts>
  104. <Objects>
  105. <Dataset id="ds_main_rscdlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false" oncolumnchanged="ds_main_rscdlist_oncolumnchanged">
  106. <ColumnInfo>
  107. <Column id="chkyn" type="STRING" size="256"/>
  108. </ColumnInfo>
  109. <Rows>
  110. <Row/>
  111. </Rows>
  112. </Dataset>
  113. <Dataset id="ds_init" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  114. <Dataset id="ds_send_reqdata" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  115. <ColumnInfo>
  116. <Column id="goodcd" type="STRING" size="256"/>
  117. <Column id="srchflag" type="STRING" size="256"/>
  118. <Column id="flag" type="STRING" size="256"/>
  119. <Column id="deptcd" type="STRING" size="256"/>
  120. </ColumnInfo>
  121. <Rows>
  122. <Row>
  123. <Col id="srchflag">C</Col>
  124. </Row>
  125. </Rows>
  126. </Dataset>
  127. </Objects>
  128. <Bind>
  129. <BindItem id="item0" compid="group3.group2.radio1" propid="value" datasetid="ds_send_reqdata" columnid="srchflag"/>
  130. <BindItem id="item1" compid="group3.group2.ipt_good" propid="value" datasetid="ds_send_reqdata" columnid="goodcd"/>
  131. </Bind>
  132. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  133. * System Name :
  134. * Job Name :
  135. * Creator :
  136. * Make Date : 2017-07-11
  137. * Description :
  138. *---------------------------------------------------------------------------------------
  139. * Modify Date Modifier Modify Description
  140. *---------------------------------------------------------------------------------------
  141. * 2017-07-11 Live Converter TF->XP
  142. *
  143. *---------------------------------------------------------------------------------------
  144. ****************************************************************************************/
  145. include "com_commonxp::comm_main.xjs";
  146. include "mis_miscommonxp::MIS.xjs";
  147. function SPMNG02801_oninit(obj:Form, e:InitEventInfo)
  148. {
  149. frmf_initForm(obj);
  150. }
  151. function SPMNG02801_onload(obj:Form, e:LoadEventInfo)
  152. {
  153. var flag = sysf_getModelProperty("flag");
  154. var deptcd = sysf_getModelProperty("deptcd");
  155. ds_send_reqdata.setColumn(0, "flag" , flag);
  156. ds_send_reqdata.setColumn(0, "deptcd" , deptcd);
  157. frmf_inputEnterKey("group3.group2.btn_search", "onclick", new ClickEventInfo);
  158. }
  159. function group3_group2_btn_search_onclick(obj:Button, e:ClickEventInfo)
  160. {
  161. if ( !utlf_isNull(group3.group2.ipt_good.value) ) {
  162. if ( utlf_isNull(group3.group2.radio1.value) ) {
  163. alert("조회조건을 선택하세요");
  164. return;
  165. }
  166. }
  167. var oParam = {};
  168. oParam.id = "TRMNG02804";
  169. oParam.service = "csrapp.CsrDryMngt";
  170. oParam.method = "reqGetMscdInfo";
  171. oParam.inds = "req=ds_send_reqdata";
  172. oParam.outds = "ds_main_rscdlist=rscdlist";
  173. oParam.async = false;
  174. tranf_submit(oParam);
  175. }
  176. function ds_main_rscdlist_oncolumnchanged(obj:Dataset, e:DSColChangeEventInfo)
  177. {
  178. if( e.columnid == "chkyn" ){
  179. obj.setColumn(e.row, "chkyn", (e.newvalue == "Y" || e.newvalue == 1) ? "Y" : "N");
  180. }
  181. }
  182. function group3_grd_rscdlist_oncelldblclick(obj:Grid, e:GridClickEventInfo)
  183. {
  184. if(e.row > -1 && e.col > -1)
  185. {
  186. frmf_inputEnterKey("group1.btn_confirm", "onclick", new ClickEventInfo);
  187. }
  188. }
  189. function group1_btn_confirm_onclick(obj:Button, e:ClickEventInfo)
  190. {
  191. if(ds_main_rscdlist.rowcount == 0)
  192. {
  193. sysf_messageBox("적용할 내역이","I004");
  194. this.close();
  195. return;
  196. }
  197. //var iParam = model.getValue(grd_deptlist.nodeset);
  198. ds_main_rscdlist.filter("chkyn=='Y'");
  199. var rCVS = dsf_getDsCSV(ds_main_rscdlist);
  200. ds_main_rscdlist.filter("");
  201. if ( frmf_checkOpener() ) {
  202. opener.frmf_setParameter("SPMNG02801_", rCVS);
  203. } else {
  204. var rtn = sysf_messageBox("상위화면을 찾을 수", "E001");
  205. }
  206. this.close();
  207. }
  208. function group1_btn_cancel_onclick(obj:Button, e:ClickEventInfo)
  209. {
  210. misfPopUpListCancel();
  211. }
  212. function group3_grd_rscdlist_onheadclick(obj:Grid, e:GridClickEventInfo)
  213. {
  214. grdf_setEventGrid(group3.grd_rscdlist, e);
  215. }
  216. ]]></Script>
  217. </Form>
  218. </FDL>