SPPMC04000_감면환자입력.xfdl 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SPPMC04000" position="absolute 0 0 379 259" titletext="감면환자입력" onload="SPPMC04000_onload">
  5. <Layouts>
  6. <Layout>
  7. <Shape id="line1" class="line_1" position="absolute 0 24 370 30" style="strokepen:3 solid #33bbbbff;"/>
  8. <Static id="caption1" text="감면환자입력" class="tit_2" position="absolute 5 5 120 21"/>
  9. <Button id="button29" taborder="1" class="icon_search" position="absolute 223 86 236 99" onclick="button29_onclick"/>
  10. <Static id="caption30" text="감면계정" class="cell_1" position="absolute 0 29 115 52"/>
  11. <Static id="caption31" text="증명서류접수/일자" class="cell_1" position="absolute 0 159 115 182"/>
  12. <Static id="caption2" text="직원성명" class="cell_1" position="absolute 0 81 115 104"/>
  13. <Static id="caption34" text="Remark" class="cell_1" position="absolute 0 185 115 226"/>
  14. <Static id="caption35" text="직원관계/재직여부" class="cell_1" position="absolute 0 107 115 130"/>
  15. <Shape id="line2" linetype="horizontal" class="line_2" position="absolute 0 77 370 83"/>
  16. <Static id="caption26" text="신청서접수여부" class="cell_1" position="absolute 0 133 115 156"/>
  17. <Shape id="line3" linetype="horizontal" class="line_2" position="absolute 0 103 370 109"/>
  18. <Shape id="line4" linetype="horizontal" class="line_2" position="absolute 0 129 370 135"/>
  19. <TextArea id="textarea2" taborder="2" position="absolute 117 187 369 225" wordwrap="char" scrollbars="fixedvert"/>
  20. <Shape id="line5" linetype="horizontal" class="line_2" position="absolute 0 155 370 161"/>
  21. <Static id="caption29" text="시작일자/종료일자" class="cell_1" position="absolute 0 55 115 78"/>
  22. <Shape id="line6" linetype="horizontal" class="line_2" position="absolute 0 181 370 187"/>
  23. <Shape id="line61" linetype="horizontal" class="line_2" position="absolute 0 51 370 57"/>
  24. <Button id="button2" taborder="3" text="직원가족사항" class="btn2" position="absolute 283 4 369 23" onclick="button2_onclick"/>
  25. <Combo id="cmb_disccd" taborder="4" innerdataset="@ds_init_disccd" codecolumn="cd" datacolumn="nm" class="combo_default" position="absolute 147 31 369 50"/>
  26. <Edit id="ipt_disccd" taborder="5" class="input_default" position="absolute 117 31 145 50" ontextchanged="ipt_disccd_ontextchanged"/>
  27. <Edit id="output1" taborder="6" readonly="true" position="absolute 244 109 369 128" style="background:URL('theme://images/bg_edit_D.png') stretch 9,9;"/>
  28. <Radio id="radio1" taborder="7" columncount="-1" rowcount="-1" codecolumn="codecolumn" datacolumn="datacolumn" position="absolute 118 134 210 154" index="-1" style="textpadding:0 3 0 3;">
  29. <Dataset id="innerdataset">
  30. <ColumnInfo>
  31. <Column id="codecolumn"/>
  32. <Column id="datacolumn"/>
  33. </ColumnInfo>
  34. <Rows>
  35. <Row>
  36. <Col id="codecolumn">Y</Col>
  37. <Col id="datacolumn">Yes</Col>
  38. </Row>
  39. <Row>
  40. <Col id="codecolumn">N</Col>
  41. <Col id="datacolumn">No</Col>
  42. </Row>
  43. </Rows>
  44. </Dataset>
  45. </Radio>
  46. <Radio id="radio2" taborder="8" columncount="-1" rowcount="-1" codecolumn="codecolumn" datacolumn="datacolumn" position="absolute 118 160 210 180" index="-1" style="textpadding:0 3 0 3;">
  47. <Dataset id="innerdataset">
  48. <ColumnInfo>
  49. <Column id="codecolumn"/>
  50. <Column id="datacolumn"/>
  51. </ColumnInfo>
  52. <Rows>
  53. <Row>
  54. <Col id="codecolumn">Y</Col>
  55. <Col id="datacolumn">Yes</Col>
  56. </Row>
  57. <Row>
  58. <Col id="codecolumn">N</Col>
  59. <Col id="datacolumn">No</Col>
  60. </Row>
  61. </Rows>
  62. </Dataset>
  63. </Radio>
  64. <Calendar id="input3" taborder="9" class="input_default" position="absolute 244 161 369 180" autoselect="true" autoskip="true" dateformat="yyyy-MM-dd"/>
  65. <Calendar id="ipt_fromdd" taborder="10" class="input_default" position="absolute 117 57 242 76" autoselect="true" autoskip="true" dateformat="yyyy-MM-dd" value="null"/>
  66. <Calendar id="ipt_todd" taborder="11" class="input_default" position="absolute 244 57 369 76" autoselect="true" autoskip="true" dateformat="yyyy-MM-dd"/>
  67. <Edit id="ipt_empid" taborder="12" class="input_default" position="absolute 117 83 217 102"/>
  68. <Edit id="opt_empidnm" taborder="13" readonly="true" position="absolute 244 83 369 102" style="background:URL('theme://images/bg_edit_D.png') stretch 9,9;"/>
  69. <Combo id="cmb_emprela" taborder="14" innerdataset="@ds_init_com_P0016list" codecolumn="cdid" datacolumn="cdnm" class="combo_default" position="absolute 117 109 242 128"/>
  70. <Button id="btn_confirm" taborder="15" text="확인" class="btn4" position="absolute 257 231 313 253" onclick="btn_confirm_onclick"/>
  71. <Button id="btn_cancel" taborder="16" text="취소" class="btn4" position="absolute 316 231 372 253" onclick="btn_cancel_onclick"/>
  72. <Shape id="line88" class="line_6" position="absolute 0 225 370 231"/>
  73. </Layout>
  74. </Layouts>
  75. <Objects>
  76. <Dataset id="ds_main_h_ptdc_ptdc" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  77. <ColumnInfo>
  78. <Column id="ptdc_pid" type="STRING" size="256"/>
  79. <Column id="ptdc_disccd" type="STRING" size="256"/>
  80. <Column id="ptdc_disccls" type="STRING" size="256"/>
  81. <Column id="ptdc_todd" type="STRING" size="256"/>
  82. <Column id="ptdc_seqno" type="STRING" size="256"/>
  83. <Column id="ptdc_instcd" type="STRING" size="256"/>
  84. <Column id="ptdc_histstat" type="STRING" size="256"/>
  85. <Column id="ptdc_fromdd" type="STRING" size="256"/>
  86. <Column id="ptdc_empid" type="STRING" size="256"/>
  87. <Column id="ptdc_empidnm" type="STRING" size="256"/>
  88. <Column id="ptdc_emprela" type="STRING" size="256"/>
  89. <Column id="ptdc_discappacptyn" type="STRING" size="256"/>
  90. <Column id="ptdc_profacptyn" type="STRING" size="256"/>
  91. <Column id="ptdc_profacptdd" type="STRING" size="256"/>
  92. <Column id="ptdc_remfact" type="STRING" size="256"/>
  93. <Column id="ptdc_fstrgstrid" type="STRING" size="256"/>
  94. <Column id="ptdc_fstrgstdt" type="STRING" size="256"/>
  95. <Column id="ptdc_lastupdtrid" type="STRING" size="256"/>
  96. <Column id="ptdc_lastupdtdt" type="STRING" size="256"/>
  97. </ColumnInfo>
  98. <Rows>
  99. <Row>
  100. <Col id="ptdc_pid"/>
  101. <Col id="ptdc_disccd"/>
  102. <Col id="ptdc_disccls"/>
  103. <Col id="ptdc_todd"/>
  104. <Col id="ptdc_seqno"/>
  105. <Col id="ptdc_instcd"/>
  106. <Col id="ptdc_histstat"/>
  107. <Col id="ptdc_fromdd"/>
  108. <Col id="ptdc_empid"/>
  109. <Col id="ptdc_empidnm"/>
  110. <Col id="ptdc_emprela"/>
  111. <Col id="ptdc_discappacptyn"/>
  112. <Col id="ptdc_profacptyn"/>
  113. <Col id="ptdc_profacptdd"/>
  114. <Col id="ptdc_remfact"/>
  115. <Col id="ptdc_fstrgstrid"/>
  116. <Col id="ptdc_fstrgstdt"/>
  117. <Col id="ptdc_lastupdtrid"/>
  118. <Col id="ptdc_lastupdtdt"/>
  119. </Row>
  120. </Rows>
  121. </Dataset>
  122. <Dataset id="ds_hidden_session" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  123. <Dataset id="ds_init_com_P0016list" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  124. <Dataset id="ds_init_disccd" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  125. <Dataset id="ds_hidden_userpopupinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  126. <ColumnInfo>
  127. <Column id="param" type="STRING" size="256"/>
  128. <Column id="flag" type="STRING" size="256"/>
  129. <Column id="searchitem" type="STRING" size="256"/>
  130. </ColumnInfo>
  131. <Rows>
  132. <Row/>
  133. </Rows>
  134. </Dataset>
  135. </Objects>
  136. <Bind>
  137. <BindItem id="item0" compid="ipt_disccd" propid="value" datasetid="ds_main_h_ptdc_ptdc" columnid="ptdc_disccd"/>
  138. <BindItem id="item1" compid="cmb_disccd" propid="value" datasetid="ds_main_h_ptdc_ptdc" columnid="ptdc_disccd"/>
  139. <BindItem id="item2" compid="ipt_todd" propid="value" datasetid="ds_main_h_ptdc_ptdc" columnid="ptdc_todd"/>
  140. <BindItem id="item3" compid="ipt_fromdd" propid="value" datasetid="ds_main_h_ptdc_ptdc" columnid="ptdc_fromdd"/>
  141. <BindItem id="item4" compid="ipt_empid" propid="value" datasetid="ds_main_h_ptdc_ptdc" columnid="ptdc_empid"/>
  142. <BindItem id="item5" compid="opt_empidnm" propid="value" datasetid="ds_main_h_ptdc_ptdc" columnid="ptdc_empidnm"/>
  143. <BindItem id="item7" compid="cmb_emprela" propid="value" datasetid="ds_main_h_ptdc_ptdc" columnid="ptdc_emprela"/>
  144. <BindItem id="item8" compid="radio1" propid="value" datasetid="ds_main_h_ptdc_ptdc" columnid="ptdc_discappacptyn"/>
  145. <BindItem id="item9" compid="radio2" propid="value" datasetid="ds_main_h_ptdc_ptdc" columnid="ptdc_profacptyn"/>
  146. <BindItem id="item10" compid="input3" propid="value" datasetid="ds_main_h_ptdc_ptdc" columnid="ptdc_profacptdd"/>
  147. <BindItem id="item11" compid="textarea2" propid="value" datasetid="ds_main_h_ptdc_ptdc" columnid="ptdc_remfact"/>
  148. </Bind>
  149. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  150. * System Name :
  151. * Job Name :
  152. * Creator :
  153. * Make Date : 2016-11-17
  154. * Description :
  155. *---------------------------------------------------------------------------------------
  156. * Modify Date Modifier Modify Description
  157. *---------------------------------------------------------------------------------------
  158. * 2016-11-17 Live Converter TF->XP
  159. *
  160. *---------------------------------------------------------------------------------------
  161. ****************************************************************************************/
  162. //=======================================================================================
  163. // Lib Include
  164. //---------------------------------------------------------------------------------------
  165. include 'com_commonxp::comm_main.xjs';
  166. var arErrorCode = new HashArray();
  167. //=======================================================================================
  168. // Local methods
  169. //---------------------------------------------------------------------------------------
  170. /**
  171. * submit 후 호출 될 공통 콜백
  172. * @param {[type]} sSvcId [description]
  173. * @param {[type]} nErrorCode [description]
  174. * @param {[type]} sErrorMsg [description]
  175. * @return {Function} [description]
  176. */
  177. function callback(sSvcId, nErrorCode, sErrorMsg) {
  178. arErrorCode.push(sSvcId, nErrorCode);
  179. }
  180. //=======================================================================================
  181. // Events
  182. //---------------------------------------------------------------------------------------
  183. /**
  184. * onload 이벤트 발생 시 호출
  185. * @param {[type]} obj:Form [description]
  186. * @param {[type]} e:LoadEventInfo [description]
  187. */
  188. function SPPMC04000_onload(obj: Form, e: LoadEventInfo) {
  189. frmf_initForm(obj);
  190. //default Set
  191. ds_main_h_ptdc_ptdc.setColumn(0, "ptdc_discappacptyn", "N");
  192. ds_main_h_ptdc_ptdc.setColumn(0, "ptdc_profacptyn", "N");
  193. fGetUserInfosSampling();
  194. //공통코드
  195. appf_getCodeList([{ dsNm: 'ds_init_com_P0016list', cdGrpId: 'P0016' }]);//직원과의 관계
  196. var oParam = {};
  197. oParam.id = "TRPAMCOM01";
  198. oParam.service = "pamcomnapp.PamComn";
  199. oParam.method = "reqGetComCD";
  200. oParam.inds = "req=ds_";
  201. oParam.outds = "ds_init_disccd=disccd";
  202. oParam.async = false;
  203. tranf_submit(oParam);
  204. //SPPMC04000_PARM : pid▦disccd▦strSend▦strRcv▦
  205. if (frmf_checkOpener()) {
  206. opener.frmf_setParameter("SPPMC04000_RTN", "");
  207. var SPPMC04000_PARM = opener.frmf_getParameter("SPPMC04000_PARM");
  208. var array_parm = SPPMC04000_PARM.split("▦");
  209. gPID = utlf_transNullToEmpty(array_parm[0]);
  210. gDisccd = array_parm[1];
  211. strSend = array_parm[2];
  212. strRcv = utlf_transNullToEmpty(array_parm[3]);
  213. ds_main_h_ptdc_ptdc.setColumn(0, "ptdc_fromdd", utlf_getCurrentDate());
  214. ds_main_h_ptdc_ptdc.setColumn(0, "ptdc_todd", "99991231");
  215. ds_main_h_ptdc_ptdc.setColumn(0, "ptdc_discappacptyn", "N");
  216. ds_main_h_ptdc_ptdc.setColumn(0, "ptdc_profacptyn", "N");
  217. ds_main_h_ptdc_ptdc.setColumn(0, "ptdc_profacptdd", utlf_getCurrentDate());
  218. //환자번호가 넘어오면, 해당환자의 감면내역 조회
  219. //환자번호가 없으면, 환자번호가 없는 신규입력
  220. if (gPID != "" && gPID != " ") {
  221. //해당환자의 감면내역조회
  222. }
  223. opener.frmf_setParameter("SPPMC04000_PARM", "");
  224. }
  225. }
  226. /**
  227. * ipt_disccd 텍스트 입력 후 이벤트
  228. * @param {[type]} obj:Edit [description]
  229. * @param {[type]} e:TextChangedEventInfo [description]
  230. * @return {[type]} [description]
  231. */
  232. function ipt_disccd_ontextchanged(obj:Edit, e:TextChangedEventInfo)
  233. {
  234. var msg = e.posttext;
  235. if(msg.length == 3){
  236. ds_main_h_ptdc_ptdc.setColumn(0, 'ptdc_disccd', msg);
  237. }
  238. }
  239. /**
  240. * 직원성명 아이콘 클릭 이벤트
  241. * @param {[type]} obj:Button [description]
  242. * @param {[type]} e:ClickEventInfo [description]
  243. * @return {[type]} [description]
  244. */
  245. function button29_onclick(obj: Button, e: ClickEventInfo) {
  246. ds_hidden_userpopupinfo.setColumn(0, "param", "_OneS");
  247. ds_hidden_userpopupinfo.setColumn(0, "flag", "usernm");
  248. ds_hidden_userpopupinfo.setColumn(0, "searchitem", "사용자명");
  249. var retDs = frmf_modal("SPZSU10103", "SPZSU10103", { arg_ds_hidden_userpopupinfo: ds_hidden_userpopupinfo }, "", "", "", "", "", "", "", "", "", "M");
  250. ds_main_h_ptdc_ptdc.setColumn(0, "ptdc_empid", retDs.getColumn(0, "userid"));
  251. ds_main_h_ptdc_ptdc.setColumn(0, "ptdc_empidnm", retDs.getColumn(0, "usernm"));
  252. }
  253. /**
  254. * 확인 버튼 클릭 이벤트
  255. * @param {[type]} obj: Button [description]
  256. * @param {[type]} e: ClickEventInfo [description]
  257. * @return {[type]} [description]
  258. */
  259. function btn_confirm_onclick(obj: Button, e: ClickEventInfo) {
  260. //필수사항과 입력타입을 체크한다.
  261. if (frmf_isRequiredControls(["cmb_disccd", "ipt_fromdd"])) {
  262. //messageBox("모든 필수값이 입력이","I002")
  263. } else {
  264. return;
  265. }
  266. if (frmf_checkOpener()) {
  267. opener.frmf_setParameter("SPPMC04000_RTN", "Y");
  268. if (strRcv != "" && strRcv != " " && strRcv != "-") {
  269. opener.objects[strRcv].copyData(ds_main_h_ptdc_ptdc, false);
  270. }
  271. this.close();
  272. }
  273. }
  274. /**
  275. * 취소 버튼 클릭 이벤트
  276. * @param {[type]} obj: Button [description]
  277. * @param {[type]} e: ClickEventInfo [description]
  278. * @return {[type]} [description]
  279. */
  280. function btn_cancel_onclick(obj: Button, e: ClickEventInfo) {
  281. if (frmf_checkOpener()) {
  282. opener.frmf_setParameter("SPPMC04000_RTN", "N");
  283. this.close();
  284. }
  285. }
  286. /**
  287. * 직원가족사항 버튼 클릭 이벤트
  288. * @param {[type]} obj: Button [description]
  289. * @param {[type]} e: ClickEventInfo [description]
  290. * @return {[type]} [description]
  291. */
  292. function button2_onclick(obj: Button, e: ClickEventInfo) {
  293. frmf_modal("SPPMC03800", "SPPMC03800", "", "", "", "", "", "", "", "", "", "", "M");
  294. }]]></Script>
  295. </Form>
  296. </FDL>