Exemplo n.º 1
0
 public string aj_Init(int? type)
 {
     Param item = new Param();
     var open = openLogic();
     using (var db0 = getDB0())
     {
         type = type == null ? (int)IndexImgType.US : type;
         if (type == (int)IndexImgType.US)
         {
             item.url_1 = (string)open.getParmValue(ParmDefine.url_1);
             item.url_2 = (string)open.getParmValue(ParmDefine.url_2);
             item.url_3 = (string)open.getParmValue(ParmDefine.url_3);
             item.url_4 = (string)open.getParmValue(ParmDefine.url_4);
             item.url_5 = (string)open.getParmValue(ParmDefine.url_5);
         }
         else if (type == (int)IndexImgType.JP)
         {
             item.url_1 = (string)open.getParmValue(ParmDefine.url_1_jp);
             item.url_2 = (string)open.getParmValue(ParmDefine.url_2_jp);
             item.url_3 = (string)open.getParmValue(ParmDefine.url_3_jp);
             item.url_4 = (string)open.getParmValue(ParmDefine.url_4_jp);
             item.url_5 = (string)open.getParmValue(ParmDefine.url_5_jp);
         }
         return defJSON(item);
     }
 }
Exemplo n.º 2
0
 public string aj_ParamInit()
 {
     Param item = new Param();
     var open = openLogic();
     using (var db0 = getDB0())
     {
         item.Email = (string)open.getParmValue(ParmDefine.Email);
         return defJSON(item);
     }
 }
Exemplo n.º 3
0
        public string aj_ParamInit()
        {
            Param item = new Param();
            var open = openLogic();
            using (var db0 = getDB0())
            {
                item.Email = (string)open.getParmValue(ParmDefine.Email);

                item.PurchaseTotal = (decimal)open.getParmValue(ParmDefine.PurchaseTotal);
                item.HomoiothermyFee = (decimal)open.getParmValue(ParmDefine.HomoiothermyFee);
                item.RefrigerFee = (decimal)open.getParmValue(ParmDefine.RefrigerFee);

                item.AccountName = (string)open.getParmValue(ParmDefine.AccountName);
                item.BankName = (string)open.getParmValue(ParmDefine.BankName);
                item.BankCode = (string)open.getParmValue(ParmDefine.BankCode);
                item.AccountNumber = (string)open.getParmValue(ParmDefine.AccountNumber);
                item.Fee = (decimal)open.getParmValue(ParmDefine.Fee);
                return defJSON(item);
            }
        }
Exemplo n.º 4
0
 public string aj_ProductInit(int? type)
 {
     Param item = new Param();
     var open = openLogic();
     using (var db0 = getDB0())
     {
         type = type == null ? (int)IndexParamType.US : type;
         if (type == (int)IndexParamType.US)
         {
             item.product_info = (string)open.getParmValue(ParmDefine.product_info);
             item.product_url = (string)open.getParmValue(ParmDefine.product_url);
         }
         else if (type == (int)IndexParamType.TW)
         {
             item.product_info = (string)open.getParmValue(ParmDefine.product_info_tw);
             item.product_url = (string)open.getParmValue(ParmDefine.product_url_tw);
         }
         return defJSON(item);
     }
 }
Exemplo n.º 5
0
 public string aj_UrlInit(int? type)
 {
     Param item = new Param();
     var open = openLogic();
     using (var db0 = getDB0())
     {
         type = type == null ? (int)IndexParamType.US : type;
         if (type == (int)IndexParamType.US)
         {
             item.url_1 = (string)open.getParmValue(ParmDefine.url_1);
             item.url_2 = (string)open.getParmValue(ParmDefine.url_2);
             item.youtube_url = (string)open.getParmValue(ParmDefine.youtube_url);
         }
         else if (type == (int)IndexParamType.TW)
         {
             item.url_1 = (string)open.getParmValue(ParmDefine.url_1_tw);
             item.url_2 = (string)open.getParmValue(ParmDefine.url_2_tw);
             item.youtube_url = (string)open.getParmValue(ParmDefine.youtube_url_tw);
         }
         return defJSON(item);
     }
 }