public static dynamic ObtenerCheckList(int turno, int roladoraId) { dynamic checkList; using (var checkListRoladoraBL = new CheckListRoladoraBL()) { int organizacionID = ObtenerOrganizacionID(); checkList = checkListRoladoraBL.ObtenerCheckList(organizacionID, turno, roladoraId); } return(checkList); }
public static IList <CheckListRoladoraInfo> ObtenerNotificaciones() { IList <CheckListRoladoraInfo> notificaciones; using (var checkListRoladoraBL = new CheckListRoladoraBL()) { int organizacionID = ObtenerOrganizacionID(); notificaciones = checkListRoladoraBL.ObtenerNotificaciones(organizacionID); } return(notificaciones); }
public static List <CheckListRoladoraHorometroInfo> ObtenerHorometros(int turno) { List <CheckListRoladoraHorometroInfo> resultado; using (var checkListRoladoBL = new CheckListRoladoraBL()) { int organizacionID = ObtenerOrganizacionID(); resultado = checkListRoladoBL.ObtenerHorometros(turno, organizacionID); //resultado.ForEach(f=> f.FechaServidor = f.FechaServidor.AddHours(5)); } return(resultado); }
public static string GuardarParametrosCheckList(List <CheckListRoladoraInfo> listaCheckListRoladora , CheckListRoladoraGeneralInfo checkListRoladoraGeneral , List <CheckListRoladoraHorometroInfo> listaCheckListRoladoraHorometro) { using (var checkListRoladoBL = new CheckListRoladoraBL()) { int organizacionID = ObtenerOrganizacionID(); checkListRoladoBL.GuardarParametrosCheckList(listaCheckListRoladora, checkListRoladoraGeneral, listaCheckListRoladoraHorometro, organizacionID); } string resultado = NotificacionesActuales(); return(resultado); }
public static ParametrosCheckListRoladoModel ObtenerGranoEnteroDieselCaldera(string fechaInicio , string horaInicio) { ParametrosCheckListRoladoModel parametrosCheckListRoladoModel; using (var checkListRoladoraBL = new CheckListRoladoraBL()) { int organizacionID = ObtenerOrganizacionID(); var fecha = AgregarHoraFecha(Convert.ToDateTime(fechaInicio), horaInicio); parametrosCheckListRoladoModel = checkListRoladoraBL.ObtenerGranoEnteroDieselCaldera(organizacionID, fecha); } return(parametrosCheckListRoladoModel); }
public static string GuardarCheckList(CheckListRoladoraInfo checkListRoladora , CheckListRoladoraGeneralInfo checkListRoladoraGeneral , List <CheckListRoladoraDetalleInfo> checkListRoladoraDetalle) { using (var checkListRoladoBL = new CheckListRoladoraBL()) { int organizacionID = ObtenerOrganizacionID(); checkListRoladoBL.GuardarCheckList(checkListRoladora, checkListRoladoraGeneral, checkListRoladoraDetalle, organizacionID); } string resultado = NotificacionesActuales(); return(resultado); }
private void DtpFecha_OnSelectedDateChanged(object sender, SelectionChangedEventArgs e) { var checkListRoladoBL = new CheckListRoladoraBL(); checkListRoladoBL.ObtenerDatosImpresionCheckListRoladora(dtpFecha.SelectedDate.Value, 1, Contexto.Organizacion.OrganizacionID); //if (!dtpFecha.SelectedDate.HasValue || dtpFecha.SelectedDate.Value == DateTime.MinValue) //{ // return; //} //if (dtpFecha.SelectedDate.Value > DateTime.Now.Date) //{ // SkMessageBox.Show(Application.Current.Windows[ConstantesVista.WindowPrincipal], // Properties.Resources.ImpresionDistribucionAlimento_FechaMayor, MessageBoxButton.OK, // MessageImage.Warning); // dtpFecha.SelectedDate = null; // return; //} //cmbTipoServicio.ItemsSource = null; //gridDatos.ItemsSource = null; //ObtenerDistribucionAlimento(); //if (impresionDistribucionAlimento == null || !impresionDistribucionAlimento.Any()) //{ // SkMessageBox.Show(Application.Current.Windows[ConstantesVista.WindowPrincipal], // Properties.Resources.ImpresionDistribucionAlimento_SinEntradas, MessageBoxButton.OK, // MessageImage.Warning); // return; //} //var tiposServiciosAgrupados = (from serv in impresionDistribucionAlimento // group serv by // new {serv.TipoServicio.TipoServicioId, serv.TipoServicio.Descripcion} // into agru // select new TipoServicioInfo // { // TipoServicioId = agru.Key.TipoServicioId, // Descripcion = agru.Key.Descripcion // }).OrderBy(serv => serv.Descripcion).ToList(); //var tipoServicioTodos = new TipoServicioInfo // { // TipoServicioId = 0, // Descripcion = Properties.Resources.cbo_Seleccionar // }; //tiposServiciosAgrupados.Insert(0, tipoServicioTodos); //cmbTipoServicio.ItemsSource = tiposServiciosAgrupados; //cmbTipoServicio.SelectedIndex = 0; }
public static CheckListRoladoraInfo ObtenerPorTurno(int turno) { CheckListRoladoraInfo datosGenerales; using (var checkListRoladoraBL = new CheckListRoladoraBL()) { int organizacionID = 0; var usuario = ObtenerSeguridad() as SeguridadInfo; if (usuario != null) { organizacionID = usuario.Usuario.Organizacion.OrganizacionID; } datosGenerales = checkListRoladoraBL.ObtenerPorTurno(organizacionID, turno); if (datosGenerales != null) { datosGenerales.Usuario = usuario.Usuario; } } return(datosGenerales); }