protected virtual void EditEmpleadoAction() { EmployeeEditForm form = new EmployeeEditForm(Entity, this); form.ShowDialog(); _summary.Refresh(Entity); Summary_BS.DataSource = _summary; Summary_BS.ResetBindings(false); }
public override void OpenEditForm() { EmployeeEditForm form = new EmployeeEditForm(ActiveOID, this); if (form.EntityInfo != null) { AddForm(form); _entity = form.Entity; } }
protected override void EditEmployeeAction() { if (WRStaff_BS.Current == null) { return; } WorkReportResourceInfo item = WRStaff_BS.Current as WorkReportResourceInfo; EmployeeEditForm form = new EmployeeEditForm(item.OidResource, this); form.ShowDialog(); }
protected override void EditEmployeeAction() { if (!ControlsMng.IsCurrentItemValid(Payrolls_DGW)) { return; } Payroll item = ControlsMng.GetCurrentItem(Payrolls_DGW) as Payroll; EmployeeEditForm form = new EmployeeEditForm(item.OidEmpleado, this); form.ShowDialog(); if (form.ActionResult == DialogResult.OK) { _employees.GetItem(item.OidEmpleado).CopyFrom(form.Entity); CalculatePayrollAction(); } }
protected override void EditLineAction() { if (Lines_BS.Current == null) { return; } WorkReportResource cf = (WorkReportResource)Lines_BS.Current; switch (cf.EEntityType) { case ETipoEntidad.OutputDelivery: { DeliveryEditForm form = new DeliveryEditForm(cf.OidResource, ETipoEntidad.WorkReport, this); form.ShowDialog(); cf.CopyFrom(form.Entity); } break; case ETipoEntidad.Empleado: { EmployeeEditForm form = new EmployeeEditForm(cf.OidResource, this); form.ShowDialog(); cf.CopyFrom(form.Entity); } break; case ETipoEntidad.Tool: { ToolEditForm form = new ToolEditForm(cf.OidResource, this); form.ShowDialog(); cf.CopyFrom(form.Entity); } break; } UpdateWorkReportAction(); }
public virtual void ShowProveedorAction() { EmployeeEditForm form = new EmployeeEditForm(ActiveItem.OidAgente, this); form.ShowDialog(this); }