package main_package;

import java.io.Serializable;
import java.sql.Connection;
import java.sql.SQLException;
import java.util.ArrayList;
import java.util.Date;

import javax.faces.application.FacesMessage;
import javax.faces.bean.ManagedBean;
import javax.faces.bean.ViewScoped;
import javax.faces.context.FacesContext;
import javax.faces.model.SelectItem;
import javax.servlet.http.HttpSession;

import org.primefaces.context.RequestContext;
import org.primefaces.model.UploadedFile;
@ManagedBean(name="editShareHolder")
@ViewScoped
public class EditShareHolderBean implements Serializable
{DataBaseMethods obj=new DataBaseMethods();
	private static final long serialVersionUID = 1L;
	
	String office_application_no,shareNo,first_applicantName,father_husband_name,guardian_name, guardian_relation,status,bank_name;
	String PAN, bank_accountNo,branch, address, mobile, nominee_name,nominee_relation, nominee_address,account_status,category;
	String applicant_photoPath,id,perAddress,signPath,formPath;
	UploadedFile applicant_photo,signPhoto,formPhoto, doc1photo, doc2photo, doc3photo, doc4photo, doc5photo,doc6photo,doc7photo,doc8photo;
	double noOfShare,shareAmount,totalAmount;
	Date office_date,application_date,dob,nominee_dob;
	boolean checkBox,disableAdd;
	ArrayList<SelectItem> categoryList, maritalStatusList, relationList, telephoneIndicatorList, religionList, stateCodeList, centerList;
	String votrId, uniqueId, dlNo, rationNo, resCert, electBill, appCheque, gCheque, tBill;
	String doc1Path,doc2Path,doc3Path,doc4Path,doc5Path,doc6Path,doc7Path,doc8Path, relation;
	UserInfo  info;
	String gender, maritalStatus, keyPersonName, keyPersonRelation, telephoneIndicator, religion, stateCode="RJ", pinCode, nomTitle, nomGender;
	int noOfDependent;
	String email, qualification, occupation, bankIfsc, referenceBy, remark, title, monthlyIncome, center,altMobileNo;
	String nomPan, nomMobileNo, nomAadhar, area, business, businessPlace, caste, brideFhname, brideMname, brideAddress, brideBusiness, brideBusinessPlace, brideMobileNo, brideRemark;
	String voterId;
	String nomFatherName;
	
	
	
	public EditShareHolderBean() 
	{
		 HttpSession ss=(HttpSession) FacesContext.getCurrentInstance().getExternalContext().getSession(false);
		 UserInfo info = (UserInfo) ss.getAttribute("selecteduser");
		 int branchId =(int) ss.getAttribute("branchId");
		 
		 info=new DataBaseMethods().allShareHoldersForView(info.getShareHolderNo(),info);
		 categoryList=obj.allCategoryList();
		 Connection conn=DataBaseConnection.JAVAConnection();
		 centerList=obj.allcenter(branchId,"all",conn);
		 maritalStatusList=obj.highMarkTableList("Marital Status", conn);
		relationList=obj.highMarkTableList("Relationship", conn);
		telephoneIndicatorList=obj.highMarkTableList("Telephone Indicator", conn); 
		religionList=obj.highMarkTableList("Religion", conn); 
		stateCodeList=obj.highMarkTableList("State Code", conn);
			
		 id = info.getId();
		 office_application_no = info.getOffice_application_no();
		 shareNo = info.getShareHolderNo();
		 relation=info.getRelation();
		 first_applicantName = info.getFirst_applicantName(); 
		 father_husband_name = info.getFather_husband_name();
		 guardian_name  = info.getGuardian_name();
		 guardian_relation = info.getGuardian_relation();
		 center=info.getCenterId();
		 status = info.getStatus();
		 PAN = info.getPAN();
		 bank_accountNo = info.getBank_accountNo();
		 bank_name = info.getBank_name();
		 branch = info.getBranch();
		 address = info.getAddress();
		 mobile = info.getContactNo();
		 nominee_name = info.getNominee_name();
		 nominee_relation = info.getNomRelation();
		 
		 nominee_address = info.getNominee_address();
		 account_status = info.getAccount_status();
		 applicant_photoPath = info.getApplicant_photo();
		 perAddress=info.getPerAddress();
		 category=info.getCategory();
		 dob = info.getDob();
		 nominee_dob = info.getNominee_dob();
		 office_date = info.getOffice_date();
		 noOfShare = info.getNoOfShare();
		 shareAmount = info.getShareAmount();
		 totalAmount = info.getTotalAmount();
		 votrId=info.getVoterId();
		 uniqueId=info.getUniqueId();
		 rationNo=info.getRationNo();
		 dlNo=info.getDlNo();
		 electBill=info.getElectBill();
		 resCert=info.getResCert();
		 appCheque=info.getAppCheque();
		 gCheque=info.getgCheque();
		 tBill=info.gettBill();
		 voterId= info.getVoterId();
		 
		 gender=info.getGender();
		 maritalStatus=info.getMaritalStatus();
		 keyPersonName=info.getKeyPersonName();
		 keyPersonRelation=info.getKeyPersonRelation();
		 noOfDependent=info.getNoOfDependent();
		 telephoneIndicator=info.getTelephoneIndicator();
		 stateCode=info.getStateCode();
		 pinCode=info.getPinCode();
		 religion=info.getReligion();
		 
		 email=info.getEmail();
		 qualification=info.getQualification();
		 occupation=info.getOccupation();
		 bankIfsc=info.getBankIfsc();
		 referenceBy=info.getReferenceBy();
		 remark=info.getRemark();
		 title=info.getTitle();
		 monthlyIncome=info.getMonthlyIncome();
		 
		 nomAadhar=info.getNomAadhar();
		 nomPan=info.getNomPan(); 
		 nomMobileNo=info.getNomMobileNo();
		 brideFhname=info.getBrideFhname();
		 brideMname=info.getBrideMname();
		 brideAddress=info.getBrideAddress();
		 brideBusiness=info.getBrideBusiness();
		 brideBusinessPlace=info.getBrideBusinessPlace();
		 brideMobileNo=info.getBrideMobileNo();
		 brideRemark=info.getBrideRemark();
		 nomTitle=info.getNomTitle();
		 nomGender=info.getNomGender();
		 altMobileNo=info.getAltMobileNo();
		 nomFatherName = info.getNominee_fatherName();
		 System.out.println("noob: " + nominee_relation);
		 
		 try {
			conn.close();
		} catch (SQLException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
	}
	
	
	public void ageCal() {
	    HttpSession ss = (HttpSession) FacesContext.getCurrentInstance().getExternalContext().getSession(false);
	    int branchId = (int) ss.getAttribute("branchId");

	    Connection conn = null;

	    try {
	        conn = DataBaseConnection.JAVAConnection();

	        String dobInWord = obj.ageCalcullationMethod(dob);

	        if (dobInWord != null && !dobInWord.trim().isEmpty()) {
	            String[] parts = dobInWord.split("year");
	            if (parts.length > 0) {
	                try {
	                    int year = Integer.parseInt(parts[0].trim());
	                    int ageLimit = obj.checkMemberAgeLimit(conn);

	                    if (year < 18) {
	                        RequestContext.getCurrentInstance().showMessageInDialog(
	                            new FacesMessage(FacesMessage.SEVERITY_WARN,
	                            "Underage Warning",
	                            "Dear User, You are not eligible. Minimum required age is 18 years.")
	                        );
	                        dob = null;
	                    } else if (year >= ageLimit) {
	                        RequestContext.getCurrentInstance().showMessageInDialog(
	                            new FacesMessage(FacesMessage.SEVERITY_INFO,
	                            "Age Limit Exceeded",
	                            "Dear User, Member Age Limit Exceeding. Please Try Again... Maximum Age Limit of the Member is " + ageLimit + " Years. Thank you.")
	                        );
	                        dob = null;
	                    }

	                } catch (NumberFormatException e) {
	                    e.printStackTrace(); // Log format error
	                }
	            }
	        }
	    } catch (Exception e) {
	        e.printStackTrace(); // Handle any runtime exceptions
	    } finally {
	        if (conn != null) {
	            try {
	                conn.close();
	            } catch (SQLException e) {
	                e.printStackTrace();
	            }
	        }
	    }
	}

	
	public void ageCal2() {
	    HttpSession ss = (HttpSession) FacesContext.getCurrentInstance().getExternalContext().getSession(false);
	    int branchId = (int) ss.getAttribute("branchId");

	    Connection conn = null;

	    try {
	        conn = DataBaseConnection.JAVAConnection();

	        String dobInWord = obj.ageCalcullationMethod(nominee_dob);

	        if (dobInWord != null && !dobInWord.trim().isEmpty()) {
	            String[] parts = dobInWord.split("year");
	            if (parts.length > 0) {
	                try {
	                    int year = Integer.parseInt(parts[0].trim());
	                    int ageLimit = obj.checkMemberAgeLimit(conn);

	                    if (year < 18) {
	                        RequestContext.getCurrentInstance().showMessageInDialog(
	                            new FacesMessage(FacesMessage.SEVERITY_WARN,
	                            "Underage Warning",
	                            "Dear User, You are not eligible. Minimum required age is 18 years.")
	                        );
	                        nominee_dob = null;
	                    } else if (year > ageLimit) {
	                        RequestContext.getCurrentInstance().showMessageInDialog(
	                            new FacesMessage(FacesMessage.SEVERITY_INFO,
	                            "Age Limit Exceeded",
	                            "Dear User, Member Age Limit Exceeding. Please Try Again... Maximum Age Limit of the Member is " + ageLimit + " Years. Thank you.")
	                        );
	                        nominee_dob = null;
	                    }

	                } catch (NumberFormatException e) {
	                    e.printStackTrace(); // Log format error
	                }
	            }
	        }
	    } catch (Exception e) {
	        e.printStackTrace(); // Handle any runtime exceptions
	    } finally {
	        if (conn != null) {
	            try {
	                conn.close();
	            } catch (SQLException e) {
	                e.printStackTrace();
	            }
	        }
	    }
	}

	
	public void fillAddressValue()
	{
		if(checkBox==true)
		{
			perAddress=address;
			disableAdd=true;
		}
		else
		{
			perAddress="";
			disableAdd=false;
		}
	}

	public void registarInfo()
    {
	   if(noOfShare>0)
	   {
		   if(shareAmount>0)
		   {
			   totalAmount= noOfShare*shareAmount;  
		   }
		   else
		   {
			   FacesContext fc=FacesContext.getCurrentInstance();
			   fc.addMessage(null, new FacesMessage("ShareAmount Should Be Greater Than Zero"));
		   }
	   }
	   else
	   {
		   FacesContext fc=FacesContext.getCurrentInstance();
			fc.addMessage(null, new FacesMessage("No Of Share Should Be Greater Than Zero"));
	   }
	}
	
	public String registr()
	{
		//System.out.println(applicant_photoPath+"==="+signPath+"=="+formPath+"=="+doc1Path+"=="+doc2Path+"=="+doc3Path+"=="+doc4Path+"=="+doc5Path);
		boolean shareCheck=obj.checkShareAllotmentFromMember();
		if(noOfShare>0 || shareCheck==false)
		{
			if(shareAmount>0 || shareCheck==false)
			{
				totalAmount= noOfShare*shareAmount;  
				
				
				int n=obj.updateShareHolder(id,office_application_no,office_date,shareNo,first_applicantName,dob,
				father_husband_name,guardian_name,guardian_relation,status,PAN,bank_accountNo,bank_name,branch,address,mobile,
				nominee_name,nominee_relation,nominee_dob,nominee_address, noOfShare,shareAmount,totalAmount,category
				,perAddress,votrId, uniqueId, rationNo, dlNo, electBill, resCert, appCheque, gCheque, tBill, gender, maritalStatus, keyPersonName, keyPersonRelation,
				telephoneIndicator, noOfDependent, religion, stateCode, pinCode,email, qualification, occupation, bankIfsc,
				referenceBy, remark, title, monthlyIncome, nomAadhar, nomPan, brideFhname, brideMname, brideAddress,
				brideBusiness, brideBusinessPlace, brideMobileNo, brideRemark,nomTitle, nomGender, center,altMobileNo,nomMobileNo, 
				nomFatherName);
				if(n>=1)
				{
					FacesContext fc=FacesContext.getCurrentInstance();
					fc.addMessage(null, new FacesMessage("Share Holder Updated Successfully"));
					Connection conn=DataBaseConnection.JAVAConnection();
					obj.updateContactInLoginTable(shareNo, mobile, conn);
					try {
						conn.close();
					} catch (SQLException e) {
						// TODO Auto-generated catch block
						e.printStackTrace();
					}
					return "manageMember";
				}
				else
				{
					FacesContext fc=FacesContext.getCurrentInstance();
					fc.addMessage(null, new FacesMessage("An Error Occured... Please Try Again"));
				}
			}
			else
			{
				FacesContext fc=FacesContext.getCurrentInstance();
				fc.addMessage(null, new FacesMessage("ShareAmount Should Be Greater Than Zero"));
			}
		}
		else
		{
			FacesContext fc=FacesContext.getCurrentInstance();
			fc.addMessage(null, new FacesMessage("No Of Share Should Be Greater Than Zero"));
		}
		return "";
	}
    
	public String getOffice_application_no() {
		return office_application_no;
	}

	public void setOffice_application_no(String office_application_no) {
		this.office_application_no = office_application_no;
	}
	
	public String getShareNo() {
		return shareNo;
	}

	public void setShareNo(String shareNo) {
		this.shareNo = shareNo;
	}

	public String getFirst_applicantName() {
		return first_applicantName;
	}

	public void setFirst_applicantName(String first_applicantName) {
		this.first_applicantName = first_applicantName;
	}

	public String getFather_husband_name() {
		return father_husband_name;
	}

	public void setFather_husband_name(String father_husband_name) {
		this.father_husband_name = father_husband_name;
	}

	public String getGuardian_name() {
		return guardian_name;
	}

	public void setGuardian_name(String guardian_name) {
		this.guardian_name = guardian_name;
	}

	public String getGuardian_relation() {
		return guardian_relation;
	}

	public void setGuardian_relation(String guardian_relation) {
		this.guardian_relation = guardian_relation;
	}

	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	public String getPAN() {
		return PAN;
	}

	public void setPAN(String pAN) {
		PAN = pAN;
	}

	public String getBank_accountNo() {
		return bank_accountNo;
	}

	public void setBank_accountNo(String bank_accountNo) {
		this.bank_accountNo = bank_accountNo;
	}

	public String getBank_name() {
		return bank_name;
	}

	public void setBank_name(String bank_name) {
		this.bank_name = bank_name;
	}

	public String getBranch() {
		return branch;
	}

	public void setBranch(String branch) {
		this.branch = branch;
	}

	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	public String getMobile() {
		return mobile;
	}

	public void setMobile(String mobile) {
		this.mobile = mobile;
	}

	public String getNominee_name() {
		return nominee_name;
	}

	public void setNominee_name(String nominee_name) {
		this.nominee_name = nominee_name;
	}

	public String getNominee_relation() {
		return nominee_relation;
	}

	public void setNominee_relation(String nominee_relation) {
		this.nominee_relation = nominee_relation;
	}

	public String getNominee_address() {
		return nominee_address;
	}

	public void setNominee_address(String nominee_address) {
		this.nominee_address = nominee_address;
	}

	public String getAccount_status() {
		return account_status;
	}

	public void setAccount_status(String account_status) {
		this.account_status = account_status;
	}

	public String getApplicant_photoPath() {
		return applicant_photoPath;
	}

	public void setApplicant_photoPath(String applicant_photoPath) {
		this.applicant_photoPath = applicant_photoPath;
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public UploadedFile getApplicant_photo() {
		return applicant_photo;
	}

	public void setApplicant_photo(UploadedFile applicant_photo) {
		this.applicant_photo = applicant_photo;
	}

	public double getNoOfShare() {
		return noOfShare;
	}

	public void setNoOfShare(double noOfShare) {
		this.noOfShare = noOfShare;
	}

	public double getShareAmount() {
		return shareAmount;
	}

	public void setShareAmount(double shareAmount) {
		this.shareAmount = shareAmount;
	}

	public double getTotalAmount() {
		return totalAmount;
	}

	public void setTotalAmount(double totalAmount) {
		this.totalAmount = totalAmount;
	}

	public Date getOffice_date() {
		return office_date;
	}

	public void setOffice_date(Date office_date) {
		this.office_date = office_date;
	}
	public Date getApplication_date() {
		return application_date;
	}
	public void setApplication_date(Date application_date) {
		this.application_date = application_date;
	}
	public Date getDob() {
		return dob;
	}
	public boolean isDisableAdd() {
		return disableAdd;
	}
	public void setDisableAdd(boolean disableAdd) {
		this.disableAdd = disableAdd;
	}

	public ArrayList<SelectItem> getCategoryList() {
		return categoryList;
	}

	public void setCategoryList(ArrayList<SelectItem> categoryList) {
		this.categoryList = categoryList;
	}

	public void setDob(Date dob) {
		this.dob = dob;
	}
	public Date getNominee_dob() {
		return nominee_dob;
	}
	public String getCategory() {
		return category;
	}
	public void setCategory(String category) {
		this.category = category;
	}
	public String getPerAddress() {
		return perAddress;
	}
	public void setPerAddress(String perAddress) {
		this.perAddress = perAddress;
	}
	public String getSignPath() {
		return signPath;
	}
	public void setSignPath(String signPath) {
		this.signPath = signPath;
	}
	public String getFormPath() {
		return formPath;
	}
	public void setFormPath(String formPath) {
		this.formPath = formPath;
	}
	public UploadedFile getSignPhoto() {
		return signPhoto;
	}
	public void setSignPhoto(UploadedFile signPhoto) {
		this.signPhoto = signPhoto;
	}
	public UploadedFile getFormPhoto() {
		return formPhoto;
	}
	public void setFormPhoto(UploadedFile formPhoto) {
		this.formPhoto = formPhoto;
	}
	public boolean isCheckBox() {
		return checkBox;
	}
	public void setCheckBox(boolean checkBox) {
		this.checkBox = checkBox;
	}
	public void setNominee_dob(Date nominee_dob) {
		this.nominee_dob = nominee_dob;
	}

	public String getVotrId() {
		return votrId;
	}

	public void setVotrId(String votrId) {
		this.votrId = votrId;
	}

	public String getUniqueId() {
		return uniqueId;
	}

	public void setUniqueId(String uniqueId) {
		this.uniqueId = uniqueId;
	}

	public String getDlNo() {
		return dlNo;
	}

	public void setDlNo(String dlNo) {
		this.dlNo = dlNo;
	}

	public String getRationNo() {
		return rationNo;
	}

	public void setRationNo(String rationNo) {
		this.rationNo = rationNo;
	}

	public String getResCert() {
		return resCert;
	}

	public void setResCert(String resCert) {
		this.resCert = resCert;
	}

	public String getElectBill() {
		return electBill;
	}

	public void setElectBill(String electBill) {
		this.electBill = electBill;
	}

	public String getAppCheque() {
		return appCheque;
	}

	public void setAppCheque(String appCheque) {
		this.appCheque = appCheque;
	}

	public String getgCheque() {
		return gCheque;
	}

	public void setgCheque(String gCheque) {
		this.gCheque = gCheque;
	}

	public String gettBill() {
		return tBill;
	}

	public void settBill(String tBill) {
		this.tBill = tBill;
	}

	public UploadedFile getDoc1photo() {
		return doc1photo;
	}

	public void setDoc1photo(UploadedFile doc1photo) {
		this.doc1photo = doc1photo;
	}

	public UploadedFile getDoc2photo() {
		return doc2photo;
	}

	public void setDoc2photo(UploadedFile doc2photo) {
		this.doc2photo = doc2photo;
	}

	public UploadedFile getDoc3photo() {
		return doc3photo;
	}

	public void setDoc3photo(UploadedFile doc3photo) {
		this.doc3photo = doc3photo;
	}

	public UploadedFile getDoc4photo() {
		return doc4photo;
	}

	public void setDoc4photo(UploadedFile doc4photo) {
		this.doc4photo = doc4photo;
	}

	public UploadedFile getDoc5photo() {
		return doc5photo;
	}

	public void setDoc5photo(UploadedFile doc5photo) {
		this.doc5photo = doc5photo;
	}

	public String getDoc1Path() {
		return doc1Path;
	}

	public void setDoc1Path(String doc1Path) {
		this.doc1Path = doc1Path;
	}

	public String getDoc2Path() {
		return doc2Path;
	}

	public void setDoc2Path(String doc2Path) {
		this.doc2Path = doc2Path;
	}

	public String getDoc3Path() {
		return doc3Path;
	}

	public void setDoc3Path(String doc3Path) {
		this.doc3Path = doc3Path;
	}

	public String getDoc4Path() {
		return doc4Path;
	}

	public void setDoc4Path(String doc4Path) {
		this.doc4Path = doc4Path;
	}

	public String getDoc5Path() {
		return doc5Path;
	}

	public void setDoc5Path(String doc5Path) {
		this.doc5Path = doc5Path;
	}

	public UserInfo getInfo() {
		return info;
	}

	public void setInfo(UserInfo info) {
		this.info = info;
	}

	public UploadedFile getDoc6photo() {
		return doc6photo;
	}

	public void setDoc6photo(UploadedFile doc6photo) {
		this.doc6photo = doc6photo;
	}

	public UploadedFile getDoc7photo() {
		return doc7photo;
	}

	public void setDoc7photo(UploadedFile doc7photo) {
		this.doc7photo = doc7photo;
	}

	public UploadedFile getDoc8photo() {
		return doc8photo;
	}

	public void setDoc8photo(UploadedFile doc8photo) {
		this.doc8photo = doc8photo;
	}

	public String getRelation() {
		return relation;
	}

	public void setRelation(String relation) {
		this.relation = relation;
	}

	public ArrayList<SelectItem> getMaritalStatusList() {
		return maritalStatusList;
	}

	public void setMaritalStatusList(ArrayList<SelectItem> maritalStatusList) {
		this.maritalStatusList = maritalStatusList;
	}

	public ArrayList<SelectItem> getRelationList() {
		return relationList;
	}

	public void setRelationList(ArrayList<SelectItem> relationList) {
		this.relationList = relationList;
	}

	public ArrayList<SelectItem> getTelephoneIndicatorList() {
		return telephoneIndicatorList;
	}

	public void setTelephoneIndicatorList(
			ArrayList<SelectItem> telephoneIndicatorList) {
		this.telephoneIndicatorList = telephoneIndicatorList;
	}

	public ArrayList<SelectItem> getReligionList() {
		return religionList;
	}

	public void setReligionList(ArrayList<SelectItem> religionList) {
		this.religionList = religionList;
	}

	public ArrayList<SelectItem> getStateCodeList() {
		return stateCodeList;
	}

	public void setStateCodeList(ArrayList<SelectItem> stateCodeList) {
		this.stateCodeList = stateCodeList;
	}

	public String getDoc6Path() {
		return doc6Path;
	}

	public void setDoc6Path(String doc6Path) {
		this.doc6Path = doc6Path;
	}

	public String getDoc7Path() {
		return doc7Path;
	}

	public void setDoc7Path(String doc7Path) {
		this.doc7Path = doc7Path;
	}

	public String getDoc8Path() {
		return doc8Path;
	}

	public void setDoc8Path(String doc8Path) {
		this.doc8Path = doc8Path;
	}

	public String getGender() {
		return gender;
	}

	public void setGender(String gender) {
		this.gender = gender;
	}

	public String getMaritalStatus() {
		return maritalStatus;
	}

	public void setMaritalStatus(String maritalStatus) {
		this.maritalStatus = maritalStatus;
	}

	public String getKeyPersonName() {
		return keyPersonName;
	}

	public void setKeyPersonName(String keyPersonName) {
		this.keyPersonName = keyPersonName;
	}

	public String getKeyPersonRelation() {
		return keyPersonRelation;
	}

	public void setKeyPersonRelation(String keyPersonRelation) {
		this.keyPersonRelation = keyPersonRelation;
	}

	public String getTelephoneIndicator() {
		return telephoneIndicator;
	}

	public void setTelephoneIndicator(String telephoneIndicator) {
		this.telephoneIndicator = telephoneIndicator;
	}

	public String getReligion() {
		return religion;
	}

	public void setReligion(String religion) {
		this.religion = religion;
	}

	public String getStateCode() {
		return stateCode;
	}

	public void setStateCode(String stateCode) {
		this.stateCode = stateCode;
	}

	public String getPinCode() {
		return pinCode;
	}

	public void setPinCode(String pinCode) {
		this.pinCode = pinCode;
	}

	public int getNoOfDependent() {
		return noOfDependent;
	}

	public void setNoOfDependent(int noOfDependent) {
		this.noOfDependent = noOfDependent;
	}

	public DataBaseMethods getObj() {
		return obj;
	}

	public void setObj(DataBaseMethods obj) {
		this.obj = obj;
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public String getQualification() {
		return qualification;
	}

	public void setQualification(String qualification) {
		this.qualification = qualification;
	}

	public String getOccupation() {
		return occupation;
	}

	public void setOccupation(String occupation) {
		this.occupation = occupation;
	}

	public String getBankIfsc() {
		return bankIfsc;
	}

	public void setBankIfsc(String bankIfsc) {
		this.bankIfsc = bankIfsc;
	}

	public String getReferenceBy() {
		return referenceBy;
	}

	public void setReferenceBy(String referenceBy) {
		this.referenceBy = referenceBy;
	}

	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getMonthlyIncome() {
		return monthlyIncome;
	}

	public void setMonthlyIncome(String monthlyIncome) {
		this.monthlyIncome = monthlyIncome;
	}

	public String getNomPan() {
		return nomPan;
	}

	public void setNomPan(String nomPan) {
		this.nomPan = nomPan;
	}

	public String getNomAadhar() {
		return nomAadhar;
	}

	public void setNomAadhar(String nomAadhar) {
		this.nomAadhar = nomAadhar;
	}

	public String getArea() {
		return area;
	}

	public void setArea(String area) {
		this.area = area;
	}

	public String getBusiness() {
		return business;
	}

	public void setBusiness(String business) {
		this.business = business;
	}

	public String getBusinessPlace() {
		return businessPlace;
	}

	public void setBusinessPlace(String businessPlace) {
		this.businessPlace = businessPlace;
	}

	public String getCaste() {
		return caste;
	}

	public void setCaste(String caste) {
		this.caste = caste;
	}

	public String getBrideFhname() {
		return brideFhname;
	}

	public void setBrideFhname(String brideFhname) {
		this.brideFhname = brideFhname;
	}

	public String getBrideMname() {
		return brideMname;
	}

	public void setBrideMname(String brideMname) {
		this.brideMname = brideMname;
	}

	public String getBrideAddress() {
		return brideAddress;
	}

	public void setBrideAddress(String brideAddress) {
		this.brideAddress = brideAddress;
	}

	public String getBrideBusiness() {
		return brideBusiness;
	}

	public void setBrideBusiness(String brideBusiness) {
		this.brideBusiness = brideBusiness;
	}

	public String getBrideBusinessPlace() {
		return brideBusinessPlace;
	}

	public void setBrideBusinessPlace(String brideBusinessPlace) {
		this.brideBusinessPlace = brideBusinessPlace;
	}

	public String getBrideMobileNo() {
		return brideMobileNo;
	}

	public void setBrideMobileNo(String brideMobileNo) {
		this.brideMobileNo = brideMobileNo;
	}

	public String getBrideRemark() {
		return brideRemark;
	}

	public void setBrideRemark(String brideRemark) {
		this.brideRemark = brideRemark;
	}

	public String getNomTitle() {
		return nomTitle;
	}

	public void setNomTitle(String nomTitle) {
		this.nomTitle = nomTitle;
	}

	public String getNomGender() {
		return nomGender;
	}

	public void setNomGender(String nomGender) {
		this.nomGender = nomGender;
	}

	public ArrayList<SelectItem> getCenterList() {
		return centerList;
	}

	public void setCenterList(ArrayList<SelectItem> centerList) {
		this.centerList = centerList;
	}

	public String getCenter() {
		return center;
	}

	public void setCenter(String center) {
		this.center = center;
	}


	public String getAltMobileNo() {
		return altMobileNo;
	}


	public void setAltMobileNo(String altMobileNo) {
		this.altMobileNo = altMobileNo;
	}


	public String getNomMobileNo() {
		return nomMobileNo;
	}


	public void setNomMobileNo(String nomMobileNo) {
		this.nomMobileNo = nomMobileNo;
	}


	public String getVoterId() {
		return voterId;
	}


	public void setVoterId(String voterId) {
		this.voterId = voterId;
	}


	public String getNomFatherName() {
		return nomFatherName;
	}


	public void setNomFatherName(String nomFatherName) {
		this.nomFatherName = nomFatherName;
	}
	
	
}
