コード例 #1
0
 private void RefreshFields(EmployeeEmployeeTerritory tmp)
 {
     _EmployeeTerritoryInfoExtension.Refresh(this);
     _MyEmployee  = null;
     _MyTerritory = null;
     OnChange();            // raise an event
 }
コード例 #2
0
        public static void Refresh(Employee myEmployee, EmployeeEmployeeTerritory tmp)
        {
            EmployeeTerritoryInfo tmpInfo = GetExistingByPrimaryKey(myEmployee.EmployeeID, tmp.TerritoryID);

            if (tmpInfo == null)
            {
                return;
            }
            tmpInfo.RefreshFields(tmp);
        }