Ejemplo n.º 1
0
        //---- for calibrations report
        private DataTable LoadDS_CNext()
        {
            DeviceDataManager DDM = new DeviceDataManager();

            var result = from item in DDM.selectNextCalibrations() where item.plannedDate > DateTime.Now select item;

            Utility   objUtility = new Utility();
            DataTable dt         = new DataTable();

            dt = objUtility.LINQToDataTable(result);

            return(dt.DefaultView.Table);
        }
Ejemplo n.º 2
0
 public List <wsCalibration> ws_selectNextCalibrations(out string OpStatus)
 {
     try
     {
         OpStatus = "Выполнено";
         DeviceDataManager DDM = new DeviceDataManager();
         return(DDM.selectNextCalibrations());
     }
     catch (Exception err)
     {
         OpStatus = err.Message.ToString();
         return(null);
     }
 }
Ejemplo n.º 3
0
 public List<wsCalibration> ws_selectNextCalibrations(out string OpStatus)
 {
     try
     {
         OpStatus = "Выполнено";
         DeviceDataManager DDM = new DeviceDataManager();
         return DDM.selectNextCalibrations();
     }
     catch (Exception err)
     {
         OpStatus = err.Message.ToString();
         return null;
     }
 }
Ejemplo n.º 4
0
        //---- for calibrations report
        private DataTable LoadDS_CNext()
        {
            DeviceDataManager DDM = new DeviceDataManager();

            var result = from item in DDM.selectNextCalibrations() where item.plannedDate > DateTime.Now select item;

            Utility objUtility = new Utility();
            DataTable dt = new DataTable();
            dt = objUtility.LINQToDataTable(result);

            return dt.DefaultView.Table;
        }