Beispiel #1
0
        public void BroadCasting()
        {
            for (int i = 0; i < RMESID.Count; i++)
            {
                //RMESID[i] = item1[i].SubItems[2].Text;

                List <AndonAlertEntity> AEntity = AndonFactory.GetByPline(RMESID[i]);
                foreach (AndonAlertEntity en in AEntity)
                {
                    BroadCastFactory cast     = new BroadCastFactory(en);
                    List <string>    listcall = cast.speaking();
                    if (listcall != null)
                    {
                        foreach (string sss in listcall)
                        {
                            strToVoice(sss);
                            strToVoice(sss);
                            //lib.Volume = 100;
                        }
                        en.REPORT_FLAG = "N";
                        AndonFactory.Update(en);
                    }
                    else
                    {
                        continue;
                    }
                }
            }
        }