private void SaveToExcel(string directoryName)
 {
     ExcelExport exc = new ExcelExport(CurrentFussion.Number.ToString());
     exc.Do(dataGridViewScrapBuckets, "Шихта");
     exc.Do(dataGridViewMetalMirror, "Зеркало металла");
     exc.Do(dataGridViewOffGas, "Отходящие газы");
     exc.Do(dataGridViewLance, "Фурма");
     exc.Do(dataGridViewTrakt, "Тракт сыпучих");
     exc.Do(dataGridViewHotMetal, "Чугун");
     exc.Do(dataGridViewSteelAnalysys, "Сталь на повалке");
     exc.Do(dataGridViewSlagAnalysys, "Шлак");
     exc.Do(dataGridViewSublance, "Измерительный зонд");
     exc.Do(textBoxPassport.Lines, "Паспорт плавки");
     exc.Do(dataGridViewFusion, "Плавка");
     exc.Save(directoryName);
 }
 private void SummaryToExcel(string directoryName)
 {
     ExcelExport excel = new ExcelExport(CurrentFussion.Number.ToString());
     excel.DoCommon(CurrentFussion, CurrentListOfGas, CurrentListLance, m_Db.GetAdditions(CurrentFussion.ID), m_Db.GetSublance(CurrentFussion.ID), SummarySlagOutburst, SummaryIgnition);
     excel.Save(directoryName);
 }
Esempio n. 3
0
 private void button2_Click(object sender, EventArgs e)
 {
     foreach (Fusion fusion in Fusions)
     {
         comboBoxFusions.SelectedIndex = Fusions.IndexOf(fusion);
         ExcelExport exc = new ExcelExport(CurrentFussion.Number.ToString());
         exc.Do(dataGridViewScrapBuckets, "Шихта");
         exc.Do(dataGridViewMetalMirror, "Зеркало металла");
         exc.Do(dataGridViewOffGas, "Выходящие газы");
         exc.Do(dataGridViewLance, "Фурма");
         exc.Do(dataGridViewTrakt, "Тракт сыпучих");
         exc.Do(dataGridViewFusion, "Плавка");
         exc.Save(textBox1.Text);
     }
 }