This commit is contained in:
2021-07-29 17:16:50 +00:00
parent 5af58d63e6
commit f00c081cda
3 changed files with 668 additions and 495 deletions

File diff suppressed because it is too large Load Diff

View File

@@ -23,14 +23,22 @@ namespace AyaNova.Models
//----
public DateTime? StopGeneratingDate { get; set; }
public DaysOfWeek ExcludeDaysOfWeek { get; set; }//bit field flags set
[Required]
public DaysOfWeek ExcludeDaysOfWeek { get; set; }//bit field flags set
[Required]
public bool Active { get; set; }
[Required]
public DateTime NextServiceDate { get; set; }
[Required]
public PMTimeUnit RepeatUnit { get; set; }
[Required]
public PMTimeUnit GenerateBeforeUnit { get; set; }
[Required]
public int RepeatInterval { get; set; }
[Required]
public int GenerateBeforeInterval { get; set; }
public DateTime? GenerateDate { get; set; }//Internal, not exposed to UI and is the date to do the next generate on that takes into account generatebefore and next service date and is calcd when first created and after that when generate happens for next time see pmbiz top with reference v7 code
//This property is calculated by biz object and set internally
public DateTime? GenerateDate { get; set; }
//----
[Required]

View File

@@ -24,7 +24,7 @@ namespace AyaNova.Util
internal const long EXPECTED_COLUMN_COUNT = 1221;
internal const long EXPECTED_INDEX_COUNT = 145;
internal const long EXPECTED_CHECK_CONSTRAINTS = 516;
internal const long EXPECTED_CHECK_CONSTRAINTS = 517;
internal const long EXPECTED_FOREIGN_KEY_CONSTRAINTS = 190;
internal const long EXPECTED_VIEWS = 7;
internal const long EXPECTED_ROUTINES = 2;
@@ -1016,7 +1016,7 @@ $BODY$ LANGUAGE PLPGSQL STABLE");
+ "notes TEXT, wiki TEXT, customfields TEXT, tags VARCHAR(255) ARRAY, customerid BIGINT NOT NULL REFERENCES acustomer (id), "
+ "projectid BIGINT REFERENCES aproject, contractid BIGINT NULL, internalreferencenumber text, "
+ "customerreferencenumber text, customercontactname text, createddate TIMESTAMP NOT NULL, onsite BOOL NOT NULL, "
+ "stopgeneratingdate TIMESTAMP, nextservicedate TIMESTAMP NOT NULL, generatedate TIMESTAMP, excludedaysofweek INTEGER NOT NULL, active BOOL NOT NULL, "
+ "stopgeneratingdate TIMESTAMP, nextservicedate TIMESTAMP NOT NULL, generatedate TIMESTAMP NOT NULL, excludedaysofweek INTEGER NOT NULL, active BOOL NOT NULL, "
+ "repeatunit INTEGER NOT NULL, generatebeforeunit INTEGER NOT NULL, repeatinterval INTEGER NOT NULL, generatebeforeinterval INTEGER NOT NULL, "
+ "postaddress TEXT, postcity TEXT, postregion TEXT, postcountry TEXT, postcode TEXT, address TEXT, city TEXT, region TEXT, country TEXT, latitude DECIMAL(9,6), longitude DECIMAL(9,6) "
+ ")");