|
|
|
@@ -1259,7 +1259,12 @@ namespace VEPROMS.CSLA.Library
|
|
|
|
|
}
|
|
|
|
|
public string DisplayNumber
|
|
|
|
|
{
|
|
|
|
|
get { return ConvertToDisplayText(MyContent.Number); }
|
|
|
|
|
get
|
|
|
|
|
{
|
|
|
|
|
string str = (this.IsProcedure)?MyDocVersion.UnitSpecific(MyContent.Number,0):MyContent.Number;
|
|
|
|
|
return ConvertToDisplayText(str);
|
|
|
|
|
}
|
|
|
|
|
//get { return ConvertToDisplayText(MyContent.Number); }
|
|
|
|
|
}
|
|
|
|
|
public static string ConvertToDisplayText(string txt)
|
|
|
|
|
{
|
|
|
|
@@ -1992,6 +1997,8 @@ namespace VEPROMS.CSLA.Library
|
|
|
|
|
protected void SetTabText()
|
|
|
|
|
{
|
|
|
|
|
string cltext = null;
|
|
|
|
|
if (IsAnd)
|
|
|
|
|
Console.WriteLine("and substep");
|
|
|
|
|
if (IsParagraph)
|
|
|
|
|
{
|
|
|
|
|
_MyTab.Text = "";
|
|
|
|
@@ -2627,11 +2634,11 @@ namespace VEPROMS.CSLA.Library
|
|
|
|
|
IsReadOnly = true;
|
|
|
|
|
}
|
|
|
|
|
#region Text Search
|
|
|
|
|
public static ItemInfoList GetListFromTextSearch(string docVersionList, string stepTypeList, string searchString, int caseSensitive, ItemSearchIncludeLinks includeLinks, bool includeRtfFormatting, bool includeSpecialCharacters)
|
|
|
|
|
public static ItemInfoList GetListFromTextSearch(string docVersionList, string stepTypeList, string searchString, int caseSensitive, ItemSearchIncludeLinks includeLinks, bool includeRtfFormatting, bool includeSpecialCharacters, string unitPrefix)
|
|
|
|
|
{
|
|
|
|
|
try
|
|
|
|
|
{
|
|
|
|
|
ItemInfoList tmp = DataPortal.Fetch<ItemInfoList>(new ItemListSearchCriteria(docVersionList, stepTypeList, searchString, caseSensitive, includeLinks, includeRtfFormatting, includeSpecialCharacters));
|
|
|
|
|
ItemInfoList tmp = DataPortal.Fetch<ItemInfoList>(new ItemListSearchCriteria(docVersionList, stepTypeList, searchString, caseSensitive, includeLinks, includeRtfFormatting, includeSpecialCharacters,unitPrefix));
|
|
|
|
|
ItemInfo.AddList(tmp);
|
|
|
|
|
tmp.AddEvents();
|
|
|
|
|
return tmp;
|
|
|
|
@@ -2686,8 +2693,15 @@ namespace VEPROMS.CSLA.Library
|
|
|
|
|
get { return _IncludeSpecialCharacters; }
|
|
|
|
|
set { _IncludeSpecialCharacters = value; }
|
|
|
|
|
}
|
|
|
|
|
private string _UnitPrefix;
|
|
|
|
|
|
|
|
|
|
public string UnitPrefix
|
|
|
|
|
{
|
|
|
|
|
get { return _UnitPrefix; }
|
|
|
|
|
set { _UnitPrefix = value; }
|
|
|
|
|
}
|
|
|
|
|
public ItemListSearchCriteria(string docVersionList, string stepTypeList, string searchString,
|
|
|
|
|
int caseSensitive, ItemSearchIncludeLinks includeLinks, bool includeRtfFormatting, bool includeSpecialCharacters)
|
|
|
|
|
int caseSensitive, ItemSearchIncludeLinks includeLinks, bool includeRtfFormatting, bool includeSpecialCharacters, string unitPrefix)
|
|
|
|
|
{
|
|
|
|
|
_DocVersionList = docVersionList;
|
|
|
|
|
_StepTypeList = stepTypeList;
|
|
|
|
@@ -2696,6 +2710,7 @@ namespace VEPROMS.CSLA.Library
|
|
|
|
|
_IncludeLinks = includeLinks;
|
|
|
|
|
_IncludeRtfFormatting = includeRtfFormatting;
|
|
|
|
|
_IncludeSpecialCharacters = includeSpecialCharacters;
|
|
|
|
|
_UnitPrefix = unitPrefix;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
private void DataPortal_Fetch(ItemListSearchCriteria criteria)
|
|
|
|
@@ -2716,6 +2731,7 @@ namespace VEPROMS.CSLA.Library
|
|
|
|
|
cm.Parameters.AddWithValue("@IncludeLinks", (int) criteria.IncludeLinks);
|
|
|
|
|
cm.Parameters.AddWithValue("@IncludeRtfFormatting", criteria.IncludeRtfFormatting ? 1 : 0);
|
|
|
|
|
cm.Parameters.AddWithValue("@IncludeSpecialCharacters", criteria.IncludeSpecialCharacters ? 1 : 0);
|
|
|
|
|
cm.Parameters.AddWithValue("@UnitPrefix", criteria.UnitPrefix);
|
|
|
|
|
cm.CommandTimeout = 120;
|
|
|
|
|
using (SafeDataReader dr = new SafeDataReader(cm.ExecuteReader()))
|
|
|
|
|
{
|
|
|
|
@@ -2755,11 +2771,11 @@ namespace VEPROMS.CSLA.Library
|
|
|
|
|
}
|
|
|
|
|
#endregion
|
|
|
|
|
#region RO Search
|
|
|
|
|
public static ItemInfoList GetListFromROSearch(string docVersionList, string stepTypeList, string roSearchString)
|
|
|
|
|
public static ItemInfoList GetListFromROSearch(string docVersionList, string stepTypeList, string roSearchString, string unitPrefix)
|
|
|
|
|
{
|
|
|
|
|
try
|
|
|
|
|
{
|
|
|
|
|
ItemInfoList tmp = DataPortal.Fetch<ItemInfoList>(new ItemListROSearchCriteria(docVersionList, stepTypeList, roSearchString));
|
|
|
|
|
ItemInfoList tmp = DataPortal.Fetch<ItemInfoList>(new ItemListROSearchCriteria(docVersionList, stepTypeList, roSearchString, unitPrefix));
|
|
|
|
|
ItemInfo.AddList(tmp);
|
|
|
|
|
tmp.AddEvents();
|
|
|
|
|
return tmp;
|
|
|
|
@@ -2790,11 +2806,18 @@ namespace VEPROMS.CSLA.Library
|
|
|
|
|
get { return _ROSearchString; }
|
|
|
|
|
set { _ROSearchString = value; }
|
|
|
|
|
}
|
|
|
|
|
public ItemListROSearchCriteria(string docVersionList, string stepTypeList, string roSearchString)
|
|
|
|
|
private string _UnitPrefix;
|
|
|
|
|
public string UnitPrefix
|
|
|
|
|
{
|
|
|
|
|
get { return _UnitPrefix; }
|
|
|
|
|
set { _UnitPrefix = value; }
|
|
|
|
|
}
|
|
|
|
|
public ItemListROSearchCriteria(string docVersionList, string stepTypeList, string roSearchString, string unitPrefix)
|
|
|
|
|
{
|
|
|
|
|
_DocVersionList = docVersionList;
|
|
|
|
|
_StepTypeList = stepTypeList;
|
|
|
|
|
_ROSearchString = roSearchString;
|
|
|
|
|
_UnitPrefix = unitPrefix;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
private void DataPortal_Fetch(ItemListROSearchCriteria criteria)
|
|
|
|
@@ -2811,6 +2834,7 @@ namespace VEPROMS.CSLA.Library
|
|
|
|
|
cm.Parameters.AddWithValue("@DocVersionList", criteria.DocVersionList);
|
|
|
|
|
cm.Parameters.AddWithValue("@StepTypeList", criteria.StepTypeList);
|
|
|
|
|
cm.Parameters.AddWithValue("@ROSearchString", criteria.ROSearchString);
|
|
|
|
|
cm.Parameters.AddWithValue("@UnitPrefix", criteria.UnitPrefix);
|
|
|
|
|
using (SafeDataReader dr = new SafeDataReader(cm.ExecuteReader()))
|
|
|
|
|
{
|
|
|
|
|
while (dr.Read())
|
|
|
|
@@ -2849,11 +2873,11 @@ namespace VEPROMS.CSLA.Library
|
|
|
|
|
}
|
|
|
|
|
#endregion
|
|
|
|
|
#region Annotation Search
|
|
|
|
|
public static ItemInfoList GetListFromAnnotationSearch(string docVersionList, string stepTypeList, string annotationTypeList, string searchString, bool caseSensitive)
|
|
|
|
|
public static ItemInfoList GetListFromAnnotationSearch(string docVersionList, string stepTypeList, string annotationTypeList, string searchString, bool caseSensitive, string unitPrefix)
|
|
|
|
|
{
|
|
|
|
|
try
|
|
|
|
|
{
|
|
|
|
|
ItemInfoList tmp = DataPortal.Fetch<ItemInfoList>(new ItemListAnnotationSearchCriteria(docVersionList, stepTypeList, annotationTypeList, searchString, caseSensitive));
|
|
|
|
|
ItemInfoList tmp = DataPortal.Fetch<ItemInfoList>(new ItemListAnnotationSearchCriteria(docVersionList, stepTypeList, annotationTypeList, searchString, caseSensitive, unitPrefix));
|
|
|
|
|
ItemInfo.AddList(tmp);
|
|
|
|
|
tmp.AddEvents();
|
|
|
|
|
return tmp;
|
|
|
|
@@ -2896,13 +2920,21 @@ namespace VEPROMS.CSLA.Library
|
|
|
|
|
get { return _CaseSensitive; }
|
|
|
|
|
set { _CaseSensitive = value; }
|
|
|
|
|
}
|
|
|
|
|
public ItemListAnnotationSearchCriteria(string docVersionList, string stepTypeList, string annotationTypeList, string searchString, bool caseSensitive)
|
|
|
|
|
private string _UnitPrefix;
|
|
|
|
|
public string UnitPrefix
|
|
|
|
|
{
|
|
|
|
|
get { return _UnitPrefix; }
|
|
|
|
|
set { _UnitPrefix = value; }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public ItemListAnnotationSearchCriteria(string docVersionList, string stepTypeList, string annotationTypeList, string searchString, bool caseSensitive, string unitPrefix)
|
|
|
|
|
{
|
|
|
|
|
_DocVersionList = docVersionList;
|
|
|
|
|
_StepTypeList = stepTypeList;
|
|
|
|
|
_AnnotationTypeList = annotationTypeList;
|
|
|
|
|
_SearchString = searchString;
|
|
|
|
|
_CaseSensitive = caseSensitive;
|
|
|
|
|
_UnitPrefix = unitPrefix;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
private void DataPortal_Fetch(ItemListAnnotationSearchCriteria criteria)
|
|
|
|
@@ -2921,6 +2953,7 @@ namespace VEPROMS.CSLA.Library
|
|
|
|
|
cm.Parameters.AddWithValue("@AnnotationTypeList", criteria.AnnotationTypeList);
|
|
|
|
|
cm.Parameters.AddWithValue("@SearchString", criteria.SearchString);
|
|
|
|
|
cm.Parameters.AddWithValue("@CaseSensitive", criteria.CaseSensitive ? 1 : 0);
|
|
|
|
|
cm.Parameters.AddWithValue("@UnitPrefix", criteria.UnitPrefix);
|
|
|
|
|
using (SafeDataReader dr = new SafeDataReader(cm.ExecuteReader()))
|
|
|
|
|
{
|
|
|
|
|
while (dr.Read())
|
|
|
|
|