⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 customer.cs

📁 微软的行业应用解决方案实例!非常优秀的Windows Mobile开发案例
💻 CS
字号:
using System;
using System.Collections.Generic;
using System.Text;

namespace HardwareDistributor.Business
{
    public class Customer
    {
        private int _customerId;
        private string _customerName;
        private string _streetAddress;
        private string _city;
        private string _stateProvince;
        private string _postalCode;
        private string _contactName;
        private string _contactPhone;
        private int _routeId;

        public Customer() { }

        public Customer(int customerId, string customerName, string streetAddress, 
                        string city, string stateProvince, string postalCode, 
                        string contactName, string contactPhone, int routeId)
        {
            this._customerId = customerId;
            this._customerName = customerName;
            this._streetAddress = streetAddress;
            this._city = city;
            this._stateProvince = stateProvince;
            this._postalCode = postalCode;
            this._contactName = contactName;
            this._contactPhone = contactPhone;
            this._routeId = routeId;
        }


        /// <summary>
        /// Customer's phone number
        /// </summary>
        public string ContactPhone
        {
            get
            {
                return _contactPhone;
            }
            set
            {
                _contactPhone = value;
            }
        }


        /// <summary>
        /// Point of contact at Customer's company
        /// </summary>
        public string ContactName
        {
            get
            {
                return _contactName;
            }
            set
            {
                _contactName = value;
            }
        }


        /// <summary>
        /// Customer's postal/zip code
        /// </summary>
        public string PostalCode
        {
            get
            {
                return _postalCode;
            }
            set
            {
                _postalCode = value;
            }
        }


        /// <summary>
        /// State or Province where customer resides
        /// </summary>
        public string StateProvince
        {
            get
            {
                return _stateProvince;
            }
            set
            {
                _stateProvince = value;
            }
        }


        /// <summary>
        /// City where customer resides
        /// </summary>
        public string City
        {
            get
            {
                return _city;
            }
            set
            {
                _city = value;
            }
        }


        /// <summary>
        /// Address of Customer's place of business
        /// </summary>
        public string StreetAddress
        {
            get
            {
                return _streetAddress;
            }
            set
            {
                _streetAddress = value;
            }
        }


        /// <summary>
        /// Id of the route this customer belongs to
        /// </summary>
        public int RouteId
        {
            get
            {
                return _routeId;
            }
            set
            {
                _routeId = value;
            }
        }


        /// <summary>
        /// Customer's unique Id
        /// </summary>
        public int CustomerId
        {
            get
            {
                return _customerId;
            }
            set
            {
                _customerId = value;
            }
        }

        
        /// <summary>
        /// Customer's company name
        /// </summary>
        public string CustomerName
        {
            get
            {
                return _customerName;
            }
            set
            {
                _customerName = value;
            }
        }


    }
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -