SMAEB00700_소견명관리.xfdl 8.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SMAEB00700" position="absolute 0 0 1199 805" titletext="Untitle" oninit="SMAEB00700_oninit" onload="SMAEB00700_onload">
  5. <Layouts>
  6. <Layout>
  7. <Grid position="absolute 0 101 1195 772" id="grd_opinlist" binddataset="ds_main_opinlist_item" autoenter="key" cellsizingtype="col" selecttype="multirow">
  8. <Formats>
  9. <Format id="default">
  10. <Columns>
  11. <Column size="21" band="left"/>
  12. <Column size="100"/>
  13. <Column size="205"/>
  14. <Column size="446"/>
  15. <Column size="432"/>
  16. <Column size="0"/>
  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. <Cell col="5"/>
  29. </Band>
  30. <Band id="body">
  31. <Cell celltype="head"/>
  32. <Cell col="1" displaytype="text" edittype="text" text="bind:sortno" editautoselect="true"/>
  33. <Cell col="2" displaytype="text" edittype="text" text="bind:basecd" editautoselect="true"/>
  34. <Cell col="3" displaytype="text" edittype="text" text="bind:basecdflagdesc" editautoselect="true"/>
  35. <Cell col="4" displaytype="text" edittype="text" text="bind:basecdcnts" editautoselect="true"/>
  36. <Cell col="5" text="bind:basesuppdeptcd"/>
  37. </Band>
  38. </Format>
  39. </Formats>
  40. </Grid>
  41. <Div id="grp_sea" taborder="1" position="absolute 0 24 1195 64" class="div_SA" anchor="left top right">
  42. <Layouts>
  43. <Layout>
  44. <Static id="caption25" text="코드 :" class="search_name" position="absolute 9 12 95 29"/>
  45. <Edit id="ipt_basecd" taborder="1" class="input_search" position="absolute 70 10 170 29" autoselect="true"/>
  46. <Button id="button61" taborder="2" class="icon_search" position="absolute 175 11 191 27" onclick="grp_sea_button61_onclick"/>
  47. <Shape id="line13" linetype="vertical" class="line_4" position="absolute 1114 9 1120 31" anchor="top right"/>
  48. <Button id="btn_sea" taborder="3" text="조회" class="btn1" position="absolute 1124 9 1180 31" anchor="top right" onclick="grp_sea_btn_sea_onclick"/>
  49. </Layout>
  50. </Layouts>
  51. </Div>
  52. <Shape position="absolute 0 96 1195 102" linetype="horizontal" id="line2" class="line_10" anchor="left top right"/>
  53. <Button position="absolute 1088 77 1141 96" id="btn_grdadd" class="btn2" text="행추가" anchor="top right" onclick="btn_grdadd_onclick"/>
  54. <Button position="absolute 1142 77 1195 96" id="btn_grddel" class="btn2" text="행삭제" anchor="top right" onclick="btn_grddel_onclick"/>
  55. <Button position="absolute 1139 774 1195 796" id="btn_save" class="btn4" text="저장" anchor="right bottom" onclick="btn_save_onclick"/>
  56. <Static id="caption19" text="소견명관리" class="tit_1" position="absolute 0 0 165 24"/>
  57. </Layout>
  58. </Layouts>
  59. <Objects>
  60. <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  61. <ColumnInfo>
  62. <Column id="basecd" type="STRING" size="256"/>
  63. <Column id="hbasecdflag" type="STRING" size="256"/>
  64. </ColumnInfo>
  65. <Rows>
  66. <Row/>
  67. </Rows>
  68. </Dataset>
  69. <Dataset id="ds_main_opinlist_item" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  70. <ColumnInfo>
  71. <Column id="sortno" type="STRING" size="256" sumtext="순번"/>
  72. <Column id="basecd" type="STRING" size="256" sumtext="소견명코드"/>
  73. <Column id="basecdflagdesc" type="STRING" size="256" sumtext="기본코드구분"/>
  74. <Column id="basecdcnts" type="STRING" size="256" sumtext="소견명코드내용"/>
  75. <Column id="basesuppdeptcd" type="STRING" size="256" sumtext="지원부서코드"/>
  76. <Column id="basecdflag" type="STRING" size="256" sumtext="소견명코드구분"/>
  77. </ColumnInfo>
  78. </Dataset>
  79. <Dataset id="ds_send_req_data" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  80. </Objects>
  81. <Bind>
  82. <BindItem id="item0" compid="grp_sea.ipt_basecd" propid="value" datasetid="ds_send" columnid="basecd"/>
  83. </Bind>
  84. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  85. * System Name :
  86. * Job Name :
  87. * Creator :
  88. * Make Date : 2015-11-13
  89. * Description :
  90. *---------------------------------------------------------------------------------------
  91. * Modify Date Modifier Modify Description
  92. *---------------------------------------------------------------------------------------
  93. * 2015-11-13 Live Converter TF->XP
  94. *
  95. *---------------------------------------------------------------------------------------
  96. ****************************************************************************************/
  97. include "com_commonxp::comm_main.xjs";
  98. include "ast_examcurexp::AEZ0001.xjs";
  99. var vSuppdeptcd;
  100. function SMAEB00700_oninit(obj:Form, e:InitEventInfo)
  101. {
  102. frmf_initForm(obj);
  103. }
  104. function SMAEB00700_onload(obj:Form, e:LoadEventInfo)
  105. {
  106. grdf_initGrid(grd_opinlist);
  107. grdf_setRowTypeIcon(grd_opinlist, 0);
  108. lf_aezfSetSuppDeptcd();
  109. vSuppdeptcd = frmf_getPrestDeptCd();
  110. dsf_makeValue(ds_send, "basesuppdeptcd", "string", vSuppdeptcd);
  111. ds_main_opinlist_item.clearData();
  112. grp_sea.ipt_basecd.setFocus();
  113. }
  114. function grp_sea_button61_onclick(obj:Button, e:ClickEventInfo)
  115. {
  116. grp_sea.btn_sea.click();
  117. }
  118. function grp_sea_btn_sea_onclick(obj:Button, e:ClickEventInfo)
  119. {
  120. dsf_setFixVal(ds_send, "hbasecdflag:H");
  121. var oParam = {};
  122. oParam.id = "TRAEB00701";
  123. oParam.service = "examcurebaseapp.OpinCode";
  124. oParam.method = "reqGetOpinCodeList";
  125. oParam.inds = "req=ds_send";
  126. oParam.outds = "ds_main_opinlist_item=item";
  127. oParam.async = false;
  128. //oParam.callback = "cf_TRAEB00701";
  129. tranf_submit(oParam);
  130. }
  131. function btn_grdadd_onclick(obj:Button, e:ClickEventInfo)
  132. {
  133. var cnt = ds_main_opinlist_item.addRow();
  134. ds_main_opinlist_item.setColumn(cnt, "basesuppdeptcd", ds_send.getColumn(0, "basesuppdeptcd"));
  135. }
  136. function btn_grddel_onclick(obj:Button, e:ClickEventInfo)
  137. {
  138. var rows = grdf_getSelectedRows(grd_opinlist);
  139. for(var i = rows.length-1; i >= 0; i--)
  140. {
  141. var m_row = rows[i];
  142. if(ds_main_opinlist_item.getRowType(m_row) == 2)
  143. {
  144. ds_main_opinlist_item.deleteRow(m_row);
  145. }
  146. else
  147. {
  148. ds_main_opinlist_item.updatecontrol = false;
  149. ds_main_opinlist_item.setRowType(m_row, "d");
  150. ds_main_opinlist_item.updatecontrol = true;
  151. }
  152. }
  153. }
  154. function btn_save_onclick(obj:Button, e:ClickEventInfo)
  155. {
  156. if ( sysf_messageBox("","Q002")==6 )
  157. {
  158. var update = grdf_getGridUpdateData(grd_opinlist);
  159. if(update.rowcount == 0)
  160. {
  161. sysf_messageBox("업데이트 정보가 없습니다.", "I");
  162. return 0;
  163. }
  164. else
  165. {
  166. alert(ds_send.getColumn(0, "basesuppdeptcd"));
  167. grdf_setStatusColumn(update, "m");
  168. ds_send_req_data.copyData(update, true);
  169. dsf_setTypeFormat(ds_send_req_data, "sortno:INT");
  170. dsf_setFixVal(ds_send_req_data, "hbasecdflag:H");
  171. var oParam = {};
  172. oParam.id = "TXAEB00701";
  173. oParam.service = "examcurebaseapp.OpinCode";
  174. oParam.method = "reqExeOpinCodeList";
  175. oParam.inds = "req=ds_send_req_data";
  176. oParam.outds = "ds_=item";
  177. oParam.async = false;
  178. //oParam.callback = "cf_TXAEB00701";
  179. tranf_submit(oParam);
  180. }
  181. }
  182. dsf_setFixVal(ds_send, "hbasecdflag:H");
  183. var oParam = {};
  184. oParam.id = "TRAEB00701";
  185. oParam.service = "examcurebaseapp.OpinCode";
  186. oParam.method = "reqGetOpinCodeList";
  187. oParam.inds = "req=ds_send";
  188. oParam.outds = "ds_main_opinlist_item=item";
  189. oParam.async = false;
  190. //oParam.callback = "cf_TRAEB00701";
  191. tranf_submit(oParam);
  192. }
  193. ]]></Script>
  194. </Form>
  195. </FDL>