|
| 1 | +/** |
| 2 | + * Copyright 2015-2024 NETCAT (www.netcat.pl) |
| 3 | + * |
| 4 | + * Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | + * you may not use this file except in compliance with the License. |
| 6 | + * You may obtain a copy of the License at |
| 7 | + * |
| 8 | + * http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | + * |
| 10 | + * Unless required by applicable law or agreed to in writing, software |
| 11 | + * distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | + * See the License for the specific language governing permissions and |
| 14 | + * limitations under the License. |
| 15 | + * |
| 16 | + * @author NETCAT <[email protected]> |
| 17 | + * @copyright 2015-2024 NETCAT (www.netcat.pl) |
| 18 | + * @license http://www.apache.org/licenses/LICENSE-2.0 |
| 19 | + */ |
| 20 | + |
| 21 | +using System.Runtime.InteropServices; |
| 22 | + |
| 23 | +namespace NIP24 |
| 24 | +{ |
| 25 | + #region interface |
| 26 | + |
| 27 | + /// <summary> |
| 28 | + /// Interfejs elementu listy wspólników s.c. |
| 29 | + /// </summary> |
| 30 | + [Guid("4C20999B-27DF-44BF-9535-25B11EB9F570")] |
| 31 | + [ComVisible(true)] |
| 32 | + public interface IBusinessPartner |
| 33 | + { |
| 34 | + /// <summary> |
| 35 | + /// Numer REGON |
| 36 | + /// </summary> |
| 37 | + [DispId(1)] |
| 38 | + string REGON { get; set; } |
| 39 | + |
| 40 | + /// <summary> |
| 41 | + /// Nazwa firmy |
| 42 | + /// </summary> |
| 43 | + [DispId(2)] |
| 44 | + string FirmName { get; set; } |
| 45 | + |
| 46 | + /// <summary> |
| 47 | + /// Imię pierwsze |
| 48 | + /// </summary> |
| 49 | + [DispId(3)] |
| 50 | + string FirstName { get; set; } |
| 51 | + |
| 52 | + /// <summary> |
| 53 | + /// Imię drugie |
| 54 | + /// </summary> |
| 55 | + [DispId(4)] |
| 56 | + string SecondName { get; set; } |
| 57 | + |
| 58 | + /// <summary> |
| 59 | + /// Nazwisko |
| 60 | + /// </summary> |
| 61 | + [DispId(5)] |
| 62 | + string LastName { get; set; } |
| 63 | + |
| 64 | + [DispId(6)] |
| 65 | + string ToString(); |
| 66 | + } |
| 67 | + |
| 68 | + #endregion |
| 69 | + |
| 70 | + #region implementation |
| 71 | + |
| 72 | + /// <summary> |
| 73 | + /// Element listy wspólników s.c. |
| 74 | + /// </summary> |
| 75 | + [Guid("C29DEC29-AB37-4A0C-93B5-8335D1A222FE")] |
| 76 | + [ClassInterface(ClassInterfaceType.None)] |
| 77 | + [ComVisible(true)] |
| 78 | + public class BusinessPartner : IBusinessPartner |
| 79 | + { |
| 80 | + /// <summary> |
| 81 | + /// Numer REGON |
| 82 | + /// </summary> |
| 83 | + public string REGON { get; set; } |
| 84 | + |
| 85 | + /// <summary> |
| 86 | + /// Nazwa firmy |
| 87 | + /// </summary> |
| 88 | + public string FirmName { get; set; } |
| 89 | + |
| 90 | + /// <summary> |
| 91 | + /// Imię pierwsze |
| 92 | + /// </summary> |
| 93 | + public string FirstName { get; set; } |
| 94 | + |
| 95 | + /// <summary> |
| 96 | + /// Imię drugie |
| 97 | + /// </summary> |
| 98 | + public string SecondName { get; set; } |
| 99 | + |
| 100 | + /// <summary> |
| 101 | + /// Nazwisko |
| 102 | + /// </summary> |
| 103 | + public string LastName { get; set; } |
| 104 | + |
| 105 | + /// <summary> |
| 106 | + /// Tworzy nowy, pusty obiekt |
| 107 | + /// </summary> |
| 108 | + public BusinessPartner() |
| 109 | + { |
| 110 | + } |
| 111 | + |
| 112 | + public override string ToString() |
| 113 | + { |
| 114 | + return "BusinessPartner: [regon = " + REGON |
| 115 | + + ", firmName = " + FirmName |
| 116 | + + ", firstName = " + FirstName |
| 117 | + + ", secondName = " + SecondName |
| 118 | + + ", lastName = " + LastName |
| 119 | + + "]"; |
| 120 | + } |
| 121 | + } |
| 122 | + |
| 123 | + #endregion |
| 124 | +} |
0 commit comments