提交代码

This commit is contained in:
高飞 2024-01-22 10:35:43 +08:00
parent ce4763c8bb
commit ff0cc67d87
2 changed files with 4 additions and 3 deletions

View File

@ -30,7 +30,7 @@ namespace BLL
public string ReceiveDate { get; set; }
public string PlanStartDate { get; set; }
public string Code { get; set; }
}
@ -144,9 +144,10 @@ namespace BLL
ReceiveMan = t.PersonName,
ReceiveDate = x.ReceiveDate.HasValue ? string.Format("{0:g}", x.ReceiveDate) : "",
PlanStartDate = GetMinPlanStartDate(x.PackagingManageId),
Code = x.PackagingCode.Substring(0, x.PackagingCode.LastIndexOf("-")).Substring(x.PackagingCode.Substring(0, x.PackagingCode.LastIndexOf("-")).LastIndexOf("-") + 1),
}).Distinct();
return q.ToList();
return q.OrderByDescending(x => x.Code).ToList();
}
}

View File

@ -15,7 +15,7 @@
<Items>
<f:Grid ID="Grid1" ShowBorder="true" ShowHeader="false" Title="包装管理台账" EnableCollapse="true"
runat="server" BoxFlex="1" DataKeyNames="PackagingManageId" AllowCellEditing="true" ForceFit="true"
ClicksToEdit="2" DataIDField="PackagingManageId" AllowSorting="true" SortField="PackagingCode"
ClicksToEdit="2" DataIDField="PackagingManageId" AllowSorting="true" SortField="Code"
SortDirection="ASC" OnSort="Grid1_Sort" AllowPaging="true" IsDatabasePaging="true" EnableColumnLines="true"
PageSize="10" OnPageIndexChange="Grid1_PageIndexChange" AllowFilters="true" OnFilterChange="Grid1_FilterChange"
EnableTextSelection="True" EnableRowDoubleClickEvent="true" OnRowDoubleClick="Grid1_RowDoubleClick" OnRowCommand="Grid1_RowCommand">