public string SaveSingleProjectPoint(string singleProjectID, string orderIndex, string pointID, string x, string y) { string flag = SystemSet._RETURN_SUCCESS_VALUE; try { T_SingleProject_Point_MDL pointMDL = new T_SingleProject_Point_MDL(); if (ConvertEx.ToInt(pointID) > 0) { pointMDL = pointBLL.GetModel(ConvertEx.ToInt(pointID)); } pointMDL.SingleProjectID = ConvertEx.ToInt(singleProjectID); pointMDL.X = x; pointMDL.Y = y; pointMDL.OrderIndex = ConvertEx.ToInt(orderIndex); if (ConvertEx.ToInt(pointID) > 0) { pointBLL.Update(pointMDL); PublicModel.writeLog(SystemSet.EumLogType.UpdData.ToString(), string.Concat("T_SingleProject_Point;key=", pointMDL.PointID, ";SingleProjectID=", pointMDL.SingleProjectID, ";修改工程坐标")); } else { int tpPointID = pointBLL.Add(pointMDL); PublicModel.writeLog(SystemSet.EumLogType.AddData.ToString(), string.Concat("T_SingleProject_Point;key=", tpPointID, ";SingleProjectID=", pointMDL.SingleProjectID, ";新增工程坐标")); } } catch (Exception ex) { flag = SystemSet._RETURN_FAILURE_VALUE + ex.Message; Common.LogUtil.Debug(this, "保存工程坐标", ex); } return(flag); }
public string DeleteSingleProjectPoint(int pointID) { string flag = SystemSet._RETURN_SUCCESS_VALUE; try { T_SingleProject_Point_MDL pointMDL = pointBLL.GetModel(pointID); if (pointMDL != null) { PublicModel.writeLog(SystemSet.EumLogType.DelData.ToString(), string.Concat("T_SingleProject_Point;key=", pointMDL.PointID, ";SingleProjectID=", pointMDL.SingleProjectID, ";删除工程坐标")); pointBLL.Delete(pointID); } } catch (Exception ex) { flag = SystemSet._RETURN_FAILURE_VALUE + ex.Message; Common.LogUtil.Debug(this, "删除工程坐标", ex); } return(flag); }