public void GetModifiyFields() { contentDifferentFields = new List <ModifyField>(); PayRateInputGroup inputGroup = GetPayRateInputGroup(this.编号); if (inputGroup.A != null && inputGroup.B != null) { contentDifferentFields = MyHelper.GetModifyFields(inputGroup.A, inputGroup.B); } }
private string Compare(PayRateInputGroup inputGroup) { if (inputGroup.A == null || inputGroup.B == null) { return("另一人未录入"); } inputGroup.A.Reload(); inputGroup.B.Reload(); anotherInput = this.标识 == inputGroup.A.标识 ? inputGroup.B : inputGroup.A; contentDifferentFields = MyHelper.GetModifyFields(inputGroup.A, inputGroup.B); string comparingResult = contentDifferentFields.Count == 0 ? "两人录入完全一致" : "两人录入记录不同"; return(comparingResult); }
//更新比较结果 public void UpdateCompareResult() { contentDifferentFields = null; anotherInput = null; PayRateInputGroup inputGroup = GetPayRateInputGroup(this.编号); if (inputGroup.A != null && inputGroup.B != null) { string comparingResult = Compare(inputGroup); inputGroup.A.UpdateComparingResult(comparingResult); inputGroup.B.UpdateComparingResult(comparingResult); this.双人录入结果 = comparingResult; } }
public static PayRateInputGroup GetPayRateInputGroup(string number) { PayRateInputGroup inputGroup = new PayRateInputGroup(); GroupOperator criteria = new GroupOperator(GroupOperatorType.And, new BinaryOperator("编号", number, BinaryOperatorType.Equal)); XPCollection objset = new XPCollection(MyHelper.XpoSession, typeof(PayRateInput), criteria, new SortProperty("录入时间", SortingDirection.Descending)); foreach (PayRateInput di in objset) { if (di.是验证录入) { inputGroup.B = di; } else { inputGroup.A = di; } } return(inputGroup); }
public string Compare() { PayRateInputGroup inputGroup = GetPayRateInputGroup(this.编号); return(Compare(inputGroup)); }