Exemplo n.º 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);
        }
      }
    }
Exemplo n.º 2
0
 private void FireQueryStatus(IntelliTrack.Client.Application.Dataset.DataRetriever.QUERYSTATUS CurrentStatus)
 {
   if (OnQueryStatus != null)
     OnQueryStatus(CurrentStatus);
 }
Exemplo n.º 3
0
 public dlgABMCategoria(IntelliTrack.Client.Application.CRUD.ABM ABMType, IntelliTrack.Client.Application.CRUD.CRUDDataSet.CATEGORIASRow row)
   : base(ABMType, row)
 {
   InitializeComponent();
   groupBox1.Enabled = false;
 }
Exemplo n.º 4
0
 public dlgABMTransponder(IntelliTrack.Client.Application.CRUD.ABM ABMType, IntelliTrack.Client.Application.CRUD.CRUDDataSet.TRANSPONDERSRow row)
   : base(ABMType, row)
 {
   InitializeComponent();
   groupBox1.Enabled = false;
 }
Exemplo n.º 5
0
 private void HistoricDataHandler_OnQueryStatus(IntelliTrack.Client.Application.Dataset.DataRetriever.QUERYSTATUS CurrentStatus)
 {
   if (OnHistoryQueryStatus != null)
     OnHistoryQueryStatus(CurrentStatus);
 }
Exemplo n.º 6
0
 public void SetHistoricDataHandlerRawDataForm(IntelliTrack.Client.Application.frmRawData rawdataform)
 {
   HistoricDataHandler.RawDataForm = rawdataform;
 }
Exemplo n.º 7
0
 public void SetHistoricDataHandlerReporteRegadoresForm(IntelliTrack.Client.Application.ReportForm rpt)
 {
   HistoricDataHandler.ReporteRegadores = rpt;
 }
Exemplo n.º 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;
        }
Exemplo n.º 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());
 }