예제 #1
0
파일: EventCouch.cs 프로젝트: Granckins/456
        public string ToString()
        {
            var sod = "";
            var str = "";



            str = Nomer_upakovki.ToString().Replace(';', ',') + ";" + warehouse_id.ToString().Replace(';', ',') + ";" +
                  (Naimenovanie_izdeliya == null ? "" : Naimenovanie_izdeliya).Replace(';', ',') + ";" +
                  (Zavodskoj_nomer == null ? "" : Zavodskoj_nomer).Replace(';', ',') + ";" +
                  Kolichestvo.ToString().Replace(';', ',') + ";" +
                  (Mestonahozhdenie_na_sklade == null ? "" : Mestonahozhdenie_na_sklade).Replace(';', ',') + ";" +
                  (Oboznachenie == null ? "" : Oboznachenie).Replace(';', ',') + ";" +
                  sod + ";" +
                  (Sistema == null ? "" : Sistema).Replace(';', ',') + ";" +
                  (Otvetstvennyj == null ? "" : Otvetstvennyj).Replace(';', ',') + ";" +
                  (Prinadlezhnost == null ? "" : Prinadlezhnost).Replace(';', ',') + ";";

            str += (Data_priyoma) + ";";


            str += (Otkuda == null ? "" : Otkuda).Replace(';', ',') + ";";



            str += (Data_vydachi) + ";";

            str += (Kuda == null ? "" : Kuda).Replace(';', ',') + ";" +
                   (Nomer_plomby == null ? "" : Nomer_plomby).Replace(';', ',') + ";" +
                   Stoimost.ToString().Replace(';', ',') + ";" +
                   Ves_brutto.ToString().Replace(';', ',') + ";" +
                   Ves_netto.ToString().Replace(';', ',') + ";" +
                   Dlina.ToString().Replace(';', ',') + ";" +
                   Shirina.ToString().Replace(';', ',') + ";" +
                   Vysota.ToString().Replace(';', ',') + ";" +

                   (Primechanie == null ? "" : Primechanie).Replace(';', ',') + ";" +
                   (Dobavil == null ? "" : Dobavil).Replace(';', ',') + ";\n";
            return(str);
        }
예제 #2
0
 public override string ToString()
 {
     return("Квадрат: " + "Строны " + Dlina.ToString() + " Площадь " + Ploshad().ToString());
 }