Exemple #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();
            //}
        }
Exemple #2
0
 private void CCigTransfer_Load(object sender, EventArgs e)
 {
     DataGridViewTranslation.LoadMainColHeader(dgvnewlinebox);
     DataGridViewTranslation.LoadMainColHeader(dgvoldlinebox);
     dgvoldlinebox.DataSource = SortingLineBoxList.GetBindLineBoxList();
     dgvnewlinebox.DataSource = SortingLineBoxList.GetEmptyLineBoxList();
 }
Exemple #3
0
 private void COutPortTransfer_Load(object sender, EventArgs e)
 {
     DataGridViewTranslation.LoadMainColHeader(dgvfirstout);
     DataGridViewTranslation.LoadMainColHeader(dgvsecout);
     dgvfirstout.DataSource = OutPortTransfer.GetOutPortTaskList("1");
     dgvsecout.DataSource   = OutPortTransfer.GetOutPortTaskList("2");
     btndisfirst.Pulse(10);
     btndissec.Pulse(10);
 }
Exemple #4
0
 public CSortingEfficiency()
 {
     InitializeComponent();
     dateTimeInput1.Value = DateTime.Now;
     DataGridViewTranslation.LoadMainColHeader(dgvSortingEfficiency);
     footSumLabel1.Init(dgvSortingEfficiency,
                        new Dictionary <string, int>()
     {
         { "qTYPRODCUTTOTDataGridViewTextBoxColumn", 0 },
         { "qTYPRODUCTDataGridViewTextBoxColumn", 0 },
     });
 }
Exemple #5
0
        //private void TaskFinish()
        //{
        //    PlCResult plCResult = new PlCResult();


        //        while (taskStatus == TaskStatus.Run)
        //        {

        //                    plCResult = operateOpcAndSoft.IsIntaskScanFinish();
        //                    if (plCResult.Succeed)
        //                    {
        //                        //写日志
        //                        MonitorLog monitorLog = MonitorLog.NewMonitorLog();
        //                        monitorLog.LOGNAME = "PLC任务下达";
        //                        monitorLog.LOGINFO = "PLCTASKNO:" + inTask.INDEXNO.ToString().PadRight(10);
        //                        monitorLog.LOGINFO = "CIG:" + inTask.CIGCODE + "-" + inTask.CIGNAME + "-" +
        //                                             inTask.PICKLINENAME +
        //                                             "-" + inTask.INQTY;
        //                        monitorLog.LOGLOCATION = "PLC";
        //                        monitorLog.LOGTYPE = 0;
        //                        monitorLog.Save();
        //                        //加载数据
        //                        this.BeginInvoke(new MethodInvoker(LoadInTask));

        //                        //while (!operateOpcAndSoft.IsIntaskScanFinish(inTask))
        //                        //{
        //                        //    Thread.Sleep(300);
        //                        //}
        //                    }
        //                    else
        //                    {
        //                        //写日志
        //                        MonitorLog monitorLog = MonitorLog.NewMonitorLog();
        //                        monitorLog.LOGNAME = "PLC补货任务下达异常";
        //                        monitorLog.LOGINFO = plCResult.Exception;
        //                        monitorLog.LOGLOCATION = "PLC";
        //                        monitorLog.LOGTYPE = 0;
        //                        monitorLog.Save();
        //                    }
        //                }
        //            Thread.Sleep(1000);
        //        }



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


            if (IsVerifyPass())
            {
                LoadInTask();
                monitorLog             = MonitorLog.NewMonitorLog();
                monitorLog.LOGNAME     = "数据库读取";
                monitorLog.LOGINFO     = "补货数据读取成功!";
                monitorLog.LOGLOCATION = "数据库";
                monitorLog.LOGTYPE     = 1;
                monitorLog.Save();
                LoadPLCTask();
            }
            maxtaskno = InTask.GetMaxIndex();
        }
Exemple #6
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;
            }
        }
Exemple #7
0
 private void CBox_Load(object sender, EventArgs e)
 {
     DataGridViewTranslation.LoadMainColHeader(dgviewnone);
     DataGridViewTranslation.LoadMainColHeader(dgviewfin);
     LoadCigBox();
 }