public NutritionManagement() { // This call is required by the Windows.Forms Form Designer. InitializeComponent(); // TODO: Add any initialization after the InitForm call foodManagementSystem = new FoodManagementSystem(); foodManagementPrintSystem = new FoodManagementPrintSystem(); getStuInfoByCondition = new GetStuInfoByCondition(); healthManagementSystem = new HealthManagementSystem(); healthMgmt = new HealthMgmt(); healthManagementPrintSystem = new HealthManagementPrintSystem(); rolesSystem = new RolesSystem(); useVersion = CPTT.SystemFramework.Util.UseVersion; #region 帮助 helpProvider_NutritionInfo.HelpNamespace = System.IO.Path.GetDirectoryName(Application.ExecutablePath) + CPTT.SystemFramework.Util.HELP_FILE_NAME; this.helpProvider_NutritionInfo.SetHelpKeyword(this.xtraTabPage1,"食物库存管理"); this.helpProvider_NutritionInfo.SetHelpNavigator(this.xtraTabPage1, System.Windows.Forms.HelpNavigator.KeywordIndex); this.helpProvider_NutritionInfo.SetHelpString(this.xtraTabPage1, ""); this.helpProvider_NutritionInfo.SetShowHelp(this.xtraTabPage1, true); this.helpProvider_NutritionInfo.SetHelpKeyword(this.xtraTabPage2,"每日食谱安排"); this.helpProvider_NutritionInfo.SetHelpNavigator(this.xtraTabPage2, System.Windows.Forms.HelpNavigator.KeywordIndex); this.helpProvider_NutritionInfo.SetHelpString(this.xtraTabPage2, ""); this.helpProvider_NutritionInfo.SetShowHelp(this.xtraTabPage2, true); this.helpProvider_NutritionInfo.SetHelpKeyword(this.xtraTabPage3,"集体膳食安排"); this.helpProvider_NutritionInfo.SetHelpNavigator(this.xtraTabPage3, System.Windows.Forms.HelpNavigator.KeywordIndex); this.helpProvider_NutritionInfo.SetHelpString(this.xtraTabPage3, ""); this.helpProvider_NutritionInfo.SetShowHelp(this.xtraTabPage3, true); this.helpProvider_NutritionInfo.SetHelpKeyword(this.xtraTabPage4,"膳食营养综合统计表"); this.helpProvider_NutritionInfo.SetHelpNavigator(this.xtraTabPage4, System.Windows.Forms.HelpNavigator.KeywordIndex); this.helpProvider_NutritionInfo.SetHelpString(this.xtraTabPage4, ""); this.helpProvider_NutritionInfo.SetShowHelp(this.xtraTabPage4, true); this.helpProvider_NutritionInfo.SetHelpKeyword(this.xtraTabPage5,"幼儿身体评测登记"); this.helpProvider_NutritionInfo.SetHelpNavigator(this.xtraTabPage5, System.Windows.Forms.HelpNavigator.KeywordIndex); this.helpProvider_NutritionInfo.SetHelpString(this.xtraTabPage5, ""); this.helpProvider_NutritionInfo.SetShowHelp(this.xtraTabPage5, true); this.helpProvider_NutritionInfo.SetHelpKeyword(this.xtraTabPage6,"幼儿评测结果浏览及打印"); this.helpProvider_NutritionInfo.SetHelpNavigator(this.xtraTabPage6, System.Windows.Forms.HelpNavigator.KeywordIndex); this.helpProvider_NutritionInfo.SetHelpString(this.xtraTabPage6, ""); this.helpProvider_NutritionInfo.SetShowHelp(this.xtraTabPage6, true); this.helpProvider_NutritionInfo.SetHelpKeyword(this.xtraTabPage7,"晨检及全日观察"); this.helpProvider_NutritionInfo.SetHelpNavigator(this.xtraTabPage7, System.Windows.Forms.HelpNavigator.KeywordIndex); this.helpProvider_NutritionInfo.SetHelpString(this.xtraTabPage7, ""); this.helpProvider_NutritionInfo.SetShowHelp(this.xtraTabPage7, true); this.helpProvider_NutritionInfo.SetHelpKeyword(this.xtraTabPage8,"服药登记"); this.helpProvider_NutritionInfo.SetHelpNavigator(this.xtraTabPage8, System.Windows.Forms.HelpNavigator.KeywordIndex); this.helpProvider_NutritionInfo.SetHelpString(this.xtraTabPage8, ""); this.helpProvider_NutritionInfo.SetShowHelp(this.xtraTabPage8, true); this.helpProvider_NutritionInfo.SetHelpKeyword(this.xtraTabPage9,"服药记录"); this.helpProvider_NutritionInfo.SetHelpNavigator(this.xtraTabPage9, System.Windows.Forms.HelpNavigator.KeywordIndex); this.helpProvider_NutritionInfo.SetHelpString(this.xtraTabPage9, ""); this.helpProvider_NutritionInfo.SetShowHelp(this.xtraTabPage9, true); #endregion }
public MainForm() { // // Required for Windows Form Designer support // InitializeComponent(); // // TODO: Add any constructor code after InitializeComponent call // userStyle = new UserStyle(); MenuDisplayByRole(); //加载皮肤名称集 loadSkinName(); //加载用户选择的窗体风格信息 loadUserStyleProfile(); healthManagementSystem = new HealthManagementSystem(); utilSystem = new UtilSystem(); #if DisableSessionTimeout timerSynSession.Enabled = false; #endif }
private void timer_MedicineRemind_Elapsed(object sender, System.Timers.ElapsedEventArgs e) { string timeNow = DateTime.Now.ToString("HH:mm"); DataSet doseInfo = new HealthManagementSystem().GetDoseInfo(string.Empty,string.Empty,string.Empty,string.Empty, DateTime.Now,DateTime.Now,string.Empty); if(doseInfo.Tables[0].Rows.Count>0) { foreach(DataRow row in doseInfo.Tables[0].Rows) { string timeToDose = Convert.ToDateTime(row["medicine_time"]).ToString("HH:mm"); if(timeNow.Equals(timeToDose)) { MessageBox.Show("有学生需要服药,请您注意.","系统信息!", MessageBoxButtons.OK,MessageBoxIcon.Information); } } } }
public StudentVisitInfo() { // This call is required by the Windows.Forms Form Designer. InitializeComponent(); // TODO: Add any initialization after the InitForm call getStuInfoByCondition = new GetStuInfoByCondition(); stuVisitInfoSystem = new StuVisitInfoSystem(); stuVisitInfoPrintSystem = new StuVisitInfoPrintSystem(); healthManagementSystem = new HealthManagementSystem(); rolesSystem = new RolesSystem(); #region 帮助 helpProvider_StuVisitInfo.HelpNamespace = System.IO.Path.GetDirectoryName(Application.ExecutablePath) + CPTT.SystemFramework.Util.HELP_FILE_NAME; this.helpProvider_StuVisitInfo.SetHelpKeyword(this.xtraTabPage_InfoMgmt,"幼儿家访信息管理"); this.helpProvider_StuVisitInfo.SetHelpNavigator(this.xtraTabPage_InfoMgmt, System.Windows.Forms.HelpNavigator.KeywordIndex); this.helpProvider_StuVisitInfo.SetHelpString(this.xtraTabPage_InfoMgmt, ""); this.helpProvider_StuVisitInfo.SetShowHelp(this.xtraTabPage_InfoMgmt, true); this.helpProvider_StuVisitInfo.SetHelpKeyword(this.xtraTabPage_InfoQuery,"幼儿家访信息检索"); this.helpProvider_StuVisitInfo.SetHelpNavigator(this.xtraTabPage_InfoQuery, System.Windows.Forms.HelpNavigator.KeywordIndex); this.helpProvider_StuVisitInfo.SetHelpString(this.xtraTabPage_InfoQuery, ""); this.helpProvider_StuVisitInfo.SetShowHelp(this.xtraTabPage_InfoQuery, true); #endregion }