Ejemplo n.º 1
0
        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);
        }
Ejemplo n.º 2
0
        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);
        }
Ejemplo n.º 3
0
        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);
        }
Ejemplo n.º 4
0
        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);
        }
Ejemplo n.º 5
0
        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);
        }
Ejemplo n.º 6
0
        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);
        }