Browse Source

保险列添加是否审核

wangh 1 year ago
parent
commit
e41799c9ee
2 changed files with 24 additions and 1 deletions
  1. 2 0
      Models/GroupsCustomers.cs
  2. 22 1
      OA2021/groups/groupsCustomers.aspx.cs

+ 2 - 0
Models/GroupsCustomers.cs

@@ -127,5 +127,7 @@ namespace Models
             get { return iid; }
             set { iid = value; }
         }
+
+        public string IsAuditGM { get; set; }
     }
 }

+ 22 - 1
OA2021/groups/groupsCustomers.aspx.cs

@@ -89,8 +89,29 @@ namespace OA2014.groups
 
                 //分页设置
                 int pageIndex = pageControl.getPageIndex();
+                List<GroupsCustomers> groupsCustomers= gcs.GetGroupsCustomers(pageIndex, out sumPage, out totalRecord, ddlTourCode.SelectedValue, txtVisaClient.Text);
+                foreach (GroupsCustomers item in groupsCustomers)
+                {
+                    CreditCardPaymentService ccps = new CreditCardPaymentService();
+                    CreditCardPayment ccp = ccps.GetCreditCardPaymentByCIDAndDIIDAndCTable(item.Id, item.DIId, 82);
 
-                rpData.DataSource = gcs.GetGroupsCustomers(pageIndex, out sumPage, out totalRecord, ddlTourCode.SelectedValue, txtVisaClient.Text);
+                    if (ccp != null)
+                    {
+                        if (ccp.IsAuditGM == 0)
+                        {
+                            item.IsAuditGM = "未审核";
+                        }
+                        else if (ccp.IsAuditGM == 1)
+                        {
+                            item.IsAuditGM = "已审核";
+                        }
+                        else if (ccp.IsAuditGM == 2)
+                        {
+                            item.IsAuditGM = "未通过";
+                        }
+                    }
+                }
+                rpData.DataSource = groupsCustomers;
                 rpData.DataBind();
 
                 //绑定分页用户控件