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); }
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; } }
public POSHelper(int nCategoryID, string strBranchCode, ACMSLogic.POS pos) { // // TODO: Add constructor logic here // myPOS = pos; myCategoryID = nCategoryID; myStrBranchCode = strBranchCode; }
public POSHelper(ACMSLogic.POS pos) { // // TODO: Add constructor logic here // myPOS = pos; myCategoryID = myPOS.NCategoryID; myStrBranchCode = myPOS.StrBranchCode; myNQty = myPOS.NQty; }
public FormForgetCardAction(ACMSLogic.POS pos) { // // Required for Windows Form Designer support // InitializeComponent(); // // TODO: Add any constructor code after InitializeComponent call // myPOS = pos; }
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 // }
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); }
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:"; }
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(); } }
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(); } }
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:"; }
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 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 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); }
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); }
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(); }
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:"; }
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(); } }
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(); }
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)); }
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; }
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(); }
public FormAddSalesPersonAndTherapist(ACMSLogic.POS pos) { // // Required for Windows Form Designer support // InitializeComponent(); // // TODO: Add any constructor code after InitializeComponent call // myPOS = pos; myTherapistLookupBuilder = new ACMS.XtraUtils.LookupEditBuilder.TherapistForPOSSalesLookupEditBuilder(lkpEdtTherapist.Properties, myPOS.StrBranchCode); myEmployeeIDLookupBuilder = new ACMS.XtraUtils.LookupEditBuilder.TherapistForPOSSalesLookupEditBuilder(lkpEdtSalesPersonID.Properties, myPOS.StrBranchCode); Init(); }
public 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 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 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 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); }
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; } } }
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(); }
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(); }