Exemple #1
0
        public string[] ToRow()
        {
            string[] rez = new string[10];

            rez[0] = ID.ToString();
            rez[1] = ID_History.ToString();
            rez[2] = ID_Contract.ToString();
            rez[3] = Registr;
            rez[4] = Poryd;
            rez[5] = TypeOfRegular;
            rez[6] = TypeOnOut;
            rez[7] = Name;
            rez[8] = Type_communication;
            rez[9] = INN.ToString();

            return(rez);
        }
Exemple #2
0
        public string[] ToRows()
        {
            string[] rez = new string[16];
            rez[0]  = (ID_Rout.ToString());
            rez[1]  = (ID_Number_Schedule.ToString());
            rez[2]  = ID_History.ToString();
            rez[3]  = (Miliage.ToString());
            rez[4]  = (Type_Schedule.ToString());
            rez[5]  = (Monday.JsonSTR);
            rez[6]  = (Tuesday.JsonSTR);
            rez[7]  = (Wednesday.JsonSTR);
            rez[8]  = (Thursday.JsonSTR);
            rez[9]  = (Friday.JsonSTR);
            rez[10] = (Saturday.JsonSTR);
            rez[11] = (Sunday.JsonSTR);
            rez[12] = (Holiday.JsonSTR);
            rez[13] = (With.ToString("dd.MM.yyyy"));
            if (By == new DateTime())
            {
                rez[14] = ("-");
            }
            else
            {
                rez[14] = (By.ToString("dd.MM.yyyy"));
            }

            string day = "";

            for (int i = 0; i < DayOfWork.Count; i++)
            {
                day += DayOfWork[i].ToString() + (i != DayOfWork.Count - 1 ? ",":"");
            }
            rez[15] = (day);

            return(rez);
        }