订单的发货和作废()
【代码说明】代码中第行先接收上个页面传来的值代码第行以这个值为参数调用ST_Order类的GetorderByID()方法该方法返回一个ST_OrderEntity类的实例用来记录收货人的相关信息
说明捕获异常后并没有输出任何错误信息而是直接return
ST_OrderEntity实体的主要代码如程序所示
程序 ST_OrderEntitycs
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;
}
}
///订单状态是新订单是发货是作废
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;
}
}
///订单收货人Email
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;
}
}
返回目录ASPNET项目开发指南
编辑推荐
ASPNET MVC 框架揭秘
ASPNET开发宝典
ASP NET开发培训视频教程