private void Inquery() { try { infoQuery = new CPowerCardBillQuery(); ret = infoQuery.BillQuery(); } catch (Exception ex) { Log.Error("inquery error:", ex); } }
protected override void OnEnter() { PowerEntity entity = GetBusinessEntity() as PowerEntity; CPowerCardBillQuery infoQuery = new CPowerCardBillQuery(); TransResult ret = infoQuery.BillQuery();// SyncTransaction(infoQuery); if (ret == TransResult.E_SUCC) { StartActivity("电力支付账单信息"); } else if (ret == TransResult.E_HOST_FAIL) { ShowMessageAndGotoMain(infoQuery.ReturnCode + "-" + infoQuery.ReturnMessage); } else if (ret == TransResult.E_RECV_FAIL) { ShowMessageAndGotoMain("交易超时,请重试"); } else { ShowMessageAndGotoMain("交易失败,请重试"); } }