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(); }
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(); }