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

📄 productmanagement.aspx

📁 這是一個由CSharp寫成的小型ERP系統
💻 ASPX
📖 第 1 页 / 共 2 页
字号:
                                    </table>
                                </EmptyDataTemplate>
                             
                            </asp:GridView>
                        </td>
                        <td>
                            <div runat="server" id="EditDiv" style="vertical-align: top">
                                <asp:Button ID="ButtonAddNew" runat="server" Text="新增" Style="width: 80px" 
                                    OnClick="ButtonAddNew_Click" meta:resourcekey="ButtonAddNewResource1" />
                                <asp:Button ID="ButtonCancle" runat="server" Text="取消" Style="width: 80px" 
                                    OnClick="ButtonCancle_Click" meta:resourcekey="ButtonCancleResource1" />&nbsp;
                                <table width="230px" style="vertical-align: top">
                                    <tr>
                                        <td align="right">
                                            &nbsp;<asp:Label ID="Label_Edit_Category" runat="server"  
                                                meta:resourcekey="ProductCategory"></asp:Label>
                                        </td>
                                        <td>
                                            <asp:DropDownList ID="DropDownListProductTopType" runat="server" DataSourceID="ObjectDataSource_ProductCategories"
                                                DataTextField="ProductTypeName" DataValueField="ProductTypeCode" 
                                                Width="130px" AutoPostBack="True" 
                                                OnSelectedIndexChanged="DropDownListProductTopType_SelectedIndexChanged" 
                                                meta:resourcekey="DropDownListProductTopTypeResource1">
                                            </asp:DropDownList>&nbsp;
                                        </td>
                                    </tr>
                                    <tr>
                                        <td align="right">
                                            <asp:Label ID="Label_Edit_Type" runat="server" meta:resourcekey="ProductType"></asp:Label>
                                        </td>
                                        <td>
                                            <asp:DropDownList ID="DropDownListProductList" runat="server" DataSourceID="ObjectDataSource_ProductTypes"
                                                DataTextField="ProductTypeName" DataValueField="ProductTypeID" 
                                                Width="130px" AutoPostBack="True" 
                                                OnSelectedIndexChanged="DropDownListProductList_SelectedIndexChanged" 
                                                meta:resourcekey="DropDownListProductListResource1">
                                            </asp:DropDownList>&nbsp;
                                        </td>
                                    </tr>
                                    <tr>
                                        <td align="right">
                                            <asp:Label ID="Label_Edit_Code" runat="server" meta:resourcekey="ProductTypeCode"/> </td>
                                        <td >
                                            <asp:TextBox ID="TextBoxProductTypeCode" runat="server" Width="50px" 
                                                ReadOnly="True" meta:resourcekey="TextBoxProductTypeCodeResource1"/>-<asp:TextBox 
                                                ID="TextBoxProductCode" runat="server" Width="50px" 
                                                meta:resourcekey="TextBoxProductCodeResource1"/>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td align="right">
                                            <asp:Label ID="Label_Edit_Name" runat="server" meta:resourcekey="ProductName"/> </td>
                                        <td>
                                            <asp:TextBox ID="TextBoxProductName" runat="server" Width="120px" 
                                                meta:resourcekey="TextBoxProductNameResource1"></asp:TextBox>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td align="right">
                                             <asp:Label ID="Label_Edit_Module" runat="server" meta:resourcekey="ProductModule"/> </td>
                                        <td>
                                            <asp:TextBox ID="TextBoxProductModule" runat="server" Width="120px" 
                                                meta:resourcekey="TextBoxProductModuleResource1"></asp:TextBox>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td align="right">
                                            <asp:Label ID="Label_Edit_Color" runat="server" meta:resourcekey="ProductColor"/> </td>
                                        <td>
                                            <asp:TextBox ID="TextBoxProductColor" runat="server" Width="120px" 
                                                meta:resourcekey="TextBoxProductColorResource1"></asp:TextBox>
                                        </td>
                                    </tr>

                                    <tr>
                                        <td align="right">
                                           <asp:Label ID="Label_Edit_Price" runat="server" meta:resourcekey="ProductPrice"/> </td>
                                        <td style="width: 109px">
                                            <asp:TextBox ID="TextBoxProductPrice" runat="server" Width="120px" 
                                                meta:resourcekey="TextBoxProductPriceResource1"></asp:TextBox>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td colspan="2">
                                            <asp:Label ID="LabelError" runat="server" ForeColor="Red" 
                                                meta:resourcekey="LabelErrorResource1"></asp:Label>
                                        </td>
                                    </tr>
                                </table>
                                <asp:Button ID="ButtonAdd" runat="server" Text="保存" Style="width: 80px" 
                                    OnClick="ButtonAdd_Click" meta:resourcekey="ButtonAddResource1" />
                                <asp:Button ID="ButtonAddMore" runat="server" Text="保存并继续新增" 
                                    Style="width: 100px" OnClick="ButtonAddMore_Click" 
                                    meta:resourcekey="ButtonAddMoreResource1" />
                                <asp:Button ID="ButtonUpdate" runat="server" Text="保存" Style="width: 80px" 
                                    OnClick="ButtonUpdate_Click" meta:resourcekey="ButtonUpdateResource1" />&nbsp;
                                
                            </div>
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
    </table>

    <asp:HiddenField ID="HiddenFieldProductID" runat="server" />
    
    <asp:ObjectDataSource ID="ObjectDataSource_ProductTypeList" runat="server" 
                                SelectMethod="GetAllProductTypes" TypeName="SystemBL">
                            </asp:ObjectDataSource>
                            
    <asp:ObjectDataSource ID="ObjectDataSource_Products" runat="server" 
        SelectMethod="GetProductsView" TypeName="SystemBL">
        <SelectParameters>
            <asp:ControlParameter ControlID="DrpProductTypeList" DefaultValue="-1" 
                Name="type" PropertyName="SelectedValue" Type="Int32" />
            <asp:Parameter DefaultValue="" Name="orderby"  Type="String" />
        </SelectParameters>
    </asp:ObjectDataSource>
                            
    <asp:ObjectDataSource ID="ObjectDataSource_ProductTypes" runat="server" 
                                SelectMethod="GetProductTypes" TypeName="SystemBL">
          <SelectParameters>
              <asp:ControlParameter ControlID="DropDownListProductTopType" Name="category" PropertyName="SelectedValue"
                Type="String" />
            </SelectParameters>                      
    </asp:ObjectDataSource>    
                            
    <asp:ObjectDataSource ID="ObjectDataSource_ProductCategories" runat="server" 
                                SelectMethod="GetProductCategories" TypeName="SystemBL">
                            </asp:ObjectDataSource>                                                
</asp:Content>

⌨️ 快捷键说明

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