This commit is contained in:
parent
59aca78048
commit
96160bec38
@ -263,18 +263,38 @@ namespace Volian.Controls.Library
|
||||
topStepItem = _MyRTB.MyStepItem.MyStepPanel._LookupStepItems[startitm.ItemID];
|
||||
while (startitm != null)
|
||||
{
|
||||
Content cnt = Content.Get(startitm.MyContent.ContentID);
|
||||
using (Content cnt = Content.Get(startitm.MyContent.ContentID))
|
||||
{
|
||||
cnt.Type = 20000 + fmtdata.StepDataList[_MyStepTypeInd[listBoxStepTypes.SelectedIndex]].Index;
|
||||
cnt.DTS = DateTime.Now;
|
||||
cnt.UserID = Volian.Base.Library.VlnSettings.UserID;
|
||||
cnt.Save();
|
||||
}
|
||||
using (Item itm = Item.Get(startitm.ItemID))
|
||||
{
|
||||
itm.DTS = DateTime.Now;
|
||||
itm.UserID = Volian.Base.Library.VlnSettings.UserID;
|
||||
itm.Save();
|
||||
}
|
||||
startitm = (startitm.NextItem != null && startitm.NextItems.Count > 0 ? startitm.NextItems[0] : null);
|
||||
}
|
||||
msgBox = string.Format("All Step Types at this level were changed to {0}", listBoxStepTypes.Items[listBoxStepTypes.SelectedIndex]);
|
||||
}
|
||||
else
|
||||
{
|
||||
Content cnt = Content.Get(_CurItemInfo.MyContent.ContentID);
|
||||
cnt.Type = 20000 + fmtdata.StepDataList[_MyStepTypeInd[listBoxStepTypes.SelectedIndex]].Index;
|
||||
cnt.Save();
|
||||
using (Content cnt1 = Content.Get(_CurItemInfo.MyContent.ContentID))
|
||||
{
|
||||
cnt1.Type = 20000 + fmtdata.StepDataList[_MyStepTypeInd[listBoxStepTypes.SelectedIndex]].Index;
|
||||
cnt1.DTS = DateTime.Now;
|
||||
cnt1.UserID = Volian.Base.Library.VlnSettings.UserID;
|
||||
cnt1.Save();
|
||||
}
|
||||
using (Item itm1 = Item.Get(_CurItemInfo.ItemID))
|
||||
{
|
||||
itm1.DTS = DateTime.Now;
|
||||
itm1.UserID = Volian.Base.Library.VlnSettings.UserID;
|
||||
itm1.Save();
|
||||
}
|
||||
msgBox = string.Format("This Step Type was changed to {0}", listBoxStepTypes.Items[listBoxStepTypes.SelectedIndex]);
|
||||
}
|
||||
topStepItem.SetAllTabs();
|
||||
@ -295,6 +315,12 @@ namespace Volian.Controls.Library
|
||||
{
|
||||
StepConfig sc = _CurItemInfo.MyConfig as StepConfig;
|
||||
sc.Step_CBOverride = "On";
|
||||
using (Content cnt = Content.Get(_CurItemInfo.MyContent.ContentID))
|
||||
{
|
||||
cnt.DTS = DateTime.Now;
|
||||
cnt.UserID = Volian.Base.Library.VlnSettings.UserID;
|
||||
cnt.Save();
|
||||
}
|
||||
}
|
||||
}
|
||||
private void rbChgBarOvrRideOff_CheckedChanged(object sender, EventArgs e)
|
||||
@ -307,6 +333,12 @@ namespace Volian.Controls.Library
|
||||
{
|
||||
StepConfig sc = _CurItemInfo.MyConfig as StepConfig;
|
||||
sc.Step_CBOverride = "Off";
|
||||
using (Content cnt = Content.Get(_CurItemInfo.MyContent.ContentID))
|
||||
{
|
||||
cnt.DTS = _CurItemInfo.MyProcedure.DTS;
|
||||
cnt.UserID = _CurItemInfo.MyProcedure.UserID;
|
||||
cnt.Save();
|
||||
}
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
|
Loading…
x
Reference in New Issue
Block a user