文件操作 - EditQuote.aspx
返回文件管理
返回主菜单
删除本文件
文件: E:\HostingSpaces\kimblycr\crm.kimbly.in\wwwroot\EditQuote.aspx
编辑文件内容
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="EditQuote.aspx.cs" Inherits="BasicCRM.EditQuote" %> <!DOCTYPE html> <html xmlns="http://www.w3.org/1999/xhtml"> <head runat="server"><title>Edit Quote</title> <link rel="icon" href="favicon.ico"/> <link href="css/bootstrap.css" rel="stylesheet" /> <link href="css/jquery-ui.css" rel="stylesheet" /> <script src="js/jquery.min.js"></script> <script src="js/jquery-ui.min.js"></script> <script src="js/bootstrap.min.js"></script> <script src="js/Contacts.js"></script> <script src="js/EditQuote.js"></script> <script src="js/scrollsaver.min.js"></script> <style type="text/css"> .ui-autocomplete ui-menu ui-widget ui-widget-content ui-corner-all {top: 73px;left: 75px;} .ui-autocomplete { z-index: 1051 !important; } .suggest{width: 270px;font-size: small;color: Black;} .leftPnl{float: left;width: 1100px;margin-left: 30px;} .rightPnl{float: right;width: 575px;} </style> </head> <body> <form id="form1" runat="server"> <div class="form-horizontal" style="margin-left: -85px;width: 1358px;"> <div style="float: left;width: 80%;margin-left: 100px;"><h4 style="float:left"> <asp:Label ID="LblQuoteTitle" runat="server" Text="Label"></asp:Label> </h4> <div style="float:right; margin:2px" > </div></div> <div class="container-fluid"> <div class="accordion" id="dvProductDetails" style="margin-left: 60px; width: 1165px;height: 100%;"> <div class="accordion-group" style="border: none;"> <div id="collapseProduct" class="accordion-body in collapse"> <div class="accordion-inner" style="height: auto;"> <div> <div class="row" style="margin-left: 1px;"> <div id="ligCategory" class="form-horizontal"> <asp:Repeater ID="rptCategoryProduct" runat="server" OnItemCommand="rptCategoryProduct_ItemCommand" OnItemDataBound="rptCategoryProduct_ItemDataBound"> <HeaderTemplate></HeaderTemplate> <ItemTemplate> <hr style="width:100%; border:solid 1px lightgray" /> <div class="row" style="margin-left: 0px;"> <div class="span11" style="margin-top: 10px;"> <div class="leftPnl" style="margin-left: 0px;"> <div class="control-group"> <asp:HiddenField ID="hdnAutoID" Value='<%# Eval("AutoID") %>' runat="server" /> <asp:TextBox ID="txtCategory" class="form-control ui-autocomplete-input" Text='<%# Eval("Header") %>' Style="width: 300px;float: left;width: 300px;float: left;border-color: white;font-weight: bolder;font-size: larger;color: forestgreen;" runat="server" onkeypress="SuggestHeader(this)" autocomplete="off" role="textbox" aria-autocomplete="list" aria-haspopup="true"></asp:TextBox> <asp:LinkButton runat="server" ID="btnSaveCategory" CssClass="icon-ok" CommandName="Save" /> <asp:LinkButton runat="server" ID="btnDeleteCategory" CssClass="icon-remove" CommandName="Delete" /> <asp:LinkButton runat="server" ID="BtnUp" CssClass="icon-arrow-up" CommandName="Up" /> <asp:LinkButton runat="server" ID="BtnDown" CssClass="icon-arrow-down" CommandName="Down" /> <asp:Label ID="lblError" runat="server" Visible="false" ForeColor="Red"></asp:Label> <asp:LinkButton runat="server" ID="btnAddProduct" cssClass="btn btn-primary" data-toggle="modal" data-target="#NewFormModal" aria-hidden="true" Text="Add Product" > <span aria-hidden="true" class="glyphicon glyphicon-plus"></span> </asp:LinkButton><br /> </div> </div> </div> </div> <div class="spacer"></div> <div class="row" id="dvProduct" style="margin-left: 0px; margin-top:10px;margin-bottom: 0px;"> <asp:GridView ID="grdProduct" runat="server" BackColor="White" CellPadding="3" CssClass="table" ForeColor="Black" GridLines="None" AutoGenerateColumns="false" Width="1140px" ShowFooter="False" onrowcommand="grdProduct_RowCommand" DataKeyNames="AutoID" ondatabound="grdProduct_DataBound"> <PagerStyle BackColor="#999999" ForeColor="White" HorizontalAlign="Center" /> <SelectedRowStyle BackColor="#000099" Font-Bold="True" ForeColor="White" /> <Columns> <asp:TemplateField HeaderText="Pr Code"> <ItemTemplate> <asp:Label ID="lblAutoID" runat="server" Visible="false" Text='<%#Eval("AutoID") %>'></asp:Label> <asp:HiddenField ID="hdnAutoID" runat="server" Value='<%#Eval("AutoID") %>' /> <asp:HiddenField ID="hdnProductID" runat="server" Value='<%#Eval("ProductID") %>' /> <asp:TextBox ID="txtProductCode" Text='<%#Eval("Product_Code")%>' runat="server" Width="90px" ReadOnly style="border: solid 1px lightgray; border-radius: 4px;padding-left: 4px;"></asp:TextBox> </ItemTemplate> <ItemStyle Width="90px" Height="40px" /> </asp:TemplateField> <asp:TemplateField HeaderText="Description"> <ItemTemplate> <asp:TextBox ID="txtProductDescription" Text='<%# Eval("ProductDescription")%>' runat="server" Width="355px" ReadOnly style="border: solid 1px lightgray;border-radius: 4px;padding-left: 4px;" ></asp:TextBox> </ItemTemplate> <ItemStyle Width="355px" Height="40px" /> </asp:TemplateField> <asp:TemplateField HeaderText="Make"> <ItemTemplate> <asp:TextBox ID="txtMake" Text='<%# Eval("Make")%>' runat="server" Width="110px" ReadOnly style="border: solid 1px lightgray;border-radius: 4px;padding-left: 4px;"></asp:TextBox> </ItemTemplate> <ItemStyle Width="110px" Height="40px" /> </asp:TemplateField> <asp:TemplateField HeaderText="Qty"> <ItemTemplate> <asp:TextBox ID="txtQuantity" Text='<%# Eval("Qty")%>' onchange="UpdateQuantity(this);" onkeypress="return isNumber(event)" runat="server" Width="80px" style="border: solid 1px lightgray;border-radius: 4px;padding-left: 4px;"></asp:TextBox> </ItemTemplate> <ItemStyle Width="80px" Height="40px" /> </asp:TemplateField> <asp:TemplateField HeaderText="LP"> <ItemTemplate> <asp:TextBox ID="txtListPrice" Text='<%# Eval("ListPrice")%>' runat="server" Width="80px" onkeypress="return isNumber(event)" ReadOnly style="border: solid 1px lightgray;border-radius: 4px;padding-left: 4px;"></asp:TextBox> </ItemTemplate> <ItemStyle Width="80px" Height="40px" /> </asp:TemplateField> <asp:TemplateField HeaderText="SP"> <ItemTemplate> <asp:TextBox ID="txtSellingPrice" Text='<%# Eval("SellingPrice")%>' runat="server" onkeypress="return isNumber(event)" onchange="UpdateSP(this);" Width="80px" style="border: solid 1px lightgray;border-radius: 4px;padding-left: 4px;"></asp:TextBox> </ItemTemplate> <ItemStyle Width="80px" Height="40px" /> </asp:TemplateField> <asp:TemplateField HeaderText="Dev"> <ItemTemplate> <asp:TextBox ID="txtDeviation" Text='<%# Eval("AdditionalDiscount")%>' runat="server" onchange="UpdateDeviation(this);" onkeypress="return isNumber(event)" Width="80px" style="border: solid 1px lightgray;border-radius: 4px;padding-left: 4px;"></asp:TextBox> </ItemTemplate> <ItemStyle Width="80px" Height="40px" /> </asp:TemplateField> <asp:TemplateField HeaderText="Dev %"> <ItemTemplate> <asp:TextBox ID="txtDeviationP" Text='<%# Eval("AddDiscPerc")%>' runat="server" onchange="UpdateDeviationPer(this);" onkeypress="return isNumber(event)" Width="80px" style="border: solid 1px lightgray;border-radius: 4px;padding-left: 4px;"></asp:TextBox> </ItemTemplate> <ItemStyle Width="80px" Height="40px" /> </asp:TemplateField> <asp:TemplateField HeaderText="Amt"> <ItemTemplate> <asp:TextBox ID="txtAmount" Text='<%# Eval("Amount")%>' runat="server" Width="80px" ReadOnly style="border: solid 1px lightgray;border-radius: 4px;padding-left: 4px;"></asp:TextBox> </ItemTemplate> <ItemStyle Width="80px" Height="40px" /> </asp:TemplateField> <asp:TemplateField> <ItemTemplate> <asp:LinkButton runat="server" ID="btnDeleteProduct" CssClass="icon-remove" OnClientClick="DeleteProduct(this)" /> </ItemTemplate> </asp:TemplateField> <asp:TemplateField> <ItemTemplate> <asp:LinkButton ButtonType="Button" ID="Up" CommandName="Up" runat="server" CssClass="icon-arrow-up" CommandArgument='<%# Container.DataItemIndex %>' /><br /> </ItemTemplate> <ItemStyle Width="130px" Height="40px" /> </asp:TemplateField> <asp:TemplateField> <ItemTemplate> <asp:LinkButton ButtonType="Button" ID="Down" CommandName="Down" runat="server" CssClass="icon-arrow-down" CommandArgument='<%# Container.DataItemIndex %>' /> </ItemTemplate> <ItemStyle Width="130px" Height="40px" /> </asp:TemplateField> </Columns> </asp:GridView> </div> <div class="row" id="Div3" style="float: right; margin-right: 10px;"> <asp:Label runat="server" ID="lblSubTotal" Text="Total" style="margin-right:10px"></asp:Label> </div> <div class="spacer"></div> <div class="row" id="Div1" style="float: right; margin-right: 60px;"> </div> </ItemTemplate> <FooterTemplate> <div class="spacer"> </div> <div class="row" style="margin-left: 5px;"> <div class="span11"> <div class="leftPnl"> <div class="control-group"> <a href="#" id="btnAddCategory" class="btn btn-success" data-toggle="modal" data-target="#NewCategoryModal"> <i class='icon-plus icon-white'></i> Category</a> </div> </div> </div> </div> </FooterTemplate> </asp:Repeater> <div class="row" id="Div3" style="float: right; margin-right: 60px;"></div> <div class="spacer"> </div> <div class="container-fluid"> <div class="accordion" id="accordion2" style="margin-right: 0px; float: right; width: 500px;"> <div class="accordion-group"> <div class="accordion-heading"> <a class="accordion-toggle" data-toggle="collapse" data-parent="#accordion2" href="#collapseOne"> Summary</a></div> <div id="collapseOne" class="accordion-body"> <div class="accordion-inner"> <div class="form-group" style="margin-left: 0px;"> <label class="col-sm-8 control-label" style="text-align: left;"> Categories Total</label> <div class="col-sm-4"> <label id="lblCategoryTotal1" style="float: right;"> <asp:Label runat="server" ID="lblCategoryTotal" Text="Total"></asp:Label> </label> </div> </div> <div class="form-group" style="margin-left: 0px;"> <label class="col-sm-8 control-label" style="text-align: left;"> Discount</label> <div class="col-sm-4" style="float: right;"> <asp:TextBox runat="server" ID="txtLumpsumDiscount" type="text" value="0" Style="width: 50px;float: right;" onchange="UpdateLumpSumDiscount(this);" CssClass="form-control" /> </div> </div> <div class="form-group" style="margin-left: 0px;"> <label class="col-sm-8 control-label" style="text-align: left;"> After Discount</label> <div class="col-sm-4"> <asp:Label runat="server" ID="lblAfterDiscount" Style="float: right;" Text="0"></asp:Label> </div> </div> <div class="form-group" style="margin-left: 0px;"> <label class="col-sm-8 control-label" style="text-align: left;"> Taxes</label> <div class="col-sm-4"> <asp:TextBox runat="server" ID="txtTaxes" Text="0" Style="width: 50px;float: right;" onchange="UpdateTaxes(this);" CssClass="form-control" ></asp:TextBox> </div> </div> <div class="form-group" style="margin-left: 0px;"> <asp:Label ID="Label1" runat="server" Style="float: left; text-align: left; font-weight:800" CssClass="col-sm-9 control-label" Text="Grand Total"></asp:Label> <div class="col-sm-4" style="width: 120px;"> <asp:Label runat="server" ID="lblGrandTotal" Style="float: right; font-weight:800" Text="0.00"></asp:Label> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> <div class="spacer"></div> <div class="modal fade" id="NewFormModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true"> <div class="modal-dialog"> <div class="modal-content"> <div class="modal-header"> <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button> <asp:Label ID="lblAutoID" runat="server" Visible="false" Text=''></asp:Label> <h4 class="modal-title" id="myModalLabel">Add Item</h4> </div> <div class="modal-body"> <asp:TextBox ID="txtProductCode" runat="server" placeholder="Product Code" onfocus="ShowText(this,event);" onblur="ShowText(this,event);" onkeypress="SuggestProduct(this);" CssClass="form-control"></asp:TextBox> <br /> <asp:TextBox ID="txtPrice" runat="server" placeholder="Price" CssClass="form-control" class="form-control"></asp:TextBox> <br /> <asp:TextBox ID="txtQuantity" runat="server" placeholder="Quantity" Text="1" CssClass="form-control" class="form-control"></asp:TextBox> </div> <div class="modal-footer"> <asp:HiddenField ID="CurrentPrCategory" runat="server" /> <asp:Button runat="server" ID="btnSave" class="btn btn-success" UseSubmitBehavior="false" Text="Save" OnClientClick="SaveItem();return false;" /> </div> </div> </div> </div> <div class="spacer"></div> <div class="modal fade" id="NewCategoryModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true"> <div class="modal-dialog"> <div class="modal-content"> <div class="modal-header"> <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button> <asp:Label ID="Label2" runat="server" Visible="false" Text=''></asp:Label> <h4 class="modal-title" id="H1">Add Category</h4> </div> <div class="modal-body"> <asp:TextBox ID="txtCategoryName" runat="server" placeholder="Category Name" CssClass="form-control" onkeypress="SearchLookup(this,'Master_QuoteHeaders','Header','txtCategoryName')"></asp:TextBox> </div> <div class="modal-footer"> <a href="#" onclick="SaveCategory()" class="btn btn-success" >Save</a> </div> </div> </div> </div> </div> </div> <div> </div> <asp:HiddenField ID="hdnQuoteID" runat="server" /> </div> </form> </body> </html>
修改文件时间
将文件时间修改为当前时间的前一年
删除文件