diff --git a/FrmValiData.cs b/FrmValiData.cs
index 97942be..5363ee2 100644
--- a/FrmValiData.cs
+++ b/FrmValiData.cs
@@ -3,6 +3,7 @@
using System.Windows.Forms;
using DevComponents.DotNetBar;
using GeoScene.Globe;
+using ZedGraph;
namespace Cyberpipe
{
@@ -50,12 +51,15 @@
/// 验证按钮事件处理
///
///
- ///
+ /// s
private void btnVali_Click(object sender, EventArgs e)
{
- DateTime dt=DateTime.Now;
- string logFilePath = Application.StartupPath + "\\log\\" + dt.Year + "\\" + dt.Year + dt.Month + "\\" + dt.Year +
- dt.Month + dt.Day + ".txt";
+ String dt = DateTime.Now.ToString("yyyy-MM-dd");
+ String Year = dt.Split('-')[0];
+ String Month = dt.Split('-')[1];
+ String Day = dt.Split('-')[2];
+ string logFilePath = Application.StartupPath + "\\log\\error\\" + Year + "\\" + Year + Month + "\\" + Year +"-"+
+ Month + "-" + Day + ".log";
GSOLayer layer = ctl.Globe.Layers.GetLayerByCaption(Path.GetFileNameWithoutExtension(
cmbShps.Text));
if (layer == null) return;