admin/kclist.aspx.cs

(开头部分) 5KB

这里只显示每个文件的开头 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;
namespace 仓库管理系统.admin
{
    public partial class kclist : 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)
        {
            pub p = new pub();
            string s = p.turn_category(id);
            return s;
        }
        //

        public int bind_kc(int pro_id)
        {
            pub p = new pub();
            return p.pro_tj(pro_id);
        }
        //
        public string bind_state(int pro_id,int depot_id)
        {
            pub p = new pub();
            int kc =p.pro_total(pro_id,depot_id);
            string s = "";
            string sql = "select * from product where pro_id=" + pro_id;
            DataTable dtt = db.ExecuteQuery(sql, CommandType.Text);
            if (kc > int.Parse(dtt.Rows[0]["limit_kc"].ToString()))
            {
                s = "库存正常";
            }
            else
            {
                s = "<font color=red>低于警戒线</font>";
            }
            return s;
        }
        public void bind()
        {
            int CurrentPage = Convert.ToInt32(this.lbt_now.Text);
            //判断是否有传来参数
            string sql = "select * from product order by pro_id desc";

            DataTable dt = db.ExecuteQuery(sql, CommandType.Text);
            //
后面还有 84 行代码,购买后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。