Пример #1
0
 private void bindModel(int id)
 {
     model                     = bll.GetModel(id);
     txtSite.Text              = model.htmlurl.ToString();
     txtorder.Text             = model.orderid.ToString();
     txtTitle.Text             = model.title.Trim();
     ddlTypeName.SelectedValue = model.typeid.ToString();
     if (!string.IsNullOrEmpty(model.imgPath))
     {
         if (model.imgPath.Equals("http://www.topfo.com/dservice/image/photo.jpg"))
         {
             ViewState["flag"] = "true"; //默认图片
         }
         else
         {
             ViewState["strSaveName"] = model.imgPath;
         }
         Image1.ImageUrl = "http://wyzs.topfo.com/img/img" + model.imgPath;
         imageDis.Attributes.Add("style", "display:''");
     }
     else
     {
         ViewState["strSaveName"] = "http://www.topfo.com/dservice/image/photo.jpg";
         imageDis.Attributes.Add("style", "display:none");
     }
 }
Пример #2
0
 private void bindModel(int id)
 {
     model            = bll.GetModel(id);
     txtorder.Text    = model.orderid.ToString();
     txtTitle.Text    = model.title.Trim();
     txtContent.Value = model.descript;
 }
Пример #3
0
 private void bindModel(int id)
 {
     model                     = bll.GetModel(id);
     txtSite.Text              = model.htmlurl.ToString();
     txtorder.Text             = model.orderid.ToString();
     txtTitle.Text             = model.title.Trim();
     ddlPosition.SelectedValue = model.status.Trim();
 }
Пример #4
0
 private void bindModel(int id)
 {
     model                     = bll.GetModel(id);
     txtorder.Text             = model.orderid.ToString();
     txtTitle.Text             = model.title.Trim();
     txtContent.Value          = model.descript;
     ddlPosition.SelectedValue = model.status;
 }
Пример #5
0
 protected void btnAudit_Click(object sender, EventArgs e)
 {
     model         = bll.GetModel(int.Parse(Request.QueryString["id"].ToString()));
     model.htmlurl = txtSite.Text.Trim();
     model.orderid = Convert.ToInt32(txtorder.Text.ToString());
     model.title   = txtTitle.Text.Trim();
     model.status  = ddlPosition.SelectedItem.Value.ToString().Trim();
     // model.pageAddress = 2;
     if (!bll.Update(model))
     {
         Response.Write("<script>alert('修改失败!');document.location='ServiceManage.aspx'</script>");
     }
     else
     {
         Response.Redirect("ServiceManage.aspx");
     }
 }
Пример #6
0
 protected void btnAudit_Click(object sender, EventArgs e)
 {
     model         = bll.GetModel(int.Parse(Request.QueryString["id"].ToString()));
     model.htmlurl = txtSite.Text.Trim();
     model.orderid = Convert.ToInt32(txtorder.Text.ToString());
     model.title   = txtTitle.Text.Trim();
     model.typeid  = Convert.ToInt32(ddlTypeName.SelectedValue.ToString());
     model.imgPath = ViewState["strSaveName"].ToString();
     if (!bll.Update(model))
     {
         Response.Write("<script>alert('修改失败!');document.location='RecommManage.aspx'</script>");
     }
     else
     {
         Response.Redirect("RecommManage.aspx");
     }
 }
Пример #7
0
 protected void btnAudit_Click(object sender, EventArgs e)
 {
     model             = bll.GetModel(int.Parse(Request.QueryString["id"].ToString()));
     model.htmlurl     = txtSite.Text.Trim();
     model.orderid     = Convert.ToInt32(txtorder.Text.ToString());
     model.title       = txtTitle.Text.Trim();
     model.typeid      = Convert.ToInt32(ddlTypeName.SelectedValue.ToString());
     model.type        = txtType.Text.Trim();
     model.pageAddress = rdochannel.Checked == true ? 0 : 1;
     if (!bll.Update(model))
     {
         Response.Write("<script>alert('修改失败!');document.location='WyzsManage.aspx'</script>");
     }
     else
     {
         Response.Redirect("WyzsManage.aspx");
     }
 }
Пример #8
0
 private void bindModel(int id)
 {
     model = bll.GetModel(id);
     if (model.pageAddress == 0)//频道
     {
         rdochannel.Checked = true;
         Page.ClientScript.RegisterStartupScript(this.GetType(), "myKey", " ConAudit(0);", true);
     }
     else//配套服务  1
     {
         rdoService.Checked = true;
         Page.ClientScript.RegisterStartupScript(this.GetType(), "myKey", " ConAudit(1);", true);
     }
     txtSite.Text              = model.htmlurl.ToString();
     txtorder.Text             = model.orderid.ToString();
     txtTitle.Text             = model.title.Trim();
     ddlTypeName.SelectedValue = model.typeid.ToString();
     txtType.Text              = model.type.Trim();
 }
Пример #9
0
 protected void btnAudit_Click(object sender, EventArgs e)
 {
     model          = bll.GetModel(int.Parse(Request.QueryString["id"].ToString()));
     model.orderid  = Convert.ToInt32(txtorder.Text.ToString());
     model.title    = txtTitle.Text.Trim();
     model.descript = txtContent.Value.ToString();
     model.htmlurl  = "details_" + model.id.ToString() + ".html";
     //model.pageAddress = rdochannel.Checked == true ? 0 : 1;
     if (!bll.Update(model))
     {
         Response.Write("<script>alert('修改失败!');document.location='contractManage.aspx'</script>");
     }
     else
     {
         com.topfo.wyzs.GenerateStatic gen = new com.topfo.wyzs.GenerateStatic();
         gen.GenerateContract(model.id);
         Response.Redirect("contractManage.aspx");
     }
 }