SMAHA03180_사전질의코드관리.xfdl 9.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SMAHA03180" position="absolute 0 0 1196 796" titletext="주의사항코드 관리" oninit="SMAHA03180_oninit" onload="SMAHA03180_onload">
  5. <Layouts>
  6. <Layout>
  7. <Static id="caption6" text="주의사항 관리" class="tit_1" position="absolute 0 0 155 25"/>
  8. <Grid id="grd_cautlst" taborder="1" binddataset="ds_main_cautlst_item" autoenter="select" useinputpanel="false" cellsizingtype="col" autofittype="col" position="absolute 0 94 1195 767" anchor="all">
  9. <Formats>
  10. <Format id="default">
  11. <Columns>
  12. <Column size="22"/>
  13. <Column size="104"/>
  14. <Column size="876"/>
  15. <Column size="91"/>
  16. <Column size="80"/>
  17. </Columns>
  18. <Rows>
  19. <Row size="24" band="head"/>
  20. <Row size="24"/>
  21. </Rows>
  22. <Band id="head">
  23. <Cell/>
  24. <Cell col="1" text="코드"/>
  25. <Cell col="2" text="주의사항 내용"/>
  26. <Cell col="3" text="남여구분"/>
  27. <Cell col="4" text="사용여부"/>
  28. </Band>
  29. <Band id="body">
  30. <Cell celltype="head"/>
  31. <Cell col="1" style="align:left middle;padding:0 0 0 3;" text="bind:caucd" enable="false"/>
  32. <Cell col="2" displaytype="text" edittype="text" style="align:left middle;padding:0 0 0 3;" text="bind:caucnts"/>
  33. <Cell col="3" displaytype="combo" edittype="combo" style="align:left middle;padding:0 0 0 3;" text="bind:gndrflag" combodataset="ds_cmb_gndrflag" combocodecol="value" combodatacol="label"/>
  34. <Cell col="4" displaytype="checkbox" edittype="checkbox" text="bind:useyn" expr="expr:useyn == 'Y' ? 1 : 0"/>
  35. </Band>
  36. </Format>
  37. </Formats>
  38. </Grid>
  39. <Div id="grp_sea" anchor="left top right" taborder="2" class="div_SA" position="absolute 0 25 1195 65">
  40. <Layouts>
  41. <Layout>
  42. <Static id="caption2" text="항목코드 :" class="search_name" position="absolute 16 12 103 29"/>
  43. <Edit id="ipt_cautcnts" taborder="1" class="input_search" position="absolute 342 11 682 30" autoselect="true" autoskip="true"/>
  44. <Button id="btn_search" taborder="2" text="조회" class="btn1" position="absolute 1123 10 1179 32" anchor="top right" onclick="grp_sea_btn_search_onclick"/>
  45. <Shape id="line13" linetype="vertical" class="line_4" position="absolute 1104 10 1110 32" anchor="top right"/>
  46. <Static id="caption5" text="항목내용 :" class="search_name" position="absolute 250 12 337 29"/>
  47. <Edit id="input1" taborder="3" class="input_search" position="absolute 107 11 230 30" autoselect="true" autoskip="true"/>
  48. </Layout>
  49. </Layouts>
  50. </Div>
  51. <Static id="caption1" text="주의사항 코드" class="tit_2" position="absolute 0 73 116 95"/>
  52. <Shape id="line1" class="line_10" position="absolute 0 89 1195 95" anchor="left top right"/>
  53. <Button id="btn_grddel" taborder="3" text="행삭제" class="btn2" position="absolute 1142 67 1195 89" anchor="top right" onclick="btn_grddel_onclick"/>
  54. <Button id="btn_grdadd" taborder="4" text="행추가" class="btn2" position="absolute 1087 67 1140 89" anchor="top right" onclick="btn_grdadd_onclick"/>
  55. <Button id="btn_save" taborder="5" text="저장" class="btn4" position="absolute 1139 770 1195 792" anchor="right bottom" onclick="btn_save_onclick"/>
  56. </Layout>
  57. </Layouts>
  58. <Objects>
  59. <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  60. <ColumnInfo>
  61. <Column id="srchcautcd" type="STRING" size="256"/>
  62. <Column id="srchcautcnts" type="STRING" size="256"/>
  63. <Column id="anscautcd" type="STRING" size="256"/>
  64. </ColumnInfo>
  65. <Rows>
  66. <Row>
  67. <Col id="srchcautcd"/>
  68. <Col id="srchcautcnts"/>
  69. <Col id="anscautcd"/>
  70. </Row>
  71. </Rows>
  72. </Dataset>
  73. <Dataset id="ds_main_cautlst_item" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false" oncolumnchanged="ds_main_cautlst_item_oncolumnchanged">
  74. <ColumnInfo>
  75. <Column id="selyn" type="STRING" size="256" sumtext="주의사항코드"/>
  76. <Column id="caucd" type="STRING" size="256" sumtext="주의사항코드"/>
  77. <Column id="caucnts" type="STRING" size="256" sumtext="주의사항내용"/>
  78. <Column id="gndrflag" type="STRING" size="256" sumtext="성별"/>
  79. <Column id="useyn" type="STRING" size="256" sumtext="사용여부"/>
  80. </ColumnInfo>
  81. </Dataset>
  82. <Dataset id="ds_cmb_gndrflag" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  83. <ColumnInfo>
  84. <Column id="label" type="STRING" size="256"/>
  85. <Column id="value" type="STRING" size="256"/>
  86. </ColumnInfo>
  87. <Rows>
  88. <Row>
  89. <Col id="label">공통</Col>
  90. <Col id="value">C</Col>
  91. </Row>
  92. <Row>
  93. <Col id="label">남자</Col>
  94. <Col id="value">M</Col>
  95. </Row>
  96. <Row>
  97. <Col id="label">여자</Col>
  98. <Col id="value">F</Col>
  99. </Row>
  100. </Rows>
  101. </Dataset>
  102. </Objects>
  103. <Bind>
  104. <BindItem id="item0" compid="grp_sea.input1" propid="value" datasetid="ds_send" columnid="srchcautcd"/>
  105. <BindItem id="item1" compid="grp_sea.ipt_cautcnts" propid="value" datasetid="ds_send" columnid="srchcautcnts"/>
  106. </Bind>
  107. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  108. * System Name :
  109. * Job Name :
  110. * Creator :
  111. * Make Date : 2015-11-13
  112. * Description :
  113. *---------------------------------------------------------------------------------------
  114. * Modify Date Modifier Modify Description
  115. *---------------------------------------------------------------------------------------
  116. * 2015-11-13 Live Converter TF->XP
  117. *
  118. *---------------------------------------------------------------------------------------
  119. ****************************************************************************************/
  120. include "com_commonxp::comm_main.xjs";
  121. include "ast_healexamxp::AHA001.xjs";
  122. include "ast_healthexambasexp::healcombolist.xjs";
  123. var arErrorCode = new HashArray();
  124. function SMAHA03180_oninit(obj:Form, e:InitEventInfo)
  125. {
  126. frmf_initForm(obj);
  127. }
  128. function SMAHA03180_onload(obj:Form, e:LoadEventInfo)
  129. {
  130. grdf_initGrid(grd_cautlst);
  131. grdf_setRowTypeIcon(grd_cautlst, 0);
  132. fGetcautlst();
  133. }
  134. function fGetcautlst()
  135. {
  136. var oParam = {};
  137. oParam.id = "TRAHA03171";
  138. oParam.service = "healthexambaseapp.CautCode";
  139. oParam.method = "reqGetCautCodeList";
  140. oParam.inds = "req=ds_send";
  141. oParam.outds = "ds_main_cautlst_item=item";
  142. oParam.async = false;
  143. //oParam.callback = "cf_TRAHA03171";
  144. tranf_submit(oParam);
  145. }
  146. function grp_sea_btn_search_onclick(obj:Button, e:ClickEventInfo)
  147. {
  148. ds_main_cautlst_item.clearData();
  149. fGetcautlst();
  150. }
  151. function ds_main_cautlst_item_oncolumnchanged(obj:Dataset, e:DSColChangeEventInfo)
  152. {
  153. if(e.columnid == "useyn")
  154. {
  155. obj.setColumn(e.row, "useyn", (e.newvalue == "Y" || e.newvalue == 1) ? "Y" : "N");
  156. }
  157. }
  158. function btn_grdadd_onclick(obj:Button, e:ClickEventInfo)
  159. {
  160. var rowNum = ds_main_cautlst_item.addRow();
  161. ds_main_cautlst_item.setColumn(rowNum, "gndrflag", "C");
  162. ds_main_cautlst_item.setColumn(rowNum, "useyn", "Y");
  163. }
  164. function btn_grddel_onclick(obj:Button, e:ClickEventInfo)
  165. {
  166. if(ds_main_cautlst_item.getRowType(ds_main_cautlst_item.rowposition) == 2)
  167. {
  168. ds_main_cautlst_item.deleteRow(ds_main_cautlst_item.rowposition);
  169. }
  170. else
  171. {
  172. ds_main_cautlst_item.updatecontrol = false;
  173. ds_main_cautlst_item.setRowType(ds_main_cautlst_item.rowposition, "d");
  174. ds_main_cautlst_item.updatecontrol = true;
  175. }
  176. }
  177. function btn_save_onclick(obj:Button, e:ClickEventInfo)
  178. {
  179. fSavecautCd();
  180. fGetcautlst();
  181. }
  182. function fSavecautCd()
  183. {
  184. if( sysf_messageBox("주의사항 정보를","Q002") == 6)
  185. {
  186. var oParam = {};
  187. oParam.id = "TXAHA03171";
  188. oParam.service = "healthexambaseapp.CautCode";
  189. oParam.method = "reqExeCautCodeList";
  190. oParam.inds = "cautlst=ds_main_cautlst_item:u";
  191. oParam.outds = "ds_=item";
  192. oParam.typeStr = "m";
  193. oParam.async = false;
  194. oParam.callback = "cf_TXAHA03171";
  195. tranf_submit(oParam);
  196. if(arErrorCode.pop("TXAHA03171") > -1)
  197. {
  198. fGetcautlst();
  199. }
  200. }
  201. }
  202. function cf_TXAHA03171(sSvcId, nErrorCode, sErrorMsg)
  203. {
  204. arErrorCode.push(sSvcId, nErrorCode);
  205. if(nErrorCode < 0) return;
  206. }
  207. ]]></Script>
  208. </Form>
  209. </FDL>