private static void Init_myOrganisation_Person() { TangentaTableClass.Person Person1 = new TangentaTableClass.Person(); TangentaTableClass.myOrganisation_Person myOrganisation_Person1 = new TangentaTableClass.myOrganisation_Person(); Person1.m_cFirstName.FirstName.val = "Marjetka"; Person1.m_cLastName.LastName.val = "Hrnčič-Štrucl"; m_List_Person.Add(Person1); myOrganisation_Person1.m_Person = Person1; myOrganisation_Person1.UserName.val = "marjetka"; myOrganisation_Person1.Active.val = true; myOrganisation_Person1.Job.val = "direktor"; myOrganisation_Person1.Password.val="1234"; m_List_myOrganisation_Person.Add(myOrganisation_Person1); TangentaTableClass.Person Person2 = new TangentaTableClass.Person(); TangentaTableClass.myOrganisation_Person myOrganisation_Person2 = new TangentaTableClass.myOrganisation_Person(); Person2.m_cFirstName.FirstName.val = "Damjan"; Person2.m_cLastName.LastName.val = "Štrucl-Hrnčič"; m_List_Person.Add(Person2); myOrganisation_Person2.m_Person = Person2; myOrganisation_Person2.UserName.val = "damjan"; myOrganisation_Person2.Active.val = true; myOrganisation_Person2.Job.val = "zunanji sodelavec"; myOrganisation_Person2.Password.val = "1234"; m_List_myOrganisation_Person.Add(myOrganisation_Person2); }
public static void Init_PurchaseOrganisation() { TangentaTableClass.Organisation org = new TangentaTableClass.Organisation(); TangentaTableClass.Person per = new TangentaTableClass.Person(); TangentaTableClass.Contact con = new TangentaTableClass.Contact(); TangentaTableClass.OrganisationData orgdata = new TangentaTableClass.OrganisationData(); TangentaTableClass.Supplier supplier = new TangentaTableClass.Supplier(); org.Name.val = "Linde Eckstein GmbH + CO.KG"; orgdata.m_Organisation = org; orgdata.m_cAddress_Org.m_cStreetName_Org.StreetName.val = "Flurstraße"; orgdata.m_cAddress_Org.m_cHouseNumber_Org.HouseNumber.val = "27 a – 35"; orgdata.m_cAddress_Org.m_cCity_Org.City.val = "Oberasbach"; orgdata.m_cAddress_Org.m_cZIP_Org.ZIP.val = "90522"; orgdata.m_cAddress_Org.m_cCountry_Org.Country.val = "Deutschland"; supplier.m_Contact = con; supplier.m_Contact.m_OrganisationData = orgdata; m_List_OrganisationData_Supplier.Add(con); }