Beispiel #1
0
        /// <summary>
        /// 更新集包重量
        /// </summary>
        private void GetJbWeight()
        {
            if (JBDoneProcessWeightCount != JBReadyProcessWeightCount)
            {
                return;
            }
            PageDataProcess process = new PageDataProcess();

            process.setSigleData = SetJBData;

            ResetJBWeightParam();
            foreach (DataGridViewRow item in gvInfo.Rows)
            {
                if (item.Cells[2].Value != null && item.Cells[4].Value == null)
                {
                    JBReadyProcessWeightCount++;
                    progressBar2.Maximum++;
                    ThreadPool.QueueUserWorkItem(state => process.ProcessOrderWeight(item.Cells[2].Value.ToString() + "," + item.Cells[1].Value.ToString(), true));
                }
            }
        }