Exemple #1
0
 private static void CheckDbCnnString()
 {
     if (DbConnString == string.Empty)
     {
         ReportDataException.ThrowCnnStringEmptyException("ReportDefinition.CheckDbCnnString()");
     }
 }
 private static void CheckCnnString()
 {
     if (_DbCnnString == null || _DbCnnString.Trim() == string.Empty)
     {
         ReportDataException.ThrowCnnStringEmptyException("DesignTimePublishEngine.CheckCnnString()");
     }
 }
        internal static void ThrowException(string message, string source)
        {
            ReportDataException e = new ReportDataException();

            e.Message = message;
            e.Source  = source;
            throw e;
        }
        internal static void ThrowCnnStringEmptyException(string source)
        {
            ReportDataException e = new ReportDataException();

            e.Message = UFIDA.U8.UAP.Services.ReportResource.U8ResService.GetResStringEx("U8.UAP.Services.ReportData.ReportDataException.数据库连接串为空");
            e.Source  = source;
            throw e;
        }
Exemple #5
0
 private void CheckUserID()
 {
     if (_UserID == string.Empty)
     {
         ReportDataException.ThrowException(UFIDA.U8.UAP.Services.ReportResource.U8ResService.GetResStringEx("U8.UAP.Services.ReportData.ReportDefinition.在调用Insert()时UserID不能为空"),
                                            "ReportDefinition.CheckUserID()");
     }
 }
Exemple #6
0
 private static void CheckNameExist(
     string reportID,
     string reportName,
     string subProjectID)
 {
     if (IsExistedReportName(reportID, reportName, subProjectID))
     {
         ReportDataException.ThrowException(UFIDA.U8.UAP.Services.ReportResource.U8ResService.GetResStringEx("U8.UAP.Services.ReportData.ReportDefinition.在该子系统(包括不同语言下)中已经存在相同名称的报表"),
                                            "ReportDefinition.CheckNameExist()");
     }
 }