Ejemplo n.º 1
0
        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);
        }
Ejemplo n.º 2
0
        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);
        }
Ejemplo n.º 3
0
        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);
        }
Ejemplo n.º 4
0
        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);
        }
Ejemplo n.º 5
0
        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);
        }
Ejemplo n.º 6
0
        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);
        }
Ejemplo n.º 7
0
        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);
        }
Ejemplo n.º 8
0
        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);
        }
Ejemplo n.º 9
0
        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);
        }
Ejemplo n.º 10
0
        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);
        }
Ejemplo n.º 11
0
        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);
        }
Ejemplo n.º 12
0
        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);
        }
Ejemplo n.º 13
0
        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);
        }
Ejemplo n.º 14
0
        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);
        }
Ejemplo n.º 15
0
        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);
        }
Ejemplo n.º 16
0
        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);
        }
Ejemplo n.º 17
0
        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);
        }
Ejemplo n.º 18
0
        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);
        }
Ejemplo n.º 19
0
        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);
        }
Ejemplo n.º 20
0
        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);
        }
Ejemplo n.º 21
0
        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);
        }
Ejemplo n.º 22
0
        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);
        }
Ejemplo n.º 23
0
        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);
        }
Ejemplo n.º 24
0
        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);
        }
Ejemplo n.º 25
0
        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);
        }
Ejemplo n.º 26
0
        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);
        }
Ejemplo n.º 27
0
        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);
        }
Ejemplo n.º 28
0
        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);
        }
Ejemplo n.º 29
0
        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);
        }
Ejemplo n.º 30
0
        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);
        }