|
|
@@ -16,6 +16,31 @@ namespace ShopMobile.Admin
|
|
16
|
16
|
if (!IsPostBack)
|
|
17
|
17
|
{
|
|
18
|
18
|
ViewState["back"] = Request.UrlReferrer.ToString();
|
|
|
19
|
+ string strid = Request.QueryString["ID"] ?? "";
|
|
|
20
|
+ if (strid != "")
|
|
|
21
|
+ {
|
|
|
22
|
+ int id = 0;
|
|
|
23
|
+ if (!Int32.TryParse(strid, out id))
|
|
|
24
|
+ {
|
|
|
25
|
+ Common.MessageBox.ShowAndRedirect(this, "修改失败", Request.UrlReferrer.ToString());
|
|
|
26
|
+ return;
|
|
|
27
|
+ }
|
|
|
28
|
+ else
|
|
|
29
|
+ {
|
|
|
30
|
+ Model.PT_Pic_ImgUrl pro = new Bll.PT_Pic_ImgUrl().GetModel(id);
|
|
|
31
|
+ if (pro != null)
|
|
|
32
|
+ {
|
|
|
33
|
+ txtPicSort.Value = pro.PicSort.ToString();
|
|
|
34
|
+
|
|
|
35
|
+ spzt.Value = pro.PicUrl;
|
|
|
36
|
+ ImgUrl.Value = pro.ImgUrl;
|
|
|
37
|
+ }
|
|
|
38
|
+ else
|
|
|
39
|
+ {
|
|
|
40
|
+ Common.MessageBox.Show(this, "修改失败");
|
|
|
41
|
+ }
|
|
|
42
|
+ }
|
|
|
43
|
+ }
|
|
19
|
44
|
}
|
|
20
|
45
|
}
|
|
21
|
46
|
protected void submitButton_Click(object sender, EventArgs e)
|