コード例 #1
0
        public int Create(int EmployeeID, int PositionID, DateTime StartDate, DateTime?EndDate, bool Active, int?StructureObjectID)
        {
            int result = 1;
            StaffEmployeePosition sr = StaffEmployeePosition.CreateStaffEmployeePosition(1, EmployeeID, PositionID, StartDate, Active);

            sr.StructureObjectID = StructureObjectID;
            sr.EndDate           = EndDate;
            context.AddToStaffEmployeePositions(sr);
            result = sr.ID;
            return(result);
        }