public List <in_Aprobacion_Ing_a_bod_x_OC_Info> Get_List_Aprobacion_Ing_a_bod_x_OC(int IdEmpresa, DateTime desde, DateTime Hasta) { List <in_Aprobacion_Ing_a_bod_x_OC_Info> lista = new List <in_Aprobacion_Ing_a_bod_x_OC_Info>(); EntitiesInventario oEnti = new EntitiesInventario(); try { var select = from q in oEnti.in_Aprobacion_Ing_a_bod_x_OC where q.IdEmpresa == IdEmpresa && q.Fecha >= desde && q.Fecha <= Hasta select q; foreach (var item in select) { in_Aprobacion_Ing_a_bod_x_OC_Info info = new in_Aprobacion_Ing_a_bod_x_OC_Info(); //info.bo_descripcion = item.bo_Descripcion; lista.Add(info); } return(lista); } catch (Exception ex) { string arreglo = ToString(); tb_sis_Log_Error_Vzen_Data oDataLog = new tb_sis_Log_Error_Vzen_Data(); tb_sis_Log_Error_Vzen_Info Log_Error_sis = new tb_sis_Log_Error_Vzen_Info(ex.ToString(), "", arreglo, "", "", "", "", "", DateTime.Now); oDataLog.Guardar_Log_Error(Log_Error_sis, ref mensaje); mensaje = ex.ToString() + " " + ex.Message; throw new Exception(ex.ToString()); } }
public Boolean AnularDB(in_Aprobacion_Ing_a_bod_x_OC_Info Info, ref string msg) { try { return(Odata.AnularDB(Info, ref msg)); } catch (Exception ex) { Core.Erp.Info.Log_Exception.LoggingManager.Logger.Log(Core.Erp.Info.Log_Exception.LoggingCategory.Error, ex.Message); throw new Core.Erp.Info.Log_Exception.DalException(string.Format("", "AnularDB", ex.Message), ex) { EntityType = typeof(in_Aprobacion_Ing_a_bod_x_OC_Bus) }; } }
public Boolean ModificarDB(in_Aprobacion_Ing_a_bod_x_OC_Info Info, ref string msg) { try { return(true); } catch (Exception ex) { string arreglo = ToString(); tb_sis_Log_Error_Vzen_Data oDataLog = new tb_sis_Log_Error_Vzen_Data(); tb_sis_Log_Error_Vzen_Info Log_Error_sis = new tb_sis_Log_Error_Vzen_Info(ex.ToString(), "", arreglo, "", "", "", "", "", DateTime.Now); oDataLog.Guardar_Log_Error(Log_Error_sis, ref mensaje); mensaje = ex.ToString() + " " + ex.Message; throw new Exception(ex.ToString()); } }