コード例 #1
0
        public TResult <ComosActivity> GetComosActivity(string user, string projectname, string workinglayer, string object_sysuid)
        {
            //object comosobject = System.Web.HttpContext.Current.ApplicationInstance.Application["ComosAPI"];
            //IBRServiceContracts.IServiceContract m_ComosAPIService = (IBRServiceContracts.IServiceContract)comosobject;
            IServiceContract m_ComosAPIService = GetComosAPI();
            int idworkinglayer = 0;

            if (workinglayer != "")
            {
                idworkinglayer = int.Parse(workinglayer);
            }

            ComosActivity result = m_ComosAPIService.GetComosActivity(user, projectname, idworkinglayer, object_sysuid);

            return(new TResult <ComosActivity>()
            {
                Status = true,
                data = result,
                Message = null,
            });
        }