/// <summary> /// 返回一个客户对象实体,供修改页面使用 /// </summary> /// <returns></returns> public CRM_Customer GetCRM_CustomerModel() { cc.Id = Convert.ToInt32(this.dgvCusInfo.CurrentRow.Cells[0].Value.ToString()); cc.CusCode = this.dgvCusInfo.CurrentRow.Cells[1].Value.ToString(); cc.CusName = this.dgvCusInfo.CurrentRow.Cells[2].Value.ToString(); cc.Province = this.dgvCusInfo.CurrentRow.Cells[3].Value.ToString(); cc.City = this.dgvCusInfo.CurrentRow.Cells[4].Value.ToString(); cc.BussinessType = this.dgvCusInfo.CurrentRow.Cells[5].Value.ToString(); cc.Scale = this.dgvCusInfo.CurrentRow.Cells[6].Value.ToString(); cc.CusType = this.dgvCusInfo.CurrentRow.Cells[7].Value.ToString(); cc.PhoneNum = this.dgvCusInfo.CurrentRow.Cells[8].Value.ToString(); cc.HomePage = this.dgvCusInfo.CurrentRow.Cells[9].Value.ToString(); cc.Address = this.dgvCusInfo.CurrentRow.Cells[10].Value.ToString(); cc.SaleId = sul.GetSaleId(this.dgvCusInfo.CurrentRow.Cells[11].Value.ToString()); return(cc); }
/// <summary> /// 根据业务员名字返回id /// </summary> /// <param name="userName"></param> /// <returns></returns> public int GetSaleId(string userName) { return(suc.GetSaleId(userName)); }