internal static string GetScript(string catalog, string keyColumn, string customFormUrl, string formGridViewId, string gridPanelId, string userIdHiddenId, string officeCodeHiddenId, string titleLabelId, string formPanelId, string cancelButtonId) { string resource = JSUtility.GetEmbeddedScript("MixERP.Net.WebControls.ScrudFactory.Scrud.js", Assembly.GetExecutingAssembly()); string script = string.Empty; script += JSUtility.GetVar("gridPanelId", gridPanelId); script += JSUtility.GetVar("userIdHiddenId", userIdHiddenId); script += JSUtility.GetVar("formGridViewId", formGridViewId); script += JSUtility.GetVar("officeCodeHiddenId", officeCodeHiddenId); script += JSUtility.GetVar("titleLabelId", titleLabelId); script += JSUtility.GetVar("formPanelId", formPanelId); script += JSUtility.GetVar("cancelButtonId ", cancelButtonId); script += JSUtility.GetVar("reportTemplatePath", PageUtility.ResolveUrl(DbConfig.GetScrudParameter(catalog, "TemplatePath"))); script += JSUtility.GetVar("reportExportTemplatePath", PageUtility.ResolveUrl(DbConfig.GetScrudParameter(catalog, "ExportTemplatePath"))); script += JSUtility.GetVar("reportHeaderPath", PageUtility.ResolveUrl(DbConfig.GetScrudParameter(catalog, "HeaderPath"))); script += JSUtility.GetVar("date", DateTime.Now.ToString(CultureInfo.InvariantCulture)); script += JSUtility.GetVar("keyColumn", keyColumn); script += JSUtility.GetVar("customFormUrl", customFormUrl); script += resource; return(script); }