/// <summary> /// 查询通证列表 /// </summary> /// <param name="currencyInfoModelGet"></param> /// <returns></returns> public IHttpActionResult QueryCurrency(CurrencyInfoModelGet currencyInfoModelGet) { DataTable dt = _currencyInfoDal.QueryCurrency(); IList <CurrencyInfoModelResult> currencyInfoModelResults = ModelConvertHelper <CurrencyInfoModelResult> .ConvertToModel(dt); return(Json(new ResultDataModel <IList <CurrencyInfoModelResult> > { Data = currencyInfoModelResults })); }
private void btnUpdateCurrentAmount_Click(object sender, EventArgs e) { CurrencyInfoModelGet currencyInfoModelGet = gvPassCard.GetFocusedRow() as CurrencyInfoModelGet; if (currencyInfoModelGet != null && currencyInfoModelGet.Id == 0) { SubFormPassCardCurrentAmount subFormPassCardCurrentAmount = new SubFormPassCardCurrentAmount(); subFormPassCardCurrentAmount.SubformType = SubformType.Insert; subFormPassCardCurrentAmount.CurrencyInfoModelGet = currencyInfoModelGet; if (subFormPassCardCurrentAmount.ShowDialog() == DialogResult.OK) { QueryCurrency(); } } }