/// <summary>
        /// 创建河道默认使用参数
        /// </summary>
        /// <returns></returns>
        public static int InsertHSCCRivlParam(int ldid, int ccid)
        {
            int result = -1;

            if (ldid != 0)
            {
                try
                {
                    string sql_del = "delete from R_KinematicWave_Trials where RatingID='" + ldid + "';delete from R_Muskingum_Trials where RatingID='" + ldid + "';delete from R_Lag_Trials where RatingID='" + ldid + "';";
                    PublicDAL.ExecuteSql(sql_del);

                    result = InsertRivParamlData(ldid, ccid, result);
                }

                catch (Exception ex)
                {
                    throw ex;
                }
                finally
                {
                    PublicDAL.RollbackTransaction();
                }
            }
            return(result);
        }
        public static int UpdateLDCC(HSJSLD hsld)
        {
            int result = 0;

            try
            {
                string sql = "update HSJSLD set name='" + hsld.Name + "',hscc='" + hsld.HSCC + "',starttime='" + hsld.StartTime + "',endtime='" + hsld.EndTime + "',AllowError='" + hsld.AllowError + "',MaxIteration='" + hsld.MaxIteration + "',timeinterval='" + hsld.TimeInterval + "',ylinterval='" + hsld.YLInterval + "',llinterval='" + hsld.LLInterval + "',localtion='" + hsld.Localtion + "' where id=" + hsld.ID + "";

                result = PublicDAL.ExecuteSql(sql);
            }
            catch (Exception ex)
            {
                throw ex;
            }
            finally
            {
                PublicDAL.RollbackTransaction();
            }

            return(result);
        }