//FIN PERMISOS private void TraeRequerimientosPendientes() { try { BLL.Procedures.REQUERIMIENTOS_PARA_MODIFICAR _detalle = new BLL.Procedures.REQUERIMIENTOS_PARA_MODIFICAR(); this.dataGridViewReq.Rows.Clear(); int indice; var q = (dynamic)null; q = (from item in _detalle.ItemList(Clases.Usuario.UsuarioLogeado.Id_Sector, Clases.Usuario.UsuarioLogeado.id_usuario_Logeado) where item.codemp == Clases.Usuario.EmpresaLogeada.EmpresaIngresada.ToString() select item); foreach (Entities.Procedures.REQUERIMIENTOS_PARA_MODIFICAR item in q) { indice = dataGridViewReq.Rows.Add(); dataGridViewReq.Rows[indice].Cells[(int)Col_Requerimiento.CODEMP].Value = item.codemp; //CODIGO DE EMPRESA dataGridViewReq.Rows[indice].Cells[(int)Col_Requerimiento.NRO_REQUERIMIENTO].Value = item.requerimiento_id; //TRAE ID DE REQUERIMIENTO dataGridViewReq.Rows[indice].Cells[(int)Col_Requerimiento.FECHA_DE_PEDIDO].Value = item.fecha.ToShortDateString(); //TRAE FECHA DE PEDIDO dataGridViewReq.Rows[indice].Cells[(int)Col_Requerimiento.SECTOR_REQUERIMIENTO_ID].Value = item.sectorrequerimiento_id; //TRAE ID DEL SECTOR dataGridViewReq.Rows[indice].Cells[(int)Col_Requerimiento.SECTOR_REQUERIMIENTO].Value = item.descripcion; //TRAE DESCRIPCION DEL SECTOR dataGridViewReq.Rows[indice].Cells[(int)Col_Requerimiento.OBSERVACIONES].Value = item.obs; //TRAE OBSERVACION dataGridViewReq.Rows[indice].Cells[(int)Col_Requerimiento.USUARIO_AUTORIZA].Value = item.usuarioautoriza; //USUARIO AUTORIZA } } catch (Exception ex) { MessageBox.Show(ex.Message, "Error", MessageBoxButtons.OK, MessageBoxIcon.Error); } }
private void TraeItemsPendientes() { try { BLL.Procedures.REQUERIMIENTOS_PARA_MODIFICAR _detalle = new BLL.Procedures.REQUERIMIENTOS_PARA_MODIFICAR(); this.dataGridViewReqCab.Rows.Clear(); int indice; var q = (dynamic)null; q = (from item in _detalle.ItemList(Clases.Usuario.UsuarioLogeado.Id_Sector, Clases.Usuario.UsuarioLogeado.id_usuario_Logeado) where item.codemp == Clases.Usuario.EmpresaLogeada.EmpresaIngresada.ToString() select item); foreach (Entities.Procedures.REQUERIMIENTOS_PARA_MODIFICAR item in q) { indice = dataGridViewReqCab.Rows.Add(); dataGridViewReqCab.Rows[indice].Cells[(int)Col_ReqCab.CODEMP].Value = item.codemp; //CODIGO DE EMPRESA dataGridViewReqCab.Rows[indice].Cells[(int)Col_ReqCab.EMPRESA].Value = item.codemp; //EMPRESA dataGridViewReqCab.Rows[indice].Cells[(int)Col_ReqCab.REQ_ID].Value = item.requerimiento_id; //NRO OC dataGridViewReqCab.Rows[indice].Cells[(int)Col_ReqCab.FECHA].Value = item.fecha.ToShortDateString(); //FECHA dataGridViewReqCab.Rows[indice].Cells[(int)Col_ReqCab.SECTOR_ID].Value = item.sectorrequerimiento_id; //PROVEEDOR dataGridViewReqCab.Rows[indice].Cells[(int)Col_ReqCab.SECTOR].Value = item.descripcion; //PROVEEDOR dataGridViewReqCab.Rows[indice].Cells[(int)Col_ReqCab.OBSERVACIONES].Value = (item.obs == string.Empty) ? "": item.obs; //PROVEEDOR dataGridViewReqCab.Rows[indice].Cells[(int)Col_ReqCab.USUARIO_AUTORIZA].Value = item.usuarioautoriza; //USUARIO AUTORIZA dataGridViewReqCab.Rows[indice].Cells[(int)Col_ReqCab.LUGARENTREGA].Value = item.Lugarentrega; //LUGAR DE ENTRERGA dataGridViewReqCab.Rows[indice].Cells[(int)Col_ReqCab.ENTREGA_ID].Value = item.Entrega_id; //ENTREGA ID } } catch (Exception ex) { MessageBox.Show(ex.Message, "Error", MessageBoxButtons.OK, MessageBoxIcon.Error); } }