Пример #1
0
    private void ABM(IntelliTrack.Client.Application.CRUD.ABM type, IntelliTrack.Client.Application.CRUD.CRUDDataSet.CATEGORIASRow row)
    {
      IntelliTrack.Client.Application.CRUD.dlgABMCategoria dlg = new IntelliTrack.Client.Application.CRUD.dlgABMCategoria(type, row);
      


      if (dlg.ShowDialog() == DialogResult.OK)
      {
        IntelliTrack.Client.Application.CRUD.CRUDDataSetTableAdapters.CATEGORIASTableAdapter da = new IntelliTrack.Client.Application.CRUD.CRUDDataSetTableAdapters.CATEGORIASTableAdapter();
        //da.Update(ds);
        switch (type)
        {
          case IntelliTrack.Client.Application.CRUD.ABM.ALTA:
            ds.CATEGORIAS.AddCATEGORIASRow(row);
            da.Update(row);
            break;
          case IntelliTrack.Client.Application.CRUD.ABM.MODIFICACION:
            da.Update(row);
            break;
          case IntelliTrack.Client.Application.CRUD.ABM.BAJA:
            {
              da.Delete(row.CAT_ID);
              row.Delete();
              //ds.CATEGORIAS.RemoveCATEGORIASRow(row);
            }
            break;
          default:
            break;
        }
        try
        {
          //IntelliTrack.Client.Application.CRUD.CRUDDataSetTableAdapters.CATEGORIASTableAdapter da = new IntelliTrack.Client.Application.CRUD.CRUDDataSetTableAdapters.CATEGORIASTableAdapter();
          //da.Update(ds);
          //da.Delete(
          ds.AcceptChanges();
          this.cATEGORIASTableAdapter.Fill(this.cRUDDataSet.CATEGORIAS);
          dataGridView1.Refresh();
        }
        catch (Exception ex)
        {
          System.Diagnostics.Debug.WriteLine(ex.Message);
        }
      }
    }
Пример #2
0
 private void FireQueryStatus(IntelliTrack.Client.Application.Dataset.DataRetriever.QUERYSTATUS CurrentStatus)
 {
   if (OnQueryStatus != null)
     OnQueryStatus(CurrentStatus);
 }
Пример #3
0
 public dlgABMCategoria(IntelliTrack.Client.Application.CRUD.ABM ABMType, IntelliTrack.Client.Application.CRUD.CRUDDataSet.CATEGORIASRow row)
   : base(ABMType, row)
 {
   InitializeComponent();
   groupBox1.Enabled = false;
 }
Пример #4
0
 public dlgABMTransponder(IntelliTrack.Client.Application.CRUD.ABM ABMType, IntelliTrack.Client.Application.CRUD.CRUDDataSet.TRANSPONDERSRow row)
   : base(ABMType, row)
 {
   InitializeComponent();
   groupBox1.Enabled = false;
 }
Пример #5
0
 private void HistoricDataHandler_OnQueryStatus(IntelliTrack.Client.Application.Dataset.DataRetriever.QUERYSTATUS CurrentStatus)
 {
   if (OnHistoryQueryStatus != null)
     OnHistoryQueryStatus(CurrentStatus);
 }
Пример #6
0
 public void SetHistoricDataHandlerRawDataForm(IntelliTrack.Client.Application.frmRawData rawdataform)
 {
   HistoricDataHandler.RawDataForm = rawdataform;
 }
Пример #7
0
 public void SetHistoricDataHandlerReporteRegadoresForm(IntelliTrack.Client.Application.ReportForm rpt)
 {
   HistoricDataHandler.ReporteRegadores = rpt;
 }
Пример #8
0
        private string Status2String(IntelliTrack.Client.Application.Dataset.DataRetriever.QUERYSTATUS Status)
        {
            string s = "";
            switch (Status)
            {
                case IntelliTrack.Client.Application.Dataset.DataRetriever.QUERYSTATUS.QUERYING:
                    s = "Consultando";
                    break;

                case IntelliTrack.Client.Application.Dataset.DataRetriever.QUERYSTATUS.RUNNING:
                    s = "Reproduciendo";
                    break;

                case IntelliTrack.Client.Application.Dataset.DataRetriever.QUERYSTATUS.STOPPED:
                    s = "Detenido";
                    break;

                default:
                    s = "";
                    break;
            }
            return s;
        }
Пример #9
0
 private void OnHistoryQueryStatus(IntelliTrack.Client.Application.Dataset.DataRetriever.QUERYSTATUS CurrentStatus)
 {
   udRegistrosPorSegundo.Value = 1000 / Singleton<ComplexMap>.Instance.GetMuestrasPorSegundo();
   QueryStatus = CurrentStatus;
   lblEstado.Text = Status2String(CurrentStatus);
   if (CurrentStatus == IntelliTrack.Client.Application.Dataset.DataRetriever.QUERYSTATUS.RUNNING)
     trackPosicion.SetRange(0, Singleton<ComplexMap>.Instance.GetHistoryRecordCount());
 }