Пример #1
0
        private void EditOperativeSystemType(int OperativeSystemTypeId)
        {
            this.OperativeSystemType = this.srvOperativeSystemType.GetById(OperativeSystemTypeId);

            this.ClearDetailControls();
            this.LoadFormFromEntity();
            this.frmOperativeSystemType.HiddenDetail(false);
            this.ShowDetail(true);
        }
Пример #2
0
 private void DeleteEntity(int OperativeSystemTypeId)
 {
     if (MessageBox.Show("¿Esta seguro de eliminar el Tipo de Sistema Operativo?", "Advertencia",
                         MessageBoxButtons.OKCancel, MessageBoxIcon.Question) != DialogResult.OK)
     {
         return;
     }
     this.OperativeSystemType           = this.srvOperativeSystemType.GetById(OperativeSystemTypeId);
     this.OperativeSystemType.Activated = false;
     this.OperativeSystemType.Deleted   = true;
     this.srvOperativeSystemType.SaveOrUpdate(this.OperativeSystemType);
     this.Search();
 }
        public override OperativeSystemType GetSearchResult()
        {
            OperativeSystemType OperativeSystemType = null;
            UltraGridRow        activeRow           = this.grdSchSearch.ActiveRow;

            if (activeRow != null)
            {
                int OperativeSystemTypeId = Convert.ToInt32(activeRow.Cells[0].Value);
                OperativeSystemType = this.srvOperativeSystemType.GetById(OperativeSystemTypeId);
            }

            return(OperativeSystemType);
        }
Пример #4
0
 private void btnSchCreate_Click(object sender, EventArgs e)
 {
     this.OperativeSystemType = new OperativeSystemType();
     this.ClearDetailControls();
     this.ShowDetail(true);
 }