public override int GetHashCode() { int hash = 1; if (Id1 != 0) { hash ^= Id1.GetHashCode(); } if (Id2 != 0) { hash ^= Id2.GetHashCode(); } if (Username.Length != 0) { hash ^= Username.GetHashCode(); } if (Passwd.Length != 0) { hash ^= Passwd.GetHashCode(); } if (Ver.Length != 0) { hash ^= Ver.GetHashCode(); } if (Json.Length != 0) { hash ^= Json.GetHashCode(); } return(hash); }
public override int GetHashCode() { int hashCode = 0; hashCode = hashCode ^ Id1.GetHashCode() ^ Id2.GetHashCode() ^ Id3.GetHashCode(); return(hashCode); }
public IS2 Calculate( IS2ParameterElementFactory S2ParameterElementFactory, IS2Factory S2Factory, Id1 d1, Id2 d2, Ir r, It t, Ird1d2 rd1d2, IW W, Ix x, IΔ Δ) { return(S2Factory.Create( rd1d2.Value .Where(i => i.d1IndexElement.Value.Value.Value != i.d2IndexElement.Value.Value.Value) // rd1d2t1 .SelectMany(b => t.GetNthElementsAt( b.d1IndexElement.Value.Value.Value, t.GetT() - W.Value.Value.Value + b.d1IndexElement.Value.Value.Value, W.Value.Value.Value), (a, b) => Tuple.Create(a.rIndexElement, a.d1IndexElement, a.d2IndexElement, b)) // rd1d2t1t2 .SelectMany(b => t.GetNthElementsAt( b.Item3.Value.Value.Value, t.GetT() - W.Value.Value.Value + b.Item3.Value.Value.Value, W.Value.Value.Value), (a, b) => Tuple.Create(a.Item1, a.Item2, a.Item3, a.Item4, b)) .Select( i => Tuple.Create( i.Item1, i.Item2, i.Item3, i.Item4, i.Item5, // x(j, r, t) x.Value .Where(j => j.Value.Value.Value) .Select(j => Tuple.Create( Δ.GetSurgicalSpecialtyOfSurgeon(j.sIndexElement), j.rIndexElement, j.tIndexElement)) .Where(j => j.Item2 == i.Item1) .Select(j => j.Item1) .Distinct() .Count())) .Where(i => i.Item6 == 1) .Select(i => S2ParameterElementFactory .Create( i.Item1, i.Item2, i.Item3)) .ToImmutableList())); }
/// <summary> /// Updated the beacon PID; The ID 1 (without dashes) + 5 digits ID 2 /// (padded with zeros) + 5 digits ID 3 (padded with zeros). /// </summary> private void UpdatePid() { string template = "00000"; string beaconId2 = Id2.ToString(); string beaconId3 = Id3.ToString(); beaconId2 = template.Substring(beaconId2.Length) + beaconId2; beaconId3 = template.Substring(beaconId3.Length) + beaconId3; string pid = Id1.Replace(HexStringSeparator.ToString(), string.Empty) + beaconId2 + beaconId3; Pid = pid.ToLower(); }
public override int GetHashCode() { int hash = 1; if (Id1 != 0) { hash ^= Id1.GetHashCode(); } if (Id2 != 0) { hash ^= Id2.GetHashCode(); } if (Res != 0) { hash ^= Res.GetHashCode(); } if (Lastgsid != 0) { hash ^= Lastgsid.GetHashCode(); } if (Lastgsname.Length != 0) { hash ^= Lastgsname.GetHashCode(); } hash ^= gslist_.GetHashCode(); if (Reason.Length != 0) { hash ^= Reason.GetHashCode(); } if (Time != 0) { hash ^= Time.GetHashCode(); } if (Json.Length != 0) { hash ^= Json.GetHashCode(); } if (Remainsec != 0) { hash ^= Remainsec.GetHashCode(); } if (Username.Length != 0) { hash ^= Username.GetHashCode(); } if (Ontime != 0) { hash ^= Ontime.GetHashCode(); } return(hash); }
public Constraints5ConstraintElement( Id1IndexElement d1IndexElement, IrIndexElement rIndexElement, Id2 d2, Iα α) { Expression LHS = Expression.Sum( d2.Value .Select( y => α.Value[rIndexElement, d1IndexElement, y])); int RHS = 1; this.Value = LHS == RHS; }
public Id2 GetId(int id) { Id currentId = Entities.Ids.FirstOrDefault(x => x.Id1 == id); Id2 idX = new Id2(); idX.Id = currentId.Id1; idX.IP = currentId.IP; idX.ModuleNumber = currentId.ModuleNumber; idX.ModuleType = currentId.ModuleType; idX.PDIN = currentId.PDIN; idX.Title = currentId.Title; return(idX); }
public override int GetHashCode() { int hash = 1; if (Id1 != 0) { hash ^= Id1.GetHashCode(); } if (Id2 != 0) { hash ^= Id2.GetHashCode(); } hash ^= key_.GetHashCode(); return(hash); }
public Id2 Create( ImmutableList <Id2IndexElement> value) { Id2 index = null; try { index = new d2( value); } catch (Exception exception) { this.Log.Error("Exception message: " + exception.Message + " and stacktrace " + exception.StackTrace); } return(index); }
public void ProcessRequest(HttpContext context) { long Id; int Id1, Id2; string result = ""; decimal Score = 0; try { Id = Convert.ToInt64(DESEncrypt.Decrypt(context.Request.Params["id"].ToString())); Id1 = Convert.ToInt32(DESEncrypt.Decrypt(context.Request.Params["id1"].ToString())); Id2 = Convert.ToInt32(DESEncrypt.Decrypt(context.Request.Params["id2"].ToString())); Score = Convert.ToDecimal(context.Request.Params["txtScore"].ToString()); var model = new Model.CCOM.Examination_subject_score(); var _model = new Model.CCOM.Examination_subject_score(); BLL.CCOM.Examination_subject_score Bess = new BLL.CCOM.Examination_subject_score(); model = new BLL.CCOM.Examination_subject_score().GetModel(" Esn_id = " + Id1 + " AND User_id=" + Id + " AND Judge_id=" + Id2); _model.Esn_id = Id1; _model.Ess_score = Score; _model.Judge_id = Id2; _model.User_id = Id; _model.Ess_score_status = true; _model.Ess_order_status = true; if (model != null) { _model.Ess_id = model.Ess_id; Bess.Update(_model); } else { Bess.Add(_model); } new Calculation().calculateSubjectXu(Id1.ToString(), Id2.ToString()); result += "添加成功"; } catch (Exception ex) { ILog LOGGER = LogManager.GetLogger("quanquan"); LOGGER.Debug(ex.Message, ex); result += "添加失败,请重新尝试"; } context.Response.ContentType = "text/plain"; context.Response.Write(result); }
public List <Id2> GetIds() { var idQuery = Entities.Ids; var result = new List <Id2>(); foreach (var id in idQuery) { Id2 current = new Id2(); current.Id = id.Id1; current.IP = id.IP; current.ModuleNumber = id.ModuleNumber; current.ModuleType = id.ModuleType; current.PDIN = id.PDIN; current.Title = id.Title; result.Add(current); } return(result); }
public IConstraints5ConstraintElement Create( Id1IndexElement d1IndexElement, IrIndexElement rIndexElement, Id2 d2, Iα α) { IConstraints5ConstraintElement constraintElement = null; try { constraintElement = new Constraints5ConstraintElement( d1IndexElement, rIndexElement, d2, α); } catch (Exception exception) { this.Log.Error("Exception message: " + exception.Message + " and stacktrace " + exception.StackTrace); } return(constraintElement); }
private void InitializeMonitoringParameters() { Id2 currentId = null; try { currentId = channel.GetId(this.Id); } catch (Exception ex) { logger.LogException(LogLevel.Info, string.Format("MonitoringAIOServer.InitializeMonitoringParameters.{0}", this.Id), ex); return; } if (currentId == null) { return; } #if DEBUG if (currentId.IP == "192.168.17.18") { this.IPAddress = "localhost/monitoring/17.18"; } else if (currentId.IP == "192.168.17.19") { this.IPAddress = "localhost/monitoring/17.19"; } #endif #if RELEASE this.IPAddress = currentId.IP; #endif this.ILModuleNumber = currentId.ModuleNumber; this.PDInWord = currentId.PDIN; }
public override int GetHashCode() { return((Id1 << 16) ^ Id2.GetHashCode()); }
public override int GetHashCode() => Id1.GetHashCode() ^ Id2.GetHashCode() ^ (DataValue is null ? 0 : DataValue.GetHashCode());
public override int GetHashCode() { return(Id.GetHashCode() ^ Id2.GetHashCode()); }