Untitled
unknown
csharp
10 months ago
1.2 kB
17
Indexable
private string SchemeType()
{
string retval = "-1";
if (ddlScheme.SelectedIndex > 0)
{
IDictionary<int, string> scheme = EnumUtils.GetListItemCollectionByDescription<KSBUtility.Enumes.SchemeId>();
var key = scheme.Where(p => p.Value == ddlScheme.SelectedValue.ToString().ToUpper()).Select(p => p.Key);
foreach (var k in key)
{
retval = k.ToString();
}
}
if (ddlStatus.SelectedValue.Contains("System Rejected at") && retval == "1")
{
retval = "111";
if (CurrentContext.LoggedInUser.LoginUserType == 25)
{
if (ddlStatus.SelectedValue == "System Rejected at KSB SuperVisor")
{
retval = "112";
}
else if (ddlStatus.SelectedValue == "System Rejected at KSB User")
{
retval = "113";
}
}
}
if (ddlStatus.SelectedValue == "Rejected by System")
{
retval = "111";
}
if (ddlStatus.SelectedItem.Text.ToLower().Contains("by boo"))
{
retval = "222";
}
return retval;
}Editor is loading...
Leave a Comment