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

📄 order.cs

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

namespace HardwareDistributor.Business
{
    public class Order
    {
        private int _orderId;
        private int _customerId;
        private string _customerName;
        private DateTime _deliveryDate;
        private string _orderState;

        public Order() { }

        public Order(int orderId, int customerId, string customerName, 
                     DateTime deliveryDate, string orderState)
        {
            this._orderId = orderId;
            this._customerId = customerId;
            this._customerName = customerName;
            this._deliveryDate = deliveryDate;
            this._orderState = orderState;
        }


        /// <summary>
        /// Unique Order Id
        /// </summary>
        public int OrderId
        {
            get
            {
                return _orderId;
            }
            set
            {
                _orderId = value;
            }
        }


        /// <summary>
        /// Unique Customer 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;
            }
        }


        /// <summary>
        /// Date the order will be delivered
        /// </summary>
        public DateTime DeliveryDate
        {
            get
            {
                return _deliveryDate;
            }
            set
            {
                _deliveryDate = value;
            }
        }


        /// <summary>
        /// Current state of the order as it
        /// moves through the production process
        /// </summary>
        public string OrderState
        {
            get
            {
                return _orderState;
            }
            set
            {
                _orderState = value;
            }
        }
    }
}

⌨️ 快捷键说明

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