Ejemplo n.º 1
0
        public String GetFileName(String filename, long idCommittee)
        {
            String   result         = filename;
            DateTime data           = DateTime.Now;
            String   commissionName = (idCommittee > 0) ? Service.GetCommitteeName(idCommittee) : "";
            String   callName       = ServiceCall.GetCallName(View.IdCall);

            if (!String.IsNullOrEmpty(commissionName))
            {
                commissionName = commissionName.Trim();
            }
            if (idCommittee > 0 && !String.IsNullOrEmpty(commissionName) && commissionName.Length > 30)
            {
                commissionName = Service.GetCommitteeDisplayOrder(idCommittee).ToString();
            }

            if (idCommittee > 0)
            {
                result = String.Format(filename, commissionName, data.Year, ((data.Month < 10) ? "0" : "") + data.Month.ToString(), ((data.Day < 10) ? "0" : "") + data.Day.ToString());
            }
            else
            {
                result = String.Format(filename, callName, data.Year, ((data.Month < 10) ? "0" : "") + data.Month.ToString(), ((data.Day < 10) ? "0" : "") + data.Day.ToString());
            }

            return(lm.Comol.Core.DomainModel.Helpers.Export.ExportBaseHelper.HtmlCheckFileName(result));
        }
Ejemplo n.º 2
0
 public String GetFileName(String filename, SummaryType summaryType, long idCall, long idSubmission, long idCommittee)
 {
     return(Service.GetStatisticFileName(idCall, ServiceCall.GetCallName(idCall), idCommittee, Service.GetCommitteeDisplayOrder(idCommittee), Service.GetCommitteeName(idCommittee), idSubmission, filename, summaryType));
 }
Ejemplo n.º 3
0
 public String GetFileName(String filename, SummaryType summaryType, ItemsToExport items, ExportData xdata)
 {
     return(Service.GetStatisticFileName(View.IdCall, ServiceCall.GetCallName(View.IdCall), Service.GetCommitteeDisplayOrder(View.CurrentIdCommittee), Service.GetCommitteeName(View.CurrentIdCommittee), filename, summaryType, items, xdata));
 }
 public String GetFileName(String filename, ItemsToExport items, ExportData xdata)
 {
     return(Service.GetStatisticFileName(View.IdCall, ServiceCall.GetCallName(View.IdCall), filename, SummaryType.Evaluations, items, xdata));
 }