public FormChangesReceiptSalesPerson() { // // Required for Windows Form Designer support // InitializeComponent(); // // TODO: Add any constructor code after InitializeComponent call // myEmployeeIDLookupBuilder = new ACMS.XtraUtils.LookupEditBuilder.TherapistForPOSSalesLookupEditBuilder(lkpEdtSalesPersonID.Properties, ""); }
public FormAddSalesPersonAndTherapist(ACMSLogic.POS pos) { // // Required for Windows Form Designer support // InitializeComponent(); // // TODO: Add any constructor code after InitializeComponent call // myPOS = pos; myTherapistLookupBuilder = new ACMS.XtraUtils.LookupEditBuilder.TherapistForPOSSalesLookupEditBuilder(lkpEdtTherapist.Properties, myPOS.StrBranchCode); myEmployeeIDLookupBuilder = new ACMS.XtraUtils.LookupEditBuilder.TherapistForPOSSalesLookupEditBuilder(lkpEdtSalesPersonID.Properties, myPOS.StrBranchCode); Init(); }
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; }