Example #1
0
        private void EditWarrantyType(int WarrantyTypeId)
        {
            this.WarrantyType = this.srvWarrantyType.GetById(WarrantyTypeId);

            this.ClearDetailControls();
            this.LoadFormFromEntity();
            this.frmWarrantyType.HiddenDetail(false);
            this.ShowDetail(true);
        }
Example #2
0
        internal override WarrantyType GetSerchResult()
        {
            WarrantyType WarrantyType = null;
            UltraGridRow activeRow    = this.grdSchSearch.ActiveRow;

            if (activeRow != null)
            {
                int WarrantyTypeId = Convert.ToInt32(activeRow.Cells[0].Value);
                WarrantyType = this.srvWarrantyType.GetById(WarrantyTypeId);
            }

            return(WarrantyType);
        }
Example #3
0
 private void DeleteEntity(int WarrantyTypeId)
 {
     if (MessageBox.Show("¿Esta seguro de eliminar el tipo de Fianza?", "Advertencia",
                         MessageBoxButtons.OKCancel, MessageBoxIcon.Question) != DialogResult.OK)
     {
         return;
     }
     this.WarrantyType           = this.srvWarrantyType.GetById(WarrantyTypeId);
     this.WarrantyType.Activated = false;
     this.WarrantyType.Deleted   = true;
     this.srvWarrantyType.SaveOrUpdate(this.WarrantyType);
     this.Search();
 }
Example #4
0
 private void btnSchCreate_Click(object sender, EventArgs e)
 {
     this.WarrantyType = new WarrantyType();
     this.ClearDetailControls();
     this.ShowDetail(true);
 }