Exemplo n.º 1
0
 private void InformationSettingForm_Load(object sender, EventArgs e)
 {
     if (this.Current != null)
     {
         this.lblBH.Text            += this.Current["BH"].ToString();
         this.spinEditSCDJ.EditValue = this.Current["SCDJ"];
         APP.GoldSoftClient.GlodSoftNetWork.Completed();
         if (APP.GoldSoftClient.ClientResult.IsUseNet && APP.GoldSoftClient.ClientResult.IsLoginSucess && !APP.GoldSoftClient.GlodSoftDiscern.CurrNo.Equals(string.Empty) && !APP.GoldSoftClient.GlodSoftDiscern.CurrNo.Equals("-1"))
         {
             ServiceReference1.WebSuoSoapClient m_WebService = new GOLDSOFT.QDJJ.UI.ServiceReference1.WebSuoSoapClient();
             //APP.GXKG = m_WebService.GetSharingWwitch(APP.GoldSoftClient.GlodSoftDiscern.CurrNo);
             if (APP.GXKG)
             {
                 if (APP.InformationPriceLibrary.InformationPriceLibrarySource.Columns.Contains("XZ"))
                 {
                     APP.InformationPriceLibrary.InformationPriceLibrarySource.Columns.Remove("XZ");
                 }
                 APP.InformationPriceLibrary.InformationPriceLibrarySource.Columns.Add("XZ", typeof(bool)).DefaultValue = false;
                 this.bindingSource1.DataSource = APP.InformationPriceLibrary.InformationPriceLibrarySource;
             }
         }
         else
         {
             APP.GXKG = false;
         }
     }
 }
Exemplo n.º 2
0
        /// <summary>
        /// 共享开关
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void ObjWorker_DoWork(object sender, DoWorkEventArgs e)
        {
            this.TableLoad();
            DataSet m_DataSet = this.GetDataSet();

            ServiceReference1.WebSuoSoapClient m_WebService = new GOLDSOFT.QDJJ.UI.ServiceReference1.WebSuoSoapClient();
            DataSet new_DataSet = m_WebService.SynchronousData(m_DataSet, APP.GoldSoftClient.GlodSoftDiscern.CurrNo);

            if (new_DataSet != null)
            {
                DataTable m_YHJGK = new_DataSet.Tables["YHJGK"];
                if (m_YHJGK != null)
                {
                    APP.UserPriceLibrary.UserPriceLibrarySource.Clear();
                    APP.UserPriceLibrary.UserPriceLibrarySource.Merge(m_YHJGK);
                    APP.UserPriceLibrary.Save();
                }
                DataTable m_BCRCJ = new_DataSet.Tables["BCRCJ"];
                if (m_BCRCJ != null)
                {
                    APP.RepairQuantityUnit.RepairQuantitySource.Clear();
                    APP.RepairQuantityUnit.RepairQuantitySource.Merge(m_BCRCJ);
                    APP.RepairQuantityUnit.Save();
                }
            }
        }
Exemplo n.º 3
0
        /// <summary>
        /// 更新
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void ObjWorker_DoWork_GX(object sender, DoWorkEventArgs e)
        {
            ServiceReference1.WebSuoSoapClient m_WebService = new GOLDSOFT.QDJJ.UI.ServiceReference1.WebSuoSoapClient();
            DataTable dt = m_WebService.UpdateInformationPrice(Convert.ToDateTime(APP.InformationPriceLibrary.InformationPriceLibrarySource.TableName));

            if (dt != null)
            {
                APP.InformationPriceLibrary.UpdateData(dt);
            }
        }
Exemplo n.º 4
0
        /// <summary>
        /// 共享开关
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void ObjWorker_DoWork_SZ(object sender, DoWorkEventArgs e)
        {
            ServiceReference1.WebSuoSoapClient m_WebService = new GOLDSOFT.QDJJ.UI.ServiceReference1.WebSuoSoapClient();
            bool m_jg = m_WebService.SharingWwitch(APP.GoldSoftClient.GlodSoftDiscern.CurrNo, this.checkEdit1.Checked);

            if (m_jg)
            {
                APP.GXKG = this.checkEdit1.Checked;
            }
        }
Exemplo n.º 5
0
 private void InformationSelect_Load(object sender, EventArgs e)
 {
     APP.GoldSoftClient.GlodSoftNetWork.Completed();
     if (APP.GoldSoftClient.ClientResult.IsUseNet && APP.GoldSoftClient.ClientResult.IsLoginSucess && !APP.GoldSoftClient.GlodSoftDiscern.CurrNo.Equals(string.Empty) && !APP.GoldSoftClient.GlodSoftDiscern.CurrNo.Equals("-1"))
     {
         ServiceReference1.WebSuoSoapClient m_WebService = new GOLDSOFT.QDJJ.UI.ServiceReference1.WebSuoSoapClient();
         //APP.GXKG = m_WebService.GetSharingWwitch(APP.GoldSoftClient.GlodSoftDiscern.CurrNo);
     }
     else
     {
         APP.GXKG = false;
     }
     GetInfo();
 }
Exemplo n.º 6
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();
            }
        }