Save File Last Write UTC as Document.DTS

Eliminate unused variables
Use settings for Format Load
Output status of Formats being loaded
Save File Last Write UTC as Document.DTS
added History_OriginalFileName to DocumentConfig
Use settings rather than local variables
Only use the first 12 characters of a ROID for DROUsage Lookup
This commit is contained in:
Rich
2012-01-24 19:57:09 +00:00
parent 83f9e1cc75
commit 3ba7971ece
8 changed files with 47 additions and 25 deletions

View File

@@ -85,6 +85,21 @@ namespace VEPROMS.CSLA.Library
OnPropertyChanged("Edit_Initialized");
}
}
[Category("History")]
[DisplayName("Original File Name")]
[Description("File Name from 16-Bit Data")]
public string History_OriginalFileName
{
get
{
return _Xp["History", "OriginalFileName"];
}
set
{
_Xp["History", "OriginalFileName"] = value;
OnPropertyChanged("History_OriginalFileName");
}
}
// RHM 20110415 - These are now stored in the PDF table.
//[Category("Printing")]
//[DisplayName("Length")]

View File

@@ -33,7 +33,6 @@ namespace VEPROMS.CSLA.Library
public class FormatEventArgs
{
private string _Status;
public string Status
{
get { return _Status; }
@@ -110,7 +109,8 @@ namespace VEPROMS.CSLA.Library
foreach (FileInfo sfi in sfis)
{
string nm = sfi.Name.Substring(0, sfi.Name.Length - 7);
Console.WriteLine("Processing {0}", sfi.Name);
OnFormatLoaded(null, new FormatEventArgs("Loading Format " + sfi.Name));
//Console.WriteLine("Processing {0}", sfi.Name);
//frmMain.Status = string.Format("Processing Format {0}", sfi.Name);
try
{
@@ -159,7 +159,7 @@ namespace VEPROMS.CSLA.Library
string genmacdata = null;
XmlDocument xd = null;
OnFormatLoaded(null, new FormatEventArgs("Loading "+format));
OnFormatLoaded(null, new FormatEventArgs("Loading Format "+format));
//string path = "c:\\development\\fmtall\\" + format + "all.xml";
string path = fmtPath + "\\" + format + "all.xml";
if (File.Exists(path))

View File

@@ -377,7 +377,7 @@ namespace VEPROMS.CSLA.Library
// roid's are stored in database as 16 characters long in the rousages table. They may be stored
// as 12 characters in the ro.fst.
string padroid = chg.Length <= 12 ? chg + "0000" : chg;
using (DROUsageInfoList affected = DROUsageInfoList.GetAffected(origROFstInfo.MyRODb.RODbID, padroid, desc, "Changed"))
using (DROUsageInfoList affected = DROUsageInfoList.GetAffected(origROFstInfo.MyRODb.RODbID, padroid.Substring(0,12), desc, "Changed"))
{
foreach (DROUsageInfo droUsg in affected)
{