コード例 #1
0
        public DispositionReport Send(DeleteBusiness deleteBusiness, AuthToken authToken)
        {
            SetAuthToken(deleteBusiness, authToken);

            try
            {
                return(soapClient.DeleteBusiness(deleteBusiness));
            }
            catch (UddiException uddiException)
            {
                AttemptRefreshAuthInfo(uddiException, authToken);

                return(soapClient.DeleteBusiness(deleteBusiness));
            }
        }
コード例 #2
0
        public DispositionReport DeleteBusiness(DeleteBusiness dbus)
        {
            Debug.Enter();

            DispositionReport dr = new DispositionReport();

            try
            {
                //
                // Delete the business
                //
                dbus.Delete();
            }
            catch (Exception e)
            {
                DispositionReport.Throw(e);
            }

            return(dr);
        }
コード例 #3
0
        private void btnDeletar_Click(object sender, EventArgs e)
        {
            try
            {
                DeleteBusiness  dbs   = new DeleteBusiness();
                DTOTerceirizado tercs = lstTerc.SelectedItem as DTOTerceirizado;

                DialogResult = MessageBox.Show("TEM CERTEZA QUE IRÁ REALIZAR TAL AÇÃO?", "TOPMOVIE", MessageBoxButtons.OKCancel, MessageBoxIcon.Exclamation);
                if (DialogResult == DialogResult.OK)
                {
                    dbs.DeleteTerc(tercs.IdTerc);
                    frmRemoverTerceirizado x = new frmRemoverTerceirizado();
                    x.Show();
                    this.Close();
                }
            }
            catch (Exception)
            {
                MessageBox.Show("OCORREU UM ERRO!", "TOPMOVIE - ERROR", MessageBoxButtons.OK, MessageBoxIcon.Error);
            }
        }
コード例 #4
0
        private void button1_Click(object sender, EventArgs e)
        {
            try
            {
                DeleteBusiness dbs = new DeleteBusiness();
                DTOPedido tc = cboFornecedor.SelectedItem as DTOPedido;

                DialogResult = MessageBox.Show("TEM CERTEZA QUE IRÁ REALIZAR TAL AÇÃO?", "TOPMOVIE", MessageBoxButtons.OKCancel, MessageBoxIcon.Exclamation);
                if (DialogResult == DialogResult.OK)
                {

                    dbs.DeletePedidoItem(tc.IdPedido);
                    dbs.DeletePedido(tc.IdPedido);
                    frmVisualizarPedidos x = new frmVisualizarPedidos();
                    x.Show();
                    this.Close();
                }

            }
            catch 
            {
                MessageBox.Show("OCORREU UM ERRO!", "TOPMOVIE - ERROR", MessageBoxButtons.OK, MessageBoxIcon.Error);
            }
        }
コード例 #5
0
        public DispositionReport DeleteBusiness([XmlElement(Namespace = Microsoft.Uddi.VersionSupport.UddiVersionSupport.CurrentNamespace, IsNullable = false)] DeleteBusiness deleteBusiness)
        {
            object[] results = InvokeWebMethod("DeleteBusiness", new object[] { deleteBusiness });

            return((DispositionReport)results[0]);
        }
コード例 #6
0
        /// <summary>
        ///     Sterge un domeniu de grupuri de servicii de pe serverul UDDI.
        /// </summary>
        /// <param name="businessKey">Cheia BusinessEntity-ului folosit pentru stocarea domeniului de grupuri de servicii pe serverul UDDI.</param>
        /// <returns>Raport al stergerii domeniului de grupuri de servicii (BusinessEntity-ului) de pe serverul UDDI.</returns>
        private DispositionReport performDeleteBusiness(string businessKey)
        {
            DeleteBusiness deleteBusiness       = new DeleteBusiness(businessKey);

            DispositionReport dispositionReport = deleteBusiness.Send(uddiConnection);

            return dispositionReport;
        }
コード例 #7
0
        /// <summary>
        /// Deletes the business entity.
        /// </summary>
        /// <param name="uConn">The UDDI connection.</param>
        /// <param name="bEntity">The business entity.</param>
        public static void DeleteBusinessEntity(UddiConnection uConn, BusinessEntity bEntity)
        {
            DeleteBusiness dBusiness = new DeleteBusiness(bEntity.BusinessKey);

            dBusiness.Send(uConn);
        }