private bool CheckValidation() { bool iRet = ConnectStringView1.CheckConnectionStringValid(); iRet = iRet && ConnectStringView1.CheckLocalSqlServerValid(); iRet = iRet && AttendanceSettingView1.CheckValid(); if (SubSystemSetView1.HasHrmisSystem) { iRet = iRet && ConnectStringView1.CheckHRMISConnectionStringValid(); } if (SubSystemSetView1.HasCRMSystem) { iRet = iRet && ConnectStringView1.CheckCrmConnectionStringValid(); } if (SubSystemSetView1.HasMyCMMISystem) { iRet = iRet && ConnectStringView1.CheckMyCMMIConnectionStringValid(); } iRet = iRet && SMSSettingView1.CheckValid(); return(iRet); }
private bool CheckValidation() { bool iRet = true; if (string.IsNullOrEmpty(_FilePath)) { lbLoadMessage.Text = "请选择一个App.Config"; iRet = false; } else { lbLoadMessage.Text = ""; } #region 数据库链接 iRet = iRet && ConnectStringView1.CheckConnectionStringValid(); if (SubSystemSetView1.HasHrmisSystem) { iRet = iRet && ConnectStringView1.CheckHRMISConnectionStringValid(); } if (SubSystemSetView1.HasCRMSystem) { iRet = iRet && ConnectStringView1.CheckCrmConnectionStringValid(); } if (SubSystemSetView1.HasMyCMMISystem) { iRet = iRet && ConnectStringView1.CheckMyCMMIConnectionStringValid(); } #endregion iRet = iRet && AutoRemindFunctionSetView1.CheckValid(); iRet = iRet && AttendanceSettingView1.CheckValid(); return(iRet); }