Ejemplo n.º 1
0
        public string AuditInquiryChangeList(Auditinqauditresults auditinqauditresults)
        {
            var pdsauditinqauditresults = new pdsauditinqauditresultsDataSet();

            DataRow ttblauditinqauditresultsCriteria = pdsauditinqauditresults.ttblauditinqauditresults.NewttblauditinqauditresultsRow();

            Auditinqauditresults.UpdateRowFromAuditinqauditresults(ref ttblauditinqauditresultsCriteria, auditinqauditresults);
            pdsauditinqauditresults.ttblauditinqauditresults.AddttblauditinqauditresultsRow((pdsauditinqauditresultsDataSet.ttblauditinqauditresultsRow)ttblauditinqauditresultsCriteria);

            string cChangeList   = string.Empty;
            string cErrorMessage = string.Empty;


            NLogLoggerP.Trace("AuditInquiryChangeList - Assainquiry - Before Call");
            StopwatchUtil.Time(
                () =>
            {
                using (var poAssainquiryproxy = this.proxyAppObject.CreatePO_assainquiryproxy())
                {
                    this.SetRequiredContextParameters();
                    poAssainquiryproxy.AuditInquiryChangeList(ref pdsContext, pdsauditinqauditresults, out cChangeList, out cErrorMessage);
                }
            });
            NLogLoggerP.Info("AuditInquiryChangeList - Assainquiry - After Call");


            this.ReportErrors(cErrorMessage);
            this.ReportErrors(this.pdsContext);
            this.ReportErrors(pdsauditinqauditresults);

            return(cChangeList);
        }
Ejemplo n.º 2
0
        public IEnumerable <Auditinqauditresults> AuditInquiryAuditRetrieve(AssainquiryAuditInquiryAuditRetrieveRequestAPI AssainquiryAuditInquiryAuditRetrieveRequestAPI)
        {
            var results = new List <Auditinqauditresults>();

            var pdsauditinqauditcriteria = new pdsauditinqauditcriteriaDataSet();

            var pdsauditinqprimarykey = new pdsauditinqprimarykeyDataSet();

            var pdsauditinqauditresults = new pdsauditinqauditresultsDataSet();

            string cErrorMessage = string.Empty;

            DataRow ttblauditinqauditcriteriaRow = pdsauditinqauditcriteria.ttblauditinqauditcriteria.NewttblauditinqauditcriteriaRow();

            Auditinqauditcriteria.UpdateRowFromAuditinqauditcriteria(ref ttblauditinqauditcriteriaRow, AssainquiryAuditInquiryAuditRetrieveRequestAPI.auditinqauditcriteria);
            pdsauditinqauditcriteria.ttblauditinqauditcriteria.AddttblauditinqauditcriteriaRow((pdsauditinqauditcriteriaDataSet.ttblauditinqauditcriteriaRow)ttblauditinqauditcriteriaRow);

            foreach (var obj in AssainquiryAuditInquiryAuditRetrieveRequestAPI.auditinqprimarykey)
            {
                DataRow ttblauditinqprimarykeyRow = pdsauditinqprimarykey.ttblauditinqprimarykey.NewttblauditinqprimarykeyRow();
                Auditinqprimarykey.UpdateRowFromAuditinqprimarykey(ref ttblauditinqprimarykeyRow, obj);
                pdsauditinqprimarykey.ttblauditinqprimarykey.AddttblauditinqprimarykeyRow((pdsauditinqprimarykeyDataSet.ttblauditinqprimarykeyRow)ttblauditinqprimarykeyRow);
            }


            NLogLoggerP.Trace("AuditInquiryAuditRetrieve - Assainquiry - Before Call");
            StopwatchUtil.Time(
                () =>
            {
                using (var poAssainquiryproxy = this.proxyAppObject.CreatePO_assainquiryproxy())
                {
                    this.SetRequiredContextParameters();
                    poAssainquiryproxy.AuditInquiryAuditRetrieve(ref pdsContext, pdsauditinqauditcriteria, pdsauditinqprimarykey, out pdsauditinqauditresults, out cErrorMessage);
                }
            });
            NLogLoggerP.Info("AuditInquiryAuditRetrieve - Assainquiry - After Call");


            this.ReportErrors(cErrorMessage);
            this.ReportErrors(this.pdsContext);
            this.ReportErrors(pdsauditinqauditcriteria);

            foreach (DataRow row in pdsauditinqauditresults.ttblauditinqauditresults)
            {
                results.Add(Auditinqauditresults.BuildAuditinqauditresultsFromRow(row));
            }
            return(results);
        }
Ejemplo n.º 3
0
        public string AuditInquiryReferenceNote(AssainquiryAuditInquiryReferenceNoteRequestAPI AssainquiryAuditInquiryReferenceNoteRequestAPI)
        {
            var pdsauditinqauditresults = new pdsauditinqauditresultsDataSet();

            string cReferenceOut = string.Empty;
            string cErrorMessage = string.Empty;

            DataRow ttblauditinqauditresultsRow = pdsauditinqauditresults.ttblauditinqauditresults.NewttblauditinqauditresultsRow();

            Auditinqauditresults.UpdateRowFromAuditinqauditresults(ref ttblauditinqauditresultsRow, AssainquiryAuditInquiryReferenceNoteRequestAPI.auditinqauditresults);
            pdsauditinqauditresults.ttblauditinqauditresults.AddttblauditinqauditresultsRow((pdsauditinqauditresultsDataSet.ttblauditinqauditresultsRow)ttblauditinqauditresultsRow);

            var lRetrieve = AssainquiryAuditInquiryReferenceNoteRequestAPI.lRetrieve;

            var cReferenceIn = AssainquiryAuditInquiryReferenceNoteRequestAPI.cReferenceIn;


            NLogLoggerP.Trace("AuditInquiryReferenceNote - Assainquiry - Before Call");
            StopwatchUtil.Time(
                () =>
            {
                using (var poAssainquiryproxy = this.proxyAppObject.CreatePO_assainquiryproxy())
                {
                    this.SetRequiredContextParameters();
                    poAssainquiryproxy.AuditInquiryReferenceNote(ref pdsContext, pdsauditinqauditresults, lRetrieve, cReferenceIn, out cReferenceOut, out cErrorMessage);
                }
            });
            NLogLoggerP.Info("AuditInquiryReferenceNote - Assainquiry - After Call");


            this.ReportErrors(cErrorMessage);
            this.ReportErrors(this.pdsContext);
            this.ReportErrors(pdsauditinqauditresults);

            return(cReferenceOut);
        }
Ejemplo n.º 4
0
 public string AuditInquiryChangeList(Auditinqauditresults auditinqauditresults)
 {
     return(this.adapter.AuditInquiryChangeList(auditinqauditresults));
 }
Ejemplo n.º 5
0
 public string AuditInquiryChangeList(Auditinqauditresults auditinqauditresults)
 {
     return(this.repository.AuditInquiryChangeList(auditinqauditresults));
 }