protected void btnSave_Click(object sender, EventArgs e) { try { PolicyHarmonyInfo Harmony = GetVaule(); if (Request.QueryString["id"] != null) { Harmony.Id = Guid.Parse(Request.QueryString["id"]); } if (Harmony != null) { try { PolicyManageService.SetPolicyHarmony(Harmony); if (Harmony.Id == Guid.Empty) { RegisterScript("alert('添加成功');window.location.href='./policy_coordination_manage.aspx'", true); } else { RegisterScript("alert('修改成功');window.location.href='./policy_coordination_manage.aspx'", true); } } catch (Exception ex) { ShowExceptionMessage(ex, "政策协调添加/修改"); } } } catch (Exception ex) { ShowExceptionMessage(ex, "政策协调修改/添加"); } }