public static string GetSheetBySampleIDSchemeID(Context ctx, string sampleID, string schemeID)
        {
            string        str;
            IBudgetAdjust service = ServiceFactory.GetService <IBudgetAdjust>(ctx);

            try
            {
                str = service.GetSheetBySampleIDSchemeID(ctx, sampleID, schemeID);
            }
            finally
            {
                ServiceFactory.CloseService(service);
            }
            return(str);
        }
        public static Dictionary <string, string> GetBudgetOrgList(Context ctx, string reportId)
        {
            Dictionary <string, string> budgetOrgList;
            IBudgetAdjust service = ServiceFactory.GetService <IBudgetAdjust>(ctx);

            try
            {
                budgetOrgList = service.GetBudgetOrgList(ctx, reportId);
            }
            finally
            {
                ServiceFactory.CloseService(service);
            }
            return(budgetOrgList);
        }
        public static decimal GetBudgetData(Context ctx, BudgetDataEntities entity)
        {
            decimal       budgetData;
            IBudgetAdjust service = ServiceFactory.GetService <IBudgetAdjust>(ctx);

            try
            {
                budgetData = service.GetBudgetData(ctx, entity);
            }
            finally
            {
                ServiceFactory.CloseService(service);
            }
            return(budgetData);
        }
        public DynamicObjectCollection ExecSql(Context ctx, string sql)
        {
            DynamicObjectCollection objects;
            IBudgetAdjust           service = ServiceFactory.GetService <IBudgetAdjust>(ctx);

            try
            {
                objects = service.ExecSql(ctx, sql);
            }
            finally
            {
                ServiceFactory.CloseService(service);
            }
            return(objects);
        }
        public static int CheckReportOrg(Context ctx, string reportId)
        {
            int           num;
            IBudgetAdjust service = ServiceFactory.GetService <IBudgetAdjust>(ctx);

            try
            {
                num = service.CheckReportOrg(ctx, reportId);
            }
            finally
            {
                ServiceFactory.CloseService(service);
            }
            return(num);
        }
        public static bool AutoCreateAdjust(Context ctx, BudgetAdjustModel bam)
        {
            bool          flag;
            IBudgetAdjust service = ServiceFactory.GetService <IBudgetAdjust>(ctx);

            try
            {
                flag = service.AutoCreateAdjust(ctx, bam);
            }
            finally
            {
                ServiceFactory.CloseService(service);
            }
            return(flag);
        }