/// <summary>
        /// Execute
        /// </summary>
        /// <returns></returns>
        protected override bool Execute()
        {
            Compare_BSO      bso      = new Compare_BSO();
            Compare_DTO_Read dtoRight = new Compare_DTO_Read();


            Compare_DTO_Read dtoLeft = new Compare_DTO_Read();

            dtoRight.RlsCode    = DTO.RlsCode;
            dtoRight.LngIsoCode = DTO.LngIsoCode;


            dtoLeft.RlsCode = new Compare_ADO(Ado).ReadPreviousReleaseForUser(DTO.RlsCode, SamAccountName);
            if (dtoLeft.RlsCode == 0)
            {
                return(false);
            }

            dtoLeft.LngIsoCode = DTO.LngIsoCode;

            var jsonStat = bso.CompareAddDelete(Ado, dtoRight, dtoLeft).GetJsonStatObject(true);

            Response.data = new JRaw(Serialize.ToJson(jsonStat));

            return(true);
        }
Esempio n. 2
0
        /// <summary>
        /// Execute
        /// </summary>
        /// <returns></returns>
        protected override bool Execute()
        {
            Compare_BSO      bso      = new Compare_BSO();
            Compare_DTO_Read dtoRight = new Compare_DTO_Read();


            Compare_DTO_Read dtoLeft = new Compare_DTO_Read();

            dtoLeft.RlsCode = DTO.RlsCode;

            dtoLeft.LngIsoCode = DTO.LngIsoCode;

            dtoRight.RlsCode    = new Compare_ADO(Ado).ReadPreviousRelease(DTO.RlsCode);
            dtoRight.LngIsoCode = DTO.LngIsoCode;

            var jsonStat = bso.CompareAmendment(Ado, dtoLeft, dtoRight).GetJsonStatObject(true);

            Response.data = new JRaw(Serialize.ToJson(jsonStat));

            return(true);
        }