private void btnReport_Click(object sender, EventArgs e) { frmASTRAReport f_ar = new frmASTRAReport(rep_file_name); f_ar.Owner = this; f_ar.Show(); //IAppDomainSetup.View_Result(rep_file_name); }
public static void OpenReport(string file_name, Form owner) { frmASTRAReport f = new frmASTRAReport(file_name); f.Owner = owner; //f.ShowDialog(); f.Show(); }
public static void OpenReport(string file_name, Form owner, bool tree_view_on) { frmASTRAReport f = new frmASTRAReport(file_name); f.Owner = owner; f.TreeViewOn = tree_view_on; //f.ShowDialog(); f.Show(); }
private void dgv_beams_CellContentDoubleClick(object sender, DataGridViewCellEventArgs e) { int step = e.RowIndex + 1; if (beamDes.Report_File != "") { string tmp_file = Path.Combine(Path.GetDirectoryName(beamDes.Report_File), "temp"); //if (!Directory.Exists(tmp_file)) // Directory.CreateDirectory(tmp_file); //tmp_file = Path.Combine(tmp_file, "B" + step + ".tmp"); tmp_file = Path.Combine(tmp_file, "B" + step + ".tmp"); if (File.Exists(tmp_file)) { frmASTRAReport fap = new frmASTRAReport(tmp_file); fap.Owner = this; fap.ShowDialog(); } } }
public void RunThread() { List <string> list = new List <string>(); #region TechSOFT Banner list.Add(""); //list.Add(""); //list.Add("\t\t**********************************************"); //list.Add("\t\t* ASTRA Pro Release 18.0 *"); //list.Add("\t\t* TechSOFT Engineering Services *"); //list.Add("\t\t* *"); //list.Add("\t\t* DESIGN OF RCC COLUMN *"); //list.Add("\t\t* *"); //list.Add("\t\t**********************************************"); //list.Add("\t\t----------------------------------------------"); //list.Add("\t\tTHIS RESULT CREATED ON " + System.DateTime.Now.ToString("dd.MM.yyyy AT HH:mm:ss") + " "); //list.Add("\t\t----------------------------------------------"); //list.Add(""); #endregion int c = 0; int step = 1; string ColumnNos = ""; bool flag = false; //int c = 0; for (int i = 0; i < dgv_columns.RowCount; i++) { try { c = 0; flag = (bool)dgv_columns[c++, i].Value; if (flag) { Set_Grid_Color(i); ////cd.ColumnNos = dgv_columns[c++, i].Value.ToString(); //if (MessageBox.Show("Process Design Column " + cd.ColumnNos + " \n\nDou you want to continue ?", // "ASTRA", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.No) //{ // break; //} //col_design.hf = (Floors[i + 1] - Floors[i]) * 1000; col_design.floor_level = MyStrings.StringToDouble(dgv_columns[c++, i].Value.ToString(), 0.0); col_design.FlightNos = MyStrings.StringToInt(dgv_columns[c++, i].Value.ToString(), 0); col_design.hf = MyStrings.StringToDouble(dgv_columns[c++, i].Value.ToString(), 0); col_design.wf = MyStrings.StringToDouble(dgv_columns[c++, i].Value.ToString(), 0); col_design.wl = MyStrings.StringToDouble(dgv_columns[c++, i].Value.ToString(), 0); col_design.tw = MyStrings.StringToDouble(dgv_columns[c++, i].Value.ToString(), 0); col_design.bar_dia1 = MyStrings.StringToDouble(dgv_columns[c++, i].Value.ToString(), 0); col_design.bar_dia2 = MyStrings.StringToDouble(dgv_columns[c++, i].Value.ToString(), 0); list.AddRange(col_design.Design_Program_Loop(i + 1).ToArray()); Set_Grid_Color(i, true, col_design.IS_DESIGN_OK); dgv_columns[9, i].Value = col_design.IS_DESIGN_OK ? " OK " : "NOT OK"; Add_Staircase_BOQ(col_design.BOQ); } } catch (Exception exx) { } } #region End of Report list.Add(""); list.Add("---------------------------------------------------------------------------"); list.Add("--------------------- END OF REPORT --------------------------"); list.Add("---------------------------------------------------------------------------"); #endregion End of Report Save_Data(); File.WriteAllLines(col_design.Report_File, list.ToArray()); MessageBox.Show(this, "Report file created in file " + col_design.Report_File); frmASTRAReport fap = new frmASTRAReport(col_design.Report_File); fap.Owner = this; fap.ShowDialog(); }
public void RunThread() { List <string> list = new List <string>(); #region TechSOFT Banner list.Add(""); list.Add(""); list.Add("\t\t**********************************************"); list.Add("\t\t* ASTRA Pro Release 18.0 *"); list.Add("\t\t* TechSOFT Engineering Services *"); list.Add("\t\t* *"); list.Add("\t\t* DESIGN OF RCC COLUMN *"); list.Add("\t\t* *"); list.Add("\t\t**********************************************"); list.Add("\t\t----------------------------------------------"); list.Add("\t\tTHIS RESULT CREATED ON " + System.DateTime.Now.ToString("dd.MM.yyyy AT HH:mm:ss") + " "); list.Add("\t\t----------------------------------------------"); list.Add(""); #endregion int c = 0; int step = 1; string ColumnNos = ""; Design_Summary = new List <string>(); //int c = 0; for (int i = 0; i < dgv_columns.RowCount; i++) { try { c = 0; ColumnData cd = new ColumnData(); cd.IsSelect = (bool)dgv_columns[c++, i].Value; if (cd.IsSelect) { Set_Grid_Color(i); cd.ColumnNos = dgv_columns[c++, i].Value.ToString(); if (MessageBox.Show("Process Design Column " + cd.ColumnNos + " \n\nDo you want to continue ?", "ASTRA", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.No) { break; } cd.Continuous_ColumnMembers = dgv_columns[c, i].Value.ToString(); c++; cd.Breadth = MyStrings.StringToDouble(dgv_columns[c, i].Value.ToString(), 0.0); c++; cd.Depth = MyStrings.StringToDouble(dgv_columns[c, i].Value.ToString(), 0.0); c++; cd.Main_Bar_dia = MyStrings.StringToDouble(dgv_columns[c, i].Value.ToString(), 0.0); c++; cd.Bar_Nos = MyStrings.StringToDouble(dgv_columns[c, i].Value.ToString(), 0.0); c++; cd.Tie_Bar_Dia = MyStrings.StringToDouble(dgv_columns[c, i].Value.ToString(), 0.0); c++; cd.Pu = MyStrings.StringToDouble(dgv_columns[c, i].Value.ToString(), 0.0); c++; cd.Mux = MyStrings.StringToDouble(dgv_columns[c, i].Value.ToString(), 0.0); c++; cd.Muy = MyStrings.StringToDouble(dgv_columns[c, i].Value.ToString(), 0.0); c++; //col_design.ColumnNos = All_Column_Data[i].Continuous_ColumnMembers; col_design.Beam_Nos = cd.Continuous_ColumnMembers; col_design.D = cd.Depth * 1000; col_design.b = cd.Breadth * 1000; col_design.bar_dia = cd.Main_Bar_dia; col_design.bar_nos = cd.Bar_Nos; col_design.tie_dia = cd.Tie_Bar_Dia; col_design.Pu = cd.Pu; col_design.Mux = cd.Mux; col_design.Muy = cd.Muy; //col_design.All_Column_Data.Clear(); col_design.Col_Data = cd; if (Design_Summary == null) { Design_Summary = new List <string>(); } Design_Summary.Add(string.Format("")); list.AddRange(col_design.Design_Program_Loop(i + 1).ToArray()); Design_Summary.Add(string.Format("------------------------------------------------")); Design_Summary.Add(string.Format("COLUMN = {0}", cd.ColumnNos)); Design_Summary.Add(string.Format("CONTINUOUS MEMBERS = {0}", cd.Continuous_ColumnMembers)); Design_Summary.AddRange(col_design.Design_Summary.ToArray()); Design_Summary.Add(string.Format("------------------------------------------------")); Set_Grid_Color(i, true, col_design.IS_DESIGN_OK); dgv_columns[c, i].Value = col_design.IS_DESIGN_OK ? " OK " : "NOT OK"; Add_Column_BOQ(col_design.BOQ); } } catch (Exception exx) { } } #region End of Report list.Add(""); list.Add("---------------------------------------------------------------------------"); list.Add("--------------------- END OF REPORT --------------------------"); list.Add("---------------------------------------------------------------------------"); #endregion End of Report Save_Data(); File.WriteAllLines(col_design.Report_File, list.ToArray()); string des_sum = Path.Combine(Path.GetDirectoryName(col_design.Get_Report_File(1)), "COLUMN_DESIGN_SUMMARY.TXT"); File.WriteAllLines(des_sum, Design_Summary.ToArray()); MessageBox.Show(this, "Report file created in file " + col_design.Report_File); frmASTRAReport fap = new frmASTRAReport(col_design.Report_File); fap.Owner = this; fap.ShowDialog(); }