Ejemplo n.º 1
0
 public string QueryPara()
 {
     paraMgr = new ParameterMgr(connectionString);
     string json = string.Empty;
     try
     {
         if (!string.IsNullOrEmpty(Request.QueryString["paraType"]))
         {
             json = paraMgr.Query(Request.QueryString["paraType"].ToString());
         }
     }
     catch (Exception ex)
     {
         Log4NetCustom.LogMessage logMessage = new Log4NetCustom.LogMessage();
         logMessage.Content = string.Format("TargetSite:{0},Source:{1},Message:{2}", ex.TargetSite.Name, ex.Source, ex.Message);
         logMessage.MethodName = System.Reflection.MethodBase.GetCurrentMethod().Name;
         log.Error(logMessage);
         json = "[]";
     }
     return json;
 }
Ejemplo n.º 2
0
 public string getCateType()
 {
     string resultStr = "";
     try
     {
         ParameterMgr paraMgr = new ParameterMgr(connectionString);
         resultStr = paraMgr.Query("product_spec");
     }
     catch (Exception ex)
     {
         Log4NetCustom.LogMessage logMessage = new Log4NetCustom.LogMessage();
         logMessage.Content = string.Format("TargetSite:{0},Source:{1},Message:{2}", ex.TargetSite.Name, ex.Source, ex.Message);
         logMessage.MethodName = System.Reflection.MethodBase.GetCurrentMethod().Name;
         log.Error(logMessage);
     }
     return resultStr;
 }
Ejemplo n.º 3
0
 public string GetPayment()
 {
     ParameterMgr paraMgr = new ParameterMgr(connectionString);
     return paraMgr.Query("payment", 1);
 }
Ejemplo n.º 4
0
        //獲取配送區域信息
        public string GetProductDeliverySet()
        {
            IParametersrcImplMgr parame = new ParameterMgr(connectionString);

            string parameFun = "freight_big_area";
            try
            {
                return parame.Query(parameFun);
            }
            catch (Exception ex)
            {
                Log4NetCustom.LogMessage logMessage = new Log4NetCustom.LogMessage();
                logMessage.Content = string.Format("TargetSite:{0},Source:{1},Message:{2}", ex.TargetSite.Name, ex.Source, ex.Message);
                logMessage.MethodName = System.Reflection.MethodBase.GetCurrentMethod().Name;
                log.Error(logMessage);
            }
            return "";
        }