示例#1
0
 public void Create(Order entity)
 {
     dbOrder.Create(entity);
 }
示例#2
0
文件: Order.cs 项目: sang-nm/mphc
        /// <summary>
        /// Persists a new instance of Order. Returns true on success.
        /// </summary>
        /// <returns></returns>
        private bool Create()
        {
            int newID = 0;

            newID = DBOrder.Create(
                this.siteID,
                this.orderGuid,
                this.orderCode,
                this.orderSubtotal,
                this.orderShipping,
                this.orderDiscount,
                this.orderTax,
                this.orderTotal,
                this.currencyCode,
                this.couponCode,
                this.orderNote,
                this.billingFirstName,
                this.billingLastName,
                this.billingEmail,
                this.billingAddress,
                this.billingPhone,
                this.billingMobile,
                this.billingFax,
                this.billingStreet,
                this.billingWard,
                this.billingDistrictGuid,
                this.billingProvinceGuid,
                this.billingCountryGuid,
                this.shippingFirstName,
                this.shippingLastName,
                this.shippingEmail,
                this.shippingAddress,
                this.shippingPhone,
                this.shippingMobile,
                this.shippingFax,
                this.shippingWard,
                this.shippingStreet,
                this.shippingDistrictGuid,
                this.shippingProvinceGuid,
                this.shippingCountryGuid,
                this.orderStatus,
                this.paymentStatus,
                this.shippingStatus,
                this.shippingMethod,
                this.paymentMethod,
                this.invoiceCompanyName,
                this.invoiceCompanyAddress,
                this.invoiceCompanyTaxCode,
                this.customValuesXml,
                this.stateID,
                this.userGuid,
                this.createdFromIP,
                this.createdBy,
                this.createdUtc,
                this.isDeleted,
                this.userPoint,
                this.userPointDiscount);

            this.orderID = newID;

            return(newID > 0);
        }