コード例 #1
0
        public void ArrangeAllInLineNr()
        {
            int counter  = 0;
            int counter2 = 0;
            int a        = 0;
            int b        = 0;


            foreach (DataRow row in _sortedInLineTableASCRepository.Get().Rows)
            {
                a = int.Parse(row["OperationId"].ToString());

                if (a == b)
                {
                    counter2++;
                    _numerationInLineRepository.AddNewNr(row, counter2);
                }
                else
                {
                    counter2 = 1;
                    counter  = 1;
                    _numerationInLineRepository.AddNewNr(row, counter);
                }

                b = a;
            }
        }
コード例 #2
0
 public DataTable Get()
 {
     return(_sortedInLineTeableASCRepository.Get());
 }