/// <summary> /// 执行SQL语句 /// </summary> /// <param name="p_Sql"></param> /// <param name="obj"></param> private void PicExecuteNonQuery(string p_Sql, object[,] obj) { switch (UCDBConnIndex) { case 1: SysUtils.ExecuteNonQuery(p_Sql, obj); break; case 2: SysUtilsSecond.ExecuteNonQuery(p_Sql, obj); break; case 3: SysUtilsThird.ExecuteNonQuery(p_Sql, obj); break; case 4: SysUtilsFourth.ExecuteNonQuery(p_Sql, obj); break; } }
/// <summary> /// 删除文件 /// </summary> /// <param name="o_FileID">文件ID</param> public static void DeleteFile(int o_FileID) { string sql = "DELETE FROM Pro_TecFile WHERE ID=" + o_FileID; SysUtilsSecond.ExecuteNonQuery(sql); }