private void 库存预警查询tsmiInventoryWarningQuery(object sender, EventArgs e) { InventoryWarningQuery inventoryWarningQuery = new InventoryWarningQuery(); inventoryWarningQuery.m_id = m_id; inventoryWarningQuery.m_ty = m_ty; inventoryWarningQuery.MdiParent = this; inventoryWarningQuery.Show(); }
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; }