You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
42 lines
1.4 KiB
42 lines
1.4 KiB
using System;
|
|
using System.Collections.Generic;
|
|
using System.Data;
|
|
using System.Drawing;
|
|
using System.IO;
|
|
using System.Linq;
|
|
using System.Reflection;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
using System.Windows.Forms;
|
|
using System.Xml.Linq;
|
|
using Newtonsoft.Json;
|
|
using Report.Entity;
|
|
|
|
namespace ReportLibrary
|
|
{
|
|
public class ReportComm
|
|
{
|
|
|
|
private static string BuildBarCodeDirectroy(string guid, bool isDate)
|
|
{
|
|
string strDir = System.Environment.GetFolderPath(System.Environment.SpecialFolder.MyDocuments) + "\\ShenTun\\BarCode";
|
|
if (!Directory.Exists(strDir)) Directory.CreateDirectory(strDir);
|
|
if (isDate)
|
|
{
|
|
DateTime dt= DateTime.Now;
|
|
string yyyy = dt.ToString("yyyy");
|
|
string mm = dt.ToString("MM");
|
|
string dd = dt.ToString("dd");
|
|
strDir += string.Format("\\{0}", yyyy);
|
|
if (!Directory.Exists(strDir)) Directory.CreateDirectory(strDir);
|
|
strDir += string.Format("\\{0}", mm);
|
|
if (!Directory.Exists(strDir)) Directory.CreateDirectory(strDir);
|
|
strDir += string.Format("\\{0}", dd);
|
|
if (!Directory.Exists(strDir)) Directory.CreateDirectory(strDir);
|
|
}
|
|
strDir += string.Format("\\{0}", guid);
|
|
if (!Directory.Exists(strDir)) Directory.CreateDirectory(strDir);
|
|
return strDir;
|
|
}
|
|
}
|
|
}
|