コード例 #1
0
        private void PopupElimina_EliminaButtonClicked(object sender, UserControl.RagioniSocialiCorrelate.EliminaEventArgs e)
        {
            try
            {
                int IDRelazione  = Convert.ToInt32(e.IDObject);
                int IDTipoDealer = Convert.ToInt32(((Label)gvRelazioni.Rows[e.GridIndex].FindControl("IDTipoDealer")).Text);

                string error = proxyADS.DeleteRelazione(IDRelazione, IDTipoDealer);

                if (error != "")
                {
                    throw new Exception(error);
                }

                DataRow[] dr = RelazioniResults.Select("IDRelazione=" + IDRelazione);

                //RelazioniResults.Rows.RemoveAt(e.GridIndex);
                RelazioniResults.Rows.Remove(dr[0]);
                gvRelazioni.DataSource = RelazioniResults;
                gvRelazioni.DataBind();

                relazioniUpdatePanel.Update();
            }
            catch (Exception ex)
            {
                PopupMessaggio.ShowMsgBox(ex.Message, true);
            }
        }
コード例 #2
0
        protected void btnElimina_Click(object sender, ImageClickEventArgs e)
        {
            if (EliminaButtonClicked != null)
            {
                EliminaEventArgs args = new EliminaEventArgs(IDObject, GridIndex);

                EliminaButtonClicked(sender, args);
                mpPopupElimina.Hide();
            }
        }
コード例 #3
0
        private void PopupElimina_EliminaButtonClicked(object sender, UserControl.RagioniSocialiCorrelate.EliminaEventArgs e)
        {
            try
            {
                int idDealerBus = Convert.ToInt32(e.IDObject);

                proxyMtd.DeleteDealerBusiness(idDealerBus);
                DataRow[] dr = DealerTableBusiness.Select("IDDealerBusiness=" + idDealerBus);
                //DealerTableBusiness.Rows.RemoveAt(e.GridIndex);
                DealerTableBusiness.Rows.Remove(dr[0]);
                gvDealerBusiness.DataSource = DealerTableBusiness;
                gvDealerBusiness.DataBind();
                dealerBusinessUpdatePanel.Update();
            }
            catch (Exception ex)
            {
                PopupMessaggio.ShowMsgBox(ex.Message, true);
            }
        }
コード例 #4
0
        private void PopupElimina_EliminaButtonClicked(object sender, UserControl.RagioniSocialiCorrelate.EliminaEventArgs e)
        {
            try
            {
                //int idDealer = Convert.ToInt32(e.IDObject);

                proxyMtd.DeleteDealerImport(e.IDObject);

                DealerTable.Rows.RemoveAt(e.GridIndex);

                eccImportGridView.DataSource = DealerTable;
                eccImportGridView.DataBind();

                importUpdatePanel.Update();
            }
            catch (Exception ex)
            {
                PopupMessaggio.ShowMsgBox(ex.Message, true);
            }
        }
コード例 #5
0
        protected void btnElimina_Click(object sender, ImageClickEventArgs e)
        {
            if (EliminaButtonClicked != null)
            {
                EliminaEventArgs args = new EliminaEventArgs(IDObject, GridIndex);

                EliminaButtonClicked(sender, args);
                mpPopupElimina.Hide();
            }
        }