protected override void SubmitAction() { _back_job = BackJob.Submit; if (PgMng != null) { PgMng.StartBackJob(this); } if (PgMng != null) { PgMng.FillUp(); } }
/// <summary> /// Asigna el objeto al origen de datos y los orĂgenes de datos /// auxiliares a los ComboBox /// <returns>void</returns> /// </summary> protected virtual void SetFormData() { try { //Por si se llama despues de un intento fallido de acceder a un registro if (_disposing) { return; } if (PgMng != null) { PgMng.Message = Resources.Messages.LOADING_DATA; } if (_parent != null) { BkGetFormData(null); } else { _back_job = BackJob.GetFormData; if (PgMng != null) { PgMng.StartBackJob(this); } } } catch (Exception ex) { if (null != iQExceptionHandler <iQLockException> .GetiQException(ex)) { PgMng.ShowInfoException(Resources.Messages.LOCK_ERROR); } else { PgMng.ShowInfoException(ex); } _disposing = true; Close(); } finally { #if TRACE if (PgMng != null) { PgMng.Record("ManagerForm::SetFormData()"); } #endif } }
protected override void EditAction() { if (CurrentDocumento == null) { return; } _destination_path = System.Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData); _back_job = BackJob.Download; PgMng.Reset(5, 1, Resources.Messages.CONNECTING_SERVER, this); //PgMng.StartBackJob(this); DoJob(); if (PgMng.Result == BGResult.OK) { System.Diagnostics.Process process = new System.Diagnostics.Process(); process.StartInfo.FileName = TempFile; PgMng.FillUp(); process.Start(); try { process.WaitForExit(); } catch { } _back_job = BackJob.Upload; PgMng.Reset(5, 1); PgMng.Message = Resources.Messages.CONNECTING_SERVER; PgMng.ShowForm(); PgMng.Grow(); if (PgMng.Result == BGResult.OK) { PgMng.StartBackJob(this); PgMng.FillUp(); File.Delete(TempFile); } else { PgMng.FillUp(); } } else { PgMng.FillUp(); } }