PageRenderTime 104ms CodeModel.GetById 51ms app.highlight 12ms RepoModel.GetById 38ms app.codeStats 0ms

/src/mpv5/db/objects/Company.java

http://mp-rechnungs-und-kundenverwaltung.googlecode.com/
Java | 283 lines | 130 code | 38 blank | 115 comment | 0 complexity | 787e347623637b8afc7f551fc4eb4072 MD5 | raw file
  1/*
  2 *  This file is part of YaBS.
  3 *
  4 *      YaBS is free software: you can redistribute it and/or modify
  5 *      it under the terms of the GNU General Public License as published by
  6 *      the Free Software Foundation, either version 3 of the License, or
  7 *      (at your option) any later version.
  8 *
  9 *      YaBS is distributed in the hope that it will be useful,
 10 *      but WITHOUT ANY WARRANTY; without even the implied warranty of
 11 *      MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 12 *      GNU General Public License for more details.
 13 *
 14 *      You should have received a copy of the GNU General Public License
 15 *      along with YaBS.  If not, see <http://www.gnu.org/licenses/>.
 16 */
 17package mpv5.db.objects;
 18
 19import javax.swing.JComponent;
 20import mpv5.db.common.Context;
 21import mpv5.db.common.DatabaseObject;
 22import mpv5.utils.images.MPIcon;
 23
 24/**
 25 * Represents a user company
 26 */
 27public class Company extends DatabaseObject {
 28
 29    private String state = "";
 30    private String phoneprefix = "";
 31    private String business = "";
 32    private String taxadvisor = "";
 33    private String city = "";
 34    private String taxadvjob = "";
 35    private String street = "";
 36    private String stb = "";
 37    private String email = "";
 38    private String name = "";
 39    private String zipcode = "";
 40    private String phone = "";
 41    private String firstname = "";
 42    private String taxauthority = "";
 43    private String taxnumber = "";
 44    private String taxadvmandant = "";
 45
 46    public Company() {
 47        setContext(Context.getCompany());
 48    }
 49
 50    @Override
 51    public JComponent getView() {
 52        return null;
 53    }
 54
 55    @Override
 56    public MPIcon getIcon() {
 57        return null;
 58    }
 59
 60    /**
 61     * @return the state
 62     */
 63    public String __getState() {
 64        return state;
 65    }
 66
 67    /**
 68     * @param state the state to set
 69     */
 70    public void setState(String state) {
 71        this.state = state;
 72    }
 73
 74    /**
 75     * @return the phoneprefix
 76     */
 77    public String __getPhoneprefix() {
 78        return phoneprefix;
 79    }
 80
 81    /**
 82     * @param phoneprefix the phoneprefix to set
 83     */
 84    public void setPhoneprefix(String phoneprefix) {
 85        this.phoneprefix = phoneprefix;
 86    }
 87
 88    /**
 89     * @return the business
 90     */
 91    public String __getBusiness() {
 92        return business;
 93    }
 94
 95    /**
 96     * @param business the business to set
 97     */
 98    public void setBusiness(String business) {
 99        this.business = business;
100    }
101
102    /**
103     * @return the taxadvisor
104     */
105    public String __getTaxadvisor() {
106        return taxadvisor;
107    }
108
109    /**
110     * @param taxadvisor the taxadvisor to set
111     */
112    public void setTaxadvisor(String taxadvisor) {
113        this.taxadvisor = taxadvisor;
114    }
115
116    /**
117     * @return the city
118     */
119    public String __getCity() {
120        return city;
121    }
122
123    /**
124     * @param city the city to set
125     */
126    public void setCity(String city) {
127        this.city = city;
128    }
129
130    /**
131     * @return the taxadvjob
132     */
133    public String __getTaxadvjob() {
134        return taxadvjob;
135    }
136
137    /**
138     * @param taxadvjob the taxadvjob to set
139     */
140    public void setTaxadvjob(String taxadvjob) {
141        this.taxadvjob = taxadvjob;
142    }
143
144    /**
145     * @return the street
146     */
147    public String __getStreet() {
148        return street;
149    }
150
151    /**
152     * @param street the street to set
153     */
154    public void setStreet(String street) {
155        this.street = street;
156    }
157
158    /**
159     * @return the stb
160     */
161    public String __getStb() {
162        return stb;
163    }
164
165    /**
166     * @param stb the stb to set
167     */
168    public void setStb(String stb) {
169        this.stb = stb;
170    }
171
172    /**
173     * @return the email
174     */
175    public String __getEmail() {
176        return email;
177    }
178
179    /**
180     * @param email the email to set
181     */
182    public void setEmail(String email) {
183        this.email = email;
184    }
185
186    /**
187     * @return the name
188     */
189    public String __getName() {
190        return name;
191    }
192
193    /**
194     * @param name the name to set
195     */
196    public void setName(String name) {
197        this.name = name;
198    }
199
200    /**
201     * @return the zipcode
202     */
203    public String __getZipcode() {
204        return zipcode;
205    }
206
207    /**
208     * @param zipcode the zipcode to set
209     */
210    public void setZipcode(String zipcode) {
211        this.zipcode = zipcode;
212    }
213
214    /**
215     * @return the phone
216     */
217    public String __getPhone() {
218        return phone;
219    }
220
221    /**
222     * @param phone the phone to set
223     */
224    public void setPhone(String phone) {
225        this.phone = phone;
226    }
227
228    /**
229     * @return the firstname
230     */
231    public String __getFirstname() {
232        return firstname;
233    }
234
235    /**
236     * @param firstname the firstname to set
237     */
238    public void setFirstname(String firstname) {
239        this.firstname = firstname;
240    }
241
242    /**
243     * @return the taxauthority
244     */
245    public String __getTaxauthority() {
246        return taxauthority;
247    }
248
249    /**
250     * @param taxauthority the taxauthority to set
251     */
252    public void setTaxauthority(String taxauthority) {
253        this.taxauthority = taxauthority;
254    }
255
256    /**
257     * @return the taxnumber
258     */
259    public String __getTaxnumber() {
260        return taxnumber;
261    }
262
263    /**
264     * @param taxnumber the taxnumber to set
265     */
266    public void setTaxnumber(String taxnumber) {
267        this.taxnumber = taxnumber;
268    }
269
270    /**
271     * @return the taxadvmandant
272     */
273    public String __getTaxadvmandant() {
274        return taxadvmandant;
275    }
276
277    /**
278     * @param taxadvmandant the taxadvmandant to set
279     */
280    public void setTaxadvmandant(String taxadvmandant) {
281        this.taxadvmandant = taxadvmandant;
282    }
283}