예제 #1
0
        protected void Page_Load(object sender, EventArgs e)
        {
            Ajax.RegMethod(GetSiteByCityID);

            citys = CityDAO.Instance.GetCityList();
            //DataTable category = CategoryDAO.Instance.GetDataList();
        }
예제 #2
0
        protected void Page_Load(object sender, EventArgs e)
        {
            Ajax.RegMethod(AddSite);

            cityList = CityDAO.Instance.GetCityList();
            siteID   = Utils.GetQueryInt("ID");
            if (siteID > 0)
            {
                TuanSite tuanSite = TuanSiteDAO.Instance.GetModel(siteID);
                if (tuanSite != null)
                {
                    txt_SiteName.Value = tuanSite.SiteName;
                    txt_SiteUrl.Value  = tuanSite.SiteUrl;
                    txt_LogoUrl.Value  = tuanSite.LogoUrl;
                    txt_ApiUrl.Value   = tuanSite.ApiUrl;
                    txt_QQ.Value       = tuanSite.QQ;
                    cityID             = tuanSite.CityID;
                    apiTypeID          = tuanSite.ApiTypeID;
                    if (tuanSite.SiteType == 0)
                    {
                        rdo_SiteType_1.Checked = true;
                    }
                    else
                    {
                        rdo_SiteType_2.Checked = true;
                    }
                }
            }
        }
예제 #3
0
        protected void Page_Load(object sender, EventArgs e)
        {
            Ajax.RegMethod(AddTuanGou);

            cityList = CityDAO.Instance.GetCityList();
            DataTable category = CategoryDAO.Instance.GetDataList();

            DropDownTree.BindToDropDownList(ddl_Category, category, "0");

            tuanID = Utils.GetQueryInt("ID");
            if (tuanID > 0)
            {
                TuanGou tuanGou = TuanGouDAO.Instance.GetModel(tuanID);
                if (tuanGou != null)
                {
                    txt_Title.Value           = tuanGou.Title;
                    cityID                    = tuanGou.CityID;
                    hid_SiteID.Value          = tuanGou.SiteID.ToString();
                    ddl_Category.Value        = tuanGou.CategoryID.ToString();
                    txt_Description.Value     = tuanGou.Description;
                    txt_MarketPrice.Value     = tuanGou.MarketPrice.ToString();
                    txt_TuanPrice.Value       = tuanGou.TuanPrice.ToString();
                    txt_Rebate.Value          = tuanGou.Rebate.ToString();
                    txt_TotalCount.Value      = tuanGou.TotalCount.ToString();
                    txt_BuyCount.Value        = tuanGou.BuyCount.ToString();
                    txt_ClickCount.Value      = tuanGou.ClickCount.ToString();
                    txt_CommentCount.Value    = tuanGou.CommentCount.ToString();
                    txt_PointCount.Value      = tuanGou.PointCount.ToString();
                    txt_BeginTime.Value       = tuanGou.BeginTime.ToString();
                    txt_EndTime.Value         = tuanGou.EndTime.ToString();
                    txt_TuanUrl.Value         = tuanGou.TuanUrl;
                    txt_ImageThumbUrl.Value   = tuanGou.ImageThumbUrl;
                    txt_ImageUrl.Value        = tuanGou.ImageUrl;
                    txt_MerchantName.Value    = tuanGou.MerchantName;
                    txt_MerchantAddress.Value = tuanGou.MerchantAddress;
                    txt_MerchantPhone.Value   = tuanGou.MerchantPhone;
                    txt_Longitude.Value       = tuanGou.Longitude.ToString();
                    txt_Latitude.Value        = tuanGou.Latitude.ToString();
                    txt_Rank.Value            = tuanGou.Rank.ToString();
                    hid_Statu.Value           = tuanGou.Statu.ToString();
                    txt_OrderID.Value         = tuanGou.OrderID.ToString();
                }
            }
        }
예제 #4
0
 protected void Page_Load(object sender, EventArgs e)
 {
     Ajax.RegMethod(GetTuanGouList);
     Ajax.RegMethod(EditStatu);
     Ajax.RegMethod(DeleteTuanGou);
 }
예제 #5
0
 protected void Page_Load(object sender, EventArgs e)
 {
     Ajax.RegMethod(GetTuanSiteList);
     Ajax.RegMethod(DeleteTuanSite);
 }