Пример #1
0
 public bool SetObjectValueByFiledName(CommonPara para)
 {
     using (SQLTransaction trans = new SQLTransaction(para))
     {
         CommonBusiness business = new CommonBusiness();
         bool           result   = business.SetObjectValueByFiledName(para, trans, para.ObjectID, para.FieldName, para.Value);
         if (result)
         {
             trans.Commit();
         }
         return(result);
     }
 }
Пример #2
0
        public bool RemoveLinkObject(TestResourceLibPara para)
        {
            bool result = false;

            using (SQLTransaction trans = new SQLTransaction(para))
            {
                TestResourceLibBusiness business = new TestResourceLibBusiness();
                result = business.RemoveLinkObject(para, trans, para.ObjectID);
                if (result)
                {
                    trans.Commit();
                }
            }
            return(result);
        }
Пример #3
0
        public bool AddLinkByObjectIdAndLinkTypeName(TestResourceLibPara para)
        {
            bool result = false;

            using (SQLTransaction trans = new SQLTransaction(para))
            {
                TestResourceLibBusiness business = new TestResourceLibBusiness();
                result = business.AddLinkByObjectIdAndLinkTypeName(para, trans, para.LinkTypeName, para.PEID, para.ObjectID);
                if (result)
                {
                    trans.Commit();
                }
            }
            return(result);
        }
Пример #4
0
        public string UploadAttachFileToResource(TestResourceLibPara para)
        {
            string retStr = "";

            using (SQLTransaction trans = new SQLTransaction(para))
            {
                TestResourceLibBusiness business = new TestResourceLibBusiness();
                retStr = business.UploadAttachFileToResource(para, trans, para.ObjectID, para.Content);
                if (!string.IsNullOrEmpty(retStr))
                {
                    trans.Commit();
                }
            }
            return(retStr);
        }
Пример #5
0
        public bool ChangeCapabilityOrg(TestResourceLibPara para)
        {
            bool result = false;

            using (SQLTransaction trans = new SQLTransaction(para))
            {
                TestResourceLibBusiness business = new TestResourceLibBusiness();
                result = business.ChangeCapabilityOrg(para, trans, para.ObjectID, para.Value);
                if (result)
                {
                    trans.Commit();
                }
            }
            return(result);
        }
Пример #6
0
        public string SaveCapabilityData(TestResourceLibPara para)
        {
            string retStr = "";

            using (SQLTransaction trans = new SQLTransaction(para))
            {
                TestResourceLibBusiness business = new TestResourceLibBusiness();
                retStr = business.SaveCapabilityData(para, trans, para.BaseData, para.KnowledgeID, para.ResourceID, para.ObjectID);
                if (!string.IsNullOrEmpty(retStr))
                {
                    trans.Commit();
                }
            }
            return(retStr);
        }