コード例 #1
0
ファイル: Form1.cs プロジェクト: 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);
        }
コード例 #2
0
ファイル: HashTable.cs プロジェクト: kepon2/cP
 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);
     }
 }
コード例 #3
0
ファイル: HashTable.cs プロジェクト: kepon2/cP
 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);
     }
 }
コード例 #4
0
ファイル: HashTable.cs プロジェクト: kepon2/cP
 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);
     }
 }
コード例 #5
0
ファイル: avlTree.cs プロジェクト: 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);
     }
 }
コード例 #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);
     }
 }
コード例 #7
0
ファイル: Form1.cs プロジェクト: 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);
        }
コード例 #8
0
ファイル: Form1.cs プロジェクト: 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);
        }
コード例 #9
0
ファイル: r_ProjectBDDS.cs プロジェクト: SanSay157/IT8
 // Параметризированный конструктор. Вызывается подсистемой ReportService
 public r_ProjectBDDS(reportClass ReportProfile, string ReportName)
     : base(ReportProfile, ReportName)
 {
 }
コード例 #10
0
 /// <summary>
 /// Параметризованный конструктор, вызваемый подсистемой ReportService
 /// </summary>
 /// <param name="ReportProfile"></param>
 /// <param name="ReportName"></param>
 public r_EmployeeExpensesBalance(reportClass ReportProfile, string ReportName)
     : base(ReportProfile, ReportName)
 {
 }
コード例 #11
0
 /// <summary>
 /// Параметризованный конструктор, вызваемый подсистемой ReportService
 /// </summary>
 /// <param name="ReportProfile"></param>
 /// <param name="ReportName"></param>
 public OrganizationHistory(reportClass ReportProfile, string ReportName)
     : base(ReportProfile, ReportName)
 {
 }
コード例 #12
0
 public reportPayBonus(reportClass rC)
 {
     InitializeComponent();
     this.rC = rC;
 }
コード例 #13
0
 public FinanceReport(reportClass ReportProfile, string ReportName)
     : base(ReportProfile, ReportName)
 {
 }
コード例 #14
0
ファイル: reportFioPostExp.cs プロジェクト: kepon2/cP
 public reportFioPostExp(reportClass rC)
 {
     InitializeComponent();
     this.rC = rC;
 }
コード例 #15
0
 /// <summary>
 /// Параметризованный конструктор, вызваемый подсистемой ReportService
 /// </summary>
 /// <param name="ReportProfile"></param>
 /// <param name="ReportName"></param>
 public r_ExpensesByDirections(reportClass ReportProfile, string ReportName)
     : base(ReportProfile, ReportName)
 {
 }
コード例 #16
0
ファイル: r_UsersExpences.cs プロジェクト: SanSay157/IT8
        protected const string fixed_14_4 = null;         // "fixed.14.4";

        public r_UsersExpences(reportClass ReportProfile, string ReportName) : base(ReportProfile, ReportName)
        {
        }
コード例 #17
0
ファイル: r_AllEmpSaldo.cs プロジェクト: SanSay157/IT8
 // Параметризированный конструктор. Вызывается подсистемой ReportService
 public r_AllEmpSaldoDS(reportClass ReportProfile, string ReportName)
     : base(ReportProfile, ReportName)
 {
 }
コード例 #18
0
 public CustomReport(reportClass ReportProfile, string ReportName) : base(ReportProfile, ReportName)
 {
 }
コード例 #19
0
ファイル: r_LoansIncOut.cs プロジェクト: SanSay157/IT8
 // Параметризированный конструктор. Вызывается подсистемой ReportService
 public r_LoansIncOut(reportClass ReportProfile, string ReportName)
     : base(ReportProfile, ReportName)
 {
 }
コード例 #20
0
ファイル: r_Incident.cs プロジェクト: SanSay157/IT8
 public r_Incident(reportClass ReportProfile, string ReportName) : base(ReportProfile, ReportName)
 {
 }
コード例 #21
0
ファイル: CostsByDepartments.cs プロジェクト: SanSay157/IT8
 /// <summary>
 /// Параметризованный конструктор, вызваемый подсистемой ReportService
 /// </summary>
 /// <param name="ReportProfile"></param>
 /// <param name="ReportName"></param>
 public CostsByDepartments(reportClass ReportProfile, string ReportName)
     : base(ReportProfile, ReportName)
 {
 }
コード例 #22
0
 // Вызывается подсистемой ReportService
 public r_FinPlan(reportClass ReportProfile, string ReportName)
     : base(ReportProfile, ReportName)
 {
 }
コード例 #23
0
ファイル: reportFioUnitExpPay.cs プロジェクト: kepon2/cP
 public reportFioUnitExpPay(reportClass rC)
 {
     InitializeComponent();
     this.rC = rC;
 }
コード例 #24
0
 // Параметризированный конструктор. Вызывается подсистемой ReportService
 public r_ProjectCashGap(reportClass ReportProfile, string ReportName)
     : base(ReportProfile, ReportName)
 {
 }
コード例 #25
0
 /// <summary>
 /// Параметризированный конструктор. Вызывается подсистемой ReportService
 /// </summary>
 /// <param name="ReportProfile"></param>
 /// <param name="ReportName"></param>
 public r_EmployeeKassTrans(reportClass ReportProfile, string ReportName)
     : base(ReportProfile, ReportName)
 {
 }
コード例 #26
0
 /// <summary>
 /// Параметризированный конструктор. Вызывается подсистемой ReportService
 /// </summary>
 /// <param name="ReportProfile"></param>
 /// <param name="ReportName"></param>
 public r_Tender(reportClass ReportProfile, string ReportName)
     : base(ReportProfile, ReportName)
 {
 }
コード例 #27
0
 /// <summary>
 /// Параметризированный конструктор. Вызывается подсистемой ReportService
 /// </summary>
 /// <param name="ReportProfile"></param>
 /// <param name="ReportName"></param>
 public r_EmployeeSaldoDS(reportClass ReportProfile, string ReportName)
     : base(ReportProfile, ReportName)
 {
 }