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)); } }
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); }
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); }
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); }
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); }
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); }