public override OrderProduct AddToCart(OrderType opType, int productId, int quantity, NameValueCollection paras)
        {
            SuitId = productId;
            int typecode;
            if (int.TryParse(paras["typecode"],out typecode))
            {
                typecode =0;
            }

            NoName.NetShop.Solution.BLL.SuiteBll sbll = new SuiteBll();
            SolutionProductBll spbll = new SolutionProductBll();

            SuiteModel smodel = sbll.GetModel(SuitId);

            List<SolutionProductModel> list = spbll.GetModelList(SuitId);

            this.OrderProducts.Clear();
            foreach (SolutionProductModel model in list)
            {
                OrderProduct op = OrderProductFactory.Instance().CreateOrderProduct(model.ProductId, model.Quantity, opType, paras);
                op.Key = this.Key + "_op" + this.GetSerial();
                op.Container = this;
                if (op != null)
                {
                    OrderProducts.Add(op);
                }
            }
            this.DerateFee = this.ProductSum - smodel.Price;
            _score = smodel.Score;

            return null;
        }
        private void ShowInfo(int suiteId)
        {
            SuiteBll sbll = new SuiteBll();
            SolutionProductBll spbll = new SolutionProductBll();
            SuiteModel smodel = sbll.GetModel(suiteId);
            if (smodel == null)
            {
                panAddProduct.Visible = false;
                txtScore.Text = "0";
                lblPrice.Text = "0";
                txtDerate.Text = "0";
                lblScenceId.Text = ScenceId.ToString();
            }
            else
            {
                panAddProduct.Visible = true;
                lblSuiteId.Text = smodel.SuiteId.ToString();
                txtRemark.Text = smodel.Remark;
                txtScore.Text = smodel.Score.ToString();
                txtScore.ReadOnly = true;
                txtSuiteName.Text = smodel.SuiteName;
                lblScenceId.Text = smodel.ScenceId.ToString();

                lblPrice.Text = smodel.ProductFee.ToString("F2");
                txtDerate.Text = smodel.DerateFee.ToString("F2");

                if (!String.IsNullOrEmpty(smodel.SmallImage))
                {
                    this.imgSuite.Visible = true;
                    this.imgSuite.ImageUrl = Common.CommonImageUpload.GetCommonImageFullUrl(smodel.SmallImage);
                }
                else
                {
                    this.imgSuite.Visible = false;
                }

                gvItems.DataSource = spbll.GetModelList(suiteId);
                gvItems.DataBind();
            }
        }