- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
- 21
- 22
- 23
- 24
- 25
- 26
- 27
- 28
- 29
- 30
- 31
- 32
- 33
- 34
- 35
- 36
- 37
- 38
- 39
- 40
- 41
- 42
- 43
- 44
- 45
for(int i = 0; i<et.Days.Count; i++)
{
if (et.Days[i].WorkDay.Day == colno - 1)
{
EmplTabelDays etd = et.Days[i];
switch (colno)
{
case 0:
break;
case 1:
break;
default:
{
//pinc.TypeIncome = (IncomeItem)
//((TreeNodeHelper)(income_grid.Rows[e.RowIndex].Cells[e.ColumnIndex]).Value).Value;
//etd.WorkStatus = (WorkStatus)((DataGridViewCell)(WorkDaysGrid.Rows[recno].Cells[colno]).Value).Value;
DataGridViewCell cell = WorkDaysGrid.Rows[recno].Cells[colno];
if (SpecialButton.Checked == false)
{
etd.TypeWorkHours = 8;
//еще 100500 строк гавнокода...
if (cell.Value == "8")
etd.WorkStatus.Id = 1;
if (cell.Value == "-")
etd.WorkStatus.Id = 2;
if (cell.Value == "О")
etd.WorkStatus.Id = 3;
if (cell.Value == "Б")
etd.WorkStatus.Id = 4;
if (cell.Value == "Р")
etd.WorkStatus.Id = 5;
if (cell.Value == "П")
etd.WorkStatus.Id = 6;
if (cell.Value == "А")
etd.WorkStatus.Id = 7;
if (cell.Value == "Г")
etd.WorkStatus.Id = 8;
if (cell.Value == "С")
etd.WorkStatus.Id = 9;
}