Modified getRevisionsByItemIDandUnitID and getRevisionsByItemID stored procedures
Add changes to Byron/Braidwood formats
This commit is contained in:
parent
b5b44d14b2
commit
a99d33e065
@ -5336,6 +5336,7 @@ AS
|
|||||||
cross apply config.nodes('//Applicability') t1(r1)
|
cross apply config.nodes('//Applicability') t1(r1)
|
||||||
WHERE [ItemID] = @ItemID
|
WHERE [ItemID] = @ItemID
|
||||||
and r1.value('@Index','int') = @UnitID
|
and r1.value('@Index','int') = @UnitID
|
||||||
|
and (SELECT COUNT(*) FROM [Versions] WHERE [Versions].[RevisionID]=[Revisions].[RevisionID]) > 0
|
||||||
ORDER BY [RevisionID] DESC
|
ORDER BY [RevisionID] DESC
|
||||||
RETURN
|
RETURN
|
||||||
GO
|
GO
|
||||||
@ -8414,3 +8415,42 @@ GO
|
|||||||
IF (@@Error = 0) PRINT 'Procedure Creation: vesp_ResetSecurity Succeeded'
|
IF (@@Error = 0) PRINT 'Procedure Creation: vesp_ResetSecurity Succeeded'
|
||||||
ELSE PRINT 'Procedure Creation: vesp_ResetSecurity Error on Creation'
|
ELSE PRINT 'Procedure Creation: vesp_ResetSecurity Error on Creation'
|
||||||
GO
|
GO
|
||||||
|
|
||||||
|
/****** Object: StoredProcedure [getRevisionsByItemID] ******/
|
||||||
|
IF EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[getRevisionsByItemID]') AND OBJECTPROPERTY(id,N'IsProcedure') = 1)
|
||||||
|
DROP PROCEDURE [getRevisionsByItemID];
|
||||||
|
GO
|
||||||
|
|
||||||
|
/*****************************************************************************
|
||||||
|
Volian Enterprises - Proprietary Information - DO NOT COPY OR DISTRIBUTE
|
||||||
|
Copyright 2012 - Volian Enterprises, Inc. All rights reserved.
|
||||||
|
*****************************************************************************/
|
||||||
|
CREATE PROCEDURE [dbo].[getRevisionsByItemID]
|
||||||
|
(
|
||||||
|
@ItemID int
|
||||||
|
)
|
||||||
|
WITH EXECUTE AS OWNER
|
||||||
|
AS
|
||||||
|
SELECT
|
||||||
|
[RevisionID],
|
||||||
|
[ItemID],
|
||||||
|
[TypeID],
|
||||||
|
[RevisionNumber],
|
||||||
|
[RevisionDate],
|
||||||
|
[Notes],
|
||||||
|
[Config],
|
||||||
|
[DTS],
|
||||||
|
[UserID],
|
||||||
|
[LastChanged],
|
||||||
|
(SELECT COUNT(*) FROM [Checks] WHERE [Checks].[RevisionID]=[Revisions].[RevisionID]) [CheckCount],
|
||||||
|
(SELECT COUNT(*) FROM [Versions] WHERE [Versions].[RevisionID]=[Revisions].[RevisionID]) [VersionCount]
|
||||||
|
FROM [Revisions]
|
||||||
|
WHERE [ItemID] = @ItemID
|
||||||
|
and (SELECT COUNT(*) FROM [Versions] WHERE [Versions].[RevisionID]=[Revisions].[RevisionID]) > 0
|
||||||
|
ORDER BY [RevisionID] DESC
|
||||||
|
RETURN
|
||||||
|
GO
|
||||||
|
-- Display the status of Proc creation
|
||||||
|
IF (@@Error = 0) PRINT 'Procedure Creation: getRevisionsByItemID Succeeded'
|
||||||
|
ELSE PRINT 'Procedure Creation: getRevisionsByItemID Error on Creation'
|
||||||
|
GO
|
||||||
|
@ -24,10 +24,10 @@ namespace fmtxml
|
|||||||
fmtdata.BoxData[1].End = 420F;
|
fmtdata.BoxData[1].End = 420F;
|
||||||
fmtdata.BoxData[1].TxtStart = 151F;
|
fmtdata.BoxData[1].TxtStart = 151F;
|
||||||
fmtdata.BoxData[1].TxtWidth = 254F;
|
fmtdata.BoxData[1].TxtWidth = 254F;
|
||||||
fmtdata.SectData.StepSectionData.StpSectLayData.RNOWidthAdj = "-13";
|
fmtdata.SectData.StepSectionData.StpSectLayData.RNOWidthAlt = "212,212";
|
||||||
|
fmtdata.SectData.StepSectionData.StpSectLayData.RNOWidthAdj = "-40";
|
||||||
fmtdata.StepData[6].StepLayoutData.EveryNLines = "-99";
|
fmtdata.StepData[6].StepLayoutData.EveryNLines = "-99";
|
||||||
fmtdata.StepData[7].StepLayoutData.EveryNLines = "-99";
|
fmtdata.StepData[7].StepLayoutData.EveryNLines = "-99";
|
||||||
fmtdata.StepData[40].WidthOverride = "192";
|
|
||||||
}
|
}
|
||||||
private void AddCWE00fmt(ref FormatData fmtdata)
|
private void AddCWE00fmt(ref FormatData fmtdata)
|
||||||
{
|
{
|
||||||
@ -62,6 +62,9 @@ namespace fmtxml
|
|||||||
private void AddEXCLN01fmt(ref FormatData fmtdata)
|
private void AddEXCLN01fmt(ref FormatData fmtdata)
|
||||||
{
|
{
|
||||||
fmtdata.SectData.StepSectionData.StpSectLayData.WidSTablePrint = "489,229.2,144";
|
fmtdata.SectData.StepSectionData.StpSectLayData.WidSTablePrint = "489,229.2,144";
|
||||||
|
fmtdata.SectData.StepSectionData.StpSectLayData.BoxLeftAdj = "-43.2";
|
||||||
|
fmtdata.StepData[6].StepLayoutData.EveryNLines = "-99";
|
||||||
|
fmtdata.StepData[7].StepLayoutData.EveryNLines = "-99";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
public partial class FmtToXml
|
public partial class FmtToXml
|
||||||
@ -85,8 +88,8 @@ namespace fmtxml
|
|||||||
private void AddCWEDoc(ref DocStyles dcstyles)
|
private void AddCWEDoc(ref DocStyles dcstyles)
|
||||||
{
|
{
|
||||||
dcstyles.DcStyles[0].PageWidth = 580.2F;
|
dcstyles.DcStyles[0].PageWidth = 580.2F;
|
||||||
dcstyles.DcStyles[1].LeftMargin = 43.2F;
|
dcstyles.DcStyles[1].LeftMargin = 48F;
|
||||||
dcstyles.DcStyles[1].PageWidth = 572.2F;
|
dcstyles.DcStyles[1].PageWidth = 579.2F;
|
||||||
}
|
}
|
||||||
private void AddEXEDEVDoc(ref DocStyles dcstyles)
|
private void AddEXEDEVDoc(ref DocStyles dcstyles)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user