public static DynamicObjectCollection GetDistributeMonitorInfo(Context ctx, long orgId, string sampleId) { DynamicObjectCollection objects; IBudgetReportPlateService service = ServiceFactory.GetService <IBudgetReportPlateService>(ctx); try { objects = service.GetDistributeMonitorInfo(ctx, orgId, sampleId); } finally { ServiceFactory.CloseService(service); } return(objects); }
public static IDictionary <long, List <string> > GetSameRPTByDetail(Context ctx, IList <DistributeDetail> lstValidDetails, IList <DistributeDetail> lstValidRepeated = null) { IDictionary <long, List <string> > dictionary; IDistributeService service = ServiceFactory.GetService <IDistributeService>(ctx); try { dictionary = service.GetSameRPTByDetail(ctx, lstValidDetails, lstValidRepeated); } finally { ServiceFactory.CloseService(service); } return(dictionary); }
public static SchemeEntityExtend GetSchemDetailInfo(Context ctx, int fid) { SchemeEntityExtend extend; IDistributeService service = ServiceFactory.GetService <IDistributeService>(ctx); try { extend = service.GetSchemDetailInfo(ctx, fid, false); } finally { ServiceFactory.CloseService(service); } return(extend); }
public static Dictionary <string, DateTime> GetBudgetReportDateByOrg(Context ctx, List <string> sampleIdList, IList <DistributeTarget> lstTagets, long fid) { Dictionary <string, DateTime> dictionary; IDistributeService service = ServiceFactory.GetService <IDistributeService>(ctx); try { dictionary = service.GetBudgetReportDateByOrg(ctx, sampleIdList, lstTagets, fid); } finally { ServiceFactory.CloseService(service); } return(dictionary); }
public static IList <DistributeDetail_Extend> GetReportBuilStatusdByDistrId(Context ctx, IDictionary <string, List <long> > dicDistrId) { IList <DistributeDetail_Extend> reportBuilStatusdByDistrId; IDistributeService service = ServiceFactory.GetService <IDistributeService>(ctx); try { reportBuilStatusdByDistrId = service.GetReportBuilStatusdByDistrId(ctx, dicDistrId); } finally { ServiceFactory.CloseService(service); } return(reportBuilStatusdByDistrId); }
public static IOperationResult Distribute(Context ctx, IList <DistributeSource> lstSources, IList <DistributeTarget> lstTargets) { IOperationResult result; IDistributeService service = ServiceFactory.GetService <IDistributeService>(ctx); try { result = service.Distribute(ctx, lstSources, lstTargets); } finally { ServiceFactory.CloseService(service); } return(result); }
public static IOperationResult CancleDistributeInfoByDistrId(Context ctx, IDictionary <string, List <long> > dicDistrId) { IOperationResult result; IDistributeService service = ServiceFactory.GetService <IDistributeService>(ctx); try { result = service.CancleDistributeInfoByDistrId(ctx, dicDistrId); } finally { ServiceFactory.CloseService(service); } return(result); }
public static IOperationResult Save(Context ctx, ReportDataEntity entity) { IOperationResult result; IReportOperationService service = ServiceFactory.GetService <IReportOperationService>(ctx); try { result = service.Save(ctx, entity); } finally { ServiceFactory.CloseService(service); } return(result); }
public static IOperationResult SaveNewReportSchemeVersion(Context ctx, BusinessInfo bizInfo, DynamicObject changedObj, object editObj) { IOperationResult result; IReportSchemeService service = ServiceFactory.GetService <IReportSchemeService>(ctx); try { result = service.SaveNewReportSchemeVersion(ctx, bizInfo, changedObj, editObj); } finally { ServiceFactory.CloseService(service); } return(result); }
public static ReportDataEntity Load(Context ctx, Guid reportId, int reportType) { ReportDataEntity entity; IReportOperationService service = ServiceFactory.GetService <IReportOperationService>(ctx); try { entity = service.Load(ctx, reportId, reportType); } finally { ServiceFactory.CloseService(service); } return(entity); }
public static IOperationResult ModifyReportStatus(Context ctx, string rptType, string reportId, string status) { IOperationResult result; IReportOperationService service = ServiceFactory.GetService <IReportOperationService>(ctx); try { result = service.ModifyReportStatus(ctx, rptType, reportId, status); } finally { ServiceFactory.CloseService(service); } return(result); }
public static int GetDefaultBudgetOrgFId(Context ctx) { int defaultBudgetOrgFId; IBudgetOrgEditService service = ServiceFactory.GetService <IBudgetOrgEditService>(ctx); try { defaultBudgetOrgFId = service.GetDefaultBudgetOrgFId(ctx); } finally { ServiceFactory.CloseService(service); } return(defaultBudgetOrgFId); }
public static bool GetIsDeptHasReport(Context ctx, int deptId, int budgetOrgFID) { bool flag; IBudgetOrgEditService service = ServiceFactory.GetService <IBudgetOrgEditService>(ctx); try { flag = service.GetIsDeptHasReport(ctx, deptId, budgetOrgFID); } finally { ServiceFactory.CloseService(service); } return(flag); }
public static IOperationResult UpdateReportStatus(Context ctx, List <int> lstIds, string status) { IOperationResult result; IBudgetReportPlateService service = ServiceFactory.GetService <IBudgetReportPlateService>(ctx); try { result = service.UpdateReportStatus(ctx, lstIds, status); } finally { ServiceFactory.CloseService(service); } return(result); }
public static ReportDataEntity CalculateReport(Context ctx, ReportDataEntity reportDataEntity) { ReportDataEntity entity; ICaculateService service = ServiceFactory.GetService <ICaculateService>(ctx); try { entity = service.CalculateReport(ctx, reportDataEntity); } finally { ServiceFactory.CloseService(service); } return(entity); }
public static bool UpdateDistributeTempStatus(Context ctx, string tempId, string tempStatu) { bool flag; IReportSchemeService service = ServiceFactory.GetService <IReportSchemeService>(ctx); try { flag = service.UpdateDistributeTempStatus(ctx, tempId, tempStatu); } finally { ServiceFactory.CloseService(service); } return(flag); }
public static SheetDataEntity CalculateSheet(Context ctx, BMReportProperty reportProperty, SheetDataEntity sheetDataEntity) { SheetDataEntity entity; ICaculateService service = ServiceFactory.GetService <ICaculateService>(ctx); try { entity = service.CalculateSheet(ctx, reportProperty, sheetDataEntity); } finally { ServiceFactory.CloseService(service); } return(entity); }
public static DynamicObjectCollection GetDetailAndData(Context ctx, string sampleId) { DynamicObjectCollection detailAndData; IReportSchemeService service = ServiceFactory.GetService <IReportSchemeService>(ctx); try { detailAndData = service.GetDetailAndData(ctx, sampleId); } finally { ServiceFactory.CloseService(service); } return(detailAndData); }
public static DynamicObjectCollection GetBudgetPeriod(Context ctx, string fId) { DynamicObjectCollection budgetPeriod; IDistributeService service = ServiceFactory.GetService <IDistributeService>(ctx); try { budgetPeriod = service.GetBudgetPeriod(ctx, fId); } finally { ServiceFactory.CloseService(service); } return(budgetPeriod); }
public static bool GetDistributeByTempId(Context ctx, string tempId) { bool distributeByTempId; IReportSchemeService service = ServiceFactory.GetService <IReportSchemeService>(ctx); try { distributeByTempId = service.GetDistributeByTempId(ctx, tempId); } finally { ServiceFactory.CloseService(service); } return(distributeByTempId); }
public static DateTime GetBudgetReportDate(Context ctx, string newSampleId) { DateTime budgetReportDate; IDistributeService service = ServiceFactory.GetService <IDistributeService>(ctx); try { budgetReportDate = service.GetBudgetReportDate(ctx, newSampleId); } finally { ServiceFactory.CloseService(service); } return(budgetReportDate); }
public static Tuple <bool, int> GetVersionInfo(Context ctx, long reportSchemeId) { Tuple <bool, int> versionInfo; IReportSchemeService service = ServiceFactory.GetService <IReportSchemeService>(ctx); try { versionInfo = service.GetVersionInfo(ctx, reportSchemeId); } finally { ServiceFactory.CloseService(service); } return(versionInfo); }
public static DataTable GetOrgDtByDistrId(Context ctx, string dicDistrId) { DataTable orgDtByDistrId; IDistributeService service = ServiceFactory.GetService <IDistributeService>(ctx); try { orgDtByDistrId = service.GetOrgDtByDistrId(ctx, dicDistrId); } finally { ServiceFactory.CloseService(service); } return(orgDtByDistrId); }
public static bool IsReportSchemeUsed(Context ctx, long reportSchemeId) { bool flag; IReportSchemeService service = ServiceFactory.GetService <IReportSchemeService>(ctx); try { flag = service.IsReportSchemeUsed(ctx, reportSchemeId); } finally { ServiceFactory.CloseService(service); } return(flag); }
public static Tuple <string, bool> GetReportSampleIsMulOrg(Context ctx, string reportSampleId) { Tuple <string, bool> reportSampleIsMulOrg; IDistributeService service = ServiceFactory.GetService <IDistributeService>(ctx); try { reportSampleIsMulOrg = service.GetReportSampleIsMulOrg(ctx, reportSampleId); } finally { ServiceFactory.CloseService(service); } return(reportSampleIsMulOrg); }
public static OperateResult RollBackReportSchemeVersion(Context ctx, long versionGroupId, int toVersion) { OperateResult result; IReportSchemeService service = ServiceFactory.GetService <IReportSchemeService>(ctx); try { result = service.RollBackReportSchemeVersion(ctx, versionGroupId, toVersion); } finally { ServiceFactory.CloseService(service); } return(result); }
public static Dictionary <string, ReportSample> GetSampleCycle(Context ctx, List <string> sampleList) { Dictionary <string, ReportSample> dictionary; IDistributeService service = ServiceFactory.GetService <IDistributeService>(ctx); try { dictionary = service.GetSampleCycle(ctx, sampleList, true); } finally { ServiceFactory.CloseService(service); } return(dictionary); }
public static string CalculateFormula(Context ctx, BMReportProperty reportProperty, string formulaStr) { string str; ICaculateService service = ServiceFactory.GetService <ICaculateService>(ctx); try { str = service.CalculateFormula(ctx, reportProperty, formulaStr); } finally { ServiceFactory.CloseService(service); } return(str); }
public static int SetBudgetReportBeginDate(Context ctx, IList <SchemeEnifyReportBefortSaveDto> saveDtoList) { int num; IDistributeService service = ServiceFactory.GetService <IDistributeService>(ctx); try { num = service.SetBudgetReportBeginDate(ctx, saveDtoList); } finally { ServiceFactory.CloseService(service); } return(num); }
public static bool CheckReportIsExist(Context ctx, BudgetReportEntity budgetReportEntity) { bool flag; IBudgetReportPlateService service = ServiceFactory.GetService <IBudgetReportPlateService>(ctx); try { flag = service.CheckReportIsExist(ctx, budgetReportEntity); } finally { ServiceFactory.CloseService(service); } return(flag); }