This commit is contained in:
@@ -22,6 +22,7 @@ namespace AyaNova.DataList
|
||||
//workorder item expense
|
||||
+ "left join aworkorderitemexpense on aworkorderitem.id=aworkorderitemexpense.workorderitemid "
|
||||
+ "left join auser on (aworkorderitemexpense.userid=auser.id) "
|
||||
+ "left join ataxcode on (aworkorderitemexpense.chargetaxcodeid=ataxcode.id) "
|
||||
;
|
||||
|
||||
var RoleSet = BizRoles.GetRoleSet(DefaultListAType);
|
||||
@@ -50,7 +51,7 @@ namespace AyaNova.DataList
|
||||
*/
|
||||
|
||||
#region WorkOrderItemExpense fields
|
||||
|
||||
|
||||
FieldDefinitions.Add(new DataListFieldDefinition
|
||||
{
|
||||
TKey = "WorkOrderItemExpenseName",
|
||||
@@ -117,6 +118,15 @@ namespace AyaNova.DataList
|
||||
SqlValueColumnName = "aworkorderitemexpense.reimburseuser"
|
||||
});
|
||||
|
||||
FieldDefinitions.Add(new DataListFieldDefinition
|
||||
{
|
||||
TKey = "WorkOrderItemExpenseChargeTaxCodeID",
|
||||
FieldKey = "WorkOrderItemExpenseChargeTaxCodeID",
|
||||
UiFieldDataType = (int)UiFieldDataType.Text,
|
||||
AType = (int)AyaType.TaxCode,
|
||||
SqlIdColumnName = "aworkorderitemexpense.chargetaxcodeid",
|
||||
SqlValueColumnName = "ataxcode.name"
|
||||
});
|
||||
|
||||
|
||||
//META column
|
||||
@@ -487,7 +497,7 @@ namespace AyaNova.DataList
|
||||
});
|
||||
|
||||
|
||||
FieldDefinitions.Add(new DataListFieldDefinition { TKey = "WorkOrderCustom1", FieldKey = "workordercustom1", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "aworkorder.customfields", TKeySection = "WorkOrder" });
|
||||
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" });
|
||||
FieldDefinitions.Add(new DataListFieldDefinition { TKey = "WorkOrderCustom4", FieldKey = "workordercustom4", IsCustomField = true, IsFilterable = false, IsSortable = false, SqlValueColumnName = "aworkorder.customfields", TKeySection = "WorkOrder" });
|
||||
|
||||
Reference in New Issue
Block a user