SPMNG00500_장비코드조회.xfdl 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SPMNG00500" position="absolute 0 0 730 490" titletext="장비목록 조회" oninit="SPMNG00500_oninit" onload="SPMNG00500_onload">
  5. <Layouts>
  6. <Layout>
  7. <Div position="absolute 0 0 720 475" id="grp_biz" scrollbars="autoboth">
  8. <Layouts>
  9. <Layout>
  10. <Div position="absolute 0 0 720 35" align="align:center top;" id="grp_sea" class="div_SA">
  11. <Layouts>
  12. <Layout>
  13. <Button position="absolute 654 5 710 27" id="btn_search" class="btn1" text="조회" onclick="grp_biz_grp_sea_btn_search_onclick"/>
  14. <Shape position="absolute 636 5 642 27" linetype="vertical" id="line13" class="line_4"/>
  15. <Static text="기관코드 :" position="absolute 10 9 86 26" id="caption62" class="search_name"/>
  16. <Combo position="absolute 87 8 225 27" id="cmb_instcd" class="combo_essential" enable="false" innerdataset="@ds_init_instcd_Z0007" datacolumn="cdnm" codecolumn="cdid" onitemchanged="grp_biz_grp_sea_cmb_instcd_onitemchanged"/>
  17. </Layout>
  18. </Layouts>
  19. </Div>
  20. <Shape position="absolute 0 61 720 67" linetype="horizontal" id="line1" class="line_10"/>
  21. <Static text="장비코드내역" position="absolute 0 45 100 61" id="caption4" class="tit_2"/>
  22. <Grid position="absolute 0 66 720 475" id="grd_equipment" binddataset="ds_main_fixasetcdlist" cellsizingtype="both">
  23. <Formats>
  24. <Format id="default">
  25. <Columns>
  26. <Column size="20" band="left"/>
  27. <Column size="21"/>
  28. <Column size="80"/>
  29. <Column size="173"/>
  30. <Column size="100"/>
  31. <Column size="100"/>
  32. <Column size="127"/>
  33. <Column size="80"/>
  34. </Columns>
  35. <Rows>
  36. <Row size="24" band="head"/>
  37. <Row size="24"/>
  38. </Rows>
  39. <Band id="head">
  40. <Cell/>
  41. <Cell col="1" displaytype="checkbox" edittype="checkbox"/>
  42. <Cell col="2" text="장비코드"/>
  43. <Cell col="3" text="장비명"/>
  44. <Cell col="4" text="규격"/>
  45. <Cell col="5" text="모델"/>
  46. <Cell col="6" text="제조원"/>
  47. <Cell col="7" text="관리번호"/>
  48. </Band>
  49. <Band id="body">
  50. <Cell celltype="head" expr="expr:currow + 1"/>
  51. <Cell col="1" displaytype="checkbox" edittype="checkbox" text="bind:chkyn" expr="expr:chkyn == 'Y' || chkyn == '1' ? '1' : '0'"/>
  52. <Cell col="2" text="bind:fixasetcd"/>
  53. <Cell col="3" style="align:left;" text="bind:goodflaghngnm"/>
  54. <Cell col="4" style="align:left;" text="bind:goodspec"/>
  55. <Cell col="5" style="align:left;" text="bind:goodmodel"/>
  56. <Cell col="6" text="bind:prodcmpynm"/>
  57. <Cell col="7" style="align:left;" text="bind:mngtno"/>
  58. </Band>
  59. </Format>
  60. </Formats>
  61. </Grid>
  62. <Button position="absolute 655 40 719 59" id="btn_comfirm" class="btn2" text="선택적용" onclick="grp_biz_btn_comfirm_onclick"/>
  63. </Layout>
  64. </Layouts>
  65. </Div>
  66. </Layout>
  67. </Layouts>
  68. <Objects>
  69. <Dataset id="ds_init_instcd_Z0007" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  70. <ColumnInfo>
  71. <Column id="cdnm" type="STRING"/>
  72. <Column id="cdid" type="STRING"/>
  73. </ColumnInfo>
  74. </Dataset>
  75. <Dataset id="ds_send_reqdata" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  76. <ColumnInfo>
  77. <Column id="instcd" type="STRING" size="256" sumtext="기관코드"/>
  78. <Column id="goodflag" type="STRING" size="256" sumtext="물품구분"/>
  79. <Column id="cntrdeptcd" type="STRING" size="256" sumtext="귀속부서"/>
  80. </ColumnInfo>
  81. <Rows>
  82. <Row/>
  83. </Rows>
  84. </Dataset>
  85. <Dataset id="ds_main_fixasetcdlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false" oncolumnchanged="ds_main_fixasetcdlist_oncolumnchanged">
  86. <ColumnInfo>
  87. <Column id="chkyn" type="STRING" size="256" sumtext="chk여부"/>
  88. <Column id="fixasetcd" type="STRING" size="256" sumtext="고정자산코드"/>
  89. <Column id="goodflaghngnm" type="STRING" size="256" sumtext="자산한글명"/>
  90. <Column id="goodmodel" type="STRING" size="256" sumtext="물품모델"/>
  91. <Column id="goodspec" type="STRING" size="256" sumtext="물품모델"/>
  92. <Column id="prodcmpynm" type="STRING" size="256" sumtext="제조원"/>
  93. <Column id="mngtno" type="STRING" size="256" sumtext="관리번호"/>
  94. </ColumnInfo>
  95. </Dataset>
  96. <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  97. <ColumnInfo>
  98. <Column id="instcd" type="STRING" size="256"/>
  99. </ColumnInfo>
  100. <Rows>
  101. <Row/>
  102. </Rows>
  103. </Dataset>
  104. </Objects>
  105. <Bind>
  106. <BindItem id="item0" compid="grp_biz.grp_sea.cmb_instcd" propid="value" datasetid="ds_send" columnid="instcd"/>
  107. </Bind>
  108. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  109. * System Name : 경대 의료정보시스템
  110. * Job Name : emr_csrxp -> SPMNG00500
  111. * Creator : yjh
  112. * Make Date : 2017-07-06
  113. * Description :
  114. *---------------------------------------------------------------------------------------
  115. * Modify Date Modifier Modify Description
  116. *---------------------------------------------------------------------------------------
  117. * 2017-07-06 yjh TF->XP
  118. *
  119. *---------------------------------------------------------------------------------------
  120. ****************************************************************************************/
  121. //=======================================================================================
  122. // Lib Include
  123. //---------------------------------------------------------------------------------------
  124. include "com_commonxp::comm_main.xjs";
  125. include "mis_miscommonxp::MIS.xjs";
  126. //=======================================================================================
  127. // Global Form Variable
  128. //---------------------------------------------------------------------------------------
  129. //=======================================================================================
  130. // Function
  131. //---------------------------------------------------------------------------------------
  132. // 화면 open시와 초기화 버튼 클릭시 화면 초기화 기능을 수행한다.
  133. function fInitialize() {
  134. misfGridInit(grp_biz.grd_equipment);
  135. // misfComboComCdListMulti("Z0007", "cmb_instcd"); //기관코드,set 제제약 구분
  136. var arrParam = [{dsNm: "ds_init_instcd_Z0007", cdGrpId: "Z0007"}]
  137. appf_getCodeList(arrParam);
  138. grp_biz.grp_sea.cmb_instcd.value = sysf_getUserInfo("dutplceinstcd");
  139. grp_biz.grp_sea.btn_search.click();
  140. }
  141. function fCheckAuth() {
  142. btn_search.disabled = !checkAuth("R") ;
  143. btn_save.disabled = !checkAuth("X") ;
  144. }
  145. //=======================================================================================
  146. // Event
  147. //---------------------------------------------------------------------------------------
  148. /****************************************************************************************
  149. * Components : Form
  150. * Components ID : SPMNG00500
  151. * Event : oninit
  152. * Argument : 01.obj : Object Event has occurred
  153. * : 02.e : Event Object
  154. * Description : 화면 처음 초기화시
  155. ****************************************************************************************/
  156. function SPMNG00500_oninit(obj:Form, e:InitEventInfo)
  157. {
  158. frmf_initForm(obj); //폼 초기화
  159. }
  160. /****************************************************************************************
  161. * Components : Form
  162. * Components ID : SPMNG00500
  163. * Event : onload
  164. * Argument : 01.obj : Object Event has occurred
  165. * : 02.e : Event Object
  166. * Description : 화면 로딩 완료시
  167. ****************************************************************************************/
  168. function SPMNG00500_onload(obj:Form, e:LoadEventInfo)
  169. {
  170. grdf_setAllCheck(grp_biz.grd_equipment);
  171. fInitialize();
  172. }
  173. /****************************************************************************************
  174. * Components : Button
  175. * Components ID : btn_search
  176. * Event : onclick
  177. * Argument : 01.obj : Object Event has occurred
  178. * : 02.e : Event Object
  179. * Description : 조회버튼 클릭시
  180. ****************************************************************************************/
  181. function grp_biz_grp_sea_btn_search_onclick(obj:Button, e:ClickEventInfo)
  182. {
  183. ds_send_reqdata.setColumn(0, "instcd", sysf_getUserInfo("dutplceinstcd")); // 기관 설정
  184. ds_send_reqdata.setColumn(0, "goodflag", "E"); // 물품 설정
  185. ds_send_reqdata.setColumn(0, "cntrdeptcd", "308%"); // 귀속부서 설정
  186. var oParam = {};
  187. oParam.id = "TRMNG00502";
  188. oParam.service = "csrapp.CsrMngt";
  189. oParam.method = "reqGetFixAsetcdByCond";
  190. oParam.inds = "req=ds_send_reqdata";
  191. oParam.outds = "ds_main_fixasetcdlist=fixasetcdlist";
  192. oParam.async = false;
  193. //oParam.callback = "cf_TRMNG00502";
  194. tranf_submit(oParam);
  195. dsf_setDefaultVal(ds_main_fixasetcdlist, "chkyn:N");
  196. }
  197. /****************************************************************************************
  198. * Components : Combo
  199. * Components ID : cmb_instcd
  200. * Event : onitemchanged
  201. * Argument : 01.obj : Object Event has occurred
  202. * : 02.e : Event Object
  203. * Description : 콤보 값 변경시
  204. ****************************************************************************************/
  205. function grp_biz_grp_sea_cmb_instcd_onitemchanged(obj:Combo, e:ItemChangeEventInfo)
  206. {
  207. grp_biz.grp_sea.btn_search.click();
  208. }
  209. /****************************************************************************************
  210. * Components : Button
  211. * Components ID : btn_comfirm
  212. * Event : onclick
  213. * Argument : 01.obj : Object Event has occurred
  214. * : 02.e : Event Object
  215. * Description : 선택적용버튼 클릭시
  216. ****************************************************************************************/
  217. function grp_biz_btn_comfirm_onclick(obj:Button, e:ClickEventInfo)
  218. {
  219. var chkyn;
  220. var header = "fixasetcd▦goodflaghngnm▦prodcmpynm▦mngtno▩";
  221. var data = "";
  222. for( var i=0 ; i<ds_main_fixasetcdlist.rowcount ; i++ ){
  223. chkyn = ds_main_fixasetcdlist.getColumn(i, "chkyn");
  224. if(chkyn == "Y") {
  225. //copyNodesetType("/root/main/duplnode/fixasetcdlist", "/root/main/fixasetcdlist[" + i + "]", "after");
  226. data += utlf_transNullToEmpty(ds_main_fixasetcdlist.getColumn(i, "fixasetcd")) + "▦"
  227. + utlf_transNullToEmpty(ds_main_fixasetcdlist.getColumn(i, "goodflaghngnm")) + "▦"
  228. + utlf_transNullToEmpty(ds_main_fixasetcdlist.getColumn(i, "prodcmpynm")) + "▦"
  229. + utlf_transNullToEmpty(ds_main_fixasetcdlist.getColumn(i, "mngtno")) + "▩"
  230. }
  231. }
  232. if ( frmf_checkOpener() ) {
  233. opener.frmf_setParameter("SPMNG00500_", header+data);
  234. } else {
  235. var rtn = sysf_messageBox("상위화면을 찾을 수", "E001");
  236. }
  237. this.close();
  238. }
  239. function ds_main_fixasetcdlist_oncolumnchanged(obj:Dataset, e:DSColChangeEventInfo)
  240. {
  241. switch( e.columnid ){
  242. case "chkyn" :
  243. if( e.newvalue == "Y" || e.newvalue == "1" ){
  244. obj.setColumn(e.row, e.columnid, "Y");
  245. }else{
  246. obj.setColumn(e.row, e.columnid, "N");
  247. }
  248. break;
  249. default :
  250. break;
  251. }
  252. }
  253. ]]></Script>
  254. </Form>
  255. </FDL>