Ejemplo n.º 1
0
 /// <summary>
 /// 执行后台线程的函数
 /// </summary>
 private void DoBackGroundWork(object obj)
 {
     if (BWType == OutputProgress.OutputType.WordLoad)
     {
         return;
     }
     else if (BWType == OutputProgress.OutputType.NTest)
     {
         return;
     }
     else if (BWType == OutputProgress.OutputType.Ps)
     {
         return;
     }
     else if (BWType == OutputProgress.OutputType.RST)
     {
         return;
     }
     else if (BWType == OutputProgress.OutputType.GAT)
     {
         return;
     }
     else if (BWType == OutputProgress.OutputType.BearingAndModulus)
     {
         OutputStatisticToWord.CalculatingBam();
     }
     else if (BWType == OutputProgress.OutputType.ShearingStrength)
     {
         OutputStatisticToWord.CalculatingSs();
     }
     else if (BWType == OutputProgress.OutputType.AllTables)
     {
         return;
     }
     else if (BWType == OutputProgress.OutputType.ZkCad)
     {
         return;
     }
     else if (BWType == OutputProgress.OutputType.JkCad)
     {
         return;
     }
     else if (BWType == OutputProgress.OutputType.PreLoadAll)
     {
         OutputStatisticToWord.PreviewLoadAll();
     }
     else if (BWType == OutputProgress.OutputType.PreLoadNtest)
     {
         OutputStatisticToWord.PreviewLoadNtest();
     }
 }
        /// <summary>
        /// 无参数的构造函数
        /// </summary>
        public ShearingStrengthCalculation()
        {
            InitializeComponent();

            // 实例化计算中窗体,执行预加载
            OutputStatisticToWord.ShowCalculatingProgress(OutputProgress.OutputType.PreLoadAll);
            NTestStatisticList = OutputStatisticToWord.NTestStatisticList;
            RstStatisticList   = OutputStatisticToWord.RstStatisticList;
            CptStatisticList   = OutputStatisticToWord.CptStatisticList;

            // 初始化选框和标签
            InitialStandardTextBlock();
            InitialCPTTypeComboBox();
            InitialNTestTypeComboBox();
            InitialLayerComboBox();
        }
Ejemplo n.º 3
0
        /// <summary>
        /// 构造函数
        /// </summary>
        public NTestStatistic()
        {
            InitializeComponent();

            // 实例化计算中窗体,执行预加载
            OutputStatisticToWord.ShowCalculatingProgress(OutputProgress.OutputType.PreLoadNtest);

            // 初始化DataTable
            InitialNTestStatisticDataGrid();
            InitialNTestDetailDataGrid();

            // 设置绑定
            this.NTestStatisticDataGrid.DataContext = dtNS;
            this.NTestDetailDataGrid.DataContext    = dtND;

            // 填充筛选ComboBox
            InitialComboBox();
            this.LayerListComboBox.SelectedIndex = 0;
        }
Ejemplo n.º 4
0
 /// <summary>
 /// 执行后台线程的函数
 /// </summary>
 /// <param name="_path">输出路径</param>
 private void DoBackGroundWork(object _path)
 {
     if (BWType == OutputType.WordLoad)
     {
         WorkLoadStatistic.OutputToWord(Path);
     }
     else if (BWType == OutputType.NTest)
     {
         NTestStatistic.OutputToWord(Path);
     }
     else if (BWType == OutputType.Ps)
     {
         CPTStatistic.OutputToWord(Path);
     }
     else if (BWType == OutputType.RST)
     {
         RSTStatistic.OutputToWord(Path);
     }
     else if (BWType == OutputType.GAT)
     {
         GATStatistic.OutputToWord(Path);
     }
     else if (BWType == OutputType.BearingAndModulus)
     {
         BearingAndModulusCalculation.OutputToWord(Path);
     }
     else if (BWType == OutputType.ShearingStrength)
     {
         ShearingStrengthCalculation.OutputToWord(Path);
     }
     else if (BWType == OutputType.AllTables)
     {
         OutputStatisticToWord.OutputToWord(Path);
     }
     else if (BWType == OutputType.ZkCad)
     {
         OutputZkToCad.OutputToCad(Path, OutputZkList, OutputScaleList);
     }
     else if (BWType == OutputType.JkCad)
     {
         OutputJkToCad.OutputToCad(Path, OutputJkList, OutputScaleList);
     }
 }
Ejemplo n.º 5
0
        /// <summary>
        /// 输出所有参数统计表格函数
        /// </summary>
        private void AllStaTables()
        {
            OutputStatisticToWord allStatistic = new OutputStatisticToWord();

            allStatistic.ShowDialog();
        }