SPPMC03800_직원가족조회.xfdl 25 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SPPMC03800" position="absolute 0 0 865 550" titletext="직원가족조회" onload="SPPMC03800_onload">
  5. <Layouts>
  6. <Layout>
  7. <Shape id="line1" linetype="horizontal" class="line_1" position="absolute 0 64 863 70" style="strokepen:3 solid #33bbbbff;"/>
  8. <Static id="caption6" text="가족사항" class="tit_2" position="absolute 0 48 108 64"/>
  9. <Grid id="datagrid1" class="datagrid2" taborder="1" binddataset="ds_main_famylist" useinputpanel="false" position="absolute 0 69 863 218" oncelldblclick="datagrid1_oncelldblclick" onkeydown="datagrid1_onkeydown" oncellclick="datagrid1_oncellclick" cellsizingtype="both">
  10. <Formats>
  11. <Format id="default">
  12. <Columns>
  13. <Column size="25" band="left"/>
  14. <Column size="48"/>
  15. <Column size="50"/>
  16. <Column size="50"/>
  17. <Column size="42"/>
  18. <Column size="39"/>
  19. <Column size="55"/>
  20. <Column size="89"/>
  21. <Column size="63"/>
  22. <Column size="100"/>
  23. <Column size="81"/>
  24. <Column size="75"/>
  25. <Column size="75"/>
  26. <Column size="120"/>
  27. <Column size="90"/>
  28. <Column size="100"/>
  29. <Column size="100"/>
  30. <Column size="100"/>
  31. <Column size="100"/>
  32. </Columns>
  33. <Rows>
  34. <Row size="36" band="head"/>
  35. <Row size="24"/>
  36. </Rows>
  37. <Band id="head">
  38. <Cell/>
  39. <Cell col="1" text="성명"/>
  40. <Cell col="2" colspan="2" text="주민번호" taborder="undefined"/>
  41. <Cell col="4" text="할인&#10;코드"/>
  42. <Cell col="5" text="관계"/>
  43. <Cell col="6" text="직원성명"/>
  44. <Cell col="7" text="직원사번&#10;/주민번호"/>
  45. <Cell col="8" text="근무/학적&#10;상태"/>
  46. <Cell col="9" text="원소속기관"/>
  47. <Cell col="10" text="원소속부서"/>
  48. <Cell col="11" text="시작일자"/>
  49. <Cell col="12" text="종료일자"/>
  50. <Cell col="13" text="현근무기관"/>
  51. <Cell col="14" text="현근무부서"/>
  52. <Cell col="15" text="직위"/>
  53. <Cell col="16" text="직책"/>
  54. <Cell col="17" text="입사일"/>
  55. <Cell col="18" text="퇴직일"/>
  56. </Band>
  57. <Band id="body">
  58. <Cell celltype="head" expr="expr:currow + 1"/>
  59. <Cell col="1" style="align:center middle;" class="text_center" text="bind:name"/>
  60. <Cell col="2" style="align:center middle;" class="text_center" text="bind:rgstno1"/>
  61. <Cell col="3" style="align:center middle;" class="text_center" text="bind:rgstno2"/>
  62. <Cell col="4" style="align:center middle;" class="text_center" text="bind:discuncocd"/>
  63. <Cell col="5" style="align:center middle;" class="text_center" text="bind:famyrelnm"/>
  64. <Cell col="6" style="align:center middle;" class="text_center" text="bind:emplname"/>
  65. <Cell col="7" style="align:center middle;" class="text_center" text="bind:realemplno"/>
  66. <Cell col="8" style="align:center middle;" class="text_center" text="bind:preststatnm"/>
  67. <Cell col="9" style="align:center middle;" class="text_center" text="bind:orginstnm"/>
  68. <Cell col="10" style="align:center middle;" class="text_center" text="bind:orgdeptnm"/>
  69. <Cell col="11" displaytype="date" style="align:center middle;" text="bind:fromdd" mask="yyyy-MM-dd" calendardisplaynulltype="none"/>
  70. <Cell col="12" displaytype="date" style="align:center middle;" text="bind:todd" mask="yyyy-MM-dd" calendardisplaynulltype="none"/>
  71. <Cell col="13" style="align:center middle;" class="text_center" text="bind:dutinstnm"/>
  72. <Cell col="14" style="align:center middle;" class="text_center" text="bind:dutdeptnm"/>
  73. <Cell col="15" style="align:center middle;" class="text_center" text="bind:jobposnm"/>
  74. <Cell col="16" style="align:center middle;" class="text_center" text="bind:jobrespnm"/>
  75. <Cell col="17" displaytype="date" style="align:center middle;" class="text_center" text="bind:entcodd" mask="yyyy-MM-dd" calendardisplaynulltype="none"/>
  76. <Cell col="18" displaytype="date" style="align:center middle;" class="text_center" text="bind:retiredd" mask="yyyy-MM-dd" calendardisplaynulltype="none"/>
  77. </Band>
  78. </Format>
  79. </Formats>
  80. </Grid>
  81. <Static id="caption4" text="감면정보예외 할인코드" class="tit_2" position="absolute 0 226 155 242"/>
  82. <Shape id="line3" linetype="horizontal" class="line_1" position="absolute 0 242 863 248" style="strokepen:3 solid #33bbbbff;"/>
  83. <Grid id="datagrid2" class="datagrid2" taborder="2" binddataset="ds_main_uncolist" useinputpanel="false" position="absolute 0 247 863 517" autofittype="col" oncelldblclick="datagrid2_oncelldblclick" onkeydown="datagrid2_onkeydown" oncellclick="datagrid2_oncellclick" cellsizingtype="both" extendsizetype="row">
  84. <Formats>
  85. <Format id="default">
  86. <Columns>
  87. <Column size="25" band="left"/>
  88. <Column size="105"/>
  89. <Column size="111"/>
  90. <Column size="100"/>
  91. <Column size="42"/>
  92. <Column size="42"/>
  93. <Column size="42"/>
  94. <Column size="42"/>
  95. <Column size="42"/>
  96. <Column size="42"/>
  97. <Column size="100"/>
  98. <Column size="100"/>
  99. </Columns>
  100. <Rows>
  101. <Row size="24" band="head"/>
  102. <Row size="24" band="head"/>
  103. <Row size="24"/>
  104. </Rows>
  105. <Band id="head">
  106. <Cell rowspan="2" taborder="undefined"/>
  107. <Cell col="1" rowspan="2" text="할인코드" taborder="undefined"/>
  108. <Cell col="2" rowspan="2" text="할인명" taborder="undefined"/>
  109. <Cell col="3" rowspan="2" text="진찰료할인률" taborder="undefined"/>
  110. <Cell col="4" colspan="3" text="외래할인률" taborder="undefined"/>
  111. <Cell col="7" colspan="3" text="입원할인률" taborder="undefined"/>
  112. <Cell col="10" rowspan="2" text="기본건진할인률" taborder="undefined"/>
  113. <Cell col="11" rowspan="2" text="추가건진할인률" taborder="undefined"/>
  114. <Cell row="1" col="4" text="급여"/>
  115. <Cell row="1" col="5" text="비급여"/>
  116. <Cell row="1" col="6" text="특진료"/>
  117. <Cell row="1" col="7" text="급여"/>
  118. <Cell row="1" col="8" text="비급여"/>
  119. <Cell row="1" col="9" text="특진료"/>
  120. </Band>
  121. <Band id="body">
  122. <Cell celltype="head" expr="expr:currow + 1"/>
  123. <Cell col="1" style="align:left middle;" text="bind:discuncocd"/>
  124. <Cell col="2" displaytype="text" style="align:left top;padding:4 2 1 2;" text="bind:discunconm" wordwrap="char"/>
  125. <Cell col="3" style="align:left middle;" text="bind:medfeeapprate"/>
  126. <Cell col="4" style="align:left middle;" text="bind:outpayapprate"/>
  127. <Cell col="5" style="align:left middle;" text="bind:outnopyapprate"/>
  128. <Cell col="6" style="align:left middle;" text="bind:outspecapprate"/>
  129. <Cell col="7" style="align:left middle;" text="bind:inpayapprate"/>
  130. <Cell col="8" style="align:left middle;" text="bind:innopyapprate"/>
  131. <Cell col="9" style="align:left middle;" text="bind:inspecapprate"/>
  132. <Cell col="10" style="align:left middle;" text="bind:basehealexamapprate"/>
  133. <Cell col="11" style="align:left middle;" text="bind:addhealexamapprate"/>
  134. </Band>
  135. </Format>
  136. </Formats>
  137. </Grid>
  138. <Div id="grp" taborder="3" class="div_SA2" position="absolute 0 0 863 40">
  139. <Layouts>
  140. <Layout width="863" height="32">
  141. <Static id="caption2" text="사번 :" class="search_name" visible="false" position="absolute 360 11 421 28" anchor="default"/>
  142. <Button id="button1" taborder="9" class="icon_search" visible="false" position="absolute 498 12 514 28" onclick="grp_button1_onclick" tooltiptext="직원조회" anchor="default"/>
  143. <Edit id="opt_emplnm" taborder="10" visible="false" position="absolute 545 10 614 29" onkeydown="grp_opt_emplnm_onkeydown" anchor="default"/>
  144. <MaskEdit id="ipt_emplno" taborder="11" mask="9999999999" class="input_default" visible="false" position="absolute 424 10 495 29" onkeydown="grp_ipt_emplno_onkeydown" anchor="default"/>
  145. <Shape id="line2" linetype="vertical" position="absolute 791 10 797 30" anchor="default"/>
  146. <Button id="btn_search" taborder="12" text="조회" class="btn1" position="absolute 802 9 858 31" onclick="grp_btn_search_onclick" anchor="default"/>
  147. <MaskEdit id="ipt_rrgstno1" taborder="13" mask="999999" visible="false" position="absolute 646 10 715 29" onkeydown="grp_ipt_rrgstno1_onkeydown" anchor="default"/>
  148. <Static id="caption3" text="주민번호 :" class="search_name" visible="false" position="absolute 555 11 641 28" anchor="default"/>
  149. <MaskEdit id="ipt_rrgstno2" taborder="14" mask="9999999" visible="false" position="absolute 718 10 787 29" onkeydown="grp_ipt_rrgstno2_onkeydown" anchor="default"/>
  150. <Static id="caption5" text="등록번호 :" class="search_name" position="absolute 10 11 120 28" anchor="default"/>
  151. <Edit id="ipt_pid" taborder="15" class="input_default" position="absolute 100 9 175 28" anchor="default"/>
  152. <Static id="caption7" text="기준일자 :" class="search_name" position="absolute 190 11 290 28" anchor="default"/>
  153. <Calendar id="input1" taborder="16" class="input_default" position="absolute 279 10 369 29" dateformat="yyyy-MM-dd" value="null" anchor="default"/>
  154. <Static id="caption1" text="성명 :" class="search_name" visible="false" position="absolute 479 11 540 28" anchor="default"/>
  155. </Layout>
  156. </Layouts>
  157. </Div>
  158. <Button id="btn_confirm" taborder="4" text="확인" class="btn4" position="absolute 749 522 805 544" onclick="btn_confirm_onclick"/>
  159. <Button id="btn_cancel" taborder="5" text="취소" class="btn4" position="absolute 807 522 863 544" onclick="btn_cancel_onclick"/>
  160. </Layout>
  161. </Layouts>
  162. <Objects>
  163. <Dataset id="ds_main_famylist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  164. <ColumnInfo>
  165. <Column id="cretinstcd" type="STRING" size="256" sumtext="등록기관코드"/>
  166. <Column id="hospnm" type="STRING" size="256" sumtext="등록기관명"/>
  167. <Column id="emplno" type="STRING" size="256" sumtext="사원번호 "/>
  168. <Column id="realemplno" type="STRING" size="256" sumtext="실제사원번호"/>
  169. <Column id="emplname" type="STRING" size="256" sumtext="사원명 "/>
  170. <Column id="rrgstno" type="STRING" size="256" sumtext="주민등록번호 "/>
  171. <Column id="rgstno1" type="STRING" size="256" sumtext="주민번호1 "/>
  172. <Column id="rgstno2" type="STRING" size="256" sumtext="주민번호2 "/>
  173. <Column id="fromdd" type="STRING" size="256" sumtext="시작일자"/>
  174. <Column id="todd" type="STRING" size="256" sumtext="종료일자"/>
  175. <Column id="datapublyn" type="STRING" size="256" sumtext="데이터공유여부"/>
  176. <Column id="empkindcd" type="STRING" size="256" sumtext="분류"/>
  177. <Column id="empkindnm" type="STRING" size="256" sumtext="분류명"/>
  178. <Column id="discuncoflag" type="STRING" size="256" sumtext="할인여부"/>
  179. <Column id="discuncocd" type="STRING" size="256" sumtext="할인코드"/>
  180. <Column id="discunconm" type="STRING" size="256" sumtext="할인코드"/>
  181. <Column id="famyrelcd" type="STRING" size="256" sumtext="가족관계"/>
  182. <Column id="famyrelnm" type="STRING" size="256" sumtext="가족관계명"/>
  183. <Column id="name" type="STRING" size="256" sumtext="성명 "/>
  184. <Column id="orginstcd" type="STRING" size="256" sumtext="원소속기관"/>
  185. <Column id="orginstnm" type="STRING" size="256" sumtext="원소속기관명"/>
  186. <Column id="orgdeptnm" type="STRING" size="256" sumtext="원소속부서명"/>
  187. <Column id="dutinstcd" type="STRING" size="256" sumtext="근무지기관"/>
  188. <Column id="dutinstnm" type="STRING" size="256" sumtext="근무지기관명"/>
  189. <Column id="dutdeptnm" type="STRING" size="256" sumtext="근무부서명"/>
  190. <Column id="preststatcd" type="STRING" size="256" sumtext="현근무상태"/>
  191. <Column id="preststatnm" type="STRING" size="256" sumtext="현근무상태명"/>
  192. <Column id="jobposnm" type="STRING" size="256" sumtext="직위명"/>
  193. <Column id="jobrespnm" type="STRING" size="256" sumtext="직책명"/>
  194. <Column id="retiredd" type="STRING" size="256" sumtext="퇴직일자"/>
  195. <Column id="retrduagelimyn" type="STRING" size="256" sumtext="정년퇴직구분"/>
  196. <Column id="entcodd" type="STRING" size="256" sumtext="입사일/입학일 "/>
  197. <Column id="entcoday" type="STRING" size="256" sumtext="계약일수"/>
  198. <Column id="cronyn" type="STRING" size="256" sumtext="CRON자동생성여부"/>
  199. <Column id="profacptyn" type="STRING" size="256" sumtext="증명서류접수여부 "/>
  200. <Column id="profacptdd" type="STRING" size="256" sumtext="증명서류접수일자"/>
  201. <Column id="remark" type="STRING" size="256" sumtext="참고사항"/>
  202. <Column id="fstrgstrid" type="STRING" size="256" sumtext="최초등록자ID "/>
  203. <Column id="fstrgstdt" type="STRING" size="256" sumtext="최초등록일시 "/>
  204. <Column id="lastupdtrid" type="STRING" size="256" sumtext="최종수정자ID "/>
  205. <Column id="lastupdtdt" type="STRING" size="256" sumtext="최종수정일시 "/>
  206. <Column id="aftrcptyn" type="STRING" size="256" sumtext="후수납적용여부"/>
  207. </ColumnInfo>
  208. </Dataset>
  209. <Dataset id="ds_main_uncolist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  210. <ColumnInfo>
  211. <Column id="discuncocd" type="STRING" size="256" sumtext="할인코드"/>
  212. <Column id="discunconm" type="STRING" size="256" sumtext="할인코드명"/>
  213. <Column id="medfeeapprate" type="STRING" size="256" sumtext="진찰료할인률"/>
  214. <Column id="outpayapprate" type="STRING" size="256" sumtext="외래할인률_급여"/>
  215. <Column id="outnopyapprate" type="STRING" size="256" sumtext="외래할인률_비급여"/>
  216. <Column id="outspecapprate" type="STRING" size="256" sumtext="외래할인률_특진료"/>
  217. <Column id="inpayapprate" type="STRING" size="256" sumtext="입원할인률_급여"/>
  218. <Column id="innopyapprate" type="STRING" size="256" sumtext="입원할인률_비급여"/>
  219. <Column id="inspecapprate" type="STRING" size="256" sumtext="입원할인률_특진료"/>
  220. <Column id="basehealexamapprate" type="STRING" size="256" sumtext="기본건진할인률"/>
  221. <Column id="addhealexamapprate" type="STRING" size="256" sumtext="추가건진할인률"/>
  222. </ColumnInfo>
  223. </Dataset>
  224. <Dataset id="ds_init_R0077list" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  225. <ColumnInfo>
  226. <Column id="cdid" type="STRING" size="256"/>
  227. <Column id="cdnm" type="STRING" size="256"/>
  228. </ColumnInfo>
  229. <Rows>
  230. <Row/>
  231. </Rows>
  232. </Dataset>
  233. <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  234. <ColumnInfo>
  235. <Column id="checkcount" type="STRING" size="256" sumtext="카운트값"/>
  236. <Column id="emplno" type="STRING" size="256" sumtext="직원사번"/>
  237. <Column id="emplnm" type="STRING" size="256" sumtext="직원성명"/>
  238. <Column id="rrgstno" type="STRING" size="256" sumtext="주민번호"/>
  239. <Column id="rrgstno1" type="STRING" size="256" sumtext="주민번호1"/>
  240. <Column id="rrgstno2" type="STRING" size="256" sumtext="주민번호2"/>
  241. <Column id="pid" type="STRING" size="256" sumtext="환자번호"/>
  242. <Column id="orddd" type="STRING" size="256" sumtext="기준일자"/>
  243. </ColumnInfo>
  244. <Rows>
  245. <Row>
  246. <Col id="emplno"/>
  247. <Col id="emplnm"/>
  248. <Col id="rrgstno"/>
  249. <Col id="rrgstno1"/>
  250. <Col id="rrgstno2"/>
  251. <Col id="checkcount"/>
  252. <Col id="pid"/>
  253. <Col id="orddd"/>
  254. </Row>
  255. </Rows>
  256. </Dataset>
  257. <Dataset id="ds_hidden_session" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  258. <Dataset id="ds_main_userpopupinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  259. <ColumnInfo>
  260. <Column id="param" type="STRING" size="256"/>
  261. </ColumnInfo>
  262. </Dataset>
  263. <Dataset id="ds_main_oneselect" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  264. </Objects>
  265. <Bind>
  266. <BindItem id="item0" compid="grp.ipt_pid" propid="value" datasetid="ds_send" columnid="pid"/>
  267. <BindItem id="item1" compid="grp.input1" propid="value" datasetid="ds_send" columnid="orddd"/>
  268. <BindItem id="item2" compid="grp.ipt_emplno" propid="value" datasetid="ds_send" columnid="emplno"/>
  269. <BindItem id="item3" compid="grp.opt_emplnm" propid="value" datasetid="ds_send" columnid="emplnm"/>
  270. <BindItem id="item4" compid="grp.ipt_rrgstno1" propid="value" datasetid="ds_send" columnid="rrgstno1"/>
  271. <BindItem id="item5" compid="grp.ipt_rrgstno2" propid="value" datasetid="ds_send" columnid="rrgstno2"/>
  272. </Bind>
  273. <Script type="xscript4.0"><![CDATA[include 'com_commonxp::comm_main.xjs';
  274. include 'pam_opatmngtxp::PMOCOM.xjs';
  275. function fSearch() {
  276. ds_send.setColumn(0, "checkcount", '1');
  277. var pid = utlf_trim(ds_send.getColumn(0, "pid"));
  278. ds_main_famylist.clearData();
  279. ds_main_famylist.addRow();
  280. ds_main_uncolist.clearData();
  281. ds_main_uncolist.addRow();
  282. if (!utlf_isNull(pid)) {
  283. var oParam = {};
  284. oParam.id = "TRPMC03802";
  285. oParam.service = "pamcomnapp.PamComn";
  286. oParam.method = "reqGetFamyList";
  287. oParam.inds = "req=ds_send";
  288. oParam.outds = "ds_main_famylist=famylist ds_main_uncolist=uncolist";
  289. oParam.async = false;
  290. tranf_submit(oParam);
  291. ds_main_famylist.addColumn('discuncoflag', 'string');
  292. } else {
  293. sysf_messageBox('환자번호를 입력하세요', 'E999');
  294. grp.ipt_emplno.setFocus();
  295. return;
  296. }
  297. if (ds_main_famylist.rowcount > 0) {
  298. datagrid1.setFocus();
  299. }
  300. ds_send.setColumn(0, "rrgstno", '');
  301. }
  302. function SPPMC03800_onload(obj:Form, e:LoadEventInfo){
  303. // 폼 초기화
  304. frmf_initForm(obj);
  305. // PMOCOM.xjs
  306. fGetUserInfosSampling();
  307. // 공통코드
  308. appf_getCodeList([{ dsNm:"ds_init_R0077list", cdGrpId:"R0077"}]);
  309. var pid = "";
  310. var emplid = "";
  311. var emplnm = "";
  312. var rrgstno1 = "";
  313. var rrgstno2 = "";
  314. var rrgstno = "";
  315. if (frmf_checkOpener()) {
  316. pid = opener.frmf_getParameter("SPPMC03800_pid");
  317. emplid = opener.frmf_getParameter("SPPMC03800_emplid");
  318. emplnm = opener.frmf_getParameter("SPPMC03800_emplnm");
  319. rrgstno1 = opener.frmf_getParameter("SPPMC03800_rrgstno1");
  320. rrgstno2 = opener.frmf_getParameter("SPPMC03800_rrgstno2");
  321. rrgstno = rrgstno1 + rrgstno2;
  322. }
  323. // dbs227, 전달받은 파라미터가 있으면 복사해 준다
  324. try {
  325. if (!utlf_isNull(arg_main_result)) {
  326. ds_main_famylist.copyData(arg_main_result);
  327. ds_main_famylist.addColumn('discuncoflag', 'string');
  328. }
  329. } catch(e) { }
  330. try {
  331. if (!utlf_isNull(arg_main_uncolist)) {
  332. ds_main_uncolist.copyData(arg_main_uncolist);
  333. }
  334. } catch (e) { }
  335. if (!utlf_isNull(pid)) {
  336. ds_send.setColumn(0, "emplno", emplid);
  337. ds_send.setColumn(0, "emplnm", emplnm);
  338. ds_send.setColumn(0, "rrgstno1", rrgstno1);
  339. ds_send.setColumn(0, "rrgstno2", rrgstno2);
  340. ds_send.setColumn(0, "rrgstno", rrgstno);
  341. ds_send.setColumn(0, "pid", pid);
  342. grp.btn_search.click();
  343. }
  344. if (ds_main_famylist.rowcount > 0) {
  345. datagrid1.setFocus();
  346. } else {
  347. grp.opt_emplnm.setFocus();
  348. }
  349. ds_send.setColumn(0, "orddd", utlf_getCurrentDate());
  350. }
  351. function grp_ipt_emplno_onkeydown(obj:MaskEdit, e:KeyEventInfo) {
  352. if (e.keycode == 13) {
  353. obj.updateToDataset();
  354. grp.btn_search.click();
  355. }
  356. }
  357. function grp_opt_emplnm_onkeydown(obj:Edit, e:KeyEventInfo) {
  358. if (e.keycode == 13) {
  359. obj.updateToDataset();
  360. grp.btn_search.click();
  361. }
  362. }
  363. function grp_ipt_rrgstno1_onkeydown(obj:MaskEdit, e:KeyEventInfo) {
  364. if (e.keycode == 13) {
  365. obj.updateToDataset();
  366. grp.btn_search.click();
  367. }
  368. }
  369. function grp_ipt_rrgstno2_onkeydown(obj:MaskEdit, e:KeyEventInfo) {
  370. if (e.keycode == 13) {
  371. obj.updateToDataset();
  372. grp.btn_search.click();
  373. }
  374. }
  375. function grp_btn_search_onclick(obj:Button, e:ClickEventInfo) {
  376. fSearch();
  377. }
  378. function datagrid1_oncelldblclick(obj:Grid, e:GridClickEventInfo) {
  379. if (e.row >= 0 && e.col >= 0) {
  380. ds_main_uncolist.rowposition = -1; // 2019.04.19 서재영 수정. e.row -> -1
  381. btn_confirm.click();
  382. }
  383. }
  384. function datagrid1_oncellclick(obj:Grid, e:GridClickEventInfo) {
  385. if (e.row >= 0 && e.col >= 0) {
  386. ds_main_uncolist.rowposition = -1; // 2019.04.19 서재영 수정. e.row -> -1
  387. }
  388. }
  389. function datagrid1_onkeydown(obj:Grid, e:KeyEventInfo) {
  390. if (e.keycode == 13) {
  391. obj.updateToDataset();
  392. btn_confirm.click();
  393. }
  394. }
  395. function grp_button1_onclick(obj:Button, e:ClickEventInfo) {
  396. var obj = new Object();
  397. obj.param = '_OneS';
  398. frmf_modal('SPZSU10103', 'SPZSU10103', obj, null, null, null, null, null, null, null, null, null, 'M');
  399. dsf_setCSVToDs(ds_main_oneselect, frmf_getParameter('SPZSU10103_'));
  400. ds_send.setColumn(0, 'emplno', ds_main_oneselect.getColumn(0, 'userid'));
  401. ds_send.setColumn(0, 'emplnm', ds_main_oneselect.getColumn(0, 'usernm'));
  402. }
  403. function datagrid2_oncelldblclick(obj:Grid, e:GridClickEventInfo) {
  404. if (e.row >= 0 && e.col >= 0) {
  405. ds_main_famylist.rowposition = -1; // 2019.04.19 서재영 수정. e.row -> -1
  406. btn_confirm.click();
  407. }
  408. }
  409. function datagrid2_oncellclick(obj:Grid, e:GridClickEventInfo){
  410. if(e.row >= 0 && e.col >= 0) {
  411. ds_main_famylist.rowposition = -1; // 2019.04.19 서재영 수정. e.row -> -1
  412. }
  413. }
  414. function datagrid2_onkeydown(obj:Grid, e:KeyEventInfo) {
  415. if(e.keycode == 13){
  416. btn_confirm.click();
  417. }
  418. }
  419. function btn_confirm_onclick(obj:Button, e:ClickEventInfo) {
  420. if (frmf_checkOpener()) {
  421. var famRow = datagrid1.currentrow;
  422. var uncoRow = datagrid2.currentrow;
  423. if (famRow >= 0) {
  424. opener.frmf_setParameter("SPPMC03800_emplid", ds_main_famylist.getColumn(famRow, "emplno"));
  425. opener.frmf_setParameter("SPPMC03800_discuncoflag", ds_main_famylist.getColumn(famRow, "discuncoflag"));
  426. opener.frmf_setParameter("SPPMC03800_discuncocd", ds_main_famylist.getColumn(famRow, "discuncocd"));
  427. opener.frmf_setParameter("SPPMC03800_aftrcptyn", ds_main_famylist.getColumn(famRow, "aftrcptyn"));
  428. opener.frmf_setParameter("SPPMC03800_famyrelcd", ds_main_famylist.getColumn(famRow, "famyrelcd"));
  429. opener.frmf_setParameter("SPPMC03800_famyrelnm", ds_main_famylist.getColumn(famRow, "famyrelnm"));
  430. opener.frmf_setParameter("SPPMC03800_preststatnm", ds_main_famylist.getColumn(famRow, "preststatnm"));
  431. opener.frmf_setParameter("SPPMC03800_profacptyn", ds_main_famylist.getColumn(famRow, "profacptyn"));
  432. opener.frmf_setParameter("SPPMC03800_profacptdd", ds_main_famylist.getColumn(famRow, "profacptdd"));
  433. opener.frmf_setParameter("SPPMC03800_remark", ds_main_famylist.getColumn(famRow, "remark"));
  434. // 관계 본인
  435. if (ds_main_famylist.getColumn(famRow, "famyrelcd") == "07") {
  436. opener.frmf_setParameter("SPPMC03800_emplnm", ds_main_famylist.getColumn(famRow, "name"));
  437. } else {
  438. opener.frmf_setParameter("SPPMC03800_emplnm", ds_main_famylist.getColumn(famRow, "emplname"));
  439. }
  440. } else if (uncoRow >= 0) {
  441. opener.frmf_setParameter("SPPMC03800_discuncocd", ds_main_uncolist.getColumn(uncoRow, "discuncocd"));
  442. } else {
  443. sysf_messageBox("행이 정확히 선택되지", "E007");
  444. }
  445. } else {
  446. sysf_messageBox("상위화면이 변경되어 데이터를 가져올 수", "I004");
  447. }
  448. this.close();
  449. }
  450. function btn_cancel_onclick(obj:Button, e:ClickEventInfo) {
  451. this.close();
  452. }
  453. ]]></Script>
  454. </Form>
  455. </FDL>