Ejemplo n.º 1
0
 public SelectTunnelDlg(WorkingFace workingFace)
 {
     InitializeComponent();
     //窗体属性设置
     FormDefaultPropertiesSetter.SetEnteringFormDefaultProperties(this, Const_GM.TUNNEL_CHOOSE);
     selectTunnelUserControl1.LoadData(workingFace);
 }
Ejemplo n.º 2
0
 public ShortMessage()
 {
     InitializeComponent();
     //设置子窗体格式
     FormDefaultPropertiesSetter.SetManagementFormDefaultProperties(this,
                                                                    LibFormTitles.USER_INFO_DETAILS_MANMAGEMENT);
 }
Ejemplo n.º 3
0
 /// <summary>
 /// 构造方法
 /// </summary>
 public SelectTunnelDlg()
 {
     InitializeComponent();
     selectTunnelUserControl1.LoadData();
     // 设置窗体默认属性
     FormDefaultPropertiesSetter.SetEnteringFormDefaultProperties(this, Const_GE.CHOOSE_TUNNEL);
 }
Ejemplo n.º 4
0
 /// <summary>
 /// 构造方法
 /// </summary>
 /// <param name="tunnel"></param>
 public SelectTunnelDlg(Tunnel tunnel)
 {
     InitializeComponent();
     //窗体属性设置
     FormDefaultPropertiesSetter.SetEnteringFormDefaultProperties(this, Const_GM.TUNNEL_CHOOSE);
     SelectedTunnel = tunnel;
 }
Ejemplo n.º 5
0
        /// <summary>
        ///     构造方法
        /// </summary>
        public GasGushQuantityInfoManagement()
        {
            InitializeComponent();

            // 设置窗体默认属性
            FormDefaultPropertiesSetter.SetManagementFormDefaultProperties(this, Const_OP.MANAGE_GASGUSHQUANTITY_INFO);
        }
Ejemplo n.º 6
0
        //****************************************

        /// <summary>
        ///     构造方法
        /// </summary>
        public TunnelHChuanManagement()
        {
            InitializeComponent();

            //分页委托
            dataPager1.FrmChild_EventHandler += FrmParent_EventHandler;

            //窗体属性设置
            FormDefaultPropertiesSetter.SetManagementFormDefaultProperties(this, Const_GM.TUNNEL_HCHUAN_MANAGEMENT);

            //Farpoint属性设置
            FarpointDefaultPropertiesSetter.SetFpDefaultProperties(fpDayReportHChuan,
                                                                   Const_GM.TUNNEL_HCHUAN_FARPOINT_TITLE, _rowDetailStartIndex);

            _filterColunmIdxs = new[]
            {
                1,
                2,
                3,
                4,
                5,
                6,
                7,
                8,
                9,
                11,
                12,
                13
            };
            //禁用选择颜色相关控件
            farpointFilter1.EnableChooseColorCtrls(false);
            //设置自动隐藏过滤条件
            FarpointDefaultPropertiesSetter.SetFpFilterHideProperties(fpDayReportHChuan, _filterColunmIdxs);
        }
Ejemplo n.º 7
0
        /// <summary>
        ///     构造方法
        /// </summary>
        public WireInfoEntering()
        {
            InitializeComponent();
            FormDefaultPropertiesSetter.SetEnteringFormDefaultProperties(this, Const_GM.WIRE_INFO_ADD);
            selectTunnelUserControl1.LoadData();
            // 注册委托事件
            //selectTunnelUserControl1.TunnelNameChanged +=
            //    InheritTunnelNameChanged;
            ////巷道信息赋值
            //Dictionary<string, string> flds = new Dictionary<string, string>();
            //flds.Add(GIS_Const.FIELD_HDID, _tunnelID.ToString());

            //List<Tuple<IFeature, IGeometry, Dictionary<string, string>>> selobjs = Global.commonclss.SearchFeaturesByGeoAndText(Global.centerfdlyr, flds);

            //// 序号
            //int xh = 0;
            //if (selobjs.Count > 0)
            //    xh = Convert.ToInt16(selobjs[0].Item3[GIS_Const.FIELD_XH]) + 1;
            //string bid = "";
            //string hdname = "";
            //DataSet dst = LibBusiness.TunnelInfoBLL.selectOneTunnelInfoByTunnelID(_tunnelID);
            //if (dst.Tables[0].Rows.Count > 0)
            //{
            //    bid = dst.Tables[0].Rows[0][LibBusiness.TunnelInfoDbConstNames.BINDINGID].ToString();
            //    hdname = dst.Tables[0].Rows[0][LibBusiness.TunnelInfoDbConstNames.TUNNEL_NAME].ToString();
            //}

            //dics.Clear();
            //dics.Add(GIS_Const.FIELD_HDID, _tunnelID.ToString());
            //dics.Add(GIS_Const.FIELD_ID, "0");
            //dics.Add(GIS_Const.FIELD_BS, "1");
            //dics.Add(GIS_Const.FIELD_BID, bid);
            //dics.Add(GIS_Const.FIELD_NAME, hdname);
            //dics.Add(GIS_Const.FIELD_XH, xh.ToString());
        }
Ejemplo n.º 8
0
        /// <summary>
        ///     构造方法
        /// </summary>
        public DayReportJjManagement()
        {
            InitializeComponent();

            //窗体属性设置
            FormDefaultPropertiesSetter.SetManagementFormDefaultProperties(this, Const_MS.DAY_REPORT_JJ_MANAGEMENT);
        }
Ejemplo n.º 9
0
 /// <summary>
 ///     添加
 /// </summary>
 public TunnelInfoEntering()
 {
     InitializeComponent();
     //设置窗体格式
     FormDefaultPropertiesSetter.SetEnteringFormDefaultProperties(this, Const_GM.TUNNEL_INFO_ADD);
     Text = Const_GM.TUNNEL_INFO_ADD;
 }
Ejemplo n.º 10
0
 /// <summary>
 ///     修改
 /// </summary>
 public TunnelInfoEntering(Tunnel tunnel)
 {
     InitializeComponent();
     FormDefaultPropertiesSetter.SetEnteringFormDefaultProperties(this, Const_GM.TUNNEL_INFO_CHANGE);
     Text   = Const_GM.TUNNEL_INFO_CHANGE;
     Tunnel = tunnel;
 }
Ejemplo n.º 11
0
 /// <summary>
 ///     构造方法
 /// </summary>
 public GasGushQuantityInfoEntering()
 {
     GasGushQuantityPoint = null;
     InitializeComponent();
     // 设置窗体默认属性
     FormDefaultPropertiesSetter.SetEnteringFormDefaultProperties(this, Const_OP.INSERT_GASGUSHQUANTITY_INFO);
 }
Ejemplo n.º 12
0
        /// <summary>
        ///     构造方法
        /// </summary>
        public TunnelHcManagement()
        {
            InitializeComponent();

            //窗体属性设置
            FormDefaultPropertiesSetter.SetManagementFormDefaultProperties(this, Const_GM.TUNNEL_HC_MANAGEMENT);
        }
Ejemplo n.º 13
0
        //public event EventHandler<ItemClickEventArgs> ListBoxItemClick;

        //public class ItemClickEventArgs : EventArgs
        //{
        //    public int Index { get; set; }
        //}

        /// <summary>
        ///     构造方法
        /// </summary>
        public ProspectingLineInfoEntering()
        {
            InitializeComponent();

            // 设置窗体默认属性
            FormDefaultPropertiesSetter.SetEnteringFormDefaultProperties(this, Const_GM.INSERT_PROSPECTING_LINE_INFO);

            //this.listBox1.Click += (ss, ee) =>
            //{
            //    ListBox lb = ss as ListBox;
            //    Point p = lb.PointToClient(Control.MousePosition);
            //    for (int i = 0; i < lb.Items.Count; i++)
            //    {
            //        if (ListBoxItemClick != null && lb.GetItemRectangle(i).Contains(p))
            //        {
            //            ListBoxItemClick.Invoke(lb, new ItemClickEventArgs() { Index = i });
            //            break;
            //        }
            //    }
            //};

            //this.ListBoxItemClick += (s, e) =>
            //{
            //    MessageBox.Show(e.Index.ToString());
            //};

            // 绑定钻孔信息
        }
Ejemplo n.º 14
0
        /// <summary>
        ///     构造方法
        /// </summary>
        public CollapsePillarsManagement()
        {
            InitializeComponent();

            //设置窗体属性
            FormDefaultPropertiesSetter.SetManagementFormDefaultProperties(this, Const_GM.COLLAPSEPILLARE_MANAGEMENT);
        }
Ejemplo n.º 15
0
        /// <summary>
        ///     构造方法
        /// </summary>
        public GasPressureInfoManagement()
        {
            InitializeComponent();

            // 设置窗体默认属性
            FormDefaultPropertiesSetter.SetManagementFormDefaultProperties(this, Const_OP.MANAGE_GASPRESSURE_INFO);
        }
Ejemplo n.º 16
0
        /// <summary>
        ///     构造方法
        /// </summary>
        public WireInfoManagement()
        {
            InitializeComponent();

            //设置窗体属性
            FormDefaultPropertiesSetter.SetManagementFormDefaultProperties(this, Const_GM.WIRE_INFO_MANAGEMENT);
        }
Ejemplo n.º 17
0
        // 构造方法
        public ProspectingLineInfoManagement()
        {
            InitializeComponent();

            // 设置窗体默认属性
            FormDefaultPropertiesSetter.SetManagementFormDefaultProperties(this, Const_GM.MANAGE_PROSPECTING_LINE_INFO);
        }
Ejemplo n.º 18
0
        /// <summary>
        ///     构造方法
        /// </summary>
        public FaultageInfoEntering()
        {
            InitializeComponent();

            // 设置窗体默认属性
            FormDefaultPropertiesSetter.SetEnteringFormDefaultProperties(this, Const_GM.INSERT_FAULTAGE_INFO);
        }
Ejemplo n.º 19
0
        private void ShortMessage_Load(object sender, EventArgs e)
        {
            //注册事件
            uidm.CloseExternal(true);
            uidm.OnButtonClickHandle       += uidm_OnButtonClickHandle;
            uidm.OnCancleButtonClickHandle += uidm_OnButtonClickHandle;
            uidm.OnExiteClickHandle        += uidm_OnButtonClickHandle;

            //设置窗体能否接收子窗体
            IsMdiContainer = true;
            //设置窗体的子窗体
            uidm.MdiParent = this;
            //添加窗体
            panelFather.Controls.Add(uidm);
            //设置显示格式
            uidm.WindowState = FormWindowState.Maximized;
            uidm.Dock        = DockStyle.Fill;
            uidm.Show();
            uidm.Activate();
            //加载窗体默认属性
            FormDefaultPropertiesSetter.SetManagementFormDefaultProperties(this, Const_WM.SHORT_MESSAGE_MANUALSEND);
            //获取机器端口显示在Combox中
            var ports = SerialPort.GetPortNames();

            Array.Sort(ports);
            combPort.Items.AddRange(ports);
            combPort.SelectedIndex = 0;
            //波特率初值
            combBoteRate.SelectedIndex = 1;
        }
Ejemplo n.º 20
0
        /// <summary>
        ///     构造方法
        /// </summary>
        /// <param name="tunnelHcEntity">回采面实体</param>
        public TunnelHcEntering(WorkingFace tunnelHcEntity)
        {
            _workingFace = ObjectCopier.Clone(tunnelHcEntity);
            Text         = Const_GM.TUNNEL_HC_CHANGE;
            InitializeComponent();

            FormDefaultPropertiesSetter.SetEnteringFormDefaultProperties(this, Const_GM.TUNNEL_HC_CHANGE);
        }
Ejemplo n.º 21
0
 /// <summary>
 ///     构造方法
 /// </summary>
 public PitshaftInfoEntering()
 {
     InitializeComponent();
     // 设置窗体默认属性
     FormDefaultPropertiesSetter.SetEnteringFormDefaultProperties(this, Const_GM.INSERT_PITSHAFT_INFO);
     // 加载井筒类型信息
     LoadPitshaftTypeInfo();
 }
Ejemplo n.º 22
0
        /// <summary>
        ///     构造方法
        /// </summary>
        public BoreholeInfoEntering()
        {
            InitializeComponent();

            // 设置窗体默认属性
            FormDefaultPropertiesSetter.SetEnteringFormDefaultProperties(this, Const_GM.INSERT_BOREHOLE_INFO);
            DataBindUtil.LoadLithology(LITHOLOGY);
        }
Ejemplo n.º 23
0
        /// <summary>
        ///     带参数的构造方法
        /// </summary>
        /// <param name="borehole"></param>
        public BoreholeInfoEntering(Borehole borehole)
        {
            InitializeComponent();

            // 设置窗体默认属性
            FormDefaultPropertiesSetter.SetEnteringFormDefaultProperties(this, Const_GM.UPDATE_BOREHOLE_INFO);
            using (new SessionScope())
            {
                borehole = Borehole.Find(borehole.BoreholeId);
                // 孔号
                txtBoreholeNumber.Text = borehole.BoreholeNumber;
                // 地面标高
                txtGroundElevation.Text = borehole.GroundElevation.ToString(CultureInfo.InvariantCulture);
                // X坐标
                txtCoordinateX.Text = borehole.CoordinateX.ToString(CultureInfo.InvariantCulture);
                // Y坐标
                txtCoordinateY.Text = borehole.CoordinateY.ToString(CultureInfo.InvariantCulture);
                // Z坐标
                txtCoordinateZ.Text = borehole.CoordinateZ.ToString(CultureInfo.InvariantCulture);

                // 获取岩性信息

                DataBindUtil.LoadLithology(LITHOLOGY);

                // 明细


                gvCoalSeamsTexture.RowCount = borehole.BoreholeLithologys.Count + 1;
                for (var i = 0; i < borehole.BoreholeLithologys.Count; i++)
                {
                    // 岩性名称
                    var iLithologyId = borehole.BoreholeLithologys[i].Lithology.LithologyId;

                    var lithology = Lithology.Find(iLithologyId);

                    gvCoalSeamsTexture[0, i].Value = lithology.LithologyName;
                    // 底板标高
                    gvCoalSeamsTexture[1, i].Value = borehole.BoreholeLithologys[i].FloorElevation;
                    // 厚度
                    gvCoalSeamsTexture[2, i].Value = borehole.BoreholeLithologys[i].Thickness;
                    // 煤层名称
                    gvCoalSeamsTexture[3, i].Value = borehole.BoreholeLithologys[i].CoalSeamsName;

                    // 坐标X
                    gvCoalSeamsTexture[4, i].Value =
                        borehole.BoreholeLithologys[i].CoordinateX.ToString(CultureInfo.InvariantCulture);

                    // 坐标Y
                    gvCoalSeamsTexture[5, i].Value =
                        borehole.BoreholeLithologys[i].CoordinateY.ToString(CultureInfo.InvariantCulture);

                    // 坐标Z
                    gvCoalSeamsTexture[6, i].Value =
                        borehole.BoreholeLithologys[i].CoordinateX.ToString(CultureInfo.InvariantCulture);
                }
            }
        }
Ejemplo n.º 24
0
        /// <summary>
        /// </summary>
        /// <param name="sOutTunnelId">Tunnel WirePointName</param>
        /// <param name="sOutWorkface">Work Face Name</param>
        /// <param name="sOutDate">Date</param>
        /// <param name="sOutShift">班次</param>
        /// <param name="sOutWarningResult">预警结果</param>
        /// <param name="sOutWarningType">预警类型</param>
        /// <param name="sOutWarningItem">预警项目:瓦斯/地质构造/煤层赋存/通风/管理</param>
        /// <param name="isHistory"></param>
        public PreWarningResultDetailsQuery(string sOutTunnelId,
                                            string sOutWorkface, string sOutDate, string sOutShift,
                                            string sOutWarningResult, string sOutWarningType,
                                            string sOutWarningItem, bool isHistory)
        {
            InitializeComponent();

            cells = _fpPreWarningResultDetials.ActiveSheet.Cells;

            this.isHistory = isHistory;

            #region Farpoint自动过滤功能

            //初始化需要过滤功能的列
            _filterColunmIdxs = new[]
            {
                3
            };
            //设置自动隐藏过滤条件
            FarpointDefaultPropertiesSetter.SetFpFilterHideProperties(_fpPreWarningResultDetials, _filterColunmIdxs);

            #endregion

            //设置窗体的样式及显示名称
            FormDefaultPropertiesSetter.SetManagementFormDefaultProperties(this,
                                                                           Const_WM.PREWARNING_RESULT_DETAILS_QUERY);

            //定义Farpoint的行列数
            _fpPreWarningResultDetials.ActiveSheet.Rows.Count    = FROZEN_ROW_COUNT;
            _fpPreWarningResultDetials.ActiveSheet.Columns.Count = COULMN_COUNT;

            // 加载预警结果详细信息。
            //LoadWarningResultDetail(sOutTunnelId,
            //            sOutWorkface, sOutDate, sOutShift,
            //            sOutWarningResult, sOutWarningType, sOutWarningItem);
            LoadWarningResultDetail(sOutWorkface, sOutDate, sOutShift,
                                    sOutWarningResult, sOutWarningType, sOutWarningItem);


            _txtDateShift.Text   = sOutShift;    // 班次
            _txtDateTime.Text    = sOutDate;     // 日期时间
            _txtWorkingFace.Text = sOutWorkface; // 工作面

            _fpPreWarningResultDetials.Focus();
            _fpPreWarningResultDetials.SetCursor(CursorType.Normal, Cursors.Hand);

            // 隐藏下面的几列
            _fpPreWarningResultDetials.ActiveSheet.Columns[COLUMN_INDEX_HIDE_DATA_ID].Visible    = false;
            _fpPreWarningResultDetials.ActiveSheet.Columns[COLUMN_INDEX_HIDE_WARNING_ID].Visible = false;

            // 历史信息和实时信息都要显示在这一个页面中,因此需要设置某些空间的Enabled/Visible属性。
            btnDoIt.Visible       = !isHistory;
            _btnUploadImg.Visible = !isHistory;
            _btnDeleteImg.Visible = !isHistory;
            RefreshImgListFromDb();
        }
Ejemplo n.º 25
0
        /// <summary>
        ///     构造方法
        /// </summary>
        public ProbeInfoEntering()
        {
            InitializeComponent();

            // 设置窗体默认属性
            FormDefaultPropertiesSetter.SetEnteringFormDefaultProperties(this, Const_GE.INSERT_PROBE_INFO);

            // 调用选择巷道控件时需要调用的方法
            //this.selectTunnelSimple1.loadMineName();
        }
Ejemplo n.º 26
0
        public TunnelHChuanEntering(TunnelHChuan tunnelHChuanEntity, TunnelHChuanManagement frmhc)
        {
            frmStop = frmhc;
            this.tunnelHChuanEntity = tunnelHChuanEntity;
            tmpTunnelHChuanEntity   = tunnelHChuanEntity;

            InitializeComponent();

            FormDefaultPropertiesSetter.SetEnteringFormDefaultProperties(this, Const_GM.TUNNEL_HCHUAN_CHANGE);
        }
Ejemplo n.º 27
0
        /// <summary>
        ///     带参数的构造方法
        /// </summary>
        /// <param name="strPrimaryKey">主键</param>
        public ProspectingLineInfoEntering(ProspectingLine prospectingLine)
        {
            InitializeComponent();

            // 设置窗体默认属性
            FormDefaultPropertiesSetter.SetEnteringFormDefaultProperties(this, Const_GM.UPDATE_PROSPECTING_LINE_INFO);

            // 设置业务类型
            _bllType = "update";
        }
Ejemplo n.º 28
0
        /// <summary>
        ///     带参数的构造方法
        /// </summary>
        public FaultageInfoEntering(Faultage faultage)
        {
            InitializeComponent();
            Faultage = faultage;
            // 设置窗体默认属性
            FormDefaultPropertiesSetter.SetEnteringFormDefaultProperties(this, Const_GM.UPDATE_FAULTAGE_INFO);

            // 设置断层信息
            // 断层名称
            txtFaultageName.Text = Faultage.FaultageName;
            // 落差
            txtGap.Text = Faultage.Gap;
            // 倾角
            txtAngle.Text = Faultage.Angle.ToString(CultureInfo.InvariantCulture);
            // 类型
            if (Const_GM.FRONT_FAULTAGE.Equals(Faultage.Type))
            {
                rbtnFrontFaultage.Checked = true;
            }
            else
            {
                rbtnOppositeFaultage.Checked = true;
            }
            // 走向
            txtTrend.Text = Faultage.Trend.ToString(CultureInfo.InvariantCulture);
            // 断距
            txtSeparation.Text = Faultage.Separation;
            // 坐标X
            txtCoordinateX.Text = Faultage.CoordinateX.ToString(CultureInfo.InvariantCulture);
            // 坐标Y
            txtCoordinateY.Text = Faultage.CoordinateY.ToString(CultureInfo.InvariantCulture);
            // 坐标Z
            txtCoordinateZ.Text = Faultage.CoordinateZ.ToString(CultureInfo.InvariantCulture);
            //长度
            var bid          = Faultage.BindingId;
            var pLayer       = DataEditCommon.GetLayerByName(DataEditCommon.g_pMap, LayerNames.DEFALUT_EXPOSE_FAULTAGE);
            var featureLayer = (IFeatureLayer)pLayer;

            if (pLayer == null)
            {
                txtLength.Text = @"0";
                return;
            }
            var pFeature = MyMapHelp.FindFeatureByWhereClause(featureLayer, "BID='" + bid + "'");

            if (pFeature != null)
            {
                var pline = (IPolyline)pFeature.Shape;
                if (pline == null)
                {
                    return;
                }
                txtLength.Text = Math.Round(pline.Length).ToString(CultureInfo.InvariantCulture);
            }
        }
Ejemplo n.º 29
0
        /// <summary>
        ///     构造方法
        /// </summary>
        /// <param name="tunnelEntity"></param>
        public TunnelJjEntering(Tunnel tunnelEntity)
        {
            this.tunnelEntity = tunnelEntity;

            InitializeComponent();

            //绑定修改信息

            //窗体属性设置
            FormDefaultPropertiesSetter.SetEnteringFormDefaultProperties(this, Const_GM.TUNNEL_JJ_CHANGE);
        }
Ejemplo n.º 30
0
        /// <summary>
        ///     构造方法
        /// </summary>
        /// <param name="stopLineEntity">停采线实体</param>
        public StopLineEntering(StopLine stopLineEntity)
        {
            this.stopLineEntity = stopLineEntity;

            InitializeComponent();
            //绑定修改初始信息
            updateInfo();

            //窗体属性设置
            FormDefaultPropertiesSetter.SetEnteringFormDefaultProperties(this, Const_MS.STOP_LINE_CHANGE);
        }