public static void FillWorkloadEmployee(DataTable3DataTable datatable, List <Workflow> workflows, List <ExtendedStaticWorkflow> statics) { foreach (var w in workflows) { datatable.AddDataTable3Row("", w.Discipline.DisciplineName, "ПИН", "ФИТ", w.Semester.SemesterNumber, w.Group.CountOfStudents, w.Semester.CountOfWeeks, 1, w.Group.CountOfSubgroups, w.Lectures, w.Practices, w.Labs , GetInt(w.Examen), GetInt(w.Zachet), 0, GetInt(w.KR), 0, 0, w.PracticeWeeks, 0, 0, 0, 0, 0, w.Employee.FullName, w.WorkflowYear.FullYearName, 0, 0, 0, 0, w.Agreement.Description, 0, false); } foreach (var s in statics) { foreach (var d in s.Dictionary) { var lowerD = s.DisciplineName.ToLower(); datatable.AddDataTable3Row("", s.DisciplineName, "ПИН", "ФИТ", s.Semester.SemesterNumber, s.Group.CountOfStudents, (lowerD.Contains("практика") ? (int)s.Value1 : 0) , 1, 1, 0, 0, 0 , 0, GetInt(s.Zachet), 0, 0, 0, (lowerD == "учебная практика" ? 1 : 0), (lowerD.Contains("производственная практика") ? 1 : 0), (lowerD.Contains("преддипломная практика") ? 1 : 0), (lowerD == "государственный экзамен бакалавров" ? 1 : 0), (lowerD == "работа гак" ? 1 : 0), (lowerD == "председатель гак" ? 1 : 0), (lowerD == "диссертация бакалавры" ? 1 : 0), d.Key, s.AcademicYear.FullYearName, (lowerD == "руководство кафедрой" ? 1 : 0), s.Value1, s.Value2, (lowerD == "руководство аспирантами" || lowerD == "прием экзаменов кандидат. и аспирант." ? 1 : 0), s.Agreement.Description, d.Value, s.Employee2 != null ); } } }
private void InitClass() { this.DataSetName = "AltalanosDataSet"; this.Prefix = ""; this.Namespace = "http://tempuri.org/AltalanosDataSet.xsd"; this.EnforceConstraints = true; this.SchemaSerializationMode = global::System.Data.SchemaSerializationMode.IncludeSchema; this.tableDataTable1 = new DataTable1DataTable(); base.Tables.Add(this.tableDataTable1); this.tableDataTable2 = new DataTable2DataTable(); base.Tables.Add(this.tableDataTable2); this.tableDataTable3 = new DataTable3DataTable(); base.Tables.Add(this.tableDataTable3); this.tableDataTable4 = new DataTable4DataTable(); base.Tables.Add(this.tableDataTable4); this.tableDataTable5 = new DataTable5DataTable(); base.Tables.Add(this.tableDataTable5); this.tableDataTable6 = new DataTable6DataTable(); base.Tables.Add(this.tableDataTable6); }
internal DataTable3Row(global::System.Data.DataRowBuilder rb) : base(rb) { this.tableDataTable3 = ((DataTable3DataTable)(this.Table)); }
internal void InitVars(bool initTable) { this.tableDataTable1 = ((DataTable1DataTable)(base.Tables["DataTable1"])); if ((initTable == true)) { if ((this.tableDataTable1 != null)) { this.tableDataTable1.InitVars(); } } this.tableDataTable2 = ((DataTable2DataTable)(base.Tables["DataTable2"])); if ((initTable == true)) { if ((this.tableDataTable2 != null)) { this.tableDataTable2.InitVars(); } } this.tableDataTable3 = ((DataTable3DataTable)(base.Tables["DataTable3"])); if ((initTable == true)) { if ((this.tableDataTable3 != null)) { this.tableDataTable3.InitVars(); } } this.tableDataTable4 = ((DataTable4DataTable)(base.Tables["DataTable4"])); if ((initTable == true)) { if ((this.tableDataTable4 != null)) { this.tableDataTable4.InitVars(); } } this.tableDataTable5 = ((DataTable5DataTable)(base.Tables["DataTable5"])); if ((initTable == true)) { if ((this.tableDataTable5 != null)) { this.tableDataTable5.InitVars(); } } this.tableDataTable6 = ((DataTable6DataTable)(base.Tables["DataTable6"])); if ((initTable == true)) { if ((this.tableDataTable6 != null)) { this.tableDataTable6.InitVars(); } } }