Esempio n. 1
0
        private void ResultLockInfo()
        {
            dgLockInfo.ItemsSource = null;
            PushInfoHelper helper = new PushInfoHelper();

            dgLockInfo.ItemsSource = helper.QueryLockInfo(Start, End, GetQueryRoom());
        }
Esempio n. 2
0
        private DataTable QuerySumInfo()
        {
            PushInfoHelper helper = new PushInfoHelper();

            sumHelper = helper.QuerySumInfo(Start, cboPeriod.SelectedIndex, chkSchedule.IsChecked.Value);
            return(helper.ListToDataTable(sumHelper));
        }
Esempio n. 3
0
        private void ResultCurData()
        {
            PushInfoHelper helper = new PushInfoHelper();

            curSource             = helper.QueryCurInfo(Start, End, GetQueryRoom());
            dgPlotter.ItemsSource = null;
            dgPlotter.ItemsSource = curSource;
        }
Esempio n. 4
0
        /// <summary>
        /// 推焦开始信号到达后记录的数据ToPushInfoDB
        /// </summary>
        private void PushDataPart1()
        {
            GetJobCar(Communication.CarsLst[0], Communication.CarsLst[1], Addrs.TRoomNumDic);
            PushTime      = DateTime.Now.ToString("G");
            PushPlanIndex = GetIndexOfPushPlan();
            psInfo        = new PsInfo(PushPlanIndex, PushTime, CarNum == 1 ? (Tjc)Communication.CarsLst[0] : (Tjc)Communication.CarsLst[1]);
            //记录到数据库:需注意工作车或非工作推焦车的Info
            PushInfoHelper push = new PushInfoHelper(new DbAppDataContext(Setting.ConnectionStr), psInfo, true);

            push.RecToDB();
        }
Esempio n. 5
0
        private void ResultSumData()
        {
            PushInfoHelper   helper = new PushInfoHelper();
            List <SumHelper> lst    = helper.QuerySumInfo(Start, cboPeriod.SelectedIndex, chkSchedule.IsChecked.Value);

            dgSum.ItemsSource = null;
            dgSum.ItemsSource = lst;
            if (lst == null || lst.Count == 0)
            {
                return;
            }
            dgSum1.ItemsSource = null;
            dgSum1.ItemsSource = helper.AddLastRow(lst).DefaultView;
        }
Esempio n. 6
0
        /// <summary>
        /// 推焦结束信号到达后记录的数据ToPushInfoDB
        /// </summary>
        private void PushDataPart2()
        {
            if (psInfo == null)
            {
                PushDataPart1();
            }
            psInfo.MaxCur  = PushCurMax;
            psInfo.AvgCur  = PushCurAvg;
            psInfo.CurArr  = Convert.ToBase64String(PushCurLst.ToArray());
            psInfo.PoleArr = Convert.ToBase64String(PushPoleLst.ToArray());
            psInfo.EndTime = DateTime.Now;
            //记录到数据库:需注意工作车或非工作推焦车的Info
            PushInfoHelper push = new PushInfoHelper(new DbAppDataContext(Setting.ConnectionStr), psInfo, false);

            push.RecToDB();
            psInfo = null;
        }
Esempio n. 7
0
        private DataTable QueryPushInfo()
        {
            PushInfoHelper helper = new PushInfoHelper();

            return(helper.QueryRec(Start, End, GetQueryRoom()));
        }