예제 #1
0
        private void EditUPSType(int UPSTypeId)
        {
            this.UPSType = this.srvUPSType.GetById(UPSTypeId);

            this.ClearDetailControls();
            this.LoadFormFromEntity();
            this.frmUPSType.HiddenDetail(false);
            this.ShowDetail(true);
        }
예제 #2
0
        public override UPSType GetSearchResult()
        {
            UPSType      UPSType   = null;
            UltraGridRow activeRow = this.grdSchSearch.ActiveRow;

            if (activeRow != null)
            {
                int UPSTypeId = Convert.ToInt32(activeRow.Cells[0].Value);
                UPSType = this.srvUPSType.GetById(UPSTypeId);
            }

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