Exemplo n.º 1
0
        private void gridView2_MasterRowExpanding(object sender, DevExpress.XtraGrid.Views.Grid.MasterRowCanExpandEventArgs e)
        {
            if ((int)gvPartida.GetRowCellValue(e.RowHandle, "IdPresupCap") < 0)
            {
                MessageBox.Show("No puede crear detalles antes de guardar los cambios en el Capítulo", this.Text, MessageBoxButtons.OK, MessageBoxIcon.Exclamation);

                e.Allow = false;
            }
        }
Exemplo n.º 2
0
        private void gridView3_MasterRowExpanding(object sender, DevExpress.XtraGrid.Views.Grid.MasterRowCanExpandEventArgs e)
        {
            DevExpress.XtraGrid.Views.Grid.GridView view = sender as DevExpress.XtraGrid.Views.Grid.GridView;


            if ((int)view.GetRowCellValue(e.RowHandle, view.Columns["IdPresupDet"]) < 0)
            {
                MessageBox.Show("No puede crear subdetalles antes de guardar los cambios en el Detalle", this.Text, MessageBoxButtons.OK, MessageBoxIcon.Exclamation);

                e.Allow = false;
            }
            //else if (view.GetDetailView(e.RowHandle, e.RelationIndex).RowCount == 0)
            //    {
            //        MessageBox.Show("Si crea un subdetalles la cantidad y precio del detalle actual serán eliminados y el total se reemplazara por el total de los subdetalles creados", this.Text, MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
            //    }
        }
Exemplo n.º 3
0
 private void gdvMaterial_MasterRowExpanding(object sender, DevExpress.XtraGrid.Views.Grid.MasterRowCanExpandEventArgs e)
 {
     try
     {
         GridView       view        = (GridView)sender;
         MaterialObject materialObj = (MaterialObject)view.GetRow(view.FocusedRowHandle);
         if (!materialObj.ChildsAdded)
         {
             new TIS.BL.Internal.Material().AddChilds(materialObj);
         }
     }
     catch (System.Exception exception1)
     {
         System.Exception thisException = exception1;
         Management.ShowException(thisException);
     }
 }
Exemplo n.º 4
0
 private void gridViewRecMast_MasterRowExpanding(object sender, DevExpress.XtraGrid.Views.Grid.MasterRowCanExpandEventArgs e)
 {
     MDataSet.ReceiptMasterRow _mastRow = this.gridViewRecMast.GetDataRow(e.RowHandle) as MDataSet.ReceiptMasterRow;
     if (_mastRow != null)
     {
         foreach (MDataSet.ReceiptDetailRow _detRow in _mastRow.GetReceiptDetailRows())
         {
             if (_detRow.ProductRow == null)
             {
                 if (!(this.ParentForm as MainForm).RefreshData(mDataSet.Product, _detRow.ProductRef))
                 {
                     _mastRow.RowError = "Выполните синхронизацию!";
                 }
             }
         }
     }
 }
Exemplo n.º 5
0
 private void mainEquityView_MasterRowExpanding(object sender, DevExpress.XtraGrid.Views.Grid.MasterRowCanExpandEventArgs e)
 {
     e.Allow = true;
 }
 void gridView1_MasterRowExpanding(object sender, DevExpress.XtraGrid.Views.Grid.MasterRowCanExpandEventArgs e)
 {
     e.Allow = true;
 }