Example #1
0
        public FormTopUpCredit(ACMSLogic.POS pos)
        {
            //
            // Required for Windows Form Designer support
            //
            InitializeComponent();

            //
            // TODO: Add any constructor code after InitializeComponent call
            //
            myPOS = pos;
            myCreditPackage = new ACMSLogic.CreditAccount();
            myDataTable = myCreditPackage.GetValidCreditPackage(pos.StrMembershipID);

            if (myDataTable != null)
            {
                foreach (DataRow r in myPOS.ReceiptItemsTable.Rows)
                {
                    string nCreditPackageID = r["StrCode"].ToString();

                    DataRow[] rowstoDelete = myDataTable.Table.Select("nCreditPackageID = " + nCreditPackageID);

                    foreach (DataRow r2 in rowstoDelete)
                    {
                        r2.Delete();
                    }
                }
            }

            gridCtrlCreditAccount.DataSource = myDataTable;
        }
        public FormAddItemFreebiesAndDiscount(ACMSLogic.POS pos, DataRow row, 
			int nCategoryTypeID,bool bLoadStockRecon)
        {
            //
            // Required for Windows Form Designer support
            //
            InitializeComponent();
            connectionString = (string)ConfigurationSettings.AppSettings["Main.ConnectionString"];
            connection = new SqlConnection(connectionString);

            if (!myIsFinishLoadStockRecon)
            {
                myIsFinishLoadStockRecon = bLoadStockRecon;
            }
            //
            // TODO: Add any constructor code after InitializeComponent call
            //
            myDataRow = row;
            myPOS = pos;
            myCategoryTypeID = nCategoryTypeID;
            myStrProduct_Or_Package_Code = myDataRow["strCode"].ToString();
            myPOSEntry = new ACMSLogic.POSEntries(myDataRow);

            Init();
            myItemFreebiePromotionCodeLookupBuilder =
                new ACMS.XtraUtils.LookupEditBuilder.ItemFreebiePromotionCodeLookupEditBuilder(lkpEdtItemFreebiePromotionCode.Properties,
                myPOS.StrMembershipID, myPOS.MNettAmount, myCategoryTypeID, myPOS.NCategoryID,
                myStrProduct_Or_Package_Code, myPOS.StrBranchCode, myPOS.IsStaffPurchase, myPOS.StrReceiptNo);

            myItemDiscountPromotionCodeLookupBuilder =
                new ACMS.XtraUtils.LookupEditBuilder.ItemDiscountPromotionCodeLookupEditBuilder(lkpEdtDiscount.Properties,
                myPOS.StrMembershipID, myPOS.MNettAmount, myCategoryTypeID, myPOS.NCategoryID,
                myStrProduct_Or_Package_Code, myPOS.StrBranchCode, myPOS.IsStaffPurchase);
        }
Example #3
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;
            }
        }
Example #4
0
        public FormLockerAction(ACMSLogic.POS pos)
        {
            //
            // Required for Windows Form Designer support
            //
            InitializeComponent();

            //
            // TODO: Add any constructor code after InitializeComponent call
            //
            myPOS = pos;

            if (myPOS.POSLockerAction == ACMSLogic.POS.LockerAction.New)
            {
                sBtnExtendLocker.Enabled = false;
                sBtnReturnLocker.Enabled = false;
            }
            else if (myPOS.POSLockerAction == ACMSLogic.POS.LockerAction.Extend)
            {
                sBtnNewLocker.Enabled = false;
                sBtnReturnLocker.Enabled = false;
            }
            else if (myPOS.POSLockerAction == ACMSLogic.POS.LockerAction.Return)
            {
                sBtnExtendLocker.Enabled = false;
                sBtnNewLocker.Enabled = false;
            }
        }
Example #5
0
 public POSHelper(int nCategoryID, string strBranchCode, ACMSLogic.POS pos)
 {
     //
     // TODO: Add constructor logic here
     //
     myPOS = pos;
     myCategoryID = nCategoryID;
     myStrBranchCode = strBranchCode;
 }
Example #6
0
 public POSHelper(ACMSLogic.POS pos)
 {
     //
     // TODO: Add constructor logic here
     //
     myPOS = pos;
     myCategoryID = myPOS.NCategoryID;
     myStrBranchCode = myPOS.StrBranchCode;
     myNQty = myPOS.NQty;
 }
Example #7
0
        public FormForgetCardAction(ACMSLogic.POS pos)
        {
            //
            // Required for Windows Form Designer support
            //
            InitializeComponent();

            //
            // TODO: Add any constructor code after InitializeComponent call
            //
            myPOS = pos;
        }
Example #8
0
 public FormNewMemberPackage(string membershipID, ACMSLogic.MemberPackage memberPackage)
 {
     //
     // Required for Windows Form Designer support
     //
     InitializeComponent();
     myMembershipID = membershipID;
     myMemberPackage = memberPackage;
     //
     // TODO: Add any constructor code after InitializeComponent call
     //
     Init();
 }
Example #9
0
        public FormExtendLocker(ACMSLogic.POS pos)
        {
            //
            // Required for Windows Form Designer support
            //
            InitializeComponent();

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

            myPOS = pos;
            label1.Text = "Month(s) To Extend:";
        }
Example #10
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;
        }
Example #11
0
        public FormNewUOBSpaBooking(ACMSLogic.SpaBooking spaBooking, bool isWaitingList)
        {
            //
            // Required for Windows Form Designer support
            //
            InitializeComponent();

            //
            // TODO: Add any constructor code after InitializeComponent call
            //
            mySpaBooking = spaBooking;
            myIsWaitingList = isWaitingList;
            Init();
        }
Example #12
0
        public FormNewCreditPackage(ACMSLogic.CreditAccount creditAccount, string strMembershipID)
        {
            //
            // Required for Windows Form Designer support
            //
            InitializeComponent();

            //
            // TODO: Add any constructor code after InitializeComponent call
            //
            myCreditAccount = creditAccount;
            myStrMembershipID = strMembershipID;
            Init();
        }
Example #13
0
        public UpdateMemberGiro(ACMSLogic.POS pos)
        {
            //
            // Required for Windows Form Designer support
            //
            InitializeComponent();

            myPOS = pos;
            myMemberPackage = new ACMSLogic.MemberPackage();
            Init();
            //
            // TODO: Add any constructor code after InitializeComponent call
            //
        }
Example #14
0
        public FormAddBillFreebie(ACMSLogic.POS pos)
        {
            //
            // Required for Windows Form Designer support
            //
            InitializeComponent();

            //
            // TODO: Add any constructor code after InitializeComponent call
            //
            myPOS = pos;
            myFreebiePromotionCodeLookupBuilder = new ACMS.XtraUtils.LookupEditBuilder.BillFreebiePromotionCodeLookupEditBuilder(lkpEdtPromotionCode.Properties,
                myPOS.StrMembershipID, myPOS.MNettAmount, myPOS.StrBranchCode, myPOS.NCategoryID, true);
        }
Example #15
0
        public FormMakePayment(ACMSLogic.POS pos, string paymentGroupCode)
        {
            //
            // Required for Windows Form Designer support
            //
            InitializeComponent();

            //
            // TODO: Add any constructor code after InitializeComponent call
            //
            myPOS = pos;
            myPaymentGroupCodeLookupBuilder = new ACMS.XtraUtils.LookupEditBuilder.PaymentGroupCodeLookupEditBuilder(lkpEdtPaymentGroup.Properties);
            myPaymentCodeLookupBuilder = new ACMS.XtraUtils.LookupEditBuilder.PaymentCodeLookupEditBuilder(lkpEdtPayment.Properties, paymentGroupCode);
            myPaymentGroupCode = paymentGroupCode;

            if (myPaymentGroupCode == PaymentGroupCode.IPP)
            {
                lkpEdtPayment.Enabled = false;
                myIPPLookupEditBuilder = new ACMS.XtraUtils.LookupEditBuilder.IPPLookupEditBuilder(lkpEdtIPP.Properties,
                    myPOS.StrBranchCode, myPOS.StrMembershipID);

                DataTable ippLookupEditTable = myIPPLookupEditBuilder.GetDataTable();

                DataRow[] ippRowInPayment = pos.ReceiptPaymentTable.Select("nIPPID is Not Null", "", DataViewRowState.CurrentRows);

                if (ippRowInPayment.Length > 0)
                {
                    foreach (DataRow r in ippRowInPayment)
                    {
                        DataRow[] rowsToRemove = ippLookupEditTable.Select("nIPPID = " + r["nIPPID"].ToString());

                        foreach (DataRow removeRow in rowsToRemove)
                        {
                            removeRow.Delete();
                        }
                    }
                }
                //ippLookupEditTable.Select("nIPPID = "
            }
            else if (myPaymentGroupCode == PaymentGroupCode.CASH ||
                myPaymentGroupCode == PaymentGroupCode.NETS)
            {
                label5.Visible = false;
                txtEdtRefNo.Visible = false;
            //				decimal remainder = myPOS.MTotalAmount % ACMS.Convert.ToDecimal(0.05);
            //				myPOS.MTotalAmount = myPOS.MTotalAmount - remainder;
            //				txtEdtPaymentAmt.EditValue = myPOS.MTotalAmount.ToString();
            }
        }
Example #16
0
        public FormPaymentPlan(ACMSLogic.POS pos, string strMasterReceiptNo, decimal mMasterReceiptTotal, decimal mPaymentAmount,
                                                    decimal mOutstandingAmount, string strPackageList)
        {
            InitializeComponent();

            myPOS = pos;

            frmMasterReceiptNo = strMasterReceiptNo;
            frmMasterReceiptTotal = mMasterReceiptTotal;
            frmPaymentAmount = mPaymentAmount;
            frmOutstandingAmount = mOutstandingAmount;
            frmPackageList = strPackageList;

            Init();
        }
Example #17
0
        public frmIPP_Add(ACMSLogic.POS pos)
        {
            //
            // Required for Windows Form Designer support
            //
            InitializeComponent();

            myPOS = pos;

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

            InitLookupEdit();
        }
Example #18
0
        public GIROpkg(ACMSLogic.POS pos)
        {
            //public FormPayOutstanding(ACMSLogic.POS pos)
            // Required for Windows Form Designer support
            //
            InitializeComponent();

            //
            // TODO: Add any constructor code after InitializeComponent call
            //
            myPOS = pos;
            myDataTable = new DataTable();
            myCategoryID = myPOS.NCategoryID;
            myPOSHelper= new ACMSLogic.POSHelper(myPOS);
        }
Example #19
0
        public FormEditCustomerVoice(ACMSLogic.CustomerVoice cv, int nCaseID)
        {
            //
            // Required for Windows Form Designer support
            //
            InitializeComponent();

            //
            // TODO: Add any constructor code after InitializeComponent call
            //
            myNCaseID = nCaseID;
            myCV = cv;

            Init();
        }
Example #20
0
        public FormExtendLocker(ACMSLogic.POS pos)
        {
            //
            // Required for Windows Form Designer support
            //
            InitializeComponent();
            connectionString = (string)ConfigurationSettings.AppSettings["Main.ConnectionString"];
            connection = new SqlConnection(connectionString);
            //
            // TODO: Add any constructor code after InitializeComponent call
            //

            myPOS = pos;
            label1.Text = "Month(s) To Extend:";
        }
        public FormUpdateMemberPackageExtension(ACMSLogic.MemberPackage memberPackage, int nExtensionID)
        {
            //
            // Required for Windows Form Designer support
            //
            InitializeComponent();

            //
            // TODO: Add any constructor code after InitializeComponent call
            //
            myExtensionID= nExtensionID;
            myMemberPackage = memberPackage;
            label6.Text = "Update Extension ID : " + myExtensionID;

            Init();
        }
Example #22
0
        public FormNewSpaBooking(ACMSLogic.SpaBooking spaBooking, bool isWaitingList)
        {
            //
            // Required for Windows Form Designer support
            //
            InitializeComponent();

            //
            // TODO: Add any constructor code after InitializeComponent call
            //
            mySpaBooking = spaBooking;
            myIsWaitingList = isWaitingList;
            ucMemberID1.StrBranchCode = ACMSLogic.User.BranchCode;
            ucMemberID1.EditValueChanged += new ACMSLogic.Common.EditValueChangedDelegate(UcMemberEditValueChanged);
            Init();
        }
Example #23
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;
        }
        public FormForgetCardReceiptSelection(ACMSLogic.POS pos)
        {
            //
            // Required for Windows Form Designer support
            //
            InitializeComponent();

            //
            // TODO: Add any constructor code after InitializeComponent call
            //
            myPOS = pos;
            myPOSHelper = new ACMSLogic.POSHelper(myPOS);
            myDataTable = myPOSHelper.GetDataTable();

            Init();
        }
Example #25
0
        public frmIPP_Add(ACMSLogic.IPP Ipp, string aTerminalBranchCode)
        {
            //
            // Required for Windows Form Designer support
            //
            InitializeComponent();
            connectionString = (string)ConfigurationSettings.AppSettings["Main.ConnectionString"];
            connection = new SqlConnection(connectionString);
            IPPs = Ipp;
            strTerminalBranchCode = aTerminalBranchCode;

            //
            // TODO: Add any constructor code after InitializeComponent call
            //
            ucMemberID1.StrBranchCode = aTerminalBranchCode;
        }
        public FormTransferMemberPackage(ACMSLogic.MemberPackage memberPackage, string strCurrMemberID, int packageID)
        {
            //
            // Required for Windows Form Designer support
            //
            InitializeComponent();

            //
            // TODO: Add any constructor code after InitializeComponent call
            //
            myCurrMemberID = strCurrMemberID;
            myPackageID = packageID;
            myMemberPackage = memberPackage;
            labelHeader.Text = string.Format("Transfer PackageID = {0} of Member {1}.", packageID, strCurrMemberID);
            Init();
        }
Example #27
0
        public frmOvertime(Do.Employee employee, ACMSLogic.Staff.Timesheet timesheet, DataRow aEmployeeInfo)
        {
            //
            // Required for Windows Form Designer support
            //
            InitializeComponent();

            //
            // TODO: Add any constructor code after InitializeComponent call
            //
            ACMS.XtraUtils.XtraEditors.SetDateEditFormat(this.Controls);
            this.employee = employee;
            this.timesheet = timesheet;
            this.rEmployeeInfo = aEmployeeInfo;
            dateedtDate.DateTime = DateTime.Now;
            //new XtraUtils.LookupEditBuilder.EmployeeIDLookupEditBuilder(luedtApprovingManager.Properties, true);
        }
 public FormNewServiceSessionPT(int nPackageID, ACMSLogic.User User)
 {
     //
     // Required for Windows Form Designer support
     //
     InitializeComponent();
     //
     // TODO: Add any constructor code after InitializeComponent call
     //
     oUser= User;
     myPackageID = nPackageID;
     label3.Text = "Session Time";
     label4.Text = "Personal Trainer";
     lkpEdtServiceCode.Enabled = true;
     this.Text = "New PT Package Attendance";
     Init();
 }
Example #29
0
        public FormNewCVAction(ACMSLogic.CustomerVoice cv, int nCaseID, string caseSubj, DateTime caseDate)
        {
            //
            // Required for Windows Form Designer support
            //
            InitializeComponent();

            //
            // TODO: Add any constructor code after InitializeComponent call
            //
            myCV = cv;
            myCaseID = nCaseID;
            txtEdtCaseSubj.Text = caseSubj;
            dtEdtCaseDate.DateTime = caseDate;
            this.Text = string.Format("Action of Case - {0}.", caseSubj);
            Init();
        }
Example #30
0
        public FormPayOutstanding(ACMSLogic.POS pos)
        {
            //
            // Required for Windows Form Designer support
            //
            InitializeComponent();

            //
            // TODO: Add any constructor code after InitializeComponent call
            //
            myPOS = pos;
            myReceiptPayment= new ACMSLogic.Payment();
            GridControl11.DataSource = myReceiptPayment.GetOutstandingReceipt(pos.StrMembershipID);

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