提交代码
This commit is contained in:
@@ -30,7 +30,7 @@ namespace BLL
|
|||||||
public string ReceiveDate { get; set; }
|
public string ReceiveDate { get; set; }
|
||||||
public string PlanStartDate { get; set; }
|
public string PlanStartDate { get; set; }
|
||||||
|
|
||||||
|
public string Code { get; set; }
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
@@ -144,9 +144,10 @@ namespace BLL
|
|||||||
ReceiveMan = t.PersonName,
|
ReceiveMan = t.PersonName,
|
||||||
ReceiveDate = x.ReceiveDate.HasValue ? string.Format("{0:g}", x.ReceiveDate) : "",
|
ReceiveDate = x.ReceiveDate.HasValue ? string.Format("{0:g}", x.ReceiveDate) : "",
|
||||||
PlanStartDate = GetMinPlanStartDate(x.PackagingManageId),
|
PlanStartDate = GetMinPlanStartDate(x.PackagingManageId),
|
||||||
|
Code = x.PackagingCode.Substring(0, x.PackagingCode.LastIndexOf("-")).Substring(x.PackagingCode.Substring(0, x.PackagingCode.LastIndexOf("-")).LastIndexOf("-") + 1),
|
||||||
|
|
||||||
}).Distinct();
|
}).Distinct();
|
||||||
return q.ToList();
|
return q.OrderByDescending(x => x.Code).ToList();
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -15,7 +15,7 @@
|
|||||||
<Items>
|
<Items>
|
||||||
<f:Grid ID="Grid1" ShowBorder="true" ShowHeader="false" Title="包装管理台账" EnableCollapse="true"
|
<f:Grid ID="Grid1" ShowBorder="true" ShowHeader="false" Title="包装管理台账" EnableCollapse="true"
|
||||||
runat="server" BoxFlex="1" DataKeyNames="PackagingManageId" AllowCellEditing="true" ForceFit="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"
|
SortDirection="ASC" OnSort="Grid1_Sort" AllowPaging="true" IsDatabasePaging="true" EnableColumnLines="true"
|
||||||
PageSize="10" OnPageIndexChange="Grid1_PageIndexChange" AllowFilters="true" OnFilterChange="Grid1_FilterChange"
|
PageSize="10" OnPageIndexChange="Grid1_PageIndexChange" AllowFilters="true" OnFilterChange="Grid1_FilterChange"
|
||||||
EnableTextSelection="True" EnableRowDoubleClickEvent="true" OnRowDoubleClick="Grid1_RowDoubleClick" OnRowCommand="Grid1_RowCommand">
|
EnableTextSelection="True" EnableRowDoubleClickEvent="true" OnRowDoubleClick="Grid1_RowDoubleClick" OnRowCommand="Grid1_RowCommand">
|
||||||
|
|||||||
Reference in New Issue
Block a user