SPMNP00306_주부교환.xfdl 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SPMNP00306" position="absolute 0 0 740 450" titletext="변경수술스케줄" oninit="SPMNP00306_oninit" onload="SPMNP00306_onload">
  5. <Layouts>
  6. <Layout>
  7. <Div position="absolute 0 1 740 449" id="grp_biz" scrollbars="autoboth">
  8. <Layouts>
  9. <Layout>
  10. <Shape position="absolute 0 35 740 41" linetype="horizontal" id="line1" class="line_10" anchor="default"/>
  11. <Div position="absolute 0 0 740 35" id="group2" class="div_SA2" anchor="default">
  12. <Layouts>
  13. <Layout>
  14. <Static text="변경대상 수술 스케줄" position="absolute 0 11 175 27" id="caption7" class="tit_2" anchor="default"/>
  15. <Static text="(신중하게 진행하시기 바랍니다)" position="absolute 156 9 368 29" id="caption1" style="color:#ff0000ff;font:Dotum,9,bold;" anchor="default"/>
  16. <Static id="caption00" text="진행하시기전 반드시 마취기록 저장 확인 하세요" position="absolute 360 5 660 33" style="color:#ff0000ff;font:Dotum,9,bold;" onclick="grp_biz_group2_caption00_onclick"/>
  17. </Layout>
  18. </Layouts>
  19. </Div>
  20. <Button position="absolute 670 7 726 29" id="btn_select" class="btn3" text="저장" onclick="grp_biz_btn_select_onclick" anchor="default"/>
  21. <Grid position="absolute 0 40 740 448" id="grd_oplist" binddataset="ds_main_oplist" anchor="default" cellsizebandtype="allband" cellsizingtype="both" extendsizetype="row" autoenter="select" oncloseup="grp_biz_grd_oplist_oncloseup">
  22. <Formats>
  23. <Format id="default">
  24. <Columns>
  25. <Column size="20" band="left"/>
  26. <Column size="111"/>
  27. <Column size="82"/>
  28. <Column size="62"/>
  29. <Column size="37"/>
  30. <Column size="58"/>
  31. <Column size="71"/>
  32. <Column size="56"/>
  33. <Column size="100"/>
  34. <Column size="162"/>
  35. <Column size="0"/>
  36. <Column size="0"/>
  37. <Column size="0"/>
  38. </Columns>
  39. <Rows>
  40. <Row size="24" band="head"/>
  41. <Row size="24"/>
  42. </Rows>
  43. <Band id="head">
  44. <Cell/>
  45. <Cell col="1" text="수술번호"/>
  46. <Cell col="2" text="환자명"/>
  47. <Cell col="3" text="등록번호"/>
  48. <Cell col="4" text="S/A"/>
  49. <Cell col="5" text="집도과"/>
  50. <Cell col="6" text="집도의"/>
  51. <Cell col="7" text="수술방"/>
  52. <Cell col="8" text="협진여부"/>
  53. <Cell col="9" text="주수술번호"/>
  54. <Cell col="10"/>
  55. <Cell col="11"/>
  56. <Cell col="12"/>
  57. </Band>
  58. <Band id="body">
  59. <Cell celltype="head"/>
  60. <Cell col="1" style="align:left;" text="bind:oprsrvno"/>
  61. <Cell col="2" style="align:left;" text="bind:hngnm"/>
  62. <Cell col="3" style="align:left;" text="bind:pid"/>
  63. <Cell col="4" style="align:left;padding:2 2 2 2;" text="bind:sa"/>
  64. <Cell col="5" style="align:left;" text="bind:depthngnm"/>
  65. <Cell col="6" style="align:left;" text="bind:perfdridnm1"/>
  66. <Cell col="7" style="align:left;" text="bind:oproomcdnm"/>
  67. <Cell col="8" displaytype="combo" edittype="combo" style="align:center;" text="bind:cnstopflag" combodataset="ds_cnstopflag" combocodecol="value" combodatacol="label"/>
  68. <Cell col="9" text="bind:mainoprsrvno"/>
  69. <Cell col="10" text="bind:goodspec"/>
  70. <Cell col="11" text="bind:prodcmpy"/>
  71. <Cell col="12" text="bind:prodcmpy"/>
  72. </Band>
  73. </Format>
  74. </Formats>
  75. </Grid>
  76. </Layout>
  77. </Layouts>
  78. </Div>
  79. </Layout>
  80. </Layouts>
  81. <Objects>
  82. <Dataset id="ds_main_oplist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false" oncolumnchanged="ds_main_oplist_oncolumnchanged">
  83. <ColumnInfo>
  84. <Column id="oprsrvno" type="STRING"/>
  85. <Column id="pid" type="STRING"/>
  86. <Column id="hngnm" type="STRING"/>
  87. <Column id="sa" type="STRING"/>
  88. <Column id="depthngnm" type="STRING"/>
  89. <Column id="perfdridnm1" type="STRING"/>
  90. <Column id="oproomcdnm" type="STRING"/>
  91. <Column id="cnstopflag" type="STRING"/>
  92. <Column id="mainoprsrvno" type="STRING"/>
  93. <Column id="goodspec" type="STRING"/>
  94. <Column id="prodcmpy" type="STRING"/>
  95. <Column id="prodcmpy" type="STRING"/>
  96. </ColumnInfo>
  97. </Dataset>
  98. <Dataset id="ds_send_reqdata_oplist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  99. <ColumnInfo>
  100. <Column id="oprsrvno" type="STRING" size="256" sumtext="수술번호"/>
  101. <Column id="mainoprsrvno" type="STRING" size="256" sumtext="메인수술번호"/>
  102. <Column id="cnstopflag" type="STRING" size="256" sumtext="주부상태"/>
  103. <Column id="pid" type="STRING" size="256" sumtext="챠트번호"/>
  104. <Column id="status" type="STRING" size="256" sumtext="상태"/>
  105. </ColumnInfo>
  106. </Dataset>
  107. <Dataset id="ds_extinfo_resultinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  108. <ColumnInfo>
  109. <Column id="cnt" type="STRING" size="256" sumtext="변경건수"/>
  110. </ColumnInfo>
  111. </Dataset>
  112. <Dataset id="ds_cnstopflag" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  113. <ColumnInfo>
  114. <Column id="label" type="STRING" size="256"/>
  115. <Column id="value" type="STRING" size="256"/>
  116. </ColumnInfo>
  117. <Rows>
  118. <Row>
  119. <Col id="label">협진수술</Col>
  120. <Col id="value">Y</Col>
  121. </Row>
  122. <Row>
  123. <Col id="label">주수술</Col>
  124. <Col id="value">N</Col>
  125. </Row>
  126. </Rows>
  127. </Dataset>
  128. </Objects>
  129. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  130. * System Name : 경대 의료정보시스템
  131. * Job Name : emr_opanstxp -> SPMNP00306
  132. * Creator : yjh
  133. * Make Date : 2016-03-31
  134. * Description :
  135. *---------------------------------------------------------------------------------------
  136. * Modify Date Modifier Modify Description
  137. *---------------------------------------------------------------------------------------
  138. * 2016-03-31 yjh TF->XP
  139. *
  140. *---------------------------------------------------------------------------------------
  141. ****************************************************************************************/
  142. //=======================================================================================
  143. // Lib Include
  144. //---------------------------------------------------------------------------------------
  145. include "com_commonxp::comm_main.xjs";
  146. //=======================================================================================
  147. // Global Form Variable
  148. //---------------------------------------------------------------------------------------
  149. //=======================================================================================
  150. // Function
  151. //---------------------------------------------------------------------------------------
  152. //=======================================================================================
  153. // Event
  154. //---------------------------------------------------------------------------------------
  155. /****************************************************************************************
  156. * Components : Form
  157. * Components ID : SPMNP00306
  158. * Event : oninit
  159. * Argument : 01.obj : Object Event has occurred
  160. * : 02.e : Event Object
  161. * Description : 화면 처음 초기화시
  162. ****************************************************************************************/
  163. function SPMNP00306_oninit(obj:Form, e:InitEventInfo)
  164. {
  165. frmf_initForm(obj); //폼 초기화
  166. }
  167. /****************************************************************************************
  168. * Components : Form
  169. * Components ID : SPMNP00306
  170. * Event : onload
  171. * Argument : 01.obj : Object Event has occurred
  172. * : 02.e : Event Object
  173. * Description : 화면 로딩 완료시
  174. ****************************************************************************************/
  175. function SPMNP00306_onload(obj:Form, e:LoadEventInfo)
  176. {
  177. grdf_setRowTypeIcon(grp_biz.grd_oplist, 0);
  178. try{
  179. // arg_ds_main_opinfo_oplist.enableevent = false;
  180. // arg_ds_main_opinfo_oplist.updatecontrol = false;
  181. // arg_ds_main_opinfo_oplist.deleteColumn("mainoprsrvno");
  182. // arg_ds_main_opinfo_oplist.updatecontrol = true;
  183. // arg_ds_main_opinfo_oplist.enableevent = true;
  184. ds_main_oplist.copyData(arg_ds_main_opinfo_oplist);
  185. ds_main_oplist.rowposition = -1;
  186. dsf_setTypeFormat(ds_main_oplist, "pid:STRING");
  187. }catch(e){
  188. }
  189. }
  190. /****************************************************************************************
  191. * Components : Dataset
  192. * Components ID : ds_main_oplist
  193. * Event : oncolumnchanged
  194. * Argument : 01.obj : Object Event has occurred
  195. * : 02.e : Event Object
  196. * Description : 데이터셋 값 변경시
  197. ****************************************************************************************/
  198. function ds_main_oplist_oncolumnchanged(obj:Dataset, e:DSColChangeEventInfo)
  199. {
  200. switch( e.columnid ){
  201. case "cnstopflag" :
  202. var cnt = ds_main_oplist.getCaseCount("cnstopflag=='N'");
  203. if (cnt == 0) {
  204. sysf_messageBox("변경할 수 없습니다","I");
  205. ds_main_oplist.setColumn(e.row, e.columnid, "N");
  206. } else {
  207. if( ds_main_oplist.getColumn(e.row, e.columnid) == "N" ){
  208. ds_main_oplist.setColumn(e.row, "mainoprsrvno", ds_main_oplist.getColumn(e.row, "oprsrvno"));
  209. }
  210. else {
  211. var oprsrvno = ds_main_oplist.getColumn(ds_main_oplist.findRow("cnstopflag", "N"), "oprsrvno");
  212. ds_main_oplist.setColumn(e.row, "mainoprsrvno", oprsrvno);
  213. }
  214. }
  215. break;
  216. default :
  217. break;
  218. }
  219. }
  220. /****************************************************************************************
  221. * Components : Button
  222. * Components ID : btn_select
  223. * Event : onclick
  224. * Argument : 01.obj : Object Event has occurred
  225. * : 02.e : Event Object
  226. * Description : 저장버튼 클릭시
  227. ****************************************************************************************/
  228. function grp_biz_btn_select_onclick(obj:Button, e:ClickEventInfo)
  229. {
  230. if( "6" == sysf_messageBox("저장하시겠습니까?","Q") ){
  231. grdf_setStatusColumn(ds_main_oplist, "status");
  232. ds_send_reqdata_oplist.copyData(grdf_getGridUpdateData(grp_biz.grd_oplist, "all"));
  233. var oParam = {};
  234. oParam.id = "TXMNP00306";
  235. oParam.service = "opanstapp.OpAnstRec";
  236. oParam.method = "reqSetOprscnstList";
  237. oParam.inds = "oplist=ds_send_reqdata_oplist";
  238. oParam.outds = "ds_extinfo_resultinfo=resultinfo";
  239. oParam.async = false;
  240. //oParam.callback = "cf_TXMNP00306";
  241. tranf_submit(oParam);
  242. var cnt = ds_extinfo_resultinfo.getColumn(0, "cnt");
  243. if (cnt > 0 ) {
  244. sysf_messageBox("정상적으로 변경되었습니다","I");
  245. close();
  246. }
  247. }
  248. }
  249. function grp_biz_grd_oplist_oncloseup(obj:Grid, e:GridEditEventInfo)
  250. {
  251. obj.showEditor(false);
  252. }
  253. function grp_biz_group2_caption00_onclick(obj:Static, e:ClickEventInfo)
  254. {
  255. }
  256. ]]></Script>
  257. </Form>
  258. </FDL>