public static bool isCustomerExis(int Customerid, string Customername) { Customerhistory his = CustomerhistoryDao.FindFirst(new EqExpression("Customerid", Customerid), new EqExpression("Customername", Customername), new EqExpression("Isdeleted", (int)EnmIsdeleted.使用中)); if (his != null) { return(true); } else { return(false); } }
public static Customerhistory[] getHistory(int customerid) { Customerhistory[] historys = CustomerhistoryDao.FindAll(new EqExpression("Customerid", customerid)); return(historys); }