ck/ck_result.aspx.cs
(开头部分) 3KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;
using System.Data.SqlClient;
using System.IO;
using System.Text;
namespace 仓库管理系统.ck
{
public partial class ck_result : System.Web.UI.Page
{
SQLHelper db = new SQLHelper();
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
bind();
}
}
//
public string bind_category(int id)
{
string sql = "select * from category where c_id=" + id;
DataTable d = db.ExecuteQuery(sql, CommandType.Text);
return d.Rows[0]["category"].ToString();
}
//
public string bind_pro(int id)
{
string sql = "select * from product where pro_id=" + id;
DataTable d = db.ExecuteQuery(sql, CommandType.Text);
return d.Rows[0]["product"].ToString();
}
//
public string bind_depot(int id)
{
pub p = new pub();
return p.turn_depot(id);
}
//
public void bind()
{
int depot_id = int.Parse(Session["depot_id"].ToString());
int y = int.Parse(Request.QueryString["y"].ToString());
int m= int.Parse(Request.QueryString["m"].ToString());
int c_id= int.Parse(Request.QueryString["c_id"].ToString());
string sql = "select * from ck where depot_id=" + depot_id + " and 1=1";//构造选出行业所有字段的SQL语句
if (y != 0)
{
sql = sql + " and datepart(year,rq)="+y+"";
}
if (m!= 0)
{
sql = sql + " and month(rq)=" + m + "";
}
if (c_id!= 0)
{
后面还有 46 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。
