Example #1
0
 private void SetDefaultValue()
 {
     _FillPerson = ModelUtility.MakeDefaultString();
     _SubmitTime = ModelUtility.MakeDefaultTime();
     _Comment    = ModelUtility.MakeDefaultString();
     _Choose     = ModelUtility.MakeDefaultString();
 }
Example #2
0
        /// <summary>
        /// 初始化对象的默认信息
        /// </summary>
        private void SetDefaultValue()
        {
            SetDefaultValueExceptConstructor();

            _ScopeFrom = ModelUtility.MakeDefaultTime();
            _ScopeTo   = ModelUtility.MakeDefaultTime();
            _Reason    = ModelUtility.MakeDefaultString();
        }
Example #3
0
 private void CalculateChildAge()
 {
     _ChildAge = _ChildBirthday == null
                     ? 0
                     : ModelUtility.CalculateYearsBetween((DateTime)_ChildBirthday, DateTime.Today);
     _ChildAge2 = _ChildBirthday2 == null
                     ? 0
                     : ModelUtility.CalculateYearsBetween((DateTime)_ChildBirthday2, DateTime.Today);
 }
Example #4
0
 private void SetDefaultValueExceptConstructor()
 {
     _AssessActivityPaper    = new AssessActivityPaper(ModelUtility.MakeDefaultString());
     _PersonalExpectedFinish = ModelUtility.MakeDefaultTime();
     _ManagerExpectedFinish  = ModelUtility.MakeDefaultTime();
     _PersonalGoal           = ModelUtility.MakeDefaultString();
     _HRConfirmerName        = ModelUtility.MakeDefaultString();
     _AssessCharacterType    = AssessCharacterType.None;
     _ItsAssessStatus        = new AssessStatus();
     _AssessProposerName     = ModelUtility.MakeDefaultString();
     _EmployeeDept           = ModelUtility.MakeDefaultString();
     _Responsibility         = ModelUtility.MakeDefaultString();
 }
Example #5
0
 private void SetDefaultValue()
 {
     _Score = ModelUtility.MakeDefaultDecimal();
 }
Example #6
0
 /// <summary>
 /// 设置默认值
 /// </summary>
 public void SetDefault()
 {
     _No      = ModelUtility.MakeDefaultString();
     _DueDate = ModelUtility.MakeDefaultTime();
 }
 private void SetDefaultValue()
 {
     _Grade = ModelUtility.MakeDefaultInt();
     _Note  = ModelUtility.MakeDefaultString();
 }