Esempio n. 1
0
        void SetQuerys(string[] keys)
        {
            foreach (var key in keys)
            {
                if (key.IndexOf(QStartNames) == -1)
                {
                    continue;
                }

                var priority = Convert.ToInt32(ConfigurationManager.AppSettings[key]);
                var newQuery = new Query(key, priority);
                Querys.Add(newQuery);
            }
        }
Esempio n. 2
0
        /// <summary>
        /// 根据页面ID查询页面字段
        /// </summary>
        /// <returns></returns>
        public MyResponseBase O_OrderDetail_ShoppingCart()
        {
            MyResponseBase resp = new MyResponseBase();

            //获取订单
            var sql      = string.Format(";SELECT * FROM [dbo].[O_Order] A WHERE OrderStatuID<=2 AND Pre_CompanyID={0} ", LoginInfo.CompanyID);
            var resptemp = Query16(sql, 4);

            Item = resptemp.Item;

            Querys.Add(new Query {
                QuryType = 0, FieldName = "O_OrderID___equal", Value = Item.O_OrderID.ToString()
            });

            if (PageQueryBase.RankInfo == null || PageQueryBase.RankInfo.Length == 0)
            {
                PageQueryBase.RankInfo = "UpdateDate|0";
            }

            Sys_HOperControl = null;
            OperCode         = "O_OrderDetail.Index";
            //用于查找计算列
            ModularOrFunCode   = "FranchiseeAreas.O_OrderDetail.ShoppingCart";// "FranchiseeAreas.O_OrderDetail.Index";
            SelectSubType      = 1;
            bCal               = 1;
            resp               = Execute();
            resp.Querys        = Querys;
            resp.PageQueryBase = PageQueryBase;
            resp.Item          = Item;

            if (resp.ItemTotal == null)
            {
                resp.ItemTotal = new SoftProjectAreaEntity {
                }
            }
            ;
            return(resp);
        }