ck/kclist.aspx.cs

(开头部分) 2KB

这里只显示每个文件的开头 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 仓库管理系统.ck
{
    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 string bind_depot()
        {
            int depot_id = int.Parse(Session["depot_id"].ToString());
            pub p = new pub();
            return p.turn_depot(depot_id);
        }
        //
        public int  bind_kc(int pro_id)
        {
            int depot_id = int.Parse(Session["depot_id"].ToString());
            pub p = new pub();
            return p.pro_total(pro_id, depot_id);
        }
        //
        public string bind_state(int pro_id)
        {
             int kc=bind_kc(pro_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()
后面还有 15 行代码,购买后查看完整代码

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

AI 解读 AI

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

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