This commit is contained in:
@@ -23,6 +23,7 @@ namespace AyaNova.DataList
|
|||||||
+ "left join aworkorderitempart on aworkorderitem.id=aworkorderitempart.workorderitemid "
|
+ "left join aworkorderitempart on aworkorderitem.id=aworkorderitempart.workorderitemid "
|
||||||
+ "left join apart on (aworkorderitempart.partid=apart.id) "
|
+ "left join apart on (aworkorderitempart.partid=apart.id) "
|
||||||
+ "left join apartwarehouse on (aworkorderitempart.partwarehouseid=apartwarehouse.id) "
|
+ "left join apartwarehouse on (aworkorderitempart.partwarehouseid=apartwarehouse.id) "
|
||||||
|
+ "left join ataxcode on (aworkorderitempart.taxpartsaleid=ataxcode.id) "
|
||||||
;
|
;
|
||||||
|
|
||||||
var RoleSet = BizRoles.GetRoleSet(DefaultListAType);
|
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
|
//META column
|
||||||
FieldDefinitions.Add(new DataListFieldDefinition
|
FieldDefinitions.Add(new DataListFieldDefinition
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -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
|
FieldDefinitions.Add(new DataListFieldDefinition
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user