FormDesign/system/forms/formAjax.cs
(完整代码) 1KBusing System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Data;
using BLL;
using Model;
namespace FormDesign.system.forms
{
public class formAjax
{
BllTbForm bllform = new BllTbForm();
TbForm tbform = new TbForm();
/// <summary>
/// 删除项目
/// </summary>
/// <param name="guid">唯一编码</param>
/// <returns></returns>
[AjaxPro.AjaxMethod]
public bool DelInfoByGuid(Int64 guid)
{
if (bllform.DeleteByPreKey(guid) > 0)
{
return true;
}
else
{
return false;
}
}
/// <summary>
/// 删除项目
/// </summary>
/// <param name="guid"></param>
/// <returns></returns>
[AjaxPro.AjaxMethod]
public bool DelInfoByGuidString(string guid)
{
if (bllform.DeleteBySql("delete from tbform where guid in (" + guid.Replace(";", ",") + ")") > 0)
{
return true;
}
else
{
return false;
}
}
}
}
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
