public static bool IsCableByCableNumber(int cableid, int customerid) { Cablehistory his = CablehistoryDao.FindFirst(new EqExpression("Cableid", cableid), new EqExpression("Customerid", customerid)); if (his != null) { return(true); } else { return(false); } }
public static bool saveHistory(Cablehistory history) { try { history.Save(); return(true); } catch (Exception ex) { Log.Error(ex.Message); MessageHelper.ShowMessage("E999", ex.Message); return(false); } }
public static Nullable <DateTime> getMigrateDate(int cableid, int cusid) { Cablehistory history = CablehistoryDao.FindFirst(new EqExpression("Cableid", cableid), new EqExpression("Customerid", cusid), new NotNullExpression("Default1")); if (history != null) { //DateTime date = DateTime.Parse(history.Default1).Date; return(history.Default1.Value.Date); } else { return(null); } }