Esempio n. 1
0
        public static void StartReleve(CSite site)
        {
            if (site == null)
            {
                return;
            }

            CReleveDb releveDb = CTimosInventoryDb.GetInventaireDatas();

            releveDb.AcceptChanges();
            //Cherche le relevé dans la base
            CReleveSite releve = new CReleveSite(releveDb);

            if (!releve.ReadIfExist(new CFiltreMemoryDb(
                                        CSite.c_champId + "=@1",
                                        site.Id)))
            {
                releve = CReleveSite.GetNewReleve(releveDb, site);
            }
            CFormReleveSite form = new CFormReleveSite();

            form.m_releve = releve;
            form.ShowDialog();
            form.Dispose();
        }
Esempio n. 2
0
        private void m_wndListeReleves_ItemClick(ListViewItem item)
        {
            CReleveSite rel = item.Tag as CReleveSite;

            if (rel != null && rel.Site != null)
            {
                CFormReleveSite.StartReleve(rel.Site);
            }
        }
Esempio n. 3
0
 private void m_btnStartSurvey_Click(object sender, EventArgs e)
 {
     CFormReleveSite.StartReleve(m_site);
 }