public override void UpdateList() { switch (_current_action) { case molAction.Add: if (_entity == null) { return; } List.AddItem(_entity.GetInfo(false)); if (FilterType == IFilterType.Filter) { PedidoProveedorList listA = PedidoProveedorList.GetList(_filter_results); listA.AddItem(_entity.GetInfo(false)); _filter_results = listA.GetSortedList(); } break; case molAction.Edit: case molAction.Lock: case molAction.Unlock: if (_entity == null) { return; } ActiveItem.CopyFrom(_entity); break; case molAction.Delete: if (ActiveItem == null) { return; } List.RemoveItem(ActiveOID); if (FilterType == IFilterType.Filter) { PedidoProveedorList listD = PedidoProveedorList.GetList(_filter_results); listD.RemoveItem(ActiveOID); _filter_results = listD.GetSortedList(); } break; } RefreshSources(); if (_entity != null) { Select(_entity.Oid); } _entity = null; }
public static LineaPedidoProveedores GetPendientesChildList(PedidoProveedor parent, bool childs) { CriteriaEx criteria = Stock.GetCriteria(parent.SessionCode); criteria.Childs = childs; QueryConditions conditions = new QueryConditions { PedidoProveedor = parent.GetInfo() }; criteria.Query = SELECT_PENDIENTES(conditions); return(DataPortal.Fetch <LineaPedidoProveedores>(criteria)); }
protected virtual void CrearAlbaranAction() { if (_entity.EEstado != moleQule.Base.EEstado.Abierto) { return; } ExecuteAction(molAction.Save); if (_action_result == DialogResult.OK) { _acreedor = Datos_Acreedor.DataSource as IAcreedorInfo; InputDeliveryAddForm form = new InputDeliveryAddForm(_acreedor, _entity.GetInfo(), this); form.ShowDialog(); } }
public static string SELECT(PedidoProveedor pedido) { return(SELECT(new QueryConditions { PedidoProveedor = pedido.GetInfo(false) })); }