Exemplo n.º 1
0
        //加入一个暂停方法,在暂停中调用该方法,通过将本来的timer1暂停,暂停后启用timer2刷新,如果井深超出数据库中的范围,就停止,一直刷新到有数据后重新开始timer1


        private void timer1_Tick(object sender, EventArgs e)
        {
            SQLServerWorkDataProvider.invoke_method = "随钻";
            #region    对部分静态类进行初始化
            DrawPointContainer.initiate();

            pTableContainer.initiate();
            #endregion

            DrawPointContainer.szf = this;

            if (DrawPointContainer.list != null)
            {
                for (int i = 0; i < DrawPointContainer.list.Count; i++)
                {
                    DrawPointContainer.list[i].Initiate();
                }
            }

            //suizuan//.Initiate();
            //绘图井,绘图框架等设计信息写入黑板区;

            SetFrameDesign();

            //根据lb_LineRoadDesign重新整理线道设计顺序;
            if (DrawCommonData.icount == 0)
            {
                SetLineRoadDesign();
            }

            //线道链表,线道框架即各个控制点数据等设计信息写入黑板区;
            FrameControlData.LineRoadControlLst = LineRoadOper.getLineRoadControlDataLst(LineRoadDesign.LineRoadDesginLst);

            WorkDataManage.WorkDataManage.BuildWorkDataHt();//获得绘图工作数据;将数据填充WorkDataManage类的WorkDataHt属性中;
            Entities.ClearAll();
            //绘图
            this.DrawLJJSPicture();

            if (this.maxminform != null)
            {
                pTableMaxAndMinValueManagementForm form = this.maxminform;

                form.tbMinJGL.Text  = DrawCommonData.curr_JGLMin.ToString();
                form.tbMinMseb.Text = DrawCommonData.curr_MsebMin.ToString();
                form.tbMinMseh.Text = DrawCommonData.curr_MsehMin.ToString();
                form.tbMinMsev.Text = DrawCommonData.curr_MsevMin.ToString();

                form.tbMaxJGL.Text  = DrawCommonData.curr_JGLMax.ToString();
                form.tbMaxMseb.Text = DrawCommonData.curr_MsebMax.ToString();
                form.tbMaxMseh.Text = DrawCommonData.curr_MsehMax.ToString();
                form.tbMaxMsev.Text = DrawCommonData.curr_MsevMax.ToString();
            }
        }
Exemplo n.º 2
0
        public void Fdraw_pic(bool redraw)
        {
            SQLServerWorkDataProvider.invoke_method = "绘图";  //用绘图的方式读取数据库,即一次读完所有数据,不用depth

            if (redraw == false)
            {
                #region    对静态类进行初始化
                DrawPointContainer.initiate();
                DrawCommonData.Initiate();
                pTableContainer.initiate();
                #endregion
            }
            else
            {
                DrawPointContainer.initiate();
                DrawCommonData.Initiate();
            }

            DrawCommonData.icount   = 0;
            DrawCommonData.baseline = true;
            //绘图井,绘图框架等设计信息写入黑板区;
            this.mf.SetFrameDesign();
            //根据lb_LineRoadDesign重新整理线道设计顺序;
            //this.mf.SetLineRoadDesign();
            this.mf.ProperSetLineRoadDesign();


            //线道链表,线道框架即各个控制点数据等设计信息写入黑板区;
            FrameControlData.LineRoadControlLst = LineRoadOper.getLineRoadControlDataLst(LineRoadDesign.LineRoadDesginLst);
            WorkDataManage.WorkDataManage.BuildWorkDataHt();//获得绘图工作数据;将数据填充WorkDataManage类的WorkDataHt属性中;

            Entities.ClearAll();



            //绘图
            this.DrawLJJSPicture();
        }
Exemplo n.º 3
0
        public override List <ulong> BuildLineRoadArea()
        {
            //1,从黑板取出线道的设计数据;
            List <LineRoadDesignClass> lineRoadModelLst    = LineRoadDesign.LineRoadDesginLst;
            List <LineRoadControlData> lineRoadControlData = FrameControlData.LineRoadControlLst; //2560-2590 2660-2690

            //2,绘制线道区
            if (lineRoadModelLst.Count() != lineRoadControlData.Count())
            {
                return(null);
            }
            for (int i = 0; i < lineRoadModelLst.Count(); i++)
            {
                LineRoadDesignClass   tmplineRoadModel       = lineRoadModelLst[i];
                LineRoadControlData   tmpLineRoadControlData = lineRoadControlData[i];                     //2560-2590 2660-2690
                LineRoadBuilder       lineRoadBuilder        = LineRoadFactory.CreateLineRoadInstance(tmplineRoadModel.LineRoadStyle, LineRoadOper.BuildLineRoadDrawingModel(tmplineRoadModel, tmpLineRoadControlData));
                LineRoadBuildDirector lineRoadDirector       = new LineRoadBuildDirector(lineRoadBuilder); //
                lineRoadDirector.BuildLineRoad();
            }
            return(new List <ulong>());
        }