13,189
社区成员
发帖
与我相关
我的任务
分享 public static bool IsHave(string ID, string Type)
{
object[] nameAndpw = new object[2];
nameAndpw[0] = ID;
nameAndpw[1] = Type;
return Exists(typeof(EquInfo), "C_ID=? and C_Type=?", nameAndpw);
} public static IList<EquInfo> FindEquInfoByIDAndOrgID(string ID, string OrganID)
{
object[] nameAndpw = new object[2];
nameAndpw[0] = ID;
nameAndpw[1] = OrganID;
SimpleQuery query = new SimpleQuery(typeof(EquInfo), "From T_EquInfo as n where n.C_ID=? and n.C_OrganID=?",nameAndpw);
return (IList<EquInfo>)ExecuteQuery(query);
}