Esempio n. 1
0
        private void CSortingTask_Load(object sender, EventArgs e)
        {
            DataGridViewTranslation.LoadMainColHeader(dgviewnone);
            DataGridViewTranslation.LoadMainColHeader(dgvIssued);
            DataGridViewTranslation.LoadMainColHeader(dgviewfin);

            DataGridViewTranslation.LoadDetailColHeader(dgviewnonedetail);
            DataGridViewTranslation.LoadDetailColHeader(dgvIssueddetail);
            DataGridViewTranslation.LoadDetailColHeader(dgviewfindetail);

            LoadOrder();
            superTabControl1.SelectedTabIndex = 0;

            //程序开始就启动到达线程
            //if (Arrivedthread == null)
            //{
            //    Arrivedthread = new Thread(FinishTask);
            //    Arrivedthread.IsBackground = true;
            //    Arrivedthread.Name = "ArrivedthreadTask";
            //    Arrivedthread.Start();


            //    monitorLog = MonitorLog.NewMonitorLog();
            //    monitorLog.LOGNAME = "线程操作";
            //    monitorLog.LOGINFO = "分拣任务到达线程开始!";
            //    monitorLog.LOGLOCATION = "线程";
            //    monitorLog.LOGTYPE = 0;
            //    monitorLog.Save();
            //}
        }
Esempio n. 2
0
        //void LoadGridData(DataGridViewX dataGrid)
        //{
        //    if (!dataGrid.InvokeRequired)
        //    {
        //        dataGrid.DataSource = null;
        //        dataGrid.DataSource = m_SortingTaskIssuedList;
        //    }
        //    else
        //    {
        //        d_LoadGridData de = LoadGridData;
        //        this.Invoke(de, dataGrid);
        //    }
        //}

        //public void LoadTask()
        //{
        //    //this.SuspendLayout();
        //    m_SortingTaskIssuedList = SortingTaskIssuedList.GetSortingTaskIssuedList();
        //    LoadGridData(dataGridViewX2);
        //    //this.ResumeLayout(false);
        //}



        private void CSortingTask_Load(object sender, EventArgs e)
        {
            DataGridViewTranslation.LoadMainColHeader(dgviewnone);

            DataGridViewTranslation.LoadMainColHeader(dgviewfin);

            DataGridViewTranslation.LoadDetailColHeader(dgviewnonedetail);

            DataGridViewTranslation.LoadDetailColHeader(dgviewfindetail);

            if (IsVerifyPass())
            {
                LoadOrder();
                monitorLog             = MonitorLog.NewMonitorLog();
                monitorLog.LOGNAME     = "数据库读取";
                monitorLog.LOGINFO     = "异型烟订单数据读取成功!";
                monitorLog.LOGLOCATION = "数据库";
                monitorLog.LOGTYPE     = 1;
                monitorLog.Save();
                superTabControl1.SelectedTabIndex = 0;
            }
        }