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

📄 stocklist.aspx

📁 CRM系统源码
💻 ASPX
📖 第 1 页 / 共 2 页
字号:
<%@ Page Language="C#" AutoEventWireup="true" EnableEventValidation="false" CodeBehind="StockList.aspx.cs" Inherits="CRM.WEB.Setting.adstock.StockList" %>
<%@ Register Assembly="PowerEasy.Controls" Namespace="PowerEasy.Controls" TagPrefix="cc1" %>
<%@ Register Assembly="ZLTextBox" Namespace="BaseText" TagPrefix="cc2" %>
<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
    <title>编辑明细</title>
<link href="../../Css/Common.css" type="text/css" rel="stylesheet" />
<link href="../../Css/TabPage.css" rel="stylesheet" type="text/css" />
    <style type="text/css">
    .discountUI {
	BORDER-RIGHT: #cccccc 3px solid; PADDING-RIGHT: 5px; BORDER-TOP: #cccccc 3px solid; DISPLAY: none; PADDING-LEFT: 5px; PADDING-BOTTOM: 5px; BORDER-LEFT: #cccccc 3px solid; WIDTH: 250px; PADDING-TOP: 5px; BORDER-BOTTOM: #cccccc 3px solid; POSITION: absolute; BACKGROUND-COLOR: #ffffff
     } 
    </style>
    <script language="javascript" type="text/javascript">
    <!--
     function MyFun(index)
     { 
      var obj=document.getElementById("EgvStockItem").rows[index].cells[2].getElementsByTagName("INPUT")[0].value;          
      var objj=document.getElementById("EgvStockItem").rows[index].cells[3].getElementsByTagName("INPUT")[0].value;        
      document.getElementById("EgvStockItem").rows[index].cells[5].getElementsByTagName("INPUT")[0].value=obj*objj;  
      var TypeGridView =document.getElementById("EgvStockItem");  
      var totalsum=0;
      for(i = 1;i < TypeGridView.rows.length; i++) 
       {         
          totalsum=totalsum+parseFloat(document.getElementById("EgvStockItem").rows[i].cells[5].getElementsByTagName("INPUT")[0].value);        
       } 
      document.getElementById("lblallSum").innerText=totalsum;  
      document.getElementById("hd").value=totalsum; 
     }
     function AddProduct()
      {
          window.open("../UserControls/ShowPicker.aspx","ProductPicker","width=700,height=450,resizable=0,scrollbars=yes");
      }    
     function AddParts()
      {
          window.open("../UserControls/SearchParts.aspx","PartsPicker","width=700,height=450,resizable=0,scrollbars=yes");
      }      
      function DoProductPickerPostBack(arrProductList)
      {
        __doPostBack('AddProductButton',arrProductList);
      }
      function DoPartsPickerPostBack(arrProductList)
      {
        __doPostBack('AddPartsButton',arrProductList);
      }
      function CheckLength(obj)
      {
          if(obj.value.length > 200)
          {
              obj.value = obj.value.substr(0,200);
          }
      }
      function calcSHTax()
      {
        var totalsum=eval(document.getElementById("lblallSum").innerText);
        sh_amount = eval(totalsum*eval(document.getElementById("shipping_handling_charge").value)/100);           
        document.getElementById("lblallSum").innerText=totalsum+sh_amount;
        document.getElementById("hd").value=totalsum+sh_amount;
      }
function setDiscount(currObj,curr_row)
{
	var discount_checks = new Array();
    var allsum=0;
    	  var TypeGridView =document.getElementById("EgvStockItem");  
      var totalsum=0;
      for(i = 1;i < TypeGridView.rows.length; i++) 
       {         
          totalsum=totalsum+parseFloat(document.getElementById("EgvStockItem").rows[i].cells[5].getElementsByTagName("INPUT")[0].value);        
       }
	discount_checks = document.getElementsByName("discount"+curr_row);

	if(discount_checks[0].checked == true)
	{
		document.getElementById("discount_type"+curr_row).value = 'zero';
		document.getElementById("discount_percentage"+curr_row).style.visibility = 'hidden';
		document.getElementById("discount_amount"+curr_row).style.visibility = 'hidden';
		document.getElementById("discountTotal"+curr_row).innerHTML = 0.00;
		document.getElementById("lblallSum").innerText=totalsum;
		document.getElementById("hd").innerText=totalsum;
	}
	if(discount_checks[1].checked == true)
	{
		document.getElementById("discount_type"+curr_row).value = 'percentage';
		document.getElementById("discount_percentage"+curr_row).style.visibility = 'visible';
		document.getElementById("discount_amount"+curr_row).style.visibility = 'hidden';
		var discount_amount = 0.00;		
		if(curr_row == '_final')
		{  
		 discount_amount=eval(totalsum)*eval(document.getElementById("discount_percentage"+curr_row).value)/eval(100);
		}
		document.getElementById("discountTotal"+curr_row).innerHTML = discount_amount;
		allsum=totalsum-discount_amount;
		document.getElementById("lblallSum").innerText=allsum; 
		document.getElementById("hd").value=allsum; 
	}
	if(discount_checks[2].checked == true)
	{
		document.getElementById("discount_type"+curr_row).value = 'amount';
		document.getElementById("discount_percentage"+curr_row).style.visibility = 'hidden';
		document.getElementById("discount_amount"+curr_row).style.visibility = 'visible';
		document.getElementById("discountTotal"+curr_row).innerHTML = document.getElementById("discount_amount"+curr_row).value;
		allsum=totalsum-eval(document.getElementById("discountTotal"+curr_row).innerHTML);
		document.getElementById("lblallSum").innerText=allsum; 
        document.getElementById("hd").value=allsum; 
	}     
} 
 function displayCoords(currObj,obj,mode,curr_row) 
{
	//Set the Header value for Discount
	if(mode == 'discount')
	{
		//document.getElementById("discount_div_title"+curr_row).innerHTML = '<b>设置折扣 : '+document.getElementById("productTotal"+curr_row).innerHTML+'</b>';
		document.getElementById("discount_div_title"+curr_row).innerHTML = '<b>设置折扣</b>';
	}
	else if(mode == 'tax')
	{
		//document.getElementById("tax_div_title"+curr_row).innerHTML = "<b>设置税额 : "+document.getElementById("totalAfterDiscount"+curr_row).innerHTML+'</b>';
		document.getElementById("tax_div_title"+curr_row).innerHTML = '<b>设置税额</b>';
	}
	else if(mode == 'discount_final')
	{
		//document.getElementById("discount_div_title_final").innerHTML = '<b>设置折扣 : '+document.getElementById("netTotal").innerHTML+'</b>';
		document.getElementById("discount_div_title_final").innerHTML = '<b>设置折扣</b>';
	}	
	document.getElementById(obj).style.display = "block";

}  
	function doNothing(){
	}
	
	function fnHidePopDiv(obj){
		document.getElementById(obj).style.display = 'none';
	}
	
	  function ShowTabs(ID){
       for (i=0;i< 5;i++){
            if(i == ID){
                document.getElementById("TabTitle" + i).className="titlemouseover";
                document.getElementById("Tabs" + i).style.display="";
            }
            else{
                document.getElementById("TabTitle" + i).className="tabtitle";
                document.getElementById("Tabs" + i).style.display="none";
            }
       }
    } 
	
    //-->
    </script>
<script language="javascript" src="../../Scripts/tooltips.js" type="text/javascript"></script>
</head>
<body id="MasterPagebody">
    <form id="form1" runat="server">
 <asp:SiteMapPath ID="smp" runat="server" RootNodeStyle-Font-Names="Verdana" RootNodeStyle-ForeColor="Orange" PathSeparator=" >> ">
      <RootNodeStyle Font-Names="Verdana" ForeColor="Orange" />
  </asp:SiteMapPath> 
        <br />
        <br />
 <table border="0" cellpadding="0" cellspacing="0" width="100%">
    <tr align="center">
        <td id="TabTitle0"  class="titlemouseover">
        编辑明细</td>
        <td>
            &nbsp;
        </td>
    </tr>
</table> 
 <table width="100%" border="0" cellpadding="5" cellspacing="1" class="border">
        <tr class="tdbg">
            <td style="height: 100px;" valign="top">
            <table border="0" cellpadding="0" cellspacing="0" width="100%">
                <tr>
                    <td align="right"><asp:Button ID="btnSave" runat="server" Text="保  存" OnClick="btnSave_Click" CssClass="button" />
                        <INPUT id="btnReset" class="button" type="reset" value="重 添" />&nbsp;&nbsp;</td>
                </tr>
            </table>
            <table border="0" cellpadding="5" cellspacing="1" class="border" width="100%">
                <tr class="tdbg">
                    <td class="tdbgleft" style="width: 20%; text-align: right">
                        采购主题:</td>
                    <td colspan="3">
                        <asp:TextBox ID="txttitle" runat="server" Width="249px"></asp:TextBox></td>
                </tr>
                <tr class="tdbg">
                    <td class="tdbgleft" style="width: 20%; text-align: right">
                        供应商:</td>
                    <td colspan="3">
                        <asp:TextBox ID="txtSupper" runat="server" Width="249px"></asp:TextBox><a onclick="window.open('../UserControls/SearchProvide.aspx?OpenerText=<%=txtSupper.ClientID%>&HiddenText=<%=hd1.ClientID%>','ProducerList' ,'width=600,height=450,top=40, left=200,toolbar=0, menubar=0, scrollbars=auto, resizable=1, location=0, status=0');">
                            <img src="../../../Images/search.JPG" /></a>
                    </td>
                </tr>
                <tr class="tdbg">
                    <td class="tdbgleft" style="width: 20%; text-align: right">
                        采购编号:</td>
                    <td colspan="3">
                        <asp:TextBox ID="txtCGNo" runat="server" ReadOnly="True" Width="200px"></asp:TextBox></td>
                </tr>
                <tr class="tdbg">
                    <td class="tdbgleft" style="width: 20%; text-align: right">
                        对方代表:</td>

⌨️ 快捷键说明

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