SPPMC05300_원무사용자조회.xfdl 32 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756
  1. <?xml version="1.0" encoding="utf-8" standalone="no"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SPPMC05300" position="absolute 0 0 634 343" titletext="VIP환자기초정보조회" onload="SPPMC05300_onload">
  5. <Layouts>
  6. <Layout>
  7. <Div id="group3" scrollbars="autoboth" position="absolute 0 0 618 316" style="">
  8. <Layouts>
  9. <Layout>
  10. <Div id="group2" position="absolute 0 0 618 35" style="" class="div_SA">
  11. <Layouts>
  12. <Layout>
  13. <Static id="caption2" class="search_name" position="absolute 15 8 101 25" style="" text="검색조건 :"/>
  14. <Button id="btn_search" class="btn1_letter2" taborder="6" position="absolute 545 7 601 29" style="" text="조회" onclick="group3_group2_btn_search_onclick"/>
  15. <Shape id="line13" class="line_4" linetype="vertical" position="absolute 529 7 532 29" style="border: solid #ffe4bb #ffe4bb;" anchor="default"/>
  16. <Edit id="ipt_hngnm" class="input_search" taborder="1" visible="false" position="absolute 224 8 354 27" style="" anchor="default" onkeypress="group3_group2_ipt_hngnm_onkeypress"/>
  17. <MaskEdit id="ipt_rrgstno1" class="input_search" taborder="2" visible="false" mask="999999" position="absolute 247 8 332 27" style="" anchor="default" onkeypress="group3_group2_ipt_rrgstno1_onkeypress"/>
  18. <Combo innerdataset="ds_init_P0350list_P0350" datacolumn="cdnm" codecolumn="cdid" columncount="-1" rowcount="-1" id="cmb_cond" class="combo_search" taborder="10" position="absolute 106 8 216 27" style="" onitemchanged="group3_group2_cmb_cond_onitemchanged"/>
  19. <MaskEdit id="ipt_rrgstno2" class="input_search" taborder="3" visible="false" mask="9999999" position="absolute 285 8 370 27" style="" anchor="default" onkeypress="group3_group2_ipt_rrgstno2_onkeypress"/>
  20. <MaskEdit id="ipt_pid" class="input_search" taborder="4" visible="false" mask="9999999999" position="absolute 325 8 455 27" style="" anchor="default" onkeypress="group3_group2_ipt_pid_onkeypress"/>
  21. </Layout>
  22. </Layouts>
  23. </Div>
  24. <Static id="caption1" class="tit_2" position="absolute 5 44 112 61" style="" text="인적사항"/>
  25. <Shape id="line1" class="line_10" linetype="horizontal" position="absolute 0 61 617 65" style="" anchor="default"/>
  26. <Grid id="grd_patbaseinfo" binddataset="ds_main_patbaseinfo_patbaseinfolist" taborder="7" position="absolute 0 65 617 315" style="" oncelldblclick="group3_grd_patbaseinfo_oncelldblclick" onkeypress="group3_grd_patbaseinfo_onkeypress">
  27. <Formats>
  28. <Format id="default">
  29. <Columns>
  30. <Column size="68"/>
  31. <Column size="100"/>
  32. <Column size="69"/>
  33. <Column size="67"/>
  34. <Column size="65"/>
  35. <Column size="50"/>
  36. <Column size="50"/>
  37. <Column size="85"/>
  38. <Column size="100"/>
  39. <Column size="0"/>
  40. <Column size="0"/>
  41. <Column size="0"/>
  42. <Column size="0"/>
  43. <Column size="0"/>
  44. <Column size="0"/>
  45. <Column size="0"/>
  46. <Column size="0"/>
  47. <Column size="0"/>
  48. <Column size="50"/>
  49. <Column size="50"/>
  50. <Column size="0"/>
  51. <Column size="250"/>
  52. <Column size="250"/>
  53. <Column size="0"/>
  54. <Column size="0"/>
  55. <Column size="100"/>
  56. <Column size="100"/>
  57. <Column size="0"/>
  58. <Column size="0"/>
  59. <Column size="0"/>
  60. <Column size="0"/>
  61. <Column size="0"/>
  62. <Column size="0"/>
  63. <Column size="0"/>
  64. <Column size="0"/>
  65. <Column size="0"/>
  66. <Column size="0"/>
  67. <Column size="0"/>
  68. <Column size="0"/>
  69. <Column size="0"/>
  70. <Column size="0"/>
  71. <Column size="0"/>
  72. <Column size="0"/>
  73. <Column size="0"/>
  74. <Column size="0"/>
  75. <Column size="0"/>
  76. <Column size="100"/>
  77. <Column size="100"/>
  78. <Column size="100"/>
  79. </Columns>
  80. <Rows>
  81. <Row size="23" band="head"/>
  82. <Row size="23"/>
  83. </Rows>
  84. <Band id="head">
  85. <Cell text="등록번호"/>
  86. <Cell col="1" text="vip등록번호"/>
  87. <Cell col="2" text="vip분류"/>
  88. <Cell col="3" text="vip구분"/>
  89. <Cell col="4" text="환자성명"/>
  90. <Cell col="5" colspan="2" text="주민등록번호" taborder="undefined"/>
  91. <Cell col="7" text="집전화번호"/>
  92. <Cell col="8" text="휴대전화번호"/>
  93. <Cell col="9" displaytype="normal" text="생일"/>
  94. <Cell col="10" text="성별"/>
  95. <Cell col="11" text="나이"/>
  96. <Cell col="12" text="이메일"/>
  97. <Cell col="13" text="기타전화번호1"/>
  98. <Cell col="14" text="연락방법"/>
  99. <Cell col="15" text="정보공개여부"/>
  100. <Cell col="16" text="시작일자"/>
  101. <Cell col="17" text="종료일자"/>
  102. <Cell col="18" colspan="2" text="우편번호" taborder="undefined"/>
  103. <Cell col="20" text="우편번호순서"/>
  104. <Cell col="21" text="주소"/>
  105. <Cell col="22" text="상세주소"/>
  106. <Cell col="23" text="종료사유"/>
  107. <Cell col="24" text="진료참조사항"/>
  108. <Cell col="25" text="근무처"/>
  109. <Cell col="26" text="직책"/>
  110. <Cell col="27" text="종교"/>
  111. <Cell col="28" text="세례명"/>
  112. <Cell col="29" text="영명축일"/>
  113. <Cell col="30" text="생일"/>
  114. <Cell col="31" text="음력_양력구분"/>
  115. <Cell col="32" text="외국인여부"/>
  116. <Cell col="33" text="국적"/>
  117. <Cell col="34" text="차종"/>
  118. <Cell col="35" text="차량번호"/>
  119. <Cell col="36" text="의뢰자"/>
  120. <Cell col="37" text="의뢰자와의관계"/>
  121. <Cell col="38" text="수행원이름"/>
  122. <Cell col="39" text="수행원과의관계"/>
  123. <Cell col="40" text="수행원연락처"/>
  124. <Cell col="41" text="VIP등록자"/>
  125. <Cell col="42" text="최초등록자ID"/>
  126. <Cell col="43" text="최초등록시간"/>
  127. <Cell col="44" text="최종수정자ID"/>
  128. <Cell col="45" text="최종수정시간"/>
  129. <Cell col="46" text="신청부서"/>
  130. <Cell col="47" text="신청부서명"/>
  131. <Cell col="48" text="vip관리부서"/>
  132. <Cell col="49" text="최초등록일시"/>
  133. <Cell col="50" text="최종수정자ID"/>
  134. <Cell col="51" text="최종수정일시"/>
  135. </Band>
  136. <Band id="body">
  137. <Cell style="align:left middle;" text="bind:pid"/>
  138. <Cell col="1" style="align:left middle;" text="bind:viprgstno"/>
  139. <Cell col="2" displaytype="combo" style="align:left middle;" text="bind:vipcls" combodataset="ds_init_P0444list_P0444" combocodecol="cdid" combodatacol="cdnm"/>
  140. <Cell col="3" displaytype="combo" style="align:left middle;" text="bind:vipflag" combodataset="ds_init_P0444list_P0444" combocodecol="cdid" combodatacol="cdnm"/>
  141. <Cell col="4" style="align:left middle;" text="bind:hngnm"/>
  142. <Cell col="5" style="align:left middle;" text="bind:rrgstno1"/>
  143. <Cell col="6" style="align:left middle;" text="bind:rrgstno2"/>
  144. <Cell col="7" style="align:left middle;" text="bind:hometel"/>
  145. <Cell col="8" style="align:left middle;" text="bind:mpphontel"/>
  146. <Cell col="9" displaytype="date" style="align:left middle;" text="bind:brthdd" mask="yyyy-MM-dd" calendardisplaynulltype="nulltext"/>
  147. <Cell col="10" style="align:left middle;" text="bind:sex"/>
  148. <Cell col="11" style="align:left middle;" text="bind:age"/>
  149. <Cell col="12" style="align:left middle;" text="bind:email"/>
  150. <Cell col="13" style="align:left middle;" text="bind:etctel1"/>
  151. <Cell col="14" style="align:left middle;" text="bind:cntcmthd"/>
  152. <Cell col="15" style="align:left middle;" text="bind:infoopenyn"/>
  153. <Cell col="16" displaytype="date" style="align:left middle;" text="bind:fromdd" mask="yyyy-MM-dd" calendardisplaynulltype="nulltext"/>
  154. <Cell col="17" displaytype="date" style="align:left middle;" text="bind:todd" mask="yyyy-MM-dd" calendardisplaynulltype="nulltext"/>
  155. <Cell col="18" style="align:left middle;" text="bind:zipcd1"/>
  156. <Cell col="19" style="align:left middle;" text="bind:zipcd2"/>
  157. <Cell col="20" style="align:left middle;" text="bind:zipcdseq"/>
  158. <Cell col="21" style="align:left middle;" text="bind:addr"/>
  159. <Cell col="22" style="align:left middle;" text="bind:detladdr"/>
  160. <Cell col="23" style="align:left middle;" text="bind:endresn"/>
  161. <Cell col="24" style="align:left middle;" text="bind:ordremfact"/>
  162. <Cell col="25" style="align:left middle;" text="bind:dutplce"/>
  163. <Cell col="26" style="align:left middle;" text="bind:jobpos"/>
  164. <Cell col="27" style="align:left middle;" text="bind:religncd"/>
  165. <Cell col="28" style="align:left middle;" text="bind:baptnm"/>
  166. <Cell col="29" style="align:left middle;" text="bind:fairnmfestivday"/>
  167. <Cell col="30" style="align:left middle;" text="bind:brthdate"/>
  168. <Cell col="31" style="align:left middle;" text="bind:lunarsolarflag"/>
  169. <Cell col="32" style="align:left middle;" text="bind:forgneryn"/>
  170. <Cell col="33" style="align:left middle;" text="bind:nati"/>
  171. <Cell col="34" style="align:left middle;" text="bind:carkind"/>
  172. <Cell col="35" style="align:left middle;" text="bind:carno"/>
  173. <Cell col="36" style="align:left middle;" text="bind:requester"/>
  174. <Cell col="37" style="align:left middle;" text="bind:requesterrela"/>
  175. <Cell col="38" style="align:left middle;" text="bind:attendantnm"/>
  176. <Cell col="39" style="align:left middle;" text="bind:attendantrela"/>
  177. <Cell col="40" style="align:left middle;" text="bind:attendanttelno"/>
  178. <Cell col="41" style="align:left middle;" text="bind:viprgstrnm"/>
  179. <Cell col="42" style="align:left middle;" text="bind:fstrgstrid"/>
  180. <Cell col="43" style="align:left middle;" text="bind:fstrgstdt"/>
  181. <Cell col="44" style="align:left middle;" text="bind:lastupdtrid"/>
  182. <Cell col="45" style="align:left middle;" text="bind:lastupdtdt"/>
  183. <Cell col="46" style="align:left middle;" text="bind:vipappdept"/>
  184. <Cell col="47" style="align:left middle;" text="bind:vipappdeptnm"/>
  185. <Cell col="48" style="align:left middle;" text="bind:vipmngtdept"/>
  186. </Band>
  187. </Format>
  188. </Formats>
  189. </Grid>
  190. </Layout>
  191. </Layouts>
  192. </Div>
  193. <Div id="group1" scrollbars="autoboth" position="absolute 0 316 618 343" style="">
  194. <Layouts>
  195. <Layout>
  196. <Button id="btn_confirm" class="btn4_letter2" taborder="8" position="absolute 502 5 558 27" style="" text="확인" onclick="group1_btn_confirm_onclick"/>
  197. <Button id="btn_cancel" class="btn4_letter2" taborder="9" position="absolute 561 5 617 27" style="" text="취소" onclick="group1_btn_cancel_onclick"/>
  198. <Shape id="line32" class="line_6" linetype="horizontal" position="absolute 0 0 618 3" style="" anchor="default"/>
  199. </Layout>
  200. </Layouts>
  201. </Div>
  202. </Layout>
  203. </Layouts>
  204. <Objects>
  205. <Dataset id="ds_main_patbaseinfo_patbaseinfolist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  206. <ColumnInfo/>
  207. </Dataset>
  208. <Dataset id="ds_hidden_uid" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  209. <ColumnInfo>
  210. <Column id="myself" type="STRING" size="256"/>
  211. <Column id="opener" type="STRING" size="256"/>
  212. </ColumnInfo>
  213. </Dataset>
  214. <Dataset id="ds_init_P0350list" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  215. <ColumnInfo/>
  216. </Dataset>
  217. <Dataset id="ds_init_P0350list_P0350" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  218. <ColumnInfo>
  219. <Column id="cdnm" type="STRING" size="256"/>
  220. <Column id="cdid" type="STRING" size="256"/>
  221. </ColumnInfo>
  222. <Rows>
  223. <Row>
  224. <Col id="cdnm"/>
  225. <Col id="cdid"/>
  226. </Row>
  227. </Rows>
  228. </Dataset>
  229. <Dataset id="ds_main" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  230. <ColumnInfo/>
  231. </Dataset>
  232. <Dataset id="ds_init" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  233. <ColumnInfo/>
  234. </Dataset>
  235. <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  236. <ColumnInfo>
  237. <Column id="srchcond" type="STRING" size="256"/>
  238. <Column id="pid" type="STRING" size="256"/>
  239. <Column id="hngnm" type="STRING" size="256"/>
  240. <Column id="rrgstno1" type="STRING" size="256"/>
  241. <Column id="rrgstno2" type="STRING" size="256"/>
  242. <Column id="deptflag" type="STRING" size="256"/>
  243. </ColumnInfo>
  244. <Rows>
  245. <Row>
  246. <Col id="srchcond"/>
  247. <Col id="pid"/>
  248. <Col id="hngnm"/>
  249. <Col id="rrgstno1"/>
  250. <Col id="rrgstno2"/>
  251. <Col id="deptflag"/>
  252. </Row>
  253. </Rows>
  254. </Dataset>
  255. <Dataset id="ds_hidden" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  256. <ColumnInfo>
  257. <Column id="tmp" type="STRING" size="256"/>
  258. </ColumnInfo>
  259. </Dataset>
  260. <Dataset id="ds_init_P0443list_P0443" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  261. <ColumnInfo>
  262. <Column id="cdnm" type="STRING" size="256"/>
  263. <Column id="cdid" type="STRING" size="256"/>
  264. </ColumnInfo>
  265. <Rows>
  266. <Row>
  267. <Col id="cdnm"/>
  268. <Col id="cdid"/>
  269. </Row>
  270. </Rows>
  271. </Dataset>
  272. <Dataset id="ds_init_P0444list_P0444" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  273. <ColumnInfo>
  274. <Column id="cdnm" type="STRING" size="256"/>
  275. <Column id="cdid" type="STRING" size="256"/>
  276. </ColumnInfo>
  277. <Rows>
  278. <Row>
  279. <Col id="cdnm"/>
  280. <Col id="cdid"/>
  281. </Row>
  282. </Rows>
  283. </Dataset>
  284. </Objects>
  285. <Bind>
  286. <BindItem id="item0" compid="group3.group2.ipt_hngnm" propid="value" datasetid="ds_send" columnid="hngnm"/>
  287. <BindItem id="item1" compid="group3.group2.ipt_rrgstno1" propid="value" datasetid="ds_send" columnid="rrgstno1"/>
  288. <BindItem id="item2" compid="group3.group2.cmb_cond" propid="value" datasetid="ds_send" columnid="srchcond"/>
  289. <BindItem id="item3" compid="group3.group2.ipt_rrgstno2" propid="value" datasetid="ds_send" columnid="rrgstno2"/>
  290. <BindItem id="item4" compid="group3.group2.ipt_pid" propid="value" datasetid="ds_send" columnid="pid"/>
  291. </Bind>
  292. <Script type="xscript4.0"><![CDATA[include "com_commonxp::comm_main.xjs"
  293. include "com_basiccodexp::ZBC001.xjs"
  294. include "pam_pamcomnxp::PAM.xjs"
  295. var arErrorCode = new HashArray();
  296. function SPPMC05300_onload(obj:Form, e:LoadEventInfo) {
  297. frmf_initForm(obj);
  298. grdf_initGrid(group3.grd_patbaseinfo);
  299. //grdf_setGridSort(grd_XXX);
  300. //grdf_setRowTypeIcon(grd_XXX, 0_컬럼위치값);
  301. var arrParam = [
  302. {dsNm: "ds_init_P0350list", cdGrpId: "P0350" }
  303. ];
  304. appf_getCodeList(arrParam);
  305. dsf_makeValue( ds_send, "deptflag", "string", "" );
  306. ds_send.setColumn( 0, "deptflag", opener.javascript.frmf_getParameter("deptcd"));
  307. var deptflag = ds_send.getColumn(0, "deptflag");
  308. //model.alert(deptflag);
  309. //플래그 초기화!
  310. opener.dsf_makeValue( ds_main, "popupendflag", "string", "" );
  311. opener.ds_main.setColumn( 0, "popupendflag", "cancel");
  312. if( ds_send_srchcond.rowcount;> 0 ){
  313. if( ds_send.getColumn(0, "checkfnexam") != "1" ){
  314. //조회조건에서 '예약일시'를 제거한다.
  315. group3.group2.cmb_cond.choices.itemset.attribute("nodeset") = "ds_init_P0350list_P0350[cdid != '5' ]";
  316. }
  317. fChangeSearchCondition( ds_send.getColumn(0, "srchcond") );
  318. //model.refresh();
  319. //값이 부모창에서 입력되었을 경우 조회한다.
  320. if(ds_send.getColumn(0, "srchcond") != '5' && fInputValueCheckXformsReady() ){
  321. //if( fInputValueCheckXformsReady() ){
  322. //if( submit("TRPMC05001") ){
  323. var oParam = {};
  324. oParam.id = "TRPMC05001";
  325. oParam.service = "patinfomngtapp.VipPatMngt";
  326. oParam.method = "reqGetBasePatInfo";
  327. oParam.inds = "req=ds_send";
  328. oParam.outds = "ds_main_patbaseinfo_patbaseinfolist=patbaseinfolist";
  329. oParam.async = false;
  330. oParam.callback = "cf_TRPMC05001";
  331. tranf_submit(oParam);
  332. if(arErrorCode.pop("TRPMC05001") > -1) {
  333. if( group3.grd_patbaseinfo.rows == 2 ){
  334. if( ds_send.getColumn(0, "autoflag").toUpperCase() == "Y" ){ //조회 내역이 1건일 경우 자동 화면 닫기
  335. group3.grd_patbaseinfo.setFocus();
  336. group1.btn_confirm.dispatch("DOMActivate");
  337. window.close();
  338. }
  339. }
  340. if( group3.grd_patbaseinfo.rows > 1 ){
  341. group3.grd_patbaseinfo.setFocus();
  342. }else{
  343. if( ds_send.getColumn(0, "autoflag").toUpperCase() == "NON" ){ //조회 내역이 없을 경우 자동 화면 닫기
  344. group1.btn_cancel.dispatch("DOMActivate");
  345. //window.close();
  346. }
  347. fChangeSearchCondition( group3.group2.cmb_cond.value );
  348. }
  349. }
  350. }
  351. }else{
  352. //조회조건에서 '예약일시'를 제거한다.
  353. group3.group2.cmb_cond.choices.itemset.attribute("nodeset") = "ds_init_P0350list_P0350[cdid != '5' ]";
  354. dsf_makeValue( ds_send, "srchcond", "string", "" );
  355. dsf_makeValue( ds_send, "pid", "string", "" );
  356. dsf_makeValue( ds_send, "hngnm", "string", "" );
  357. dsf_makeValue( ds_send, "rrgstno1", "string", "" );
  358. dsf_makeValue( ds_send, "rrgstno2", "string", "" );
  359. //model.refresh();
  360. }
  361. }
  362. function cf_TRPMC05001(sSvcId, nErrorCode, sErrorMsg) {
  363. arErrorCode.push(sSvcId, nErrorCode);
  364. }
  365. //창 생성시 부모창으로 부터 받은 입력값의 유효범위 체크
  366. function fInputValueCheckXformsReady(){
  367. var cond = ds_send.getColumn(0, "srchcond");
  368. switch(cond){
  369. case '1':
  370. //환자등록번호 체크
  371. if(group3.group2.ipt_pid.text.length >= 1 ){
  372. ds_send.setColumn( 0, "pid", group3.group2.ipt_pid.text);
  373. return (true);
  374. }else{
  375. //sysf_messageBox("환자등록번호를 정확히", "C001");
  376. return (false);
  377. }
  378. break;
  379. case '2':
  380. //환자이름 체크
  381. //if( group3.group2.ipt_hngnm.text.length >= 2 ) return (true);
  382. if(group3.group2.ipt_hngnm.text.length >= 2 ){
  383. ds_send.setColumn( 0, "hngnm", group3.group2.ipt_hngnm.text);
  384. return (true);
  385. }else{
  386. //sysf_messageBox("환자이름을 2자리 이상", "C001");
  387. return (false);
  388. }
  389. break;
  390. case '3':
  391. //환자 주민번호 체크
  392. if( group3.group2.ipt_rrgstno1.text.length >= 1 || group3.group2.ipt_rrgstno2.text.length >= 1){
  393. ds_send.setColumn( 0, "rrgstno1", group3.group2.ipt_rrgstno1.text);
  394. ds_send.setColumn( 0, "rrgstno2", group3.group2.ipt_rrgstno2.text);
  395. return (true);
  396. }else{
  397. //sysf_messageBox("환자 주민번호를", "C001");
  398. return (false);
  399. }
  400. break;
  401. case '4':
  402. //환자이름 유효성 체크. 환자 주민번호 체크
  403. if(group3.group2.ipt_hngnm.text.length >= 2 || group3.group2.ipt_rrgstno1.text.length >= 1 || group3.group2.ipt_rrgstno2.text.length >= 1){
  404. ds_send.setColumn( 0, "hngnm", group3.group2.ipt_hngnm.text);
  405. ds_send.setColumn( 0, "rrgstno1", group3.group2.ipt_rrgstno1.text);
  406. ds_send.setColumn( 0, "rrgstno2", group3.group2.ipt_rrgstno2.text);
  407. }else{
  408. //sysf_messageBox("환자이름을 2자리 이상", "C001");
  409. return (false);
  410. }
  411. return( true );
  412. break;
  413. default :
  414. group3.group2.cmb_cond.setFocus();
  415. return( false );
  416. break;
  417. }
  418. }
  419. //입력값의 유효범위 체크
  420. function fInputValueCheck(){
  421. var cond = ds_send.getColumn(0, "srchcond");
  422. switch(cond){
  423. case '1':
  424. //환자등록번호 체크
  425. if(group3.group2.ipt_pid.text.length >= 1 ){
  426. ds_send.setColumn( 0, "pid", group3.group2.ipt_pid.text);
  427. return (true);
  428. }else{
  429. sysf_messageBox("환자등록번호를 정확히", "C001");
  430. return (false);
  431. }
  432. break;
  433. case '2':
  434. //환자이름 체크
  435. //if( group3.group2.ipt_hngnm.text.length >= 2 ) return (true);
  436. if(group3.group2.ipt_hngnm.text.length >= 2 ){
  437. ds_send.setColumn( 0, "hngnm", group3.group2.ipt_hngnm.text);
  438. return (true);
  439. }else{
  440. sysf_messageBox("환자이름을 2자리 이상", "C001");
  441. return (false);
  442. }
  443. break;
  444. case '3':
  445. //환자 주민번호 체크
  446. if( group3.group2.ipt_rrgstno1.text.length >= 1 || group3.group2.ipt_rrgstno2.text.length >= 1 ){
  447. ds_send.setColumn( 0, "rrgstno1", group3.group2.ipt_rrgstno1.text);
  448. ds_send.setColumn( 0, "rrgstno2", group3.group2.ipt_rrgstno2.text);
  449. return (true);
  450. }else{
  451. sysf_messageBox("환자 주민번호를", "C001");
  452. return (false);
  453. }
  454. break;
  455. case '4':
  456. //환자이름 유효성 체크. 환자 주민번호 체크
  457. if(group3.group2.ipt_hngnm.text.length >= 2 || group3.group2.ipt_rrgstno1.text.length >= 1 || group3.group2.ipt_rrgstno2.text.length >= 1){
  458. ds_send.setColumn( 0, "hngnm", group3.group2.ipt_hngnm.text);
  459. ds_send.setColumn( 0, "rrgstno1", group3.group2.ipt_rrgstno1.text);
  460. ds_send.setColumn( 0, "rrgstno2", group3.group2.ipt_rrgstno2.text);
  461. }else{
  462. sysf_messageBox("환자이름 또는 주민번호를", "C001");
  463. return (false);
  464. }
  465. return( true );
  466. break;
  467. default :
  468. sysf_messageBox("검색조건이 정확히 선택되지 않았습니다. 확인 후 다시 시도해 주십시요.", "E999", "");
  469. group3.group2.cmb_cond.setFocus();
  470. return( false );
  471. break;
  472. }
  473. }
  474. //조회 조건에 맞는 input 컨트롤을 세팅해 준다.
  475. function fChangeSearchCondition( cond){
  476. switch(cond){
  477. case '1':
  478. dsf_makeValue( ds_send, "pid", "string", "" );
  479. dsf_makeValue( ds_send, "deptflag", "string", "" );
  480. group3.group2.ipt_pid.visible = true;
  481. group3.group2.ipt_pid.attribute("left") = "219px";
  482. group3.group2.ipt_pid.attribute("top") = "8px";
  483. group3.group2.ipt_hngnm.visible = "hidden";
  484. group3.group2.ipt_rrgstno1.visible = "hidden";
  485. group3.group2.ipt_rrgstno2.visible = "hidden";
  486. group3.group2.ipt_pid.setFocus();
  487. break;
  488. case '2':
  489. dsf_makeValue( ds_send, "hngnm", "string", "" );
  490. dsf_makeValue( ds_send, "deptflag", "string", "" );
  491. group3.group2.ipt_hngnm.visible = true;
  492. group3.group2.ipt_hngnm.attribute("left") = "219px";
  493. group3.group2.ipt_hngnm.attribute("top") = "8px";
  494. group3.group2.ipt_pid.visible = "hidden";
  495. group3.group2.ipt_rrgstno1.visible = "hidden";
  496. group3.group2.ipt_rrgstno2.visible = "hidden";
  497. group3.group2.ipt_hngnm.setFocus();
  498. break;
  499. case '3':
  500. dsf_makeValue( ds_send, "rrgstno1", "string", "" );
  501. dsf_makeValue( ds_send, "rrgstno2", "string", "" );
  502. dsf_makeValue( ds_send, "deptflag", "string", "" );
  503. group3.group2.ipt_rrgstno1.visible = true;
  504. group3.group2.ipt_rrgstno2.visible = true;
  505. group3.group2.ipt_rrgstno1.attribute("left") = "219px";
  506. group3.group2.ipt_rrgstno1.attribute("top") = "8px";
  507. group3.group2.ipt_rrgstno2.attribute("left") = "307px";
  508. group3.group2.ipt_rrgstno2.attribute("top") = "8px";
  509. group3.group2.ipt_hngnm.visible = "hidden";
  510. group3.group2.ipt_pid.visible = "hidden";
  511. group3.group2.ipt_rrgstno1.setFocus();
  512. break;
  513. case '4':
  514. //dsf_makeValue( ds_send, "pid", "string", "" );
  515. dsf_makeValue( ds_send, "hngnm", "string", "" );
  516. dsf_makeValue( ds_send, "rrgstno1", "string", "" );
  517. dsf_makeValue( ds_send, "rrgstno2", "string", "" );
  518. dsf_makeValue( ds_send, "deptflag", "string", "" );
  519. group3.group2.ipt_hngnm.visible = true;
  520. group3.group2.ipt_hngnm.attribute("left") = "219px";
  521. group3.group2.ipt_hngnm.attribute("top") = "8px";
  522. group3.group2.ipt_pid.visible = "hidden";
  523. group3.group2.ipt_rrgstno1.visible = true;
  524. group3.group2.ipt_rrgstno1.attribute("left") = "352px";
  525. group3.group2.ipt_rrgstno1.attribute("top") = "8px";
  526. group3.group2.ipt_rrgstno2.visible = true;
  527. group3.group2.ipt_rrgstno2.attribute("left") = "440px";
  528. group3.group2.ipt_rrgstno2.attribute("top") = "8px";
  529. group3.group2.ipt_hngnm.setFocus();
  530. break;
  531. default :
  532. //sysf_messageBox("검색조건이 정확히 선택되지 않았습니다. 확인 후 다시 시도해 주십시요.", "E999", "");
  533. break;
  534. }
  535. }
  536. function group3_group2_btn_search_onclick(obj:Button, e:ClickEventInfo) {
  537. if( fInputValueCheck() ){
  538. //if( submit("TRPMC05001") ){
  539. var oParam = {};
  540. oParam.id = "TRPMC05001";
  541. oParam.service = "patinfomngtapp.VipPatMngt";
  542. oParam.method = "reqGetBasePatInfo";
  543. oParam.inds = "req=ds_send";
  544. oParam.outds = "ds_main_patbaseinfo_patbaseinfolist=patbaseinfolist";
  545. oParam.async = false;
  546. oParam.callback = "cf_TRPMC05001";
  547. tranf_submit(oParam);
  548. if(arErrorCode.pop("TRPMC05001") > -1) {
  549. if( group3.grd_patbaseinfo.rows > 1 ){
  550. group3.grd_patbaseinfo.setFocus();
  551. }else{
  552. fChangeSearchCondition( group3.group2.cmb_cond.value );
  553. }
  554. }
  555. }
  556. }
  557. function cf_TRPMC05001(sSvcId, nErrorCode, sErrorMsg) {
  558. arErrorCode.push(sSvcId, nErrorCode);
  559. }
  560. function group3_group2_ipt_hngnm_onkeydown(obj:Edit, e:KeyEventInfo) {
  561. inputEnterKey("group3.group2.btn_search", "DOMActivate");
  562. }
  563. function group3_group2_ipt_rrgstno1_onkeydown(obj:MaskEdit, e:KeyEventInfo) {
  564. inputEnterKey("group3.group2.btn_search", "DOMActivate");
  565. }
  566. function group3_group2_cmb_cond_onitemchanged(obj:Combo, e:ItemChangeEventInfo) {
  567. var cond = ds_send.getColumn(0, "srchcond");
  568. //
  569. //model.refresh();
  570. fChangeSearchCondition( cond );
  571. }
  572. function group3_group2_ipt_rrgstno2_onkeydown(obj:MaskEdit, e:KeyEventInfo) {
  573. inputEnterKey("group3.group2.btn_search", "DOMActivate");
  574. }
  575. function group3_group2_ipt_pid_onkeydown(obj:MaskEdit, e:KeyEventInfo) {
  576. inputEnterKey("group3.group2.btn_search", "DOMActivate");
  577. }
  578. function group3_grd_patbaseinfo_oncelldblclick(obj:Grid, e:GridClickEventInfo) {
  579. if ( frmf_checkOpener() ) {
  580. row = group3.grd_patbaseinfo.row;
  581. if( row > 0 ){
  582. if( ds_main_patbaseinfo_patbaseinfolist.rowcount;> 0 ){
  583. opener.model.copyNode("ds_main_vippatbaseinfo_vippatbaseinfolist", group3.grd_patbaseinfo.getNode( row ));
  584. opener.dsf_makeValue( ds_main, "popupendflag", "string", "" );
  585. opener.ds_main.setColumn( 0, "popupendflag", "ok");
  586. //opener.model.refresh();
  587. window.close();
  588. }
  589. }
  590. } else {
  591. sysf_messageBox("상위화면이 변경되어 데이터를 가져올 수", "I004");
  592. }
  593. }
  594. function group3_grd_patbaseinfo_onkeydown(obj:Grid, e:KeyEventInfo) {
  595. if( event.keyCode == 13 ){
  596. group1.btn_confirm.dispatch("DOMActivate");
  597. }
  598. //alert("aaa");
  599. }
  600. function group1_btn_confirm_onclick(obj:Button, e:ClickEventInfo) {
  601. if ( frmf_checkOpener() ) {
  602. row = group3.grd_patbaseinfo.row;
  603. opener.dsf_makeValue( ds_main, "popupendflag", "string", "" );
  604. opener.ds_main.setColumn( 0, "popupendflag", "cancel");
  605. if( row > 0 ){
  606. if( ds_main_patbaseinfo_patbaseinfolist.rowcount;> 0 ){
  607. //합번된 등록번호 메세지 처리
  608. var sPid = ds_main_patbaseinfo_patbaseinfolist.getColumn(row, "pid"));
  609. var sHngnm = ds_main_patbaseinfo_patbaseinfolist.getColumn(row, "hngnm"));
  610. var sBindPid = ds_main_patbaseinfo_patbaseinfolist.getColumn(row, "bindpid"));
  611. if( sBindPid != '' && sBindPid != '-' ){
  612. alert(sPid + "(" + sHngnm + ") 환자의 등록번호가 [ " + sBindPid + " ] 로 합번 되었습니다.");
  613. return false;
  614. }
  615. opener.model.copyNode("ds_main_vippatbaseinfo_vippatbaseinfolist", group3.grd_patbaseinfo.getNode( row ));
  616. opener.dsf_makeValue( ds_main, "popupendflag", "string", "" );
  617. opener.ds_main.setColumn( 0, "popupendflag", "ok");
  618. }
  619. //else{
  620. // opener.ds_main.setColumn( 0, "popupendflag", "cancel");
  621. //}
  622. //
  623. //opener.model.refresh();
  624. //window.close();
  625. }else {
  626. //opener.ds_main.setColumn( 0, "popupendflag", "cancel");
  627. sysf_messageBox("행이 정확히 선택되지", "E007");
  628. //
  629. //opener.model.refresh();
  630. //window.close();
  631. }
  632. } else {
  633. sysf_messageBox("상위화면이 변경되어 데이터를 가져올 수", "I004");
  634. //opener.ds_main.setColumn( 0, "popupendflag", "cancel");
  635. //
  636. //opener.model.refresh();
  637. //window.close();
  638. }
  639. //opener.model.refresh();
  640. window.close();
  641. }
  642. function group1_btn_cancel_onclick(obj:Button, e:ClickEventInfo) {
  643. opener.dsf_makeValue( ds_main, "popupendflag", "string", "" );
  644. opener.ds_main.setColumn( 0, "popupendflag", "cancel");
  645. window.close();
  646. }
  647. ]]></Script>
  648. </Form>
  649. </FDL>