/// <summary> /// 编辑调用 /// </summary> /// <param name="keyValue"></param> public override void Modify(string keyValue) { this.Id = keyValue; this.ModifyDate = DateTime.Now; this.ModifyUserId = OperatorProvider.Provider.Current().UserId; this.ModifyUserName = OperatorProvider.Provider.Current().UserName; this.UserIds = "," + UserIds.Trim(',') + ","; }
/// <summary> /// 新增调用 /// </summary> public override void Create() { this.Id = string.IsNullOrEmpty(Id)?Guid.NewGuid().ToString():Id; this.CreateDate = DateTime.Now; this.CreateUserId = OperatorProvider.Provider.Current().UserId; this.CreateUserName = OperatorProvider.Provider.Current().UserName; this.CreateUserDeptCode = OperatorProvider.Provider.Current().DeptCode; this.CreateUserOrgCode = OperatorProvider.Provider.Current().OrganizeCode; this.CreateUserDeptName = string.IsNullOrEmpty(OperatorProvider.Provider.Current().DeptName) ? OperatorProvider.Provider.Current().OrganizeName : OperatorProvider.Provider.Current().DeptName; this.UserIds = "," + UserIds.Trim(',') + ","; }
private void LoadUser() { if (UserIds != "" && UserIds.Trim(',') != "") { string[] Uids = UserIds.Trim(',').Split(','); //string[] Unames = Utils.SplitString(BLL.B_TBUsers.GetUserName(UserIds),",",Uids.Length); //int i = 0; foreach (string uid in Uids) { ListItem item = new ListItem(); item.Text = bll_user.GetUserName(uid); item.Value = uid; if (lbxUsersSure.Items.FindByValue(uid) == null) { lbxUsersSure.Items.Add(item); } if (lbxUsers.Items.FindByValue(uid) != null) { lbxUsers.Items.Remove(item); } // i++; } } }