SPMNP00301_수술장비목록.xfdl 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SPMNP00301" position="absolute 0 0 750 495" titletext="수술장비 목록" oninit="SPMNP00301_oninit" onload="SPMNP00301_onload">
  5. <Layouts>
  6. <Layout>
  7. <Div position="absolute 5 6 745 489" id="grp_biz" scrollbars="autoboth">
  8. <Layouts>
  9. <Layout>
  10. <Static text="장비 목록" position="absolute 0 54 158 70" id="caption1" class="tit_2" anchor="default"/>
  11. <Shape position="absolute 0 70 740 76" linetype="horizontal" id="line1" class="line_10" anchor="default"/>
  12. <Grid position="absolute 0 75 740 483" id="grd_opeqmtlist" binddataset="ds_main_opeqmtlist" anchor="default" oncellclick="grp_biz_grd_opeqmtlist_oncellclick" cellsizingtype="col" tooltiptype="hover" cellclickbound="cell">
  13. <Formats>
  14. <Format id="default">
  15. <Columns>
  16. <Column size="30"/>
  17. <Column size="237"/>
  18. <Column size="105"/>
  19. <Column size="80"/>
  20. <Column size="85"/>
  21. <Column size="75"/>
  22. <Column size="110"/>
  23. <Column size="0"/>
  24. <Column size="0"/>
  25. <Column size="0"/>
  26. </Columns>
  27. <Rows>
  28. <Row size="24" band="head"/>
  29. <Row size="24"/>
  30. </Rows>
  31. <Band id="head">
  32. <Cell text="선택"/>
  33. <Cell col="1" text="장비명"/>
  34. <Cell col="2" text="모델"/>
  35. <Cell col="3" text="제조원"/>
  36. <Cell col="4" text="Serial No."/>
  37. <Cell col="5" text="취득일"/>
  38. <Cell col="6" text="설치장소"/>
  39. <Cell col="7"/>
  40. <Cell col="8"/>
  41. <Cell col="9"/>
  42. </Band>
  43. <Band id="body">
  44. <Cell displaytype="checkbox" edittype="checkbox" text="bind:check" tooltiptext="bind:check"/>
  45. <Cell col="1" style="align:left;" text="bind:goodflagengnm" tooltiptext="bind:goodflagengnm"/>
  46. <Cell col="2" style="align:left;" text="bind:goodmodel" tooltiptext="bind:goodmodel"/>
  47. <Cell col="3" style="align:left;" text="bind:prodcmpynm" tooltiptext="bind:prodcmpynm"/>
  48. <Cell col="4" style="align:left;" text="bind:mngtno" tooltiptext="bind:mngtno"/>
  49. <Cell col="5" displaytype="date" style="align:left;" text="bind:possndd" calendardisplaynulltype="none" tooltiptext="bind:possndd"/>
  50. <Cell col="6" displaytype="combo" style="align:left;" text="bind:installplcecd" combodataset="ds_init_installplcelist_installplceinfo" combocodecol="installplcecd" combodatacol="installplcenm" tooltiptext="bind:installplcecd" enable="false"/>
  51. <Cell col="7" text="bind:fixasetcd"/>
  52. <Cell col="8" text="bind:goodspec"/>
  53. <Cell col="9" text="bind:prodcmpy"/>
  54. </Band>
  55. </Format>
  56. </Formats>
  57. </Grid>
  58. <Div position="absolute 0 0 740 35" id="group2" class="div_SA" anchor="default">
  59. <Layouts>
  60. <Layout>
  61. <Static text="수술방 :" position="absolute 5 10 66 27" id="caption3" class="search_name" anchor="default"/>
  62. <Combo position="absolute 66 8 205 27" id="cmb_installplcecd" innerdataset="@ds_init_installplcelist_installplceinfo" datacolumn="installplcenm" codecolumn="installplcecd" anchor="default" onitemchanged="grp_biz_group2_cmb_installplcecd_onitemchanged"/>
  63. </Layout>
  64. </Layouts>
  65. </Div>
  66. <Button position="absolute 684 47 740 69" id="btn_select" class="btn4" text="선택" anchor="default" onclick="grp_biz_btn_select_onclick"/>
  67. </Layout>
  68. </Layouts>
  69. </Div>
  70. </Layout>
  71. </Layouts>
  72. <Objects>
  73. <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  74. <ColumnInfo>
  75. <Column id="sendflag" type="STRING" size="256" sumtext="수술회복구분"/>
  76. <Column id="installplcecd" type="STRING" size="256"/>
  77. </ColumnInfo>
  78. <Rows>
  79. <Row/>
  80. </Rows>
  81. </Dataset>
  82. <Dataset id="ds_init_installplcelist_installplceinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  83. <ColumnInfo>
  84. <Column id="installplcecd" type="STRING" size="256" sumtext="장비설치위치코드"/>
  85. <Column id="installplcenm" type="STRING" size="256" sumtext="장비설치위치명"/>
  86. </ColumnInfo>
  87. </Dataset>
  88. <Dataset id="ds_main_opeqmtlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  89. <ColumnInfo>
  90. <Column id="check" type="STRING" size="256"/>
  91. <Column id="fixasetcd" type="STRING" size="256" sumtext="수술장비코드 "/>
  92. <Column id="goodflagengnm" type="STRING" size="256" sumtext="수술장비명 "/>
  93. <Column id="prodcmpynm" type="STRING" size="256" sumtext="수술장비제조원명"/>
  94. <Column id="goodspec" type="STRING" size="256" sumtext="수술장비규격명 "/>
  95. <Column id="goodmodel" type="STRING" size="256" sumtext="수술장비모델 "/>
  96. <Column id="installplcecd" type="STRING" size="256" sumtext="장비설치위치코드"/>
  97. <Column id="possndd" type="STRING" size="256" sumtext="취득일자 "/>
  98. <Column id="mngtno" type="STRING" size="256" sumtext="장비SerialNo "/>
  99. </ColumnInfo>
  100. </Dataset>
  101. <Dataset id="ds_init_cond" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  102. <ColumnInfo>
  103. <Column id="installplcecd" type="STRING" size="256"/>
  104. <Column id="sendflag" type="STRING" size="256"/>
  105. </ColumnInfo>
  106. <Rows>
  107. <Row/>
  108. </Rows>
  109. </Dataset>
  110. </Objects>
  111. <Bind>
  112. <BindItem id="item0" compid="grp_biz.group2.cmb_installplcecd" propid="value" datasetid="ds_init_cond" columnid="installplcecd"/>
  113. </Bind>
  114. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  115. * System Name : 경대 의료정보시스템
  116. * Job Name : emr_opanstxp -> SPMNP00301
  117. * Creator : yjh
  118. * Make Date : 2016-12-06
  119. * Description :
  120. *---------------------------------------------------------------------------------------
  121. * Modify Date Modifier Modify Description
  122. *---------------------------------------------------------------------------------------
  123. * 2016-12-06 yjh TF->XP
  124. *
  125. *---------------------------------------------------------------------------------------
  126. ****************************************************************************************/
  127. //=======================================================================================
  128. // Lib Include
  129. //---------------------------------------------------------------------------------------
  130. include "com_commonxp::comm_main.xjs";
  131. //=======================================================================================
  132. // Global Form Variable
  133. //---------------------------------------------------------------------------------------
  134. //=======================================================================================
  135. // Function
  136. //---------------------------------------------------------------------------------------
  137. //=======================================================================================
  138. // Event
  139. //---------------------------------------------------------------------------------------
  140. /****************************************************************************************
  141. * Components : Form
  142. * Components ID : SPMNP00301
  143. * Event : oninit
  144. * Argument : 01.obj : Object Event has occurred
  145. * : 02.e : Event Object
  146. * Description : 화면 처음 초기화시
  147. ****************************************************************************************/
  148. function SPMNP00301_oninit(obj:Form, e:InitEventInfo)
  149. {
  150. frmf_initForm(obj); //폼 초기화
  151. }
  152. /****************************************************************************************
  153. * Components : Form
  154. * Components ID : SPMNP00301
  155. * Event : onload
  156. * Argument : 01.obj : Object Event has occurred
  157. * : 02.e : Event Object
  158. * Description : 화면 로딩 완료시
  159. ****************************************************************************************/
  160. function SPMNP00301_onload(obj:Form, e:LoadEventInfo)
  161. {
  162. ds_main_opeqmtlist.clearData();
  163. ds_init_installplcelist_installplceinfo.clearData();
  164. var sParam = opener.frmf_getParameter("SPMNP00300_searchFlag");
  165. var oproomdept = opener.frmf_getParameter("SPMNP00300_oproomdept");
  166. ds_init_cond.setColumn(0, "installplcecd", oproomdept);
  167. opener.frmf_setParameter("SPMNP00300_searchFlag", "");
  168. if(!utlf_isNull(sParam)){
  169. ds_init_cond.setColumn(0, "sendflag",sParam);
  170. //model.setValue("/root/send/sendflag",sParam);
  171. }else{
  172. ds_init_cond.setColumn(0, "sendflag", "OP");
  173. //model.setValue("/root/send/sendflag", "OP");
  174. }
  175. ds_send.setColumn(0, "sendflag", ds_init_cond.getColumn(0, "sendflag"));
  176. //2010.04.08 taebum 마취간호기록에서 장비 팝업 호출시 마취수술방이 조회되도록 sqlmap 에서 ANSTGIROK 용도 쿼리 추가
  177. var oParam = {};
  178. oParam.id = "TRMNP00307";
  179. oParam.service = "opanstapp.OpAnstRec";
  180. oParam.method = "reqGetInstallPlceList";
  181. oParam.inds = "req=ds_send";
  182. oParam.outds = "ds_init_installplcelist_installplceinfo=installplceinfo";
  183. oParam.async = false;
  184. //oParam.callback = "cf_TRMNP00307";
  185. tranf_submit(oParam);
  186. frmf_addComboItem("grp_biz.group2.cmb_installplcecd", "전 체", "", "above" );
  187. grp_biz.group2.cmb_installplcecd.value = "";
  188. ds_send.setColumn(0, "installplcecd", ds_init_cond.getColumn(0, "installplcecd"));
  189. var oParam = {};
  190. oParam.id = "TRMNP00306";
  191. oParam.service = "opanstapp.OpAnstRec";
  192. oParam.method = "reqGetOPEqmtList";
  193. oParam.inds = "req=ds_send";
  194. oParam.outds = "ds_main_opeqmtlist=opeqmtlist";
  195. oParam.async = false;
  196. //oParam.callback = "cf_TRMNP00306";
  197. tranf_submit(oParam);
  198. if( utlf_isNull(ds_main_opeqmtlist.getColumnInfo("check")) ){
  199. ds_main_opeqmtlist.addColumn("check", "string");
  200. }
  201. ds_main_opeqmtlist.rowposition = -1;
  202. }
  203. /****************************************************************************************
  204. * Components : Grid
  205. * Components ID : grd_opeqmtlist
  206. * Event : oncellclick
  207. * Argument : 01.obj : Object Event has occurred
  208. * : 02.e : Event Object
  209. * Description : 그리드 셀 클릭시
  210. ****************************************************************************************/
  211. function grp_biz_grd_opeqmtlist_oncellclick(obj:Grid, e:GridClickEventInfo)
  212. {
  213. var iRow = grp_biz.grd_opeqmtlist.currentrow;
  214. var sCheck = "0";
  215. if(grp_biz.grd_opeqmtlist.currentcol != 0 ){
  216. if(iRow < 0) return;
  217. sCheck = ds_main_opeqmtlist.getColumn(iRow, "check");
  218. if(sCheck == "1"){
  219. ds_main_opeqmtlist.setColumn(iRow, "check", "0");
  220. }else{
  221. ds_main_opeqmtlist.setColumn(iRow, "check", "1");
  222. }
  223. }
  224. }
  225. /****************************************************************************************
  226. * Components : Combo
  227. * Components ID : cmb_installplcecd
  228. * Event : onitemchanged
  229. * Argument : 01.obj : Object Event has occurred
  230. * : 02.e : Event Object
  231. * Description : 콤보 값 변경시
  232. ****************************************************************************************/
  233. function grp_biz_group2_cmb_installplcecd_onitemchanged(obj:Combo, e:ItemChangeEventInfo)
  234. {
  235. ds_send.setColumn(0, "installplcecd", ds_init_cond.getColumn(0, "installplcecd"));
  236. //마취간호기록에서 전체 선택시 마취방 장비만 조회되도록 수정_20100518_SMY
  237. var sendflag = ds_init_cond.getColumn(0, "sendflag");
  238. if(sendflag == "ANSTGIROK"){
  239. ds_send.setColumn(0, "sendflag", sendflag);
  240. }
  241. var oParam = {};
  242. oParam.id = "TRMNP00306";
  243. oParam.service = "opanstapp.OpAnstRec";
  244. oParam.method = "reqGetOPEqmtList";
  245. oParam.inds = "req=ds_send";
  246. oParam.outds = "ds_main_opeqmtlist=opeqmtlist";
  247. oParam.async = false;
  248. //oParam.callback = "cf_TRMNP00306";
  249. tranf_submit(oParam);
  250. if( utlf_isNull(ds_main_opeqmtlist.getColumnInfo("check")) ){
  251. ds_main_opeqmtlist.addColumn("check", "string");
  252. }
  253. ds_main_opeqmtlist.rowposition = -1;
  254. }
  255. /****************************************************************************************
  256. * Components : Button
  257. * Components ID : btn_select
  258. * Event : onclick
  259. * Argument : 01.obj : Object Event has occurred
  260. * : 02.e : Event Object
  261. * Description : 선택버튼 클릭시
  262. ****************************************************************************************/
  263. function grp_biz_btn_select_onclick(obj:Button, e:ClickEventInfo)
  264. {
  265. var sMsg = "opeqmtcd▦opeqmtnm▩";
  266. for(var iRow = 0; iRow < grp_biz.grd_opeqmtlist.rowcount; iRow++){
  267. if(ds_main_opeqmtlist.getColumn(iRow, "check") == "1"){
  268. sMsg += ds_main_opeqmtlist.getColumn(iRow, "fixasetcd" ) + "▦"
  269. + ds_main_opeqmtlist.getColumn(iRow, "goodflagengnm") + "▩";
  270. }
  271. }
  272. opener.frmf_setParameter("SPMNP00300_Return", sMsg);
  273. this.close();
  274. }
  275. ]]></Script>
  276. </Form>
  277. </FDL>