SQLServerDAL/ExpressOrder.cs

(开头部分) 69KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。


// Itogoorder.css:订单实现类.
// CopyRight (c) 2009-2016 WMPT Teconology. All Rights Reserved.
// 
// 2010-03-12

using System;
using System.Data;
using System.Text;
using System.Data.SqlClient;
using System.Collections.Generic;
using System.Collections;

using WMPT.Model;

using WMPT.DBUtility;//请先添加引用
using WMPT.Common;
namespace WMPT.SQLServerDAL
{
    /// <summary>
    /// 跑腿订单操作
    /// </summary>
    public class ExpressOrder
    {

        /// <summary>
        /// 提交订单
        /// </summary>
        public IList<ROrderinfo> submitorder(ExpressOrderInfo model)
        {

            IList<ROrderinfo> my_list = new List<ROrderinfo>();
            ArrayList cmdtextlist = new ArrayList();
            ArrayList paraslist = new ArrayList();

            DateTime paytime = Convert.ToDateTime("1970/1/1 00:00:00");
            decimal myhavemoney = 0;//用户总共的金额
            decimal totalprice = 0;  //总支付金额
            decimal currentprice = 0; //用户还要支付的金额
            decimal acountpay = 0;//余额支付
            decimal paystate = 0;//支付状态

            totalprice = model.TotalPrice;
            //余额支付
            if (model.UserID > 0)
            {
                ECustomerInfo user = new ECustomer().GetModel(model.UserID);
                  if (user != null)
                  {
                      myhavemoney = user.Usermoney;
                      currentprice = totalprice;

                      if (model.PayMode == 2)
                      {
                          if (Convert.ToInt32(myhavemoney) > 0)
                          {
                              if (myhavemoney >= currentprice)
                              {
                                  acountpay = currentprice;
                                  myhavemoney = myhavemoney - currentprice;
后面还有 1290 行代码,购买后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。