您现在的位置是:首页 >

当当网上购物书店购物车 ASP.NET项目开发指南:网络书店订单的发货和作废(2)

火烧 2022-09-06 02:43:52 1048
ASP.NET项目开发指南:网络书店订单的发货和作废(2)    订单的发货和作废( )  【代码说明】代码中第 行先接收上个页面传来的值 代码第 行以这个值为参数调用ST_Order类的Getord

ASP.NET项目开发指南:网络书店订单的发货和作废(2)  

     订单的发货和作废( )

  【代码说明】代码中第 行先接收上个页面传来的值 代码第 行以这个值为参数调用ST_Order类的GetorderByID()方法 该方法返回一个ST_OrderEntity类的实例 用来记录收货人的相关信息

  说明 捕获异常后并没有输出任何错误信息 而是直接return

  ST_OrderEntity实体的主要代码如程序 所示

  程序   ST_OrderEntity cs

     public struct ST_OrderEntity

     {

         private int _ST_OrderID;

         private int _ST_UserID;

         private DateTime _ST_CreateTime;

         private string _ST_Ship;

         private string _ST_Payment;

         private float _ST_Sum;

         private string _ST_Desciption;

         private short _ST_Status;

         private string _ST_Consignee;

         private string _ST_ConsingeeEmail;

         private string _ST_ConsingeePhone;

         private string _ST_ConsingeeAddress;

         private string _ST_ConsingeePostcode;

         private string _ST_ConsingeeGender;

         ///订单ID

         public int ST_OrderID

         {

             get

             {

                 return this _ST_OrderID;

             }

             set

             {

                 this _ST_OrderID = value;

             }

         }

         ///消费者ID

         public int ST_UserID

         {

             get

             {

                 return this _ST_UserID;

             }

             set

             {

                 this _ST_UserID = value;

             }

         }

         ///订单生成时间

         public DateTime ST_CreateTime

         {

             get

             {

                 return this _ST_CreateTime;

             }

             set

             {

                 this _ST_CreateTime = value;

             }

         }

         ///配送方式 包括送货上门 平邮 EMS

         public string ST_Ship

         {

             get

             {

                 return this _ST_Ship;

             }

             set

             {

                 this _ST_Ship = value;

             }

         }

         ///支付方式 包括银行电汇 邮局汇款 货到付款

         public string ST_Payment

         {

             get

             {

                 return this _ST_Payment;

             }

             set

             {

                 this _ST_Payment = value;

             }

         }

         ///订单金额

         public float ST_Sum

         {

             get

             {

                 return this _ST_Sum;

             }

             set

             {

                 this _ST_Sum = value;

             }

         }

         ///订单说明

         public string ST_Desciption

         {

             get

             {

                 return this _ST_Desciption;

             }

             set

             {

                 this _ST_Desciption = value;

             }

        }

        ///订单状态 是新订单 是发货 是作废

当当网上购物书店购物车 ASP.NET项目开发指南:网络书店订单的发货和作废(2)

        public short ST_Status

        {

            get

            {

                return this _ST_Status;

            }

            set

            {

                this _ST_Status = value;

            }

        }

        ///订单收货人

        public string ST_Consignee

        {

            get

            {

                return this _ST_Consignee;

            }

            set

            {

                this _ST_Consignee = value;

            }

        }

        ///订单收货人E mail

        public string ST_ConsingeeEmail

        {

            get

            {

                return this _ST_ConsingeeEmail;

            }

            set

            {

                this _ST_ConsingeeEmail = value;

            }

        }

        ///订单收货人电话

        public string ST_ConsingeePhone

        {

            get

            {

                return this _ST_ConsingeePhone;

            }

            set

            {

                this _ST_ConsingeePhone = value;

            }

        }

        ///订单收货人地址

        public string ST_ConsingeeAddress

        {

            get

            {

                return this _ST_ConsingeeAddress;

            }

            set

            {

                this _ST_ConsingeeAddress = value;

            }

        }

        ///订单收货人邮编

        public string ST_ConsingeePostcode

        {

            get

            {

                return this _ST_ConsingeePostcode;

            }

            set

            {

                this _ST_ConsingeePostcode = value;

            }

        }

        ///订单收货人性别

        public string ST_ConsingeeGender

        {

            get

            {

                return this _ST_ConsingeeGender;

            }

            set

            {

                this _ST_ConsingeeGender = value;

            }

        }

      返回目录ASP NET项目开发指南

      编辑推荐

       ASP NET MVC 框架揭秘

       ASP NET开发宝典

lishixinzhi/Article/program/net/201311/15846  
永远跟党走
  • 如果你觉得本站很棒,可以通过扫码支付打赏哦!

    • 微信收款码
    • 支付宝收款码