SMAHA03230_사용자별기본정보관리.xfdl 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SMAHA03230" position="absolute 0 0 1196 779" titletext="사용자별 기본정보 관리" onload="SMAHA03230_onload">
  5. <Layouts>
  6. <Layout>
  7. <Static id="caption6" text="사용자별 기본정보 관리" class="tit_1" position="absolute 0 0 210 25"/>
  8. <Div id="grp_sea" taborder="1" position="absolute 0 25 1194 65" class="div_SA" anchor="left top right">
  9. <Layouts>
  10. <Layout>
  11. <Button id="btn_search" taborder="1" text="조회" class="btn1" position="absolute 1123 10 1179 32" anchor="top right" onclick="grp_sea_btn_search_onclick"/>
  12. <Shape id="line13" linetype="vertical" class="line_4" position="absolute 1104 10 1110 32" anchor="top right"/>
  13. <Combo id="cmb_srchhealexamgubun" taborder="2" innerdataset="@ds_init_A0068" codecolumn="cdid" datacolumn="cdnm" position="absolute 100 12 215 31" anchor="default"/>
  14. <Static id="caption45" text="건진구분 :" class="search_name" position="absolute 10 13 99 30" anchor="default"/>
  15. <Combo id="combo1" taborder="3" innerdataset="@ds_init_A0088" codecolumn="cdid" datacolumn="cdnm" position="absolute 320 12 435 31" anchor="default"/>
  16. <Static id="caption1" text="건진분류 :" class="search_name" position="absolute 230 13 319 30" anchor="default"/>
  17. </Layout>
  18. </Layouts>
  19. </Div>
  20. <Shape id="line3" class="line_10" position="absolute 0 89 1194 95" anchor="left top right"/>
  21. <Grid id="grd_stduser" taborder="2" binddataset="ds_main_stduserInfo_item" useinputpanel="false" position="absolute 0 94 1194 749" selecttype="multirow" autoenter="key" anchor="all">
  22. <Formats>
  23. <Format id="default">
  24. <Columns>
  25. <Column size="25" band="left"/>
  26. <Column size="80"/>
  27. <Column size="90"/>
  28. <Column size="0"/>
  29. <Column size="120"/>
  30. <Column size="120"/>
  31. <Column size="140"/>
  32. </Columns>
  33. <Rows>
  34. <Row size="24" band="head"/>
  35. <Row size="24"/>
  36. </Rows>
  37. <Band id="head">
  38. <Cell/>
  39. <Cell col="1" text="건진구분"/>
  40. <Cell col="2" text="사용자ID"/>
  41. <Cell col="3" text="olduserid"/>
  42. <Cell col="4" text="사용자명"/>
  43. <Cell col="5" text="건진분류"/>
  44. <Cell col="6" text="진료과"/>
  45. </Band>
  46. <Band id="body">
  47. <Cell celltype="head"/>
  48. <Cell col="1" displaytype="combo" edittype="combo" text="bind:healexamflag" combodataset="ds_init_A0068" combocodecol="cdid" combodatacol="cdnm"/>
  49. <Cell col="2" displaytype="text" edittype="text" text="bind:userid"/>
  50. <Cell col="3" displaytype="text" edittype="text" text="bind:olduserid"/>
  51. <Cell col="4" displaytype="text" edittype="none" text="bind:usernm"/>
  52. <Cell col="5" displaytype="combo" edittype="combo" text="bind:healexamgubun" combodataset="ds_init_A0088" combocodecol="cdid" combodatacol="cdnm"/>
  53. <Cell col="6" displaytype="combo" edittype="combo" text="bind:orddeptcd" combodataset="ds_init_baseinfo_orddeptcdlst" combocodecol="cdid" combodatacol="cdnm"/>
  54. </Band>
  55. </Format>
  56. </Formats>
  57. </Grid>
  58. <Button id="btn_grddel" taborder="3" text="행삭제" class="btn2" position="absolute 1141 67 1194 89" onclick="btn_grddel_onclick" anchor="top right"/>
  59. <Button id="btn_grdadd" taborder="4" text="행추가" class="btn2" position="absolute 1086 67 1139 89" onclick="btn_grdadd_onclick" anchor="top right"/>
  60. <Div id="grp_btn" taborder="5" position="absolute 0 748 1195 775" anchor="left right bottom">
  61. <Layouts>
  62. <Layout>
  63. <Button id="btn_save" taborder="0" text="저장" class="btn4" position="absolute 1138 5 1194 27" anchor="right bottom" onclick="grp_btn_btn_save_onclick"/>
  64. </Layout>
  65. </Layouts>
  66. </Div>
  67. </Layout>
  68. </Layouts>
  69. <Objects>
  70. <Dataset id="ds_init_baseinfo_orddeptcdlst" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep"/>
  71. <Dataset id="ds_main_stduserInfo_item" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  72. <ColumnInfo>
  73. <Column id="healexamflag" type="STRING" size="256"/>
  74. <Column id="userid" type="STRING" size="256"/>
  75. <Column id="olduserid" type="STRING" size="256"/>
  76. <Column id="usernm" type="STRING" size="256"/>
  77. <Column id="healexamgubun" type="STRING" size="256"/>
  78. <Column id="orddeptcd" type="STRING" size="256"/>
  79. </ColumnInfo>
  80. <Rows>
  81. <Row>
  82. <Col id="healexamflag"/>
  83. <Col id="userid"/>
  84. <Col id="olduserid"/>
  85. <Col id="usernm"/>
  86. <Col id="healexamgubun"/>
  87. <Col id="orddeptcd"/>
  88. </Row>
  89. </Rows>
  90. </Dataset>
  91. <Dataset id="ds_send_srchstduser" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  92. <ColumnInfo>
  93. <Column id="srchhealexamflag" type="STRING" size="256"/>
  94. <Column id="srchhealexamgubun" type="STRING" size="256"/>
  95. </ColumnInfo>
  96. <Rows>
  97. <Row>
  98. <Col id="srchhealexamflag"/>
  99. <Col id="srchhealexamgubun"/>
  100. </Row>
  101. </Rows>
  102. </Dataset>
  103. <Dataset id="ds_init_A0068" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  104. <Dataset id="ds_init_A0088" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  105. <Dataset id="ds_hidden" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  106. </Objects>
  107. <Bind>
  108. <BindItem id="item0" compid="grp_sea.cmb_srchhealexamgubun" propid="value" datasetid="ds_send_srchstduser" columnid="srchhealexamflag"/>
  109. <BindItem id="item1" compid="grp_sea.combo1" propid="value" datasetid="ds_send_srchstduser" columnid="srchhealexamgubun"/>
  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_commonxp::AST.xjs";
  129. //include "com_zipcodexp::ZBP001.xjs";
  130. //include "ast_healexamxp::AHA001.xjs";
  131. //include "ast_healexamxp::healexam.xjs";
  132. include "ast_healthexambasexp::healcombolist.xjs";
  133. //=======================================================================================
  134. // Global Form Variable
  135. //---------------------------------------------------------------------------------------
  136. var arErrorCode = new HashArray();
  137. //=======================================================================================
  138. // Function
  139. //---------------------------------------------------------------------------------------
  140. /*-**************************************************************************************
  141. * Argument : N/A
  142. * Description : 기초코드 조회
  143. ****************************************************************************************/
  144. function fGetBaseInfo(){
  145. var arrParam = [{dsNm: "ds_init_A0068", cdGrpId: "A0068"}
  146. ,{dsNm: "ds_init_A0088", cdGrpId: "A0088"}
  147. ];
  148. appf_getCodeList(arrParam);
  149. var arrParam2 = [{dsNm: "ds_init_baseinfo_orddeptcdlst", cdGrpId: "G", cdId:"G26"}];
  150. healGetComboList(arrParam2); //healcombolist.xjs
  151. }
  152. /*-**************************************************************************************
  153. * Argument : N/A
  154. * Description : 초기화
  155. ****************************************************************************************/
  156. function fInitInfo(){
  157. ds_main_stduserInfo_item.clearData();
  158. }
  159. /*-**************************************************************************************
  160. * Argument : N/A
  161. * Description : 조회
  162. ****************************************************************************************/
  163. function fGetStdUser(){
  164. ds_main_stduserInfo_item.clearData();
  165. dsf_createDsRow("ds_req", [
  166. {col:"srchhealexamflag", type:"STRING", size:256, val:ds_send_srchstduser.getColumn(0,"srchhealexamflag")}
  167. , {col:"srchhealexamgubun", type:"STRING", size:256, val:ds_send_srchstduser.getColumn(0,"srchhealexamgubun")}
  168. , {col:"srchdeptcd", type:"STRING", size:256, val:""}
  169. , {col:"srchuserid", type:"STRING", size:256, val:""}
  170. ]);
  171. var oParam = {};
  172. oParam.id = "TRAHA03230";
  173. oParam.service = "healthexambaseapp.ComCode";
  174. oParam.method = "reqGetStdUser";
  175. oParam.inds = "req=ds_req";
  176. oParam.outds = "ds_main_stduserInfo_item=item";
  177. oParam.async = false;
  178. //oParam.callback = "cf_TRAHA03230";
  179. tranf_submit(oParam);
  180. }
  181. /*-**************************************************************************************
  182. * Argument : N/A
  183. * Description : 저장
  184. ****************************************************************************************/
  185. function fSaveStdUser(){
  186. if(sysf_messageBox("기준정보를","Q002") == 6){
  187. dsf_createDs("ds_send_savedata");
  188. var dsUpdate = grdf_getGridUpdateData(grd_stduser, "all");
  189. grdf_setStatusColumn(dsUpdate, "m");
  190. ds_send_savedata.copyData(dsUpdate, true);
  191. var oParam = {};
  192. oParam.id = "TXAHA03230";
  193. oParam.service = "healthexambaseapp.ComCode";
  194. oParam.method = "reqExeStdUser";
  195. oParam.inds = "req=ds_send_savedata";
  196. oParam.outds = "ds_hidden=item";
  197. oParam.async = false;
  198. oParam.callback = "cf_TXAHA03230";
  199. tranf_submit(oParam);
  200. if (arErrorCode.pop("TXAHA03230") > -1){
  201. fInitInfo();
  202. fGetStdUser();
  203. return true;
  204. }
  205. }
  206. }
  207. function cf_TXAHA03230(sSvcId, nErrorCode, sErrorMsg) {
  208. arErrorCode.push(sSvcId, nErrorCode);
  209. }
  210. //=======================================================================================
  211. // Event
  212. //---------------------------------------------------------------------------------------
  213. /****************************************************************************************
  214. * Components : Form
  215. * Description : 화면 처음 초기화시 폼초기화
  216. ****************************************************************************************/
  217. function SMAHA03230_onload(obj:Form, e:LoadEventInfo) {
  218. frmf_initForm(obj);
  219. //grdf_initGrid(grd_XXX);
  220. //grdf_setGridSort(grd_XXX);
  221. grdf_setRowTypeIcon(grd_stduser, 0);
  222. fGetBaseInfo();
  223. fInitInfo();
  224. fGetStdUser();
  225. }
  226. /****************************************************************************************
  227. * Components : Button
  228. * Description : 조회
  229. ****************************************************************************************/
  230. function grp_sea_btn_search_onclick(obj:Button, e:ClickEventInfo) {
  231. fGetStdUser();
  232. }
  233. /****************************************************************************************
  234. * Components : Button
  235. * Description : 행삭제
  236. ****************************************************************************************/
  237. function btn_grddel_onclick(obj:Button, e:ClickEventInfo) {
  238. var selectedRows = grdf_getSelectedRows(grd_stduser);
  239. for (var i = 0; i < selectedRows.length; i++){
  240. if( ds_main_stduserInfo_item.getRowType(selectedRows[i]) == 2 ) {
  241. ds_main_stduserInfo_item.deleteRow(selectedRows[i]);
  242. }else{
  243. grdf_setStatus(grd_stduser, "D", [selectedRows[i]]);
  244. }
  245. }
  246. }
  247. /****************************************************************************************
  248. * Components : Button
  249. * Description : 행추가
  250. ****************************************************************************************/
  251. function btn_grdadd_onclick(obj:Button, e:ClickEventInfo) {
  252. ds_main_stduserInfo_item.addRow();
  253. }
  254. /****************************************************************************************
  255. * Components : Button
  256. * Description : 저장
  257. ****************************************************************************************/
  258. function grp_btn_btn_save_onclick(obj:Button, e:ClickEventInfo) {
  259. if(fSaveStdUser()){
  260. sysf_messageBox("저장", "I002");
  261. }
  262. }
  263. ]]></Script>
  264. </Form>
  265. </FDL>