private void chkProfit_CheckedChanged(object sender, EventArgs e) { if (chkUseProfitPerventage.Checked) { spnProfitPercentage.Properties.ReadOnly = false; spnSellingPrice.Properties.ReadOnly = true; spnProfit.Properties.ReadOnly = true; spnProfitPercentage.EditValue = 0; spnSellingPrice.EditValue = 0; spnProfit.EditValue = 0; SellingPriceStrategey = SellingPriceStrategey.Percentage; } else if (chkSellingPrice.Checked) { spnProfitPercentage.Properties.ReadOnly = true; spnSellingPrice.Properties.ReadOnly = false; spnProfit.Properties.ReadOnly = true; spnProfitPercentage.EditValue = 0; spnSellingPrice.EditValue = 0; spnProfit.EditValue = 0; SellingPriceStrategey = SellingPriceStrategey.SellingPrice; } else if (chkProfit.Checked) { spnProfitPercentage.Properties.ReadOnly = true; spnSellingPrice.Properties.ReadOnly = true; spnProfit.Properties.ReadOnly = false; spnProfitPercentage.EditValue = 0; spnSellingPrice.EditValue = 0; spnProfit.EditValue = 0; SellingPriceStrategey = SellingPriceStrategey.Profit; } }
public ReviewInventoryItemsDetails_UC() { InitializeComponent(); CommonViewsActions.LoadXMLFromString(layoutControl1, Resources.LocalizedRes.lyt_ReviewInventoryItemsDetails_UC); CommonViewsActions.SetupSyle(this); CommonViewsActions.SetupGridControl(grd_AreaParts, Resources.LocalizedRes.grd_InventoryItem_Area_SearchViewer, false); CommonViewsActions.SetupGridControl(grd_Printing, Resources.LocalizedRes.grd_InventoryItem_Printing_SearchViewer, false); CommonViewsActions.SetupGridControl(grd_RawMaterials, Resources.LocalizedRes.grd_InventoryItem_RawMaterial_SearchViewer, false); //CommonViewsActions.SetupGridControl(grd_Color, // Resources.LocalizedRes.grd_InventoryItem_Area_SearchViewer, false); CommonViewsActions.FillGridlookupEdit(lkeInventoryItems, InventoryItem_cu.ItemsList.OrderBy(item => item.InternalCode).ToList()); CommonViewsActions.FillGridlookupEdit(lkeInternalCode, InventoryItem_cu.ItemsList.OrderBy(item => item.InternalCode).ToList(), "InternalCode"); SellingPriceStrategey = SellingPriceStrategey.Percentage; }