SPMNG02800_린넨물품(물류)조회HELP.xfdl 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SPMNG02800" position="absolute 0 0 790 555" titletext="린넨물품(물류)조회" oninit="SPMNG02800_oninit" onload="SPMNG02800_onload">
  5. <Layouts>
  6. <Layout>
  7. <Div position="absolute 0 0 782 520" id="group3" scrollbars="autoboth">
  8. <Layouts>
  9. <Layout>
  10. <Div position="absolute 0 0 780 30" id="group2" class="div_SA">
  11. <Layouts>
  12. <Layout>
  13. <Button position="absolute 719 4 775 26" id="btn_search" class="btn1" text="조회" onclick="group3_group2_btn_search_onclick"/>
  14. <Shape position="absolute 712 0 718 29" linetype="vertical" id="line13" class="line_4"/>
  15. <Static text="조회조건 :" position="absolute 10 6 96 23" id="caption2" class="search_name"/>
  16. <Radio position="absolute 90 5 225 25" id="radio1" columncount="2" codecolumn="codecolumn" datacolumn="datacolumn">
  17. <Dataset id="innerdataset">
  18. <ColumnInfo>
  19. <Column id="codecolumn"/>
  20. <Column id="datacolumn"/>
  21. </ColumnInfo>
  22. <Rows>
  23. <Row>
  24. <Col id="codecolumn">C</Col>
  25. <Col id="datacolumn">물품코드</Col>
  26. </Row>
  27. <Row>
  28. <Col id="codecolumn">N</Col>
  29. <Col id="datacolumn">물품명</Col>
  30. </Row>
  31. </Rows>
  32. </Dataset>
  33. </Radio>
  34. <Edit position="absolute 235 5 390 24" id="ipt_good" class="input_search" autoselect="true"/>
  35. <Static text="구분 :" position="absolute 410 6 466 23" id="caption3" class="search_name"/>
  36. <Radio position="absolute 465 5 675 25" id="rdo_goodflag" columncount="4" codecolumn="codecolumn" datacolumn="datacolumn" onitemchanged="group3_group2_rdo_goodflag_onitemchanged">
  37. <Dataset id="innerdataset">
  38. <ColumnInfo>
  39. <Column id="codecolumn"/>
  40. <Column id="datacolumn"/>
  41. </ColumnInfo>
  42. <Rows>
  43. <Row>
  44. <Col id="codecolumn">A</Col>
  45. <Col id="datacolumn">전체</Col>
  46. </Row>
  47. <Row>
  48. <Col id="codecolumn">L</Col>
  49. <Col id="datacolumn">L</Col>
  50. </Row>
  51. <Row>
  52. <Col id="codecolumn">K</Col>
  53. <Col id="datacolumn">K</Col>
  54. </Row>
  55. <Row>
  56. <Col id="codecolumn">E</Col>
  57. <Col id="datacolumn">E</Col>
  58. </Row>
  59. </Rows>
  60. </Dataset>
  61. </Radio>
  62. </Layout>
  63. </Layouts>
  64. </Div>
  65. <Static text="린넨물품(물류)조회" position="absolute 0 44 148 60" id="caption1" class="tit_2"/>
  66. <Shape position="absolute 0 60 780 66" linetype="horizontal" id="line1" class="line_10"/>
  67. <Grid position="absolute 0 65 780 520" id="grd_rscdlist" binddataset="ds_main_rscdlist" oncelldblclick="group3_grd_rscdlist_oncelldblclick">
  68. <Formats>
  69. <Format id="default">
  70. <Columns>
  71. <Column size="20" band="left"/>
  72. <Column size="20"/>
  73. <Column size="100"/>
  74. <Column size="160"/>
  75. <Column size="160"/>
  76. <Column size="60"/>
  77. <Column size="80"/>
  78. <Column size="80"/>
  79. <Column size="70"/>
  80. <Column size="0"/>
  81. </Columns>
  82. <Rows>
  83. <Row size="24" band="head"/>
  84. <Row size="24"/>
  85. </Rows>
  86. <Band id="head">
  87. <Cell/>
  88. <Cell col="1" displaytype="checkbox" edittype="checkbox"/>
  89. <Cell col="2" text="물품코드"/>
  90. <Cell col="3" text="물품명"/>
  91. <Cell col="4" text="물품영문명"/>
  92. <Cell col="5" text="사용여부"/>
  93. <Cell col="6" text="규격"/>
  94. <Cell col="7" text="모델명"/>
  95. <Cell col="8" text="불출단위"/>
  96. <Cell col="9"/>
  97. </Band>
  98. <Band id="body">
  99. <Cell celltype="head" expr="expr:currow + 1"/>
  100. <Cell col="1" displaytype="checkbox" edittype="checkbox" text="bind:chkyn" expr="expr:chkyn == 'Y' || chkyn == '1' ? '1' : '0'"/>
  101. <Cell col="2" style="align:left;" text="bind:goodcd"/>
  102. <Cell col="3" style="align:left top;padding:4 2 2 2;" text="bind:goodnm" wordwrap="word"/>
  103. <Cell col="4" style="align:left top;padding:4 2 2 2;" text="bind:goodengnm" wordwrap="word"/>
  104. <Cell col="5" style="align:left;" text="bind:useyn"/>
  105. <Cell col="6" style="align:left top;padding:4 2 2 2;" text="bind:goodspec" wordwrap="word"/>
  106. <Cell col="7" style="align:left;" text="bind:goodmodel"/>
  107. <Cell col="8" style="align:left top;padding:4 2 2 2;" text="bind:deliveunit" wordwrap="word"/>
  108. <Cell col="9" text="bind:instcd"/>
  109. </Band>
  110. </Format>
  111. </Formats>
  112. </Grid>
  113. </Layout>
  114. </Layouts>
  115. </Div>
  116. <Div position="absolute 0 521 780 548" id="group1" scrollbars="autoboth">
  117. <Layouts>
  118. <Layout>
  119. <Button position="absolute 661 2 717 24" id="btn_confirm" class="btn4" text="확인" onclick="group1_btn_confirm_onclick"/>
  120. <Button position="absolute 720 2 776 24" id="btn_cancel" class="btn4" text="취소" onclick="group1_btn_cancel_onclick"/>
  121. <Shape position="absolute 0 0 518 6" linetype="horizontal" id="line32" class="line_6"/>
  122. </Layout>
  123. </Layouts>
  124. </Div>
  125. </Layout>
  126. </Layouts>
  127. <Objects>
  128. <Dataset id="ds_main_rscdlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false" oncolumnchanged="ds_main_rscdlist_oncolumnchanged">
  129. <ColumnInfo>
  130. <Column id="chkyn" type="STRING"/>
  131. <Column id="goodcd" type="STRING"/>
  132. <Column id="goodnm" type="STRING"/>
  133. <Column id="goodengnm" type="STRING"/>
  134. <Column id="useyn" type="STRING"/>
  135. <Column id="goodspec" type="STRING"/>
  136. <Column id="goodmodel" type="STRING"/>
  137. <Column id="deliveunit" type="STRING"/>
  138. <Column id="instcd" type="STRING"/>
  139. </ColumnInfo>
  140. </Dataset>
  141. <Dataset id="ds_send_reqdata" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  142. <ColumnInfo>
  143. <Column id="goodcd" type="STRING" size="256" sumtext="물품코드"/>
  144. <Column id="srchflag" type="STRING" size="256" sumtext="조회조건"/>
  145. <Column id="goodflag" type="STRING" size="256" sumtext="조회조건"/>
  146. </ColumnInfo>
  147. <Rows>
  148. <Row/>
  149. </Rows>
  150. </Dataset>
  151. </Objects>
  152. <Bind>
  153. <BindItem id="item0" compid="group3.group2.radio1" propid="value" datasetid="ds_send_reqdata" columnid="srchflag"/>
  154. <BindItem id="item1" compid="group3.group2.ipt_good" propid="value" datasetid="ds_send_reqdata" columnid="goodcd"/>
  155. <BindItem id="item2" compid="group3.group2.rdo_goodflag" propid="value" datasetid="ds_send_reqdata" columnid="goodflag"/>
  156. </Bind>
  157. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  158. * System Name : 경대 의료정보시스템
  159. * Job Name : emr_csrxp -> SPMNG02800
  160. * Creator : yjh
  161. * Make Date : 2017-08-16
  162. * Description :
  163. *---------------------------------------------------------------------------------------
  164. * Modify Date Modifier Modify Description
  165. *---------------------------------------------------------------------------------------
  166. * 2017-08-16 yjh TF->XP
  167. *
  168. *---------------------------------------------------------------------------------------
  169. ****************************************************************************************/
  170. //=======================================================================================
  171. // Lib Include
  172. //---------------------------------------------------------------------------------------
  173. include "com_commonxp::comm_main.xjs";
  174. include "mis_miscommonxp::MIS.xjs";
  175. //=======================================================================================
  176. // Global Form Variable
  177. //---------------------------------------------------------------------------------------
  178. //=======================================================================================
  179. // Function
  180. //---------------------------------------------------------------------------------------
  181. function fSettingGoodList(pnode) {
  182. var codynode = instance1.selectNodes(pnode + "/*");
  183. var addRow = grd_deptlist.rows - grd_deptlist.fixedRows;
  184. for (var j = 1; j <= codynode.length; j++)
  185. {
  186. if(addRow > grd_deptlist.rows - grd_deptlist.fixedRows)
  187. {
  188. misfGridIUD(grd_deptlist,"A");
  189. addRow = grd_deptlist.rows - grd_deptlist.fixedRows;
  190. }
  191. model.setValue(grd_deptlist.nodeset + "[" + addRow + "]/deptcd" , model.getValue(pnode +"/" + "grd_deptlist" + "[" + j + "]/deptcd"));
  192. model.setValue(grd_deptlist.nodeset + "[" + addRow + "]/deptnm" , model.getValue(pnode +"/" + "grd_deptlist" + "[" + j + "]/depthngnm"));
  193. model.setValue(grd_deptlist.nodeset + "[" + addRow + "]/supdeptcd" , cmb_dept.value);
  194. model.setValue(grd_deptlist.nodeset + "[" + addRow + "]/supdeptnm" , cmb_dept.label);
  195. model.setValue(grd_deptlist.nodeset + "[" + addRow + "]/userid" , getUserInfo("userid"));
  196. model.setValue(grd_deptlist.nodeset + "[" + addRow + "]/useyn" , "Y");
  197. addRow = addRow + 1;
  198. }
  199. model.recalculate();
  200. model.refresh();
  201. }
  202. //=======================================================================================
  203. // Event
  204. //---------------------------------------------------------------------------------------
  205. /****************************************************************************************
  206. * Components : Form
  207. * Components ID : SPMNG02800
  208. * Event : oninit
  209. * Argument : 01.obj : Object Event has occurred
  210. * : 02.e : Event Object
  211. * Description : 화면 처음 초기화시
  212. ****************************************************************************************/
  213. function SPMNG02800_oninit(obj:Form, e:InitEventInfo)
  214. {
  215. frmf_initForm(obj); //폼 초기화
  216. }
  217. /****************************************************************************************
  218. * Components : Form
  219. * Components ID : SPMNG02800
  220. * Event : onload
  221. * Argument : 01.obj : Object Event has occurred
  222. * : 02.e : Event Object
  223. * Description : 화면 로딩 완료시
  224. ****************************************************************************************/
  225. function SPMNG02800_onload(obj:Form, e:LoadEventInfo)
  226. {
  227. grdf_initGrid(group3.grd_rscdlist);
  228. group3.group2.rdo_goodflag.value = "L";
  229. group3.group2.btn_search.click();
  230. }
  231. /****************************************************************************************
  232. * Components : Button
  233. * Components ID : btn_search
  234. * Event : onclick
  235. * Argument : 01.obj : Object Event has occurred
  236. * : 02.e : Event Object
  237. * Description : 조회버튼 클릭시
  238. ****************************************************************************************/
  239. function group3_group2_btn_search_onclick(obj:Button, e:ClickEventInfo)
  240. {
  241. if (!utlf_isNull(group3.group2.ipt_good.value)) {
  242. if (utlf_isNull(group3.group2.radio1.value)) {
  243. alert("조회조건을 선택하세요");
  244. return;
  245. }
  246. }
  247. var oParam = {};
  248. oParam.id = "TRMNG02802";
  249. oParam.service = "csrapp.CsrDryMngt";
  250. oParam.method = "reqGetRscdList";
  251. oParam.inds = "req=ds_send_reqdata";
  252. oParam.outds = "ds_main_rscdlist=rscdlist";
  253. oParam.async = false;
  254. //oParam.callback = "cf_TRMNG02802";
  255. tranf_submit(oParam);
  256. }
  257. /****************************************************************************************
  258. * Components : Radio
  259. * Components ID : rdo_goodflag
  260. * Event : onitemchanged
  261. * Argument : 01.obj : Object Event has occurred
  262. * : 02.e : Event Object
  263. * Description : 라디오 값 변경시
  264. ****************************************************************************************/
  265. function group3_group2_rdo_goodflag_onitemchanged(obj:Radio, e:ItemChangeEventInfo)
  266. {
  267. group3.group2.btn_search.click();
  268. }
  269. /****************************************************************************************
  270. * Components : Grid
  271. * Components ID : grd_rscdlist
  272. * Event : oncelldblclick
  273. * Argument : 01.obj : Object Event has occurred
  274. * : 02.e : Event Object
  275. * Description : 그리드 셀 더블클릭시
  276. ****************************************************************************************/
  277. function group3_grd_rscdlist_oncelldblclick(obj:Grid, e:GridClickEventInfo)
  278. {
  279. group1.btn_confirm.click();
  280. }
  281. /****************************************************************************************
  282. * Components : Button
  283. * Components ID : btn_confirm
  284. * Event : onclick
  285. * Argument : 01.obj : Object Event has occurred
  286. * : 02.e : Event Object
  287. * Description : 확인버튼 클릭시
  288. ****************************************************************************************/
  289. function group1_btn_confirm_onclick(obj:Button, e:ClickEventInfo)
  290. {
  291. if(ds_main_rscdlist.rowcount == 0)
  292. {
  293. sysf_messageBox("적용할 내역이","I004");
  294. this.close();
  295. return;
  296. }
  297. //var iParam = model.getValue(grd_rscdlist.nodeset);
  298. var nodelist = ds_main_rscdlist.filter("chkyn=='Y'");
  299. var rCVS = dsf_getDsCSV(ds_main_rscdlist);
  300. if ( frmf_checkOpener() ) {
  301. opener.frmf_setParameter("SPMNG02800_", rCVS);
  302. } else {
  303. var rtn = sysf_messageBox("상위화면을 찾을 수", "E001");
  304. }
  305. this.close();
  306. }
  307. /****************************************************************************************
  308. * Components : Button
  309. * Components ID : btn_cancel
  310. * Event : onclick
  311. * Argument : 01.obj : Object Event has occurred
  312. * : 02.e : Event Object
  313. * Description : 취소버튼 클릭시
  314. ****************************************************************************************/
  315. function group1_btn_cancel_onclick(obj:Button, e:ClickEventInfo)
  316. {
  317. misfPopUpListCancel();
  318. }
  319. function ds_main_rscdlist_oncolumnchanged(obj:Dataset, e:DSColChangeEventInfo)
  320. {
  321. switch( e.columnid ){
  322. case "chkyn" :
  323. if( e.newvalue == "Y" || e.newvalue == "1" ){
  324. obj.setColumn(e.row, e.columnid, "Y");
  325. }else{
  326. obj.setColumn(e.row, e.columnid, "N");
  327. }
  328. break;
  329. default :
  330. break;
  331. }
  332. }
  333. ]]></Script>
  334. </Form>
  335. </FDL>