protected void btnDuplicar_Click(object sender, EventArgs e) { uint idGrupoModelo = Glass.Conversoes.StrParaUint(drpGrupoModelo.SelectedValue); string ids = hdfIdsProjetosModelosDup.Value.TrimEnd(' ', ','); hdfIdsProjetosModelosDup.Value = ""; string msg = UtilsExportacaoProjeto.Duplicar(idGrupoModelo, txtFinalCodigo.Text, ids); Glass.MensagemAlerta.ShowMsg(msg, Page); }
protected void btnImportar_Click(object sender, EventArgs e) { try { string msg = UtilsExportacaoProjeto.Importar(fluArquivo.FileBytes, cbxArquivoMesa.Checked, cbxFlag.Checked, cbxRegraValidacao.Checked, cbxFormulaExpressaoCalculo.Checked, cbxSubstituirProjetoModeloExistente.Checked); Glass.MensagemAlerta.ShowMsg(msg, Page); } catch (Exception ex) { Glass.MensagemAlerta.ErrorMsg(ex.InnerException != null ? ex.Message + "\n" : "", ex, Page); } }