예제 #1
0
파일: Program.cs 프로젝트: alvaka/ucml
        static void Main(string[] args)
        {
            string        connStr = Util.GetDBConnecString("(local)", "UCMLWEBIDEX", "sa", "goodluck");
            SqlConnection conn    = new SqlConnection(connStr);

            conn.Open();
            //int bpoid = 14356;
            //int bpoid = 14357;
            int            bpoid = 14359;
            BpoPropertySet bps   = PrepareBPS(conn, bpoid);
            UcmlBPO        ubpo  = new UcmlBPO(bps, "UCMLCommon");

            ubpo.CompileMode = false;
            ubpo.SavePath    = @"E:\workspace\goldframe\web_platform\UCMLWebDev\BPObject";
            //ubpo.SavePath = @"E:\workspace\tmp";
            //ubpo.SavePath = @"G:\Workspace\ucml\platform\study\UcmlClass1\BPObject";
            ubpo.VcTabList = PrepareVcTab(conn, bpoid);
            ubpo.BCList    = PrepareBC(conn, bpoid);
            ubpo.SetVCPostion();

            //生成bpo.aspx页面并保存
            ubpo.BuildAspxPage();
            ubpo.SaveAspxPage();

            //生成bpo.aspx.cs 页面并保存
            ubpo.BuildAspxPageCs();
            ubpo.SaveAspxCs();
            //生成bpo.htc 并保存
            ubpo.BuildBpoHtc();
            ubpo.SaveHtc();
            //生成bpoService.asmx
            ubpo.BuildAsmxPage();
            ubpo.SaveAsmxPage();

            ubpo.BuildAsmxCs();
            ubpo.SaveAsmxCs();
            //生成bpodesign.cs
            ubpo.BuildAspxPageDesignCs();
            ubpo.SavePageDesignCs();

            //Console.Write(ubpo.Page.ToString());
            //Console.ReadKey();
        }
예제 #2
0
        static void AssembleBPO(SqlConnection conn, string bpoOID)
        {
            BpoPropertySet bps  = BPOPrepare.GetBPS(conn, bpoOID);
            UcmlBPO        ubpo = new UcmlBPO(bps, "UCMLCommon");

            ubpo.CompileMode = false;
            ubpo.SavePath    = @"E:\workspace\goldframe\web_platform\UCMLWebDev\BPObject";

            ubpo.VcTabList = BPOPrepare.GetVcTab(conn, bpoOID);
            ubpo.BCList    = BPOPrepare.GetBC(conn, bpoOID);
            ubpo.SetVCPostion();

            //生成bpo.aspx页面并保存
            ubpo.BuildAspxPage();
            ubpo.SaveAspxPage();

            //生成bpo.aspx.cs 页面并保存
            ubpo.BuildAspxPageCs();
            ubpo.SaveAspxCs();

            //生成bpo.htc 并保存
            ubpo.BuildBpoHtc();
            ubpo.SaveHtc();

            //生成bpoService.asmx
            ubpo.BuildAsmxPage();
            ubpo.SaveAsmxPage();

            //生成bpoName.asmx.cs
            ubpo.BuildAsmxCs();
            ubpo.SaveAsmxCs();

            //生成bpodesign.cs
            ubpo.BuildAspxPageDesignCs();
            ubpo.SavePageDesignCs();
        }