Esempio n. 1
0
        public override void OpenEditForm()
        {
            ToolEditForm form = new ToolEditForm(ActiveOID, this);

            if (form.Entity != null)
            {
                AddForm(form);
                _entity = form.Entity;
            }
        }
        protected override void EditToolAction()
        {
            if (WRTools_BS.Current == null)
            {
                return;
            }

            WorkReportResourceInfo item = WRTools_BS.Current as WorkReportResourceInfo;

            ToolEditForm form = new ToolEditForm(item.OidResource, this);

            form.ShowDialog();
        }
Esempio n. 3
0
        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();
        }