11
This commit is contained in:
@@ -46,6 +46,8 @@
|
||||
HeaderText="仓库位置" HeaderTextAlign="Center" TextAlign="Left" SortField="StorePosition"
|
||||
ExpandUnusedSpace="true">
|
||||
</f:RenderField>
|
||||
<f:RenderCheckField Width="80px" ColumnID="IsUse" DataField="IsUse" HeaderText="是否启用">
|
||||
</f:RenderCheckField>
|
||||
</Columns>
|
||||
<Listeners>
|
||||
<f:Listener Event="rowselect" Handler="onGridRowSelect" />
|
||||
@@ -82,6 +84,7 @@
|
||||
<f:TextBox ID="txtStorePosition" Label="仓库位置" runat="server"
|
||||
LabelAlign="right" MaxLength="50">
|
||||
</f:TextBox>
|
||||
<f:CheckBox ID="cbIsUse" Label="是否启用" runat="server" LabelAlign="right"/>
|
||||
</Items>
|
||||
<Toolbars>
|
||||
<f:Toolbar ID="Toolbar1" Position="Top" runat="server">
|
||||
@@ -136,6 +139,7 @@
|
||||
var txtUnitStoreCodeClientID = '<%= txtUnitStoreCode.ClientID %>';
|
||||
var txtUnitStoreNameClientID = '<%= txtUnitStoreName.ClientID %>';
|
||||
var txtStorePositionClientID = '<%= txtStorePosition.ClientID %>';
|
||||
var cbIsUseClientID = '<%= cbIsUse.ClientID %>';
|
||||
|
||||
function onGridRowSelect(event, rowId) {
|
||||
var grid = F(gridClientID);
|
||||
@@ -152,6 +156,7 @@
|
||||
F(txtUnitStoreCodeClientID).setValue(rowValue['UnitStoreCode']);
|
||||
F(txtUnitStoreNameClientID).setValue(rowValue['UnitStoreName']);
|
||||
F(txtStorePositionClientID).setValue(rowValue['tStorePosition']);
|
||||
F(cbIsUseClientID).setValue(rowValue['cbIsUse']);
|
||||
|
||||
// 更新提交按钮文本
|
||||
F(btnSaveClientID).setText('提交数据(编辑)');
|
||||
|
||||
Reference in New Issue
Block a user