private void CheckResult(string For, string ID, bool IsSuccess, string sError = "") { int num = 0; string text = ID.ToNullString().ToLower().Trim(); if (text.StartsWith("pre")) { if (text.Length > 5) { num = text.Substring(5).ToInt(0); } } else { num = text.ToInt(0); } if (For.ToLower().Equals("balancedraw")) { MemberHelper.OnLineBalanceDrawRequest_API(num, IsSuccess, sError); } else if (For.ToLower().Equals("splittin")) { MemberHelper.OnLineSplittinDraws_API(num, IsSuccess, sError); } else if (For.ToLower().Equals("balancedraw4supplier")) { BalanceHelper.OnLineBalanceDrawRequest_API(num, IsSuccess, sError); } else if (For.ToLower().Equals("balancedraw4store")) { StoreBalanceHelper.OnLineBalanceDrawRequest_API(num, true, sError); } }
public void Cancel(HttpContext context) { int?intParam = base.GetIntParam(context, "id", true); if (!intParam.HasValue || intParam < 1) { throw new HidistroAshxException("错误的数据编号"); } try { StoreBalanceHelper.OnLineBalanceDrawRequest_API(intParam.Value, false, "管理员:" + base.CurrentManager.UserName + "取消付款"); base.ReturnSuccessResult(context, "取消付款成功", 0, true); } catch { throw new HidistroAshxException("取消付款操作失败"); } }