コード例 #1
0
        public TResult <bool> BatchChangeComosValues(IBRServiceContracts.CRow[] specs, string user, string projectname, string workinglayer)
        {
            //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.BatchUpdateComosValues(specs, user, projectname, idworkinglayer);

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