Exemple #1
0
        public void InsertBusinessService(BusinessService service)
        {
            if (String.IsNullOrEmpty(service.ServiceID))
            {
                service.ServiceID = Guid.NewGuid().ToString();
            }

            //--借用Category字段传递用户ID
            String userID = service.Category;

            service.Category       = String.Empty;
            service.DefaultVersion = 1;     //新建服务时默认版本为1
            service.Insert();

            //--在新增服务时建立默认版本
            BusinessServiceVersion version = new BusinessServiceVersion()
            {
                OID             = Guid.NewGuid().ToString(),
                ServiceID       = service.ServiceID,
                BigVer          = 1,
                SmallVer        = 0,
                CreateDateTime  = DateTime.Now,
                Status          = 0,
                CreatePersionID = userID,
                Description     = "初始化版本"
            };

            version.Insert();
        }
Exemple #2
0
        public void InsertServiceVersion(BusinessServiceVersion entity)
        {
            if (String.IsNullOrEmpty(entity.OID))
            {
                entity.OID = Guid.NewGuid().ToString();
            }

            entity.Insert();
        }
Exemple #3
0
        public void InsertBusinessService(BusinessService service)
        {
            if (String.IsNullOrEmpty(service.ServiceID))
                service.ServiceID = Guid.NewGuid().ToString();

            //--借用Category字段传递用户ID
            String userID = service.Category;
            service.Category = String.Empty;
            service.DefaultVersion = 1;     //新建服务时默认版本为1
            service.Insert();

            //--在新增服务时建立默认版本
            BusinessServiceVersion version = new BusinessServiceVersion()
            {
                OID = Guid.NewGuid().ToString(),
                ServiceID = service.ServiceID,
                BigVer = 1,
                SmallVer = 0,
                CreateDateTime = DateTime.Now,
                Status = 0,
                CreatePersionID = userID,
                Description = "初始化版本"
            };
            version.Insert();
        }
Exemple #4
0
        public void InsertServiceVersion(BusinessServiceVersion entity)
        {
            if (String.IsNullOrEmpty(entity.OID))
                entity.OID = Guid.NewGuid().ToString();

            entity.Insert();
        }