diff --git a/JISP/Classes/Utils.cs b/JISP/Classes/Utils.cs index 931adb5..4aabc25 100644 --- a/JISP/Classes/Utils.cs +++ b/JISP/Classes/Utils.cs @@ -139,6 +139,8 @@ public static void ShowForm(Type typForm) frm = new FrmUcenici(); if (typForm == typeof(FrmProstorije)) frm = new FrmProstorije(); + if (typForm == typeof(FrmFormAutoInput)) + frm = new FrmFormAutoInput(); frm.StartPosition = FormStartPosition.CenterScreen; frm.FormClosed += frmMain.FrmChild_FormClosed; diff --git a/JISP/Data/Ds.Designer.cs b/JISP/Data/Ds.Designer.cs index c27b03b..8529c1c 100644 --- a/JISP/Data/Ds.Designer.cs +++ b/JISP/Data/Ds.Designer.cs @@ -66,6 +66,10 @@ public partial class Ds : global::System.Data.DataSet { private ObrazovanjaDataTable tableObrazovanja; + private FormAutoFillsDataTable tableFormAutoFills; + + private FAF_ItemsDataTable tableFAF_Items; + private global::System.Data.DataRelation relationFK_Zaposleni_Zaposlenja; private global::System.Data.DataRelation relationZaposleni_ObracunZarada; @@ -88,6 +92,8 @@ public partial class Ds : global::System.Data.DataSet { private global::System.Data.DataRelation relationZamenjeni_Zaposleni; + private global::System.Data.DataRelation relationFormAutoFills_FAF_Items; + private global::System.Data.SchemaSerializationMode _schemaSerializationMode = global::System.Data.SchemaSerializationMode.IncludeSchema; [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] @@ -183,6 +189,12 @@ protected Ds(global::System.Runtime.Serialization.SerializationInfo info, global if ((ds.Tables["Obrazovanja"] != null)) { base.Tables.Add(new ObrazovanjaDataTable(ds.Tables["Obrazovanja"])); } + if ((ds.Tables["FormAutoFills"] != null)) { + base.Tables.Add(new FormAutoFillsDataTable(ds.Tables["FormAutoFills"])); + } + if ((ds.Tables["FAF_Items"] != null)) { + base.Tables.Add(new FAF_ItemsDataTable(ds.Tables["FAF_Items"])); + } this.DataSetName = ds.DataSetName; this.Prefix = ds.Prefix; this.Namespace = ds.Namespace; @@ -412,6 +424,26 @@ public ObrazovanjaDataTable Obrazovanja { } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + [global::System.ComponentModel.Browsable(false)] + [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)] + public FormAutoFillsDataTable FormAutoFills { + get { + return this.tableFormAutoFills; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + [global::System.ComponentModel.Browsable(false)] + [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)] + public FAF_ItemsDataTable FAF_Items { + get { + return this.tableFAF_Items; + } + } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] [global::System.ComponentModel.BrowsableAttribute(true)] @@ -543,6 +575,12 @@ protected override void ReadXmlSerializable(global::System.Xml.XmlReader reader) if ((ds.Tables["Obrazovanja"] != null)) { base.Tables.Add(new ObrazovanjaDataTable(ds.Tables["Obrazovanja"])); } + if ((ds.Tables["FormAutoFills"] != null)) { + base.Tables.Add(new FormAutoFillsDataTable(ds.Tables["FormAutoFills"])); + } + if ((ds.Tables["FAF_Items"] != null)) { + base.Tables.Add(new FAF_ItemsDataTable(ds.Tables["FAF_Items"])); + } this.DataSetName = ds.DataSetName; this.Prefix = ds.Prefix; this.Namespace = ds.Namespace; @@ -702,6 +740,18 @@ internal void InitVars(bool initTable) { this.tableObrazovanja.InitVars(); } } + this.tableFormAutoFills = ((FormAutoFillsDataTable)(base.Tables["FormAutoFills"])); + if ((initTable == true)) { + if ((this.tableFormAutoFills != null)) { + this.tableFormAutoFills.InitVars(); + } + } + this.tableFAF_Items = ((FAF_ItemsDataTable)(base.Tables["FAF_Items"])); + if ((initTable == true)) { + if ((this.tableFAF_Items != null)) { + this.tableFAF_Items.InitVars(); + } + } this.relationFK_Zaposleni_Zaposlenja = this.Relations["FK_Zaposleni_Zaposlenja"]; this.relationZaposleni_ObracunZarada = this.Relations["Zaposleni_ObracunZarada"]; this.relationZaposlenja_Angazovanja = this.Relations["Zaposlenja_Angazovanja"]; @@ -713,6 +763,7 @@ internal void InitVars(bool initTable) { this.relationProstorije_Racunari = this.Relations["Prostorije_Racunari"]; this.relationZaposleni_Obrazovanja = this.Relations["Zaposleni_Obrazovanja"]; this.relationZamenjeni_Zaposleni = this.Relations["Zamenjeni_Zaposleni"]; + this.relationFormAutoFills_FAF_Items = this.Relations["FormAutoFills_FAF_Items"]; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] @@ -765,6 +816,10 @@ private void InitClass() { base.Tables.Add(this.tableSifRazloziPrestankaZap); this.tableObrazovanja = new ObrazovanjaDataTable(false); base.Tables.Add(this.tableObrazovanja); + this.tableFormAutoFills = new FormAutoFillsDataTable(); + base.Tables.Add(this.tableFormAutoFills); + this.tableFAF_Items = new FAF_ItemsDataTable(); + base.Tables.Add(this.tableFAF_Items); global::System.Data.ForeignKeyConstraint fkc; fkc = new global::System.Data.ForeignKeyConstraint("FK_Zaposleni_Zaposlenja", new global::System.Data.DataColumn[] { this.tableZaposleni.IdZaposlenogColumn}, new global::System.Data.DataColumn[] { @@ -824,6 +879,10 @@ private void InitClass() { this.tableZaposleni.IdZaposlenogColumn}, new global::System.Data.DataColumn[] { this.tableZaposlenja.IdZamenjenogZaposlenogColumn}, false); this.Relations.Add(this.relationZamenjeni_Zaposleni); + this.relationFormAutoFills_FAF_Items = new global::System.Data.DataRelation("FormAutoFills_FAF_Items", new global::System.Data.DataColumn[] { + this.tableFormAutoFills.IdFormAutoFillColumn}, new global::System.Data.DataColumn[] { + this.tableFAF_Items.IdFormAutoFillColumn}, false); + this.Relations.Add(this.relationFormAutoFills_FAF_Items); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] @@ -952,6 +1011,18 @@ private bool ShouldSerializeObrazovanja() { return false; } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + private bool ShouldSerializeFormAutoFills() { + return false; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + private bool ShouldSerializeFAF_Items() { + return false; + } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] private void SchemaChanged(object sender, global::System.ComponentModel.CollectionChangeEventArgs e) { @@ -1093,6 +1164,12 @@ private void InitExpressions() { [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] public delegate void ObrazovanjaRowChangeEventHandler(object sender, ObrazovanjaRowChangeEvent e); + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public delegate void FormAutoFillsRowChangeEventHandler(object sender, FormAutoFillsRowChangeEvent e); + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public delegate void FAF_ItemsRowChangeEventHandler(object sender, FAF_ItemsRowChangeEvent e); + /// ///Represents the strongly named DataTable class. /// @@ -9881,245 +9958,846 @@ public void RemoveObrazovanjaRow(ObrazovanjaRow row) { } /// - ///Represents strongly named DataRow class. + ///Represents the strongly named DataTable class. /// - public partial class UceniciRow : global::System.Data.DataRow { + [global::System.Serializable()] + [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")] + public partial class FormAutoFillsDataTable : global::System.Data.TypedTableBase { - private UceniciDataTable tableUcenici; + private global::System.Data.DataColumn columnIdFormAutoFill; + + private global::System.Data.DataColumn columnName; [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] - internal UceniciRow(global::System.Data.DataRowBuilder rb) : - base(rb) { - this.tableUcenici = ((UceniciDataTable)(this.Table)); + public FormAutoFillsDataTable() { + this.TableName = "FormAutoFills"; + this.BeginInit(); + this.InitClass(); + this.EndInit(); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] - public int IdUcenika { - get { - return ((int)(this[this.tableUcenici.IdUcenikaColumn])); + internal FormAutoFillsDataTable(global::System.Data.DataTable table) { + this.TableName = table.TableName; + if ((table.CaseSensitive != table.DataSet.CaseSensitive)) { + this.CaseSensitive = table.CaseSensitive; } - set { - this[this.tableUcenici.IdUcenikaColumn] = value; + if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) { + this.Locale = table.Locale; + } + if ((table.Namespace != table.DataSet.Namespace)) { + this.Namespace = table.Namespace; } + this.Prefix = table.Prefix; + this.MinimumCapacity = table.MinimumCapacity; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] - public string Ime { - get { - try { - return ((string)(this[this.tableUcenici.ImeColumn])); - } - catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'Ime\' in table \'Ucenici\' is DBNull.", e); - } - } - set { - this[this.tableUcenici.ImeColumn] = value; - } + protected FormAutoFillsDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) : + base(info, context) { + this.InitVars(); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] - public int RegUceLiceId { + public global::System.Data.DataColumn IdFormAutoFillColumn { get { - try { - return ((int)(this[this.tableUcenici.RegUceLiceIdColumn])); - } - catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'RegUceLiceId\' in table \'Ucenici\' is DBNull.", e); - } - } - set { - this[this.tableUcenici.RegUceLiceIdColumn] = value; + return this.columnIdFormAutoFill; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] - public string JOB { + public global::System.Data.DataColumn NameColumn { get { - return ((string)(this[this.tableUcenici.JOBColumn])); - } - set { - this[this.tableUcenici.JOBColumn] = value; + return this.columnName; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] - public string JMBG { + [global::System.ComponentModel.Browsable(false)] + public int Count { get { - try { - return ((string)(this[this.tableUcenici.JMBGColumn])); - } - catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'JMBG\' in table \'Ucenici\' is DBNull.", e); - } - } - set { - this[this.tableUcenici.JMBGColumn] = value; + return this.Rows.Count; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] - public string Prebivaliste { + public FormAutoFillsRow this[int index] { get { - try { - return ((string)(this[this.tableUcenici.PrebivalisteColumn])); - } - catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'Prebivaliste\' in table \'Ucenici\' is DBNull.", e); - } - } - set { - this[this.tableUcenici.PrebivalisteColumn] = value; + return ((FormAutoFillsRow)(this.Rows[index])); } } + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public event FormAutoFillsRowChangeEventHandler FormAutoFillsRowChanging; + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public event FormAutoFillsRowChangeEventHandler FormAutoFillsRowChanged; + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public event FormAutoFillsRowChangeEventHandler FormAutoFillsRowDeleting; + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public event FormAutoFillsRowChangeEventHandler FormAutoFillsRowDeleted; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] - public string Skola { - get { - try { - return ((string)(this[this.tableUcenici.SkolaColumn])); - } - catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'Skola\' in table \'Ucenici\' is DBNull.", e); - } - } - set { - this[this.tableUcenici.SkolaColumn] = value; - } + public void AddFormAutoFillsRow(FormAutoFillsRow row) { + this.Rows.Add(row); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] - public string Razred { - get { - try { - return ((string)(this[this.tableUcenici.RazredColumn])); - } - catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'Razred\' in table \'Ucenici\' is DBNull.", e); - } - } - set { - this[this.tableUcenici.RazredColumn] = value; - } + public FormAutoFillsRow AddFormAutoFillsRow(string Name) { + FormAutoFillsRow rowFormAutoFillsRow = ((FormAutoFillsRow)(this.NewRow())); + object[] columnValuesArray = new object[] { + null, + Name}; + rowFormAutoFillsRow.ItemArray = columnValuesArray; + this.Rows.Add(rowFormAutoFillsRow); + return rowFormAutoFillsRow; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] - public string Odeljenje { - get { - try { - return ((string)(this[this.tableUcenici.OdeljenjeColumn])); - } - catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'Odeljenje\' in table \'Ucenici\' is DBNull.", e); - } - } - set { - this[this.tableUcenici.OdeljenjeColumn] = value; - } + public FormAutoFillsRow FindByIdFormAutoFill(int IdFormAutoFill) { + return ((FormAutoFillsRow)(this.Rows.Find(new object[] { + IdFormAutoFill}))); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] - public char Pol { - get { - try { - return ((char)(this[this.tableUcenici.PolColumn])); - } - catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'Pol\' in table \'Ucenici\' is DBNull.", e); - } - } - set { - this[this.tableUcenici.PolColumn] = value; - } + public override global::System.Data.DataTable Clone() { + FormAutoFillsDataTable cln = ((FormAutoFillsDataTable)(base.Clone())); + cln.InitVars(); + return cln; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] - public System.DateTime DatumRodjenja { - get { - try { - return ((global::System.DateTime)(this[this.tableUcenici.DatumRodjenjaColumn])); - } - catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'DatumRodjenja\' in table \'Ucenici\' is DBNull.", e); - } - } - set { - this[this.tableUcenici.DatumRodjenjaColumn] = value; - } + protected override global::System.Data.DataTable CreateInstance() { + return new FormAutoFillsDataTable(); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] - public double Godine { - get { - try { - return ((double)(this[this.tableUcenici.GodineColumn])); - } - catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'Godine\' in table \'Ucenici\' is DBNull.", e); - } - } - set { - this[this.tableUcenici.GodineColumn] = value; - } + internal void InitVars() { + this.columnIdFormAutoFill = base.Columns["IdFormAutoFill"]; + this.columnName = base.Columns["Name"]; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] - public int DanaDoRodj { - get { - try { - return ((int)(this[this.tableUcenici.DanaDoRodjColumn])); - } - catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'DanaDoRodj\' in table \'Ucenici\' is DBNull.", e); - } - } - set { - this[this.tableUcenici.DanaDoRodjColumn] = value; - } + private void InitClass() { + this.columnIdFormAutoFill = new global::System.Data.DataColumn("IdFormAutoFill", typeof(int), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnIdFormAutoFill); + this.columnName = new global::System.Data.DataColumn("Name", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnName); + this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] { + this.columnIdFormAutoFill}, true)); + this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint2", new global::System.Data.DataColumn[] { + this.columnName}, false)); + this.columnIdFormAutoFill.AutoIncrement = true; + this.columnIdFormAutoFill.AutoIncrementSeed = -1; + this.columnIdFormAutoFill.AutoIncrementStep = -1; + this.columnIdFormAutoFill.AllowDBNull = false; + this.columnIdFormAutoFill.Unique = true; + this.columnName.AllowDBNull = false; + this.columnName.Unique = true; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] - public string Napomene { - get { - try { - return ((string)(this[this.tableUcenici.NapomeneColumn])); - } - catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'Napomene\' in table \'Ucenici\' is DBNull.", e); - } - } - set { - this[this.tableUcenici.NapomeneColumn] = value; - } + public FormAutoFillsRow NewFormAutoFillsRow() { + return ((FormAutoFillsRow)(this.NewRow())); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] - public int BrojOcenaPolu { - get { - try { - return ((int)(this[this.tableUcenici.BrojOcenaPoluColumn])); - } - catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'BrojOcenaPolu\' in table \'Ucenici\' is DBNull.", e); - } - } - set { + protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) { + return new FormAutoFillsRow(builder); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + protected override global::System.Type GetRowType() { + return typeof(FormAutoFillsRow); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowChanged(e); + if ((this.FormAutoFillsRowChanged != null)) { + this.FormAutoFillsRowChanged(this, new FormAutoFillsRowChangeEvent(((FormAutoFillsRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowChanging(e); + if ((this.FormAutoFillsRowChanging != null)) { + this.FormAutoFillsRowChanging(this, new FormAutoFillsRowChangeEvent(((FormAutoFillsRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowDeleted(e); + if ((this.FormAutoFillsRowDeleted != null)) { + this.FormAutoFillsRowDeleted(this, new FormAutoFillsRowChangeEvent(((FormAutoFillsRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowDeleting(e); + if ((this.FormAutoFillsRowDeleting != null)) { + this.FormAutoFillsRowDeleting(this, new FormAutoFillsRowChangeEvent(((FormAutoFillsRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public void RemoveFormAutoFillsRow(FormAutoFillsRow row) { + this.Rows.Remove(row); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) { + global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType(); + global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence(); + Ds ds = new Ds(); + global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny(); + any1.Namespace = "http://www.w3.org/2001/XMLSchema"; + any1.MinOccurs = new decimal(0); + any1.MaxOccurs = decimal.MaxValue; + any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax; + sequence.Items.Add(any1); + global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny(); + any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1"; + any2.MinOccurs = new decimal(1); + any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax; + sequence.Items.Add(any2); + global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute(); + attribute1.Name = "namespace"; + attribute1.FixedValue = ds.Namespace; + type.Attributes.Add(attribute1); + global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute(); + attribute2.Name = "tableTypeName"; + attribute2.FixedValue = "FormAutoFillsDataTable"; + type.Attributes.Add(attribute2); + type.Particle = sequence; + global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable(); + if (xs.Contains(dsSchema.TargetNamespace)) { + global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream(); + global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream(); + try { + global::System.Xml.Schema.XmlSchema schema = null; + dsSchema.Write(s1); + for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) { + schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current)); + s2.SetLength(0); + schema.Write(s2); + if ((s1.Length == s2.Length)) { + s1.Position = 0; + s2.Position = 0; + for (; ((s1.Position != s1.Length) + && (s1.ReadByte() == s2.ReadByte())); ) { + ; + } + if ((s1.Position == s1.Length)) { + return type; + } + } + } + } + finally { + if ((s1 != null)) { + s1.Close(); + } + if ((s2 != null)) { + s2.Close(); + } + } + } + xs.Add(dsSchema); + return type; + } + } + + /// + ///Represents the strongly named DataTable class. + /// + [global::System.Serializable()] + [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")] + public partial class FAF_ItemsDataTable : global::System.Data.TypedTableBase { + + private global::System.Data.DataColumn columnIdItem; + + private global::System.Data.DataColumn columnItemType; + + private global::System.Data.DataColumn columnContent; + + private global::System.Data.DataColumn columnComment; + + private global::System.Data.DataColumn columnIdFormAutoFill; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public FAF_ItemsDataTable() { + this.TableName = "FAF_Items"; + this.BeginInit(); + this.InitClass(); + this.EndInit(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + internal FAF_ItemsDataTable(global::System.Data.DataTable table) { + this.TableName = table.TableName; + if ((table.CaseSensitive != table.DataSet.CaseSensitive)) { + this.CaseSensitive = table.CaseSensitive; + } + if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) { + this.Locale = table.Locale; + } + if ((table.Namespace != table.DataSet.Namespace)) { + this.Namespace = table.Namespace; + } + this.Prefix = table.Prefix; + this.MinimumCapacity = table.MinimumCapacity; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + protected FAF_ItemsDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) : + base(info, context) { + this.InitVars(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public global::System.Data.DataColumn IdItemColumn { + get { + return this.columnIdItem; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public global::System.Data.DataColumn ItemTypeColumn { + get { + return this.columnItemType; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public global::System.Data.DataColumn ContentColumn { + get { + return this.columnContent; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public global::System.Data.DataColumn CommentColumn { + get { + return this.columnComment; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public global::System.Data.DataColumn IdFormAutoFillColumn { + get { + return this.columnIdFormAutoFill; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + [global::System.ComponentModel.Browsable(false)] + public int Count { + get { + return this.Rows.Count; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public FAF_ItemsRow this[int index] { + get { + return ((FAF_ItemsRow)(this.Rows[index])); + } + } + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public event FAF_ItemsRowChangeEventHandler FAF_ItemsRowChanging; + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public event FAF_ItemsRowChangeEventHandler FAF_ItemsRowChanged; + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public event FAF_ItemsRowChangeEventHandler FAF_ItemsRowDeleting; + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public event FAF_ItemsRowChangeEventHandler FAF_ItemsRowDeleted; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public void AddFAF_ItemsRow(FAF_ItemsRow row) { + this.Rows.Add(row); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public FAF_ItemsRow AddFAF_ItemsRow(string ItemType, string Content, string Comment, FormAutoFillsRow parentFormAutoFillsRowByFormAutoFills_FAF_Items) { + FAF_ItemsRow rowFAF_ItemsRow = ((FAF_ItemsRow)(this.NewRow())); + object[] columnValuesArray = new object[] { + null, + ItemType, + Content, + Comment, + null}; + if ((parentFormAutoFillsRowByFormAutoFills_FAF_Items != null)) { + columnValuesArray[4] = parentFormAutoFillsRowByFormAutoFills_FAF_Items[0]; + } + rowFAF_ItemsRow.ItemArray = columnValuesArray; + this.Rows.Add(rowFAF_ItemsRow); + return rowFAF_ItemsRow; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public FAF_ItemsRow FindByIdItem(int IdItem) { + return ((FAF_ItemsRow)(this.Rows.Find(new object[] { + IdItem}))); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public override global::System.Data.DataTable Clone() { + FAF_ItemsDataTable cln = ((FAF_ItemsDataTable)(base.Clone())); + cln.InitVars(); + return cln; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + protected override global::System.Data.DataTable CreateInstance() { + return new FAF_ItemsDataTable(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + internal void InitVars() { + this.columnIdItem = base.Columns["IdItem"]; + this.columnItemType = base.Columns["ItemType"]; + this.columnContent = base.Columns["Content"]; + this.columnComment = base.Columns["Comment"]; + this.columnIdFormAutoFill = base.Columns["IdFormAutoFill"]; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + private void InitClass() { + this.columnIdItem = new global::System.Data.DataColumn("IdItem", typeof(int), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnIdItem); + this.columnItemType = new global::System.Data.DataColumn("ItemType", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnItemType); + this.columnContent = new global::System.Data.DataColumn("Content", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnContent); + this.columnComment = new global::System.Data.DataColumn("Comment", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnComment); + this.columnIdFormAutoFill = new global::System.Data.DataColumn("IdFormAutoFill", typeof(int), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnIdFormAutoFill); + this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] { + this.columnIdItem}, true)); + this.columnIdItem.AutoIncrement = true; + this.columnIdItem.AutoIncrementSeed = -1; + this.columnIdItem.AutoIncrementStep = -1; + this.columnIdItem.AllowDBNull = false; + this.columnIdItem.Unique = true; + this.columnItemType.AllowDBNull = false; + this.columnContent.AllowDBNull = false; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public FAF_ItemsRow NewFAF_ItemsRow() { + return ((FAF_ItemsRow)(this.NewRow())); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) { + return new FAF_ItemsRow(builder); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + protected override global::System.Type GetRowType() { + return typeof(FAF_ItemsRow); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowChanged(e); + if ((this.FAF_ItemsRowChanged != null)) { + this.FAF_ItemsRowChanged(this, new FAF_ItemsRowChangeEvent(((FAF_ItemsRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowChanging(e); + if ((this.FAF_ItemsRowChanging != null)) { + this.FAF_ItemsRowChanging(this, new FAF_ItemsRowChangeEvent(((FAF_ItemsRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowDeleted(e); + if ((this.FAF_ItemsRowDeleted != null)) { + this.FAF_ItemsRowDeleted(this, new FAF_ItemsRowChangeEvent(((FAF_ItemsRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowDeleting(e); + if ((this.FAF_ItemsRowDeleting != null)) { + this.FAF_ItemsRowDeleting(this, new FAF_ItemsRowChangeEvent(((FAF_ItemsRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public void RemoveFAF_ItemsRow(FAF_ItemsRow row) { + this.Rows.Remove(row); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) { + global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType(); + global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence(); + Ds ds = new Ds(); + global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny(); + any1.Namespace = "http://www.w3.org/2001/XMLSchema"; + any1.MinOccurs = new decimal(0); + any1.MaxOccurs = decimal.MaxValue; + any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax; + sequence.Items.Add(any1); + global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny(); + any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1"; + any2.MinOccurs = new decimal(1); + any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax; + sequence.Items.Add(any2); + global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute(); + attribute1.Name = "namespace"; + attribute1.FixedValue = ds.Namespace; + type.Attributes.Add(attribute1); + global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute(); + attribute2.Name = "tableTypeName"; + attribute2.FixedValue = "FAF_ItemsDataTable"; + type.Attributes.Add(attribute2); + type.Particle = sequence; + global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable(); + if (xs.Contains(dsSchema.TargetNamespace)) { + global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream(); + global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream(); + try { + global::System.Xml.Schema.XmlSchema schema = null; + dsSchema.Write(s1); + for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) { + schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current)); + s2.SetLength(0); + schema.Write(s2); + if ((s1.Length == s2.Length)) { + s1.Position = 0; + s2.Position = 0; + for (; ((s1.Position != s1.Length) + && (s1.ReadByte() == s2.ReadByte())); ) { + ; + } + if ((s1.Position == s1.Length)) { + return type; + } + } + } + } + finally { + if ((s1 != null)) { + s1.Close(); + } + if ((s2 != null)) { + s2.Close(); + } + } + } + xs.Add(dsSchema); + return type; + } + } + + /// + ///Represents strongly named DataRow class. + /// + public partial class UceniciRow : global::System.Data.DataRow { + + private UceniciDataTable tableUcenici; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + internal UceniciRow(global::System.Data.DataRowBuilder rb) : + base(rb) { + this.tableUcenici = ((UceniciDataTable)(this.Table)); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public int IdUcenika { + get { + return ((int)(this[this.tableUcenici.IdUcenikaColumn])); + } + set { + this[this.tableUcenici.IdUcenikaColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public string Ime { + get { + try { + return ((string)(this[this.tableUcenici.ImeColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'Ime\' in table \'Ucenici\' is DBNull.", e); + } + } + set { + this[this.tableUcenici.ImeColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public int RegUceLiceId { + get { + try { + return ((int)(this[this.tableUcenici.RegUceLiceIdColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'RegUceLiceId\' in table \'Ucenici\' is DBNull.", e); + } + } + set { + this[this.tableUcenici.RegUceLiceIdColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public string JOB { + get { + return ((string)(this[this.tableUcenici.JOBColumn])); + } + set { + this[this.tableUcenici.JOBColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public string JMBG { + get { + try { + return ((string)(this[this.tableUcenici.JMBGColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'JMBG\' in table \'Ucenici\' is DBNull.", e); + } + } + set { + this[this.tableUcenici.JMBGColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public string Prebivaliste { + get { + try { + return ((string)(this[this.tableUcenici.PrebivalisteColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'Prebivaliste\' in table \'Ucenici\' is DBNull.", e); + } + } + set { + this[this.tableUcenici.PrebivalisteColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public string Skola { + get { + try { + return ((string)(this[this.tableUcenici.SkolaColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'Skola\' in table \'Ucenici\' is DBNull.", e); + } + } + set { + this[this.tableUcenici.SkolaColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public string Razred { + get { + try { + return ((string)(this[this.tableUcenici.RazredColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'Razred\' in table \'Ucenici\' is DBNull.", e); + } + } + set { + this[this.tableUcenici.RazredColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public string Odeljenje { + get { + try { + return ((string)(this[this.tableUcenici.OdeljenjeColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'Odeljenje\' in table \'Ucenici\' is DBNull.", e); + } + } + set { + this[this.tableUcenici.OdeljenjeColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public char Pol { + get { + try { + return ((char)(this[this.tableUcenici.PolColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'Pol\' in table \'Ucenici\' is DBNull.", e); + } + } + set { + this[this.tableUcenici.PolColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public System.DateTime DatumRodjenja { + get { + try { + return ((global::System.DateTime)(this[this.tableUcenici.DatumRodjenjaColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'DatumRodjenja\' in table \'Ucenici\' is DBNull.", e); + } + } + set { + this[this.tableUcenici.DatumRodjenjaColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public double Godine { + get { + try { + return ((double)(this[this.tableUcenici.GodineColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'Godine\' in table \'Ucenici\' is DBNull.", e); + } + } + set { + this[this.tableUcenici.GodineColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public int DanaDoRodj { + get { + try { + return ((int)(this[this.tableUcenici.DanaDoRodjColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'DanaDoRodj\' in table \'Ucenici\' is DBNull.", e); + } + } + set { + this[this.tableUcenici.DanaDoRodjColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public string Napomene { + get { + try { + return ((string)(this[this.tableUcenici.NapomeneColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'Napomene\' in table \'Ucenici\' is DBNull.", e); + } + } + set { + this[this.tableUcenici.NapomeneColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public int BrojOcenaPolu { + get { + try { + return ((int)(this[this.tableUcenici.BrojOcenaPoluColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'BrojOcenaPolu\' in table \'Ucenici\' is DBNull.", e); + } + } + set { this[this.tableUcenici.BrojOcenaPoluColumn] = value; } } @@ -15585,6 +16263,169 @@ public void SetDokumentNazivNull() { } } + /// + ///Represents strongly named DataRow class. + /// + public partial class FormAutoFillsRow : global::System.Data.DataRow { + + private FormAutoFillsDataTable tableFormAutoFills; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + internal FormAutoFillsRow(global::System.Data.DataRowBuilder rb) : + base(rb) { + this.tableFormAutoFills = ((FormAutoFillsDataTable)(this.Table)); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public int IdFormAutoFill { + get { + return ((int)(this[this.tableFormAutoFills.IdFormAutoFillColumn])); + } + set { + this[this.tableFormAutoFills.IdFormAutoFillColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public string Name { + get { + return ((string)(this[this.tableFormAutoFills.NameColumn])); + } + set { + this[this.tableFormAutoFills.NameColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public FAF_ItemsRow[] GetFAF_ItemsRows() { + if ((this.Table.ChildRelations["FormAutoFills_FAF_Items"] == null)) { + return new FAF_ItemsRow[0]; + } + else { + return ((FAF_ItemsRow[])(base.GetChildRows(this.Table.ChildRelations["FormAutoFills_FAF_Items"]))); + } + } + } + + /// + ///Represents strongly named DataRow class. + /// + public partial class FAF_ItemsRow : global::System.Data.DataRow { + + private FAF_ItemsDataTable tableFAF_Items; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + internal FAF_ItemsRow(global::System.Data.DataRowBuilder rb) : + base(rb) { + this.tableFAF_Items = ((FAF_ItemsDataTable)(this.Table)); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public int IdItem { + get { + return ((int)(this[this.tableFAF_Items.IdItemColumn])); + } + set { + this[this.tableFAF_Items.IdItemColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public string ItemType { + get { + return ((string)(this[this.tableFAF_Items.ItemTypeColumn])); + } + set { + this[this.tableFAF_Items.ItemTypeColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public string Content { + get { + return ((string)(this[this.tableFAF_Items.ContentColumn])); + } + set { + this[this.tableFAF_Items.ContentColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public string Comment { + get { + try { + return ((string)(this[this.tableFAF_Items.CommentColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'Comment\' in table \'FAF_Items\' is DBNull.", e); + } + } + set { + this[this.tableFAF_Items.CommentColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public int IdFormAutoFill { + get { + try { + return ((int)(this[this.tableFAF_Items.IdFormAutoFillColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'IdFormAutoFill\' in table \'FAF_Items\' is DBNull.", e); + } + } + set { + this[this.tableFAF_Items.IdFormAutoFillColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public FormAutoFillsRow FormAutoFillsRow { + get { + return ((FormAutoFillsRow)(this.GetParentRow(this.Table.ParentRelations["FormAutoFills_FAF_Items"]))); + } + set { + this.SetParentRow(value, this.Table.ParentRelations["FormAutoFills_FAF_Items"]); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public bool IsCommentNull() { + return this.IsNull(this.tableFAF_Items.CommentColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public void SetCommentNull() { + this[this.tableFAF_Items.CommentColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public bool IsIdFormAutoFillNull() { + return this.IsNull(this.tableFAF_Items.IdFormAutoFillColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public void SetIdFormAutoFillNull() { + this[this.tableFAF_Items.IdFormAutoFillColumn] = global::System.Convert.DBNull; + } + } + /// ///Row event argument class /// @@ -16298,6 +17139,74 @@ public ObrazovanjaRow Row { } } } + + /// + ///Row event argument class + /// + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public class FormAutoFillsRowChangeEvent : global::System.EventArgs { + + private FormAutoFillsRow eventRow; + + private global::System.Data.DataRowAction eventAction; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public FormAutoFillsRowChangeEvent(FormAutoFillsRow row, global::System.Data.DataRowAction action) { + this.eventRow = row; + this.eventAction = action; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public FormAutoFillsRow Row { + get { + return this.eventRow; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public global::System.Data.DataRowAction Action { + get { + return this.eventAction; + } + } + } + + /// + ///Row event argument class + /// + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public class FAF_ItemsRowChangeEvent : global::System.EventArgs { + + private FAF_ItemsRow eventRow; + + private global::System.Data.DataRowAction eventAction; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public FAF_ItemsRowChangeEvent(FAF_ItemsRow row, global::System.Data.DataRowAction action) { + this.eventRow = row; + this.eventAction = action; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public FAF_ItemsRow Row { + get { + return this.eventRow; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public global::System.Data.DataRowAction Action { + get { + return this.eventAction; + } + } + } } } diff --git a/JISP/Data/Ds.xsd b/JISP/Data/Ds.xsd index f34bb93..bfbc8d1 100644 --- a/JISP/Data/Ds.xsd +++ b/JISP/Data/Ds.xsd @@ -110,8 +110,8 @@ - - + + @@ -388,6 +388,25 @@ + + + + + + + + + + + + + + + + + + + @@ -474,6 +493,18 @@ + + + + + + + + + + + + @@ -494,6 +525,7 @@ + \ No newline at end of file diff --git a/JISP/Forms/FrmFormAutoInput.Designer.cs b/JISP/Forms/FrmFormAutoInput.Designer.cs new file mode 100644 index 0000000..7355a37 --- /dev/null +++ b/JISP/Forms/FrmFormAutoInput.Designer.cs @@ -0,0 +1,388 @@ +namespace JISP.Forms +{ + partial class FrmFormAutoInput + { + /// + /// Required designer variable. + /// + private System.ComponentModel.IContainer components = null; + + /// + /// Clean up any resources being used. + /// + /// true if managed resources should be disposed; otherwise, false. + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region Windows Form Designer generated code + + /// + /// Required method for Designer support - do not modify + /// the contents of this method with the code editor. + /// + private void InitializeComponent() + { + this.components = new System.ComponentModel.Container(); + System.Windows.Forms.Label label1; + System.Windows.Forms.Label label2; + System.Windows.Forms.Label label3; + System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle(); + System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle2 = new System.Windows.Forms.DataGridViewCellStyle(); + this.tim = new System.Windows.Forms.Timer(this.components); + this.btnSnimanjeStartStop = new System.Windows.Forms.Button(); + this.btnPustanjeStartStop = new System.Windows.Forms.Button(); + this.numDelay = new System.Windows.Forms.NumericUpDown(); + this.dgvFAFs = new JISP.Controls.UcDGV(); + this.nameDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.bsFormAutoFills = new System.Windows.Forms.BindingSource(this.components); + this.ds = new JISP.Data.Ds(); + this.dgvItems = new JISP.Controls.UcDGV(); + this.itemTypeDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.contentDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.Comment = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.bsFAFItems = new System.Windows.Forms.BindingSource(this.components); + this.ucExitApp1 = new JISP.Controls.UcExitAppButton(); + this.btnObrisiStavku = new System.Windows.Forms.Button(); + this.pnlLeft = new JISP.Controls.UcLeftPanel(); + this.btnPomeriStavkuNagore = new System.Windows.Forms.Button(); + this.btnPomeriStavkuNadole = new System.Windows.Forms.Button(); + this.gbPustanje = new System.Windows.Forms.GroupBox(); + this.splitContainer1 = new System.Windows.Forms.SplitContainer(); + label1 = new System.Windows.Forms.Label(); + label2 = new System.Windows.Forms.Label(); + label3 = new System.Windows.Forms.Label(); + ((System.ComponentModel.ISupportInitialize)(this.numDelay)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.dgvFAFs)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.bsFormAutoFills)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.ds)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.dgvItems)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.bsFAFItems)).BeginInit(); + this.pnlLeft.SuspendLayout(); + this.gbPustanje.SuspendLayout(); + ((System.ComponentModel.ISupportInitialize)(this.splitContainer1)).BeginInit(); + this.splitContainer1.Panel1.SuspendLayout(); + this.splitContainer1.Panel2.SuspendLayout(); + this.splitContainer1.SuspendLayout(); + this.SuspendLayout(); + // + // label1 + // + label1.AutoSize = true; + label1.Location = new System.Drawing.Point(13, 113); + label1.Name = "label1"; + label1.Size = new System.Drawing.Size(69, 18); + label1.TabIndex = 7; + label1.Text = "Snimanje"; + // + // label2 + // + label2.AutoSize = true; + label2.Location = new System.Drawing.Point(1, 62); + label2.Name = "label2"; + label2.Size = new System.Drawing.Size(107, 18); + label2.TabIndex = 10; + label2.Text = "Trajanje stavke"; + // + // label3 + // + label3.AutoSize = true; + label3.Location = new System.Drawing.Point(76, 85); + label3.Name = "label3"; + label3.Size = new System.Drawing.Size(29, 18); + label3.TabIndex = 11; + label3.Text = "ms"; + // + // tim + // + this.tim.Interval = 1000; + this.tim.Tick += new System.EventHandler(this.Tim_Tick); + // + // btnSnimanjeStartStop + // + this.btnSnimanjeStartStop.Location = new System.Drawing.Point(8, 134); + this.btnSnimanjeStartStop.Name = "btnSnimanjeStartStop"; + this.btnSnimanjeStartStop.Size = new System.Drawing.Size(127, 34); + this.btnSnimanjeStartStop.TabIndex = 0; + this.btnSnimanjeStartStop.Text = "Start"; + this.btnSnimanjeStartStop.UseVisualStyleBackColor = true; + this.btnSnimanjeStartStop.Click += new System.EventHandler(this.BtnSnimanjeStartStop_Click); + // + // btnPustanjeStartStop + // + this.btnPustanjeStartStop.Location = new System.Drawing.Point(4, 23); + this.btnPustanjeStartStop.Name = "btnPustanjeStartStop"; + this.btnPustanjeStartStop.Size = new System.Drawing.Size(117, 34); + this.btnPustanjeStartStop.TabIndex = 1; + this.btnPustanjeStartStop.Text = "Start"; + this.btnPustanjeStartStop.UseVisualStyleBackColor = true; + this.btnPustanjeStartStop.Click += new System.EventHandler(this.BtnPustanjeStartStop_Click); + // + // numDelay + // + this.numDelay.Location = new System.Drawing.Point(4, 83); + this.numDelay.Maximum = new decimal(new int[] { + 5000, + 0, + 0, + 0}); + this.numDelay.Minimum = new decimal(new int[] { + 200, + 0, + 0, + 0}); + this.numDelay.Name = "numDelay"; + this.numDelay.Size = new System.Drawing.Size(70, 24); + this.numDelay.TabIndex = 2; + this.numDelay.Value = new decimal(new int[] { + 2000, + 0, + 0, + 0}); + // + // dgvFAFs + // + dataGridViewCellStyle1.BackColor = System.Drawing.Color.WhiteSmoke; + this.dgvFAFs.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle1; + this.dgvFAFs.AutoGenerateColumns = false; + this.dgvFAFs.BackgroundColor = System.Drawing.Color.WhiteSmoke; + this.dgvFAFs.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; + this.dgvFAFs.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] { + this.nameDataGridViewTextBoxColumn}); + this.dgvFAFs.ColumnsForCopyOnClick = null; + this.dgvFAFs.CopyOnCellClick = false; + this.dgvFAFs.CtrlDisplayPositionRowCount = null; + this.dgvFAFs.DataSource = this.bsFormAutoFills; + this.dgvFAFs.Dock = System.Windows.Forms.DockStyle.Fill; + this.dgvFAFs.Location = new System.Drawing.Point(0, 0); + this.dgvFAFs.Name = "dgvFAFs"; + this.dgvFAFs.RowHeadersWidth = 30; + this.dgvFAFs.Size = new System.Drawing.Size(392, 168); + this.dgvFAFs.StandardSort = null; + this.dgvFAFs.TabIndex = 3; + // + // nameDataGridViewTextBoxColumn + // + this.nameDataGridViewTextBoxColumn.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill; + this.nameDataGridViewTextBoxColumn.DataPropertyName = "Name"; + this.nameDataGridViewTextBoxColumn.HeaderText = "Rutina"; + this.nameDataGridViewTextBoxColumn.Name = "nameDataGridViewTextBoxColumn"; + // + // bsFormAutoFills + // + this.bsFormAutoFills.DataMember = "FormAutoFills"; + this.bsFormAutoFills.DataSource = this.ds; + // + // ds + // + this.ds.DataSetName = "Ds"; + this.ds.SchemaSerializationMode = System.Data.SchemaSerializationMode.IncludeSchema; + // + // dgvItems + // + dataGridViewCellStyle2.BackColor = System.Drawing.Color.WhiteSmoke; + this.dgvItems.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle2; + this.dgvItems.AutoGenerateColumns = false; + this.dgvItems.BackgroundColor = System.Drawing.Color.WhiteSmoke; + this.dgvItems.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; + this.dgvItems.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] { + this.itemTypeDataGridViewTextBoxColumn, + this.contentDataGridViewTextBoxColumn, + this.Comment}); + this.dgvItems.ColumnsForCopyOnClick = null; + this.dgvItems.CopyOnCellClick = false; + this.dgvItems.CtrlDisplayPositionRowCount = null; + this.dgvItems.DataSource = this.bsFAFItems; + this.dgvItems.Dock = System.Windows.Forms.DockStyle.Fill; + this.dgvItems.Location = new System.Drawing.Point(0, 0); + this.dgvItems.Name = "dgvItems"; + this.dgvItems.RowHeadersWidth = 30; + this.dgvItems.Size = new System.Drawing.Size(392, 270); + this.dgvItems.StandardSort = null; + this.dgvItems.TabIndex = 4; + this.dgvItems.CellDoubleClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.DgvItems_CellDoubleClick); + // + // itemTypeDataGridViewTextBoxColumn + // + this.itemTypeDataGridViewTextBoxColumn.DataPropertyName = "ItemType"; + this.itemTypeDataGridViewTextBoxColumn.HeaderText = "Tip"; + this.itemTypeDataGridViewTextBoxColumn.Name = "itemTypeDataGridViewTextBoxColumn"; + // + // contentDataGridViewTextBoxColumn + // + this.contentDataGridViewTextBoxColumn.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill; + this.contentDataGridViewTextBoxColumn.DataPropertyName = "Content"; + this.contentDataGridViewTextBoxColumn.HeaderText = "Sadržaj"; + this.contentDataGridViewTextBoxColumn.MinimumWidth = 100; + this.contentDataGridViewTextBoxColumn.Name = "contentDataGridViewTextBoxColumn"; + // + // Comment + // + this.Comment.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill; + this.Comment.DataPropertyName = "Comment"; + this.Comment.FillWeight = 200F; + this.Comment.HeaderText = "Komentar"; + this.Comment.Name = "Comment"; + this.Comment.ToolTipText = "Objašnjenje stavke, npr: Dugme Izračunaj"; + // + // bsFAFItems + // + this.bsFAFItems.DataMember = "FormAutoFills_FAF_Items"; + this.bsFAFItems.DataSource = this.bsFormAutoFills; + // + // ucExitApp1 + // + this.ucExitApp1.BackColor = System.Drawing.Color.Red; + this.ucExitApp1.ForeColor = System.Drawing.Color.White; + this.ucExitApp1.Location = new System.Drawing.Point(8, 12); + this.ucExitApp1.Margin = new System.Windows.Forms.Padding(4); + this.ucExitApp1.Name = "ucExitApp1"; + this.ucExitApp1.Size = new System.Drawing.Size(127, 34); + this.ucExitApp1.TabIndex = 5; + this.ucExitApp1.Text = "Izlaz"; + this.ucExitApp1.ToolTipText = "Izlaz iz aplikacije"; + this.ucExitApp1.UseVisualStyleBackColor = false; + // + // btnObrisiStavku + // + this.btnObrisiStavku.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); + this.btnObrisiStavku.Location = new System.Drawing.Point(8, 396); + this.btnObrisiStavku.Name = "btnObrisiStavku"; + this.btnObrisiStavku.Size = new System.Drawing.Size(127, 34); + this.btnObrisiStavku.TabIndex = 6; + this.btnObrisiStavku.Text = "Obriši stavku"; + this.btnObrisiStavku.UseVisualStyleBackColor = true; + this.btnObrisiStavku.Click += new System.EventHandler(this.BtnObrisiStavku_Click); + // + // pnlLeft + // + this.pnlLeft.Controls.Add(this.btnPomeriStavkuNagore); + this.pnlLeft.Controls.Add(this.btnPomeriStavkuNadole); + this.pnlLeft.Controls.Add(this.gbPustanje); + this.pnlLeft.Controls.Add(label1); + this.pnlLeft.Controls.Add(this.btnObrisiStavku); + this.pnlLeft.Controls.Add(this.ucExitApp1); + this.pnlLeft.Controls.Add(this.btnSnimanjeStartStop); + this.pnlLeft.Dock = System.Windows.Forms.DockStyle.Left; + this.pnlLeft.Location = new System.Drawing.Point(0, 0); + this.pnlLeft.Name = "pnlLeft"; + this.pnlLeft.PanelWidthState = JISP.Controls.PanelWidthState.Expanded; + this.pnlLeft.RightWingWidth = 6; + this.pnlLeft.Size = new System.Drawing.Size(146, 442); + this.pnlLeft.TabIndex = 7; + // + // btnPomeriStavkuNagore + // + this.btnPomeriStavkuNagore.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); + this.btnPomeriStavkuNagore.Location = new System.Drawing.Point(8, 323); + this.btnPomeriStavkuNagore.Name = "btnPomeriStavkuNagore"; + this.btnPomeriStavkuNagore.Size = new System.Drawing.Size(127, 34); + this.btnPomeriStavkuNagore.TabIndex = 11; + this.btnPomeriStavkuNagore.Text = "Pomeri stavku ↑"; + this.btnPomeriStavkuNagore.UseVisualStyleBackColor = true; + this.btnPomeriStavkuNagore.Click += new System.EventHandler(this.BtnPomeriStavkuNagore_Click); + // + // btnPomeriStavkuNadole + // + this.btnPomeriStavkuNadole.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); + this.btnPomeriStavkuNadole.Location = new System.Drawing.Point(8, 356); + this.btnPomeriStavkuNadole.Name = "btnPomeriStavkuNadole"; + this.btnPomeriStavkuNadole.Size = new System.Drawing.Size(127, 34); + this.btnPomeriStavkuNadole.TabIndex = 10; + this.btnPomeriStavkuNadole.Text = "Pomeri stavku ↓"; + this.btnPomeriStavkuNadole.UseVisualStyleBackColor = true; + this.btnPomeriStavkuNadole.Click += new System.EventHandler(this.BtnPomeriStavkuNadole_Click); + // + // gbPustanje + // + this.gbPustanje.Controls.Add(label3); + this.gbPustanje.Controls.Add(label2); + this.gbPustanje.Controls.Add(this.btnPustanjeStartStop); + this.gbPustanje.Controls.Add(this.numDelay); + this.gbPustanje.Location = new System.Drawing.Point(8, 186); + this.gbPustanje.Name = "gbPustanje"; + this.gbPustanje.Size = new System.Drawing.Size(127, 116); + this.gbPustanje.TabIndex = 9; + this.gbPustanje.TabStop = false; + this.gbPustanje.Text = "Puštanje"; + // + // splitContainer1 + // + this.splitContainer1.Dock = System.Windows.Forms.DockStyle.Fill; + this.splitContainer1.FixedPanel = System.Windows.Forms.FixedPanel.Panel1; + this.splitContainer1.Location = new System.Drawing.Point(146, 0); + this.splitContainer1.Name = "splitContainer1"; + this.splitContainer1.Orientation = System.Windows.Forms.Orientation.Horizontal; + // + // splitContainer1.Panel1 + // + this.splitContainer1.Panel1.Controls.Add(this.dgvFAFs); + // + // splitContainer1.Panel2 + // + this.splitContainer1.Panel2.Controls.Add(this.dgvItems); + this.splitContainer1.Size = new System.Drawing.Size(392, 442); + this.splitContainer1.SplitterDistance = 168; + this.splitContainer1.TabIndex = 8; + // + // FrmFormAutoInput + // + this.AutoScaleDimensions = new System.Drawing.SizeF(9F, 18F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.ClientSize = new System.Drawing.Size(538, 442); + this.Controls.Add(this.splitContainer1); + this.Controls.Add(this.pnlLeft); + this.Font = new System.Drawing.Font("Microsoft Sans Serif", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.Margin = new System.Windows.Forms.Padding(4); + this.Name = "FrmFormAutoInput"; + this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; + this.Text = "Form Auto Input"; + this.TopMost = true; + this.Load += new System.EventHandler(this.FrmFormAutoInput_Load); + ((System.ComponentModel.ISupportInitialize)(this.numDelay)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.dgvFAFs)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.bsFormAutoFills)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.ds)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.dgvItems)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.bsFAFItems)).EndInit(); + this.pnlLeft.ResumeLayout(false); + this.pnlLeft.PerformLayout(); + this.gbPustanje.ResumeLayout(false); + this.gbPustanje.PerformLayout(); + this.splitContainer1.Panel1.ResumeLayout(false); + this.splitContainer1.Panel2.ResumeLayout(false); + ((System.ComponentModel.ISupportInitialize)(this.splitContainer1)).EndInit(); + this.splitContainer1.ResumeLayout(false); + this.ResumeLayout(false); + + } + + #endregion + + private System.Windows.Forms.Timer tim; + private System.Windows.Forms.Button btnSnimanjeStartStop; + private System.Windows.Forms.Button btnPustanjeStartStop; + private System.Windows.Forms.NumericUpDown numDelay; + private Controls.UcDGV dgvFAFs; + private System.Windows.Forms.BindingSource bsFormAutoFills; + private Data.Ds ds; + private Controls.UcDGV dgvItems; + private System.Windows.Forms.BindingSource bsFAFItems; + private System.Windows.Forms.DataGridViewTextBoxColumn nameDataGridViewTextBoxColumn; + private Controls.UcExitAppButton ucExitApp1; + private System.Windows.Forms.Button btnObrisiStavku; + private Controls.UcLeftPanel pnlLeft; + private System.Windows.Forms.SplitContainer splitContainer1; + private System.Windows.Forms.DataGridViewTextBoxColumn itemTypeDataGridViewTextBoxColumn; + private System.Windows.Forms.DataGridViewTextBoxColumn contentDataGridViewTextBoxColumn; + private System.Windows.Forms.DataGridViewTextBoxColumn Comment; + private System.Windows.Forms.GroupBox gbPustanje; + private System.Windows.Forms.Button btnPomeriStavkuNagore; + private System.Windows.Forms.Button btnPomeriStavkuNadole; + } +} \ No newline at end of file diff --git a/JISP/Forms/FrmFormAutoInput.cs b/JISP/Forms/FrmFormAutoInput.cs new file mode 100644 index 0000000..64b700c --- /dev/null +++ b/JISP/Forms/FrmFormAutoInput.cs @@ -0,0 +1,236 @@ +using JISP.Classes; +using JISP.Data; +using System; +using System.Collections.Generic; +using System.Drawing; +using System.Runtime.InteropServices; +using System.Windows.Forms; + +namespace JISP.Forms +{ + public partial class FrmFormAutoInput : Form + { + public FrmFormAutoInput() + { + InitializeComponent(); + } + + private void FrmFormAutoInput_Load(object sender, EventArgs e) + { + // PromenaSnimanje(); + + bsFormAutoFills.DataSource = AppData.Ds; + dgvFAFs.SelectionMode = dgvItems.SelectionMode = DataGridViewSelectionMode.FullRowSelect; + this.FormStandardSettings(); + } + + [DllImport("user32.dll", CharSet = CharSet.Auto, CallingConvention = CallingConvention.StdCall)] + public static extern void mouse_event(uint dwFlags, uint dx, uint dy, uint cButtons, uint dwExtraInfo); + private const int MOUSEEVENTF_LEFTDOWN = 0x02; + private const int MOUSEEVENTF_LEFTUP = 0x04; + + public void DoMouseClick() + { + uint x = (uint)Cursor.Position.X; + uint y = (uint)Cursor.Position.Y; + mouse_event(MOUSEEVENTF_LEFTDOWN | MOUSEEVENTF_LEFTUP, x, y, 0, 0); + } + + private Point ptCursor; + private int cntCursorSamePos = 0; + /// Da li je izvrsena prva stavka pri pustanju rutine. + private bool izvrsenaPrvaStavka = false; + + private void Tim_Tick(object sender, EventArgs e) + { + var pos = Cursor.Position; + // ako je kursor na ovoj formi - njegova pozicija nije vazna i donja logika se ne izvrsava + if (Bounds.Contains(pos) && (tekuciProces == Proces.Snimanje || izvrsenaPrvaStavka)) + return; + try + { + if (tekuciProces == Proces.Snimanje) + { + if (pos == ptCursor) + { + cntCursorSamePos++; + if (cntCursorSamePos >= 2) + { + var faf = dgvFAFs.CurrDataRow(); + AppData.Ds.FAF_Items.AddFAF_ItemsRow + (AkcijaTip.Klik.ToString(), pos.X + ", " + pos.Y, "", faf); + cntCursorSamePos = 0; + } + } + else + cntCursorSamePos = 0; + ptCursor = pos; + } + if (tekuciProces == Proces.Pustanje) + { + // izvrsavanje tekuce akcije + izvrsenaPrvaStavka = true; + var item = dgvItems.CurrDataRow(); + if (item.ItemType == AkcijaTip.Tekst.ToString()) + SendKeys.Send(item.Content); + if (item.ItemType == AkcijaTip.Klik.ToString()) + NamestiKursor(item, true); + + // prelazak na sledecu ili prvu (na kraju) + if (bsFAFItems.Position == bsFAFItems.Count - 1) + { + PromenaPustanje(); + bsFAFItems.MoveFirst(); + } + else + bsFAFItems.MoveNext(); + } + } + catch (Exception ex) + { + if (tekuciProces == Proces.Pustanje) PromenaPustanje(); else PromenaSnimanje(); + tekuciProces = Proces.Cekanje; + Utils.ShowMbox(ex, $"Proces {tekuciProces} je naišao na problem"); + } + } + + private void NamestiKursor(Ds.FAF_ItemsRow item, bool uradiKlik) + { + var koordinate = item.Content.Split(new char[] { ',' }); + if (koordinate.Length != 2) + throw new Exception("Tacka na ekranu na koju treba kliknuti mora da sadrži 2 koordinate."); + + if (int.TryParse(koordinate[0], out int x) && int.TryParse(koordinate[1], out int y)) + { + Cursor.Position = new Point(x, y); + if (uradiKlik) + DoMouseClick(); + } + else + throw new Exception("Koordinate tačke na ekranu na koju treba kliknuti moraju biti zadate u formatu \"100, 200\"."); + } + + private enum AkcijaTip + { + Klik, + Tekst + } + + private enum ProcesKomanda + { + Start, + Stop + } + private ProcesKomanda snimanje = ProcesKomanda.Start; + private ProcesKomanda pustanje = ProcesKomanda.Start; + + private enum Proces + { + Cekanje, + Snimanje, + Pustanje + } + private Proces tekuciProces = Proces.Cekanje; + + /// Promena stanja snimanja: radi <-> ne radi. + private void PromenaSnimanje() + { + tim.Interval = 1000; + tim.Enabled = snimanje == ProcesKomanda.Start; + snimanje = snimanje == ProcesKomanda.Start ? ProcesKomanda.Stop : ProcesKomanda.Start; + tekuciProces = snimanje == ProcesKomanda.Start ? Proces.Cekanje : Proces.Snimanje; + btnSnimanjeStartStop.Text = snimanje.ToString(); + btnSnimanjeStartStop.BackColor = snimanje == ProcesKomanda.Start ? SystemColors.Control : Color.Red; + } + + /// Promena stanja pustanja: radi <-> ne radi. + private void PromenaPustanje() + { + tim.Interval = (int)numDelay.Value; + tim.Enabled = pustanje == ProcesKomanda.Start; + pustanje = pustanje == ProcesKomanda.Start ? ProcesKomanda.Stop : ProcesKomanda.Start; + tekuciProces = pustanje == ProcesKomanda.Start ? Proces.Cekanje : Proces.Pustanje; + btnPustanjeStartStop.Text = pustanje.ToString(); + btnPustanjeStartStop.BackColor = pustanje == ProcesKomanda.Start ? SystemColors.Control : Color.Green; + if (pustanje == ProcesKomanda.Start) + izvrsenaPrvaStavka = false; + } + + private void BtnSnimanjeStartStop_Click(object sender, EventArgs e) + { + PromenaSnimanje(); + } + + private void BtnPustanjeStartStop_Click(object sender, EventArgs e) + { + PromenaPustanje(); + //if (tekuciProces == Proces.Pustanje) + //{ + // tim.Interval = (int)numDelay.Value; + // tim.Start(); + //} + } + + private void DgvItems_CellDoubleClick(object sender, DataGridViewCellEventArgs e) + { + //B if (e.RowIndex != -1 && bsFAFItems.Position < bsFAFItems.Count - 1) + if (e.RowIndex != -1 && !dgvItems.SelectedRows[0].IsNewRow) + try + { + var item = dgvItems.CurrDataRow(); + if (item.ItemType == AkcijaTip.Klik.ToString()) + NamestiKursor(item, false); + } + catch (Exception ex) { Utils.ShowMbox(ex, Text); } + } + + private void BtnObrisiStavku_Click(object sender, EventArgs e) + { + try + { + if (Utils.ShowMboxYesNo("Da li ste sigurni da želite da obrišete selektovane stavke?", "Brisanje stavki") + == DialogResult.Yes) + { + var indices = new List(); + foreach (DataGridViewRow row in dgvItems.SelectedRows) + if (!row.IsNewRow) + indices.Add(row.Index); + foreach (var idx in indices) + bsFAFItems.RemoveAt(idx); + } + } + catch (Exception ex) { Utils.ShowMbox(ex, Text); } + } + + private void BtnPomeriStavkuNagore_Click(object sender, EventArgs e) + { + var idxRow = bsFAFItems.Position; + if (dgvItems.SelectedRows[0].IsNewRow) + return; + if (idxRow == 0) + return; + for (int i = 0; i <= 2; i++) + ZameniVrednostiCelija(i, -1); + bsFAFItems.MovePrevious(); + } + + private void ZameniVrednostiCelija(int idxCol, int deltaRow) + { + var idxRow = bsFAFItems.Position; + var s = dgvItems.Rows[idxRow + deltaRow].Cells[idxCol].Value; + dgvItems.Rows[idxRow + deltaRow].Cells[idxCol].Value = dgvItems.Rows[idxRow].Cells[idxCol].Value; + dgvItems.Rows[idxRow].Cells[idxCol].Value = s; + } + + private void BtnPomeriStavkuNadole_Click(object sender, EventArgs e) + { + if (dgvItems.SelectedRows[0].IsNewRow) + return; + if (bsFAFItems.Position == bsFAFItems.Count - 1) + return; + for (int i = 0; i <= 2; i++) + ZameniVrednostiCelija(i, +1); + bsFAFItems.MoveNext(); + } + } +} diff --git a/JISP/Forms/FrmFormAutoInput.resx b/JISP/Forms/FrmFormAutoInput.resx new file mode 100644 index 0000000..e75a668 --- /dev/null +++ b/JISP/Forms/FrmFormAutoInput.resx @@ -0,0 +1,147 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + False + + + False + + + False + + + 17, 17 + + + 150, 17 + + + 86, 17 + + + True + + + 289, 17 + + + 64 + + \ No newline at end of file diff --git a/JISP/Forms/FrmMain.cs b/JISP/Forms/FrmMain.cs index 7451f7c..c0fa758 100644 --- a/JISP/Forms/FrmMain.cs +++ b/JISP/Forms/FrmMain.cs @@ -4,7 +4,6 @@ using System.Collections.Generic; using System.Data; using System.Linq; -using System.Runtime.InteropServices; using System.Text; using System.Windows.Forms; @@ -182,43 +181,11 @@ private void BtnPrikaziPoruke_Click(object sender, EventArgs e) new FrmPoruke().ShowDialog(); } - [DllImport("user32.dll", CharSet = CharSet.Auto, CallingConvention = CallingConvention.StdCall)] - public static extern void mouse_event(uint dwFlags, uint dx, uint dy, uint cButtons, uint dwExtraInfo); - //Mouse actions - private const int MOUSEEVENTF_LEFTDOWN = 0x02; - private const int MOUSEEVENTF_LEFTUP = 0x04; - private const int MOUSEEVENTF_RIGHTDOWN = 0x08; - private const int MOUSEEVENTF_RIGHTUP = 0x10; - - public void DoMouseClick() - { - //Call the imported function with the cursor's current position - uint x = (uint)Cursor.Position.X; - uint y = (uint)Cursor.Position.Y; - mouse_event(MOUSEEVENTF_LEFTDOWN | MOUSEEVENTF_LEFTUP, x, y, 0, 0); - } - private void BtnTest_Click(object sender, EventArgs e) { try { - // gde se nalazi kursor misa na ekranu - //Console.WriteLine(Cursor.Position); - - // postaviti kursor misa na datu poziciju - //Cursor.Position = new System.Drawing.Point(0, 0); - //System.Threading.Thread.Sleep(1000); - //var bounds = Screen.PrimaryScreen.Bounds; - //Cursor.Position = new System.Drawing.Point(bounds.Width / 2, bounds.Height / 2); - - // klik na datu poziciju - //Cursor.Position = new System.Drawing.Point(0, 0); - //DoMouseClick(); - - // upisati dati tekst u aktivnu aplikaciju - //System.Threading.Thread.Sleep(1000); - //SendKeys.SendWait("{F5}"); - //SendKeys.SendWait("Pera"); + Utils.ShowForm(typeof(FrmFormAutoInput)); // var sb = new StringBuilder(); // foreach (var z in AppData.Ds.Zaposleni) diff --git a/JISP/Forms/FrmObrazovanje.Designer.cs b/JISP/Forms/FrmObrazovanje.Designer.cs index ece8ea7..78fb566 100644 --- a/JISP/Forms/FrmObrazovanje.Designer.cs +++ b/JISP/Forms/FrmObrazovanje.Designer.cs @@ -58,8 +58,6 @@ private void InitializeComponent() this.NazivSkole = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.JezikNaKomJeStecenoObrazovanje = new System.Windows.Forms.DataGridViewCheckBoxColumn(); this.dgvcDokument = new System.Windows.Forms.DataGridViewButtonColumn(); - this.bsObrazovanja = new System.Windows.Forms.BindingSource(this.components); - this.ds = new JISP.Data.Ds(); lblFilterZaposleni = new System.Windows.Forms.Label(); this.pnlLeft.SuspendLayout(); this.gbFilter.SuspendLayout(); diff --git a/JISP/JISP.csproj b/JISP/JISP.csproj index 619efa8..41c9f55 100644 --- a/JISP/JISP.csproj +++ b/JISP/JISP.csproj @@ -28,7 +28,7 @@ BV false 0 - 0.6.0.0 + 0.6.1.0 true true true @@ -151,6 +151,12 @@ + + Form + + + FrmFormAutoInput.cs + Form @@ -250,6 +256,9 @@ UcLeftPanel.cs + + FrmFormAutoInput.cs + FrmMain.cs