示例#1
0
        public static EntityData GetConstructPlanStepByProjectYear(string ProjectCode, int IYear)
        {
            EntityData data2;

            try
            {
                ConstructPlanStepStrategyBuilder builder = new ConstructPlanStepStrategyBuilder();
                builder.AddStrategy(new Strategy(ConstructPlanStepStrategyName.ProjectCode, ProjectCode));
                builder.AddStrategy(new Strategy(ConstructPlanStepStrategyName.IYear, IYear.ToString()));
                string     queryString = builder.BuildMainQueryString();
                QueryAgent agent       = new QueryAgent();
                EntityData data        = agent.FillEntityData("ConstructPlanStep", queryString);
                agent.Dispose();
                data2 = data;
            }
            catch (Exception exception)
            {
                throw exception;
            }
            return(data2);
        }
示例#2
0
        public static EntityData GetConstructPlanStepByPBSUnit(string PBSUnitCode)
        {
            EntityData data2;

            try
            {
                ConstructPlanStepStrategyBuilder builder = new ConstructPlanStepStrategyBuilder();
                builder.AddStrategy(new Strategy(ConstructPlanStepStrategyName.PBSUnitCode, PBSUnitCode));
                builder.AddOrder("IYear", true);
                string     queryString = builder.BuildMainQueryString();
                QueryAgent agent       = new QueryAgent();
                EntityData data        = agent.FillEntityData("ConstructPlanStep", queryString);
                agent.Dispose();
                data2 = data;
            }
            catch (Exception exception)
            {
                throw exception;
            }
            return(data2);
        }