コード例 #1
0
    public void getAttribute(int id)
    {
        try
        {
            Weifenxiao.Entity.wx_ConfigEntity model = Weifenxiao.BLL.wx_ConfigBLL.GetInstance().GetAdminSingle(id);

            Response.Write(Jnwf.Utils.Json.JsonHelper.SerializeJson(model));
        }
        catch (Exception ex)
        {
            Response.Write(2);
        }
    }
コード例 #2
0
 public void deleteAttribute(int id)
 {
     try
     {
         Weifenxiao.Entity.wx_ConfigEntity model = Weifenxiao.BLL.wx_ConfigBLL.GetInstance().GetAdminSingle(id);
         model.Status     = 0;
         model.Uptatetime = DateTime.Now;
         Weifenxiao.BLL.wx_ConfigBLL.GetInstance().Update(model);
         Jnwf.Utils.Helper.HttpHelper.LoadPageContent("http://m.disneybg.com/clear.aspx?type=config&shopid=" + model.PropertyId);
         Response.Write(1);
     }
     catch (Exception ex)
     {
         Response.Write(2);
     }
 }
コード例 #3
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="id"></param>
 /// <param name="txtattkey"></param>
 /// <param name="txtattvalue"></param>
 public void AddAttributeone(int id, string txtattkey, string txtattvalue)
 {
     try
     {
         Weifenxiao.Entity.wx_ConfigEntity model = new Weifenxiao.Entity.wx_ConfigEntity();
         model.Name          = "";
         model.PropertyId    = id;
         model.PropertyKey   = txtattkey;
         model.PropertyValue = txtattvalue;
         model.Status        = 1;
         model.Addtime       = DateTime.Now;
         model.Uptatetime    = DateTime.Now;
         Weifenxiao.BLL.wx_ConfigBLL.GetInstance().Insert(model);
         Jnwf.Utils.Helper.HttpHelper.LoadPageContent("http://m.disneybg.com/clear.aspx?type=config&shopid=" + id);
         Response.Write(1);
     }
     catch (Exception ex)
     {
         Response.Write(2);
     }
 }