コード例 #1
0
ファイル: FormTopUpCredit.cs プロジェクト: kimykunjun/test
        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;
        }
コード例 #2
0
        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);
        }
コード例 #3
0
        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
ファイル: FormTopUpCredit.cs プロジェクト: kimykunjun/test
        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
ファイル: FormLockerAction.cs プロジェクト: kimykunjun/test
        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
ファイル: POSHelper.cs プロジェクト: kimykunjun/test
 public POSHelper(int nCategoryID, string strBranchCode, ACMSLogic.POS pos)
 {
     //
     // TODO: Add constructor logic here
     //
     myPOS           = pos;
     myCategoryID    = nCategoryID;
     myStrBranchCode = strBranchCode;
 }
コード例 #8
0
ファイル: POSHelper.cs プロジェクト: kimykunjun/test
 public POSHelper(int nCategoryID, string strBranchCode, ACMSLogic.POS pos)
 {
     //
     // TODO: Add constructor logic here
     //
     myPOS = pos;
     myCategoryID = nCategoryID;
     myStrBranchCode = strBranchCode;
 }
コード例 #9
0
ファイル: POSHelper.cs プロジェクト: kimykunjun/test
 public POSHelper(ACMSLogic.POS pos)
 {
     //
     // TODO: Add constructor logic here
     //
     myPOS = pos;
     myCategoryID = myPOS.NCategoryID;
     myStrBranchCode = myPOS.StrBranchCode;
     myNQty = myPOS.NQty;
 }
コード例 #10
0
ファイル: POSHelper.cs プロジェクト: kimykunjun/test
 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
ファイル: UpdateMemberGiro.cs プロジェクト: kimykunjun/test
        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
ファイル: FormAddBillFreebie.cs プロジェクト: kimykunjun/test
        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
ファイル: FormExtendLocker.cs プロジェクト: kimykunjun/test
        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
ファイル: FormAddBillFreebie.cs プロジェクト: kimykunjun/test
        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
ファイル: UpdateMemberGiro.cs プロジェクト: kimykunjun/test
        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
ファイル: FormMakePayment.cs プロジェクト: kimykunjun/test
        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
ファイル: FormMakePayment.cs プロジェクト: kimykunjun/test
        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
ファイル: FormNewLocker.cs プロジェクト: kimykunjun/test
        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
ファイル: FormExtendLocker.cs プロジェクト: kimykunjun/test
        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
ファイル: FrmGIROFit.cs プロジェクト: kimykunjun/test
        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
ファイル: FrmGIROFit.cs プロジェクト: kimykunjun/test
        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
ファイル: FormIPP_Add.cs プロジェクト: kimykunjun/test
        public frmIPP_Add(ACMSLogic.POS pos)
        {
            //
            // Required for Windows Form Designer support
            //
            InitializeComponent();

            myPOS = pos;

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

            InitLookupEdit();
        }
コード例 #26
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();
        }
コード例 #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
ファイル: FormAddRewards.cs プロジェクト: kimykunjun/test
        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
ファイル: FormBillDiscount.cs プロジェクト: kimykunjun/test
        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();
        }
コード例 #38
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();
        }
コード例 #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
ファイル: FormAddBillFreebie.cs プロジェクト: kimykunjun/test
        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
ファイル: FormAddBillFreebie.cs プロジェクト: kimykunjun/test
        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);
        }
コード例 #43
0
        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
ファイル: FormPOS2.cs プロジェクト: kimykunjun/test
        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
ファイル: FormUpgradePackage.cs プロジェクト: kimykunjun/test
        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();
        }