public void SaveRoadInfoData() { try { Hashtable hs = new Hashtable(); hs.Add("ID", txtRoadSegId.Text); hs.Add("DLBH", cmbRoadInfo.Value.ToString()); hs.Add("LDMC", txtRoadSegName.Text); hs.Add("LDFX", cmbDirection.Value.ToString()); if (SaveFlag.Value.ToString() == "Add") { listxyz = GetPointXY(CheckData.Value.ToString()); if (roadManager.AddRoadSeg(hs)) { if (roadManager.UpdateXyz(listxyz, txtRoadSegId.Text)) { Notice("信息提示", "保存成功!"); win.Hide(); QueryShow(); } } } else { if (roadManager.UpdateRoadSeg(hs)) { Notice("信息提示", "修改成功!"); win.Hide(); QueryShow(); } } } catch (Exception ex) { logManager.InsertLogError("GisRoadLinkBrowse.aspx-SaveRoadInfoData", ex.Message + ";" + ex.StackTrace, "SaveRoadInfoData has an exception"); } }