public void CargaGrid() { DataSet DSDevuelve = new DataSet(); DataTable DTMain = new DataTable(); DataView DVMain = new DataView(); DataTable DTValor = new DataTable(); WSAdministracion.WSAdministracion WSAdmin = new WSAdministracion.WSAdministracion(); WSAdmin.Url = mdlGenerales.DireccionWS + "FazServices/WSAdministracion.asmx"; DSDevuelve = WSAdmin.DevuelveItemCosto(mdlGenerales.Conexion, lblCorrelativo.Text.ToString()); DTMain = DSDevuelve.Tables[0]; DVMain = DTMain.DefaultView; GGCPersLiq.DataSource = null; GGCPersLiq.TableDescriptor.Reset(); GGCPersLiq.TableDescriptor.AllowNew = false; GGCPersLiq.Refresh(); GGCPersLiq.DataSource = DVMain; FormatColumnas(); AplicarFilterBar(); DTValor = DSDevuelve.Tables[1]; foreach (DataRow Row in DTValor.Rows) { txtBase.Text = string.Format("{0:#,##0.##}", Convert.ToDouble(Row[0].ToString())); txtIGV.Text = string.Format("{0:#,##0.##}", Convert.ToDouble(Row[1].ToString()));; txtTotal.Text = string.Format("{0:#,##0.##}", Convert.ToDouble(Row[2].ToString()));; } }
public void CargaGrid(String TipoDoc, String NDoc, String Nombres, String Apellidos, String Telefono1, String Email) { DataSet DSDevuelve = new DataSet(); DataTable DTMain = new DataTable(); DataView DVMain = new DataView(); WSLicitaciones.WSLicitaciones WSLic = new WSLicitaciones.WSLicitaciones(); WSLic.Url = mdlGenerales.DireccionWS + "FazServices/WSLicitaciones.asmx"; txtTipoDoc.Text = TipoDoc; txtNDoc.Text = NDoc; txtNombres.Text = Nombres; txtApellidos.Text = Apellidos; txtTelefono1.Text = Telefono1; txtEmail.Text = Email; DSDevuelve = WSLic.DevuelveExpPersonalLicitaciones(mdlGenerales.Conexion, txtTipoDoc.Text.ToString(), txtNDoc.Text.ToString()); DTMain = DSDevuelve.Tables[0]; DVMain = DTMain.DefaultView; GGCPersLiq.DataSource = null; GGCPersLiq.TableDescriptor.Reset(); GGCPersLiq.TableDescriptor.AllowNew = false; GGCPersLiq.Refresh(); GGCPersLiq.DataSource = DVMain; FormatColumnas(); AplicarFilterBar(); }
public void CargaGrid(String NumeroRuc, String RazonSocial, String NRP, String Capacidad) { DataSet DSDevuelve = new DataSet(); DataTable DTMain = new DataTable(); DataView DVMain = new DataView(); WSLicitaciones.WSLicitaciones WSLic = new WSLicitaciones.WSLicitaciones(); WSLic.Url = mdlGenerales.DireccionWS + "FazServices/WSLicitaciones.asmx"; txtNumeroRuc.Text = NumeroRuc; txtRazonSocial.Text = RazonSocial; txtNRP.Text = NRP; txtCapacidad.Text = Capacidad; DSDevuelve = WSLic.DevuelveCertificacionesEmpresa(mdlGenerales.Conexion, txtNumeroRuc.Text.ToString()); DTMain = DSDevuelve.Tables[0]; DVMain = DTMain.DefaultView; GGCPersLiq.DataSource = null; GGCPersLiq.TableDescriptor.Reset(); GGCPersLiq.TableDescriptor.AllowNew = false; GGCPersLiq.Refresh(); GGCPersLiq.DataSource = DVMain; FormatColumnas(); AplicarFilterBar(); }
public void CargaGrid(string LCorrelativo) { lblCorrelativo.Text = LCorrelativo; DataSet DSDevuelve = new DataSet(); DataTable DTMain = new DataTable(); DataTable DTCabecera = new DataTable(); DataView DVMain = new DataView(); WSAdministracion.WSAdministracion WSAdmin = new WSAdministracion.WSAdministracion(); WSAdmin.Url = mdlGenerales.DireccionWS + "FazServices/WSAdministracion.asmx"; DSDevuelve = WSAdmin.DevuelveDescuentosEntregaARendir(mdlGenerales.Conexion, lblCorrelativo.Text.ToString()); DTMain = DSDevuelve.Tables[0]; DTCabecera = DSDevuelve.Tables[1]; DVMain = DTMain.DefaultView; GGCPersLiq.DataSource = null; GGCPersLiq.TableDescriptor.Reset(); GGCPersLiq.TableDescriptor.AllowNew = false; GGCPersLiq.Refresh(); GGCPersLiq.DataSource = DVMain; foreach (DataRow Row in DTCabecera.Rows) { lblProyecto.Text = Row[0].ToString(); lblPersonal.Text = Row[2].ToString(); dtpFecha.Value = Convert.ToDateTime(Row[3].ToString()); lblMonto.Text = string.Format("{0:#,##0.##}", Convert.ToDouble(Row[4].ToString())); lblMoneda.Text = Row[5].ToString(); lblRuc.Text = Row[7].ToString(); if (Row[8].ToString() != "") { lblSustMM.Text = string.Format("{0:#,##0.##}", Convert.ToDouble(Row[8].ToString())); } if (Row[9].ToString() != "") { lblSustOM.Text = string.Format("{0:#,##0.##}", Convert.ToDouble(Row[9].ToString())); } if (Row[10].ToString() != "") { lblSust2.Text = string.Format("{0:#,##0.##}", Convert.ToDouble(Row[10].ToString())); } if (Row[11].ToString() != "") { lblTotalD.Text = string.Format("{0:#,##0.##}", Convert.ToDouble(Row[11].ToString())); } if (Row[12].ToString() != "") { lblFaltante.Text = string.Format("{0:#,##0.##}", Convert.ToDouble(Row[12].ToString())); } lblEstado.Text = Row[13].ToString(); } FormatColumnas(); AplicarFilterBar(); Bloquear(); }
private void CargaGrid() { WSLicitaciones.WSLicitaciones WSLic = new WSLicitaciones.WSLicitaciones(); WSLic.Url = mdlGenerales.DireccionWS + "FazServices/WSLicitaciones.asmx"; DSDevuelve = WSLic.DevuelvePersonalLicitacionesDisp(mdlGenerales.Conexion, lblIDooss.Text.ToString()); DTMain = DSDevuelve.Tables[0]; DVMain = DTMain.DefaultView; GGCPersLiq.DataSource = null; GGCPersLiq.TableDescriptor.Reset(); GGCPersLiq.TableDescriptor.AllowNew = false; GGCPersLiq.Refresh(); GGCPersLiq.DataSource = DVMain; FormatColumnas(); AplicarFilterBar(); }
public void CargaGrid(String StrClave, String Detalle) { WSLicitaciones.WSLicitaciones WSLic = new WSLicitaciones.WSLicitaciones(); WSLic.Url = mdlGenerales.DireccionWS + "FazServices/WSLicitaciones.asmx"; DSDevuelve = WSLic.DevuelveBitacoraLicitaciones(mdlGenerales.Conexion, StrClave); DTMain = DSDevuelve.Tables[0]; DVMain = DTMain.DefaultView; GGCPersLiq.DataSource = null; GGCPersLiq.TableDescriptor.Reset(); GGCPersLiq.TableDescriptor.AllowNew = false; GGCPersLiq.Refresh(); GGCPersLiq.DataSource = DVMain; FormatColumnas(); AplicarFilterBar(); this.Text = "Bitacora de: " + Detalle; }
public void CargaGrid(String IDProyecto, String IDPartidasPrincipales, String Empresa, String Proyecto, String Partida, String idmaestropartidas, String ruc) { try { DataSet DSDevuelve = new DataSet(); DataTable DTMain = new DataTable(); DataView DVMain = new DataView(); if (idmaestropartidas == "0") { lblTipo.Text = "Detalle Tipo Costo: "; } else { lblTipo.Text = "Tipo Costo: "; } lblEmpresa.Text = Empresa; lblProyecto.Text = Proyecto; lblPartida.Text = Partida; WSAdministracion.WSAdministracion WSAdmin = new WSAdministracion.WSAdministracion(); WSAdmin.Url = mdlGenerales.DireccionWS + "FazServices/WSAdministracion.asmx"; DSDevuelve = WSAdmin.DevuelveDetalleResumenCostosGeneral(mdlGenerales.Conexion, IDProyecto, IDPartidasPrincipales, idmaestropartidas); DTMain = DSDevuelve.Tables[0]; DVMain = DTMain.DefaultView; GGCPersLiq.DataSource = null; GGCPersLiq.TableDescriptor.Reset(); GGCPersLiq.TableDescriptor.AllowNew = false; GGCPersLiq.Refresh(); GGCPersLiq.DataSource = DVMain; FormatColumnas(); AplicarFilterBar(); lblRuc.Text = ruc; Bloquear(); } catch (Exception Ex) { MessageBoxAdv.Show("Debe de seleccionar un registro de costos", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error); this.Close(); } }
public void CargaGrid(string Correlativo) { try { DataSet DSDevuelve = new DataSet(); DataTable DTMain = new DataTable(); DataTable DTCabecera = new DataTable(); DataView DVMain = new DataView(); WSAdministracion.WSAdministracion WSAdmin = new WSAdministracion.WSAdministracion(); WSAdmin.Url = mdlGenerales.DireccionWS + "FazServices/WSAdministracion.asmx"; DSDevuelve = WSAdmin.DevuelveItemIngEntregaARendir(mdlGenerales.Conexion, Correlativo); DTMain = DSDevuelve.Tables[0]; DTCabecera = DSDevuelve.Tables[1]; DVMain = DTMain.DefaultView; GGCPersLiq.DataSource = null; GGCPersLiq.TableDescriptor.Reset(); GGCPersLiq.TableDescriptor.AllowNew = false; GGCPersLiq.Refresh(); GGCPersLiq.DataSource = DVMain; FormatColumnas(); AplicarFilterBar(); foreach (DataRow Row in DTCabecera.Rows) { lblCorrelativo.Text = Row[0].ToString(); lblProyecto.Text = Row[1].ToString(); lblPersonal.Text = Row[2].ToString(); lblMoneda.Text = Row[3].ToString(); lblMonto.Text = string.Format("{0:#,##0.##}", Convert.ToDouble(Row[4].ToString())); lblFecha.Text = Convert.ToDateTime(Row[5].ToString()).ToString("MM/dd/yyyy"); lblRuc.Text = Row[6].ToString(); lblIDProyecto.Text = Row[7].ToString(); lblDNI.Text = Row[8].ToString(); } CargaGridEARendirFaltantes(); GGCPersLiq.Select(); GGCEntregas.Select(); Bloquear(); } catch (Exception ex) { MessageBoxAdv.Show(ex.Message, "Error", MessageBoxButtons.OK, MessageBoxIcon.Error); } }
public void CargaGrid() { DataSet DSDevuelve = new DataSet(); DataTable DTMain = new DataTable(); DataView DVMain = new DataView(); WSPresupuestos.WSPresupuestos WSPresup = new WSPresupuestos.WSPresupuestos(); WSPresup.Url = mdlGenerales.DireccionWS + "FazServices/WSPresupuestos.asmx"; DSDevuelve = WSPresup.DevuelvePrecargaS10(mdlGenerales.Conexion); DTMain = DSDevuelve.Tables[0]; DVMain = DTMain.DefaultView; GGCPersLiq.DataSource = null; GGCPersLiq.TableDescriptor.Reset(); GGCPersLiq.TableDescriptor.AllowNew = false; GGCPersLiq.Refresh(); GGCPersLiq.DataSource = DVMain; FormatColumnas(); AplicarFilterBar(); }
public void CargaGrid() { DataSet DSDevuelve = new DataSet(); DataTable DTMain = new DataTable(); DataView DVMain = new DataView(); WSAdministracion.WSAdministracion WSAdmin = new WSAdministracion.WSAdministracion(); WSAdmin.Url = mdlGenerales.DireccionWS + "FazServices/WSAdministracion.asmx"; DSDevuelve = WSAdmin.DevuelveResumenCostosGeneral(mdlGenerales.Conexion, RucEmpresa[Convert.ToInt32(cmbEmpresa.SelectedIndex.ToString())].ToString(), IDproyecto[Convert.ToInt32(cmbProyecto.SelectedIndex.ToString())].ToString()); DTMain = DSDevuelve.Tables[0]; DVMain = DTMain.DefaultView; GGCPersLiq.DataSource = null; GGCPersLiq.TableDescriptor.Reset(); GGCPersLiq.TableDescriptor.AllowNew = false; GGCPersLiq.Refresh(); GGCPersLiq.DataSource = DVMain; FormatColumnas(); AplicarFilterBar(); }