예제 #1
0
 public DataTable GetNewLog(OnlineUserInfo onlineUserInfo_0)
 {
     DateTime newLogTime = onlineUserInfo_0.NewLogTime;
     DataTable data = this.upBuffer_0.GetData(ref newLogTime);
     onlineUserInfo_0.NewLogTime = newLogTime;
     return data;
 }
예제 #2
0
 public DataTable GetPictureData(OnlineUserInfo onlineUserInfo_0, ref DateTime dateTime_0)
 {
     onlineUserInfo_0.NewPicTime = dateTime_0;
     DataTable pictureData = this.upBuffer_3.GetPictureData(onlineUserInfo_0);
     dateTime_0 = onlineUserInfo_0.NewPicTime;
     return pictureData;
 }
예제 #3
0
 public DataTable GetData(OnlineUserInfo onlineUserInfo_0)
 {
     if (this.bool_0)
     {
         this.manualResetEvent_0.WaitOne();
         this.bool_0 = false;
     }
     if ((this.dictionary_0.Count <= 0) || (this.dictionary_0[onlineUserInfo_0.UserId] == null))
     {
         return null;
     }
     DataTable table = null;
     DateTime newOtherDataTime = onlineUserInfo_0.NewOtherDataTime;
     DataTable data = this.upBuffer_1.GetData(ref newOtherDataTime);
     onlineUserInfo_0.NewOtherDataTime = newOtherDataTime;
     table = data.Clone();
     foreach (DataRow row in data.Rows)
     {
         int num = Convert.ToInt32(row["CarId"]);
         if (this.dictionary_0[onlineUserInfo_0.UserId].ToString().IndexOf("," + num + ",") >= 0)
         {
             table.ImportRow(row);
         }
     }
     return table;
 }
예제 #4
0
        public DataTable GetData(OnlineUserInfo onlineUserInfo_0)
        {
            if (this.bool_0)
            {
                this.manualResetEvent_0.WaitOne();
                this.bool_0 = false;
            }
            if ((this.dictionary_0.Count <= 0) || (this.dictionary_0[onlineUserInfo_0.UserId] == null))
            {
                return(null);
            }
            DataTable table            = null;
            DateTime  newOtherDataTime = onlineUserInfo_0.NewOtherDataTime;
            DataTable data             = this.upBuffer_1.GetData(ref newOtherDataTime);

            onlineUserInfo_0.NewOtherDataTime = newOtherDataTime;
            table = data.Clone();
            foreach (DataRow row in data.Rows)
            {
                int num = Convert.ToInt32(row["CarId"]);
                if (this.dictionary_0[onlineUserInfo_0.UserId].ToString().IndexOf("," + num + ",") >= 0)
                {
                    table.ImportRow(row);
                }
            }
            return(table);
        }
예제 #5
0
        public DataTable GetNewLog(OnlineUserInfo onlineUserInfo_0)
        {
            DateTime  newLogTime = onlineUserInfo_0.NewLogTime;
            DataTable data       = this.upBuffer_0.GetData(ref newLogTime);

            onlineUserInfo_0.NewLogTime = newLogTime;
            return(data);
        }
예제 #6
0
        public DataTable GetPictureData(OnlineUserInfo onlineUserInfo_0, ref DateTime dateTime_0)
        {
            onlineUserInfo_0.NewPicTime = dateTime_0;
            DataTable pictureData = this.upBuffer_3.GetPictureData(onlineUserInfo_0);

            dateTime_0 = onlineUserInfo_0.NewPicTime;
            return(pictureData);
        }
예제 #7
0
 public DownDataXCJLY(int int_0, bool bool_3, bool bool_4, bool bool_5, OnlineUserInfo onlineUserInfo_0)
 {
     base.errMsg.ClassName    = base.alarmMsg.ClassName = base.logMsg.ClassName = "DownDataXCJLY";
     base.WorkId              = int_0;
     base.IsSudoOverDue       = bool_4;
     base.IsMultiSend         = bool_5;
     base.IsAllowNullPassWord = bool_3;
     base.userInfo            = onlineUserInfo_0;
 }
예제 #8
0
파일: DownData.cs 프로젝트: lexzh/Myproject
 public DownData(int int_0, bool bool_3, bool bool_4, bool bool_5, OnlineUserInfo onlineUserInfo_0)
 {
     base.errMsg.ClassName = base.alarmMsg.ClassName = base.logMsg.ClassName = "DownData";
     base.WorkId = int_0;
     base.IsSudoOverDue = bool_4;
     base.IsMultiSend = bool_5;
     base.IsAllowNullPassWord = bool_3;
     base.userInfo = onlineUserInfo_0;
 }
예제 #9
0
 public RemotingServer(UserInfoEntity userInfo, string UserId, int ModuleId)
 {
     this._RemotingState = new RemotingState();
     this.myAlarm = new Alarm();
     this.myCar = new Car();
     this.m_LogHelper = new LogHelper();
     this._DataCSList = new RemotingDataCS();
     this._DataBSList = new RemotingDataBS();
     this._OnlineUserInfo = new OnlineUserInfo(userInfo.WorkId, UserId, userInfo.GroupId, ModuleId, userInfo.AllowSelMutil, userInfo.AllowEmptyPw, userInfo.SudoOverDue, userInfo.RoadTransportID, userInfo.AreaCode);
     this.myDownData = new DownData(userInfo.WorkId, userInfo.AllowEmptyPw, userInfo.SudoOverDue, userInfo.AllowSelMutil, this._OnlineUserInfo);
     this.myDownDataYD = new DownDataFJYD(userInfo.WorkId, userInfo.AllowEmptyPw, userInfo.SudoOverDue, userInfo.AllowSelMutil, this._OnlineUserInfo);
     this.myDownDataDB44 = new DownDataXCJLY(userInfo.WorkId, userInfo.AllowEmptyPw, userInfo.SudoOverDue, userInfo.AllowSelMutil, this._OnlineUserInfo);
     this.myDownDataPass = new DownDataPassThrough(userInfo.WorkId, userInfo.AllowEmptyPw, userInfo.SudoOverDue, userInfo.AllowSelMutil, this._OnlineUserInfo);
 }
예제 #10
0
 public RemotingServer(int workId, string UserId, int GroupId, int ModuleId, bool AllowSelMutil, bool AllowEmptyPw, bool SudoOverDue)
 {
     this._RemotingState = new RemotingState();
     this.myAlarm = new Alarm();
     this.myCar = new Car();
     this.m_LogHelper = new LogHelper();
     this._DataCSList = new RemotingDataCS();
     this._DataBSList = new RemotingDataBS();
     this._OnlineUserInfo = new OnlineUserInfo(workId, UserId, GroupId, ModuleId, AllowSelMutil, AllowEmptyPw, SudoOverDue, "");
     this.myDownData = new DownData(workId, AllowEmptyPw, SudoOverDue, AllowSelMutil, this._OnlineUserInfo);
     this.myDownDataYD = new DownDataFJYD(workId, AllowEmptyPw, SudoOverDue, AllowSelMutil, this._OnlineUserInfo);
     this.myDownDataDB44 = new DownDataXCJLY(workId, AllowEmptyPw, SudoOverDue, AllowSelMutil, this._OnlineUserInfo);
     this.myDownDataPass = new DownDataPassThrough(workId, AllowEmptyPw, SudoOverDue, AllowSelMutil, this._OnlineUserInfo);
 }
예제 #11
0
파일: UpBuffer.cs 프로젝트: lexzh/Myproject
        public DataTable GetAlarmData(OnlineUserInfo onlineUserInfo_0)
        {
            DataTable cloneDataTableColumn = UpdataStruct.CloneDataTableColumn;
            DateTime  newAlarmTime         = onlineUserInfo_0.NewAlarmTime;
            int       num    = 0;
            DataTable table2 = null;

            try
            {
                this.readerWriterLock_0.AcquireReaderLock(0x1388);
                try
                {
                    foreach (DateTime time2 in this.hashtable_0.Keys)
                    {
                        if (newAlarmTime.CompareTo(time2) < 0)
                        {
                            if (onlineUserInfo_0.NewAlarmTime.CompareTo(time2) == -1)
                            {
                                onlineUserInfo_0.NewAlarmTime = time2;
                            }
                            table2 = this.hashtable_0[time2] as DataTable;
                            foreach (DataRow row in table2.Rows)
                            {
                                if (row["carId"] != DBNull.Value)
                                {
                                    num = Convert.ToInt32(row["carId"]);
                                    if (onlineUserInfo_0.UserCarId.IsExistCarID(num))
                                    {
                                        cloneDataTableColumn.Rows.Add(row.ItemArray);
                                    }
                                }
                            }
                        }
                    }
                    return(cloneDataTableColumn);
                }
                finally
                {
                    this.readerWriterLock_0.ReleaseReaderLock();
                }
            }
            catch (ApplicationException)
            {
            }
            return(cloneDataTableColumn);
        }
예제 #12
0
        public DataTable GetData(OnlineUserInfo onlineUserInfo_0)
        {
            DataTable datByWorkId = null;

            if (this.IsOpened)
            {
                datByWorkId = this.upBuffer_0.GetDataByWorkId(onlineUserInfo_0.WorkId);
                DateTime  newLogIOTime = onlineUserInfo_0.NewLogIOTime;
                DataTable data         = this.upBuffer_1.GetData(ref newLogIOTime);
                onlineUserInfo_0.NewLogIOTime = newLogIOTime;
                if ((data != null) && (data.Rows.Count > 0))
                {
                    datByWorkId.Merge(data);
                }
            }
            return(datByWorkId);
        }
예제 #13
0
파일: UpBuffer.cs 프로젝트: lexzh/Myproject
        public DataTable GetPictureData(OnlineUserInfo onlineUserInfo_0)
        {
            DataTable cloneDataTableColumn = UpdataStruct.CloneDataTableColumn;
            DateTime  newPicTime           = onlineUserInfo_0.NewPicTime;
            DataTable table2 = null;

            try
            {
                this.readerWriterLock_0.AcquireReaderLock(0x1388);
                try
                {
                    foreach (DateTime time2 in this.hashtable_0.Keys)
                    {
                        if (newPicTime.CompareTo(time2) < 0)
                        {
                            if (onlineUserInfo_0.NewPicTime.CompareTo(time2) == -1)
                            {
                                onlineUserInfo_0.NewPicTime = time2;
                            }
                            table2 = this.hashtable_0[time2] as DataTable;
                            foreach (DataRow row in table2.Rows)
                            {
                                if ((((row["carId"] != DBNull.Value) && onlineUserInfo_0.UserCarId.IsExistCarID(Convert.ToInt32(row["carId"]))) && ((row["SimNum"] != DBNull.Value) && (row["status"] != DBNull.Value))) && (this.method_0(long.Parse(row["status"].ToString())) || onlineUserInfo_0.CarFilter.CarFilterList.ContainsKey(row["SimNum"] as string)))
                                {
                                    cloneDataTableColumn.Rows.Add(row.ItemArray);
                                }
                            }
                        }
                    }
                    return(cloneDataTableColumn);
                }
                finally
                {
                    this.readerWriterLock_0.ReleaseReaderLock();
                }
            }
            catch (ApplicationException)
            {
            }
            return(cloneDataTableColumn);
        }
예제 #14
0
 public DataTable GetAlarmData(OnlineUserInfo onlineUserInfo_0)
 {
     return(this.upBuffer_1.GetAlarmData(onlineUserInfo_0));
 }
예제 #15
0
 public DataTable GetAlarmData(OnlineUserInfo onlineUserInfo_0)
 {
     return this.upBuffer_1.GetAlarmData(onlineUserInfo_0);
 }
예제 #16
0
 public DataTable GetNewLogExt(OnlineUserInfo onlineUserInfo_0)
 {
     return this.upBuffer_2.GetDataByWorkId(onlineUserInfo_0.WorkId);
 }
예제 #17
0
 public DataTable GetPictureData(OnlineUserInfo onlineUserInfo_0)
 {
     return this.upBuffer_3.GetPictureData(onlineUserInfo_0);
 }
예제 #18
0
 public DataTable GetPictureData(OnlineUserInfo onlineUserInfo_0)
 {
     return(this.upBuffer_3.GetPictureData(onlineUserInfo_0));
 }
예제 #19
0
 public DataTable GetNewLogExt(OnlineUserInfo onlineUserInfo_0)
 {
     return(this.upBuffer_2.GetDataByWorkId(onlineUserInfo_0.WorkId));
 }
예제 #20
0
 public DataTable GetData(OnlineUserInfo onlineUserInfo_0)
 {
     DataTable datByWorkId = null;
     if (this.IsOpened)
     {
         datByWorkId = this.upBuffer_0.GetDataByWorkId(onlineUserInfo_0.WorkId);
         DateTime newLogIOTime = onlineUserInfo_0.NewLogIOTime;
         DataTable data = this.upBuffer_1.GetData(ref newLogIOTime);
         onlineUserInfo_0.NewLogIOTime = newLogIOTime;
         if ((data != null) && (data.Rows.Count > 0))
         {
             datByWorkId.Merge(data);
         }
     }
     return datByWorkId;
 }
예제 #21
0
파일: UpBuffer.cs 프로젝트: lexzh/Myproject
 public DataTable GetAlarmData(OnlineUserInfo onlineUserInfo_0)
 {
     DataTable cloneDataTableColumn = UpdataStruct.CloneDataTableColumn;
     DateTime newAlarmTime = onlineUserInfo_0.NewAlarmTime;
     int num = 0;
     DataTable table2 = null;
     try
     {
         this.readerWriterLock_0.AcquireReaderLock(0x1388);
         try
         {
             foreach (DateTime time2 in this.hashtable_0.Keys)
             {
                 if (newAlarmTime.CompareTo(time2) < 0)
                 {
                     if (onlineUserInfo_0.NewAlarmTime.CompareTo(time2) == -1)
                     {
                         onlineUserInfo_0.NewAlarmTime = time2;
                     }
                     table2 = this.hashtable_0[time2] as DataTable;
                     foreach (DataRow row in table2.Rows)
                     {
                         if (row["carId"] != DBNull.Value)
                         {
                             num = Convert.ToInt32(row["carId"]);
                             if (onlineUserInfo_0.UserCarId.IsExistCarID(num))
                             {
                                 cloneDataTableColumn.Rows.Add(row.ItemArray);
                             }
                         }
                     }
                 }
             }
             return cloneDataTableColumn;
         }
         finally
         {
             this.readerWriterLock_0.ReleaseReaderLock();
         }
     }
     catch (ApplicationException)
     {
     }
     return cloneDataTableColumn;
 }
예제 #22
0
파일: UpBuffer.cs 프로젝트: lexzh/Myproject
 public DataTable GetPictureData(OnlineUserInfo onlineUserInfo_0)
 {
     DataTable cloneDataTableColumn = UpdataStruct.CloneDataTableColumn;
     DateTime newPicTime = onlineUserInfo_0.NewPicTime;
     DataTable table2 = null;
     try
     {
         this.readerWriterLock_0.AcquireReaderLock(0x1388);
         try
         {
             foreach (DateTime time2 in this.hashtable_0.Keys)
             {
                 if (newPicTime.CompareTo(time2) < 0)
                 {
                     if (onlineUserInfo_0.NewPicTime.CompareTo(time2) == -1)
                     {
                         onlineUserInfo_0.NewPicTime = time2;
                     }
                     table2 = this.hashtable_0[time2] as DataTable;
                     foreach (DataRow row in table2.Rows)
                     {
                         if ((((row["carId"] != DBNull.Value) && onlineUserInfo_0.UserCarId.IsExistCarID(Convert.ToInt32(row["carId"]))) && ((row["SimNum"] != DBNull.Value) && (row["status"] != DBNull.Value))) && (this.method_0(long.Parse(row["status"].ToString())) || onlineUserInfo_0.CarFilter.CarFilterList.ContainsKey(row["SimNum"] as string)))
                         {
                             cloneDataTableColumn.Rows.Add(row.ItemArray);
                         }
                     }
                 }
             }
             return cloneDataTableColumn;
         }
         finally
         {
             this.readerWriterLock_0.ReleaseReaderLock();
         }
     }
     catch (ApplicationException)
     {
     }
     return cloneDataTableColumn;
 }