Ejemplo n.º 1
0
        public frmIntroduceFriend(string aMembershipID, int aEmployeeID, MemberRecord aMemberRecord, string aTerminalBranchCode)
        {
            //
            // Required for Windows Form Designer support
            //
            InitializeComponent();

            //
            // TODO: Add any constructor code after InitializeComponent call
            //

            TblRewards rewards = new TblRewards();
            DataTable rewardsTable = rewards.SelectnTypeID(0);
            new XtraUtils.LookupEditBuilder.LoyalPointsLookupEditBuilder(rewardsTable, lkpEdtLoyalPoint.Properties);

            TblReceiptFreebie Freebie = new TblReceiptFreebie();
            DataTable FreebieTable = Freebie.SelectFriendFreebie();
            new XtraUtils.LookupEditBuilder.FriendPromotionLookupEditBuilder(FreebieTable, lkFreebie.Properties);
            //0506
            TblReceiptFreebie Freebie1 = new TblReceiptFreebie();
            DataTable FreebieTable1 = Freebie.SelectFriendFreebie_new();
            new XtraUtils.LookupEditBuilder.FriendPromotionLookupEditBuilder(FreebieTable1, lkTreatment.Properties);

            strMembershipID = aMembershipID;
            strTerminalBranchCode = aTerminalBranchCode;
            employeeID = aEmployeeID;
            myMemberRecord = aMemberRecord;
            ucMemberID1.StrBranchCode = aTerminalBranchCode;
        }
Ejemplo n.º 2
0
        public frmNewMember(string strIntroFriendSerialNo,string aStrMembershipID,MemberRecord aMemberRecord, ACMSLogic.User oUser, string aStrTerminalBranchCode)
        {
            //
            // Required for Windows Form Designer support
            //
            InitializeComponent();

            ACMS.XtraUtils.XtraEditors.SetDateEditFormat(dateedtDOB);
            myMemberRecord = aMemberRecord;
            myUser = oUser;
            strTerminalBranchCode = aStrTerminalBranchCode;
            strMembershipID = string.Empty;

            chkedtMember.Checked = true;
            dateedtDOB.DateTime = DateTime.Now.Date;

            if (strIntroFriendSerialNo.Length == 0)
            {
                chkedtMember.Enabled = true;
                chkedtMember.Checked = true;
               // dateedtDOB.DateTime = DateTime.Now.Date;
            }
            else
            {
                chkedtMember.Checked = false;
                chkedtMember.Enabled = false;
              //  dateedtDOB.DateTime = DateTime.Now.Date;
            }
        }
Ejemplo n.º 3
0
        public frmDNCConsent(string aStrMembershipID, string aStrMembershipName, string aStrEmail, MemberRecord aMemberRecord, ACMSLogic.User oUser, string aStrTerminalBranchCode)
        {
            //
            // Required for Windows Form Designer support
            //
            InitializeComponent();

            myMemberRecord = aMemberRecord;
            myUser = oUser;
            strTerminalBranchCode = aStrTerminalBranchCode;
            strMembershipID = aStrMembershipID;
            strMembershipName = aStrMembershipName;
            strEmail = aStrEmail;
        }
Ejemplo n.º 4
0
        public frmNewMember(MemberRecord aMemberRecord, ACMSLogic.User oUser, string aStrTerminalBranchCode)
        {
            //
            // Required for Windows Form Designer support
            //
            InitializeComponent();

            ACMS.XtraUtils.XtraEditors.SetDateEditFormat(dateedtDOB);
            myMemberRecord = aMemberRecord;
            myUser = oUser;
            strTerminalBranchCode = aStrTerminalBranchCode;
            strMembershipID = string.Empty;

            chkedtMember.Checked = true;
            dateedtDOB.DateTime = DateTime.Now.Date;
        }
Ejemplo n.º 5
0
 public void initData(ACMSLogic.User User)
 {
     oUser = User;
     MemberRecord myMemberRecord = new MemberRecord(oUser.StrBranchCode());
 }
Ejemplo n.º 6
0
        private void sbtnFind_Click(object sender, System.EventArgs e)
        {
            if (strBranchCode == null)
            {
                UI.ShowErrorMessage(this, "You forgot to set StrBranchCode property.");
                return;
            }
            Cursor saveCursor = Cursor.Current;
            Cursor.Current = Cursors.WaitCursor;

                try
                {
                    myMemberRecord = new MemberRecord(strBranchCode);

                    //frmSearchMember myForm = new frmSearchMember(myMemberRecord,
                    // myMemberRecord.SearchMember(txtMembershipID.Text, DBNull.Value,
                    // ACMSLogic.MemberRecord.SearchMemberType.AllMember, 0),
                    // txtMembershipID.Text, DBNull.Value, 1);

                            frmSearchMember myForm = new frmSearchMember(myMemberRecord,
                             myMemberRecord.SearchMember(txtMembershipID.Text, DBNull.Value,
                             ACMSLogic.MemberRecord.SearchMemberType.AllMember, 0),
                             txtMembershipID.Text, DBNull.Value,0);

                    if (DialogResult.OK == myForm.ShowDialog(this))
                    {
                        txtMembershipID.Text = myForm.StrMemberShipID;

                        if (myEditValueChangedEvent != null)
                        {
                            myEditValueChangedEvent(txtMembershipID.Text);
                        }
                    }
                    myForm.Dispose();
                }
                finally
                {
                    Cursor.Current = saveCursor;

            //}
            //else
            //{
            //    try
            //    {
            //        myMemberRecord = new MemberRecord(strBranchCode);

            //        frmSearchMember myForm = new frmSearchMember(myMemberRecord,
            //         myMemberRecord.SearchMember(txtMembershipID.Text, DBNull.Value,
            //         ACMSLogic.MemberRecord.SearchMemberType.NonMember, 1),
            //         txtMembershipID.Text, DBNull.Value, 1);

            //        if (DialogResult.OK == myForm.ShowDialog(this))
            //        {
            //            txtMembershipID.Text = myForm.StrMemberShipID;

            //            if (myEditValueChangedEvent != null)
            //            {
            //                myEditValueChangedEvent(txtMembershipID.Text);
            //            }
            //        }
            //        myForm.Dispose();
            //    }
            //    finally
            //    {
            //        Cursor.Current = saveCursor;
            //    }
            }
        }
        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;
        }
Ejemplo n.º 8
0
        public frmSearchMember(MemberRecord aMemberRecord, DataTable initTable, string searchKey, object terminalBranchCode, int iSearch)
        {
            //
            // Required for Windows Form Designer support
            //
            InitializeComponent();

            //
            // TODO: Add any constructor code after InitializeComponent call
            //
            myMemberRecord = aMemberRecord;
            gridControl1.DataSource = initTable;//myMemberRecord.SearchMember(searchKey);
            strMembershipID = string.Empty;
            strNRICID = string.Empty;
            txtSearchKey.Text = searchKey;

            new ACMS.XtraUtils.LookupEditBuilder.BranchCodeLookupEditBuilder2(luedtBranchCode.Properties);
            DataTable branchTable = luedtBranchCode.Properties.DataSource as DataTable;
            DataRow rNew = branchTable.NewRow();
            rNew.BeginEdit();
            rNew["strBranchCode"] = DBNull.Value;
            rNew["strBranchName"] = "<<No Filter>>";
            rNew.EndEdit();
            branchTable.Rows.Add(rNew);

            luedtBranchCode.EditValue = terminalBranchCode;
            nPage = 1;
            mySearchKey = searchKey;
            myBranchCode = terminalBranchCode;
            mySearchMemberType = ACMSLogic.MemberRecord.SearchMemberType.AllMember;
            if (iSearch == 1)
            {
                mySearchMemberType = ACMSLogic.MemberRecord.SearchMemberType.NonMember;
                cbfMember.Text = "NonMember";
            }
            mySearchTable = initTable;
            //0805

            ToggleButton();
        }