Beispiel #1
0
        private void tsmExportarXML_Click(object sender, EventArgs e)
        {
            if (olvPermisos.SelectedObject != null)
            {
                clsXMLGenerator xml = new clsXMLGenerator(_clsCore, this);

                string id_permiso = ((DataRow)olvPermisos.SelectedObject)["ID_PERMISO"].ToString();

                DataView dw = clsDS.DS_PERMISOS.Tables[0].DefaultView;
                dw.RowFilter = "ID_PERMISO = '" + id_permiso + "'";

                if (dw.Count > 0)
                {
                    xml.generar_XML(dw, id_permiso, "Permiso");
                }
            }
        }
Beispiel #2
0
        private void tsmExportarXML_Click(object sender, EventArgs e)
        {
            if (olvResoluciones.SelectedObject != null)
            {
                clsXMLGenerator xml = new clsXMLGenerator(_clsCore, this);

                string id_resolucion = ((DataRow)olvResoluciones.SelectedObject)["ID_RESOLUCION"].ToString();

                DataView dw = clsDS.DS_RESOLUCIONES_DETALLE.Tables[0].DefaultView;
                dw.RowFilter = "RESOLUCIONES_ID_RESOLUCION = '" + id_resolucion + "'";

                if (dw.Count > 0)
                {
                    xml.generar_XML(dw, id_resolucion, "Resolucion");
                }
            }
        }