コード例 #1
0
 private void GetWeight()
 {
     if (DoneProcessWeightCount != ReadyProcessWeightCount)
     {
         return;
     }
     ResetWeightParam();
     foreach (DataGridViewRow item in dataGridView1.Rows)
     {
         if (item.Cells[2].Value != null && item.Cells[8].Value.ToString() == "未纠正")
         {
             ReadyProcessWeightCount++;
             progressBar1.Maximum++;
             ThreadPool.QueueUserWorkItem(state => pageProcess.ProcessOrderWeight(item.Cells[2].Value.ToString() + "," + item.Cells[1].Value.ToString()));
         }
     }
 }
コード例 #2
0
 private void GetWeight()
 {
     if (DoneProcessWeightCount != ReadyProcessWeightCount)
     {
         return;
     }
     ResetWeightParam();
     foreach (DataGridViewRow item in gvInfo.Rows)
     {
         if (item.Cells[1].Value == null)
         {
             continue;
         }
         if (item.Cells[3].Value == null || string.IsNullOrEmpty(item.Cells[3].Value.ToString()))
         {
             ReadyProcessWeightCount++;
             progressBar1.Maximum++;
             ThreadPool.QueueUserWorkItem(state => pageProcess.ProcessOrderWeight(item.Cells[2].Value.ToString() + "," + item.Cells[1].Value.ToString(), true));
         }
     }
 }
コード例 #3
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));
                }
            }
        }