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

📄 mview.asp

📁 一个比较完整的企业erp系统
💻 ASP
📖 第 1 页 / 共 2 页
字号:
<%@language="vbscript" codepage="936"%>
<%response.buffer = true
Response.Expires = -1
Response.ExpiresAbsolute = Now() - 1
Response.cachecontrol = "no-cache"
%>
<%Public HOME_PATH:HOME_PATH = "../"%>
<!--#include file="../db.asp"-->
<!--#include file="../inc/function.asp"-->
<%
  if isLogin = false then
     Response.Write viewinfo("LoginC","","")
	 Response.end
  end if
stockid = isNumber(trim(Request("stockid")),"int",0)
Set c01 = new CL01
SQL = "Select * from stock where stockid = " & stockid & ""
    c01.mArray
	AboutCount = SelectZD("select Count(stockid) from stock where isstockid = " & Misstockid & "",0)
SQL = "select * from supplier Where uid = " & Msupplierid & ""
    c01.Supplierinfo
%>
<%Public title:title = "修改商品:" & MCode & "-" & McName %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title><%=title%></title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<meta name="Generator" content="EditPlus">
<meta name="Author" content="">
<meta name="Keywords" content="">
<meta name="Description" content="">
<link href="<%=HOME_PATH%>css/style01.css" rel="stylesheet" type="text/css">
<style>
html{min-width: 776px;}
fieldset {padding:3px;}
.tempA { border-top:1px solid #848284;border-left:1px solid #848284;border-bottom:1px #ffffff solid;border-right:1px solid #ffffff;background-color: transparent;}
</style>
<script type = 'text/javascript' src = '<%=HOME_PATH%>js/layer00.js'></script>
<script type = 'text/javascript' src = '<%=HOME_PATH%>js/dateselect.js'></script>
<script type = 'text/javascript'>
<!--//
var a = null ;
function newm() {
    a = window.showModalDialog('<%=HOME_PATH%>supplier/selectsupplierlist.asp?identifyCode=1','','dialogWidth:750px;dialogHeight:400px;scroll:yes;help:no;status:no;center:yes;edge:raised;');
   if (a!=null) {
       document.form.supplierCode.value = a[0];
       document.form.supplierid.value = a[1];
       document.form.supplierName.value = a[2];
       document.form.Linkman.value = a[3] + " " + a[4];
	 }
 }

  function price() {
   var inprice_ = form.inprice.value ;
   var inhow_ = form.inhow.value ;
   var amount_ = form.amount.value ;
   var inpayment_ = form.inpayment.value;
   form.amount.value = '总¥'+ inprice_ * inhow_ ;
   form.nopayment.value = '欠¥'+ (inprice_ * inhow_ - inpayment_) ;
   }
rv = Array("returnValue","parent.right") ;
window.returnValue = rv[1] ;
//-->
</script>
<base target="_self">

</head>
<body style = 'border-style:none;margin:0px;background-color:buttonface;'>

<div style = 'text-align:center;'>
<fieldset style = 'width:380px;padding:8px;'><legend>商品详细信息 - (进货编号:<%=MstockNum%> - <%=v1v2(AboutCount,"1","单记录","多记录[" & AboutCount & "]")%>)</legend>
<table border = '0' style = 'width:100%;' cellspacing = '0' cellpadding = '2'>

 <form method='post' action="<%=THF%>" name = 'form' >
 <input name = 'Options' type = 'hidden' value = 'Update'/>
 <tr>
	 <td style = 'text-align:right;width:60px;'>代码</td>
	 <td style = 'text-align:left;width:auto;'><input type = 'text' name = 'Code' style = 'width:110px;' value = '<%=c01.HtmlF(MCode)%>'/> 入库日期 <input type = 'text' name ='thisDate' <%=v1v2(AboutCount,"1"," onfocus=""setday(this)"" "," readOnly = 'true' ")%> style = 'width:116px;' maxlength="10" value = '<%=MthisDate%>' readonly/></td>
 </tr>
 <tr>
	 <td style = 'text-align:right;'>名称</td>
	 <td style = 'text-align:left;width:auto;'><input type = 'text' name = 'cName' style = 'width:110px;' value = '<%=c01.HtmlF(McName)%>' onKeyup = "javascript:if(form.cName.value!=form.cName_.value) {form.repetition.checked=true;}else{form.repetition.checked=false;}"/><input type = 'hidden' name = 'cName_' value = '<%=c01.HtmlF(McName)%>'/> 型  号 <input type = 'text' name = 'model' value = '<%=c01.HtmlF(Mmodel)%>' style = 'width:116px;'/></td>
 </tr>
 <tr>

	 <td style = 'text-align:right;'>英文名称</td>
	 <td style = 'text-align:left;width:auto;'><input type = 'text' name = 'eName' style = 'width:100%;' value = '<%=c01.HtmlF(MeName)%>'/></td>
 </tr>
 <tr>

	 <td style = 'text-align:right;'>英文描述</td>
	 <td style = 'text-align:left;width:auto;'><textarea name="eRemark" style = 'width:100%;height:40px;overflow-x:hidden;overflow-y:auto;'><%=c01.HtmlF(MeRemark)%></textarea></td>
 </tr>
 <tr>

	 <td style = 'text-align:right;'>型号条码</td>
	 <td style = 'text-align:left;width:auto;'><input type = 'text' name = 'typeCode' style = 'width:100%;' value = '<%=c01.HtmlF(MtypeCode)%>'/></td>
 </tr>
 <tr>

	 <td style = 'text-align:right;'>商品种类</td>
	 <%SQL = "Select * from mtype where mTypeSelect = 0 Order by mtypeArray desc , mtypeid desc"%>
	 <td style = 'text-align:left;width:auto;'><%=mtypeSub(SQL,Mmtypeid,"auto","mTypeSelect",mTypeALL)%>
	 
	 <input type = 'checkbox' name = 'Quality_' style = 'border-style:none;' onclick = "javascript:if(!form.Quality_.checked){Quality.style.display='none';}else{Quality.style.display='';}"/>
	 <span id = 'Quality' style = 'display:none;'>性质:<input type = 'text' name = 'Quality' style = 'width:60px;' /></span>
	 </td>
 </tr>
 <tr>

	 <td style = 'text-align:right;'>所属商家</td>
	 <%SQL = "select * from usertype where uTypeSelect = 0 order by uTypeArray desc, utypeid desc"%>
	 <td style = 'text-align:left;width:auto;'>
	   <table style = 'width:100%;' cellspacing = '0' cellpadding = '0'>
	     <tr>
		   <td style = 'width:80px;'><input type = 'text' name =  'supplierCode' style = 'width:50px;border-right-style:none;' value = '<%=c01.HtmlF(USCode)%>' readonly/><input type = 'button' name = 'opensupplier' value = '…' style = 'width:20px;border-left-style:none;' onclick = "javascript:newm();" <%=v1v2(AboutCount,"1",""," disabled = 'true' ")%>/></td>
		   <td style = 'width:auto;'><input type = 'hidden' name = 'supplierid' value = '<%=Msupplierid%>' readonly/><input type = 'text' name = 'Linkman' style = 'width:100%;' class = 'tempA' value = '<%=c01.HtmlF(USLinkman & " " & USLinkPhone)%>' readonly/></td>
		 </tr>
	  </table></td>
  </tr>
  <tr>
    <td></td>
	<td>
	 <input type = 'text' name = 'supplierName' style = 'width:100%;' class = 'tempA' value = '<%=c01.HtmlF(USFullName)%>' readonly/></td>
 </tr>
 <tr>

	 <td style = 'text-align:right;'>进 价</td>
	 <td style = 'text-align:left;width:auto;'>
	  <table style = 'width:100%;' cellspacing = '0' cellpadding = '0'>
	   <tr><input type = 'hidden' name = 'oldinprice' value = '<%=Minprice%>'/>
		<td style = 'width:120px;'><input type = 'text' name = 'inprice' style = 'width:100%;' value = '<%=v1v2(AdminSelFlag("SeeinPrice",","),true,Minprice,"^_^")%>' onkeyup = "javascript:price();"/></td>
		<td style = 'width:65px; text-align:right;'>销 价&nbsp;</td>
		<td style = 'width:120px;'><input type = 'text' name = 'outprice' style = 'width:100%;' value = '<%=Moutprice%>'/></td>
	   </tr>
	  </table></td>


 </tr>

 <tr>

	 <td style = 'text-align:right;'>进货数量</td>
	 <td style = 'text-align:left;width:auto;'>
	  <table style = 'width:100%;' cellspacing = '0' cellpadding = '0'>
	   <tr><input type = 'hidden' name = 'oldinhow' style = 'width:40%;' value = '<%=Minhow%>'/>
		<td style = 'width:120px;'><input type = 'text' name = 'inhow' style = 'width:40%;' value = '<%=Minhow%>' onkeyup = "javascript:price();"/><input id = 'amount' name = 'amount' style = 'border-style:none;width:58%;background-color: transparent;' onmouseover = "javascript:price();" value = '总¥<%=v1v2(AdminSelFlag("SeeinPrice",","),true,Minprice*Minhow,"^_^")%>'/></td>
		<td style = 'width:65px; text-align:right;'>已付商家&nbsp;</td>
		<td style = 'width:120px;'><input type = 'text' name = 'inpayment' style = 'width:40%;' value = '<%=Minpayment%>' <%=v1v2(AboutCount,"1"," onkeyup = ""javascript:price();"" "," readOnly = 'true' style='background-color:#cccccc;' ")%>/><input id = 'nopayment' name = 'nopayment' style = 'border-style:none;width:58%;background-color: transparent;' onmouseover = "javascript:price();" value = '欠¥<%=v1v2(AdminSelFlag("SeeinPrice",","),true,Minprice*Minhow-Minpayment,"^_^")%>'/></td>
	   </tr>
	  </table></td>


 </tr>



 <tr>

	 <td style = 'text-align:right;'>库存上限</td>
	 <td style = 'text-align:left;width:auto;'>
	  <table style = 'width:100%;' cellspacing = '0' cellpadding = '0'>
	   <tr>
		<td style = 'width:120px;'><input type = 'text' name = 'stockMax' style = 'width:100%;' value = '<%=MstockMax%>'/></td>
		<td style = 'width:65px; text-align:right;'>库存下限&nbsp;</td>

⌨️ 快捷键说明

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