Esempio n. 1
0
        public BaseManuDesignParams(ManuDesignParams param)
        {
            jieGou = param.jieGou;

            zjsd1 = param.zjsd1;
            tggj1 = param.tggj1;
            tgxh1 = param.tgxh1;
            gjfs1 = param.gjfs1;
            miaoshu1 = param.miaoshu1;

            zjsd2 = param.zjsd2;
            tggj2 = param.tggj2;
            tgxh2 = param.tgxh2;
            gjfs2 = param.gjfs2;
            wjfs2 = param.wjfs2;
            miaoshu2 = param.miaoshu2;

            zjsd3 = param.zjsd3;
            tggj3 = param.tggj3;
            tgxh3 = param.tgxh3;
            wjfs3 = param.wjfs3;
            miaoshu3 = param.miaoshu3;
        }
Esempio n. 2
0
        public Document()
        {
            InitializeComponent();
            if (logic == null)
                logic = new MkyLogic();

            //岩层参数录入初始化
            LayerBaseParams dibiao = new LayerBaseParams(this);
            dibiao.yanXing = YanXingOpt[0];
            layers.Add(dibiao);
            caiDongComBox.SelectedIndex = 0;

            //向导式录入初始化
            editLayer = new LayerBaseParams(this);
            guideBind(editLayer);

            //位移计算初始化
            JQDestCombo.Text = JQDestOpt[0];
            LCDestCombo.Text = LCDestOpt[0];

            //水泥环增益初始化
            editZengYi = new ZengYiParams(this);

            //人工设计
            manuDesignParams = new ManuDesignParams(this);
            manuDesignParams.JieGou = JieGouOpt[1];

            //井型自动设计初始化
            AutoTgxh1 = TggjOpt[0];
            AutoTgxh2 = TggjOpt[0];
            AutoTgxh3 = TggjOpt[0];
            AutoWjfs3 = WjfsOpt[0];

            //cad初始化
            cadViewer = new AxMxDrawX();
            cadViewer.BeginInit();
            wfHost.Child = cadViewer;
            Thread thread = new Thread(new ThreadStart(closeFuckDlg));
            thread.Start();
            cadViewer.EndInit();

            cadViewer2 = new AxMxDrawX();
            cadViewer2.BeginInit();
            wfHost2.Child = cadViewer2;
            Thread thread2 = new Thread(new ThreadStart(closeFuckDlg));
            thread2.Start();
            cadViewer2.EndInit();

            //自动更新层号 层号不保存在集合中
            paramGrid.LoadingRow += new EventHandler<DataGridRowEventArgs>(dataGrid_LoadingRow);
            paramGrid.UnloadingRow += new EventHandler<DataGridRowEventArgs>(dataGrid_UnloadingRow);
            keyLayerDataGrid.LoadingRow += new EventHandler<DataGridRowEventArgs>(dataGrid_LoadingRow);
            keyLayerDataGrid.UnloadingRow += new EventHandler<DataGridRowEventArgs>(dataGrid_UnloadingRow);
            cutOffsetDataGrid.LoadingRow += new EventHandler<DataGridRowEventArgs>(dataGrid_LoadingRow);
            cutOffsetDataGrid.UnloadingRow += new EventHandler<DataGridRowEventArgs>(dataGrid_UnloadingRow);
            lcOffsetDataGrid.LoadingRow += new EventHandler<DataGridRowEventArgs>(dataGrid_LoadingRow);
            lcOffsetDataGrid.UnloadingRow += new EventHandler<DataGridRowEventArgs>(dataGrid_UnloadingRow);
            taoGuanDataGrid.LoadingRow += new EventHandler<DataGridRowEventArgs>(dataGrid_LoadingRow);
            taoGuanDataGrid.UnloadingRow += new EventHandler<DataGridRowEventArgs>(dataGrid_UnloadingRow);

            //表格的数据绑定
            paramGrid.DataContext = layers;
            keyLayerDataGrid.DataContext = keyLayers;
            yancengListBox.ItemsSource = layers;
            cutOffsetDataGrid.ItemsSource = layers;
            lcOffsetDataGrid.ItemsSource = keyLayers;
            taoGuanDataGrid.ItemsSource = keyLayers;
            zengYiDataGrid.ItemsSource = zengYis;
            zengYiGrid.DataContext = editZengYi;
            manuDesignGrid.DataContext = manuDesignParams;
            autoDesignGrid.DataContext = this;

            //关键层计算相关其他参数绑定
            meiCengQingJIaoTb.DataContext = this;
            fuYanXCLTb.DataContext = this;
            caiGaoTb.DataContext = this;
            suiZhangXSTb.DataContext = this;

            meiCengHouDuTb.DataContext = this;
            xiuZhengXishuTb.DataContext = this;
            hcqZXcdTb.DataContext = this;
            hcqQXcdTb.DataContext = this;
            gZMTJSDTb.DataContext = this;
            jswzjlTb.DataContext = this;

            //initialData();
        }