예제 #1
0
        public TResult <bool> CreateComosDevice(IBRServiceContracts.CCell[] specs, string user, string projectname, string workinglayer, string ownersystemfullname, string cdevsystemfullname)
        {
            //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);
            }

            bool result = m_ComosAPIService.CreateComosDevice(specs, user, projectname, idworkinglayer, ownersystemfullname, cdevsystemfullname);

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