public FileHelper.UploadInfo ExecuteFileAttachment_Upload(int[] indexes, HttpFileCollectionBase files)
        {
            var file        = files[0];
            var pendingFile = new FileHelper.UploadInfo(file, "DeveloperTools", "FileAttachment", indexes);

            pendingFile.GetRelativePath = Get_FileAttachment_RelativePath;
            @model.LekosPath            = FileHelper.GetUtf8SafeFilename(file.FileName);
            IsDirty = true;
            FileHelper.PendingUploadInstance.Add(pendingFile);
            return(pendingFile);
        }
        public FileHelper.UploadInfo ExecutetxtUploadOfScan4_Upload(int[] indexes, HttpFileCollectionBase files)
        {
            var file        = files[0];
            var pendingFile = new FileHelper.UploadInfo(file, "LetterOfCreditForm", "txtUploadOfScan4", indexes);

            pendingFile.GetRelativePath        = Get_txtUploadOfScan4_RelativePath;
            @model.LetterOfCredit.UploadOfScan = FileHelper.GetUtf8SafeFilename(file.FileName);
            IsDirty = true;
            FileHelper.PendingUploadInstance.Add(pendingFile);
            return(pendingFile);
        }
Esempio n. 3
0
        public FileHelper.UploadInfo ExecutetxtPODAttachment5_Upload(int[] indexes, HttpFileCollectionBase files)
        {
            var file        = files[0];
            var pendingFile = new FileHelper.UploadInfo(file, "PartialProofOfDeliveryForm", "txtPODAttachment5", indexes);

            pendingFile.GetRelativePath = Get_txtPODAttachment5_RelativePath;
            @model.PartialProofOfDelivery.PODAttachment = FileHelper.GetUtf8SafeFilename(file.FileName);
            IsDirty = true;
            FileHelper.PendingUploadInstance.Add(pendingFile);
            return(pendingFile);
        }
Esempio n. 4
0
        public FileHelper.UploadInfo ExecutetxtLogo_Upload(int[] indexes, HttpFileCollectionBase files)
        {
            var file        = files[0];
            var pendingFile = new FileHelper.UploadInfo(file, "BuyerForm", "txtLogo", indexes);

            pendingFile.GetRelativePath = Get_txtLogo_RelativePath;
            @model.Buyer.Logo           = FileHelper.GetUtf8SafeFilename(file.FileName);
            IsDirty = true;
            FileHelper.PendingUploadInstance.Add(pendingFile);
            return(pendingFile);
        }
        public FileHelper.UploadInfo ExecuteFileUpload_Upload(int[] indexes, HttpFileCollectionBase files)
        {
            if (model.Supplier.PriorOutstandingBalances == null)
            {
                model.Supplier.PriorOutstandingBalances = new System.Collections.Generic.List <DSS5_SupplyChainFinancialsOptimisation.BO.SupplierUploads>();
            }
            var originalCount = model.Supplier.PriorOutstandingBalances.Count();

            for (var __index = 0; __index < files.Count; __index++)
            {
                var file       = files[__index];
                var newIndexes = indexes == null ? new List <int>() : indexes.Take(indexes.Length - 1).ToList();
                newIndexes.Add(originalCount + __index);
                model.Supplier.AddPriorOutstandingBalances(new DSS5_SupplyChainFinancialsOptimisation.BO.SupplierUploads());
                var pendingFile = new FileHelper.UploadInfo(file, "TestingForm", "FileUpload", newIndexes.ToArray());
                var parents0    = model?.Supplier?.PriorOutstandingBalances?.Count() < newIndexes[0] + 1 ? null : model?.Supplier?.PriorOutstandingBalances?[newIndexes[0]];
                pendingFile.GetRelativePath = Get_FileUpload_RelativePath;
                parents0.Path = FileHelper.GetUtf8SafeFilename(file.FileName);
                IsDirty       = true;
                FileHelper.PendingUploadInstance.Add(pendingFile);
            }
            return(null);
        }