Exemplo n.º 1
0
        /// <summary>
        /// 修复
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void ObjWorker_DoWork_XF(object sender, DoWorkEventArgs e)
        {
            ServiceReference1.WebSuoSoapClient m_WebService = new GOLDSOFT.QDJJ.UI.ServiceReference1.WebSuoSoapClient();
            DataTable m_dt = m_WebService.GetInformationPrice();

            if (m_dt != null)
            {
                DataRow dr = m_dt.Select(string.Empty, "UpdateTime DESC").FirstOrDefault();
                if (dr != null)
                {
                    APP.InformationPriceLibrary.InformationPriceLibrarySource.TableName = dr["UpdateTime"].ToString();
                }
                APP.InformationPriceLibrary.InformationPriceLibrarySource.Clear();
                APP.InformationPriceLibrary.InformationPriceLibrarySource.Merge(m_dt);
                APP.InformationPriceLibrary.Save();
            }
        }