protected override string[] GetContent() { return(new[] { ID.ToString(), CurrencyID.ToString(), UnitID.ToString(), OriginID.ToString(), IncotermID.ToString(), PlaceID.ToString() }); }
protected void lvMDCurrency_ItemCommand(object sender, ListViewCommandEventArgs e) { Int64 CurrencyID; Int64.TryParse(e.CommandArgument.ToString(), out CurrencyID); if (CurrencyID > 0) { if (string.Equals(e.CommandName, "EditItem")) { _CurrencyID = CurrencyID; PrepareEditView(); cpeEditor.Collapsed = false; cpeEditor.ClientState = "false"; } else if (string.Equals(e.CommandName, "DeleteItem")) { try { Int64 result = -1; String fe = SqlExpressionBuilder.PrepareFilterExpression(MDCurrencyEntity.FLD_NAME_CurrencyID, CurrencyID.ToString(), SQLMatchType.Equal); MDCurrencyEntity mDCurrencyEntity = new MDCurrencyEntity(); result = FCCMDCurrency.GetFacadeCreate().Delete(mDCurrencyEntity, fe, DatabaseOperationType.Delete, TransactionRequired.No); if (result == 0) { _CurrencyID = 0; _MDCurrencyEntity = new MDCurrencyEntity(); PrepareInitialView(); BindMDCurrencyList(); MiscUtil.ShowMessage(lblMessage, "Currency has been successfully deleted.", true); } else { MiscUtil.ShowMessage(lblMessage, "Failed to delete Currency.", true); } } catch (Exception ex) { MiscUtil.ShowMessage(lblMessage, ex.Message, true); } } } }
public override void FillCongressVotingArguments(CongressVoting voting) { voting.Argument1 = Amount.ToString(); voting.Argument2 = CompanyID.ToString(); voting.Argument3 = CurrencyID.ToString(); }