Ejemplo n.º 1
0
        private void LoadDetail(ModelNotifiedForEmployeeTerritories selectedItem)
        {
            if (selectedItem == null)
            {
                return;
            }

            if (DetailListTerritories != null)
            {
                DetailListTerritories.LoadGrid(x => x.TerritoryID == selectedItem.TerritoryID);
            }
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Load Detail form/list in master detail. Triggered by user's change in Grid's Row.
        /// When row change, load "DetailForm" or "Detail List" (need to be configured)
        /// </summary>
        /// <param name="selectedItem"></param>
        private void LoadDetail(ModelNotifiedForRegion selectedItem)
        {
            if (selectedItem == null)
            {
                return;
            }


            if (DetailListTerritories != null)
            {
                DetailListTerritories.LoadGrid(x => x.RegionID == selectedItem.RegionID);
            }

/* Note: the detail form can load only ONE row from 'Territories'. It's necessary to inform DetailForm primary key here or create a custom Form.Load().
 * if (DetailForm{0} != null)
 * {
 * //DetailFormTerritories.LoadForm(selectedItem.RegionID);
 * }
 */
        }