⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 dispatch.aspx

📁 asp销售管理系统
💻 ASPX
📖 第 1 页 / 共 2 页
字号:
                        <sk:myGridView ID="GridView1" runat="server" AllowPagingToggle="false" AllowPaging="false" AutoGenerateColumns="False"
                            Width=100% DataKeyNames="DeliveryItemsID" ShowFooter=true AllowSorting="False"
                            OnPageIndexChanging="GridView1_PageIndexChanging" OnRowDeleting="GridView1_RowDeleting" 
                            OnRowEditing="GridView1_RowEditing" OnRowCancelingEdit="GridView1_RowCancelingEdit" OnRowUpdating="GridView1_RowUpdating" OnRowDataBound="GridView1_RowDataBound">
                            <Columns>
                                <asp:TemplateField HeaderText="序号">
                                    <ItemTemplate>
                                        <%# (((GridViewRow)Container).DataItemIndex + 1) %>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="物资编号" SortExpression="DeliveryItemsID">
                                    <ItemTemplate>
                                        <asp:Label ID="lblDeliveryItemsID" runat="server" Text='<%# Eval("DeliveryItemsID")%>'></asp:Label>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="物资名称" SortExpression="DeliveryItemsName">
                                    <ItemTemplate>
                                        <%# Eval("DeliveryItemsName")%>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="规格型号" SortExpression="DeliveryItemsSpecification">
                                    <ItemTemplate>
                                        <%# Eval("DeliveryItemsSpecification")%>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="计量单位" SortExpression="DeliveryItemsUnit">
                                    <ItemTemplate>
                                        <%# Eval("DeliveryItemsUnit")%>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="标准单价" SortExpression="DeliveryItemsStandardPrice">
                                    <ItemTemplate>
                                        <%# String.Format("{0:C}",Eval("DeliveryItemsStandardPrice"))%>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="原有库存" SortExpression="DeliveryItemsInventory">
                                    <ItemTemplate>
                                        <%# Eval("DeliveryItemsInventory")%>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="实发数量" SortExpression="DeliveryQuantity">
                                    <ItemTemplate>
                                        <%# Eval("DeliveryQuantity") %>
                                    </ItemTemplate>
                                    <EditItemTemplate>
                                        <asp:TextBox ID="txtDeliveryItemsQuantity" runat="server" Width=40 Text='<%# Bind("DeliveryQuantity") %>'></asp:TextBox>
                                        <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="txtDeliveryItemsQuantity"
                                            ErrorMessage="请输入数量!" ValidationGroup="QuantityValid" Display="Dynamic"></asp:RequiredFieldValidator>
                                        <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ControlToValidate="txtDeliveryItemsQuantity"
                                            Display="Dynamic" ErrorMessage="请输入数字!" ValidationExpression="^\-?[0-9]*\.?[0-9]*$" ValidationGroup="QuantityValid"></asp:RegularExpressionValidator>
                                        <asp:CompareValidator ID="CompareValidator1" runat="server" ErrorMessage="超过库存!" 
                                            ValueToCompare='<%# Eval("DeliveryItemsInventory")%>' ControlToValidate="txtDeliveryItemsQuantity" Operator="LessThanEqual" 
                                            Type=Double ValidationGroup="QuantityValid" Display="Dynamic"></asp:CompareValidator>
                                    </EditItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="实发金额" SortExpression="DeliveryItemsMoney">
                                    <ItemTemplate>
                                        <%# String.Format("{0:C}",Eval("DeliveryItemsMoney"))%>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="剩余库存" SortExpression="DeliveryItemsLeftInventory">
                                    <ItemTemplate>
                                        <%# Eval("DeliveryItemsLeftInventory")%>
                                    </ItemTemplate>
                                </asp:TemplateField>

                                <asp:CommandField ShowEditButton="True" CancelText="取消" 
                                    DeleteText="删除" EditText="编辑" InsertText="插入" NewText="新增" 
                                    SelectText="选取" UpdateText="确认" ValidationGroup="QuantityValid" />
                                <asp:TemplateField>
                                    <ItemTemplate>
                                        <asp:LinkButton ID="LinkButton1" Runat="server" 
                                            OnClientClick="return confirm('确定删除该条记录?');"
                                            CommandName="Delete">删除</asp:LinkButton>
                                    </ItemTemplate>
                                </asp:TemplateField>

                            </Columns>
                        </sk:myGridView>
                    </div>
                    </td></tr>
                    <tr valign=top runat=server id="TrNew" visible=false><td colspan=6>
                    <div class="divGridView">
                        <sk:myGridView ID="GridView2" runat="server" AllowPagingToggle="false" AutoGenerateColumns="False" DataKeyNames="ItemID"
                            Width=100% OnRowDataBound="GridView2_RowDataBound" OnSelectedIndexChanged="GridView2_SelectedIndexChanged" 
                            OnPageIndexChanging="GridView2_PageIndexChanging" AllowPaging="False" AllowSorting="False">
                        <Columns>
                            <asp:CommandField ShowSelectButton="True" SelectText="发料" />
                            <asp:BoundField DataField="ItemID" HeaderText="物资编号" SortExpression="ItemID"></asp:BoundField>
                            <asp:BoundField DataField="Name" HeaderText="物资名称" SortExpression="Name"></asp:BoundField>
                            <asp:BoundField DataField="Specification" HeaderText="规格型号" SortExpression="Specification"></asp:BoundField>
                            <asp:BoundField DataField="Unit" HeaderText="计量单位" SortExpression="Unit"></asp:BoundField>
                            <asp:BoundField DataField="StandardPrice" HeaderText="单价" SortExpression="StandardPrice"></asp:BoundField>
                            <asp:BoundField DataField="Quantity" HeaderText="现有库存" SortExpression="Quantity"></asp:BoundField>
                        </Columns>
                        </sk:myGridView>
                    </div>
                    </td>
                    </tr>
                    <tr><td colspan=3 align=right>              
                        <asp:LinkButton ID="InsertButton" runat="server" CausesValidation="True" CommandName="Insert"
                            Text="保存" Enabled=false>
                        </asp:LinkButton>
                        </td>
                        <td></td>
                        <td colspan=2 align=left>
                        <asp:LinkButton ID="InsertCancelButton" runat="server" CausesValidation="False" Text="取消" OnClick="InsertCancelButton_Click">
                        </asp:LinkButton>
                        </td></tr>
                    </table>
                </InsertItemTemplate>
            </asp:FormView>
        </asp:View>
        <asp:View ID="View2" runat="server">
            <iframe name="content" id="content" src=dispatchHisMain.aspx width=100% 
				    height=280pt frameborder=0 marginheight="0" marginwidth="0" ></iframe>
            <iframe name="detail" id="detail" src=dispatchHisDetail.aspx width=100% 
				    height=250pt frameborder=0 marginheight="0" marginwidth="0" ></iframe>
        </asp:View>
    </asp:MultiView>
</asp:Content>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -