Exemple #1
0
        private void LoadTransferredSTVs()
        {
            BLL.Document documents = new BLL.Document();
            documents.LoadSTVsNotYetReceived();
            documents.AddColumn("PrintedDate", typeof(DateTime));
            documents.AddColumn("Sender", typeof(string));
            documents.AddColumn("Account", typeof(string));
            documents.AddColumn("DocumentNumber", typeof(string));

            while (!documents.EOF)
            {
                HCMIS.DocumentExchange.Documents.XmlMappings.STV stv = STV.Load(documents.DocumentContent);
                documents.SetColumn("PrintedDate", stv.PrintedDate);
                documents.SetColumn("Sender", stv.Sender);
                documents.SetColumn("Account", stv.Account);
                documents.SetColumn("DocumentNumber", stv.DocumentNumber);
                documents.MoveNext();
            }
            grdReceivedSTVs.DataSource = documents.DefaultView;
        }
        private void LoadTransferredSTVs()
        {
            BLL.Document documents = new BLL.Document();
            documents.LoadSTVsNotYetReceived();
            documents.AddColumn("PrintedDate", typeof(DateTime));
            documents.AddColumn("Sender", typeof(string));
            documents.AddColumn("Account", typeof(string));
            documents.AddColumn("DocumentNumber", typeof(string));

            while (!documents.EOF)
            {
                HCMIS.DocumentExchange.Documents.XmlMappings.STV stv = STV.Load(documents.DocumentContent);
                documents.SetColumn("PrintedDate", stv.PrintedDate);
                documents.SetColumn("Sender", stv.Sender);
                documents.SetColumn("Account", stv.Account);
                documents.SetColumn("DocumentNumber", stv.DocumentNumber);
                documents.MoveNext();
            }
            grdReceivedSTVs.DataSource = documents.DefaultView;
        }
 public bool CreateDocument(Document document)
 {
     _carDocumentsDao.AddOrUpdateDocument(document);
     return true;
 }