Database Reference
In-Depth Information
{
UserLabel = UserLabel + “S”;
}
if (TSChar = = “1”)
{
UserLabel = UserLabel + “-T”;
}
else if (TSChar = = “2”)
{
UserLabel = UserLabel + “T”;
}
return UserLabel;
}
public static int GetBCLabelNumeric(string
UserLabel)
{
int UserLabelID = 0 ;
UserLabel = BreakBCLabel(UserLabel);
UserLabelID = int.Parse(UserLabel.Substring
(0, 1)) + (int.Parse(UserLabel.Substring
(1, 1)) * 4) + (int.Parse(UserLabel.
Substring(2, 1)) * 16) + (int.
Parse(UserLabel.Substring(3, 1)) * 64);
return UserLabelID;
}
public static string GetBCUserView(string Label)
{
string labelView = “”;
int NumericLabel = 0;
Label = BreakBCLabel(Label);
int UserLabelID = globals.UserLabelID ;
for (int i = 0; i < UserLabelID; i++)
{
NumericLabel = NumericLabel +
(int.Parse(Label.Substring(i, 1)) *
Convert.ToInt32 (Math.Pow(4, i)));
}
labelView = GetBCLabel(NumericLabel);
return labelView;
}
public static string BreakBCLabel(string
UserLabel)
{
string UserLabelID = “0”;
string Unumric = “0”;
Search WWH ::




Custom Search