public void r103Implementation(OrderDtlVwModel instance) { // This is the placeholder for method implementation. if (instance.ChangeSellingPrice != null && !(bool)instance.ChangeSellingPrice) { instance.ProposedSellingPrice = null; instance.ProposedSellingPricePerBottle = null; } }
public void r102Implementation(OrderDtlVwModel instance) { // This is the placeholder for method implementation. if (instance.SellingPrice != null && instance.CtnConv != null) { if (Convert.ToDecimal(instance.CtnConv) > 0 && Convert.ToDecimal(instance.SellingPrice) > 0) { instance.SellingPricePerBottle = instance.SellingPrice / instance.CtnConv; } } if (instance.BasePrice != null && instance.CtnConv != null) { if (Convert.ToDecimal(instance.CtnConv) > 0 && Convert.ToDecimal(instance.BasePrice) > 0) { instance.BasePricePerBottle = instance.BasePrice / instance.CtnConv; } } if (instance.ProposedSellingPrice != null && instance.CtnConv != null && instance.ProposedSellingPrice > 0 && instance.CtnConv > 0) { instance.ProposedSellingPricePerBottle = instance.ProposedSellingPrice / instance.CtnConv; } else { instance.ProposedSellingPricePerBottle = null; } if (instance.ProposedBasePrice != null && instance.CtnConv != null && instance.ProposedBasePrice > 0 && instance.CtnConv > 0) { instance.ProposedBasePricePerBottle = instance.ProposedBasePrice / instance.CtnConv; } else { instance.ProposedBasePricePerBottle = null; } }
public void r106Implementation(OrderDtlVwModel instance) { // This is the placeholder for method implementation. if (Arguments.CommandArgument == "PartSysRowID") { //instance.OrderQty = 0; //instance.Focqty = 0; instance.ChangeBasePrice = false; instance.ChangeSellingPrice = false; instance.ProposedBasePrice = null; instance.ProposedSellingPrice = null; instance.ProposedSellingPricePerBottle = null; instance.ProposedBasePricePerBottle = null; } if (Arguments.CommandArgument == "ChangeSellingPrice") { if (instance.ChangeSellingPrice == null) { //instance.ProposedSellingPrice = null; //instance.ProposedSellingPricePerBottle = null; instance.ProposedAmount = instance.SellingPrice * instance.OrderQty; } if (instance.ChangeSellingPrice != null && !(bool)instance.ChangeSellingPrice) { //instance.ProposedSellingPrice = null; //instance.ProposedSellingPricePerBottle = null; instance.ProposedAmount = instance.SellingPrice * instance.OrderQty; } if (instance.ChangeSellingPrice != null && (bool)instance.ChangeSellingPrice && instance.ProposedSellingPrice != null && instance.ProposedSellingPrice > 0 && instance.OrderQty > 0) { //instance.ProposedSellingPrice = null; //instance.ProposedSellingPricePerBottle = null; instance.ProposedAmount = instance.ProposedSellingPrice * instance.OrderQty; } } if (Arguments.CommandArgument == "ChangeBasePrice") { if (instance.ChangeBasePrice != null && !(bool)instance.ChangeBasePrice) { instance.ProposedBasePrice = null; instance.ProposedBasePricePerBottle = null; instance.ProposedAmount = instance.SellingPrice * instance.OrderQty; } } if (Arguments.CommandArgument == "OrderQty") { instance.Amount = instance.SellingPrice * instance.OrderQty; instance.ProposedAmount = instance.SellingPrice * instance.OrderQty; //if (instance.ProposedSellingPrice != null && instance.CtnConv != null // && instance.ProposedSellingPrice > 0 && instance.CtnConv > 0) //{ // instance.ProposedSellingPricePerBottle = instance.ProposedSellingPrice / instance.CtnConv; // instance.ProposedAmount = instance.ProposedSellingPrice * instance.OrderQty; //} //else //{ // instance.ProposedSellingPricePerBottle = null; // instance.ProposedAmount = instance.SellingPrice * instance.OrderQty; //} } if (Arguments.CommandArgument == "ProposedSellingPrice") { if (instance.ProposedSellingPrice != null && instance.CtnConv != null && instance.ProposedSellingPrice > 0 && instance.CtnConv > 0) { instance.ProposedSellingPricePerBottle = instance.ProposedSellingPrice / instance.CtnConv; instance.ProposedAmount = instance.ProposedSellingPrice * instance.OrderQty; } else { instance.ProposedSellingPricePerBottle = null; instance.ProposedAmount = instance.SellingPrice * instance.OrderQty; } } if (Arguments.CommandArgument == "ProposedBasePrice") { if (instance.ProposedBasePrice != null && instance.CtnConv != null && instance.ProposedBasePrice > 0 && instance.CtnConv > 0) { instance.ProposedBasePricePerBottle = instance.ProposedBasePrice / instance.CtnConv; } else { instance.ProposedBasePricePerBottle = null; } } }
public void r100Implementation(OrderDtlVwModel instance) { // This is the placeholder for method implementation. }