ERP权限设置和CRM分析 (十二)

网友投稿 729 2022-08-31

ERP权限设置和CRM分析 (十二)

ERP权限设置和CRM分析 (十二)

个人信息管理:

需求描述:

1.在权限信息表添加一条个人信息修改权限。

2.在TreeMenu表添加一条数据作为个“人信息修改”菜单。

3. 人事登记人员在登记员工信息的时候,自动给员工权限表添加一条“个人信息修改权限”。

4. 个人登录ERP系统后可以系统自动加载“个人信息修改”菜单,如果没有此菜单,管理员可以自行给员工赋值此权限。

5.员工可以自己修改自己基本信息。

存储过程:

---员工信息添加以后自动给员工权限信息表添加一个权限值为1的权限-- 权限值1:个人信息修改权限DECLARE @userid int SET @userid=@@IDENTITY;INSERT tbUserRight( UserID, RightID)VALUES( @userid, 1)

前端:

<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WorkerInfoUpdate.aspx.cs" Inherits="BioErpWeb.HRSystem.WorkerInfoUpdate" %><%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="cc1" %>

个人信息修改
登录名 真实姓名(*如有误,请管理员修改)
登录密码 确认密码(*如不填写密码,则默认为原来的密码)
生日 手机号码
Email地址 性别
住址

后端:

public partial class WorkerInfoUpdate : System.Web.UI.Page { static UserManager user=new UserManager(); UserManagerBLL userbll; static bool isadd = true; protected void Page_Load(object sender, EventArgs e) { if (Session["Userid"] == null) { Server.Transfer("~/Web/UserLogin.aspx"); } if (!IsPostBack) { PageInfoBind(); } } private void PageInfoBind() { string userid = Session["Userid"].ToString(); userbll = new UserManagerBLL(); user = userbll.getuserbyId(userid); this.txtUserName.Text = user.UserName; this.txtLoginName.Text = user.LoginName; this.txtBirthday.Text = user.Birthday.ToString(); this.txtMobile.Text = user.Mobile; this.txtEmail.Text = user.Email; this.txtAddress.Text = user.Address; if (user.Sex == true) { this.ddlSex.SelectedValue = "0"; } } protected void btnSubmit_Click(object sender, EventArgs e) { if (this.txtLoginName.Text.Trim() == "" || txtLoginName.Text.Trim().Length == 0) { ScriptManager.RegisterStartupScript(this, this.GetType(), "test", "alert('请填写登录名');", true); return; } if (this.txtRePwd.Text.Trim() != txtPwd.Text.Trim()) { ScriptManager.RegisterStartupScript(this, this.GetType(), "test", "alert('密码和重复密码必须一致');", true); return; } if (this.txtPwd.Text.Trim() != "" && this.txtRePwd.Text.Trim() != "") { user.Password = Comm.MD5(this.txtPwd.Text.Trim()); } user.LoginName = this.txtLoginName.Text; user.UserName = this.txtUserName.Text; user.Mobile = this.txtMobile.Text; user.Birthday = Convert.ToDateTime(this.txtBirthday.Text); user.Email = this.txtEmail.Text; user.Address = this.txtAddress.Text; //0:男,1,女 user.Sex = this.ddlSex.SelectedValue == "0" ? true : false; user.LastLoginDate =Convert.ToDateTime(DateTime.Now.ToString("yyyy-MM-dd")); userbll = new UserManagerBLL(); user.UserId = int.Parse(Session["Userid"].ToString()); string columns="LoginName='"+user.LoginName+"',Password='"+ user.Password+"',Birthday='"+user.Birthday+"',Mobile='"+user.Mobile+"',Email='"+user.Email+"',Sex='"+user.Sex+"',Address='"+user.Address+"'"; if (!SqlComm.UpdateTableByCondition("UserManager", columns, " UserId=" + user.UserId.ToString())) { ScriptManager.RegisterStartupScript(this, this.GetType(), "test", "alert('数据提交失败');", true); return; } } }

CRM系统的分析:

客户管理:

渠道管理:

竞争对手管理

合同管理:

商品管理:

服务管理:

版权声明:本文内容由网络用户投稿,版权归原作者所有,本站不拥有其著作权,亦不承担相应法律责任。如果您发现本站中有涉嫌抄袭或描述失实的内容,请联系我们jiasou666@gmail.com 处理,核实后本网站将在24小时内删除侵权内容。

上一篇:C#泛型(三)
下一篇:Go语言的结构体 构造函数
相关文章

 发表评论

暂时没有评论,来抢沙发吧~