Ejemplo n.º 1
0
        /*****************************/

        public TunnelHCJZEntering()
        {
            InitializeComponent();
            //日期
            dtpDate.Value = DateTime.Now.Date;
            //
            //设置窗体格式
            FormDefaultPropertiesSetter.SetEnteringFormDefaultProperties(this, "回采工作面校正");

            //this.selectTunnelUserControl1.init(this.MainForm);
            //自定义控件巷道过滤
            //this.selectTunnelUserControl1.SetFilterOn(TunnelTypeEnum.TUNNELLING);
            //自定义控件初始化
            //this.selectTunnelUserControl1.setCurSelectedID(_arr);
            //this.selectTunnelUserControl1.setCurSelectedID(_arr);
            //自定义控件初始化
            //LibEntity.WorkingFaceSelect workingFaceSelectEntity = LibBusiness.WorkingFaceSelect.SelectWorkingFace(DayReportHCDbConstNames.TABLE_NAME);
            //if (workingFaceSelectEntity != null)
            //{
            //    _arr = new int[5];
            //    _arr[0] = workingFaceSelectEntity.MineID;
            //    _arr[1] = workingFaceSelectEntity.HorizontalID;
            //    _arr[2] = workingFaceSelectEntity.MiningAreaID;

            //    this.selectWorkingFaceControl1.setCurSelectedID(_arr);
            //}
            //else
            //{
            selectWorkingFaceControl1.LoadData();
            //}
            // 注册委托事件
            //selectWorkingFaceControl1.WorkingFaceNameChanged += NameChangeEvent;
        }
Ejemplo n.º 2
0
 /// <summary>
 /// 构造方法
 /// </summary>
 /// <param name="tunnel"></param>
 public SelectTunnelDlg(Tunnel tunnel)
 {
     InitializeComponent();
     //窗体属性设置
     FormDefaultPropertiesSetter.SetEnteringFormDefaultProperties(this, Const_GM.TUNNEL_CHOOSE);
     SelectedTunnel = tunnel;
 }
Ejemplo n.º 3
0
        /// <summary>
        ///     构造方法
        /// </summary>
        public FaultageInfoEntering()
        {
            InitializeComponent();

            // 设置窗体默认属性
            FormDefaultPropertiesSetter.SetEnteringFormDefaultProperties(this, Const_GM.INSERT_FAULTAGE_INFO);
        }
Ejemplo n.º 4
0
 public SelectTunnelDlg(WorkingFace workingFace)
 {
     InitializeComponent();
     //窗体属性设置
     FormDefaultPropertiesSetter.SetEnteringFormDefaultProperties(this, Const_GM.TUNNEL_CHOOSE);
     selectTunnelUserControl1.LoadData(workingFace);
 }
Ejemplo n.º 5
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.º 6
0
        /// <summary>
        ///     构造方法
        /// </summary>
        public GasPressureInfoEntering()
        {
            InitializeComponent();

            // 设置窗体默认属性
            FormDefaultPropertiesSetter.SetEnteringFormDefaultProperties(this, Const_OP.INSERT_GASPRESSURE_INFO);
        }
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 GasGushQuantityInfoEntering()
 {
     GasGushQuantityPoint = null;
     InitializeComponent();
     // 设置窗体默认属性
     FormDefaultPropertiesSetter.SetEnteringFormDefaultProperties(this, Const_OP.INSERT_GASGUSHQUANTITY_INFO);
 }
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 GasConcentrationProbeDataEntering()
        {
            InitializeComponent();

            //分配权限
            if (CurrentUser.CurLoginUserInfo.Permission != Permission.管理员.ToString())
            {
                selectTunnelUserControl1.SetButtonEnable(false);
            }

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

            // 设置日期控件格式
            dtpRecordTime.Format       = DateTimePickerFormat.Custom;
            dtpRecordTime.CustomFormat = Const.DATE_FORMART_YYYY_MM_DD;

            // 调用选择巷道控件时需要调用的方法
            selectTunnelUserControl1.LoadData();

            // 注册委托事件
            //selectTunnelUserControl1.TunnelNameChanged +=
            //    InheritTunnelNameChanged;
        }
Ejemplo n.º 11
0
        /// <summary>
        ///     带参数的构造方法
        /// </summary>
        /// <param name="intArr"></param>
        public GasConcentrationProbeDataEntering(string strPrimaryKey)
        {
            InitializeComponent();

            _iPK = strPrimaryKey;

            // 设置业务类型
            _bllType = "update";

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

            // 设置日期控件格式
            dtpRecordTime.Format       = DateTimePickerFormat.Custom;
            dtpRecordTime.CustomFormat = Const.DATE_FORMART_YYYY_MM_DD;

            // 调用选择巷道控件时需要调用的方法
            //selectTunnelUserControl1.setCurSelectedID(intArr);

            // 注册委托事件
            //selectTunnelUserControl1.TunnelNameChanged +=
            //    InheritTunnelNameChanged;

            // 设置瓦斯浓度探头数据
            setGasConcentrationProbeData(strPrimaryKey);
        }
Ejemplo n.º 12
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.º 13
0
        /*************************************/

        public TunnelHChuanEntering(TunnelHChuanManagement frmhc)
        {
            frmStop = frmhc;
            InitializeComponent();

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

            //默认回采未完毕
            rbtnHChuanN.Checked = true;

            //默认工作制式选择
            if (WorkingTimeDefault.FindFirst().DefaultWorkTimeGroupId == Const_MS.WORK_GROUP_ID_38)
            {
                rbtn38.Checked = true;
            }
            else
            {
                rbtn46.Checked = true;
            }
            ////返回当前
            //cboWorkTime.Text = WorkTime.returnSysWorkTime(rbtn38.Checked ? Const_MS.WORK_TIME_38 : Const_MS.WORK_TIME_46);
            // 设置班次名称
            setWorkTimeName();
        }
Ejemplo n.º 14
0
 /// <summary>
 /// 构造方法
 /// </summary>
 public SelectTunnelDlg()
 {
     InitializeComponent();
     selectTunnelUserControl1.LoadData();
     // 设置窗体默认属性
     FormDefaultPropertiesSetter.SetEnteringFormDefaultProperties(this, Const_GE.CHOOSE_TUNNEL);
 }
Ejemplo n.º 15
0
 /// <summary>
 ///     构造方法
 /// </summary>
 public PitshaftInfoEntering()
 {
     InitializeComponent();
     // 设置窗体默认属性
     FormDefaultPropertiesSetter.SetEnteringFormDefaultProperties(this, Const_GM.INSERT_PITSHAFT_INFO);
     // 加载井筒类型信息
     LoadPitshaftTypeInfo();
 }
Ejemplo n.º 16
0
        /// <summary>
        ///     构造方法
        /// </summary>
        public BoreholeInfoEntering()
        {
            InitializeComponent();

            // 设置窗体默认属性
            FormDefaultPropertiesSetter.SetEnteringFormDefaultProperties(this, Const_GM.INSERT_BOREHOLE_INFO);
            DataBindUtil.LoadLithology(LITHOLOGY);
        }
Ejemplo n.º 17
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.º 18
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.º 19
0
        /// <summary>
        ///     构造方法
        /// </summary>
        public ProbeInfoEntering()
        {
            InitializeComponent();

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

            // 调用选择巷道控件时需要调用的方法
            //this.selectTunnelSimple1.loadMineName();
        }
Ejemplo n.º 20
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.º 21
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.º 22
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.º 23
0
        /// <summary>
        ///     构造方法
        /// </summary>
        /// <param name="stopLineEntity">停采线实体</param>
        public StopLineEntering(StopLine stopLineEntity)
        {
            this.stopLineEntity = stopLineEntity;

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

            //窗体属性设置
            FormDefaultPropertiesSetter.SetEnteringFormDefaultProperties(this, Const_MS.STOP_LINE_CHANGE);
        }
Ejemplo n.º 24
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.º 25
0
        public BoreholeInfoEntering(IPoint pt)
        {
            InitializeComponent();

            // 设置窗体默认属性
            FormDefaultPropertiesSetter.SetEnteringFormDefaultProperties(this, Const_GM.INSERT_BOREHOLE_INFO);
            txtCoordinateX.Text = pt.X.ToString(CultureInfo.InvariantCulture);
            txtCoordinateY.Text = pt.Y.ToString(CultureInfo.InvariantCulture);
            txtCoordinateZ.Text = pt.Z.ToString(CultureInfo.InvariantCulture).Equals("非数字")
                ? "0"
                : pt.Z.ToString(CultureInfo.InvariantCulture);
            DataBindUtil.LoadLithology(LITHOLOGY);
        }
Ejemplo n.º 26
0
        /// <summary>
        ///     构造方法
        /// </summary>
        public DayReportHcEntering()
        {
            InitializeComponent();

            dgrdvDayReportHC.Controls.Add(dtp);             //把时间控件加入DataGridView
            dtp.Visible      = false;                       //先不让它显示
            dtp.Format       = DateTimePickerFormat.Custom; //设置日期格式为2010-08-05
            dtp.TextChanged += dtp_TextChange;              //为时间控件加入事件dtp_TextChange
            //设置窗体格式
            FormDefaultPropertiesSetter.SetEnteringFormDefaultProperties(this, Const_MS.DAY_REPORT_HC_ADD);

            dgrdvDayReportHC[2, 0].Value = "回采";
            //绑定队别名称
        }
Ejemplo n.º 27
0
        /// <summary>
        /// 修改
        /// </summary>
        /// <param name="k1Value"></param>
        public K1ValueEntering(K1Value k1Value)
        {
            InitializeComponent();
            K1Value = k1Value;

            FormDefaultPropertiesSetter.SetEnteringFormDefaultProperties(this, Const_OP.K1_VALUE_CHANGE);
            var k1ValueList = K1Value.FindAllByK1ValueId(k1Value.K1ValueId);

            selectTunnelSimple1.SetTunnel(K1Value.Tunnel);
            foreach (var k1 in k1ValueList)
            {
                dgrdvK1Value.Rows.Add(k1.ValueK1Dry, k1.ValueK1Wet, k1.Sg, k1.Sv, k1.Q, k1.BoreholeDeep, k1.Time);
            }
        }
Ejemplo n.º 28
0
        /// <summary>
        ///     构造方法
        /// </summary>
        public DayReportJjEntering()
        {
            InitializeComponent();

            dgrdvDayReportJJ.DataError += delegate { };

            dgrdvDayReportJJ.Controls.Add(dtp);             //把时间控件加入DataGridView
            dtp.Visible      = false;                       //先不让它显示
            dtp.Format       = DateTimePickerFormat.Custom; //设置日期格式为2010-08-05
            dtp.TextChanged += dtp_TextChange;              //为时间控件加入事件dtp_TextChange

            //设置窗体格式
            FormDefaultPropertiesSetter.SetEnteringFormDefaultProperties(this, Const_MS.DAY_REPORT_JJ_ADD);
        }
Ejemplo n.º 29
0
 /// <summary>
 /// 构造方法
 /// </summary>
 /// <param name="team">队别信息实体</param>
 public TeamInfoEntering(Team team)
 {
     InitializeComponent();
     Team               = team;
     txtTeamName.Text   = team.TeamName;
     txtTeamLeader.Text = team.TeamLeader;
     if (team.TeamMember != "")
     {
         string[] teamMember = team.TeamMember.Split(Const_MS.TEAM_INFO_MEMBER_BREAK_SIGN);
         foreach (string t in teamMember)
         {
             lstTeamMate.Items.Add(t);
         }
     }
     FormDefaultPropertiesSetter.SetEnteringFormDefaultProperties(this, Const_MS.TEAM_INFO_CHANGE);
 }
Ejemplo n.º 30
0
        /// <summary>
        ///     构造方法
        /// </summary>
        public DayReportHcEntering(DayReportHc dayReportHc)
        {
            InitializeComponent();
            _dayReportHc = dayReportHc;
            //修改初始化
            //设置窗体格式
            FormDefaultPropertiesSetter.SetEnteringFormDefaultProperties(this, Const_MS.DAY_REPORT_HC_CHANGE);

            //this.selectWorkingFaceControl1.setCurSelectedID(_arr);

            dgrdvDayReportHC.AllowUserToAddRows = false;

            dgrdvDayReportHC.Controls.Add(dtp);                        //把时间控件加入DataGridView
            dtp.Visible                 = false;                       //先不让它显示
            dtp.Format                  = DateTimePickerFormat.Custom; //设置日期格式为2010-08-05
            dtp.TextChanged            += dtp_TextChange;              //为时间控件加入事件dtp_TextChange
            dgrdvDayReportHC.DataError += delegate { };
        }