Example #1
0
 public void ResumeBindingPostUpdate()
 {
     if ((this.dsGODINEDataSet1.GODINE.Rows[0] != null) && this.m_BaseMethods.IsInsert())
     {
         this.m_Mode             = DeklaritMode.Update;
         this.m_BaseMethods.Mode = this.m_Mode;
         this.m_BaseMethods.FormLoadStyle();
     }
 }
Example #2
0
 public void ResumeBindingPostUpdate()
 {
     if ((this.dsZATVARANJADataSet1.ZATVARANJA.Rows[0] != null) && this.m_BaseMethods.IsInsert())
     {
         this.m_Mode             = DeklaritMode.Update;
         this.m_BaseMethods.Mode = this.m_Mode;
         this.m_BaseMethods.FormLoadStyle();
         this.textGK1IDGKSTAVKA.ButtonsRight[0].Visible = false;
         this.textGK2IDGKSTAVKA.ButtonsRight[0].Visible = false;
     }
 }
Example #3
0
 public GenericFormClass(string frameworkDescriptionValue, string firstLevelNameValue, string objectNameValue, DeklaritMode modeValue, DataSet formDataSetValue, DataColumnCollection columnCollectionValue, Control.ControlCollection controlsValue, ArrayList dataGridsValue, bool autoNumberValue)
 {
     this.frameworkDescription = frameworkDescriptionValue;
     this.firstLevelName       = firstLevelNameValue;
     this.objectName           = objectNameValue;
     this.m_Mode           = modeValue;
     this.formDataSet      = formDataSetValue;
     this.columnCollection = columnCollectionValue;
     this.m_Controls       = controlsValue;
     this.DataGrids        = dataGridsValue;
     this.autoNumber       = autoNumberValue;
 }
Example #4
0
 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();
 }
Example #5
0
 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, "RADNOVRIJEME", this.m_Mode, this.dsRADNOVRIJEMEDataSet1, this.dsRADNOVRIJEMEDataSet1.RADNOVRIJEME.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.dsRADNOVRIJEMEDataSet1.RADNOVRIJEME[0];
     }
     if (this.m_BaseMethods.IsInsert() && !isCopy)
     {
         this.m_CurrentRow = (RADNOVRIJEMEDataSet.RADNOVRIJEMERow)((DataRowView)this.bindingSourceRADNOVRIJEME.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();
 }