• 大小: 19.91MB
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2023-07-13
  • 语言: C#
  • 标签: C#  数据库  数据管理  

资源简介

本科课程设计自己编写的代码,主要实现的是食堂饭菜点单系统,大致包含用户注册,登陆,密码修改,信息修改,饭菜添加,删除,修改,查询等操作。使用C#语言,VS,sql sever开发。文件中包含数据库的内容。

资源截图

代码片段和文件信息

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace Takeout
{
    public partial class adAddFood : System.Web.UI.Page
    {
        DataCon datacon = new DataCon();
        protected void Page_Load(object sender EventArgs e)
        {

        }

        protected void Button1_Click(object sender EventArgs e)
        {
            Response.Redirect(“adManage.aspx“);
        }

        protected void Button2_Click(object sender EventArgs e)
        {
             try 
            {
                string onon = ison.Text.ToString().Trim();
                if (onon != “是“ && onon != “否“)
                {
                    Response.Write(“ript>alert(‘是否在售请填写“是”或“否”!‘)ript>“);
                }
                else
                { 
                string filename = DateTime.Now.Ticks.ToString() + “.jpg“;
                this.image.SaveAs(this.Server.MapPath(@“\\image\\“ + filename));
                datacon.getcom(“insert into Food(FoodnameFoodinfoFoodPriceFoodpictureIson) values(‘“ + name.Text.ToString() + “‘‘“ + info.Text.ToString() + “‘“ + float.Parse(price.Text.ToString()) + “‘\\image\\“ + filename + “‘‘“ + ison.Text.ToString() + “‘)“);
                Response.Write(“ript language=javascript>alert(‘添加成功!‘);window.location = ‘addAddFood.aspx‘;ript>“);
                 }
             }
             catch (Exception ex)
             {
                 Response.Write(“ript>alert(‘“ + ex.Message + “‘)ript>“);
             }
        }

        protected void ison_TextChanged(object sender EventArgs e)
        {

        }
    }
}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件     145532  2016-10-10 20:56  913106840608唐丽园编程实验\Takeout\packages\Antlr.3.4.1.9004\Antlr.3.4.1.9004.nupkg

     文件     102912  2016-10-10 20:56  913106840608唐丽园编程实验\Takeout\packages\Antlr.3.4.1.9004\lib\Antlr3.Runtime.dll

     文件     431616  2016-10-10 20:56  913106840608唐丽园编程实验\Takeout\packages\Antlr.3.4.1.9004\lib\Antlr3.Runtime.pdb

     文件       7054  2016-10-10 20:56  913106840608唐丽园编程实验\Takeout\packages\AspNet.scriptManager.bootstrap.3.0.0\AspNet.scriptManager.bootstrap.3.0.0.nupkg

     文件       5632  2016-10-10 20:56  913106840608唐丽园编程实验\Takeout\packages\AspNet.scriptManager.bootstrap.3.0.0\lib\net40\AspNet.scriptManager.bootstrap.dll

     文件       6144  2016-10-10 20:56  913106840608唐丽园编程实验\Takeout\packages\AspNet.scriptManager.bootstrap.3.0.0\lib\net45\AspNet.scriptManager.bootstrap.dll

     文件       7057  2016-10-10 20:56  913106840608唐丽园编程实验\Takeout\packages\AspNet.scriptManager.jQuery.1.10.2\AspNet.scriptManager.jQuery.1.10.2.nupkg

     文件       5120  2016-10-10 20:56  913106840608唐丽园编程实验\Takeout\packages\AspNet.scriptManager.jQuery.1.10.2\lib\net40\AspNet.scriptManager.jQuery.dll

     文件       5120  2016-10-10 20:56  913106840608唐丽园编程实验\Takeout\packages\AspNet.scriptManager.jQuery.1.10.2\lib\net45\AspNet.scriptManager.jQuery.dll

     文件     121137  2016-10-10 20:56  913106840608唐丽园编程实验\Takeout\packages\bootstrap.3.0.0\bootstrap.3.0.0.nupkg

     文件     120502  2016-10-10 20:56  913106840608唐丽园编程实验\Takeout\packages\bootstrap.3.0.0\content\Content\bootstrap.css

     文件      97949  2016-10-10 20:56  913106840608唐丽园编程实验\Takeout\packages\bootstrap.3.0.0\content\Content\bootstrap.min.css

     文件      14079  2016-10-10 20:56  913106840608唐丽园编程实验\Takeout\packages\bootstrap.3.0.0\content\fonts\glyphicons-halflings-regular.eot

     文件      63157  2016-10-10 20:56  913106840608唐丽园编程实验\Takeout\packages\bootstrap.3.0.0\content\fonts\glyphicons-halflings-regular.svg

     文件      29512  2016-10-10 20:56  913106840608唐丽园编程实验\Takeout\packages\bootstrap.3.0.0\content\fonts\glyphicons-halflings-regular.ttf

     文件      16448  2016-10-10 20:56  913106840608唐丽园编程实验\Takeout\packages\bootstrap.3.0.0\content\fonts\glyphicons-halflings-regular.woff

     文件      59250  2016-10-10 20:56  913106840608唐丽园编程实验\Takeout\packages\bootstrap.3.0.0\content\scripts\bootstrap.js

     文件      28518  2016-10-10 20:56  913106840608唐丽园编程实验\Takeout\packages\bootstrap.3.0.0\content\scripts\bootstrap.min.js

     文件        209  2016-10-10 20:56  913106840608唐丽园编程实验\Takeout\packages\Entityframework.6.1.1\content\App.config.transform

     文件        209  2016-10-10 20:56  913106840608唐丽园编程实验\Takeout\packages\Entityframework.6.1.1\content\Web.config.transform

     文件    4233603  2016-10-10 20:56  913106840608唐丽园编程实验\Takeout\packages\Entityframework.6.1.1\Entityframework.6.1.1.nupkg

     文件    4965584  2016-10-10 20:56  913106840608唐丽园编程实验\Takeout\packages\Entityframework.6.1.1\lib\net40\Entityframework.dll

     文件     595152  2016-10-10 20:56  913106840608唐丽园编程实验\Takeout\packages\Entityframework.6.1.1\lib\net40\Entityframework.SqlServer.dll

     文件     142488  2016-10-10 20:56  913106840608唐丽园编程实验\Takeout\packages\Entityframework.6.1.1\lib\net40\Entityframework.SqlServer.xml

     文件    3210368  2016-10-10 20:56  913106840608唐丽园编程实验\Takeout\packages\Entityframework.6.1.1\lib\net40\Entityframework.xml

     文件     326352  2016-10-10 20:56  913106840608唐丽园编程实验\Takeout\packages\Entityframework.6.1.1\lib\net40\zh-Hans\Entityframework.resources.dll

     文件      19664  2016-10-10 20:56  913106840608唐丽园编程实验\Takeout\packages\Entityframework.6.1.1\lib\net40\zh-Hans\Entityframework.SqlServer.resources.dll

     文件     117194  2016-10-10 20:56  913106840608唐丽园编程实验\Takeout\packages\Entityframework.6.1.1\lib\net40\zh-Hans\Entityframework.SqlServer.xml

     文件    2521474  2016-10-10 20:56  913106840608唐丽园编程实验\Takeout\packages\Entityframework.6.1.1\lib\net40\zh-Hans\Entityframework.xml

     文件    5185232  2016-10-10 20:56  913106840608唐丽园编程实验\Takeout\packages\Entityframework.6.1.1\lib\net45\Entityframework.dll

............此处省略695个文件信息

评论

共有 条评论