Пример #1
0
        /// <summary>
        /// Execute
        /// </summary>
        /// <returns></returns>
        protected override bool Execute()
        {
            //Validation of parameters and user have been successful. We may now proceed to read from the database
            var adoWorkflow = new Workflow_ADO();
            ADO_readerOutput result;

            result = adoWorkflow.Read(Ado, DTO, SamAccountName);

            if (!result.hasData)
            {
                return(false);
            }

            Response.data = result.data;

            return(true);
        }
Пример #2
0
        internal Workflow_DTO Populate(ADO ado, Workflow_DTO dto, string ccnUsername)
        {
            Workflow_ADO     wAdo   = new Workflow_ADO();
            ADO_readerOutput reader = wAdo.Read(ado, dto, ccnUsername, "PUBLISH");

            if (!reader.hasData)
            {
                return(dto);
            }

            return(new Workflow_DTO()
            {
                WrqDatetime = DataAdaptor.ReadDateTime(reader.data[0].WrqDatetime),
                WrqExceptionalFlag = DataAdaptor.ReadBool(reader.data[0].WrqExceptionalFlag),
                WrqReservationFlag = DataAdaptor.ReadBool(reader.data[0].WrqReservationFlag),
                WrqArchiveFlag = DataAdaptor.ReadBool(reader.data[0].WrqArchiveFlag),
                WrqExperimentalFlag = DataAdaptor.ReadBool(reader.data[0].WrqExperimentalFlag)
            });
        }