Example #1
0
        private void bindData(string where)
        {
            DataSet ds = dal.GetListT2(String.IsNullOrEmpty(where) ? " " : where);

            dataGridView1.DataSource             = ds.Tables[0];
            dataGridView1.Columns[0].Visible     = false;
            dataGridView1.Columns[1].HeaderText  = "商品编号";
            dataGridView1.Columns[2].HeaderText  = "商品名称";
            dataGridView1.Columns[3].HeaderText  = "库存数量";
            dataGridView1.Columns[4].HeaderText  = "商品类型";
            dataGridView1.Columns[5].HeaderText  = "商品品牌";
            dataGridView1.Columns[6].HeaderText  = "型号规格";
            dataGridView1.Columns[7].HeaderText  = "存储仓库";
            dataGridView1.Columns[8].HeaderText  = "所存库区";
            dataGridView1.Columns[9].HeaderText  = "生产厂家";
            dataGridView1.Columns[10].HeaderText = "所属商家";
        }
Example #2
0
        private void main_Load(object sender, EventArgs e)
        {
            if (m_ty == "1")
            {
                tsddbMasterFileManage.Visible = false;
                ttsddbSystemManage.DropDownItems[0].Visible = false;
                ttsddbSystemManage.DropDownItems[1].Visible = false;
            }
            //开启实时时间刷新任务
            this.timer.Enabled = true;
            DataSet ds = dal.GetListT2("p_num<=p_xx OR p_num >= p_sx ");

            if (ds.Tables[0].Rows.Count > 0)
            {
                InventoryWarningQuery inventoryWarningQuery = new InventoryWarningQuery();
                inventoryWarningQuery.MdiParent = this;
                inventoryWarningQuery.m_id      = m_id;
                inventoryWarningQuery.m_ty      = m_ty;
                inventoryWarningQuery.Show();
            }
            tsslWelcomeInfo.Text = this.m_username + "(" + (this.m_ty == "0" ? "管理员" : "普通用户") + ") " + tsslWelcomeInfo.Text;
        }