public void Initialize(DeklaritMode mode, DataRow foreignKeys, bool isCopy) { this.ChangeBinding(); this.m_ForeignKeys = foreignKeys; this.RegisterBindingSources(); this.m_Mode = mode; this.m_BaseMethods = new GenericFormClass(this.m_FrameworkDescription, this.m_FirstLevelName, "ZATVARANJA", this.m_Mode, this.dsZATVARANJADataSet1, this.dsZATVARANJADataSet1.ZATVARANJA.Columns, this.Controls, this.m_DataGrids, this.m_AutoNumber); this.m_BaseMethods.FormLoadStyle(); if ((this.m_BaseMethods.IsUpdate() || this.m_BaseMethods.IsDelete()) || (this.m_BaseMethods.IsSelect() || isCopy)) { this.m_CurrentRow = this.dsZATVARANJADataSet1.ZATVARANJA[0]; this.textGK1IDGKSTAVKA.ButtonsRight[0].Visible = false; this.textGK2IDGKSTAVKA.ButtonsRight[0].Visible = false; } if (this.m_BaseMethods.IsInsert() && !isCopy) { this.textGK1IDGKSTAVKA.ButtonsRight[0].Visible = true; this.textGK2IDGKSTAVKA.ButtonsRight[0].Visible = true; this.m_CurrentRow = (ZATVARANJADataSet.ZATVARANJARow)((DataRowView)this.bindingSourceZATVARANJA.AddNew()).Row; foreach (string str in DataSetUtil.CopyForeignKeyValues(this.m_CurrentRow, foreignKeys)) { this.m_BaseMethods.SetReadOnly(str, true); this.m_BaseMethods.GetLabelControl(str).Visible = false; this.m_BaseMethods.GetControl(str).Visible = false; } } this.SetFocusInFirstField(); }
public void Initialize(DeklaritMode mode, DataRow foreignKeys, bool isCopy) { this.ChangeBinding(); this.m_ForeignKeys = foreignKeys; this.RegisterBindingSources(); this.m_Mode = mode; this.m_BaseMethods = new GenericFormClass(this.m_FrameworkDescription, this.m_FirstLevelName, "OSNOVAOSIGURANJA", this.m_Mode, this.dsOSNOVAOSIGURANJADataSet1, this.dsOSNOVAOSIGURANJADataSet1.OSNOVAOSIGURANJA.Columns, this.Controls, this.m_DataGrids, this.m_AutoNumber); Binding binding = new Binding("CheckState", this.bindingSourceOSNOVAOSIGURANJA, "RAZDOBLJESESMIJEPREKLAPATI", true); binding.Format += new ConvertEventHandler(this.m_BaseMethods.BooleanFormat); binding.Parse += new ConvertEventHandler(this.m_BaseMethods.BooleanParse); if (this.checkRAZDOBLJESESMIJEPREKLAPATI.DataBindings["CheckState"] != null) { this.checkRAZDOBLJESESMIJEPREKLAPATI.DataBindings.Remove(this.checkRAZDOBLJESESMIJEPREKLAPATI.DataBindings["CheckState"]); } this.checkRAZDOBLJESESMIJEPREKLAPATI.DataBindings.Add(binding); this.m_BaseMethods.FormLoadStyle(); if ((this.m_BaseMethods.IsUpdate() || this.m_BaseMethods.IsDelete()) || (this.m_BaseMethods.IsSelect() || isCopy)) { this.m_CurrentRow = this.dsOSNOVAOSIGURANJADataSet1.OSNOVAOSIGURANJA[0]; } if (this.m_BaseMethods.IsInsert() && !isCopy) { this.m_CurrentRow = (OSNOVAOSIGURANJADataSet.OSNOVAOSIGURANJARow)((DataRowView)this.bindingSourceOSNOVAOSIGURANJA.AddNew()).Row; foreach (string str in DataSetUtil.CopyForeignKeyValues(this.m_CurrentRow, foreignKeys)) { this.m_BaseMethods.SetReadOnly(str, true); this.m_BaseMethods.GetLabelControl(str).Visible = false; this.m_BaseMethods.GetControl(str).Visible = false; } } this.SetFocusInFirstField(); }
public void Initialize(DeklaritMode mode, DataRow parentRow, bool isCopy) { this.m_ParentRow = parentRow; this.dsRADNIKDataSet1 = (RADNIKDataSet)this.m_ParentRow.Table.DataSet; this.bindingSourceRADNIKBruto.DataSource = DataSetUtil.GetSubTreeDataView(this.m_ParentRow, this.dsRADNIKDataSet1.Tables["RADNIKBruto"]); this.bindingSourceRADNIKBruto.DataMember = ""; this.RegisterBindingSources(); this.m_Mode = mode; this.m_BaseMethods = new GenericFormClass(this.m_FrameworkDescription, this.m_FirstLevelName, "RADNIK", this.m_Mode, this.dsRADNIKDataSet1, this.dsRADNIKDataSet1.RADNIKBruto.Columns, this.Controls, this.m_DataGrids, this.m_AutoNumber); this.m_BaseMethods.FormLoadStyle(); if ((this.m_BaseMethods.IsUpdate() || this.m_BaseMethods.IsDelete()) || (this.m_BaseMethods.IsSelect() || isCopy)) { this.m_CurrentRow = (RADNIKDataSet.RADNIKBrutoRow)((DataRowView)this.bindingSourceRADNIKBruto.Current).Row; } if (this.m_BaseMethods.IsInsert() && !isCopy) { this.m_CurrentRow = (RADNIKDataSet.RADNIKBrutoRow)((DataRowView)this.bindingSourceRADNIKBruto.AddNew()).Row; this.m_CurrentRow.SetParentRow(this.m_ParentRow); } this.FillProviderCombocomboBRUTOELEMENTIDELEMENT(); if (this.m_BaseMethods.IsInsert()) { this.comboBRUTOELEMENTIDELEMENT.SelectedIndex = -1; } if (this.comboBRUTOELEMENTIDELEMENT.DataBindings["Value"] != null) { this.comboBRUTOELEMENTIDELEMENT.DataBindings.Remove(this.comboBRUTOELEMENTIDELEMENT.DataBindings["Value"]); } this.comboBRUTOELEMENTIDELEMENT.DataBindings.Add(new Binding("Value", this.bindingSourceRADNIKBruto, "BRUTOELEMENTIDELEMENT")); this.SetFocusInFirstField(); }
public void Initialize(DeklaritMode mode, DataRow foreignKeys, bool isCopy) { this.ChangeBinding(); this.m_ForeignKeys = foreignKeys; this.RegisterBindingSources(); this.m_Mode = mode; this.m_BaseMethods = new GenericFormClass(this.m_FrameworkDescription, this.m_FirstLevelName, "OTISLI", this.m_Mode, this.dsOTISLIDataSet1, this.dsOTISLIDataSet1.OTISLI.Columns, this.Controls, this.m_DataGrids, this.m_AutoNumber); Binding binding = new Binding("Text", this.bindingSourceOTISLI, "DATUMODLASKA", true); binding.Format += new ConvertEventHandler(this.m_BaseMethods.DateFormat); binding.Parse += new ConvertEventHandler(this.m_BaseMethods.DateParseNotNull); if (this.datePickerDATUMODLASKA.DataBindings["Text"] != null) { this.datePickerDATUMODLASKA.DataBindings.Remove(this.datePickerDATUMODLASKA.DataBindings["Text"]); } this.datePickerDATUMODLASKA.DataBindings.Add(binding); this.m_BaseMethods.FormLoadStyle(); if ((this.m_BaseMethods.IsUpdate() || this.m_BaseMethods.IsDelete()) || (this.m_BaseMethods.IsSelect() || isCopy)) { this.m_CurrentRow = this.dsOTISLIDataSet1.OTISLI[0]; } if (this.m_BaseMethods.IsInsert() && !isCopy) { this.m_CurrentRow = (OTISLIDataSet.OTISLIRow)((DataRowView)this.bindingSourceOTISLI.AddNew()).Row; foreach (string str in DataSetUtil.CopyForeignKeyValues(this.m_CurrentRow, foreignKeys)) { this.m_BaseMethods.SetReadOnly(str, true); this.m_BaseMethods.GetLabelControl(str).Visible = false; this.m_BaseMethods.GetControl(str).Visible = false; } } this.SetFocusInFirstField(); }
public void Initialize(DeklaritMode mode, DataRow parentRow, bool isCopy) { this.m_ParentRow = parentRow; this.dsRADNIKDataSet1 = (RADNIKDataSet)this.m_ParentRow.Table.DataSet; this.bindingSourceRADNIKOdbitak.DataSource = DataSetUtil.GetSubTreeDataView(this.m_ParentRow, this.dsRADNIKDataSet1.Tables["RADNIKOdbitak"]); this.bindingSourceRADNIKOdbitak.DataMember = ""; this.RegisterBindingSources(); this.m_Mode = mode; this.m_BaseMethods = new GenericFormClass(this.m_FrameworkDescription, this.m_FirstLevelName, "RADNIK", this.m_Mode, this.dsRADNIKDataSet1, this.dsRADNIKDataSet1.RADNIKOdbitak.Columns, this.Controls, this.m_DataGrids, this.m_AutoNumber); Binding binding = new Binding("Text", this.bindingSourceRADNIKOdbitak, "FAKTOROSOBNOGODBITKA", true); binding.Format += new ConvertEventHandler(this.m_BaseMethods.NumericFormat); if (this.labelFAKTOROSOBNOGODBITKA.DataBindings["Text"] != null) { this.labelFAKTOROSOBNOGODBITKA.DataBindings.Remove(this.labelFAKTOROSOBNOGODBITKA.DataBindings["Text"]); } this.labelFAKTOROSOBNOGODBITKA.DataBindings.Add(binding); this.m_BaseMethods.FormLoadStyle(); if ((this.m_BaseMethods.IsUpdate() || this.m_BaseMethods.IsDelete()) || (this.m_BaseMethods.IsSelect() || isCopy)) { this.m_CurrentRow = (RADNIKDataSet.RADNIKOdbitakRow)((DataRowView)this.bindingSourceRADNIKOdbitak.Current).Row; this.textOSOBNIODBITAKZADUZENJEIDOSOBNIODBITAK.ButtonsRight[0].Visible = false; } if (this.m_BaseMethods.IsInsert() && !isCopy) { this.textOSOBNIODBITAKZADUZENJEIDOSOBNIODBITAK.ButtonsRight[0].Visible = true; this.m_CurrentRow = (RADNIKDataSet.RADNIKOdbitakRow)((DataRowView)this.bindingSourceRADNIKOdbitak.AddNew()).Row; this.m_CurrentRow.SetParentRow(this.m_ParentRow); } this.SetFocusInFirstField(); }
public void Initialize(DeklaritMode mode, DataRow parentRow, bool isCopy) { this.m_ParentRow = parentRow; this.dsBLAGAJNADataSet1 = (BLAGAJNADataSet)this.m_ParentRow.Table.DataSet; this.bindingSourceBLAGAJNAStavkeBlagajne.DataSource = DataSetUtil.GetSubTreeDataView(this.m_ParentRow, this.dsBLAGAJNADataSet1.Tables["BLAGAJNAStavkeBlagajne"]); this.bindingSourceBLAGAJNAStavkeBlagajne.DataMember = ""; this.bindingSourceBLAGAJNAStavkeBlagajneStavkeBlagajneKontiranje.DataMember = "BLAGAJNAStavkeBlagajne_BLAGAJNAStavkeBlagajneStavkeBlagajneKontiranje"; this.RegisterBindingSources(); this.m_Mode = mode; this.m_BaseMethods = new GenericFormClass(this.m_FrameworkDescription, this.m_FirstLevelName, "BLAGAJNA", this.m_Mode, this.dsBLAGAJNADataSet1, this.dsBLAGAJNADataSet1.BLAGAJNAStavkeBlagajne.Columns, this.Controls, this.m_DataGrids, this.m_AutoNumber); Binding binding = new Binding("Text", this.bindingSourceBLAGAJNAStavkeBlagajne, "BLGDATUMDOKUMENTA", true); binding.Format += new ConvertEventHandler(this.m_BaseMethods.DateFormat); binding.Parse += new ConvertEventHandler(this.m_BaseMethods.DateParseNotNull); if (this.datePickerBLGDATUMDOKUMENTA.DataBindings["Text"] != null) { this.datePickerBLGDATUMDOKUMENTA.DataBindings.Remove(this.datePickerBLGDATUMDOKUMENTA.DataBindings["Text"]); } this.datePickerBLGDATUMDOKUMENTA.DataBindings.Add(binding); this.m_BaseMethods.FormLoadStyle(); if ((this.m_BaseMethods.IsUpdate() || this.m_BaseMethods.IsDelete()) || (this.m_BaseMethods.IsSelect() || isCopy)) { this.m_CurrentRow = (BLAGAJNADataSet.BLAGAJNAStavkeBlagajneRow)((DataRowView)this.bindingSourceBLAGAJNAStavkeBlagajne.Current).Row; this.textIDBLGVRSTEDOK.ButtonsRight[0].Visible = false; this.textblggodineIDGODINE.ButtonsRight[0].Visible = false; } if (this.m_BaseMethods.IsInsert() && !isCopy) { this.textIDBLGVRSTEDOK.ButtonsRight[0].Visible = true; this.textblggodineIDGODINE.ButtonsRight[0].Visible = true; this.m_CurrentRow = (BLAGAJNADataSet.BLAGAJNAStavkeBlagajneRow)((DataRowView)this.bindingSourceBLAGAJNAStavkeBlagajne.AddNew()).Row; this.m_CurrentRow.SetParentRow(this.m_ParentRow); } this.SetFocusInFirstField(); }
private bool InValidState() { if ((this.TITULAController.WorkItem.Status != WorkItemStatus.Active) || !GenericFormClass.EndEditBindingSource(this.bindingSourceTITULA, this.TITULAController.WorkItem, this)) { return(false); } if (!this.m_BaseMethods.IsDelete() && this.errorProviderValidator1.HasErrors) { return(false); } return(true); }
private bool InValidState() { if ((this.Controller.WorkItem.Status != WorkItemStatus.Active) || !GenericFormClass.EndEditBindingSource(this.bindingSourceDDKATEGORIJAIzdaci, this.Controller.WorkItem, this)) { return(false); } this.EndEditCurrentRow(); if (!this.m_BaseMethods.IsDelete() && this.errorProviderValidator1.HasErrors) { return(false); } return(true); }
public void Initialize(DeklaritMode mode, DataRow parentRow, bool isCopy) { this.m_ParentRow = parentRow; this.dsSHEMAIRADataSet1 = (SHEMAIRADataSet)this.m_ParentRow.Table.DataSet; this.bindingSourceSHEMAIRASHEMAIRAKONTIRANJE.DataSource = DataSetUtil.GetSubTreeDataView(this.m_ParentRow, this.dsSHEMAIRADataSet1.Tables["SHEMAIRASHEMAIRAKONTIRANJE"]); this.bindingSourceSHEMAIRASHEMAIRAKONTIRANJE.DataMember = ""; this.RegisterBindingSources(); this.m_Mode = mode; this.m_BaseMethods = new GenericFormClass(this.m_FrameworkDescription, this.m_FirstLevelName, "SHEMAIRA", this.m_Mode, this.dsSHEMAIRADataSet1, this.dsSHEMAIRADataSet1.SHEMAIRASHEMAIRAKONTIRANJE.Columns, this.Controls, this.m_DataGrids, this.m_AutoNumber); this.m_BaseMethods.FormLoadStyle(); if ((this.m_BaseMethods.IsUpdate() || this.m_BaseMethods.IsDelete()) || (this.m_BaseMethods.IsSelect() || isCopy)) { this.m_CurrentRow = (SHEMAIRADataSet.SHEMAIRASHEMAIRAKONTIRANJERow)((DataRowView)this.bindingSourceSHEMAIRASHEMAIRAKONTIRANJE.Current).Row; } if (this.m_BaseMethods.IsInsert() && !isCopy) { this.m_CurrentRow = (SHEMAIRADataSet.SHEMAIRASHEMAIRAKONTIRANJERow)((DataRowView)this.bindingSourceSHEMAIRASHEMAIRAKONTIRANJE.AddNew()).Row; this.m_CurrentRow.SetParentRow(this.m_ParentRow); } this.SetFocusInFirstField(); }