Esempio n. 1
0
File: Form1.cs Progetto: kepon2/cP
        private void button9_Click(object sender, EventArgs e)
        {
            AVL bynaryAvlTree = new AVL();

            for (int i = 0; i < personnelMap.arraySize - 1; i++)
            {
                bynaryAvlTree.Add(personnelMap.array[i].field2, personnelMap.array[i].field1, personnelMap.array[i].field3);
            }

            reportClass classToReport = new reportClass();

            bynaryAvlTree.getReport(bynaryAvlTree.root, classToReport, payInfoMap);
            reportFioPay rep = new reportFioPay(classToReport);

            rep.Show();
            for (int i = 0; i < classToReport.arraySize - 1; i++)
            {
                string[] toInsert = new string[2];
                toInsert[0] = classToReport.array[i].field1;
                toInsert[1] = classToReport.array[i].field2 ?? "не найденны данные о зп";
                rep.dataGridView1.Rows.Add(toInsert);
            }
            MessageBox.Show("Обратите внимание - корректность данных может быть нарушена!\n" +
                            "Соответсвующие данные будут отмечены", "Предупреждение", MessageBoxButtons.OK, MessageBoxIcon.Warning);
        }
Esempio n. 2
0
 public void getReport(reportClass rC, payMap pM)
 {
     for (int i = 0; i < this.arraySize - 1; i++)
     {
         Tuple <int, pMap.info, int, string> finded = pM.findInHashTable(this.array[i].field2);
         rC.pushArray(this.array[i].field1, finded.Item2.field1, null, null);
     }
 }
Esempio n. 3
0
 public void getReport(reportClass rC, hashTable eM)
 {
     for (int i = 0; i < this.arraySize - 1; i++)
     {
         Tuple <int, string, string, string, int, string> finded = eM.findInHashTable(this.array[i].field1);
         rC.pushArray(this.array[i].field1, this.array[i].field2, finded.Item3, null);
     }
 }
Esempio n. 4
0
 public void getReport(reportClass rC, hashTable eM, payMap pM)
 {
     for (int i = 0; i < this.arraySize - 1; i++)
     {
         Tuple <int, string, string, string, int, string> findedFromEmployee = eM.findInHashTable(this.array[i].field1);
         Tuple <int, pMap.info, int, string> findedFromPay = pM.findInHashTable(this.array[i].field2);
         rC.pushArray(array[i].field1, array[i].field3,
                      findedFromEmployee.Item3, findedFromPay.Item2.field1);
     }
 }
Esempio n. 5
0
File: avlTree.cs Progetto: kepon2/cP
 public void getReport(Nodetree current, reportClass rC, payMap pM)
 {
     if (current != null)
     {
         getReport(current.left, rC, pM);
         Tuple <int, pMap.info, int, string> finded = pM.findInHashTable(current.vacancy);
         rC.pushArray(current.FIO, finded.Item2.field1, null, null);
         getReport(current.right, rC, pM);
     }
 }
Esempio n. 6
0
 public void getReport(node current, reportClass rC, payMap pM)
 {
     if (current != null)
     {
         getReport(current.left, rC, pM);
         Tuple <int, pMap.info, int, string> finded = pM.findInHashTable(current.field2);
         rC.pushArray(current.field2, finded.Item2.field1, current.field1, current.field3);
         getReport(current.right, rC, pM);
     }
 }
Esempio n. 7
0
File: Form1.cs Progetto: kepon2/cP
        private void button6_Click(object sender, EventArgs e)
        {
            reportClass classToReport = new reportClass();

            personnelMap.getReport(classToReport, employeeMap);
            reportFioPostExp rep = new reportFioPostExp(classToReport);

            rep.Show();
            for (int i = 0; i < classToReport.arraySize - 1; i++)
            {
                string[] toInsert = new string[3];
                toInsert[0] = classToReport.array[i].field1;
                toInsert[1] = classToReport.array[i].field2;
                toInsert[2] = classToReport.array[i].field3 ?? "не найденны данные о стаже";
                rep.dataGridView1.Rows.Add(toInsert);
            }
            MessageBox.Show("Обратите внимание - корректность данных может быть нарушена!\n" +
                            "Соответсвующие данные будут отмечены", "Предупреждение", MessageBoxButtons.OK, MessageBoxIcon.Warning);
        }
Esempio n. 8
0
File: Form1.cs Progetto: kepon2/cP
        //

        //Отчеты
        private void button10_Click(object sender, EventArgs e)
        {
            reportClass classToReport = new reportClass();

            bynaryTreeSourceData.getReport(bynaryTreeSourceData.root, classToReport, payInfoMap);
            reportPayBonus rep = new reportPayBonus(classToReport);

            rep.Show();
            for (int i = 0; i < classToReport.arraySize - 1; i++)
            {
                string[] toInsert = new string[4];
                toInsert[0] = classToReport.array[i].field1;
                toInsert[1] = classToReport.array[i].field2 ?? "не найденны данные о зп";
                toInsert[2] = classToReport.array[i].field3;
                toInsert[3] = classToReport.array[i].field4;
                rep.dataGridView1.Rows.Add(toInsert);
            }
            MessageBox.Show("Обратите внимание - корректность данных может быть нарушена!\n" +
                            "Соответсвующие данные будут отмечены", "Предупреждение", MessageBoxButtons.OK, MessageBoxIcon.Warning);
        }
Esempio n. 9
0
 // Параметризированный конструктор. Вызывается подсистемой ReportService
 public r_ProjectBDDS(reportClass ReportProfile, string ReportName)
     : base(ReportProfile, ReportName)
 {
 }
Esempio n. 10
0
 /// <summary>
 /// Параметризованный конструктор, вызваемый подсистемой ReportService
 /// </summary>
 /// <param name="ReportProfile"></param>
 /// <param name="ReportName"></param>
 public r_EmployeeExpensesBalance(reportClass ReportProfile, string ReportName)
     : base(ReportProfile, ReportName)
 {
 }
Esempio n. 11
0
 /// <summary>
 /// Параметризованный конструктор, вызваемый подсистемой ReportService
 /// </summary>
 /// <param name="ReportProfile"></param>
 /// <param name="ReportName"></param>
 public OrganizationHistory(reportClass ReportProfile, string ReportName)
     : base(ReportProfile, ReportName)
 {
 }
Esempio n. 12
0
 public reportPayBonus(reportClass rC)
 {
     InitializeComponent();
     this.rC = rC;
 }
Esempio n. 13
0
 public FinanceReport(reportClass ReportProfile, string ReportName)
     : base(ReportProfile, ReportName)
 {
 }
Esempio n. 14
0
 public reportFioPostExp(reportClass rC)
 {
     InitializeComponent();
     this.rC = rC;
 }
Esempio n. 15
0
 /// <summary>
 /// Параметризованный конструктор, вызваемый подсистемой ReportService
 /// </summary>
 /// <param name="ReportProfile"></param>
 /// <param name="ReportName"></param>
 public r_ExpensesByDirections(reportClass ReportProfile, string ReportName)
     : base(ReportProfile, ReportName)
 {
 }
Esempio n. 16
0
        protected const string fixed_14_4 = null;         // "fixed.14.4";

        public r_UsersExpences(reportClass ReportProfile, string ReportName) : base(ReportProfile, ReportName)
        {
        }
Esempio n. 17
0
 // Параметризированный конструктор. Вызывается подсистемой ReportService
 public r_AllEmpSaldoDS(reportClass ReportProfile, string ReportName)
     : base(ReportProfile, ReportName)
 {
 }
Esempio n. 18
0
 public CustomReport(reportClass ReportProfile, string ReportName) : base(ReportProfile, ReportName)
 {
 }
Esempio n. 19
0
 // Параметризированный конструктор. Вызывается подсистемой ReportService
 public r_LoansIncOut(reportClass ReportProfile, string ReportName)
     : base(ReportProfile, ReportName)
 {
 }
Esempio n. 20
0
 public r_Incident(reportClass ReportProfile, string ReportName) : base(ReportProfile, ReportName)
 {
 }
Esempio n. 21
0
 /// <summary>
 /// Параметризованный конструктор, вызваемый подсистемой ReportService
 /// </summary>
 /// <param name="ReportProfile"></param>
 /// <param name="ReportName"></param>
 public CostsByDepartments(reportClass ReportProfile, string ReportName)
     : base(ReportProfile, ReportName)
 {
 }
Esempio n. 22
0
 // Вызывается подсистемой ReportService
 public r_FinPlan(reportClass ReportProfile, string ReportName)
     : base(ReportProfile, ReportName)
 {
 }
Esempio n. 23
0
 public reportFioUnitExpPay(reportClass rC)
 {
     InitializeComponent();
     this.rC = rC;
 }
Esempio n. 24
0
 // Параметризированный конструктор. Вызывается подсистемой ReportService
 public r_ProjectCashGap(reportClass ReportProfile, string ReportName)
     : base(ReportProfile, ReportName)
 {
 }
Esempio n. 25
0
 /// <summary>
 /// Параметризированный конструктор. Вызывается подсистемой ReportService
 /// </summary>
 /// <param name="ReportProfile"></param>
 /// <param name="ReportName"></param>
 public r_EmployeeKassTrans(reportClass ReportProfile, string ReportName)
     : base(ReportProfile, ReportName)
 {
 }
Esempio n. 26
0
 /// <summary>
 /// Параметризированный конструктор. Вызывается подсистемой ReportService
 /// </summary>
 /// <param name="ReportProfile"></param>
 /// <param name="ReportName"></param>
 public r_Tender(reportClass ReportProfile, string ReportName)
     : base(ReportProfile, ReportName)
 {
 }
Esempio n. 27
0
 /// <summary>
 /// Параметризированный конструктор. Вызывается подсистемой ReportService
 /// </summary>
 /// <param name="ReportProfile"></param>
 /// <param name="ReportName"></param>
 public r_EmployeeSaldoDS(reportClass ReportProfile, string ReportName)
     : base(ReportProfile, ReportName)
 {
 }