Ejemplo n.º 1
0
        /// <summary>
        ///     设置班次名称
        /// </summary>
        private void SetWorkTimeName()
        {
            string sysDateTime     = DateTime.Now.ToString("HH:mm:ss");
            var    strWorkTimeName = MineDataSimpleBLL.selectWorkTimeNameByWorkTimeGroupIdAndSysTime(rbtn38.Checked ? 1 : 2, sysDateTime);

            if (!string.IsNullOrEmpty(strWorkTimeName))
            {
                cboWorkTime.Text = strWorkTimeName;
            }
        }
Ejemplo n.º 2
0
        /// <summary>
        ///     设置班次名称
        /// </summary>
        private void SetWorkTimeName()
        {
            var sysDateTime     = DateTime.Now.ToString("HH:mm:ss");
            var strWorkTimeName = MineDataSimpleBLL.selectWorkTimeNameByWorkTimeGroupIdAndSysTime(
                rbtn38.Checked ? 1 : 2, sysDateTime);

            if (!string.IsNullOrEmpty(strWorkTimeName))
            {
                dgrdvDayReportHC[C_WORK_TIME, 0].Value = strWorkTimeName;
            }
        }
Ejemplo n.º 3
0
        /// <summary>
        /// 设置班次名称
        /// </summary>
        private void setWorkTimeName()
        {
            string strWorkTimeName = "";
            string sysDateTime     = DateTime.Now.ToString("HH:mm:ss");

            if (this.rbtn38.Checked == true)
            {
                strWorkTimeName = MineDataSimpleBLL.selectWorkTimeNameByWorkTimeGroupIdAndSysTime(1, sysDateTime);
            }
            else
            {
                strWorkTimeName = MineDataSimpleBLL.selectWorkTimeNameByWorkTimeGroupIdAndSysTime(2, sysDateTime);
            }

            if (strWorkTimeName != null && strWorkTimeName != "")
            {
                cboWorkTime.Text = strWorkTimeName;
            }
        }
        QueryLastedPreWarningResult(string time)
        {
            var tunnels = Tunnel.FindAllWithHasRules();

            var shift = MineDataSimpleBLL.selectWorkTimeNameByWorkTimeGroupIdAndSysTime(
                WorkingTimeDefault.FindFirst().DefaultWorkTimeGroupId, time);

            return(tunnels.Select(tunnel => new PreWarningResultQuery
            {
                DateTime = Convert.ToDateTime(time),
                Date_Shift = shift,
                TunnelID = tunnel.TunnelId,
                TunelName = GetTunelNameByTunelID(tunnel.TunnelId),
                WorkingfaceId = tunnel.WorkingFace.WorkingFaceId,
                WorkingfaceName = tunnel.WorkingFace.WorkingFaceName,
                OutBrustWarningResult = new WarningResultEnt
                {
                    WarningResult = (int)WarningResult.GREEN,
                    Coal = (int)WarningResult.GREEN,
                    Gas = (int)WarningResult.GREEN,
                    Geology = (int)WarningResult.GREEN,
                    Management = (int)WarningResult.GREEN,
                    Ventilation = (int)WarningResult.GREEN,
                    HandleStatus = 0,
                },
                OverLimitWarningResult = new WarningResultEnt
                {
                    WarningResult = (int)WarningResult.GREEN,
                    Coal = (int)WarningResult.GREEN,
                    Gas = (int)WarningResult.GREEN,
                    Geology = (int)WarningResult.GREEN,
                    Management = (int)WarningResult.GREEN,
                    Ventilation = (int)WarningResult.GREEN,
                    HandleStatus = 0,
                }
            }).ToList());
        }