⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 frmmainmenu.cs

📁 本论文叙述了联机考试系统的现状以及C#语言的概况。重点介绍了联机考试系统的实现过程:包括系统分析、 系统调查、 数据流程分析、功能设计、 数据库设计、 系统物理配置方案、 系统实现、 系统测试和调试。
💻 CS
📖 第 1 页 / 共 5 页
字号:
			else
			{
				MessageBox.Show("折扣管理窗体已加载");
			}

		}

		private void mnuStockStkMgmt_Click(object sender, System.EventArgs e)
		{
			varStkMgmt++;
			if(varStkMgmt == 1)
			{
				frmStockManagement fStkMgmt = new frmStockManagement();
				fStkMgmt.MdiParent=this;
				fStkMgmt.Left=this.Left;
				fStkMgmt.Top =this.Top ;
				fStkMgmt.Show();
			}
			else
			{
				MessageBox.Show("库存管理窗体已加载");
			}

		}

		private void mnuUsersRptUsersActive_Click(object sender, System.EventArgs e)
		{
			this.grpReportNotification.Visible = true;
			this.tmrMenu.Enabled =true;
			this.pgrReport.Visible = true;

			fRpt = new frmReport();
			fRpt.crvReportViewer.Visible=true;
			fRpt.crvReportViewer.SetBounds(this.Top,this.Left,this.Size.Width,this.Size.Height);
			initialLoad(settings.uiDirectory+@"\Reports\ActiveUserRep.rpt");
			fRpt.crvReportViewer.ReportSource = repDoc;

			//fRpt.crvReportViewer.ReportSource = @"..\..\Reports\ActiveUserRep.rpt";
			fRpt.crvReportViewer.RefreshReport();
			fRpt.MdiParent = this;
			fRpt.Left = this.Left;
			fRpt.Top = this.Top;
			fRpt.Show();
			
		
		}

		private void mnuWindowsArrange_Click(object sender, System.EventArgs e)
		{
			if (this.MdiChildren.Length<2)
				MessageBox.Show("没有排列窗体");
			else
				this.LayoutMdi(System.Windows.Forms.MdiLayout.ArrangeIcons);
		}

		private void mnuWindowsCascade_Click(object sender, System.EventArgs e)
		{
			if (this.MdiChildren.Length<2)
				MessageBox.Show("没有排列窗体");
			else
				this.LayoutMdi(System.Windows.Forms.MdiLayout.Cascade);
		}

		private void mnuWindowsVertical_Click(object sender, System.EventArgs e)
		{
			if (this.MdiChildren.Length<2)
				MessageBox.Show("没有排列窗体");
			else
				this.LayoutMdi(System.Windows.Forms.MdiLayout.TileVertical);
		}

		private void mnuWindowsHorizontal_Click(object sender, System.EventArgs e)
		{
			this.LayoutMdi(System.Windows.Forms.MdiLayout.TileHorizontal);
		}

		private void mnuUsersRptUsersInActive_Click(object sender, System.EventArgs e)
		{
			this.grpReportNotification.Visible = true;
			this.tmrMenu.Enabled =true;
			this.pgrReport.Visible = true;

			this.tmrMenu.Enabled =true;
			  fRpt = new frmReport();
			fRpt.crvReportViewer.Visible=true;
			fRpt.crvReportViewer.SetBounds(this.Top,this.Left,this.Size.Width,this.Size.Height);

			initialLoad(settings.uiDirectory+@"\Reports\InActUserRep.rpt");
			fRpt.crvReportViewer.ReportSource = repDoc;

			//fRpt.crvReportViewer.ReportSource = @"..\..\Reports\InActUserRep.rpt";
			fRpt.crvReportViewer.RefreshReport();
			fRpt.MdiParent = this;
			fRpt.Left = this.Left;
			fRpt.Top = this.Top;
			fRpt.Show();

		}

		private void mnuUsersUsrMgr_Click(object sender, System.EventArgs e)
		{
			varUsrMgmt++;
			if(varUsrMgmt == 1)
			{
			
				frmUserManagement fUsrMgmt = new frmUserManagement();
				fUsrMgmt.MdiParent=this;
				fUsrMgmt.Left=this.Left;
				fUsrMgmt.Top =this.Top ;
				fUsrMgmt.Show();
			}
			else
			{
				MessageBox.Show("用户窗体已加载");
			}
			
		}

		private void tbrMainTool_ButtonClick(object sender, System.Windows.Forms.ToolBarButtonClickEventArgs e)
		{
			if(e.Button == this.tbrMainTool.Buttons[0])
			{
				varUsrMgmt++;
				if(varUsrMgmt == 1)
				{
					frmUserManagement fUsrMgmt = new frmUserManagement();
					fUsrMgmt.MdiParent=this;
					fUsrMgmt.Left=this.Left;
					fUsrMgmt.Top =this.Top ;
					fUsrMgmt.Show();
				}
				else
				{
					MessageBox.Show("用户窗体已加载");
				}
			}		
			else if(e.Button == this.tbrMainTool.Buttons[1])
			{
				varPrdSales++;
				if(varPrdSales == 1)
				{
					frmProductSales fPrdSales = new frmProductSales(frmLogin.loginId);
					fPrdSales.MdiParent=this;
					fPrdSales.Left=this.Left;
					fPrdSales.Top =this.Top ;
					fPrdSales.Show();
				}
				else
				{
					MessageBox.Show("产品销售窗体已加载");
				}

			}
			else if(e.Button == this.tbrMainTool.Buttons[3])
			{
				varPrdMgmt++;
				if(varPrdMgmt == 1)
				{
					frmStockManagement fStkMgmt = new frmStockManagement();
					fStkMgmt.MdiParent=this;
					fStkMgmt.Left=this.Left;
					fStkMgmt.Top =this.Top ;
					fStkMgmt.Show();
				}
				else
				{
					MessageBox.Show("产品管理窗体已加载");
				}

			}
			else if(e.Button == this.tbrMainTool.Buttons[4])
			{
				varStkMgmt++;
				if(varStkMgmt == 1)
				{
					frmStockManagement fStkMgmt = new frmStockManagement();
					fStkMgmt.MdiParent=this;
					fStkMgmt.Left=this.Left;
					fStkMgmt.Top =this.Top ;
					fStkMgmt.Show();
				}
				else
				{
					MessageBox.Show("库存管理窗体已加载");
				}

			}
			else if (e.Button == this.tbrMainTool.Buttons[5])
			{
				varBillsMgmt++;
				if(varBillsMgmt == 1)
				{
					frmBillsManagement fBillMgmt = new frmBillsManagement();
					fBillMgmt.MdiParent=this;
					fBillMgmt.Left=this.Left;
					fBillMgmt.Top =this.Top ;
					fBillMgmt.Show();
				}
				else
				{
					MessageBox.Show("帐单管理窗体已加载");
				}
			}
		}

		private void Welcome_Clicked(object sender, System.EventArgs e) 
		{
			MessageBox.Show("您正在使用祥龙超市系统","谢谢");
		}

		private void Exit_Clicked(object sender, System.EventArgs e) 
		{
			
			DialogResult res;
			res = MessageBox.Show("您要退出程序吗?", "退出窗体",
				MessageBoxButtons.YesNo, MessageBoxIcon.Stop);
			
			if(res.ToString() == "确定")
			{
				Application.Exit();
			}
			

			
		}

		private void mnuProductRptPrdList_Click(object sender, System.EventArgs e)
		{
			this.grpReportNotification.Visible = true;
			this.tmrMenu.Enabled =true;
			this.pgrReport.Visible = true;
			  fRpt = new frmReport();
			fRpt.crvReportViewer.Visible=true;
			fRpt.crvReportViewer.SetBounds(this.Top,this.Left,this.Size.Width,this.Size.Height);

			initialLoad(settings.uiDirectory+@"\Reports\ProdDetailRep1.rpt");
			fRpt.crvReportViewer.ReportSource = repDoc;

			//fRpt.crvReportViewer.ReportSource = @"..\..\Reports\ProdDetailRep1.rpt";
			fRpt.crvReportViewer.RefreshReport();
			fRpt.MdiParent = this;
			fRpt.Left = this.Left;
			fRpt.Top = this.Top;
			fRpt.Show();
		}

		private void mnuStockRptStockToday_Click(object sender, System.EventArgs e)
		{
			this.tmrMenu.Enabled =true;
			  fRpt = new frmReport();
			fRpt.crvReportViewer.Visible=true;
			fRpt.crvReportViewer.SetBounds(this.Top,this.Left,this.Size.Width,this.Size.Height);

			initialLoad(settings.uiDirectory+@"\Reports\StckTodayRep.rpt");
			fRpt.crvReportViewer.ReportSource = repDoc;

		//	fRpt.crvReportViewer.ReportSource = @"..\..\Reports\StckTodayRep.rpt";

			fRpt.crvReportViewer.SelectionFormula="{Stock.StkDate}=#" + DateTime.Today +"#";
			fRpt.crvReportViewer.RefreshReport();
			fRpt.MdiParent = this;
			fRpt.Left = this.Left;
			fRpt.Top = this.Top;
			fRpt.Show();
		}

		private void mnuStockRptStockCurrMnth_Click(object sender, System.EventArgs e)
		{
			
			this.grpReportNotification.Visible = true;
			this.tmrMenu.Enabled =true;
			this.pgrReport.Visible = true;

			  fRpt = new frmReport();
			fRpt.crvReportViewer.Visible=true;
			fRpt.crvReportViewer.SetBounds(this.Top,this.Left,this.Size.Width,this.Size.Height);

			initialLoad(settings.uiDirectory+@"\Reports\StckMonthRep1.rpt");
			fRpt.crvReportViewer.ReportSource = repDoc;


			//fRpt.crvReportViewer.ReportSource = @"..\..\Reports\StckMonthRep.rpt";
fRpt.crvReportViewer.SelectionFormula ="Month({Stock.StkDate})=" + DateTime.Today.Month;
			fRpt.crvReportViewer.RefreshReport();
			fRpt.MdiParent = this;
			fRpt.Left = this.Left;
			fRpt.Top = this.Top;
			fRpt.Show();
		}

		private void mnuStockRptStockTotStock_Click(object sender, System.EventArgs e)
		{
			this.grpReportNotification.Visible = true;
			this.tmrMenu.Enabled =true;
			this.pgrReport.Visible = true;

			  fRpt = new frmReport();
			fRpt.crvReportViewer.Visible=true;
			fRpt.crvReportViewer.SetBounds(this.Top,this.Left,this.Size.Width,this.Size.Height);

			initialLoad(settings.uiDirectory+@"\Reports\StockAllRep.rpt");
			fRpt.crvReportViewer.ReportSource = repDoc;


			//fRpt.crvReportViewer.ReportSource = @"..\..\Reports\StockAllRep.rpt";
			fRpt.crvReportViewer.RefreshReport();
			fRpt.MdiParent = this;
			fRpt.Left = this.Left;
			fRpt.Top = this.Top;
			fRpt.Show();
		}

		private void mnuStockRptStockOutStock_Click(object sender, System.EventArgs e)
		{
			this.grpReportNotification.Visible = true;
			this.tmrMenu.Enabled =true;
			this.pgrReport.Visible = true;

			  fRpt = new frmReport();
			fRpt.crvReportViewer.Visible=true;
			fRpt.crvReportViewer.SetBounds(this.Top,this.Left,this.Size.Width,this.Size.Height);

			initialLoad(settings.uiDirectory+@"\Reports\OutofStockRep.rpt");
			fRpt.crvReportViewer.ReportSource = repDoc;


			//fRpt.crvReportViewer.ReportSource = @"..\..\Reports\OutofStockRep.rpt";
fRpt.crvReportViewer.SelectionFormula ="{Products.QOH}<=" +"0";
			fRpt.crvReportViewer.RefreshReport();
			fRpt.MdiParent = this;
			fRpt.Left = this.Left;
			fRpt.Top = this.Top;
			fRpt.Show();
		}

		private void mnuStockRptStockCurrStk_Click(object sender, System.EventArgs e)
		{
			this.tmrMenu.Enabled =true;
			  fRpt = new frmReport();
			fRpt.crvReportViewer.Visible=true;
			fRpt.crvReportViewer.SetBounds(this.Top,this.Left,this.Size.Width,this.Size.Height);

			initialLoad(settings.uiDirectory+@"\Reports\InStockRep.rpt");
			fRpt.crvReportViewer.ReportSource = repDoc;


		//	fRpt.crvReportViewer.ReportSource = @"..\..\Reports\InStockRep.rpt";
fRpt.crvReportViewer.SelectionFormula ="{Products.QOH}>" +"0";
			fRpt.crvReportViewer.RefreshReport();
			fRpt.MdiParent = this;
			fRpt.Left = this.Left;
			fRpt.Top = this.Top;

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -