public override void Refresh() { //base.Refresh (); ACMSDAL.TblCategory sqlcategory = new ACMSDAL.TblCategory(); myDataTable = sqlcategory.GetAllowedSalesConversionCategory(); 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 BillFreebiePromotionCodeLookupEditBuilder(RepositoryItemLookUpEdit lookupEdt, string strID, decimal receiptAmt, string branchCode, int nCategoryID, bool isMember, string strReceipt) : base(lookupEdt) { ACMSDAL.TblCategory category = new ACMSDAL.TblCategory(); category.NCategoryID = nCategoryID; category.SelectOne(); mySalesCategoryID = ACMS.Convert.ToInt32(category.NSalesCategoryID); myID = strID; myReceiptAmt = receiptAmt; myBranchCode = branchCode; myIsMember = isMember; myReceipt = strReceipt; myDisplayMember = "strPromotionCode"; myValueMember = "strPromotionCode"; Refresh(); myLookupEdit.Columns.Clear(); myLookupEdit.Columns.AddRange(new DevExpress.XtraEditors.Controls.LookUpColumnInfo[] { new DevExpress.XtraEditors.Controls.LookUpColumnInfo("strPromotionCode", "Promotion Code", 10, DevExpress.Utils.FormatType.None, "", true, DevExpress.Utils.HorzAlignment.Default, DevExpress.Data.ColumnSortOrder.None), new DevExpress.XtraEditors.Controls.LookUpColumnInfo("strDescription", "Description", 30, DevExpress.Utils.FormatType.None, "", true, DevExpress.Utils.HorzAlignment.Default, DevExpress.Data.ColumnSortOrder.None), new DevExpress.XtraEditors.Controls.LookUpColumnInfo("mMinimumAmount", "Minimum Amount", 15, DevExpress.Utils.FormatType.Numeric, "", true, DevExpress.Utils.HorzAlignment.Default, DevExpress.Data.ColumnSortOrder.None)}); }
public BillDepositPromotionCodeLookupEditBuilder(RepositoryItemLookUpEdit lookupEdt, string strID, int nCategoryID) : base(lookupEdt) { ACMSDAL.TblCategory category = new ACMSDAL.TblCategory(); category.NCategoryID = nCategoryID; category.SelectOne(); mySalesCategoryID = ACMS.Convert.ToInt32(category.NSalesCategoryID); myID = strID; myDisplayMember = "strReceiptNo"; myValueMember = "strReceiptNo"; RefreshDeposit(); myLookupEdit.Columns.Clear(); myLookupEdit.Columns.AddRange(new DevExpress.XtraEditors.Controls.LookUpColumnInfo[] { new DevExpress.XtraEditors.Controls.LookUpColumnInfo("strReceiptNo", "Receipt No", 10, DevExpress.Utils.FormatType.None, "", true, DevExpress.Utils.HorzAlignment.Default, DevExpress.Data.ColumnSortOrder.None), new DevExpress.XtraEditors.Controls.LookUpColumnInfo("strDescription", "Description", 30, DevExpress.Utils.FormatType.None, "", true, DevExpress.Utils.HorzAlignment.Default, DevExpress.Data.ColumnSortOrder.None), new DevExpress.XtraEditors.Controls.LookUpColumnInfo("mNettAmount", "Deposit Amount", 15, DevExpress.Utils.FormatType.Numeric, "", true, DevExpress.Utils.HorzAlignment.Default, DevExpress.Data.ColumnSortOrder.None)}); //new DevExpress.XtraEditors.Controls.LookUpColumnInfo("dDiscountValue", "Discount Value", 15, DevExpress.Utils.FormatType.Numeric, "", true, DevExpress.Utils.HorzAlignment.Default, DevExpress.Data.ColumnSortOrder.None)}); }