Exemplo n.º 1
0
        public void Insert(string CompanyName, string ContactName, string ContactTitle, string Address, string City, string Region, string PostalCode, string Country, string Phone, string Fax, string HomePage)
        {
            Supplier item = new Supplier();

            item.CompanyName = CompanyName;

            item.ContactName = ContactName;

            item.ContactTitle = ContactTitle;

            item.Address = Address;

            item.City = City;

            item.Region = Region;

            item.PostalCode = PostalCode;

            item.Country = Country;

            item.Phone = Phone;

            item.Fax = Fax;

            item.HomePage = HomePage;


            item.Save(UserName);
        }
Exemplo n.º 2
0
        public void Update(int SupplierID, string CompanyName, string ContactName, string ContactTitle, string Address, string City, string Region, string PostalCode, string Country, string Phone, string Fax, string HomePage)
        {
            Supplier item = new Supplier();

            item.MarkOld();
            item.IsLoaded = true;

            item.SupplierID = SupplierID;

            item.CompanyName = CompanyName;

            item.ContactName = ContactName;

            item.ContactTitle = ContactTitle;

            item.Address = Address;

            item.City = City;

            item.Region = Region;

            item.PostalCode = PostalCode;

            item.Country = Country;

            item.Phone = Phone;

            item.Fax = Fax;

            item.HomePage = HomePage;

            item.Save(UserName);
        }
Exemplo n.º 3
0
        public void Insert(string CompanyName,string ContactName,string ContactTitle,string Address,string City,string Region,string PostalCode,string Country,string Phone,string Fax,string HomePage)
        {
            Supplier item = new Supplier();

            item.CompanyName = CompanyName;

            item.ContactName = ContactName;

            item.ContactTitle = ContactTitle;

            item.Address = Address;

            item.City = City;

            item.Region = Region;

            item.PostalCode = PostalCode;

            item.Country = Country;

            item.Phone = Phone;

            item.Fax = Fax;

            item.HomePage = HomePage;

            item.Save(UserName);
        }
Exemplo n.º 4
0
        public void Update(int SupplierID,string CompanyName,string ContactName,string ContactTitle,string Address,string City,string Region,string PostalCode,string Country,string Phone,string Fax,string HomePage)
        {
            Supplier item = new Supplier();
            item.MarkOld();
            item.IsLoaded = true;

            item.SupplierID = SupplierID;

            item.CompanyName = CompanyName;

            item.ContactName = ContactName;

            item.ContactTitle = ContactTitle;

            item.Address = Address;

            item.City = City;

            item.Region = Region;

            item.PostalCode = PostalCode;

            item.Country = Country;

            item.Phone = Phone;

            item.Fax = Fax;

            item.HomePage = HomePage;

            item.Save(UserName);
        }