private void OnShowMessageDialog(object sender, RunWorkerCompletedEventArgs e)
 {
     if (!string.IsNullOrEmpty(App_pd))
     {
         if (dgv_01.Rows != null && dgv_01.Rows.Count > 0)
         {
             SortedList barCodeList = new SortedList();
             int        j           = 1;
             for (int i = 0; i < dgv_01.Rows.Count; i++)
             {
                 if (dtallorder.Rows[i]["set_code"] != null)
                 {
                     string barCode = dtallorder.Rows[i]["set_code"].ToString();
                     barCodeList.Add(j, barCode);
                     j++;
                 }
             }
             HCSSM_set_message_newshow showMessage = new HCSSM_set_message_newshow("2020");
             showMessage.BarCodeList = barCodeList;
             showMessage.UserId      = CnasBaseData.UserID;
             showMessage.PdConfigStr = App_pd;
             showMessage.ShowDialog();
         }
     }
 }
Exemple #2
0
 private void OnShowMessageDialog(object sender, RunWorkerCompletedEventArgs e)
 {
     if (!string.IsNullOrEmpty(_appPd))
     {
         HCSSM_set_message_newshow showMessage = new HCSSM_set_message_newshow(_appPd);
         showMessage.UserId = CnasBaseData.UserID;
         showMessage.GenerateListBoxItem();
         if (showMessage.HasSetMessage)
         {
             showMessage.ShowDialog();
         }
         else
         {
             showMessage.Dispose();
         }
     }
 }