Exemplo n.º 1
0
        private void CopyAttachs(string ContractID)
        {
            using (DataTable DT = ClientPayments.GetAttachments(ContractID))
            {
                if (DT.Rows.Count == 0)
                {
                    return;
                }

                AttachsCount = DT.Rows.Count;

                foreach (DataRow Row in DT.Rows)
                {
                    DataRow NewRow = AttachmentDocumentsDataTable.NewRow();
                    NewRow["FileName"] = Row["FileName"];
                    NewRow["Path"]     = "server";
                    AttachmentDocumentsDataTable.Rows.Add(NewRow);
                }
            }
        }