This commit is contained in:
2021-06-28 17:31:28 +00:00
parent 530d6799bf
commit 8b3f1f8c22
2 changed files with 14 additions and 11 deletions

View File

@@ -23,6 +23,7 @@ namespace AyaNova.DataList
+ "left join aworkorderitempart on aworkorderitem.id=aworkorderitempart.workorderitemid "
+ "left join apart on (aworkorderitempart.partid=apart.id) "
+ "left join apartwarehouse on (aworkorderitempart.partwarehouseid=apartwarehouse.id) "
+ "left join ataxcode on (aworkorderitempart.taxpartsaleid=ataxcode.id) "
;
var RoleSet = BizRoles.GetRoleSet(DefaultListAType);
@@ -114,6 +115,19 @@ namespace AyaNova.DataList
});
FieldDefinitions.Add(new DataListFieldDefinition
{
TKey = "WorkOrderItemPartTaxPartSaleID",
FieldKey = "WorkOrderItemPartTaxPartSaleID",
UiFieldDataType = (int)UiFieldDataType.Text,
AType = (int)AyaType.TaxCode,
SqlIdColumnName = "aworkorderitempart.taxpartsaleid",
SqlValueColumnName = "ataxcode.name"
});
//META column
FieldDefinitions.Add(new DataListFieldDefinition
{

View File

@@ -452,17 +452,6 @@ namespace AyaNova.DataList
});
/*
await ExecQueryAsync("CREATE TABLE aworkorder (id BIGINT GENERATED ALWAYS AS IDENTITY PRIMARY KEY, serial BIGINT GENERATED BY DEFAULT AS IDENTITY NOT NULL, "
+ "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, "
+ "servicedate TIMESTAMP, completebydate TIMESTAMP, invoicenumber TEXT, customersignature TEXT, customersignaturename TEXT, customersignaturecaptured TIMESTAMP, "
+ "techsignature TEXT, techsignaturename TEXT, techsignaturecaptured TIMESTAMP, durationtocompleted INTERVAL NOT NULL, onsite BOOL NOT NULL, contract TEXT, "
+ "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) "
+ ")");//n
*/
FieldDefinitions.Add(new DataListFieldDefinition
{