ERP客户关系渠管理(二十)

渠道的需求:

用力图:

渠道对应客户关系的意义?

渠道是指产品从生产出来到终端消费的流通环节。

添加的存储过程:

ALTER PROCEDURE [dbo].[BioErpCrmManageChannel_ADD]
@ChannelID int output,
@UserID int,
@SuperiorChannel int,
@ChannelName nvarchar(50),
@Tel1 nvarchar(20),
@Tel2 nvarchar(20),
@Fax nvarchar(20),
@Address nvarchar(50),
@Email nvarchar(50),
@ChannelLevel nvarchar(20),
@NetAddress nvarchar(50),
@CreditStanding nvarchar(20),
@EnrollTime datetime,
@NextContactTime datetime,
@ChannelSize nvarchar(50),
@Vocation nvarchar(50),
@ChannelType nvarchar(30),
@Status nvarchar(30),
@Areal nvarchar(20),
@Province nvarchar(20),
@City nvarchar(20),
@TaxNumber nvarchar(50),
@AccountName nvarchar(50),
@Accounts nvarchar(50),
@CoSummary nvarchar(1000),
@CoreOperttion nvarchar(500)

 AS
	INSERT INTO [BioErpCrmManageChannel](
	[UserID],[SuperiorChannel],[ChannelName],[Tel1],[Tel2],[Fax],[Address],[Email],[ChannelLevel],[NetAddress],[CreditStanding],[EnrollTime],[NextContactTime],[ChannelSize],[Vocation],[ChannelType],[Status],[Areal],[Province],[City],[TaxNumber],[AccountName],[Accounts],[CoSummary],[CoreOperttion]
	)VALUES(
	@UserID,@SuperiorChannel,@ChannelName,@Tel1,@Tel2,@Fax,@Address,@Email,@ChannelLevel,@NetAddress,@CreditStanding,@EnrollTime,@NextContactTime,@ChannelSize,@Vocation,@ChannelType,@Status,@Areal,@Province,@City,@TaxNumber,@AccountName,@Accounts,@CoSummary,@CoreOperttion
	)
	SET @ChannelID = @@IDENTITY

渠道修改的存储过程:

ALTER PROCEDURE [dbo].[BioErpCrmManageChannel_Update]
@ChannelID int,
@UserID int,
@SuperiorChannel int,
@ChannelName nvarchar(50),
@Tel1 nvarchar(20),
@Tel2 nvarchar(20),
@Fax nvarchar(20),
@Address nvarchar(50),
@Email nvarchar(50),
@ChannelLevel nvarchar(20),
@NetAddress nvarchar(50),
@CreditStanding nvarchar(20),
@EnrollTime datetime,
@NextContactTime datetime,

@ChannelSize nvarchar(50),
@Vocation nvarchar(50),
@ChannelType nvarchar(30),
@Status nvarchar(30),
@Areal nvarchar(20),
@Province nvarchar(20),
@City nvarchar(20),
@TaxNumber nvarchar(50),
@AccountName nvarchar(50),
@Accounts nvarchar(50),
@CoSummary nvarchar(1000),
@CoreOperttion nvarchar(500),
@DeleteState bit
 AS
	UPDATE [BioErpCrmManageChannel] SET
	[UserID] = @UserID,[SuperiorChannel] = @SuperiorChannel,[ChannelName] = @ChannelName,[Tel1] = @Tel1,[Tel2] = @Tel2,[Fax] = @Fax,[Address] = @Address,[Email] = @Email,[ChannelLevel] = @ChannelLevel,[NetAddress] = @NetAddress,[CreditStanding] = @CreditStanding,[EnrollTime] = @EnrollTime,[NextContactTime] = @NextContactTime,[ChannelSize] = @ChannelSize,[Vocation] = @Vocation,[ChannelType] = @ChannelType,[Status] = @Status,[Areal] = @Areal,[Province] = @Province,[City] = @City,[TaxNumber] = @TaxNumber,[AccountName] = @AccountName,[Accounts] = @Accounts,[CoSummary] = @CoSummary,[CoreOperttion] = @CoreOperttion,[DeleteState] = @DeleteState
	WHERE [email protected]

渠道的联系人添加的存储过程:

ALTER PROCEDURE [dbo].[BioErpCrmChannelLinkMan_ADD]
@ChannelID int,
@LinkmanName nvarchar(50),
@Sex bit,
@Birthday datetime,
@IsMainLinkman bit,
@OfficialPhone nvarchar(20),
@MobilePhone nvarchar(20),
@Email nvarchar(50),
@Address nvarchar(50),
@QQ nvarchar(20),
@Remark nvarchar(500)
 AS
	INSERT INTO [BioErpCrmChannelLinkMan](
	[ChannelID],[LinkmanName],[Sex],[Birthday],[IsMainLinkman],[OfficialPhone],[MobilePhone],[Email],[Address],[QQ],[Remark]
	)VALUES(
	@ChannelID,@LinkmanName,@Sex,@Birthday,@IsMainLinkman,@OfficialPhone,@MobilePhone,@Email,@Address,@QQ,@Remark
	)

渠道联系人修改:

ALTER PROCEDURE [dbo].[BioErpCrmChannelLinkMan_Update]
@LinkmanID int,
@ChannelID int,
@LinkmanName nvarchar(50),
@Sex bit,
@Birthday datetime,
@IsMainLinkman bit,
@OfficialPhone nvarchar(20),
@MobilePhone nvarchar(20),
@Email nvarchar(50),
@Address nvarchar(50),
@QQ nvarchar(20),
@Remark nvarchar(500),
@DeleteState bit
 AS
	UPDATE [BioErpCrmChannelLinkMan] SET
	[ChannelID] = @ChannelID,[LinkmanName] = @LinkmanName,[Sex] = @Sex,[Birthday] = @Birthday,[IsMainLinkman] = @IsMainLinkman,[OfficialPhone] = @OfficialPhone,[MobilePhone] = @MobilePhone,[Email] = @Email,[Address] = @Address,[QQ] = @QQ,[Remark] = @Remark,[DeleteState] = @DeleteState
	WHERE [email protected]

联系记录(添加):(添加的时候状态给默认值)

ALTER PROCEDURE [dbo].[BioErpCrmChannelContactNote_ADD]
@ChannelID int,
@RelationRecord nvarchar(1000),
@RelationTime datetime,
@LinkmanID int,
@RelationType nvarchar(50),
@LinkMethod nvarchar(50),
@Userid int

 AS
	INSERT INTO [BioErpCrmChannelContactNote](
	[ChannelID],[RelationRecord],[RelationTime],[LinkmanID],[RelationType],[LinkMethod],[Userid]
	)VALUES(
	@ChannelID,@RelationRecord,@RelationTime,@LinkmanID,@RelationType,@LinkMethod,@Userid
	)

修改:

ALTER PROCEDURE [dbo].[BioErpCrmChannelContactNote_Update]
@RelationID int,
@ChannelID int,
@RelationRecord nvarchar(1000),
@RelationTime datetime,
@LinkmanID int,
@RelationType nvarchar(50),
@LinkMethod nvarchar(50),
@Userid int,
@DeleteState bit
 AS
	UPDATE [BioErpCrmChannelContactNote] SET
	[ChannelID] = @ChannelID,[RelationRecord] = @RelationRecord,[RelationTime] = @RelationTime,[LinkmanID] = @LinkmanID,[RelationType] = @RelationType,[LinkMethod] = @LinkMethod,[Userid] = @Userid,[DeleteState] = @DeleteState
	WHERE [email protected]

活动管理(添加):

ALTER PROCEDURE [dbo].[BioErpCrmChannelActivity_ADD]
@ActiveName nvarchar(100),
@ChannelID int,
@ActivityTime datetime,
@ActivityAddress nvarchar(100),
@Principal nvarchar(10),
@ActivityDesc nvarchar(4000)
 AS
	INSERT INTO [BioErpCrmChannelActivity](
	[ActiveName],[ChannelID],[ActivityTime],[ActivityAddress],[Principal],[ActivityDesc]
	)VALUES(
	@ActiveName,@ChannelID,@ActivityTime,@ActivityAddress,@Principal,@ActivityDesc
	)

修改:

ALTER PROCEDURE [dbo].[BioErpCrmChannelActivity_Update]
@ActivityID int,
@ActiveName nvarchar(100),
@ChannelID int,
@ActivityTime datetime,
@ActivityAddress nvarchar(100),
@Principal nvarchar(10),
@ActivityDesc nvarchar(4000),
@DeleteState bit
 AS
	UPDATE [BioErpCrmChannelActivity] SET
	[ActiveName] = @ActiveName,[ChannelID] = @ChannelID,[ActivityTime] = @ActivityTime,[ActivityAddress] = @ActivityAddress,[Principal] = @Principal,[ActivityDesc] = @ActivityDesc,[DeleteState] = @DeleteState
	WHERE [email protected]

文档的添加:

ALTER PROCEDURE [dbo].[BioErpCrmChannelDocument_ADD]
@DocumentID int,
@ChannelID int
 AS
	INSERT INTO [BioErpCrmChannelDocument](
	[DocumentID],[ChannelID]
	)VALUES(
	@DocumentID,@ChannelID
	)

文档的修改:

ALTER PROCEDURE [dbo].[BioErpCrmChannelDocument_Update]
@ChannelDocumentID int,
@DocumentID int,
@ChannelID int,
@DeleteState bit
 AS
	UPDATE [BioErpCrmChannelDocument] SET
	[DocumentID] = @DocumentID,[ChannelID] = @ChannelID,[DeleteState] = @DeleteState
	WHERE [email protected]

添加的BLL层代码:

 /// <summary>
      /// 添加一条渠道基本信息,返回当前添加的渠道的编号
      /// </summary>
      /// <param name="channel"></param>
        /// <returns>int</returns>
      public int BioErpCrmManageChannelAdd(BioErpCrmManageChannel model)
      {
          SqlParameter[] parameters = {
					new SqlParameter("@ChannelID", SqlDbType.Int,4),
					new SqlParameter("@UserID", SqlDbType.Int,4),
					new SqlParameter("@SuperiorChannel", SqlDbType.Int,4),
					new SqlParameter("@ChannelName", SqlDbType.NVarChar,50),
					new SqlParameter("@Tel1", SqlDbType.NVarChar,20),
					new SqlParameter("@Tel2", SqlDbType.NVarChar,20),
					new SqlParameter("@Fax", SqlDbType.NVarChar,20),
					new SqlParameter("@Address", SqlDbType.NVarChar,50),
					new SqlParameter("@Email", SqlDbType.NVarChar,50),
					new SqlParameter("@ChannelLevel", SqlDbType.NVarChar,20),
					new SqlParameter("@NetAddress", SqlDbType.NVarChar,50),
					new SqlParameter("@CreditStanding", SqlDbType.NVarChar,20),
					new SqlParameter("@EnrollTime", SqlDbType.DateTime),
					new SqlParameter("@NextContactTime", SqlDbType.DateTime),
					new SqlParameter("@AlternateTime", SqlDbType.DateTime),
					new SqlParameter("@StratTime", SqlDbType.DateTime),
					new SqlParameter("@ChannelSize", SqlDbType.NVarChar,50),
					new SqlParameter("@Vocation", SqlDbType.NVarChar,50),
					new SqlParameter("@ChannelType", SqlDbType.NVarChar,30),
					new SqlParameter("@Status", SqlDbType.NVarChar,30),
					new SqlParameter("@Areal", SqlDbType.NVarChar,20),
					new SqlParameter("@Province", SqlDbType.NVarChar,20),
					new SqlParameter("@City", SqlDbType.NVarChar,20),
					new SqlParameter("@TaxNumber", SqlDbType.NVarChar,50),
					new SqlParameter("@AccountName", SqlDbType.NVarChar,50),
					new SqlParameter("@Accounts", SqlDbType.NVarChar,50),
					new SqlParameter("@CoSummary", SqlDbType.NVarChar,1000),
					new SqlParameter("@CoreOperttion", SqlDbType.NVarChar,500),
					new SqlParameter("@DeleteState", SqlDbType.Bit,1)};
          parameters[0].Direction = ParameterDirection.Output;
          parameters[1].Value = model.UserID;
          parameters[2].Value = model.SuperiorChannel;
          parameters[3].Value = model.ChannelName;
          parameters[4].Value = model.Tel1;
          parameters[5].Value = model.Tel2;
          parameters[6].Value = model.Fax;
          parameters[7].Value = model.Address;
          parameters[8].Value = model.Email;
          parameters[9].Value = model.ChannelLevel;
          parameters[10].Value = model.NetAddress;
          parameters[11].Value = model.CreditStanding;
          parameters[12].Value = model.EnrollTime;
          parameters[13].Value = model.NextContactTime;
          parameters[14].Value = model.AlternateTime;
          parameters[15].Value = model.StratTime;
          parameters[16].Value = model.ChannelSize;
          parameters[17].Value = model.Vocation;
          parameters[18].Value = model.ChannelType;
          parameters[19].Value = model.Status;
          parameters[20].Value = model.Areal;
          parameters[21].Value = model.Province;
          parameters[22].Value = model.City;
          parameters[23].Value = model.TaxNumber;
          parameters[24].Value = model.AccountName;
          parameters[25].Value = model.Accounts;
          parameters[26].Value = model.CoSummary;
          parameters[27].Value = model.CoreOperttion;
          parameters[28].Value = model.DeleteState;

        int count=   DataBaseHelper.ExcuteSqlReturnInt("BioErpCrmManageChannel_ADD", CommandType.StoredProcedure, parameters);
        if (count != 0)
        {
            return int.Parse(parameters[0].Value.ToString());
        }
        else
        {
            return 0;
        }

      }
时间: 2024-10-12 02:46:32

ERP客户关系渠管理(二十)的相关文章

CRM客户关系管理系统修改(十四)

修改的流程: 二:获取绑定数据依据 1.通过地址栏传参:Request.Query["ID"] 2.判断Request.Query["ID"]是否为空,如果不为空,则取出数据,用于绑定的条件筛选. 根据ID获取对应的城市: /// <summary> /// 根据省份ID获取对应的城市 /// </summary> /// <param name="ProvinceID"></param> ///

高端内存映射之kmap持久内核映射--Linux内存管理(二十)

1 高端内存与内核映射 尽管vmalloc函数族可用于从高端内存域向内核映射页帧(这些在内核空间中通常是无法直接看到的), 但这并不是这些函数的实际用途. 重要的是强调以下事实 : 内核提供了其他函数用于将ZONE_HIGHMEM页帧显式映射到内核空间, 这些函数与vmalloc机制无关. 因此, 这就造成了混乱. 而在高端内存的页不能永久地映射到内核地址空间. 因此, 通过alloc_pages()函数以__GFP_HIGHMEM标志获得的内存页就不可能有逻辑地址. 在x86_32体系结构总,

CRM客户关系管理系统(二)

第三章.前端页面设计  3.1.前端页面布局 Bootstrap模板下载 (1)静态文件 新建statics目录(存放css/fonts/imgs/js/plugins) settings配置 STATIC_URL = '/static/' STATICFILES_DIRS = ( os.path.join(BASE_DIR, 'statics'), ) (2)模板文件  templates下新建crm目录,把Dashboard Template for Bootstrap.html放到里面,命

基于JAVA技术的客户关系管理系统

获取项目源文件,技术交流与指导联系Q:1225467431 摘要:该客户关系管理系统是基于J2EE技术进行开发,主要采用JAVA语言作为开发语言,基于MVC的设计思想,利用J2EE网页制作技术完成前台静态页面和动态页面的设计,同时利用JDBC技术完成前台页面和后台MySQL数据库的连接操作,最终完成一个客户关系管理系统.该系统共分为营销管理.客户管理.服务管理和统计报表四个功能模块,系统可以帮助企业发掘并创建客户信息记录,对所有的客户进行有效的管理:按照客户的一些基本信息和业务信息进行分类,掌握

文献综述二十:基于UML技术的客户关系管理系统实现

一.基本信息 标题:基于UML技术的客户关系管理系统实现 时间:2015 出版源:电子设计工程 文件分类:uml技术的研究 二.研究背景 设计出可应用与银行和储户之间沟通的客户关系管理系统,从而实现对客户管理的信息化 ,提升了企业对客户维护的能力. 三.具体内容 文献的主要内容分为五个部分.基于UML建模技术的系统用例分析.系统功能设计.客户关系管理系统结构设计.系统开发工具.系统功能流程设计与实现代码. 基于UML建模技术的系统用例分析:包括银行客户经理系统用例图和管理员的用例分析.银行客户经

整理几个互联网公司常用的概念: SaaS是软件即服务 OA系统 意为办公自动化系统 BOSS指的是业务运营支撑系统 CRM客户关系管理 ERP系统是企业资源计划

整理几个互联网公司常用的概念: 解决以下几个疑问以及容易忘记或者混淆的概念: SaaS系统是什么 OA系统是什么  BOSS系统是什么 CRM系统是什么客户关系管理 ERP系统是什么 SaaS是Software-as-a-Service(软件即服务OA系统是Office Automation System 意为办公自动化系统.BOSS(Business & Operation Support System)指的是业务运营支撑系统CRM(Customer Relationship Manageme

【管理心得之二十四】成功乃失败之母

场景再现 ======================= Boss:侯さん,这次项目做得不错. 一,得到日本客户的高评, 二,争取到了新客户 三,新领域尝试是正确的 所谓是"一箭三雕",年底一定给你们团队一个嘉奖. 侯さん:哪里哪里,若不是您在背后的大力支持,"巧妇难为无米之炊"哪里有今天的成果. Boss:切忌"成功是失败之母",你去忙吧. 侯さん:嗯------? {侯さん走出办公室,心想---..} "这Boss有点意思,耳熟能详

【管理心得之二十】你是简单的“被雇佣者”, 还是 高明的“交换者”?

场景再现 ====================== {幼儿园两个小朋友之间的对话} 小朋友A:我可以用兜兜里的糖换你的橘子吗? 小朋友B:好啊 小朋友A:给你,3块糖 小朋友B:给你,橘子 ====================== 上面两个小朋友之间的对话,诠释了最经典的物品交换过程.步入社会求生的我们,似乎很少能看到这样至淳至朴的交换,最多是借助"金钱"衡量完成一次等价的交换罢了. 说得俗套些"天下熙熙,皆为利来",没有任何人可以不计报酬为组织做事.薪资不

医院管理者必须知道的医院客户关系管理(CRM)

客户关系管理(customer relationship management,CRM)是在二战之后首先由美国IBM.道氏.通用等大型企业提出并运用的一种以有效销售为目的的市场营销思想,其理论基础就是著名的“2/8定则”,即80%的利润来自20%的重点客户.CRM被普遍视为现代企业提高竞争力.在成熟市场中高效运作并获取稳定利润的法宝.企业管理离不开“客户关系管理”.医院也是如此.把“客户”理念逐步引入到医院管理中,成立专门的客户服务中心,使医院的战略中心从关注“医疗服务”向“关注客户”转变,客户