Ejemplo n.º 1
0
        private void frmActivityTeam2_Load(object sender, EventArgs e)
        {
            // TODO: This line of code loads data into the 'beaDBDataSet.vPersons' table. You can move, or remove it, as needed.
            //this.vPersonsTableAdapter.Fill(this.beaDBDataSet.vPersons);

            try
            {
                this.tblActivityTeamTableAdapter.Fill(this.beaDBDataSet.tblActivityTeam, this.practID);
            }
            catch (System.Exception ex)
            {
                System.Windows.Forms.MessageBox.Show(ex.Message);
            }

            try
            {
                this.vProjectTeamTableAdapter.Fill(this.beaDBDataSet.vProjectTeam, this.projID);
            }
            catch (System.Exception ex)
            {
                System.Windows.Forms.MessageBox.Show(ex.Message);
            }

            dgv = this.tblActivityTeamDataGridView;
            bnv = this.tblActivityTeamBindingNavigator;
            DesignHelper.DesignDataGridView(dgv);
            DesignHelper.DesignDataGridNavigator(bnv);

            this.Text = "Ομάδα Δραστηριότητας";

            this.lblCurrentActivity.Text     = bea.currentActivity;
            this.lblCurrentActivity.Location = new Point(300, 110);

            this.label2.Text             = "Προυπολογισμός AH:";
            this.label4.Text             = "Αδιάθετες ΑΗ:";
            this.lblBudget.Text          = GetActivityWorkBudget(practID).Item1.ToString();
            this.lblRemainingBudget.Text = GetActivityWorkBudget(practID).Item2.ToString();

            // this.label1.Text = GetProjectAvailableHours(this.projID).ToString();
            dgv.Columns["dataGridViewTextBoxColumn1"].Visible = false;
            dgv.Columns["dataGridViewTextBoxColumn4"].Visible = false;

            dgv.Columns["dataGridViewTextBoxColumn2"].HeaderText = "Εργαζόμενος";
            dgv.Columns["dataGridViewTextBoxColumn2"].Width      = 220;

            dgv.Columns["dataGridViewTextBoxColumn3"].HeaderText = "Απασχόληση - ΑΗ";
            dgv.Columns["dataGridViewTextBoxColumn3"].Width      = 120;

            dgv.Columns["actteamBudget"].HeaderText = "Κόστος";
            dgv.Columns["actteamBudget"].Width      = 90;

            dgv.Columns["availabilityIcon"].HeaderText = "";
            dgv.Columns["availabilityIcon"].Width      = 70;

            dgv.Columns["availability"].HeaderText = "Διαθέσιμες ΑΗ";
            dgv.Columns["availability"].Width      = 120;
            DesignHelper.InactivateColumn(dgv, dgv.Columns["availability"].Index);
        }
Ejemplo n.º 2
0
        private void frmProjectTeam_Load(object sender, EventArgs e)
        {
            // TODO: This line of code loads data into the 'beaDBDataSet.vPersons' table. You can move, or remove it, as needed.
            this.vPersonsTableAdapter.Fill(this.beaDBDataSet.vPersons);
            try
            {
                this.tblProjectTeamTableAdapter.Fill(this.beaDBDataSet.tblProjectTeam, this.projectID);
            }
            catch (System.Exception ex)
            {
                System.Windows.Forms.MessageBox.Show(ex.Message);
            }

            dgv = this.tblProjectTeamDataGridView;
            bnv = this.tblProjectTeamBindingNavigator;
            DesignHelper.DesignDataGridView(dgv);
            DesignHelper.DesignDataGridNavigator(bnv);

            this.Text = "Ομάδα Έργου";

            this.lblCurrentProject.Text     = bea.currentProject;
            this.lblCurrentProject.Location = new Point(310, 110);
            this.lblBudget.Text             = GetProjectBudget(projectID).Item1.ToString("C", CultureInfo.CurrentCulture);
            this.lblRemainingBudget.Text    = GetProjectBudget(projectID).Item2.ToString("C", CultureInfo.CurrentCulture);


            this.label2.Text = "Προυπολογισμός:";
            this.label4.Text = "Αδιάθετα:";

            dgv.Columns["dataGridViewTextBoxColumn1"].Visible = false;
            dgv.Columns["dataGridViewTextBoxColumn2"].Visible = false;

            dgv.Columns["dataGridViewTextBoxColumn3"].HeaderText = "Εργαζόμενος";
            dgv.Columns["dataGridViewTextBoxColumn3"].Width      = 270;

            dgv.Columns["prteamRole"].HeaderText = "Ρόλος";
            dgv.Columns["prteamRole"].Width      = 270;


            dgv.Columns["dataGridViewTextBoxColumn4"].HeaderText = "Απασχόληση - ΑΗ";
            dgv.Columns["dataGridViewTextBoxColumn4"].Width      = 140;

            dgv.Columns["prteamBudget"].HeaderText = "Κόστος";
            dgv.Columns["prteamBudget"].Width      = 100;
            DesignHelper.InactivateColumn(dgv, dgv.Columns["prteamBudget"].Index);

            dgv.Columns["availabilityIcon"].HeaderText = "";
            dgv.Columns["availabilityIcon"].Width      = 70;

            dgv.Columns["availability"].HeaderText = "Διαθέσιμες ΑΗ";
            dgv.Columns["availability"].Width      = 120;
            DesignHelper.InactivateColumn(dgv, dgv.Columns["availability"].Index);
        }
Ejemplo n.º 3
0
        private void frmPersonAvailability_Load(object sender, EventArgs e)
        {
            // TODO: This line of code loads data into the 'beaDBDataSet.vAvailability' table. You can move, or remove it, as needed.
            this.vAvailabilityTableAdapter.Fill(this.beaDBDataSet.vAvailability);
            // TODO: This line of code loads data into the 'beaDBDataSet.tblPersonAvailability' table. You can move, or remove it, as needed.
            this.tblPersonAvailabilityTableAdapter.Fill(this.beaDBDataSet.tblPersonAvailability, personID);

            dgv = this.tblPersonAvailabilityDataGridView;
            bnv = this.tblPersonAvailabilityBindingNavigator;
            DesignHelper.DesignDataGridView(dgv);
            DesignHelper.DesignDataGridNavigator(bnv);
            this.monthCalendar1.Visible = false;
            this.monthCalendar2.Visible = false;

            this.Text                 = "Μη διαθεσιμότητα";
            this.lblPersonel.Text     = bea.currentPerson;
            this.lblPersonel.Location = new Point(320, 110);

            dgv.Width  = 700;
            dgv.Height = 300;

            dgv.Columns["dataGridViewTextBoxColumn1"].Visible = false;

            dgv.Columns["dataGridViewTextBoxColumn2"].Visible = false;

            dgv.Columns["dataGridViewTextBoxColumn6"].HeaderText = "Αιτία";
            dgv.Columns["dataGridViewTextBoxColumn6"].Width      = 250;

            dgv.Columns["fromDate"].HeaderText = "";
            dgv.Columns["fromDate"].Width      = 75;

            dgv.Columns["dataGridViewTextBoxColumn3"].HeaderText = "Από";
            dgv.Columns["dataGridViewTextBoxColumn3"].Width      = 100;
            DesignHelper.InactivateColumn(dgv, dgv.Columns["dataGridViewTextBoxColumn3"].Index);

            dgv.Columns["toDate"].HeaderText = "";
            dgv.Columns["toDate"].Width      = 75;

            dgv.Columns["dataGridViewTextBoxColumn4"].HeaderText = "Έως";
            dgv.Columns["dataGridViewTextBoxColumn4"].Width      = 100;
            DesignHelper.InactivateColumn(dgv, dgv.Columns["dataGridViewTextBoxColumn4"].Index);

            dgv.Columns["dataGridViewTextBoxColumn5"].Visible = false;
        }
Ejemplo n.º 4
0
        private void frmProjects_Load(object sender, EventArgs e)
        {
            // TODO: This line of code loads data into the 'beaDBDataSet.tblProjects' table. You can move, or remove it, as needed.
            this.tblProjectsTableAdapter.Fill(this.beaDBDataSet.tblProjects);

            dgv = this.tblProjectsDataGridView;
            bnv = this.tblProjectsBindingNavigator;
            DesignHelper.DesignDataGridView(dgv);
            DesignHelper.DesignDataGridNavigator(bnv);

            foreach (DataGridViewRow row in dgv.Rows)
            {
                row.Height = 25;
            }
            dgv.RowTemplate.Height = 25;

            //MessageBox.Show(dgv.RowTemplate.Height.ToString());
            this.monthCalendar1.Visible = false;
            this.monthCalendar2.Visible = false;

            //this.WindowState = FormWindowState.Maximized;

            this.Text           = "Έργα";
            this.labelUser.Text = bea.userFullName;

            dgv.Columns["dataGridViewTextBoxColumn1"].Visible = false;

            dgv.Columns["dataGridViewTextBoxColumn2"].HeaderText = "Τίτλος";
            dgv.Columns["dataGridViewTextBoxColumn2"].Width      = 200;

            dgv.Columns["dataGridViewTextBoxColumn3"].Visible = false;

            dgv.Columns["dataGridViewTextBoxColumn4"].HeaderText = "Έναρξη";
            dgv.Columns["dataGridViewTextBoxColumn4"].Width      = 90;
            DesignHelper.InactivateColumn(dgv, dgv.Columns["dataGridViewTextBoxColumn4"].Index);

            dgv.Columns["projStart"].HeaderText = "";
            dgv.Columns["projStart"].Width      = 50;

            dgv.Columns["dataGridViewTextBoxColumn5"].HeaderText = "Λήξη";
            dgv.Columns["dataGridViewTextBoxColumn5"].Width      = 90;
            DesignHelper.InactivateColumn(dgv, 6);

            dgv.Columns["projFinish"].HeaderText = "";
            dgv.Columns["projFinish"].Width      = 50;



            dgv.Columns["projTotalBudget"].HeaderText = "Συνολικός ΠΥ";
            dgv.Columns["projTotalBudget"].Width      = 110;


            dgv.Columns["projBudget"].HeaderText = "ΠΥ Προσωπικού";
            dgv.Columns["projBudget"].Width      = 130;

            dgv.Columns["dataGridViewTextBoxColumn6"].HeaderText = "Απασχόληση";
            dgv.Columns["dataGridViewTextBoxColumn6"].Width      = 130;
            dgv.Columns["dataGridViewTextBoxColumn6"].Visible    = false;

            dgv.Columns["projActivities"].HeaderText = "Δραστηριότητες";
            dgv.Columns["projActivities"].Width      = 110;

            dgv.Columns["projTeam"].HeaderText = "Ομάδα Έργου";
            dgv.Columns["projTeam"].Width      = 100;
        }
Ejemplo n.º 5
0
        private void frmPersonCost_Load(object sender, EventArgs e)
        {
            try
            {
                this.tblPersonCostTableAdapter.Fill(this.beaDBDataSet.tblPersonCost, personID);
            }
            catch (System.Exception ex)
            {
                System.Windows.Forms.MessageBox.Show(ex.Message);
            }

            dgv = this.tblPersonCostDataGridView;
            bnv = this.tblPersonCostBindingNavigator;
            DesignHelper.DesignDataGridView(dgv);
            DesignHelper.DesignDataGridNavigator(bnv);

            this.Text = "Κόστος Εργαζόμενου";
            this.lblCurrentPerson.Text     = bea.currentPerson;
            this.lblCurrentPerson.Location = new Point(320, 110);

            dgv.Columns["dataGridViewTextBoxColumn1"].Visible = false;
            dgv.Columns["dataGridViewTextBoxColumn2"].Visible = false;

            dgv.Columns["From"].HeaderText = "";
            dgv.Columns["From"].Width      = 50;

            dgv.Columns["dataGridViewTextBoxColumn3"].HeaderText = "Από";
            dgv.Columns["dataGridViewTextBoxColumn3"].Width      = 80;
            DesignHelper.InactivateColumn(dgv, dgv.Columns["dataGridViewTextBoxColumn3"].Index);

            dgv.Columns["To"].HeaderText = "";
            dgv.Columns["To"].Width      = 50;
            dgv.Columns["To"].Visible    = false;

            dgv.Columns["dataGridViewTextBoxColumn4"].HeaderText = "Έως";
            dgv.Columns["dataGridViewTextBoxColumn4"].Width      = 80;
            dgv.Columns["dataGridViewTextBoxColumn4"].Visible    = false;

            dgv.Columns["dataGridViewTextBoxColumn5"].HeaderText = "Ημερήσιο Κόστος";
            dgv.Columns["dataGridViewTextBoxColumn5"].Width      = 150;
            dgv.Columns["dataGridViewTextBoxColumn5"].Visible    = false;

            dgv.Columns["personcostMonthSalary"].HeaderText = "Μισθός";
            dgv.Columns["personcostMonthSalary"].Width      = 75;

            dgv.Columns["personcostMonthContributions"].HeaderText = "Εισφορές";
            dgv.Columns["personcostMonthContributions"].Width      = 75;

            dgv.Columns["personcostMonth"].HeaderText = "Μηνιαίο";
            dgv.Columns["personcostMonth"].Width      = 75;
            DesignHelper.InactivateColumn(dgv, dgv.Columns["personcostMonth"].Index);

            dgv.Columns["personcostYear"].HeaderText = "Ετήσιο";
            dgv.Columns["personcostYear"].Width      = 75;
            DesignHelper.InactivateColumn(dgv, dgv.Columns["personcostYear"].Index);

            dgv.Columns["personcostDay"].HeaderText = "Ημερήσιο";
            dgv.Columns["personcostDay"].Width      = 75;
            DesignHelper.InactivateColumn(dgv, dgv.Columns["personcostDay"].Index);

            dgv.Columns["personcostHour"].HeaderText = "Ωριαίο";
            dgv.Columns["personcostHour"].Width      = 75;
            DesignHelper.InactivateColumn(dgv, dgv.Columns["personcostHour"].Index);
        }