| | |
| | | using System; |
| | | using System.Web; |
| | | using Dao; |
| | | using Model; |
| | | using Common; |
| | | using System.Collections.Generic; |
| | | using System.Configuration; |
| | |
| | | { |
| | | string Certification_StatusResult = "未认证"; |
| | | if (item.Certification_Status == 1) |
| | | { |
| | | Certification_StatusResult = "已认证"; |
| | | } |
| | | { |
| | | Certification_StatusResult = "已认证"; |
| | | } |
| | | str += @"<tr ><td>" + item.ClientID + "</td><td>" + item.Company + "</td><td>" + item.ClientName + "</td><td>" + item.Telephone + "</td><td>" + item.Top_up_Amount_Total + "元</td><td>" + item.Agent + "</td><td>" + Certification_StatusResult + "</td>"; |
| | | |
| | | str += @"<td>"; |
| | |
| | | { |
| | | int id = Int32.Parse(context.GetString("id")); |
| | | string clientID = context.GetString("clientID"); |
| | | string company = context.GetString("company"); |
| | | string password = context.GetString("password"); |
| | | string clientName = context.GetString("clientName"); |
| | | string address = context.GetString("address"); |
| | | string telephone = context.GetString("telephone"); |
| | | string remark = context.GetString("remark"); |
| | | string agent = context.GetString("agent"); |
| | | string permissionData = Newtonsoft.Json.JsonConvert.SerializeObject(context.GetString("permissionData").Split(',')); |
| | | string data = context.GetString("permissionData"); |
| | | if(data.Contains("1")) |
| | | { |
| | | data += ",sp.aspx,GwTaskSmssend,SpPrePattern.aspx"; |
| | | } |
| | | if(data.Contains("2")) |
| | | { |
| | | data += ",molog.aspx,mtlog.aspx#stat,mtlog.aspx,statis.aspx"; |
| | | } |
| | | string permissionData = Newtonsoft.Json.JsonConvert.SerializeObject(data.Split(',')); |
| | | |
| | | if (string.IsNullOrEmpty(clientID)) |
| | | { |
| | |
| | | |
| | | client.Id = id; |
| | | client.ClientID = clientID; |
| | | client.Company = company; |
| | | client.Password = password; |
| | | client.ClientName = clientName; |
| | | client.Address = address; |
| | |
| | | { |
| | | string clientID = context.GetString("clientID"); |
| | | string password = context.GetString("password"); |
| | | //string clientName = context.GetString("clientName"); |
| | | string clientName = context.GetString("clientName"); |
| | | string address = context.GetString("address"); |
| | | string telephone = context.GetString("telephone"); |
| | | string remark = context.GetString("remark"); |
| | | string agent = context.GetString("agent"); |
| | | string company = context.GetString("company"); |
| | | string permissionData = Newtonsoft.Json.JsonConvert.SerializeObject(context.GetString("permissionData").Split(',')); |
| | | string data = context.GetString("permissionData"); |
| | | if(data.Contains("1")) |
| | | { |
| | | data += ",sp.aspx,GwTaskSmssend,SpPrePattern.aspx"; |
| | | } |
| | | if(data.Contains("2")) |
| | | { |
| | | data += ",molog.aspx,mtlog.aspx#stat,mtlog.aspx,statis.aspx"; |
| | | } |
| | | string permissionData = Newtonsoft.Json.JsonConvert.SerializeObject(data.Split(',')); |
| | | |
| | | if (string.IsNullOrEmpty(clientID)) |
| | | { |
| | |
| | | client.ClientID = clientID; |
| | | client.Password = password; |
| | | |
| | | //client.ClientName = clientName; |
| | | client.ClientName = clientName; |
| | | client.Address = address; |
| | | client.Remark = remark; |
| | | client.Telephone = telephone; |
| | |
| | | client.Company = company; |
| | | _Dao.Add(client);//插入数据库。创建账户 |
| | | |
| | | //保存产品记录 |
| | | //获取启用的默认的产品 |
| | | /** |
| | | //edit:在客户激活时添加记录 |
| | | List<string> defaultProductList = GwProductDao.Instance.GetDefaultProduct(); |
| | | if (defaultProductList.Count > 0) |
| | | { |
| | | foreach (string productId in defaultProductList) |
| | | { |
| | | GwClientProduct gcp = new GwClientProduct(); |
| | | gcp.Id = Guid.NewGuid().ToString(); |
| | | gcp.ClientId = clientID; |
| | | gcp.ProductId = productId; |
| | | GwClientProductDao.Instance.Add(gcp); |
| | | } |
| | | } |
| | | **/ |
| | | |
| | | return new JsonPageResult(true, "创建账户成功!"); |
| | | } |
| | | } |