Esempio n. 1
0
 public override void RowsPastedDone()
 {
     if (this.groupMaster != null)
     {
         editRow.SetMaster(groupMaster);
     }
 }
Esempio n. 2
0
        private void InitPage(CrudAPI crudApi, UnicontaBaseEntity groupMaster = null)
        {
            layoutControl        = layoutItems;
            leRevenueAccount.api = leRevenueAccount1.api = leRevenueAccount2.api = leRevenueAccount3.api = leRevenueAccount4.api = leInvGroup.api = leGroup.api
                                                                                                                                                        = leVat.api = leVat1.api = leVat2.api = leVat3.api = leVat4.api = crudApi;

            if (LoadedRow == null && editRow == null)
            {
                frmRibbon.DisableButtons("Delete");
                editRow = CreateNew() as DCGroupPostingClient;
                editRow.SetMaster(groupMaster);
                editRow._DCType = 2;
            }
            layoutItems.DataContext  = editRow;
            frmRibbon.OnItemClicked += FrmRibbon_OnItemClicked;
            SetControlVisibility(groupMaster);
            SetHeaders();
        }