C2026-015 Set overall Changebar date when approving multi-unit
This commit is contained in:
@@ -1479,9 +1479,6 @@ namespace VEPROMS
|
||||
ProcedureConfig pc = procedureInfo.MyConfig as ProcedureConfig;
|
||||
if (pc == null) return;
|
||||
|
||||
//C2026-015 set overall change bar date
|
||||
pc.Print_ChangeBarDate = dts.ToString("MM/dd/yyyy HH:mm:ss");
|
||||
|
||||
pc.SelectedSlave = selectedSlave;
|
||||
pc.Print_Rev = revNumber;
|
||||
//AppRevDate Change
|
||||
@@ -1493,8 +1490,22 @@ namespace VEPROMS
|
||||
//itm.DTS = dts;
|
||||
itm.UserID = Volian.Base.Library.VlnSettings.UserID;
|
||||
itm.Save();
|
||||
}
|
||||
|
||||
//C2026-015 set overall change bar date
|
||||
if (selectedSlave > 0)
|
||||
{
|
||||
pc.SelectedSlave = 0;
|
||||
pc.Print_Rev = revNumber;
|
||||
pc.Print_RevDate = revDate.ToString("MM/dd/yyyy");
|
||||
pc.Print_ChangeBarDate = dts.ToString("MM/dd/yyyy HH:mm:ss"); //this is needed to set the changebar date for an indeividual unit also
|
||||
using (Item itm2 = Item.Get(procedureInfo.ItemID))
|
||||
{
|
||||
itm2.MyContent.Config = pc.ToString();
|
||||
itm2.UserID = Volian.Base.Library.VlnSettings.UserID;
|
||||
itm2.Save();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
public class RevType
|
||||
|
||||
Reference in New Issue
Block a user