Exemple #1
0
        private void ClearForm()
        {
            txtCode.Text = txtInitial.Text = txtName.Text = txtNameChs.Text = txtNameCht.Text = txtLastUpdatedBy.Text = txtLastUpdatedOn.Text = txtCreatedOn.Text = string.Empty;
            _AppendixId  = Guid.Empty;
            _EditMode    = EnumHelper.EditMode.Add;

            SetCtrlEditable();
            FillParentAppendixList();
        }
Exemple #2
0
        private void ClearForm()
        {
            txtCode.Text         = txtType.Text = txtInitial.Text = txtName.Text = txtNameAlt1.Text = txtNameAlt2.Text = string.Empty;
            chkMandatory.Checked = chkDownloadToPoS.Checked = false;

            _EditMode = EnumHelper.EditMode.Add;
            _CodeId   = Guid.Empty;

            SetCtrlEditable();
            FillParentCodeList();
        }
Exemple #3
0
        private void SaveMessageHandler(object sender, EventArgs e)
        {
            if (((Form)sender).DialogResult == DialogResult.Yes)
            {
                if (IsValid())
                {
                    Save(_StaffId);

                    _EditMode = EnumHelper.EditMode.Edit;
                }
            }
        }
Exemple #4
0
        private void ClearForm()
        {
            txtLoc.BackColor  = Color.LightSkyBlue;
            txtLoc.ReadOnly   = false;
            cmdDelete.Enabled = false;

            ClearAllTextBox();
            FillComboList();

            _WorkplaceId = Guid.Empty;
            _EditMode    = EnumHelper.EditMode.Add;
        }
        private void ClearForm()
        {
            /**
             * Type type = null;
             *
             * if (this.Class1 != null)
             * {
             *  type = Class1.GetType();
             * }
             *
             * if (this.Class2 != null)
             * {
             *  type = Class2.GetType();
             * }
             *
             * if (this.Class3 != null)
             * {
             *  type = Class3.GetType();
             * }
             *
             * if (this.Class4 != null)
             * {
             *  type = Class4.GetType();
             * }
             *
             * if (this.Class5 != null)
             * {
             *  type = Class5.GetType();
             * }
             *
             * if (this.Class6 != null)
             * {
             *  type = Class6.GetType();
             * }
             */
            txtCode.Text = txtInitial.Text = txtName.Text = txtNameChs.Text = txtNameCht.Text = txtLastUpdatedBy.Text = txtLastUpdatedOn.Text = txtCreatedOn.Text = string.Empty;
            _ClassId     = Guid.Empty;
            _EditMode    = EnumHelper.EditMode.Add;

            SetCtrlEditable();
            FillParentClassList();
        }
Exemple #6
0
        private void SetWizardToAddNew()
        {
            toolBarDelete.Enabled    = false;
            txtStaffNumber.ReadOnly  = false;
            txtStaffNumber.BackColor = Color.LightSkyBlue;
            txtStaffNumber.Text      = "";

            _StaffId  = Guid.Empty;
            _EditMode = EnumHelper.EditMode.Add;

            if (tabGeneralLoaded)
            {
                tabGeneral.Controls.Clear();
            }
            if (tabPersonalLoaded)
            {
                tabPersonal.Controls.Clear();
            }
            tabGeneralLoaded = tabPersonalLoaded = false;

            LoadTabPage();
        }