SMAEB04000_환자Comment관리.xfdl 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SMAEB04000" position="absolute 0 0 1196 765" titletext="환자Comment코드관리" onload="SMAEB04000_onload">
  5. <Layouts>
  6. <Layout>
  7. <Div id="grp_srch" taborder="1" position="absolute 0 25 1195 65" class="div_SA" anchor="left top right"/>
  8. <Static text="환자Comment관리" position="absolute 0 0 160 25" id="caption19" class="tit_1"/>
  9. <Shape position="absolute 0 89 1195 95" id="line2" class="line_10" anchor="left top right"/>
  10. <Button position="absolute 1132 35 1188 57" id="btn_sea" class="btn1" text="조회" anchor="top right" onclick="btn_sea_onclick"/>
  11. <Button position="absolute 1087 67 1140 89" id="btn_grdadd" class="btn2" text="행추가" anchor="top right" onclick="btn_grdadd_onclick"/>
  12. <Button position="absolute 1142 67 1195 89" id="btn_grddel" class="btn2" text="행삭제" anchor="top right" onclick="btn_grddel_onclick"/>
  13. <Button position="absolute 1139 740 1195 762" id="btn_save" class="btn4" text="저장" anchor="right bottom" onclick="btn_save_onclick"/>
  14. <Static text="환자Comment코드:" position="absolute 20 38 159 55" id="caption1" class="search_name"/>
  15. <Edit position="absolute 165 37 280 56" id="ipt_basecd" class="input_search" onkeyup="ipt_basecd_onkeyup"/>
  16. <Grid position="absolute 0 94 1195 736" id="grd_cnclcode" binddataset="ds_main_cnclcodelist_cnclcode" anchor="all" selecttype="multirow" autoenter="key">
  17. <Formats>
  18. <Format id="default">
  19. <Columns>
  20. <Column size="25" band="left"/>
  21. <Column size="100"/>
  22. <Column size="144"/>
  23. <Column size="432"/>
  24. <Column size="463"/>
  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/>
  33. <Cell col="1" text="순번 "/>
  34. <Cell col="2" text="Comment코드"/>
  35. <Cell col="3" text="환자Comment"/>
  36. <Cell col="4" text="비고"/>
  37. <Cell col="5" text="Comment구분"/>
  38. </Band>
  39. <Band id="body">
  40. <Cell celltype="head"/>
  41. <Cell col="1" displaytype="text" edittype="text" style="align:middle;" text="bind:sortno" editlimit="4"/>
  42. <Cell col="2" displaytype="text" edittype="text" editfilter="upper" text="bind:basecd" editlimit="12"/>
  43. <Cell col="3" displaytype="text" edittype="text" text="bind:basecdflagdesc" editlimit="300"/>
  44. <Cell col="4" displaytype="text" edittype="text" text="bind:basecdcnts" editlimit="3000"/>
  45. <Cell col="5" displaytype="combo" edittype="combo" text="bind:basecdflag"/>
  46. </Band>
  47. </Format>
  48. </Formats>
  49. </Grid>
  50. </Layout>
  51. </Layouts>
  52. <Objects>
  53. <Dataset id="ds_main_cnclcodelist_cnclcode" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  54. <ColumnInfo>
  55. <Column id="sortno" type="STRING" size="256"/>
  56. <Column id="basecd" type="STRING" size="256"/>
  57. <Column id="basecdflagdesc" type="STRING" size="256"/>
  58. <Column id="basecdcnts" type="STRING" size="256"/>
  59. <Column id="basecdflag" type="STRING" size="256"/>
  60. </ColumnInfo>
  61. <Rows>
  62. <Row>
  63. <Col id="sortno"/>
  64. <Col id="basecd"/>
  65. <Col id="basecdflagdesc"/>
  66. <Col id="basecdcnts"/>
  67. <Col id="basecdflag"/>
  68. </Row>
  69. </Rows>
  70. </Dataset>
  71. <Dataset id="ds_send_globalinstance" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  72. <ColumnInfo>
  73. <Column id="instance1" type="STRING" size="256"/>
  74. </ColumnInfo>
  75. <Rows>
  76. <Row>
  77. <Col id="instance1"/>
  78. </Row>
  79. </Rows>
  80. </Dataset>
  81. <Dataset id="ds_send_req_data" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep"/>
  82. <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  83. <ColumnInfo>
  84. <Column id="cnclcd" type="STRING" size="256"/>
  85. </ColumnInfo>
  86. <Rows>
  87. <Row>
  88. <Col id="cnclcd"/>
  89. </Row>
  90. </Rows>
  91. </Dataset>
  92. <Dataset id="ds_hidden" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  93. <ColumnInfo>
  94. <Column id="count" type="STRING" size="256"/>
  95. </ColumnInfo>
  96. </Dataset>
  97. <Dataset id="ds_init" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  98. <ColumnInfo>
  99. <Column id="init" type="STRING" size="256"/>
  100. </ColumnInfo>
  101. <Rows>
  102. <Row>
  103. <Col id="init"/>
  104. </Row>
  105. </Rows>
  106. </Dataset>
  107. </Objects>
  108. <Bind>
  109. <BindItem id="item0" compid="ipt_basecd" propid="value" datasetid="ds_send" columnid="cnclcd"/>
  110. </Bind>
  111. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  112. * System Name :
  113. * Job Name :
  114. * Creator :
  115. * Make Date : 2017-12-04
  116. * Description :
  117. *---------------------------------------------------------------------------------------
  118. * Modify Date Modifier Modify Description
  119. *---------------------------------------------------------------------------------------
  120. * 2017-06-19 Live Converter TF->XP
  121. *
  122. *---------------------------------------------------------------------------------------
  123. ****************************************************************************************/
  124. //=======================================================================================
  125. // Lib Include
  126. //---------------------------------------------------------------------------------------
  127. include "com_commonxp::comm_main.xjs";
  128. include "ast_examcurexp::AEZ0001.xjs";
  129. //=======================================================================================
  130. // Global Form Variable
  131. //---------------------------------------------------------------------------------------
  132. var arErrorCode = new HashArray();
  133. //=======================================================================================
  134. // Function
  135. //---------------------------------------------------------------------------------------
  136. /*-**************************************************************************************
  137. * Argument : N/A
  138. * Description : 조회
  139. ****************************************************************************************/
  140. function fn_TRAEB04001() {
  141. ds_main_cnclcodelist_cnclcode.clearData();
  142. dsf_createDsRow("ds_req", [
  143. {col:"suppdeptcd", type:"STRING", size:256, val:ds_send_globalinstance.getColumn(0,"instance1")}
  144. , {col:"basecd", type:"STRING", size:256, val:ds_send.getColumn(0, "cnclcd")}
  145. ]);
  146. var oParam = {};
  147. oParam.id = "TRAEB04001";
  148. oParam.service = "examcurebaseapp.CnclCode";
  149. oParam.method = "reqGetCmtCodeList";
  150. oParam.inds = "req=ds_req";
  151. oParam.outds = "ds_main_cnclcodelist_cnclcode=item";
  152. oParam.async = false;
  153. //oParam.callback = "cf_TRAEB04001";
  154. tranf_submit(oParam);
  155. }
  156. //=======================================================================================
  157. // Event
  158. //---------------------------------------------------------------------------------------
  159. /****************************************************************************************
  160. * Components : Form
  161. * Description : 화면 처음 초기화시 폼초기화
  162. ****************************************************************************************/
  163. function SMAEB04000_onload(obj:Form, e:LoadEventInfo) {
  164. frmf_initForm(obj);
  165. //grdf_initGrid(grd_XXX);
  166. //grdf_setGridSort(grd_XXX);
  167. grdf_setRowTypeIcon(grd_cnclcode, 0);
  168. lf_aezfSetSuppDeptcd();
  169. ds_send_globalinstance.setColumn(0,"instance1",frmf_getParameter("AST_DEPTCD"));
  170. ds_main_cnclcodelist_cnclcode.clearData();
  171. ipt_basecd.setFocus();
  172. }
  173. /****************************************************************************************
  174. * Components : Button
  175. * Description : 조회
  176. ****************************************************************************************/
  177. function btn_sea_onclick(obj:Button, e:ClickEventInfo) {
  178. fn_TRAEB04001();
  179. }
  180. /****************************************************************************************
  181. * Components : Button
  182. * Description : 행추가
  183. ****************************************************************************************/
  184. function btn_grdadd_onclick(obj:Button, e:ClickEventInfo) {
  185. var irow = ds_main_cnclcodelist_cnclcode.addRow();
  186. grd_cnclcode.row = irow;
  187. grd_cnclcode.vscrollbar.pos = irow;
  188. ds_main_cnclcodelist_cnclcode.setColumn( irow , "basecdflag", "Y");
  189. }
  190. /****************************************************************************************
  191. * Components : Button
  192. * Description : 행삭제
  193. ****************************************************************************************/
  194. function btn_grddel_onclick(obj:Button, e:ClickEventInfo) {
  195. var objGrd = grd_cnclcode;
  196. var selectedRows = grdf_getSelectedRows(objGrd);
  197. for (var i = selectedRows.length-1; i >= 0; i--){
  198. if( objects[objGrd.binddataset].getRowType(selectedRows[i]) == 2 ) {
  199. objects[objGrd.binddataset].deleteRow(selectedRows[i]);
  200. }else{
  201. grdf_setStatus(objGrd, "D", [selectedRows[i]]);
  202. }
  203. }
  204. }
  205. /****************************************************************************************
  206. * Components : Button
  207. * Description : 저장
  208. ****************************************************************************************/
  209. function btn_save_onclick(obj:Button, e:ClickEventInfo) {
  210. if(!frmf_chkMdtGrid(grd_cnclcode, [2], ["코드"])) return;
  211. if ( sysf_messageBox("","Q002")==6 ) {
  212. var dsUpdate = grdf_getGridUpdateData(grd_cnclcode, "all");
  213. grdf_setStatusColumn(dsUpdate, "m");
  214. if( utlf_isNull(dsUpdate) || dsUpdate.rowcount == 0 ) {
  215. sysf_messageBox("업데이트 정보가 없습니다.", "I");
  216. } else {
  217. ds_send_req_data.copyData(dsUpdate, true);
  218. dsf_setFixVal(ds_send_req_data, "suppdeptcd:"+ds_send_globalinstance.getColumn(0,"instance1"));
  219. var oParam = {};
  220. oParam.id = "TXAEB04001";
  221. oParam.service = "examcurebaseapp.CnclCode";
  222. oParam.method = "reqExeCmtCodeList";
  223. oParam.inds = "req=ds_send_req_data";
  224. oParam.outds = "ds_hidden=item";
  225. oParam.async = false;
  226. //oParam.callback = "cf_TXAEB04001";
  227. tranf_submit(oParam);
  228. }
  229. }
  230. fn_TRAEB04001();
  231. }
  232. /****************************************************************************************
  233. * Components : Edit
  234. * Description : 조건입력후 조회
  235. ****************************************************************************************/
  236. function ipt_basecd_onkeyup(obj:Edit, e:KeyEventInfo)
  237. {
  238. if(e.keycode == 13) {
  239. obj.updateToDataset();
  240. btn_sea.click();
  241. }
  242. }
  243. ]]></Script>
  244. </Form>
  245. </FDL>