case 3646

This commit is contained in:
2018-08-22 21:59:07 +00:00
parent c3cb344ddf
commit afb22dd266
5 changed files with 32 additions and 25 deletions

View File

@@ -57,7 +57,8 @@ namespace GZTW.AyaNova.BLL
}
}
if (AyaBizUtils.Trial) WatermarkReport(x);
//case 3646 removed
// if (AyaBizUtils.Trial) WatermarkReport(x);
MemoryStream ms = new MemoryStream();
x.ExportToPdf(ms);

View File

@@ -3020,14 +3020,16 @@ namespace GZTW.AyaNova.BLL
if(AyaBizUtils.IsGenerator || c.mRights > SecurityLevelTypes.ReadOnly)
{
//Count the workorders if it's a trial, sb no more than 30
if(AyaBizUtils.Trial)
{
if(WorkorderCountFetcher.GetItem()>29)
throw new TrialException(LocalizedTextTable.GetLocalizedTextDirect("Error.Trial.Restricted"));
}
//case 3646 removed this block
////Count the workorders if it's a trial, sb no more than 30
//if(AyaBizUtils.Trial)
//{
// if(WorkorderCountFetcher.GetItem()>29)
// throw new TrialException(LocalizedTextTable.GetLocalizedTextDirect("Error.Trial.Restricted"));
//}
//c = new Workorder();
c.WorkorderType=WorkorderType;