protected void Page_Load(object sender, EventArgs e)
 {
     type   = MyCommFun.QueryString("type");
     shopid = MyCommFun.RequestInt("shopid");
     ids    = MyCommFun.RequestInt("id");
     if (!Page.IsPostBack)
     {
         //categoryName绑定
         BindCaiPingType();
         if (type == "edite")
         {
             manage           = managebll.GetModel(ids);
             this.cpName.Text = manage.cpName;
             this.number.Text = manage.number;
             this.dllCategoryName.SelectedValue = manage.categoryid.ToString();
             this.cpPrice.Text               = manage.cpPrice.ToString();
             this.zkPrice.Text               = manage.zkPrice.ToString();
             this.priceUnite.Text            = manage.priceUnite;
             this.cpPic.Text                 = manage.cpPic;
             this.picUrl.Text                = manage.picUrl;
             this.detailContent.InnerText    = manage.detailContent;
             this.instructions.InnerText     = manage.instructions;
             this.shopIntroduction.InnerText = manage.shopIntroduction;
             this.sortid.Text                = manage.sortid.ToString();
             this.chargeback.InnerText       = manage.chargeback;
             if (manage.beginDate != null)
             {
                 this.txtbeginDate.Text = manage.beginDate.Value.ToString("yyyy-MM-dd HH:mm:ss");
             }
             if (manage.endDate != null)
             {
                 this.txtendDate.Text = manage.endDate.Value.ToString("yyyy-MM-dd HH:mm:ss");
             }
         }
     }
 }
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!Page.IsPostBack)
     {
         type   = MyCommFun.QueryString("type");
         shopid = MyCommFun.RequestInt("shopid");
         ids    = MyCommFun.RequestInt("id");
         //categoryName绑定
         BindCaiPingType();
         if (type == "edite")
         {
             manage           = managebll.GetModel(ids);
             this.cpName.Text = manage.cpName;
             this.dllCategoryName.SelectedItem.Text = manage.categoryName;
             this.cpPrice.Text            = manage.cpPrice.ToString();
             this.zkPrice.Text            = manage.zkPrice.ToString();
             this.priceUnite.Text         = manage.priceUnite;
             this.cpPic.Text              = manage.cpPic;
             this.picUrl.Text             = manage.picUrl;
             this.detailContent.InnerText = manage.detailContent;
         }
     }
 }