| | |
| | | //str1 = str1 + "<td>" + bean.Remark + "</td>"; |
| | | |
| | | str1 += "<td class=\"text-right\">"; |
| | | str1 += string.Format("<a href=\"javascript:;\" data-orderid=\"{0}\" class=\"action-modal-detail btn btn-success btn-xs\"><i class=\"fa fa-search\"></i> 查看</a> ", (object) bean.OrderId); |
| | | str1 += string.Format("<a href=\"javascript:;\" data-orderid=\"{0}\" class=\"action-modal-audit btn btn-success btn-xs\"><i class=\"fa fa-search\"></i> 审核</a> ", (object) bean.OrderId); |
| | | str1 += string.Format("<a href=\"javascript:;\" data-orderid=\"{0}\" class=\"action-modal-detail btn btn-info btn-xs\"><i class=\"fa fa-search\"></i> 查看</a> ", (object) bean.OrderId); |
| | | str1 += string.Format("<a href=\"javascript:;\" data-orderid=\"{0}\" style=\"margin-top:10px; \" class=\"action-modal-audit btn btn-success btn-xs\"><i class=\"fa fa-edit\"></i> 审核</a> ", (object) bean.OrderId); |
| | | if(bean.Status == 0) { |
| | | str1 += string.Format("<a href=\"javascript:;\" data-orderid=\"{0}\" class=\"action-modal-cancel btn btn-success btn-xs\"><i class=\"fa fa-search\"></i> 取消</a> ", (object) bean.OrderId); |
| | | } |
| | |
| | | str1 += "<tr><td>" + bean.OrderId + "</td>"; |
| | | str1 = str1 + "<td>" + bean.SpId + "</td>"; |
| | | str1 = str1 + "<td>" + bean.ClientId + "</td>"; |
| | | //str1 = str1 + "<td>" + bean.Company + "</td>"; |
| | | str1 = str1 + "<td>" + bean.Company + "</td>"; |
| | | str1 = str1 + "<td>" + ProductToName(bean.ProductId) + "</td>"; |
| | | //str1 = str1 + "<td>" + bean.ComboId + "</td>"; |
| | | str1 = str1 + "<td>" + bean.BasicNum + "</td>"; |
| | |
| | | Int64 basicNum = context.GetInt64("basicNum"); |
| | | Int64 givingNum = context.GetInt64("givingNum"); |
| | | string clientId = ""; |
| | | Int64 payAmount = 0; |
| | | Int64 payAmount = 0;//金额 |
| | | Int64 tmpPayAmount = Math.Max((int) (context.GetDecimal("payAmount", new Decimal(4, 0, 0, false, (byte) 2)) * new Decimal(1000)), 0); |
| | | payAmount = tmpPayAmount; |
| | | //double price = context.GetDecimal(price); |
| | |
| | | int status = context.GetInt("status"); //0-审核不通过;1-审核通过 |
| | | string auditReason = context.GetString("auditReason"); |
| | | |
| | | if (status == 0 && string.IsNullOrEmpty(auditReason) ) |
| | | if (status == 0 && string.IsNullOrEmpty(auditReason)) |
| | | { |
| | | throw new ArgumentException("请输入不通过原因!"); |
| | | } |
| | |
| | | nextSort = nowSort + 1; |
| | | //获取审核流程的第一环节流程代码 |
| | | nextFlowCode = getNextFlowCode(flowGroup, nextSort); |
| | | |
| | | } |
| | | |
| | | } |
| | |
| | | productId = gwSp.ProductId; |
| | | price = gwSp.Price; |
| | | |
| | | |
| | | if (string.IsNullOrEmpty(gwSp.ProductId)) |
| | | { |
| | | throw new ArgumentException("产品配置不允许为空!请先配置账号所关联产品!"); |
| | | } |
| | | |
| | | orderNumTotal = basicNum + givingNum; |
| | | orderAmountTotal = basicNum * price; |
| | | |