Esempio n. 1
0
        public NTS.WEB.ResultView.ResultOrder GetShopOrderNew(NTS.WEB.DataContact.QueryOrderObjects query)
        {
            var pAction = new ExecuteProcess();

            try
            {
                var result = new NTS.WEB.BLL.QueryEnery().GetShopOrderNew(query);
                if (result == null)
                {
                    pAction.Success      = false;
                    pAction.ExceptionMsg = "暂无数据信息";
                    return(new ResultOrder()
                    {
                        ActionInfo = pAction
                    });
                }
                pAction.Success   = true;
                result.ActionInfo = pAction;
                return(result);
            }
            catch (Exception e)
            {
                pAction.Success      = false;
                pAction.ExceptionMsg = e.Message;
                return(new ResultOrder()
                {
                    ActionInfo = pAction
                });
            }
        }
Esempio n. 2
0
        public QueryEneryTotal GetQueryEneryTotal(NTS.WEB.DataContact.BasicQuery query)
        {
            var pAction = new ExecuteProcess();

            try
            {
                var result = new NTS.WEB.BLL.QueryEnery().GetQueryEneryTotal(query);
                if (result == null)
                {
                    pAction.Success      = false;
                    pAction.ExceptionMsg = "暂无数据信息";
                    return(new QueryEneryTotal()
                    {
                        ActionInfo = pAction
                    });
                }
                pAction.Success   = true;
                result.ActionInfo = pAction;
                return(result);
            }
            catch (Exception e)
            {
                pAction.Success      = false;
                pAction.ExceptionMsg = e.Message;
                return(new QueryEneryTotal()
                {
                    ActionInfo = pAction
                });
            }
        }
Esempio n. 3
0
 public NTS.WEB.ResultView.ShopOrderResult GetShopOrder(NTS.WEB.DataContact.QueryOrder query)
 {
     var pAction = new ExecuteProcess();
     try
     {
         var result = new NTS.WEB.BLL.QueryEnery().GetShopOrder(query);
         if (result == null)
         {
             pAction.Success = false;
             pAction.ExceptionMsg = "暂无数据信息";
             return new ShopOrderResult() { ActionInfo = pAction };
         }
         pAction.Success = true;
         result.ActionInfo = pAction;
         return result;
     }
     catch (Exception e)
     {
         pAction.Success = false;
         pAction.ExceptionMsg = e.Message;
         return new ShopOrderResult() { ActionInfo = pAction };
     }
 }
Esempio n. 4
0
 public ResultReal GetRealTime(NTS.WEB.DataContact.RealQuery query)
 {
     var pAction = new ExecuteProcess();
     try
     {
         var result = new NTS.WEB.BLL.QueryEnery().GetRealTime(query);
         if (result == null)
         {
             pAction.Success = false;
             pAction.ExceptionMsg = "暂无数据信息";
             return new ResultReal() { ActionInfo = pAction };
         }
         pAction.Success = true;
         result.ActionInfo = pAction;
         return result;
     }
     catch (Exception e)
     {
         pAction.Success = false;
         pAction.ExceptionMsg = e.Message;
         return new ResultReal() { ActionInfo = pAction };
     }
 }