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

📄 stock_appropriation_record.jsp

📁 医药供应链管理系统
💻 JSP
字号:
<%@ page language="java" import="java.util.*" pageEncoding="GB2312"%>
<jsp:directive.page import="java.text.SimpleDateFormat"/>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    
    <title>My JSP 'stock_appropriation_record.jsp' starting page</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<link rel="stylesheet" type="text/css" href="../css/sys.css">
<style type="text/css">
<!--
body {
	margin-left: 5px;
	margin-top: 5px;
	margin-right: 5px;
	margin-bottom: 5px;
	background-color: #FFFFFF;
}
a:link {
	color: #1A438E;
	text-decoration: underline;
}
a:visited {
	text-decoration: underline;
}
a:hover {
	text-decoration: none;
	color: #000000;
}
a:active {
	text-decoration: underline;
}
.style1 {	color: #1A438E;
	font-size: 12px;
}
.style2 {	color:#FF0000;
	font-size: 12px;
}
</style>
<script type="text/javascript" language="javascript">
function rnosub(){
	var arno = document.getElementById("all_text").value;
	document.getElementById("stockrecordframe").src = "stock_appropriation_record_frame.jsp?a_r_no="+arno;
}
function pidsub(){
	var someValue = "";
	someValue = window.showModalDialog("../purchasePages/purchase_seletpro.jsp","","dialogWidth=408px;dialogHeight=260px;status=no;help=no;scrollbars=no")
	document.form1.all_text.value = someValue;
	var pname = document.getElementById("all_text").value;
	document.getElementById("stockrecordframe").src = "stock_appropriation_pidrecord_frame.jsp?p_name="+pname;
}
function loadCalendar(obj){//日期选择
	//var rtn = window.open("../utilPages/calendar.jsp","","directorys=no,toolbar=no,status=no,menubar=no,scrollbars=no,resizable=no,width=350,height=170,top=180,left=550");
	var rtn = window.showModalDialog("../utilPages/calendar.jsp","","dialogWidth:350px;dialogHeight:185px;status:no;help:no;scrolling=no;scrollbars=no");
	if(rtn!=null)
		obj.value=rtn;
	return;
}
function subtime(){
	var start = document.getElementById("startdate").value;
	var end = document.getElementById("enddate").value;
	document.getElementById("stockrecordframe").src = "stock_appropriation_timerecord_frame.jsp?starttime="+start+"&endtime="+end;
}
</script>
  </head>
<%
	//日期
	String start_time = "";
	String end_time = "";
	//获得系统时间
	Calendar cal=Calendar.getInstance();
    SimpleDateFormat sdf=new SimpleDateFormat("yyyy-MM-dd");
    String m_time=sdf.format(cal.getTime());
    String nian = m_time.substring(0, 4);
    String yue = m_time.substring(5, 7); 
    String ri = m_time.substring(8, 10);
   	if(yue.equals("01")){
   		String start_nian = String.valueOf(Integer.parseInt(nian) - 1);
   		String start_yue = "12";
   		String start_ri = "01";
   		start_time = start_nian + "-" + start_yue + "-" + start_ri;
   		end_time = m_time;
   	}else if(ri.equals("01")){
   		String start_nian = nian;
   		String start_yue = String.valueOf(Integer.parseInt(yue) - 1);
   		String start_ri = "01";
   		start_time = start_nian + "-" + start_yue + "-" + start_ri;
   		end_time = m_time;
   	}else{
   		String start_nian = nian;
   		String start_yue = yue;
   		String start_ri = "01";
   		start_time = start_nian + "-" + start_yue + "-" + start_ri;
   		end_time = m_time;
   	}
 %>
  <body>
  <form action="" method="post" name="form1" id="form1">
    <table width="100%" border="0" cellpadding="0" cellspacing="2" align="center">
      <tr>
        <td width="95%" height="21" align="right"><table width="100%"  border="0" cellspacing="0" cellpadding="0">
            <tr>
              <td width="31%">&nbsp;</td>
              <td width="69%" align="right"><input type="text" id="all_text" name="all_text" size="20">
                  <input name="button" type="button" class="button" onClick="rnosub()" value="单据编号查询">
              <input name="button2" type="button" class="button" onClick="pidsub()" value="药品名称查询"></td>
            </tr>
            <tr>
              <td>&nbsp;</td>
              <td align="right">开始日期:
                <input name="startdate" id="startdate" readonly value="<%= start_time %>" style="width:100px">
                  <img src="../images/system/date.gif" width="19" height="19" align="absmiddle" style="cursor:pointer;" onClick="loadCalendar(form1.startdate)"> 结束日期:
                <input name="enddate" id="enddate" readonly value="<%= end_time %>" style="width:100px">
                  <img src="../images/system/date.gif" width="19" height="19" align="absmiddle" style="cursor:pointer;" onClick="loadCalendar(form1.enddate)">
                  <input name="button" type="button" class="button" onClick="return subtime()" value=" 查询 "></td>
            </tr>
        </table></td>
      </tr>
    </table>
    <table width="100%" height="100%"  border="0" cellpadding="0" cellspacing="0">
      <tr>
        <td align="left" valign="top"><iframe scrolling='no' width="100%" height="100%" frameborder="0" name="stockrecordframe" id="stockrecordframe" src="stock_appropriation_record_frame.jsp"></iframe></td>
      </tr>
    </table>
  </form>
    
  </body>
</html>

⌨️ 快捷键说明

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