PageRenderTime 47ms CodeModel.GetById 16ms RepoModel.GetById 0ms 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
Possible License(s): LGPL-3.0, Apache-2.0, GPL-3.0, GPL-2.0, AGPL-3.0, JSON, BSD-3-Clause
  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. */
  17. package mpv5.db.objects;
  18. import javax.swing.JComponent;
  19. import mpv5.db.common.Context;
  20. import mpv5.db.common.DatabaseObject;
  21. import mpv5.utils.images.MPIcon;
  22. /**
  23. * Represents a user company
  24. */
  25. public class Company extends DatabaseObject {
  26. private String state = "";
  27. private String phoneprefix = "";
  28. private String business = "";
  29. private String taxadvisor = "";
  30. private String city = "";
  31. private String taxadvjob = "";
  32. private String street = "";
  33. private String stb = "";
  34. private String email = "";
  35. private String name = "";
  36. private String zipcode = "";
  37. private String phone = "";
  38. private String firstname = "";
  39. private String taxauthority = "";
  40. private String taxnumber = "";
  41. private String taxadvmandant = "";
  42. public Company() {
  43. setContext(Context.getCompany());
  44. }
  45. @Override
  46. public JComponent getView() {
  47. return null;
  48. }
  49. @Override
  50. public MPIcon getIcon() {
  51. return null;
  52. }
  53. /**
  54. * @return the state
  55. */
  56. public String __getState() {
  57. return state;
  58. }
  59. /**
  60. * @param state the state to set
  61. */
  62. public void setState(String state) {
  63. this.state = state;
  64. }
  65. /**
  66. * @return the phoneprefix
  67. */
  68. public String __getPhoneprefix() {
  69. return phoneprefix;
  70. }
  71. /**
  72. * @param phoneprefix the phoneprefix to set
  73. */
  74. public void setPhoneprefix(String phoneprefix) {
  75. this.phoneprefix = phoneprefix;
  76. }
  77. /**
  78. * @return the business
  79. */
  80. public String __getBusiness() {
  81. return business;
  82. }
  83. /**
  84. * @param business the business to set
  85. */
  86. public void setBusiness(String business) {
  87. this.business = business;
  88. }
  89. /**
  90. * @return the taxadvisor
  91. */
  92. public String __getTaxadvisor() {
  93. return taxadvisor;
  94. }
  95. /**
  96. * @param taxadvisor the taxadvisor to set
  97. */
  98. public void setTaxadvisor(String taxadvisor) {
  99. this.taxadvisor = taxadvisor;
  100. }
  101. /**
  102. * @return the city
  103. */
  104. public String __getCity() {
  105. return city;
  106. }
  107. /**
  108. * @param city the city to set
  109. */
  110. public void setCity(String city) {
  111. this.city = city;
  112. }
  113. /**
  114. * @return the taxadvjob
  115. */
  116. public String __getTaxadvjob() {
  117. return taxadvjob;
  118. }
  119. /**
  120. * @param taxadvjob the taxadvjob to set
  121. */
  122. public void setTaxadvjob(String taxadvjob) {
  123. this.taxadvjob = taxadvjob;
  124. }
  125. /**
  126. * @return the street
  127. */
  128. public String __getStreet() {
  129. return street;
  130. }
  131. /**
  132. * @param street the street to set
  133. */
  134. public void setStreet(String street) {
  135. this.street = street;
  136. }
  137. /**
  138. * @return the stb
  139. */
  140. public String __getStb() {
  141. return stb;
  142. }
  143. /**
  144. * @param stb the stb to set
  145. */
  146. public void setStb(String stb) {
  147. this.stb = stb;
  148. }
  149. /**
  150. * @return the email
  151. */
  152. public String __getEmail() {
  153. return email;
  154. }
  155. /**
  156. * @param email the email to set
  157. */
  158. public void setEmail(String email) {
  159. this.email = email;
  160. }
  161. /**
  162. * @return the name
  163. */
  164. public String __getName() {
  165. return name;
  166. }
  167. /**
  168. * @param name the name to set
  169. */
  170. public void setName(String name) {
  171. this.name = name;
  172. }
  173. /**
  174. * @return the zipcode
  175. */
  176. public String __getZipcode() {
  177. return zipcode;
  178. }
  179. /**
  180. * @param zipcode the zipcode to set
  181. */
  182. public void setZipcode(String zipcode) {
  183. this.zipcode = zipcode;
  184. }
  185. /**
  186. * @return the phone
  187. */
  188. public String __getPhone() {
  189. return phone;
  190. }
  191. /**
  192. * @param phone the phone to set
  193. */
  194. public void setPhone(String phone) {
  195. this.phone = phone;
  196. }
  197. /**
  198. * @return the firstname
  199. */
  200. public String __getFirstname() {
  201. return firstname;
  202. }
  203. /**
  204. * @param firstname the firstname to set
  205. */
  206. public void setFirstname(String firstname) {
  207. this.firstname = firstname;
  208. }
  209. /**
  210. * @return the taxauthority
  211. */
  212. public String __getTaxauthority() {
  213. return taxauthority;
  214. }
  215. /**
  216. * @param taxauthority the taxauthority to set
  217. */
  218. public void setTaxauthority(String taxauthority) {
  219. this.taxauthority = taxauthority;
  220. }
  221. /**
  222. * @return the taxnumber
  223. */
  224. public String __getTaxnumber() {
  225. return taxnumber;
  226. }
  227. /**
  228. * @param taxnumber the taxnumber to set
  229. */
  230. public void setTaxnumber(String taxnumber) {
  231. this.taxnumber = taxnumber;
  232. }
  233. /**
  234. * @return the taxadvmandant
  235. */
  236. public String __getTaxadvmandant() {
  237. return taxadvmandant;
  238. }
  239. /**
  240. * @param taxadvmandant the taxadvmandant to set
  241. */
  242. public void setTaxadvmandant(String taxadvmandant) {
  243. this.taxadvmandant = taxadvmandant;
  244. }
  245. }