This commit is contained in:
@@ -687,6 +687,341 @@ namespace VEPROMS.CSLA.Library
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
#region Unit // From PROC.INI
|
||||
[Category("Unit")]
|
||||
[DisplayName("Unit Number")]
|
||||
[RefreshProperties(RefreshProperties.All)]
|
||||
[Description("Assigned Unit Number")]
|
||||
public string Unit_Number
|
||||
{
|
||||
get
|
||||
{
|
||||
string s = _Xp["Unit", "Number"];// get the saved value
|
||||
|
||||
//If there is no value to get, then get the parent value (a.k.a. default value).
|
||||
if (s == string.Empty)
|
||||
s = _Xp.ParentValue("Unit", "Number"); // get the parent value
|
||||
// If there is no parent value, then use the volian default
|
||||
if (s == string.Empty)
|
||||
return s = "";// default to volian default
|
||||
|
||||
return s;
|
||||
}
|
||||
set
|
||||
{
|
||||
// if value being saved is same as the parent value, then clear the value (save blank). This will
|
||||
// reset the data to use the parent value.
|
||||
|
||||
string parval = _Xp.ParentValue("Unit", "Number"); // get the parent value
|
||||
|
||||
if (parval.Equals(string.Empty)) // if the parent value is empty, then use the volian default
|
||||
parval = "";
|
||||
|
||||
if (parval.Equals(value))
|
||||
_Xp["Unit", "Number"] = string.Empty; // reset to parent value
|
||||
else
|
||||
_Xp["Unit", "Number"] = value; // save selected value
|
||||
|
||||
OnPropertyChanged("Unit_Number");
|
||||
}
|
||||
}
|
||||
[Category("Unit")]
|
||||
[DisplayName("Other Unit Number")]
|
||||
[RefreshProperties(RefreshProperties.All)]
|
||||
[Description("Assigned Other Unit Number")]
|
||||
public string Other_Unit_Number
|
||||
{
|
||||
get
|
||||
{
|
||||
string s = _Xp["Unit", "OtherNumber"];// get the saved value
|
||||
|
||||
//If there is no value to get, then get the parent value (a.k.a. default value).
|
||||
if (s == string.Empty)
|
||||
s = _Xp.ParentValue("Unit", "OtherNumber"); // get the parent value
|
||||
// If there is no parent value, then use the volian default
|
||||
if (s == string.Empty)
|
||||
return s = "";// default to volian default
|
||||
|
||||
return s;
|
||||
}
|
||||
set
|
||||
{
|
||||
// if value being saved is same as the parent value, then clear the value (save blank). This will
|
||||
// reset the data to use the parent value.
|
||||
|
||||
string parval = _Xp.ParentValue("Unit", "OtherNumber"); // get the parent value
|
||||
|
||||
if (parval.Equals(string.Empty)) // if the parent value is empty, then use the volian default
|
||||
parval = "";
|
||||
|
||||
if (parval.Equals(value))
|
||||
_Xp["Unit", "OtherNumber"] = string.Empty; // reset to parent value
|
||||
else
|
||||
_Xp["Unit", "OtherNumber"] = value; // save selected value
|
||||
|
||||
OnPropertyChanged("Other_Unit_Number");
|
||||
}
|
||||
}
|
||||
[Category("Unit")]
|
||||
[DisplayName("Unit Name")]
|
||||
[RefreshProperties(RefreshProperties.All)]
|
||||
[Description("Assigned Unit Name")]
|
||||
public string Unit_Name
|
||||
{
|
||||
get
|
||||
{
|
||||
string s = _Xp["Unit", "Name"];// get the saved value
|
||||
|
||||
//If there is no value to get, then get the parent value (a.k.a. default value).
|
||||
if (s == string.Empty)
|
||||
s = _Xp.ParentValue("Unit", "Name"); // get the parent value
|
||||
// If there is no parent value, then use the volian default
|
||||
if (s == string.Empty)
|
||||
return s = "";// default to volian default
|
||||
|
||||
return s;
|
||||
}
|
||||
set
|
||||
{
|
||||
// if value being saved is same as the parent value, then clear the value (save blank). This will
|
||||
// reset the data to use the parent value.
|
||||
|
||||
string parval = _Xp.ParentValue("Unit", "Name"); // get the parent value
|
||||
|
||||
if (parval.Equals(string.Empty)) // if the parent value is empty, then use the volian default
|
||||
parval = "";
|
||||
|
||||
if (parval.Equals(value))
|
||||
_Xp["Unit", "Name"] = string.Empty; // reset to parent value
|
||||
else
|
||||
_Xp["Unit", "Name"] = value; // save selected value
|
||||
|
||||
OnPropertyChanged("Unit_Name");
|
||||
}
|
||||
}
|
||||
[Category("Unit")]
|
||||
[DisplayName("Other Unit Name")]
|
||||
[RefreshProperties(RefreshProperties.All)]
|
||||
[Description("Assigned Other Unit Name")]
|
||||
public string Unit_OtherName
|
||||
{
|
||||
get
|
||||
{
|
||||
string s = _Xp["Unit", "OtherName"];// get the saved value
|
||||
|
||||
//If there is no value to get, then get the parent value (a.k.a. default value).
|
||||
if (s == string.Empty)
|
||||
s = _Xp.ParentValue("Unit", "OtherName"); // get the parent value
|
||||
// If there is no parent value, then use the volian default
|
||||
if (s == string.Empty)
|
||||
return s = "";// default to volian default
|
||||
|
||||
return s;
|
||||
}
|
||||
set
|
||||
{
|
||||
// if value being saved is same as the parent value, then clear the value (save blank). This will
|
||||
// reset the data to use the parent value.
|
||||
|
||||
string parval = _Xp.ParentValue("Unit", "OtherName"); // get the parent value
|
||||
|
||||
if (parval.Equals(string.Empty)) // if the parent value is empty, then use the volian default
|
||||
parval = "";
|
||||
|
||||
if (parval.Equals(value))
|
||||
_Xp["Unit", "OtherName"] = string.Empty; // reset to parent value
|
||||
else
|
||||
_Xp["Unit", "OtherName"] = value; // save selected value
|
||||
|
||||
OnPropertyChanged("Unit_OtherName");
|
||||
}
|
||||
}
|
||||
[Category("Unit")]
|
||||
[DisplayName("Unit Text")]
|
||||
[RefreshProperties(RefreshProperties.All)]
|
||||
[Description("Assigned Unit Text")]
|
||||
public string Unit_Text
|
||||
{
|
||||
get
|
||||
{
|
||||
string s = _Xp["Unit", "Text"];// get the saved value
|
||||
|
||||
//If there is no value to get, then get the parent value (a.k.a. default value).
|
||||
if (s == string.Empty)
|
||||
s = _Xp.ParentValue("Unit", "Text"); // get the parent value
|
||||
// If there is no parent value, then use the volian default
|
||||
if (s == string.Empty)
|
||||
return s = "";// default to volian default
|
||||
|
||||
return s;
|
||||
}
|
||||
set
|
||||
{
|
||||
// if value being saved is same as the parent value, then clear the value (save blank). This will
|
||||
// reset the data to use the parent value.
|
||||
|
||||
string parval = _Xp.ParentValue("Unit", "Text"); // get the parent value
|
||||
|
||||
if (parval.Equals(string.Empty)) // if the parent value is empty, then use the volian default
|
||||
parval = "";
|
||||
|
||||
if (parval.Equals(value))
|
||||
_Xp["Unit", "Text"] = string.Empty; // reset to parent value
|
||||
else
|
||||
_Xp["Unit", "Text"] = value; // save selected value
|
||||
|
||||
OnPropertyChanged("Unit_Text");
|
||||
}
|
||||
}
|
||||
[Category("Unit")]
|
||||
[DisplayName("Other Unit Text")]
|
||||
[RefreshProperties(RefreshProperties.All)]
|
||||
[Description("Assigned Other Unit Text")]
|
||||
public string Other_Unit_Text
|
||||
{
|
||||
get
|
||||
{
|
||||
string s = _Xp["Unit", "OtherText"];// get the saved value
|
||||
|
||||
//If there is no value to get, then get the parent value (a.k.a. default value).
|
||||
if (s == string.Empty)
|
||||
s = _Xp.ParentValue("Unit", "OtherText"); // get the parent value
|
||||
// If there is no parent value, then use the volian default
|
||||
if (s == string.Empty)
|
||||
return s = "";// default to volian default
|
||||
|
||||
return s;
|
||||
}
|
||||
set
|
||||
{
|
||||
// if value being saved is same as the parent value, then clear the value (save blank). This will
|
||||
// reset the data to use the parent value.
|
||||
|
||||
string parval = _Xp.ParentValue("Unit", "OtherText"); // get the parent value
|
||||
|
||||
if (parval.Equals(string.Empty)) // if the parent value is empty, then use the volian default
|
||||
parval = "";
|
||||
|
||||
if (parval.Equals(value))
|
||||
_Xp["Unit", "OtherText"] = string.Empty; // reset to parent value
|
||||
else
|
||||
_Xp["Unit", "OtherText"] = value; // save selected value
|
||||
|
||||
OnPropertyChanged("Unit_OtherText");
|
||||
}
|
||||
}
|
||||
[Category("Unit")]
|
||||
[DisplayName("Unit ID")]
|
||||
[RefreshProperties(RefreshProperties.All)]
|
||||
[Description("Assigned Unit ID")]
|
||||
public string Unit_ID
|
||||
{
|
||||
get
|
||||
{
|
||||
string s = _Xp["Unit", "ID"];// get the saved value
|
||||
|
||||
//If there is no value to get, then get the parent value (a.k.a. default value).
|
||||
if (s == string.Empty)
|
||||
s = _Xp.ParentValue("Unit", "ID"); // get the parent value
|
||||
// If there is no parent value, then use the volian default
|
||||
if (s == string.Empty)
|
||||
return s = "";// default to volian default
|
||||
|
||||
return s;
|
||||
}
|
||||
set
|
||||
{
|
||||
// if value being saved is same as the parent value, then clear the value (save blank). This will
|
||||
// reset the data to use the parent value.
|
||||
|
||||
string parval = _Xp.ParentValue("Unit", "ID"); // get the parent value
|
||||
|
||||
if (parval.Equals(string.Empty)) // if the parent value is empty, then use the volian default
|
||||
parval = "";
|
||||
|
||||
if (parval.Equals(value))
|
||||
_Xp["Unit", "ID"] = string.Empty; // reset to parent value
|
||||
else
|
||||
_Xp["Unit", "ID"] = value; // save selected value
|
||||
|
||||
OnPropertyChanged("Unit_ID");
|
||||
}
|
||||
}
|
||||
[Category("Unit")]
|
||||
[DisplayName("Other Unit ID")]
|
||||
[RefreshProperties(RefreshProperties.All)]
|
||||
[Description("Assigned Other Unit ID")]
|
||||
public string Other_Unit_ID
|
||||
{
|
||||
get
|
||||
{
|
||||
string s = _Xp["Unit", "OtherID"];// get the saved value
|
||||
|
||||
//If there is no value to get, then get the parent value (a.k.a. default value).
|
||||
if (s == string.Empty)
|
||||
s = _Xp.ParentValue("Unit", "OtherID"); // get the parent value
|
||||
// If there is no parent value, then use the volian default
|
||||
if (s == string.Empty)
|
||||
return s = "";// default to volian default
|
||||
|
||||
return s;
|
||||
}
|
||||
set
|
||||
{
|
||||
// if value being saved is same as the parent value, then clear the value (save blank). This will
|
||||
// reset the data to use the parent value.
|
||||
|
||||
string parval = _Xp.ParentValue("Unit", "OtherID"); // get the parent value
|
||||
|
||||
if (parval.Equals(string.Empty)) // if the parent value is empty, then use the volian default
|
||||
parval = "";
|
||||
|
||||
if (parval.Equals(value))
|
||||
_Xp["Unit", "OtherID"] = string.Empty; // reset to parent value
|
||||
else
|
||||
_Xp["Unit", "OtherID"] = value; // save selected value
|
||||
|
||||
OnPropertyChanged("Unit_OtherID");
|
||||
}
|
||||
}
|
||||
[Category("Unit")]
|
||||
[DisplayName("Unit Specific Procedure Number")]
|
||||
[RefreshProperties(RefreshProperties.All)]
|
||||
[Description("Assigned Unit Specific Procedure Number")]
|
||||
public string Unit_ProcedureNumber
|
||||
{
|
||||
get
|
||||
{
|
||||
string s = _Xp["Unit", "ProcedureNumber"];// get the saved value
|
||||
|
||||
//If there is no value to get, then get the parent value (a.k.a. default value).
|
||||
if (s == string.Empty)
|
||||
s = _Xp.ParentValue("Unit", "ProcedureNumber"); // get the parent value
|
||||
// If there is no parent value, then use the volian default
|
||||
if (s == string.Empty)
|
||||
return s = "";// default to volian default
|
||||
|
||||
return s;
|
||||
}
|
||||
set
|
||||
{
|
||||
// if value being saved is same as the parent value, then clear the value (save blank). This will
|
||||
// reset the data to use the parent value.
|
||||
|
||||
string parval = _Xp.ParentValue("Unit", "ProcedureNumber"); // get the parent value
|
||||
|
||||
if (parval.Equals(string.Empty)) // if the parent value is empty, then use the volian default
|
||||
parval = "";
|
||||
|
||||
if (parval.Equals(value))
|
||||
_Xp["Unit", "ProcedureNumber"] = string.Empty; // reset to parent value
|
||||
else
|
||||
_Xp["Unit", "ProcedureNumber"] = value; // save selected value
|
||||
|
||||
OnPropertyChanged("Unit_ProcedureNumber");
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
#region DELETE_ME
|
||||
/*
|
||||
#region ColorCategory // From veproms.ini
|
||||
|
Reference in New Issue
Block a user