基于javaweb+SSH校园二手交易平台

基于javaweb+SSH校园二手交易平台,第1张

基于javaweb+SSH校园二手交易平台

开发工具:eclipse/idea/myeclipse/sts等均可配置运行

适用

课程设计,大作业,毕业设计,项目练习,学习演示等

    	int outnum = 0;
    	ArrayList<Kcrecord> inlist = (ArrayList<Kcrecord>)getHibernateTemplate().find(" from Kcrecord where  type='in' and gid='"+goodid+"' ");
    	ArrayList<Kcrecord> outlist = (ArrayList<Kcrecord>)getHibernateTemplate().find(" from Kcrecord where  type='out' and gid='"+goodid+"' ");
    	if(inlist.size()>0){
    		for(Kcrecord inmap:inlist){
    			innum += Integer.parseInt(inmap.getHappennum());//总入库量
    		}
    	}
    	if(outlist.size()>0){
    		for(Kcrecord outmap:outlist){
    			outnum += Integer.parseInt(outmap.getHappennum());//总出库量
    		}
    	}
    	znum = innum - outnum;//库存量
    	return znum;
	}
	


	public static CommonDAO getFromApplicationContext(ApplicationContext ctx) {
		return (CommonDAO) ctx.getBean("CommonDAO");
	}
}
<%@ page language="java" contentType="text/html; charset=utf-8" import="java.util.*"
    pageEncoding="utf-8"%><%!

    <div class="span4">
      <p>
        <a class="btn" href="#"><i class="icon-refresh">i> Refresha>
        <a class="btn btn-success" href="#"><i class="icon-shopping-cart icon-large">i> Checkouta>
        <a class="btn btn-danger" href="#"><i class="icon-trash icon-large">i> Deletea>
      p>
      <p>
        <a class="btn btn-large btn-primary" href="#"><i class="icon-comment">i> Commenta>
        <a class="btn btn-small" href="#"><i class="icon-cog">i> Settingsa>
        <a class="btn btn-small btn-info" href="#"><i class="icon-info-sign">i> More Infoa>
      p>
      <div class="well" style="padding: 8px 0;">
        <ul class="nav nav-list">
          <li class="active"><a href="#"><i class="icon-home">i> Homea>li>
          <li><a href="#"><i class="icon-book">i> Librarya>li>
          <li><a href="#"><i class="icon-pencil">i> Applicationsa>li>
          <li><a href="#"><i class="icon-cogs">i> Settingsa>li>
        ul>
   			demoDataMap.put(d25.id, d25);
   			DemoObj d26 = new DemoObj();
   			d26.id="32"; d26.pId="5"; d26.code="110800"; d26.name="进口押汇"; d26.state="0";
   			demoDataMap.put(d26.id, d26);
   			DemoObj d27 = new DemoObj();
   			d27.id="139"; d27.pId="32"; d27.code="110801"; d27.name="进口信用证押汇"; d27.state="0";
   			demoDataMap.put(d27.id, d27);
   			DemoObj d28 = new DemoObj();
   			d28.id="140"; d28.pId="32"; d28.code="110803"; d28.name="进口代收押汇"; d28.state="0";
   			demoDataMap.put(d28.id, d28);
   			DemoObj d29 = new DemoObj();
   			d29.id="141"; d29.pId="32"; d29.code="110804"; d29.name="汇出汇款押汇"; d29.state="0";
   			demoDataMap.put(d29.id, d29);
   			DemoObj d30 = new DemoObj();
   			d30.id="33"; d30.pId="5"; d30.code="110900"; d30.name="出口押汇"; d30.state="0";
   			demoDataMap.put(d30.id, d30);
   			DemoObj d31 = new DemoObj();
   			d31.id="142"; d31.pId="33"; d31.code="110901"; d31.name="出口信用证合格押汇"; d31.state="0";
            <li><a href="#"><i class="icon-pencil">i> Edita>li>
            <li><a href="#"><i class="icon-trash">i> Deletea>li>
            <li><a href="#"><i class="icon-ban-circle">i> Bana>li>
            <li class="divider">li>
            <li><a href="#"><i class="i">i> Make admina>li>
          ul>
        div>
      div>
      <form>
        <div class="control-group">
          <div class="controls">
            <div class="input-prepend">
              <span class="add-on"><i class="icon-envelope">i>span>
              <input class="span2" id="inputIcon" type="text" placeholder="Email address">
            div>
          div>
							<input type="text" class="form-control">
							<button type="submit" class="btn btn-default" aria-label="Left Align">
								Search
							button>
						form>
					div>	
				div>
				<div class="header-right login">
					<a href="#"><span class="glyphicon glyphicon-user" aria-hidden="true">span>a>
					<div id="loginBox">                
						<form id="loginForm">
							<fieldset id="body">
								<fieldset>
									<label for="email">Email Addresslabel>
          div>
        div>
      div>
    div>
  div>
script>

<script src="assets/js/jquery-1.7.1.min.js">script>
<script src="assets/js/underscore.min.js">script>
<script src="assets/js/backbone.min.js">script>
<script src="assets/js/prettify.min.js">script>
<script src="assets/js/tw-bs-201/bootstrap-transition.js">script>
<script src="assets/js/tw-bs-201/bootstrap-alert.js">script>
<script src="assets/js/tw-bs-201/bootstrap-modal.js">script>
							<option value="">请选择大类option>
					    		<%
					    		ArrayList<Protype> fprotypelist = (ArrayList<Protype>)dao.findByHql("from Protype where delstatus='0' and fatherid='0'"); 
					    		for(Protype fprotype:fprotypelist){%>
					    		

	public void setSavetime(String savetime) {
		this.savetime = savetime;
	}

	public String getSuc() {
		return suc;
	}

	public void setSuc(String suc) {
		this.suc = suc;
	}

	public String getNo() {
		return no;
	}

	public void setNo(String no) {
		this.no = no;
	}

	public int getIndex() {
		return index;
	}

	public void setIndex(int index) {
		this.index = index;
    	
    	public List<DemoObj> getDataByPId(String pId) {
    		if (pId!=null && demoDataMap.containsKey(pId)) {
    			return demoDataMap.get(pId).nodes;
    		} else {
    			return demoDataList;
    		}
    	}
    	public DemoData () {
   			demoDataList = new ArrayList<DemoObj>();
   			demoDataMap = new HashMap<String, DemoObj>();
   			DemoObj d0 = new DemoObj();
   			d0.id="0"; d0.pId="-1"; d0.code="0"; d0.name="所有社团"; d0.state="1";
   			demoDataMap.put(d0.id, d0);
   			DemoObj d1 = new DemoObj();
   			d1.id="1"; d1.pId="0"; d1.code="100000"; d1.name="对公业务"; d1.state="0";
   			demoDataMap.put(d1.id, d1);
   			DemoObj d2 = new DemoObj();
   			d2.id="5"; d2.pId="1"; d2.code="110000"; d2.name="对公贷款"; d2.state="0";
   			demoDataMap.put(d2.id, d2);
   			DemoObj d3 = new DemoObj();
   			d3.id="27"; d3.pId="5"; d3.code="110100"; d3.name="对公流动资金贷款"; d3.state="0";
   			demoDataMap.put(d3.id, d3);
   			DemoObj d4 = new DemoObj();
   			d4.id="119"; d4.pId="27"; d4.code="110101"; d4.name="流动资金贷款"; d4.state="0";
   			demoDataMap.put(d4.id, d4);
   			DemoObj d5 = new DemoObj();
						<li><a href="#">Work Herea>li>
						<li><a href="#">Teama>li>
						<li><a href="#">Happeningsa>li>
						<li><a href="#">Dealer Locatora>li>
					ul>
				div>
				<div class="col-md-2 footer-grid">
					<h4>serviceh4>
					<ul>
						<li><a href="#">Supporta>li>
						<li><a href="#">FAQa>li>
						<li><a href="#">Warrantya>li>
						<li><a href="contact.html">Contact Usa>li>
					ul>
				div>
				<div class="col-md-3 footer-grid">
					<h4>order & returnsh4>
					<ul>

运行环境

Java≥8、Tomcat≥7.0、MySQL≥5.7

开发工具

eclipse/idea/myeclipse/sts等均可配置运行

技术框架

JSP JavaScript jquery bootstrap Spring Struts2 Hibernate

适用

课程设计,大作业,毕业设计,项目练习,学习演示等

功能说明

后台管理员:管理各种信息

用户:购买和发布商品,留言,求购等

前台

后台


欢迎分享,转载请注明来源:内存溢出

原文地址: http://outofmemory.cn/langs/790210.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-05-05
下一篇 2022-05-05

发表评论

登录后才能评论

评论列表(0条)

保存