public AbstarctAdatPanel(string tableName)
        {
            dao            = new KiosztasDao();
            this.tableName = tableName;
            InitializeComponent();

            InitializeData();
        }
Beispiel #2
0
        public ZeroLatLng(List <WorkData> adatok, KiosztasDao dao)
        {
            this.dao    = dao;
            this.adatok = adatok;


            InitializeComponent();

            FillData();
        }
Beispiel #3
0
        public UjAuto(KiosztasDao dao)
        {
            InitializeComponent();

            rendszamPred = new Predicate <Auto>(IsRendszam);

            elem = dao.GetCars();
            foreach (Auto a in elem)
            {
                rendszamBox.Items.Add(a.Rendszam);
            }
        }
Beispiel #4
0
        public ZeroCso(List <WorkData> adat, KiosztasDao kdao)
        {
            DataGridViewComboBoxCell combo;

            InitializeComponent();

            this.kdao = kdao;
            List <string> utcanevek = kdao.GetUtcak();

            foreach (WorkData ma in adat)
            {
                if (ma.CsoHossz == 0)
                {
                    combo = new DataGridViewComboBoxCell();
                    foreach (string ns in utcanevek)
                    {
                        combo.Items.Add(ns);
                    }

                    try
                    {
                        combo.Value = ma.Utca.ToUpper();
                    }
                    catch (Exception)
                    {
                        combo.Value = utcanevek[0];
                    }

                    int row = csoGrid.Rows.Add();
                    csoGrid[Cim.Index, row].Value           = ma;
                    csoGrid[ValosCsohossz.Index, row].Value = 0;
                    csoGrid[ValosCim.Index, row]            = combo;
                    csoGrid[ValosHsz.Index, row].Value      = ma.HazSzam;
                    csoGrid[CsoStr.Index, row].Value        = ma.CsoStr;
                }
            }
        }
Beispiel #5
0
 public static void DoUpdate(KiosztasDao dao, CimOsszesito oldCim, List <WorkData> oldData)
 {
 }
Beispiel #6
0
        public CarDataGridPane(List <Auto> autok, CimOsszesito osszCim, bool stat, KiosztasDao dao)
        {
            InitializeComponent();

            this.dao  = dao;
            boldStyle = new Font(goodcars.Font, FontStyle.Bold);

            cars   = autok;
            cimosz = osszCim;

            kisOsszeg          = new DataGridViewRow();
            kisOsszeg.ReadOnly = true;
            kisOsszeg.DefaultCellStyle.BackColor = Color.AntiqueWhite;
            nagyOsszeg          = new DataGridViewRow();
            nagyOsszeg.ReadOnly = true;
            nagyOsszeg.DefaultCellStyle.BackColor = Color.AntiqueWhite;

            for (int a = 0; a < 6; a++)
            {
                kisOsszeg.Cells.Add(new DataGridViewTextBoxCell());
                nagyOsszeg.Cells.Add(new DataGridViewTextBoxCell());
            }
            kisOsszeg.Cells[0].Value  = "Kis címek összesen";
            nagyOsszeg.Cells[0].Value = "Nagy címek összesen";

            allElsoLE5.Text = cimosz.ElsoLE5.ToString();
            allDELE5.Text   = cimosz.DeLE5.ToString();
            allDULE5.Text   = cimosz.DuLE5.ToString();
            allLE5.Text     = cimosz.OsszLE5.ToString();
            allSDeb.Text    = cimosz.OsszLE5Deb.ToString();
            allSJo.Text     = cimosz.OsszLE5Jozsa.ToString();

            osszElsoDeb.Text = cimosz.ElsofuvarOsszDeb.ToString();
            osszDeDeb.Text   = cimosz.DelelottOsszDeb.ToString();
            osszDuDeb.Text   = cimosz.DelutanOsszDeb.ToString();
            allDeb.Text      = cimosz.OsszDebrecen.ToString();

            allElsoN.Text = cimosz.ElsoTizes.ToString();
            allDEN.Text   = cimosz.DeTizes.ToString();
            allDUN.Text   = cimosz.DuTizes.ToString();
            allN.Text     = cimosz.OsszTizes.ToString();
            allNDeb.Text  = cimosz.OsszTizesDeb.ToString();
            allNJo.Text   = cimosz.OsszTizesJozsa.ToString();

            osszElsoJo.Text = cimosz.ElsofuvarOsszJozsa.ToString();
            osszDeJo.Text   = cimosz.DelelottOsszJozsa.ToString();
            osszDuJo.Text   = cimosz.DelutanOsszJozsa.ToString();
            allJo.Text      = cimosz.OsszJozsai.ToString();

            allelso.Text = cimosz.Elsofuvar.ToString();
            allde.Text   = cimosz.Delelott.ToString();
            alldu.Text   = cimosz.Delutan.ToString();
            allall.Text  = cimosz.OsszEgesz.ToString();

            elsoSDeb.Text = cimosz.ElsofuvarKisDeb.ToString();
            elsoSJo.Text  = cimosz.ElsoLE5Jo.ToString();
            deSDeb.Text   = cimosz.DelelottKisDeb.ToString();
            deSJo.Text    = cimosz.DeLE5Jo.ToString();
            duSDeb.Text   = cimosz.DelutanKisDeb.ToString();
            duSJo.Text    = cimosz.DuLE5Jo.ToString();

            elsoNDeb.Text = cimosz.ElsofuvarNagyDeb.ToString();
            elsoNJo.Text  = cimosz.ElsoTizesJozsa.ToString();
            deNDeb.Text   = cimosz.DelelottNagyDeb.ToString();
            deNJo.Text    = cimosz.DeTizesJozsa.ToString();
            duNDeb.Text   = cimosz.DelutanNagyDeb.ToString();
            duNJo.Text    = cimosz.DuTizesJozsa.ToString();

            kapCompare = new Comparison <Auto>(Auto.CompareByKapacitas);

            if (stat)
            {
                DoCarStatx();
            }
            DoCarUpdate();



            goodcars.CellEndEdit += new DataGridViewCellEventHandler(goodcars_CellEndEdit);
        }
Beispiel #7
0
        public MunkalapPanel(Repository repo, KiosztasDao dao)
        {
            this.dao  = dao;
            this.repo = repo;
            InitializeComponent();

            List <string>   utcak = dao.GetUtcak();
            List <WorkData> work  = repo.GetOsszAdat().Values.ToList();

            csoGrid.AutoGenerateColumns = false;
            csoGrid.DataSource          = work;

            DataGridViewColumn col = new DataGridViewTextBoxColumn();

            col.ReadOnly         = true;
            col.HeaderText       = "Munkalap";
            col.DataPropertyName = "WorksheetNumber";
            col.Width            = 60;
            csoGrid.Columns.Add(col);

            col                  = new DataGridViewTextBoxColumn();
            col.ReadOnly         = true;
            col.HeaderText       = "m3";
            col.DataPropertyName = "WorkCapacity";
            col.Width            = 30;
            csoGrid.Columns.Add(col);

            col                  = new DataGridViewTextBoxColumn();
            col.ReadOnly         = true;
            col.HeaderText       = "Tm3";
            col.DataPropertyName = "TenylegesKobmeter";
            col.Width            = 30;
            csoGrid.Columns.Add(col);

            col                  = new DataGridViewTextBoxColumn();
            col.HeaderText       = "Napszak";
            col.ReadOnly         = true;
            col.DataPropertyName = "Napszak";
            col.Width            = 50;
            csoGrid.Columns.Add(col);

            DataGridViewComboBoxColumn combo = new DataGridViewComboBoxColumn();

            combo.HeaderText = "Utca";
            foreach (string itm in utcak)
            {
                combo.Items.Add(itm);
            }
            combo.Items.Add("");
            combo.AutoComplete     = true;
            combo.MaxDropDownItems = 10;
            combo.DataPropertyName = "Utca";
            combo.Width            = 140;
            csoGrid.Columns.Add(combo);

            col                  = new DataGridViewTextBoxColumn();
            col.HeaderText       = "Hsz";
            col.DataPropertyName = "HazSzam";
            col.Width            = 60;
            csoGrid.Columns.Add(col);

            col                  = new DataGridViewTextBoxColumn();
            col.HeaderText       = "Info";
            col.DataPropertyName = "Megjegyzes";
            csoGrid.Columns.Add(col);

            col                  = new DataGridViewCheckBoxColumn();
            col.HeaderText       = "Problémás";
            col.DataPropertyName = "Problematic";
            col.Width            = 60;
            csoGrid.Columns.Add(col);

            col                  = new DataGridViewTextBoxColumn();
            col.HeaderText       = "ID";
            col.DataPropertyName = "Number";
            col.Width            = 10;
            col.Visible          = false;
            csoGrid.Columns.Add(col);

            csoGrid.CellValueChanged += new DataGridViewCellEventHandler(csoGrid_CellValueChanged);
        }
Beispiel #8
0
 public DataUpdater(DateTime date, KiosztasDao kdao)
 {
     this.kdao = kdao;
     this.date = date;
     InitializeComponent();
 }