Никита
6 years ago
7 changed files with 63 additions and 9 deletions
@ -0,0 +1,40 @@ |
|||||
|
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; } |
||||
|
} |
||||
|
} |
||||
|
} |
Loading…
Reference in new issue