private static string GetProcessStatus(ApplyformListView form, OrderRole orderRole) { if (form.ApplyformType == ApplyformType.Postpone) { return(Service.Order.StatusService.GetPostponeApplyformStatus((PostponeApplyformStatus)form.ApplyDetailStatus, orderRole)); } else if (form.ApplyformType == ApplyformType.BlanceRefund) { return(Service.Order.StatusService.GetBalanceRefundStatus((BalanceRefundProcessStatus)form.ApplyDetailStatus, orderRole)); } else { return(Service.Order.StatusService.GetRefundApplyformStatus((RefundApplyformStatus)form.ApplyDetailStatus, orderRole)); } }
private static string GetProcessStatus(ApplyformListView form) { switch (form.ApplyformType) { case ApplyformType.Postpone: return(Service.Order.StatusService.GetPostponeApplyformStatus((PostponeApplyformStatus)form.ApplyDetailStatus, OrderRole.Provider)); case ApplyformType.Refund: case ApplyformType.Scrap: return(Service.Order.StatusService.GetPostponeApplyformStatus((PostponeApplyformStatus)form.ApplyDetailStatus, OrderRole.Provider)); case ApplyformType.BlanceRefund: return(Service.Order.StatusService.GetBalanceRefundStatus((BalanceRefundProcessStatus)form.ApplyDetailStatus, OrderRole.Provider)); } return(string.Empty); }