This commit is contained in:
@@ -12,13 +12,14 @@ namespace AyaNova.DataList
|
||||
DefaultListAType = AyaType.Quote;
|
||||
SQLFrom = "from aquote "
|
||||
+ "left join aquotestatus on (aquote.laststatusid = aquotestatus.id) "
|
||||
+ "left join acustomer on (aquote.customerid=acustomer.id) "
|
||||
+ "left join aheadoffice on (acustomer.headofficeid=aheadoffice.id) "
|
||||
+ "left join aproject on (aquote.projectid=aproject.id) "
|
||||
+ "left join acontract on (aquote.contractid=acontract.id)";
|
||||
+ "left join acustomer on (aquote.customerid = acustomer.id) "
|
||||
+ "left join aheadoffice on (acustomer.headofficeid = aheadoffice.id) "
|
||||
+ "left join aproject on (aquote.projectid = aproject.id) "
|
||||
+ "left join auser on (aquote.preparedbyid = auser.id) "
|
||||
+ "left join acontract on (aquote.contractid = acontract.id)";
|
||||
var RoleSet = BizRoles.GetRoleSet(DefaultListAType);
|
||||
AllowedRoles = RoleSet.ReadFullRecord | RoleSet.Change;
|
||||
DefaultColumns = new List<string>() { "QuoteSerialNumber", "Customer", "QuoteStatus", "Project" };
|
||||
DefaultColumns = new List<string>() { "QuoteSerialNumber", "Customer", "QuoteQuoteStatusType", "QuoteQuoteRequestDate", "QuotePreparedByID" };
|
||||
DefaultSortBy = new Dictionary<string, string>() { { "QuoteSerialNumber", "-" } };
|
||||
FieldDefinitions = new List<DataListFieldDefinition>();
|
||||
|
||||
@@ -53,6 +54,16 @@ namespace AyaNova.DataList
|
||||
SqlValueColumnName = "aheadoffice.name"
|
||||
});
|
||||
|
||||
FieldDefinitions.Add(new DataListFieldDefinition
|
||||
{
|
||||
TKey = "QuotePreparedByID",
|
||||
FieldKey = "QuotePreparedByID",
|
||||
UiFieldDataType = (int)UiFieldDataType.Text,
|
||||
AType = (int)AyaType.User,
|
||||
SqlIdColumnName = "aquote.preparedbyid",
|
||||
SqlValueColumnName = "auser.name"
|
||||
});
|
||||
|
||||
FieldDefinitions.Add(new DataListFieldDefinition
|
||||
{
|
||||
TKey = "QuoteQuoteStatusType",
|
||||
@@ -124,29 +135,45 @@ namespace AyaNova.DataList
|
||||
SqlValueColumnName = "aquote.customercontactname"
|
||||
});
|
||||
|
||||
// FieldDefinitions.Add(new DataListFieldDefinition
|
||||
// {
|
||||
// TKey = "QuoteServiceDate",
|
||||
// FieldKey = "QuoteServiceDate",
|
||||
// UiFieldDataType = (int)UiFieldDataType.DateTime,
|
||||
// SqlValueColumnName = "aquote.servicedate"
|
||||
// });
|
||||
FieldDefinitions.Add(new DataListFieldDefinition
|
||||
{
|
||||
TKey = "QuoteQuoteRequestDate",
|
||||
FieldKey = "QuoteQuoteRequestDate",
|
||||
UiFieldDataType = (int)UiFieldDataType.DateTime,
|
||||
SqlValueColumnName = "aquote.requested"
|
||||
});
|
||||
|
||||
// FieldDefinitions.Add(new DataListFieldDefinition
|
||||
// {
|
||||
// TKey = "QuoteCloseByDate",
|
||||
// FieldKey = "QuoteCloseByDate",
|
||||
// UiFieldDataType = (int)UiFieldDataType.DateTime,
|
||||
// SqlValueColumnName = "aquote.completebydate"
|
||||
// });
|
||||
FieldDefinitions.Add(new DataListFieldDefinition
|
||||
{
|
||||
TKey = "QuoteValidUntilDate",
|
||||
FieldKey = "QuoteValidUntilDate",
|
||||
UiFieldDataType = (int)UiFieldDataType.DateTime,
|
||||
SqlValueColumnName = "aquote.validuntil"
|
||||
});
|
||||
|
||||
FieldDefinitions.Add(new DataListFieldDefinition
|
||||
{
|
||||
TKey = "QuoteDateSubmitted",
|
||||
FieldKey = "QuoteDateSubmitted",
|
||||
UiFieldDataType = (int)UiFieldDataType.DateTime,
|
||||
SqlValueColumnName = "aquote.submitted"
|
||||
});
|
||||
|
||||
FieldDefinitions.Add(new DataListFieldDefinition
|
||||
{
|
||||
TKey = "QuoteDateApproved",
|
||||
FieldKey = "QuoteDateApproved",
|
||||
UiFieldDataType = (int)UiFieldDataType.DateTime,
|
||||
SqlValueColumnName = "aquote.approved"
|
||||
});
|
||||
|
||||
// FieldDefinitions.Add(new DataListFieldDefinition
|
||||
// {
|
||||
// TKey = "QuoteInvoiceNumber",
|
||||
// FieldKey = "QuoteInvoiceNumber",
|
||||
// UiFieldDataType = (int)UiFieldDataType.Text,
|
||||
// SqlValueColumnName = "aquote.invoicenumber"
|
||||
// });
|
||||
FieldDefinitions.Add(new DataListFieldDefinition
|
||||
{
|
||||
TKey = "QuoteIntroduction",
|
||||
FieldKey = "QuoteIntroduction",
|
||||
UiFieldDataType = (int)UiFieldDataType.Text,
|
||||
SqlValueColumnName = "aquote.introduction"
|
||||
});
|
||||
|
||||
FieldDefinitions.Add(new DataListFieldDefinition
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user