public void FromCustomObject(SqlConnection con, IntPtr pUdt) { if (ID != null) { SqlUdt.SetValue(con, pUdt, "ID", ID.ToSqlValue()); } if (CheckNo != null) { SqlUdt.SetValue(con, pUdt, "CheckNo", CheckNo.ToSqlValue()); } if (CheckType != null) { SqlUdt.SetValue(con, pUdt, "CheckType", CheckType.ToSqlValue()); } if (DutyUser != null) { SqlUdt.SetValue(con, pUdt, "DutyUser", DutyUser.ToSqlValue()); } if (CheckDesc != null) { SqlUdt.SetValue(con, pUdt, "CheckDesc", CheckDesc.ToSqlValue()); } if (CheckStatus != null) { SqlUdt.SetValue(con, pUdt, "CheckStatus", CheckStatus.ToSqlValue()); } if (BeginTime != null) { SqlUdt.SetValue(con, pUdt, "BeginTime", BeginTime.ToSqlValue()); } if (DoneTime != null) { SqlUdt.SetValue(con, pUdt, "DoneTime", DoneTime.ToSqlValue()); } if (Remarks != null) { SqlUdt.SetValue(con, pUdt, "Remarks", Remarks.ToSqlValue()); } if (IsDel != null) { SqlUdt.SetValue(con, pUdt, "IsDel", IsDel.ToSqlValue()); } if (Creater != null) { SqlUdt.SetValue(con, pUdt, "Creater", Creater.ToSqlValue()); } if (CreateTime != null) { SqlUdt.SetValue(con, pUdt, "CreateTime", CreateTime.ToSqlValue()); } if (Modifyer != null) { SqlUdt.SetValue(con, pUdt, "Modifyer", Modifyer.ToSqlValue()); } if (ModifyTime != null) { SqlUdt.SetValue(con, pUdt, "ModifyTime", ModifyTime.ToSqlValue()); } }
public void MergeFrom(SearchCatalogResult other) { if (other == null) { return; } if (other.SearchResultType != global::Google.Cloud.DataCatalog.V1.SearchResultType.Unspecified) { SearchResultType = other.SearchResultType; } if (other.SearchResultSubtype.Length != 0) { SearchResultSubtype = other.SearchResultSubtype; } if (other.RelativeResourceName.Length != 0) { RelativeResourceName = other.RelativeResourceName; } if (other.LinkedResource.Length != 0) { LinkedResource = other.LinkedResource; } if (other.modifyTime_ != null) { if (modifyTime_ == null) { ModifyTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); } ModifyTime.MergeFrom(other.ModifyTime); } if (other.FullyQualifiedName.Length != 0) { FullyQualifiedName = other.FullyQualifiedName; } if (other.DisplayName.Length != 0) { DisplayName = other.DisplayName; } if (other.Description.Length != 0) { Description = other.Description; } switch (other.SystemCase) { case SystemOneofCase.IntegratedSystem: IntegratedSystem = other.IntegratedSystem; break; case SystemOneofCase.UserSpecifiedSystem: UserSpecifiedSystem = other.UserSpecifiedSystem; break; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); }
public override int GetHashCode() { int hash = 1; if (SearchResultType != global::Google.Cloud.DataCatalog.V1.SearchResultType.Unspecified) { hash ^= SearchResultType.GetHashCode(); } if (SearchResultSubtype.Length != 0) { hash ^= SearchResultSubtype.GetHashCode(); } if (RelativeResourceName.Length != 0) { hash ^= RelativeResourceName.GetHashCode(); } if (LinkedResource.Length != 0) { hash ^= LinkedResource.GetHashCode(); } if (modifyTime_ != null) { hash ^= ModifyTime.GetHashCode(); } if (systemCase_ == SystemOneofCase.IntegratedSystem) { hash ^= IntegratedSystem.GetHashCode(); } if (systemCase_ == SystemOneofCase.UserSpecifiedSystem) { hash ^= UserSpecifiedSystem.GetHashCode(); } if (FullyQualifiedName.Length != 0) { hash ^= FullyQualifiedName.GetHashCode(); } if (DisplayName.Length != 0) { hash ^= DisplayName.GetHashCode(); } if (Description.Length != 0) { hash ^= Description.GetHashCode(); } hash ^= (int)systemCase_; if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return(hash); }
public override int GetHashCode() { unchecked { var hashCode = base.GetHashCode(); hashCode = (hashCode * 397) ^ (Title != null ? Title.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (Account != null ? Account.GetHashCode() : 0); hashCode = (hashCode * 397) ^ PublishTime.GetHashCode(); hashCode = (hashCode * 397) ^ ModifyTime.GetHashCode(); hashCode = (hashCode * 397) ^ (Image != null ? Image.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (Text != null ? Text.GetHashCode() : 0); return(hashCode); } }
public override int GetHashCode() { unchecked { var hashCode = base.GetHashCode(); hashCode = (hashCode * 397) ^ CreateTime.GetHashCode(); hashCode = (hashCode * 397) ^ ModifyTime.GetHashCode(); hashCode = (hashCode * 397) ^ (Photo != null ? Photo.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (FirstName != null ? FirstName.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (LastName != null ? LastName.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (Nickname != null ? Nickname.GetHashCode() : 0); hashCode = (hashCode * 397) ^ Birthday.GetHashCode(); hashCode = (hashCode * 397) ^ (Email != null ? Email.GetHashCode() : 0); return(hashCode); } }
internal void Write(XdrDataWriter writer) { writer.Write(SetMode); if (SetMode) { writer.Write((int)Mode); } writer.Write(SetUid); if (SetUid) { writer.Write(Uid); } writer.Write(SetGid); if (SetGid) { writer.Write(Gid); } writer.Write(SetSize); if (SetSize) { writer.Write(Size); } writer.Write((int)SetAccessTime); if (SetAccessTime == Nfs3SetTimeMethod.ClientTime) { AccessTime.Write(writer); } writer.Write((int)SetModifyTime); if (SetModifyTime == Nfs3SetTimeMethod.ClientTime) { ModifyTime.Write(writer); } }
public void FromCustomObject(SqlConnection con, IntPtr pUdt) { SqlUdt.SetValue(con, pUdt, "ID", ID.ToSqlValue()); SqlUdt.SetValue(con, pUdt, "CheckID", CheckID.ToSqlValue()); SqlUdt.SetValue(con, pUdt, "WarehouseNo", WarehouseNo.ToSqlValue()); SqlUdt.SetValue(con, pUdt, "HouseNo", HouseNo.ToSqlValue()); SqlUdt.SetValue(con, pUdt, "AreaNo", AreaNo.ToSqlValue()); SqlUdt.SetValue(con, pUdt, "MaterialNo", MaterialNo.ToSqlValue()); SqlUdt.SetValue(con, pUdt, "MaterialDesc", MaterialDesc.ToSqlValue()); SqlUdt.SetValue(con, pUdt, "AccountQty", AccountQty.ToSqlValue()); SqlUdt.SetValue(con, pUdt, "ScanQty", ScanQty.ToSqlValue()); SqlUdt.SetValue(con, pUdt, "Status", Status.ToSqlValue()); SqlUdt.SetValue(con, pUdt, "StockTime", StockTime.ToSqlValue()); SqlUdt.SetValue(con, pUdt, "Operator", Operator.ToSqlValue()); SqlUdt.SetValue(con, pUdt, "OperationTime", OperationTime.ToSqlValue()); SqlUdt.SetValue(con, pUdt, "ProfitLoss", ProfitLoss.ToSqlValue()); SqlUdt.SetValue(con, pUdt, "DifferenceQty", DifferenceQty.ToSqlValue()); SqlUdt.SetValue(con, pUdt, "IsDel", IsDel.ToSqlValue()); SqlUdt.SetValue(con, pUdt, "Creater", Creater.ToSqlValue()); SqlUdt.SetValue(con, pUdt, "CreateTime", CreateTime.ToSqlValue()); SqlUdt.SetValue(con, pUdt, "Modifyer", Modifyer.ToSqlValue()); SqlUdt.SetValue(con, pUdt, "ModifyTime", ModifyTime.ToSqlValue()); }
protected bool Equals(NoteDTO other) { return(base.Equals(other) && Title == other.Title && Equals(Account, other.Account) && PublishTime.Equals(other.PublishTime) && ModifyTime.Equals(other.ModifyTime) && Equals(Image, other.Image) && Text == other.Text); }
protected bool Equals(AccountDTO other) { return(base.Equals(other) && CreateTime.Equals(other.CreateTime) && ModifyTime.Equals(other.ModifyTime) && Equals(Photo, other.Photo) && FirstName == other.FirstName && LastName == other.LastName && Nickname == other.Nickname && Birthday.Equals(other.Birthday) && Email == other.Email); }
internal void Write(XdrDataWriter writer) { writer.Write(Size); ModifyTime.Write(writer); ChangeTime.Write(writer); }
public string ReturnMessageRegister(int dayID, int timeID, int roomID, List <ListClass> listClass) { List <int> listCount = new List <int>(); List <Room> listRoom = new ModifyRoom().GetList(); List <Time> listTime = new ModifyTime().GetList(); List <Day> listDay = new ModifyDay().GetList(); if (CheckExist(dayID, timeID, roomID, listClass)) { string fail = "Đăng ký thất bại\n"; if (CheckRoom(dayID, timeID, roomID, listClass)) { string s = fail + new ModifyDay().GetDayByID(dayID) + " ," + new ModifyTime().GetTimeByID(timeID) + " còn các phòng: "; for (int i = 0; i < listClass.Count(); i++) { if (listClass[i].dayID == dayID && listClass[i].timeID == timeID && (listClass[i].statusID == 1 || listClass[i].statusID == 2 || listClass[i].statusID == 3)) { listCount.Add(listClass[i].roomID); } } for (int i = 0; i < listRoom.Count(); i++) { bool check = true; for (int j = 0; j < listCount.Count(); j++) { if (listRoom[i].ID == listCount[j]) { check = false; break; } } if (check == true) { s += listRoom[i].Name + ", "; } } return(s); } else { if (CheckTime(dayID, timeID, roomID, listClass)) { string s = fail + new ModifyDay().GetDayByID(dayID) + " , Phòng " + new ModifyRoom().GetRoomByID(roomID) + " còn các ca: "; for (int i = 0; i < listClass.Count(); i++) { if (listClass[i].dayID == dayID && listClass[i].roomID == roomID && (listClass[i].statusID == 1 || listClass[i].statusID == 2 || listClass[i].statusID == 3)) { listCount.Add(listClass[i].timeID); } } for (int i = 0; i < listTime.Count(); i++) { bool check = true; for (int j = 0; j < listCount.Count(); j++) { if (listRoom[i].ID == listCount[j]) { check = false; break; } } if (check == true) { s += listTime[i].Name + ", "; } } return(s); } else { if (CheckDay(dayID, timeID, roomID, listClass)) { string s = fail + new ModifyTime().GetTimeByID(timeID) + ", Phòng " + new ModifyRoom().GetRoomByID(roomID) + " còn các ngày: "; for (int i = 0; i < listClass.Count(); i++) { if (listClass[i].timeID == timeID && listClass[i].roomID == roomID && (listClass[i].statusID == 1 || listClass[i].statusID == 2 || listClass[i].statusID == 3)) { listCount.Add(listClass[i].dayID); } } for (int i = 0; i < listDay.Count(); i++) { bool check = true; for (int j = 0; j < listCount.Count(); j++) { if (listDay[i].ID == listCount[j]) { check = false; break; } } if (check == true) { s += listDay[i].Name + ", "; } } return(s); } else { return("Lớp học đã được đăng ký"); } } } } else { return("Lớp học đã được đăng ký"); } }