123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384 |
- /*
- 호스피스 후원회 회원정보관리(SMMNH02300.xfm - JScript )
- - Version :
- 1) : Ver.1.00.01
- 2) : 2007.04. 27
- 3) : 김진명
- */
- /* --------------------------------------------------*/
- /* type : function */
- /* access : public */
- /* desc : 후원회 회원정보관리 초기화 */
- /* param : */
- /* return : */
- /* --------------------------------------------------*/
- function fInit() {
- caption1.visible = false;
- caption2.visible = false;
- caption13.visible = false;
- cmb_posflag.visible = false;
- cmb_membflag.visible = false;
- cmb_paymthdflag.visible = false;
- btn_clear.visible = false;
- btn_newsave.visible = true;
- btn_save.disabled = true;
- btn_searempinfo.visible = false;
- ipt_chrisnm.disabled = true;
- grd_aidmemblist.fixedcellcheckbox(0,0)=true;
- fGetCodeList( new Array("A00001", "A00002", "A00003", "A00004", "A00005", "A00006"), new Array("/root/init", "/root/init", "/root/init", "/root/init", "/root/init", "/root/init"));//호스피스 코드 조회
- fRemoveNode(new Array("A00001", "A00002", "A00003", "A00004", "A00005", "A00006"));//콤보 공백 제거
- zbcfGetCodeList(new Array("M0070"), new Array("/root/init/M0070list"), true);
- var nodeCnt = getNodesetCount("/root/init/A00001");
- model.destroy( "/root/init/A00001[" + nodeCnt + "]");//지로 제거
- addComboItem("cmb_voluntrflag", "-", "00", "above" );
- grd_aidmemblist.explorerbar = "sort";
- model.removenode("/root/main/aidmemblist");
- model.refresh();
- }
- function fClear() {
- model.makeValue("/root/main/aidmembinfo/aidmembdetlinfo/posflag","01");
- model.makeValue("/root/main/aidmembinfo/aidmembdetlinfo/membflag","01");
- model.makeValue("/root/main/aidmembinfo/aidmembdetlinfo/gndr","M");
- model.makeValue("/root/main/aidmembinfo/aidmembdetlinfo/addryn","N");
- model.makeValue("/root/main/aidmembinfo/aidmembdetlinfo/smsrecvyn","Y");
- model.makeValue("/root/main/aidmembinfo/aidmembdetlinfo/cmntprsdyn","N");
- model.makeValue("/root/main/aidmembinfo/aidmembdetlinfo/smsrecvyn","Y");
- }
- /* --------------------------------------------------*/
- /* type : function */
- /* access : public */
- /* desc : 후원회 회원정보관리 조회 */
- /* param : */
- /* return : */
- /* --------------------------------------------------*/
- function fSearch() {
- model.resetInstanceNode("/root/main/aidmembinfo");
- fClear();
- model.removenode("/root/send");
- model.makeNode("/root/send/reqdata");
- model.copyNode("/root/send/reqdata", "/root/main/cond");
- submit("TRMNH02301");
- model.refresh();
- /*
- var grdRows = grd_aidmemblist.rows;
- for(i=1;i<grdRows;i++)
- {
- if( model.getValue("/root/main/aidmemblist["+i+"]/rrgstno") == "000000-0000000" ) {//주민번호 입력안했을때
- model.setValue("/root/main/aidmemblist["+i+"]/rrgstno", "");
- }else {
- }
- }
- */
- model.refresh();
- }
- /* --------------------------------------------------*/
- /* type : function */
- /* access : public */
- /* desc : 후원회 신규 등록 */
- /* param : */
- /* return : */
- /* --------------------------------------------------*/
- function fSaveMembInfo(){
- var membnm = model.getValue("/root/main/aidmembinfo/aidmembdetlinfo/membnm");
- var homecarereqyn = model.getValue("/root/main/aidmembinfo/aidmembdetlinfo/gndr");
- var paymthdflag = model.getValue("/root/main/aidmembinfo/aidmembdetlinfo/paymthdflag");
- var rrgstno = model.getValue("/root/main/aidmembinfo/aidmembdetlinfo/rrgstno1") + model.getValue("/root/main/aidmembinfo/aidmembdetlinfo/rrgstno2");
- var rrgstno1 = model.getValue("/root/main/aidmembinfo/aidmembdetlinfo/rrgstno1");
- var rrgstno2 = model.getValue("/root/main/aidmembinfo/aidmembdetlinfo/rrgstno2");
- var paybankflag = model.getValue("/root/main/aidmembinfo/aidmembdetlinfo/paybankflag");
- var paymthdflag = model.getValue("/root/main/aidmembinfo/aidmembdetlinfo/paymthdflag");
- var detladdr = model.getValue("/root/main/aidmembinfo/aidmembdetlinfo/detladdr");
- var mpphontel = model.getValue("/root/main/aidmembinfo/aidmembdetlinfo/mpphontel");
- var joindd = model.getValue("/root/main/aidmembinfo/aidmembdetlinfo/joindd");
- var religion = model.getValue("/root/main/aidmembinfo/aidmembdetlinfo/religion");
- if(religion == '') {
- model.setValue("/root/main/aidmembinfo/aidmembdetlinfo/religion",'-');
- }
- //if( !isResidentNo(rrgstno) ) {
- // messageBox("유요한 주민번호가 아닙니다. 다시", "C001");
- // model.setFocus("ipt_rrgstno1");
- // return;
- //}
- if( membnm == "" ) {
- messageBox("회원이름을 입력하지 ", "E007");
- model.setFocus("ipt_membnm");
- return;
- }
- /*
- if( homecarereqyn == "" ) {
- messageBox("성별을 입력하지 ", "E007");
- model.setFocus("rdo_homecarereqyn");
- return;
- }
- */
- if( paymthdflag == "" ) {
- messageBox("납부방법을 입력하지 ", "E007");
- model.setFocus("cmb_paymthdflag2");
- return;
- }
- if( (paymthdflag == "02")&&(paybankflag == "") ) {//자동이체 은행을 설정하지 않을 시
- messageBox("납부은행을 선택하지 ", "E007");
- model.setFocus("cmb_paybankflag");
- return;
- }
- //if( mpphontel == "" ) {
- // messageBox("휴대 전화번호를 입력하지 ", "E007");
- // model.setFocus("ipt_mpphontel");
- // return;
- // }
- if( detladdr == "" ) {
- messageBox("주소를 입력하지 ", "E007");
- model.setFocus("ipt_detladdr");
- return;
- }
- if( joindd == "" ) {
- messageBox("가입일을 입력하지 ", "E007");
- model.setFocus("ipt_subscrdd");
- return;
- }
- if(rrgstno1 =='')//주민번호를 입력하지 않을시
- {
- model.makeValue("/root/main/aidmembinfo/aidmembdetlinfo/rrgstno1", "000000");
- }
- if(rrgstno2 =='')
- {
- model.makeValue("/root/main/aidmembinfo/aidmembdetlinfo/rrgstno2", "0000000");
- }
- model.removenode("/root/send");
- model.makeNode("/root/send/savedata");
- model.makeValue("/root/send/reqdata/conrefflag", "/root/main/cond/conrefflag");
- model.makeValue("/root/send/reqdata/conpaymthdflag", "/root/main/cond/conpaymthdflag");
- model.makeValue("/root/send/reqdata/conmembflag", "/root/main/cond/conmembflag");
- model.makeValue("/root/send/reqdata/conposflag", "/root/main/cond/conposflag");
- model.copyNode("/root/send/savedata", "/root/main/aidmembinfo/aidmembdetlinfo");
- submit("TXMNH02302", false);
- model.resetInstancenode("/root/main/aidmembinfo");
- fClear();
- /*
- var grdRows = grd_aidmemblist.rows;
- for(i=1;i<grdRows;i++)
- {
- if( model.getValue("/root/main/aidmemblist["+i+"]/rrgstno") == "000000-0000000" ) {//주민번호 입력안했을때
- model.setValue("/root/main/aidmemblist["+i+"]/rrgstno", "");
- }else {
- }
- }
- */
- model.resetInstancenode("/root/main/aidmembinfo");
- fClear();
- model.refresh();
- }
- /* --------------------------------------------------*/
- /* type : function */
- /* access : public */
- /* desc : 후원회 회원정보 삭제 */
- /* param : */
- /* return : */
- /* --------------------------------------------------*/
- function fDelMembInfo() {
- if (model.getValue("/root/main/aidmembinfo/aidmembdetlinfo/membno") =="") {
- messageBox("삭제할 데이터가 ","I004");
- return;
- } else {
- var btn = messageBox("선택한 회원정보를 ","Q001");
- if(btn == "6"){
- model.removenode("/root/send");
- model.makeNode("/root/send/savedata");
- model.makeValue("/root/main/aidmembinfo/aidmembdetlinfo/status", "d");
- model.copyNode("/root/send/savedata", "/root/main/aidmembinfo");
- submit("TXMNH02304", false);
- model.resetInstancenode("/root/main/aidmembinfo");
- fClear();
- btn_newsave.visible = true;
- model.refresh();
- } else if (btn == "7") {
- return;
- }
- }
- }
- /* --------------------------------------------------*/
- /* type : function */
- /* access : public */
- /* desc : 후원회 회원정보 수정 */
- /* param : */
- /* return : */
- /* --------------------------------------------------*/
- function fUpdtMembInfo(){
- var membnm = model.getValue("/root/main/aidmembinfo/aidmembdetlinfo/membnm");
- var homecarereqyn = model.getValue("/root/main/aidmembinfo/aidmembdetlinfo/gndr");
- var paymthdflag = model.getValue("/root/main/aidmembinfo/aidmembdetlinfo/paymthdflag");
- var rrgstno = model.getValue("/root/main/aidmembinfo/aidmembdetlinfo/rrgstno1") + model.getValue("/root/main/aidmembinfo/aidmembdetlinfo/rrgstno2");
- var rrgstno1 = model.getValue("/root/main/aidmembinfo/aidmembdetlinfo/rrgstno1");
- var rrgstno2 = model.getValue("/root/main/aidmembinfo/aidmembdetlinfo/rrgstno2");
- var paymthdflag = model.getValue("/root/main/aidmembinfo/aidmembdetlinfo/paymthdflag");
- var paybankflag = model.getValue("/root/main/aidmembinfo/aidmembdetlinfo/paybankflag");
- var detladdr = model.getValue("/root/main/aidmembinfo/aidmembdetlinfo/detladdr");
- var mpphontel = model.getValue("/root/main/aidmembinfo/aidmembdetlinfo/mpphontel");
- var joindd = model.getValue("/root/main/aidmembinfo/aidmembdetlinfo/joindd");
- var religion = model.getValue("/root/main/aidmembinfo/aidmembdetlinfo/religion");
- if(religion == '') {
- model.setValue("/root/main/aidmembinfo/aidmembdetlinfo/religion",'-');
- }
- /*
- if( !isResidentNo(rrgstno) ) {
- messageBox("유요한 주민번호가 아닙니다. 다시", "C001");
- model.setFocus("ipt_rrgstno1");
- return;
- }
- */
- if( membnm == "" ) {
- messageBox("회원이름을 입력하지 ", "E007");
- model.setFocus("ipt_membnm");
- return;
- }
- /*
- if( homecarereqyn == "" ) {
- messageBox("성별을 입력하지 ", "E007");
- model.setFocus("rdo_homecarereqyn");
- return;
- }
- */
- if( paymthdflag == "" ) {
- messageBox("납부방법을 입력하지 ", "E007");
- model.setFocus("cmb_paymthdflag2");
- return;
- }
- if( (paymthdflag == "02")&&(paybankflag == "") ) {//자동이체 은행을 설정하지 않을 시
- messageBox("납부은행을 선택하지 ", "E007");
- model.setFocus("cmb_paybankflag");
- return;
- }
- /*
- if( mpphontel == "" ) {
- messageBox("휴대 전화번호를 입력하지 ", "E007");
- model.setFocus("ipt_mpphontel");
- return;
- }
- */
- if( detladdr == "" ) {
- messageBox("주소를 입력하지 ", "E007");
- model.setFocus("ipt_detladdr");
- return;
- }
- if( joindd == "" ) {
- messageBox("가입일을 입력하지 ", "E007");
- model.setFocus("ipt_subscrdd");
- return;
- }
- if(rrgstno1 =='') //주민번호를 입력하지 않을시
- {
- model.makeValue("/root/main/aidmembinfo/aidmembdetlinfo/rrgstno1", "000000");
- }
- if(rrgstno2 =='')
- {
- model.makeValue("/root/main/aidmembinfo/aidmembdetlinfo/rrgstno2", "0000000");
- }
- model.removenode("/root/send");
- model.makeNode("/root/send/savedata");
- model.makeValue("/root/send/reqdata/conrefflag", "/root/main/cond/conrefflag");
- model.makeValue("/root/send/reqdata/conpaymthdflag", "/root/main/cond/conpaymthdflag");
- model.makeValue("/root/send/reqdata/conmembflag", "/root/main/cond/conmembflag");
- model.makeValue("/root/send/reqdata/conposflag", "/root/main/cond/conposflag");
- model.copyNode("/root/send/savedata", "/root/main/aidmembinfo/aidmembdetlinfo");
- submit("TXMNH02304", false);
- btn_save.disabled = true;
- btn_newsave.visible = true;
- model.resetInstancenode("/root/main/aidmembinfo");
- fClear();
- model.refresh();
- }
- /* --------------------------------------------------*/
- /* type : function */
- /* access : public */
- /* desc : 후원회 우편번호 팝업 호출 */
- /* param : */
- /* return : */
- /* --------------------------------------------------*/
- function fZipPopUpCall(){
- var rcv_zipcdhead_path = '/root/main/aidmembinfo/aidmembdetlinfo/zipcd1';
- var rcv_zipcdfoot_path = '/root/main/aidmembinfo/aidmembdetlinfo/zipcd2';
- var rcv_seqno_path = '/root/main/aidmembinfo/aidmembdetlinfo/seqno';
- var rcv_address_path = '/root/main/aidmembinfo/aidmembdetlinfo/addr';
- var term = model.getValue("/root/main/aidmembinfo/aidmembdetlinfo/addr");
- var condition = "combination";
- zbcfOpenZipCodeList("combination", term, rcv_zipcdhead_path, rcv_zipcdfoot_path, rcv_seqno_path, rcv_address_path);
- model.setFocus("ipt_detladdr");
- model.refresh();
- }
- /* --------------------------------------------------*/
- /* type : function */
- /* access : public */
- /* desc : 후원회 주소라벨 출력 */
- /* param : */
- /* return : */
- /* --------------------------------------------------*/
- function fPrintLabel(){
- var posflag, membflag, paymthdflag;
- if( model.getValue("/root/main/cond/conposflag") == "" ) {
- posflag = "%%";
- }else {
- posflag = model.getValue("/root/main/cond/conposflag");
- }
- if( model.getValue("/root/main/cond/conmembflag") == "" ) {
- membflag = "%%";
- }else {
- membflag = model.getValue("/root/main/cond/conmembflag");
- }
- if( model.getValue("/root/main/cond/conpaymthdflag") == "" ) {
- paymthdflag = "%%";
- }else {
- paymthdflag = model.getValue("/root/main/cond/conpaymthdflag");
- }
- model.setValue("/root/report/posflag", posflag);
- model.setValue("/root/report/membflag", membflag);
- model.setValue("/root/report/paymthdflag", paymthdflag);
- model.setValue("/root/report/instcd", getUserInfo("dutplceinstcd"));
- exeReportPreview("RPMNH02301", "XMLSTR", "/root/report", "", "", "", "", "", "", "");
- }
|