示例#1
0
        /// <summary>
        /// 添加其他银行
        /// </summary>
        private void addcombank()
        {
            string banklist = this.hidbank.Value; //得到其他银行信息

            if (banklist != "")
            {
                string[]             row     = null;
                string[]             cell    = null;
                EtNet_Models.ComBank combank = null;
                if (banklist.IndexOf(',') >= 0)
                {
                    row = banklist.Split(',');
                }
                else
                {
                    row = new string[1] {
                        banklist
                    };
                }
                for (int i = 0; i < row.Length; i++)
                {
                    combank           = new ComBank();
                    cell              = row[i].Split('|');
                    combank.Bank      = cell[0]; //开户银行
                    combank.CardId    = cell[1]; //银行账号
                    combank.CardName  = cell[2]; //户名
                    combank.Remark    = cell[3]; //备注
                    combank.CompanyId = CompanyManager.getLastOneID().Id;
                    ComBankManager.addComBank(combank);
                }
            }
        }
示例#2
0
        private void addcombank()
        {
            string id = Request.QueryString["id"].ToString();

            ComBankManager.deleteComBankByComId(Convert.ToInt32(id));

            string banklist = this.hidbank.Value;

            if (banklist != "")
            {
                string[]             row     = null;
                string[]             cell    = null;
                EtNet_Models.ComBank combank = null;
                if (banklist.IndexOf(',') >= 0)
                {
                    row = banklist.Split(',');
                }
                else
                {
                    row = new string[1] {
                        banklist
                    };
                }
                for (int i = 0; i < row.Length; i++)
                {
                    combank           = new ComBank();
                    cell              = row[i].Split('|');
                    combank.Bank      = cell[0];
                    combank.CardId    = cell[1];
                    combank.CardName  = cell[2];
                    combank.Remark    = cell[3];
                    combank.CompanyId = Convert.ToInt32(id);
                    ComBankManager.addComBank(combank);
                }
            }
        }