示例#1
0
        /// <summary>
        /// 获取订单设置信息
        /// </summary>
        /// <param name="search">查询类</param>
        /// <returns>结果</returns>
        public Jinher.AMP.BTP.Deploy.OrderFieldDTO GetOrderSetExt(Guid AppId)
        {
            OrderFieldDTO model      = new OrderFieldDTO();
            OrderField    orderfiled = null;

            if (AppId != Guid.Empty)
            {
                orderfiled = OrderField.ObjectSet().FirstOrDefault(p => p.AppId == AppId);
            }
            if (orderfiled != null)
            {
                model.Id          = orderfiled.Id;
                model.AppId       = orderfiled.AppId;
                model.FirstField  = orderfiled.FirstField;
                model.SecondField = orderfiled.SecondField;
                model.ThirdField  = orderfiled.ThirdField;
                model.SubId       = orderfiled.SubId;
                model.SubTime     = orderfiled.SubTime;
                model.ModifiedOn  = orderfiled.ModifiedOn;
            }
            return(model);
        }