//其他银行 private void addbank(int cusid) { string banklist = this.hidbank.Value; if (banklist != "") { string[] row = null; string[] cell = null; EtNet_Models.CusBank cusbank = null; if (banklist.IndexOf(',') >= 0) { row = banklist.Split(','); } else { row = new string[1] { banklist }; } for (int i = 0; i < row.Length; i++) { cusbank = new EtNet_Models.CusBank(); cell = row[i].Split('|'); cusbank.Bank = cell[0]; cusbank.CardId = cell[1]; cusbank.CardName = cell[2]; cusbank.Remark = cell[3]; cusbank.CustomerId = cusid; CusBankManager.addCusBank(cusbank); } } }
private void addbank() { string id = Request.QueryString["id"].ToString(); CusBankManager.deleteCusBankByCusId(Convert.ToInt32(id)); string banklist = this.hidbank.Value; if (banklist != "") { string[] row = null; string[] cell = null; EtNet_Models.CusBank cusbank = null; if (banklist.IndexOf(',') >= 0) { row = banklist.Split(','); } else { row = new string[1] { banklist }; } for (int i = 0; i < row.Length; i++) { cusbank = new EtNet_Models.CusBank(); cell = row[i].Split('|'); cusbank.Bank = cell[0]; cusbank.CardId = cell[1]; cusbank.CardName = cell[2]; cusbank.Remark = cell[3]; cusbank.CustomerId = Convert.ToInt32(id); CusBankManager.addCusBank(cusbank); } } }