示例#1
0
文件: Program.cs 项目: alvaka/ucml
 static void GenEditPageSource(SqlConnection conn,string vcOID,string vcName,string bcOID)
 {
     VcSourceGenner editForm = new VcSourceGenner(vcName);
     editForm.Kind = 165;
     editForm.PrepareData(conn, vcOID, bcOID);
     string htmlSrc = editForm.GetEditPageSource(3);
     Console.WriteLine(htmlSrc);
     string upSql = "update AppletDataSet set TargetHTMLSource='" + htmlSrc + "',HTMLSource='" + htmlSrc + "' where AppletDataSetOID='" + vcOID + "'";
     SqlCommand cmd = new SqlCommand(upSql, conn);
     int ret = cmd.ExecuteNonQuery();
 }
示例#2
0
        static void GenEditPageSource(SqlConnection conn, string vcOID, string vcName, string bcOID)
        {
            VcSourceGenner editForm = new VcSourceGenner(vcName);

            editForm.Kind = 165;
            editForm.PrepareData(conn, vcOID, bcOID);
            string htmlSrc = editForm.GetEditPageSource(3);

            Console.WriteLine(htmlSrc);
            string     upSql = "update AppletDataSet set TargetHTMLSource='" + htmlSrc + "',HTMLSource='" + htmlSrc + "' where AppletDataSetOID='" + vcOID + "'";
            SqlCommand cmd   = new SqlCommand(upSql, conn);
            int        ret   = cmd.ExecuteNonQuery();
        }