private void btnSave_Click(object sender, EventArgs e)
        {
            strFreebiz = "";
            bool is4 = false;
            bool is8 = false;
            if (lkpEdtSalesPersonID.Text == "")
            {
                UI.ShowErrorMessage(this, "Please select Sales Person");
                lkpEdtSalesPersonID.Focus();
                DialogResult = DialogResult.None;
                return;
            }
            else
                employeeID = ACMS.Convert.ToInt32(lkpEdtSalesPersonID.EditValue);

            if (txtName1.Text.ToString().Length == 0 && txtContact1.Text.ToString().Length == 0 && txtName2.Text.ToString().Length == 0 && txtContact2.Text.ToString().Length == 0 && txtName3.Text.ToString().Length == 0 && txtContact3.Text.ToString().Length == 0 && txtName4.Text.ToString().Length == 0 && txtContact4.Text.ToString().Length == 0)
            {
                UI.ShowErrorMessage(this, "Please enter 1st friend name & contact");
                txtName1.Focus();
                DialogResult = DialogResult.None;
                return;
            }
            if (txtName1.Text.ToString().Length != 0 || txtContact1.Text.ToString().Length != 0 || txtName2.Text.ToString().Length != 0 || txtContact2.Text.ToString().Length != 0 || txtName3.Text.ToString().Length != 0 || txtContact3.Text.ToString().Length != 0 || txtName4.Text.ToString().Length != 0 || txtContact4.Text.ToString().Length != 0)
            {
                if (txtName1.Text.ToString().Length == 0 && txtContact1.Text.ToString().Length == 0)
                {
                    UI.ShowErrorMessage(this, "Please enter 1st friend name & contact");
                    txtName1.Focus();
                    DialogResult = DialogResult.None;
                    return;
                }
                else if (txtName2.Text.ToString().Length == 0 && txtContact2.Text.ToString().Length == 0)
                {
                    UI.ShowErrorMessage(this, "Please enter 2nd friend name & contact");
                    txtName2.Focus();
                    DialogResult = DialogResult.None;
                    return;
                }
                else if (txtName3.Text.ToString().Length == 0 && txtContact3.Text.ToString().Length == 0)
                {
                    UI.ShowErrorMessage(this, "Please enter 3rd friend name & contact");
                    txtName3.Focus();
                    DialogResult = DialogResult.None;
                    return;
                }
                else if (txtName4.Text.ToString().Length == 0 && txtContact4.Text.ToString().Length == 0)
                {
                    UI.ShowErrorMessage(this, "Please enter 4th friend name & contact");
                    txtName4.Focus();
                    DialogResult = DialogResult.None;
                    return;
                }
                is4 = true;
            }

            if (txtName5.Text.ToString().Length != 0 || txtContact5.Text.ToString().Length != 0 || txtName6.Text.ToString().Length != 0 || txtContact6.Text.ToString().Length != 0 || txtName7.Text.ToString().Length != 0 || txtContact7.Text.ToString().Length != 0 || txtName8.Text.ToString().Length != 0 || txtContact8.Text.ToString().Length != 0)
            {
                if (txtName5.Text.ToString().Length == 0 && txtContact5.Text.ToString().Length == 0)
                {
                    UI.ShowErrorMessage(this, "Please enter 5th friend name & contact");
                    txtName5.Focus();
                    DialogResult = DialogResult.None;
                    return;
                }
                else if (txtName6.Text.ToString().Length == 0 && txtContact6.Text.ToString().Length == 0)
                {
                    UI.ShowErrorMessage(this, "Please enter 6th friend name & contact");
                    txtName6.Focus();
                    DialogResult = DialogResult.None;
                    return;
                }
                else if (txtName7.Text.ToString().Length == 0 && txtContact7.Text.ToString().Length == 0)
                {
                    UI.ShowErrorMessage(this, "Please enter 7th friend name & contact");
                    txtName7.Focus();
                    DialogResult = DialogResult.None;
                    return;
                }
                else if (txtName8.Text.ToString().Length == 0 && txtContact8.Text.ToString().Length == 0)
                {
                    UI.ShowErrorMessage(this, "Please enter 8th friend name & contact");
                    txtName8.Focus();
                    DialogResult = DialogResult.None;
                    return;
                }
                is4 = false;
                is8 = true;
            }

            if (ddl4Friends.Text.Length == 0 && is4)
            {
                UI.ShowErrorMessage(this, "Please select Reward for 4 friends!");
                ddl4Friends.Focus();
                DialogResult = DialogResult.None;
                return;
            }

            if (ddl8Friends.Text.Length == 0 && is8)
            {
                UI.ShowErrorMessage(this, "Please select Reward for 8 friends!");
                ddl8Friends.Focus();
                DialogResult = DialogResult.None;
                return;
            }

            if ((ddl4Friends.Text.Length != 0) && (ddl8Friends.Text.Length != 0))
            {
                UI.ShowErrorMessage(this, "Please select only one Reward accordingly!");
                DialogResult = DialogResult.None;
                return;
            }

            try
            {
                if (is4)
                {
                    myContacts = new Contacts();
                    myContacts.NewContact(employeeID, txtName1.Text, "", strTerminalBranchCode, "", cbGender1.Text, DateTime.Now, 13, "", txtContact1.Text, "",1);
                    myContacts = new Contacts();
                    myContacts.NewContact(employeeID, txtName2.Text, "", strTerminalBranchCode, "", cbGender2.Text, DateTime.Now, 13, "", txtContact2.Text, "", 1);
                    myContacts = new Contacts();
                    myContacts.NewContact(employeeID, txtName3.Text, "", strTerminalBranchCode, "", cbGender3.Text, DateTime.Now, 13, "", txtContact3.Text, "", 1);
                    myContacts = new Contacts();
                    myContacts.NewContact(employeeID, txtName4.Text, "", strTerminalBranchCode, "", cbGender4.Text, DateTime.Now, 13, "", txtContact4.Text, "", 1);

                    TblRewards tr = new TblRewards();

                    ACMSDAL.ConnectionProvider connProvider = new ConnectionProvider();
                    TblMember sqlMember = new TblMember();
                    TblRewardsTransaction sqlRewardsTransaction = new TblRewardsTransaction();
                    sqlRewardsTransaction.DRewardsPoints = Convert.ToInt16(ddl4Friends.EditValue.ToString());
                    sqlRewardsTransaction.DtDate = DateTime.Now;
                    sqlRewardsTransaction.NEmployeeID = employeeID;
                    sqlRewardsTransaction.NTypeID = 0;
                    sqlRewardsTransaction.StrMembershipID = strMembershipID;
                    sqlRewardsTransaction.StrReferenceNo = "4 Referral";
                    sqlRewardsTransaction.Insert();
                }
                else if (is8)
                {
                    myContacts = new Contacts();
                    myContacts.NewContact(employeeID, txtName1.Text, "", strTerminalBranchCode, "", cbGender1.Text, DateTime.Now, 13, "", txtContact1.Text, "", 1);
                    myContacts = new Contacts();
                    myContacts.NewContact(employeeID, txtName2.Text, "", strTerminalBranchCode, "", cbGender2.Text, DateTime.Now, 13, "", txtContact2.Text, "", 1);
                    myContacts = new Contacts();
                    myContacts.NewContact(employeeID, txtName3.Text, "", strTerminalBranchCode, "", cbGender3.Text, DateTime.Now, 13, "", txtContact3.Text, "", 1);
                    myContacts = new Contacts();
                    myContacts.NewContact(employeeID, txtName4.Text, "", strTerminalBranchCode, "", cbGender4.Text, DateTime.Now, 13, "", txtContact4.Text, "", 1);
                    myContacts = new Contacts();
                    myContacts.NewContact(employeeID, txtName5.Text, "", strTerminalBranchCode, "", cbGender5.Text, DateTime.Now, 13, "", txtContact5.Text, "", 1);
                    myContacts = new Contacts();
                    myContacts.NewContact(employeeID, txtName6.Text, "", strTerminalBranchCode, "", cbGender6.Text, DateTime.Now, 13, "", txtContact6.Text, "", 1);
                    myContacts = new Contacts();
                    myContacts.NewContact(employeeID, txtName7.Text, "", strTerminalBranchCode, "", cbGender7.Text, DateTime.Now, 13, "", txtContact7.Text, "", 1);
                    myContacts = new Contacts();
                    myContacts.NewContact(employeeID, txtName8.Text, "", strTerminalBranchCode, "", cbGender8.Text, DateTime.Now, 13, "", txtContact8.Text, "", 1);

                    ACMSDAL.ConnectionProvider connProvider = new ConnectionProvider();
                    TblMember sqlMember = new TblMember();
                    TblRewardsTransaction sqlRewardsTransaction = new TblRewardsTransaction();
                    sqlRewardsTransaction.DRewardsPoints = Convert.ToInt16(ddl8Friends.EditValue.ToString());
                    sqlRewardsTransaction.DtDate = DateTime.Now;
                    sqlRewardsTransaction.NEmployeeID = employeeID;
                    sqlRewardsTransaction.NTypeID = 0;
                    sqlRewardsTransaction.StrMembershipID = strMembershipID;
                    sqlRewardsTransaction.StrReferenceNo = "8 Referral";
                    sqlRewardsTransaction.Insert();
                }

                MessageBox.Show("Intro Friends save successfully.");
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message);
            }

            this.Close();
        }
Esempio n. 2
0
        private void frmStaff_Load(object sender, System.EventArgs e)
        {
            // TODO: This line of code loads data into the 'aCMSDataSet.TblDeliverySchedule' table. You can move, or remove it, as needed.
            //this.tblDeliveryScheduleTableAdapter.Fill(this.aCMSDataSet.TblDeliverySchedule, oUser.NDepartmentID());
            barstaticCurrentLogin.Caption = string.Format(barstaticCurrentLogin.Caption, employee.StrEmployeeName, DateTime.Now.ToString("dd MMMM yyyy"));

            connectionString = (string)ConfigurationSettings.AppSettings["Main.ConnectionString"];
            connection = new SqlConnection(connectionString);

            myEmployeeInfo = Ultis.EmployeeInfo(employee.Id);

            TabStaff_init();

            int currentYear = DateTime.Now.Year;
            object[] years = new object[]{currentYear - 3, currentYear - 2, currentYear - 1, currentYear, currentYear + 1};
            cbServiceYear.Properties.Items.AddRange(years);
            cbServiceYear.EditValue = currentYear;
            cbServiceMonth.SelectedIndex = DateTime.Now.Month - 1;
            cbSalesYear.Properties.Items.AddRange(years);
            cbSalesYear.EditValue = currentYear;
            cbSalesMonth.SelectedIndex = DateTime.Now.Month - 1;
            cbAppointmentYear.Properties.Items.AddRange(years);
            cbAppointmentYear.EditValue = currentYear;
            cbAppointmentMonth.SelectedIndex = DateTime.Now.Month - 1;

            mySpaCommission = new CommissionSpaService();
            myPTCommission = new CommissionPTService();
            mySalesCommission = new SalesCommission();
            myCV = new ACMSLogic.Staff.CV();
            myMemo = new ACMSLogic.Staff.Memo();
            myReceipientGroup = new ACMSLogic.Staff.ReceipientGroup();
            myAppointment = new Appointment();
            myContacts = new Contacts();
            //myTimesheet = new Timesheet();
            //myLateness = new Lateness();
            //myLeave = new Leave();

            timer1.Enabled = true;

            luedtSalesBranchCode.EditValue = terminalUser.Branch.Id;
            luedtCommissionServiceBranch.EditValue = terminalUser.Branch.Id;

            new ACMS.XtraUtils.LookupEditBuilder.BranchCodeLookupEditBuilder2(luedtSalesBranchCode.Properties);
            new ACMS.XtraUtils.LookupEditBuilder.BranchCodeLookupEditBuilder2(luedtCommissionServiceBranch.Properties);
            new ACMS.XtraUtils.LookupEditBuilder.EmployeeIDLookupEditBuilder(luedtMemoEmployeeID.Properties);
            new ACMS.XtraUtils.LookupEditBuilder.DepartmentLookupEditBuilder2(luedtCVAssignTo.Properties);

            //			employee.RightsLevel.Id = 103;
            if (employee.HasRight("AS_VIEW_ALL_CV"))
            {
                new ACMS.XtraUtils.LookupEditBuilder.EmployeeIDLookupEditBuilder(luedtCVSubmitter.Properties);
                //Add not filter row for Submiter
                DataTable tempTable = luedtCVSubmitter.Properties.DataSource as DataTable;
                DataRow tempRow = tempTable.NewRow();
                tempRow.BeginEdit();
                tempRow["nEmployeeID"] = DBNull.Value;
                tempRow["strEmployeeName"] = "<<No Filter>>";
                tempRow.EndEdit();
                tempTable.Rows.Add(tempRow);
                tempTable.AcceptChanges();
                luedtCVSubmitter.Visible = true;
                lblCVSubmitter.Visible = true;
            }
            else
            {
                luedtCVSubmitter.Visible = false;
                lblCVSubmitter.Visible = false;
            }
            //Add not filter row for AssignTo
            DataTable tempTable2 = luedtCVAssignTo.Properties.DataSource as DataTable;
            DataRow tempRow2 = tempTable2.NewRow();
            tempRow2.BeginEdit();
            tempRow2["nDepartmentID"] = DBNull.Value;
            tempRow2["strDescription"] = "<<No Filter>>";
            tempRow2.EndEdit();
            tempTable2.Rows.Add(tempRow2);
            tempTable2.AcceptChanges();

            //			employee.RightsLevel.Id = 105;

            isFinishedMemoInit = false;
            isFinishedCVInit = false;
            luedtMemoEmployeeID.EditValue = employee.Id;
            isFinishedMemoInit = true;

            //			employee.RightsLevel.Id = 106;
            if (!employee.HasRight("AS_MEMO_SUPER_RIGHT"))
            {
                lblMemoEmployeeID.Visible = false;
                luedtMemoEmployeeID.Visible = false;
            }
            //ListMemo();
            //ListReceipientGroup();

            int_lblFour();
            lblFour_1.ForeColor = System.Drawing.Color.Firebrick;
            tabStaffFour.TabControl.SelectedTabPage = tabStaffFour;
            groupAppointment.Show();
        }
        public frmIntroduceFriendReferral(int aEmployeeID,string CurrentMembershipID,MemberRecord aMemberRecord, ACMSLogic.User oUser, string aStrTerminalBranchCode)
        {
            //
            // Required for Windows Form Designer support
            //
            InitializeComponent();

            //
            // TODO: Add any constructor code after InitializeComponent call
            //
            myEmployeeIDLookupBuilder = new ACMS.XtraUtils.LookupEditBuilder.TherapistForPOSSalesLookupEditBuilder(lkpEdtSalesPersonID.Properties, aStrTerminalBranchCode);

            TblReceiptFreebie Freebie = new TblReceiptFreebie();
            DataTable FreebieTable = Freebie.SelectIntro5FriendFreebie();
            new XtraUtils.LookupEditBuilder.FriendPromotionLookupEditBuilder(FreebieTable, lkFreebie.Properties);

            TblReceiptFreebie Freebie2 = new TblReceiptFreebie();
            DataTable FreebieTable2 = Freebie.SelectIntro10FriendFreebie();
            new XtraUtils.LookupEditBuilder.FriendPromotionLookupEditBuilder(FreebieTable2, lkFreebie2.Properties);

            TblRewards rewards4 = new TblRewards();
            DataTable rewards4Table = rewards4.SelectRewardsForReferral(4, aStrTerminalBranchCode);
            new XtraUtils.LookupEditBuilder.LoyalPointsLookupEditBuilder(rewards4Table, ddl4Friends.Properties);

            TblRewards rewards8 = new TblRewards();
            DataTable rewards8Table = rewards8.SelectRewardsForReferral(8, aStrTerminalBranchCode);
            new XtraUtils.LookupEditBuilder.LoyalPointsLookupEditBuilder(rewards8Table, ddl8Friends.Properties);

            strMembershipID = CurrentMembershipID;
            strTerminalBranchCode = aStrTerminalBranchCode;
            employeeID = aEmployeeID;
            myMemberRecord = aMemberRecord;
            myUser = oUser;
            ucNonMemberID1.StrBranchCode = aStrTerminalBranchCode;
            ucNonMemberID2.StrBranchCode = aStrTerminalBranchCode;
            ucNonMemberID3.StrBranchCode = aStrTerminalBranchCode;
            ucNonMemberID4.StrBranchCode = aStrTerminalBranchCode;
            ucNonMemberID5.StrBranchCode = aStrTerminalBranchCode;
            ucNonMemberID6.StrBranchCode = aStrTerminalBranchCode;
            ucNonMemberID7.StrBranchCode = aStrTerminalBranchCode;
            ucNonMemberID8.StrBranchCode = aStrTerminalBranchCode;
            ucNonMemberID9.StrBranchCode = aStrTerminalBranchCode;
            ucNonMemberID10.StrBranchCode = aStrTerminalBranchCode;

            TblPromotionIntroFriends sqlPromotionIntroFriends = new TblPromotionIntroFriends();
            DataTable PromotionIntroFriends = sqlPromotionIntroFriends.SelectAllPromotionIntroFriends(strMembershipID);
            myContacts = new Contacts();

            if (PromotionIntroFriends.Rows.Count > 0)
            {
                txtSerialNo.Text = PromotionIntroFriends.Rows[0]["strSerialNo"].ToString();
                chkIssued.Checked = (PromotionIntroFriends.Rows[0]["fIssued"] == DBNull.Value || PromotionIntroFriends.Rows[0]["fIssued"].ToString() == "False" ? false : true);
                ucNonMemberID1.EditValue = PromotionIntroFriends.Rows[0]["strFriendID01"].ToString();
                ucNonMemberID1.Enabled = (ucNonMemberID1.EditValue == "");
                ucNonMemberID2.EditValue = PromotionIntroFriends.Rows[0]["strFriendID02"].ToString();
                ucNonMemberID2.Enabled = (ucNonMemberID2.EditValue == "");
                ucNonMemberID3.EditValue = PromotionIntroFriends.Rows[0]["strFriendID03"].ToString();
                ucNonMemberID3.Enabled = (ucNonMemberID3.EditValue == "");
                ucNonMemberID4.EditValue = PromotionIntroFriends.Rows[0]["strFriendID04"].ToString();
                ucNonMemberID4.Enabled = (ucNonMemberID4.EditValue == "");
                ucNonMemberID5.EditValue = PromotionIntroFriends.Rows[0]["strFriendID05"].ToString();
                ucNonMemberID5.Enabled = (ucNonMemberID5.EditValue == "");
                ucNonMemberID6.EditValue = PromotionIntroFriends.Rows[0]["strFriendID05"].ToString();
                ucNonMemberID6.Enabled = (ucNonMemberID6.EditValue == "");
                ucNonMemberID7.EditValue = PromotionIntroFriends.Rows[0]["strFriendID05"].ToString();
                ucNonMemberID7.Enabled = (ucNonMemberID7.EditValue == "");
                ucNonMemberID8.EditValue = PromotionIntroFriends.Rows[0]["strFriendID05"].ToString();
                ucNonMemberID8.Enabled = (ucNonMemberID8.EditValue == "");
                ucNonMemberID9.EditValue = PromotionIntroFriends.Rows[0]["strFriendID05"].ToString();
                ucNonMemberID9.Enabled = (ucNonMemberID9.EditValue == "");
                ucNonMemberID10.EditValue = PromotionIntroFriends.Rows[0]["strFriendID05"].ToString();
                ucNonMemberID10.Enabled = (ucNonMemberID10.EditValue == "");
                lkFreebie.EditValue = PromotionIntroFriends.Rows[0]["strFreebieCode"].ToString();
            }
            //if (ACMS.Convert.ToInt32(PromotionIntroFriends.Rows[0]["nMaxSession"]) == 9999)
              //  needtoAddBackOneDayExpiryDate = true;
            //
            //DataTable attendedClassTable = classAttendance.GetAllClassAttendancesBasePackageID(wantToUpgrade_nPackageID, pos.StrMembershipID, pos.StrBranchCode);

            //txtSerialNo.Text = "A1";
            //ucNonMemberID1.EditValue = "aa";

            ComboboxItem itemFemale = new ComboboxItem();
            itemFemale.Text = "Female";
            itemFemale.Value = "F";
            ComboboxItem itemMale = new ComboboxItem();
            itemMale.Text = "Male";
            itemMale.Value = "M";

            cbGender1.Items.Add(itemFemale);
            cbGender1.Items.Add(itemMale);
            cbGender1.SelectedIndex = 0;
            cbGender2.Items.Add(itemFemale);
            cbGender2.Items.Add(itemMale);
            cbGender2.SelectedIndex = 0;
            cbGender3.Items.Add(itemFemale);
            cbGender3.Items.Add(itemMale);
            cbGender3.SelectedIndex = 0;
            cbGender4.Items.Add(itemFemale);
            cbGender4.Items.Add(itemMale);
            cbGender4.SelectedIndex = 0;
            cbGender5.Items.Add(itemFemale);
            cbGender5.Items.Add(itemMale);
            cbGender5.SelectedIndex = 0;
            cbGender6.Items.Add(itemFemale);
            cbGender6.Items.Add(itemMale);
            cbGender6.SelectedIndex = 0;
            cbGender7.Items.Add(itemFemale);
            cbGender7.Items.Add(itemMale);
            cbGender7.SelectedIndex = 0;
            cbGender8.Items.Add(itemFemale);
            cbGender8.Items.Add(itemMale);
            cbGender8.SelectedIndex = 0;
        }
Esempio n. 4
0
        private void frmStaff_Load(object sender, System.EventArgs e)
        {
            barstaticCurrentLogin.Caption = string.Format(barstaticCurrentLogin.Caption, employee.StrEmployeeName, DateTime.Now.ToString("dd MMMM yyyy"));

            connectionString = (string)ConfigurationSettings.AppSettings["Main.ConnectionString"];
            connection = new SqlConnection(connectionString);

            myEmployeeInfo = Ultis.EmployeeInfo(employee.Id);
            myLeaveEmployeeInfo = myEmployeeInfo;

            TabStaff_init();

            int currentYear = DateTime.Now.Year;
            object[] years = new object[]{currentYear - 3, currentYear - 2, currentYear - 1, currentYear, currentYear + 1};
            cbServiceYear.Properties.Items.AddRange(years);
            cbServiceYear.EditValue = currentYear;
            cbServiceMonth.SelectedIndex = DateTime.Now.Month - 1;
            cbSalesYear.Properties.Items.AddRange(years);
            cbSalesYear.EditValue = currentYear;
            cbSalesMonth.SelectedIndex = DateTime.Now.Month - 1;
            cbTimesheetYear.Properties.Items.AddRange(years);
            cbTimesheetYear.EditValue = currentYear;
            cbTimesheetMonth.SelectedIndex = DateTime.Now.Month - 1;
            cbAppointmentYear.Properties.Items.AddRange(years);
            cbAppointmentYear.EditValue = currentYear;
            cbAppointmentMonth.SelectedIndex = DateTime.Now.Month - 1;
            cbOvertimeYear.Properties.Items.AddRange(years);
            cbOvertimeYear.EditValue = currentYear;
            cbOvertimeMonth.SelectedIndex = DateTime.Now.Month - 1;
            cbLatenessYear.Properties.Items.AddRange(years);
            cbLatenessYear.EditValue = currentYear;
            cbLatenessMonth.SelectedIndex = DateTime.Now.Month - 1;

            mySpaCommission = new CommissionSpaService();
            myPTCommission = new CommissionPTService();
            mySalesCommission = new SalesCommission();
            myCV = new ACMSLogic.Staff.CV();
            myMemo = new ACMSLogic.Staff.Memo();
            myReceipientGroup = new ACMSLogic.Staff.ReceipientGroup();
            myAppointment = new Appointment();
            myContacts = new Contacts();
            myTimesheet = new Timesheet();
            myLateness = new Lateness();
            myLeave = new Leave();

            timer1.Enabled = true;

            luedtSalesBranchCode.EditValue = terminalUser.Branch.Id;
            luedtCommissionServiceBranch.EditValue = terminalUser.Branch.Id;

            new ACMS.XtraUtils.LookupEditBuilder.BranchCodeLookupEditBuilder2(luedtSalesBranchCode.Properties);
            new ACMS.XtraUtils.LookupEditBuilder.BranchCodeLookupEditBuilder2(luedtCommissionServiceBranch.Properties);
            new ACMS.XtraUtils.LookupEditBuilder.EmployeeIDLookupEditBuilder(luedtLeaveEmployeeID.Properties);
            new ACMS.XtraUtils.LookupEditBuilder.EmployeeIDLookupEditBuilder(luedtMemoEmployeeID.Properties);
            new ACMS.XtraUtils.LookupEditBuilder.DepartmentLookupEditBuilder2(luedtCVAssignTo.Properties);

            //			employee.RightsLevel.Id = 103;
            if (employee.HasRight("AS_VIEW_ALL_CV"))
            {
                new ACMS.XtraUtils.LookupEditBuilder.EmployeeIDLookupEditBuilder(luedtCVSubmitter.Properties);
                //Add not filter row for Submiter
                DataTable tempTable = luedtCVSubmitter.Properties.DataSource as DataTable;
                DataRow tempRow = tempTable.NewRow();
                tempRow.BeginEdit();
                tempRow["nEmployeeID"] = DBNull.Value;
                tempRow["strEmployeeName"] = "<<No Filter>>";
                tempRow.EndEdit();
                tempTable.Rows.Add(tempRow);
                tempTable.AcceptChanges();
                luedtCVSubmitter.Visible = true;
                lblCVSubmitter.Visible = true;
            }
            else
            {
                luedtCVSubmitter.Visible = false;
                lblCVSubmitter.Visible = false;
            }
            //Add not filter row for AssignTo
            DataTable tempTable2 = luedtCVAssignTo.Properties.DataSource as DataTable;
            DataRow tempRow2 = tempTable2.NewRow();
            tempRow2.BeginEdit();
            tempRow2["nDepartmentID"] = DBNull.Value;
            tempRow2["strDescription"] = "<<No Filter>>";
            tempRow2.EndEdit();
            tempTable2.Rows.Add(tempRow2);
            tempTable2.AcceptChanges();

            startLeaveDate = new DateTime(DateTime.Today.Year, DateTime.Today.Month, 1);
            luedtLeaveEmployeeID.EditValue = employee.Id;

            //			employee.RightsLevel.Id = 105;
            if (!employee.HasRight("AS_LEAVE_SUPER_RIGHT"))
            {
                lblLeaveEmployeeID.Visible = false;
                luedtLeaveEmployeeID.Visible = false;
            }

            isFinishedMemoInit = false;
            isFinishedCVInit = false;
            luedtMemoEmployeeID.EditValue = employee.Id;
            isFinishedMemoInit = true;

            //			employee.RightsLevel.Id = 106;
            if (!employee.HasRight("AS_MEMO_SUPER_RIGHT"))
            {
                lblMemoEmployeeID.Visible = false;
                luedtMemoEmployeeID.Visible = false;
            }
            ListMemo();
            ListReceipientGroup();
        }