Esempio n. 1
0
        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);
            }
        }
Esempio n. 2
0
 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);
     }
 }
Esempio n. 3
0
        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);
            }
        }