Пример #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);
        }
        public FormAddItemFreebiesAndDiscount(ACMSLogic.POS pos, DataRow row,
                                              int nCategoryTypeID)
        {
            //
            // Required for Windows Form Designer support
            //
            InitializeComponent();

            //
            // 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);

            myItemDiscountPromotionCodeLookupBuilder =
                new ACMS.XtraUtils.LookupEditBuilder.ItemDiscountPromotionCodeLookupEditBuilder(lkpEdtDiscount.Properties,
                                                                                                myPOS.StrMembershipID, myPOS.MNettAmount, myCategoryTypeID, myPOS.NCategoryID,
                                                                                                myStrProduct_Or_Package_Code, myPOS.StrBranchCode, myPOS.IsStaffPurchase);
        }
Пример #4
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;
        }
Пример #5
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;
            }
        }
Пример #6
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;
            }
        }
Пример #7
0
 public POSHelper(int nCategoryID, string strBranchCode, ACMSLogic.POS pos)
 {
     //
     // TODO: Add constructor logic here
     //
     myPOS           = pos;
     myCategoryID    = nCategoryID;
     myStrBranchCode = strBranchCode;
 }
Пример #8
0
 public POSHelper(int nCategoryID, string strBranchCode, ACMSLogic.POS pos)
 {
     //
     // TODO: Add constructor logic here
     //
     myPOS = pos;
     myCategoryID = nCategoryID;
     myStrBranchCode = strBranchCode;
 }
Пример #9
0
 public POSHelper(ACMSLogic.POS pos)
 {
     //
     // TODO: Add constructor logic here
     //
     myPOS = pos;
     myCategoryID = myPOS.NCategoryID;
     myStrBranchCode = myPOS.StrBranchCode;
     myNQty = myPOS.NQty;
 }
Пример #10
0
 public POSHelper(ACMSLogic.POS pos)
 {
     //
     // TODO: Add constructor logic here
     //
     myPOS           = pos;
     myCategoryID    = myPOS.NCategoryID;
     myStrBranchCode = myPOS.StrBranchCode;
     myNQty          = myPOS.NQty;
 }
Пример #11
0
        public FormForgetCardAction(ACMSLogic.POS pos)
        {
            //
            // Required for Windows Form Designer support
            //
            InitializeComponent();

            //
            // TODO: Add any constructor code after InitializeComponent call
            //
            myPOS = pos;
        }
Пример #12
0
        public FormForgetCardAction(ACMSLogic.POS pos)
        {
            //
            // Required for Windows Form Designer support
            //
            InitializeComponent();

            //
            // TODO: Add any constructor code after InitializeComponent call
            //
            myPOS = pos;
        }
Пример #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
            //
        }
Пример #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);
        }
Пример #15
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:";
        }
Пример #16
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);
        }
Пример #17
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
            //
        }
Пример #18
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();
            }
        }
Пример #19
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 = "
            }
            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();
            }
        }
Пример #20
0
        public FormNewLocker(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 Rent:";
        }
Пример #21
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();
        }
Пример #22
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:";
        }
Пример #23
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);
        }
Пример #24
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);
        }
Пример #25
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();
        }
        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();
        }
Пример #27
0
        public FormNewLocker(ACMSLogic.POS pos)
        {
            //
            // Required for Windows Form Designer support
            //
            InitializeComponent();

            //
            // TODO: Add any constructor code after InitializeComponent call
            //
            connectionString = (string)ConfigurationSettings.AppSettings["Main.ConnectionString"];
            connection       = new SqlConnection(connectionString);

            myPOS       = pos;
            label1.Text = "Month(s) To Rent:";
        }
Пример #28
0
        private void DeleteUntouchSameCreditPackage(ACMSLogic.POS myPOS)
        {
            if (myCreditAccount.Table != null)
            {
                foreach (DataRow drCredit in myCreditAccount.Table.Rows)
                {
                    DataRow[] foundRow = myPOS.ReceiptItemsTable.Select("strCode = '" + drCredit["strCreditPackageCode"] + "'");

                    if (foundRow.Length > 0 && drCredit["strBalNew"] == "New")
                    {
                        drCredit.Delete();
                    }
                }
                myCreditAccount.Table.AcceptChanges();
            }
        }
Пример #29
0
        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();
        }
Пример #30
0
        public FormAddCreditPackage(ACMSLogic.POS pos)
        {
            //
            // Required for Windows Form Designer support
            //
            InitializeComponent();

            //
            // TODO: Add any constructor code after InitializeComponent call
            //
            connectionString = (string)ConfigurationSettings.AppSettings["Main.ConnectionString"];
            connection       = new SqlConnection(connectionString);
            myPOS            = pos;
            myDataTable      = new DataTable();
            myCategoryID     = myPOS.NCategoryID;
            myPOSHelper      = new ACMSLogic.POSHelper(myPOS);
            Init();
        }
Пример #31
0
        public FormAddRewards(ACMSLogic.POS pos)
        {
            //
            // Required for Windows Form Designer support
            //
            InitializeComponent();

            //
            // TODO: Add any constructor code after InitializeComponent call
            //
            myPOS = pos;
            ACMSDAL.TblCategory category = new ACMSDAL.TblCategory();
            category.NCategoryID = pos.NCategoryID;
            category.SelectOne();

            myRewardCodeLookupBuilder = new ACMS.XtraUtils.LookupEditBuilder.RewardCodeLookupEditBuilder(lookUpEdit1.Properties,
                myPOS.StrBranchCode, ACMS.Convert.ToInt32(category.NSalesCategoryID));
        }
Пример #32
0
        public FormAddRewards(ACMSLogic.POS pos)
        {
            //
            // Required for Windows Form Designer support
            //
            InitializeComponent();

            //
            // TODO: Add any constructor code after InitializeComponent call
            //
            myPOS = pos;
            ACMSDAL.TblCategory category = new ACMSDAL.TblCategory();
            category.NCategoryID = pos.NCategoryID;
            category.SelectOne();

            myRewardCodeLookupBuilder = new ACMS.XtraUtils.LookupEditBuilder.RewardCodeLookupEditBuilder(lookUpEdit1.Properties,
                                                                                                         myPOS.StrBranchCode, ACMS.Convert.ToInt32(category.NSalesCategoryID));
        }
Пример #33
0
        public FormTopUpSingleTreatment(ACMSLogic.POS pos)
        {
            //
            // Required for Windows Form Designer support
            //
            InitializeComponent();

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

            ACMSDAL.TblMemberPackage sqlMemberPackage = new ACMSDAL.TblMemberPackage();
            myDataTable = sqlMemberPackage.GetActiveMemberPackageForSpaSingleTreatment(myPOS.StrMembershipID);
            ACMSLogic.MemberPackage.CalculateMemberPackageBalance(myDataTable);
            myDataTable.DefaultView.RowFilter = "Balance > 0 ";
            GridControl6.DataSource = myDataTable.DefaultView;
        }
Пример #34
0
        public FormTopUpSingleTreatment(ACMSLogic.POS pos)
        {
            //
            // Required for Windows Form Designer support
            //
            InitializeComponent();

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

            ACMSDAL.TblMemberPackage sqlMemberPackage = new ACMSDAL.TblMemberPackage();
            myDataTable = sqlMemberPackage.GetActiveMemberPackageForSpaSingleTreatment(myPOS.StrMembershipID);
            ACMSLogic.MemberPackage.CalculateMemberPackageBalance(myDataTable);
            myDataTable.DefaultView.RowFilter = "Balance > 0 ";
            GridControl6.DataSource           = myDataTable.DefaultView;
        }
Пример #35
0
        public FormUpgradePackageNew(ACMSLogic.POS pos)
        {
            //
            // Required for Windows Form Designer support
            //
            InitializeComponent();

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

            myPOS = pos;
            myMemberPackage = new ACMSLogic.MemberPackage();
            myPackage = new ACMSLogic.PackageCode();
            myCreditAccount = new ACMSLogic.CreditAccount();
            connectionString = (string)ConfigurationSettings.AppSettings["Main.ConnectionString"];
            connection = new SqlConnection(connectionString);
            Init();
        }
Пример #36
0
        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();
        }
Пример #37
0
        public FormBillDiscount(ACMSLogic.POS pos, DataRow Row)
        {
            //
            // Required for Windows Form Designer support
            //
            InitializeComponent();

            //
            // TODO: Add any constructor code after InitializeComponent call
            //
            myPOS = pos;
            myBillDiscountCodeLookupEditBuilder = new ACMS.XtraUtils.LookupEditBuilder.BillDiscountPromotionCodeLookupEditBuilder(lookUpEdit1.Properties,
                myPOS.StrMembershipID, myPOS.MNettAmount, myPOS.StrBranchCode, myPOS.NCategoryID, true);

            myBillDepositCodeLookupEditBuilder = new ACMS.XtraUtils.LookupEditBuilder.BillDepositPromotionCodeLookupEditBuilder(lookUpEdit2.Properties,
                myPOS.StrMembershipID,myPOS.NCategoryID);

            //txtBillRefence.Text = Row["strBillReferenceNo"].ToString();
        }
        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();
        }
Пример #39
0
        public FormBillDiscount(ACMSLogic.POS pos, DataRow Row)
        {
            //
            // Required for Windows Form Designer support
            //
            InitializeComponent();

            //
            // TODO: Add any constructor code after InitializeComponent call
            //
            myPOS = pos;
            myBillDiscountCodeLookupEditBuilder = new ACMS.XtraUtils.LookupEditBuilder.BillDiscountPromotionCodeLookupEditBuilder(lookUpEdit1.Properties,
                                                                                                                                  myPOS.StrMembershipID, myPOS.MNettAmount, myPOS.StrBranchCode, myPOS.NCategoryID, true);

            myBillDepositCodeLookupEditBuilder = new ACMS.XtraUtils.LookupEditBuilder.BillDepositPromotionCodeLookupEditBuilder(lookUpEdit2.Properties,
                                                                                                                                myPOS.StrMembershipID, myPOS.NCategoryID);

            //txtBillRefence.Text = Row["strBillReferenceNo"].ToString();
        }
Пример #40
0
        public FormUpgradePackageNew(ACMSLogic.POS pos)
        {
            //
            // Required for Windows Form Designer support
            //
            InitializeComponent();

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

            myPOS            = pos;
            myMemberPackage  = new ACMSLogic.MemberPackage();
            myPackage        = new ACMSLogic.PackageCode();
            myCreditAccount  = new ACMSLogic.CreditAccount();
            connectionString = (string)ConfigurationSettings.AppSettings["Main.ConnectionString"];
            connection       = new SqlConnection(connectionString);
            Init();
        }
Пример #41
0
        public FormAddBillFreebie(ACMSLogic.POS pos, bool bLoadStockRecon)
        {
            //
            // 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
            //

            if (!myIsFinishLoadStockRecon)
               {
                   myIsFinishLoadStockRecon = bLoadStockRecon;
               }

            myPOS = pos;
            myFreebiePromotionCodeLookupBuilder = new ACMS.XtraUtils.LookupEditBuilder.BillFreebiePromotionCodeLookupEditBuilder(lkpEdtPromotionCode.Properties,
                myPOS.StrMembershipID, myPOS.MNettAmount, myPOS.StrBranchCode, myPOS.NCategoryID, true,myPOS.StrReceiptNo);
        }
Пример #42
0
        public FormAddBillFreebie(ACMSLogic.POS pos, bool bLoadStockRecon)
        {
            //
            // 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
            //

            if (!myIsFinishLoadStockRecon)
            {
                myIsFinishLoadStockRecon = bLoadStockRecon;
            }

            myPOS = pos;
            myFreebiePromotionCodeLookupBuilder = new ACMS.XtraUtils.LookupEditBuilder.BillFreebiePromotionCodeLookupEditBuilder(lkpEdtPromotionCode.Properties,
                                                                                                                                 myPOS.StrMembershipID, myPOS.MNettAmount, myPOS.StrBranchCode, myPOS.NCategoryID, true, myPOS.StrReceiptNo);
        }
        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);
        }
Пример #44
0
        private void FormInitialise(int nCategoryID, string barItemNameBeenClicked,int iGIRO)
        {
            if (!myIsFinishInitialise)
            {
                //DataSet tabBranchRoadShowTable = new DataSet();
                StrNewMembershipID = "";
                //string strSQL = "select * from tblBranchRoadShow where strBranchCode='" + myStrLocation + "' and getdate() between dtFrom and CONVERT(VARCHAR(10),dtTo,120)+' 23:59:59' ";
                //SqlHelper.FillDataset(connection, CommandType.StoredProcedure, "UP_GETDATA", tabBranchRoadShowTable, new string[] { "Table" }, new SqlParameter("@strSQL", strSQL));

                //tabBranchRoadShowTable.Dispose();

                myPOS = Command.NewPOS(nCategoryID,
                    myNEmployeeID, myStrMembershipID, myStrBranchCode,
                    myNTerminalID, myNShiftID, myStrLocation, myNPackageID, iGIRO);//1503

                Init();
                SetNaviBar(barItemNameBeenClicked);
                DataBinding();
                gridItem.DataSource = myPOS.ReceiptItemsTable;
                myIsFinishInitialise = true;

                if (myPOS.NCategoryID == 1 || //myPOS.NCategoryID == 2 ||
                    myPOS.NCategoryID == 3 || myPOS.NCategoryID == 4 ||
                    myPOS.NCategoryID == 5 || myPOS.NCategoryID == 6 ||
                    myPOS.NCategoryID == 7 || myPOS.NCategoryID == 8 ||
                    myPOS.NCategoryID == 9 || myPOS.NCategoryID == 36 || myPOS.NCategoryID == 37)
                {
                    myPOS.AddRegFees();
                }

                if (myPOS.NCategoryID == 1 || myPOS.NCategoryID == 3 || //myPOS.NCategoryID == 3 ||
                    myPOS.NCategoryID == 4 || myPOS.NCategoryID == 5 || myPOS.NCategoryID == 6 ||
                    myPOS.NCategoryID == 8 || myPOS.NCategoryID == 7 || myPOS.NCategoryID == 9 ||
                    myPOS.NCategoryID == 11 || myPOS.NCategoryID == 12 || myPOS.NCategoryID == 36 || myPOS.NCategoryID == 37)
                {
                    pnlCtrlBarScanner.Visible = true;
                    calcEditQty.Value = 1;
                }
                else
                {
                    pnlCtrlBarScanner.Visible = false;
                }

                if (myPOS.NCategoryID == 35 || myPOS.NCategoryID == 24)
                {
                    gridColumnListPrice.OptionsColumn.AllowEdit = true;
                }

            }
        }
Пример #45
0
        public FormUpgradePackage(ACMSLogic.POS pos)
        {
            //
            // Required for Windows Form Designer support
            //
            InitializeComponent();

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

            comboBoxEdit1.Properties.Items.AddRange(new string [] {"Normal Package", "Credit Package"});
            myPOS = pos;
            myMemberPackage = new ACMSLogic.MemberPackage();
            myPackage = new ACMSLogic.PackageCode();
            myCreditAccount = new ACMSLogic.CreditAccount();
            Init();
        }
Пример #46
0
        public FormAddCreditPackage(ACMSLogic.POS pos)
        {
            //
            // Required for Windows Form Designer support
            //
            InitializeComponent();

            //
            // TODO: Add any constructor code after InitializeComponent call
            //
            connectionString = (string)ConfigurationSettings.AppSettings["Main.ConnectionString"];
            connection = new SqlConnection(connectionString);
            myPOS = pos;
            myDataTable = new DataTable();
            myCategoryID = myPOS.NCategoryID;
            myPOSHelper= new ACMSLogic.POSHelper(myPOS);
            Init();
        }