Esempio n. 1
0
 /// <summary>
 ///     Initializes the data.
 /// </summary>
 protected override void InitData()
 {
     _departmentsPresenter.Display();
     if (KeyValue != null)
     {
         _departmentPresenter.Display(KeyValue);
     }
     else
     {
         if (CurrentNode != null)
         {
             chkIsActive.Checked    = true;
             cboParentId.Text       = ((DepartmentModel)CurrentNode).ParentId;
             txtDepartmentCode.Text = ((DepartmentModel)CurrentNode).DepartmentCode;
         }
     }
 }
Esempio n. 2
0
 /// <summary>
 /// Initializes the data.
 /// </summary>
 protected override void InitData()
 {
     _departmentsPresenter.Display();
     if (KeyValue != null)
     {
         _departmentPresenter.Display(KeyValue);
     }
     else
     {
         txtDepartmentCode.Text = GetAutoNumber();
         //txtDepartmentCode.Text = ((DepartmentModel)CurrentNode).DepartmentCode;
         txtDepartmentName.Text = @"Phòng ban mới";
         if (CurrentNode != null)
         {
             grdLockUpParentId.EditValue = ((DepartmentModel)CurrentNode).DepartmentId;
         }
     }
 }