public OrderFinalModel GetDataModelFx1(int mType, string storeid, out IList <MemberDetailsModel> choseProList, int flag) { OrderFinalModel ofm = new OrderFinalModel(); LetUsOrder luo = new LetUsOrder(); luo.SetVlaue(); //OrderFinalModel ofm2 = ((OrderFinalModel)HttpContext.Current.Session["fxMemberModel"]); RegistermemberBLL registermemberBLL = new RegistermemberBLL(); MemberInfoModel mim = new MemberInfoModel(); mim.Number = luo.MemBh; mim.StoreID = storeid; int OType = luo.OrderType; ofm.Number = luo.MemBh; ofm.Placement = ""; ofm.Direct = ""; ofm.ExpectNum = CommonDataBLL.getMaxqishu(); ofm.OrderID = ofm.OrderID = new RegistermemberBLL().GetOrderInfo("add", null); ofm.StoreID = storeid; ofm.Name = ""; ofm.PetName = ""; ofm.LoginPass = ""; ofm.AdvPass = ""; ofm.LevelInt = 1; ofm.RegisterDate = DateTime.Now; ofm.Birthday = DateTime.Now; ofm.Sex = 0; ofm.HomeQuhao = ""; ofm.HomeTele = ""; ofm.OfficeQuhao = ""; ofm.OfficeTele = ""; ofm.OfficeFjh = ""; ofm.MobileTele = ""; ofm.FaxQuhao = ""; ofm.FaxTele = ""; ofm.FaxFjh = ""; ofm.CPCCode = ""; ofm.Address = ""; ofm.PostalCode = ""; ofm.PaperType.PaperTypeCode = ""; ofm.PaperNumber = ""; ofm.BankCode = ""; ofm.BankAddress = ""; ofm.BankCard = ""; ofm.BCPCCode = ""; ofm.BankBook = ""; ofm.Remark = ""; ofm.ChangeInfo = ""; ofm.Healthy = 1; ofm.PhotoPath = ""; ofm.PhotoW = 0; ofm.PhotoH = 0; ofm.Email = ""; ofm.IsBatch = 0; ofm.Language = 1; ofm.OperateIp = ""; ofm.OperaterNum = ""; ofm.District = 1; ofm.Answer = ""; ofm.Question = ""; ofm.Error = ""; ofm.Bankbranchname = ""; ofm.Flag = flag; //memberorder开始 DataTable dt11 = GetMoneyAndProMess(mim.Number, mType, OType); if (dt11.Rows.Count > 0) { ofm.TotalMoney = Convert.ToDecimal(MemberOrderAgainBLL.GetBzMoney(mim.StoreID, Convert.ToDouble(dt11.Rows[0]["TotalPriceAll"]))); ofm.TotalPv = Convert.ToDecimal(dt11.Rows[0]["TotalPvAll"]); } else { ofm.TotalMoney = 0; ofm.TotalPv = 0; } ofm.PayExpect = ofm.ExpectNum; ofm.OrderExpect = ofm.ExpectNum; //ofm.IsAgain = ofm2.IsAgain; ofm.OrderDate = DateTime.Now.ToUniversalTime(); ofm.DefrayState = 0; //ofm2.DefrayState; ofm.OrderType = OType; // ofm.Type //ofm.OrderType ofm.CCPCCode ofm.ConAddress ofm.ConTelPhone ofm.ConMobilPhone ofm.ConPost //ofm.Consignee ofm.ConZipCode ofm.SendWay 不在此处理 ofm.RemittancesId = ""; ofm.ElectronicaccountId = ""; ofm.DefrayType = -1;//ofm2.DefrayType; ofm.PayCurrency = -1; ofm.PayMoney = 0; ofm.StandardCurrency = MemberOrderAgainBLL.GetBzTypeId(mim.StoreID); ofm.StandardcurrencyMoney = Convert.ToDecimal(dt11.Rows[0]["TotalPriceAll"]); ofm.CarryMoney = 0; ofm.IsreceiVables = 0; ofm.IsRetail = 0; ofm.DeclareMoney = 0; ofm.PaymentMoney = 0; DataTable dt22 = GetProMess(mim.Number, mType, OType); choseProList = AddMemberDetails(dt22); if (ofm.SendWay == 0) { ofm.EnoughProductMoney = Convert.ToDecimal(registermemberBLL.getEnoughProductMoney(choseProList, mim.StoreID)); double notEnoughmoney = registermemberBLL.CheckMoneyIsEnough(choseProList, mim.StoreID); ofm.LackProductMoney = Convert.ToDecimal(registermemberBLL.ChangeNotEnoughMoney(mim.StoreID, notEnoughmoney)); } else { ofm.EnoughProductMoney = 0; ofm.LackProductMoney = ofm.TotalMoney; } if (dt22.Rows.Count > 0) { string proNum = ""; string proId = ""; string notProList = ""; for (int i = 0; i < dt22.Rows.Count; i++) { proNum += dt22.Rows[i]["proNum"].ToString() + ","; proId += dt22.Rows[i]["proId"].ToString() + ","; notProList += choseProList[i].NotEnoughProduct.ToString() + ","; } ofm.ProductIDList = proId; ofm.QuantityList = proNum; ofm.NotEnoughProductList = notProList; } else { ofm.ProductIDList = ","; ofm.QuantityList = ","; ofm.NotEnoughProductList = ","; } return(ofm); }