You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
40 lines
940 B
40 lines
940 B
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace eCompanies
|
|
{
|
|
public enum Status { NotReachedYet, Reached, Terminated }
|
|
public class Contract
|
|
{
|
|
private Companies c { get; set; }
|
|
public Contract (Companies c)
|
|
{
|
|
this.c = c;
|
|
}
|
|
public string ContractStatusString
|
|
{
|
|
get
|
|
{
|
|
switch (c.CompanyId)
|
|
{
|
|
case 1: return "Заключен";
|
|
case 2: return "Расторгнут";
|
|
default: return "Еще не заключен";
|
|
}
|
|
}
|
|
set
|
|
{
|
|
|
|
}
|
|
}
|
|
|
|
public Status ContractStatusId
|
|
{
|
|
get { return (Status)c.ContractStatus; }
|
|
set { c.ContractStatus = (int)value; }
|
|
}
|
|
}
|
|
}
|
|
|