提交代码
This commit is contained in:
parent
df9bf75f24
commit
0948804eb2
|
@ -15,8 +15,8 @@
|
||||||
<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="Id" AllowCellEditing="true" EnableColumnLines="true"
|
runat="server" BoxFlex="1" DataKeyNames="Id" AllowCellEditing="true" EnableColumnLines="true"
|
||||||
ClicksToEdit="2" DataIDField="Id" AllowSorting="true" SortField="CommissioningSystem"
|
ClicksToEdit="2" DataIDField="Id" AllowSorting="true" SortField="SortIndex"
|
||||||
SortDirection="DESC" OnSort="Grid1_Sort"
|
SortDirection="ASC" OnSort="Grid1_Sort"
|
||||||
AllowPaging="true" IsDatabasePaging="true" PageSize="10" OnPageIndexChange="Grid1_PageIndexChange"
|
AllowPaging="true" IsDatabasePaging="true" PageSize="10" OnPageIndexChange="Grid1_PageIndexChange"
|
||||||
EnableTextSelection="true">
|
EnableTextSelection="true">
|
||||||
<Toolbars>
|
<Toolbars>
|
||||||
|
|
|
@ -30,7 +30,7 @@ namespace FineUIPro.Web.Transfer
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public void BindGrid()
|
public void BindGrid()
|
||||||
{
|
{
|
||||||
string strSql = @"select * from Transfer_ProjectSetup C
|
string strSql = @"select *,isnull(CAST(SN as int),0) as SortIndex from Transfer_ProjectSetup C
|
||||||
where C.ProjectId = @ProjectId";
|
where C.ProjectId = @ProjectId";
|
||||||
List<SqlParameter> listStr = new List<SqlParameter>();
|
List<SqlParameter> listStr = new List<SqlParameter>();
|
||||||
listStr.Add(new SqlParameter("@ProjectId", this.CurrUser.LoginProjectId));
|
listStr.Add(new SqlParameter("@ProjectId", this.CurrUser.LoginProjectId));
|
||||||
|
|
Loading…
Reference in New Issue