Example #1
0
 public List <EditTreeGridRowObject> GetTestCapabilityTreeGridRowData(TestResourceLibPara para)
 {
     using (SQLTransaction trans = new SQLTransaction(para))
     {
         TestResourceLibBusiness business = new TestResourceLibBusiness();
         return(business.GetTestCapabilityTreeGridRowData(para, trans, para.ObjectID, para.ObjectType));
     }
 }
Example #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);
        }
Example #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);
        }
Example #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);
        }
Example #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);
        }
Example #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);
        }