This commit is contained in:
2021-06-28 19:15:50 +00:00
parent 8b3f1f8c22
commit 1f03d8c232
3 changed files with 20 additions and 11 deletions

View File

@@ -23,7 +23,7 @@ namespace AyaNova.DataList
+ "left join aworkorderitemlabor on aworkorderitem.id=aworkorderitemlabor.workorderitemid "
+ "left join auser on (aworkorderitemlabor.userid=auser.id) "
+ "left join aservicerate on (aworkorderitemlabor.servicerateid=aservicerate.id) "
+ "left join ataxcode on (aworkorderitemlabor.taxcodesaleid=ataxcode.id) "
;
var RoleSet = BizRoles.GetRoleSet(DefaultListAType);
@@ -124,6 +124,17 @@ namespace AyaNova.DataList
SqlValueColumnName = "aworkorderitemlabor.nochargequantity"
});
FieldDefinitions.Add(new DataListFieldDefinition
{
TKey = "WorkOrderItemLaborTaxRateSaleID",
FieldKey = "WorkOrderItemLaborTaxRateSaleID",
UiFieldDataType = (int)UiFieldDataType.Text,
AType = (int)AyaType.TaxCode,
SqlIdColumnName = "aworkorderitemlabor.taxcodesaleid",
SqlValueColumnName = "ataxcode.name"
});
//META column
FieldDefinitions.Add(new DataListFieldDefinition
@@ -490,7 +501,7 @@ namespace AyaNova.DataList
UiFieldDataType = (int)UiFieldDataType.DateTime,
SqlValueColumnName = "aworkorder.closebydate"
});
FieldDefinitions.Add(new DataListFieldDefinition { TKey = "WorkOrderCustom1", FieldKey = "workordercustom1", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "aworkorder.customfields", TKeySection = "WorkOrder" });
FieldDefinitions.Add(new DataListFieldDefinition { TKey = "WorkOrderCustom2", FieldKey = "workordercustom2", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "aworkorder.customfields", TKeySection = "WorkOrder" });
FieldDefinitions.Add(new DataListFieldDefinition { TKey = "WorkOrderCustom3", FieldKey = "workordercustom3", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "aworkorder.customfields", TKeySection = "WorkOrder" });