示例#1
0
		public FinanManagement()
		{
			// This call is required by the Windows.Forms Form Designer.
			InitializeComponent();

			// TODO: Add any initialization after the InitForm call
			
			getStuInfoByCondition = new GetStuInfoByCondition();
			finanInfoSystem = new FinanInfoSystem();
			finanMgmtInfoPrintSystem = new FinanMgmtInfoPrintSystem();

			#region 帮助
			helpProvider_FinanInfo.HelpNamespace = System.IO.Path.GetDirectoryName(Application.ExecutablePath)
				+ CPTT.SystemFramework.Util.HELP_FILE_NAME;

			this.helpProvider_FinanInfo.SetHelpKeyword(this,"简单财务功能");
			this.helpProvider_FinanInfo.SetHelpNavigator(this, System.Windows.Forms.HelpNavigator.KeywordIndex);
			this.helpProvider_FinanInfo.SetHelpString(this, "");
			this.helpProvider_FinanInfo.SetShowHelp(this, true);
			#endregion
		}
示例#2
0
		public FinanManagement2()
		{
			// This call is required by the Windows.Forms Form Designer.
			InitializeComponent();

			// TODO: Add any initialization after the InitForm call

			getStuInfoByCondition = new GetStuInfoByCondition();
			finanInfoSystem = new FinanInfoSystem();
			finanMgmtInfoPrintSystem = new FinanMgmtInfoPrintSystem();

			dtGrade = getStuInfoByCondition.getGradeInfo("","").Tables[0];

			foreach(DataRow getGradeList in dtGrade.Rows)
			{
				comboBoxEdit_Grade.Properties.Items.AddRange(
					new object[]{getGradeList[1].ToString()});
			}
			comboBoxEdit_Grade.SelectedIndex = 0;

			foreach(DataRow getGradeList in dtGrade.Rows)
			{
				comboBoxEdit_grade2.Properties.Items.AddRange(
					new object[]{getGradeList[1].ToString()});
			}
			comboBoxEdit_grade2.SelectedIndex = 0;


			dateEdit_BalanceMonth.EditValue = DateTime.Now.Date;
			dateEdit_BalanceMonth2.EditValue = DateTime.Now.Date;

			if ( Thread.CurrentPrincipal.Identity.Name.ToLower() == "admin" )
			{
				btnStat.Enabled = false;
				btnSearch.Enabled = false;
				btnReport2.Enabled = false;
			}

			InitTemplate();

			Finan2Details.OnSaveSucceeded += new Finan2Details.SaveSucceedHandler(InitTemplate);
		}