Ejemplo n.º 1
0
        private void SystemManagementAndTools_SystemUserMessageManage_UserMessage_Submmit_SimpleButton_Click(object sender, EventArgs e)
        {
            Users userModifyed = new Users();
              userModifyed.login_name=SystemManagementAndTools_SystemUserMessageManage_UserMessage_LoginName_TextEdit.Text;
              userModifyed.real_name=SystemManagementAndTools_SystemUserMessageManage_UserMessage_RealName_TextEdit.Text;
              // userModifyed.company_id=SystemManagementAndTools_SystemUserMessageManage_UserMessage_SubordinateCompanies_ComboBoxEdit.Text;
              userModifyed.default_department=SystemManagementAndTools_SystemUserMessageManage_UserMessage_DefaultDepartment_ComboBoxEdit.Text;
              userModifyed.immediate_manager=SystemManagementAndTools_SystemUserMessageManage_UserMessage_ImmediateManager_ComboBoxEdit.Text;
              userModifyed.user_number=SystemManagementAndTools_SystemUserMessageManage_UserMessage_UserNumber_TextEdit.Text;
              userModifyed.major=SystemManagementAndTools_SystemUserMessageManage_UserMessage_Major_TextEdit.Text;
              //SystemManagementAndTools_SystemUserMessageManage_UserMessage_IdCard_TextEdit.Text; 数据库中无身份证号码字段
              userModifyed.sex=SystemManagementAndTools_SystemUserMessageManage_UserMessage_Sex_ComboBoxEdit.Text;
              //userModifyed.birthday = SystemManagementAndTools_SystemUserMessageManage_UserMessage_Birthday_DateEidte.Text; 无法将字符创类型转换成DateTime类型

              userModifyed.mobile_phone=SystemManagementAndTools_SystemUserMessageManage_UserMessage_MobileTelephone_TextEdit.Text;
              userModifyed.office_phone=SystemManagementAndTools_SystemUserMessageManage_UserMessage_OfficePhone_TextEdit.Text;
              //SystemManagementAndTools_SystemUserMessageManage_UserMessage_Address_TextEdit.Text = "西伯利亚大沙漠边缘地带";
              userModifyed.stor_key = SystemManagementAndTools_SystemUserMessageManage_UserMessage_StorKey_TextEdit.Text;
              userModifyed.email =SystemManagementAndTools_SystemUserMessageManage_UserMessage_Mail_TextEdit.Text;
              //userModifyed.company_id=SystemManagementAndTools_SystemUserMessageManage_UserMessage_CompanyId_TextEdit.Text; 无法将字串类型转换成int类型
              userModifyed.remark=SystemManagementAndTools_SystemUserMessageManage_UserMessage_Remark_MemoEdit.Text;
              userModifyed.audit_state=SystemManagementAndTools_SystemUserMessageManage_UserMessage_AuditState_ComboBoxEdit.Text;
              userModifyed.state=SystemManagementAndTools_SystemUserMessageManage_UserMessage_State_ComboBoxEdit.Text;
              //userModifyed.create_user_id=SystemManagementAndTools_SystemUserMessageManage_UserMessage_CreateUserId_TextEdit.Text; 无法将字串类型转换成int类型
              //userModifyed.create_date=SystemManagementAndTools_SystemUserMessageManage_UserMessage_CreateDate_ComboBoxEdit.Text;  无法将字符创类型转换成DateTime类型
              //userModifyed.create_user_id=SystemManagementAndTools_SystemUserMessageManage_UserMessage_ModifyUserId_TextEdit.Text;
              //userModifyed.create_date=SystemManagementAndTools_SystemUserMessageManage_UserMessage_ModifyDate_ComboBoxEdit.Text;
              //userModifyed.login_time=SystemManagementAndTools_SystemUserMessageManage_UserMessage_LoginTime_ComboBoxEdit.Text;
              //userModifyed.logout_time=SystemManagementAndTools_SystemUserMessageManage_UserMessage_ExitTime_ComboBoxEdit.Text;

               bool ok = WcfServiceLocator.Create<IUsersManage>().ModifyUser(userModifyed);
               MessageBox.Show(ok.ToString());
        }
Ejemplo n.º 2
0
        public List<Users> FindRelatedUsersForUserGroup(int groupID)
        {
            IList<Users> list = new BindingList<Users>();
            Users user = new Users();
            Users user1 = new Users();

            user.login_name = "小徐";
            user.real_name = "查到了";
            user.isChecked = false;
            user.birthday = new DateTime();
            user.sex = "男";
            user.age = 18;
            user.remark = "我是小徐,大家好";
            user.major = "本科(买的)";
            user.email = "[email protected]";
            user.birthday = new DateTime();
            user.company_id = 1;
            user.audit_state = "0";
            user.stor_key = "123";
            user.mobile_phone = "119";
            user.office_phone = "120";
            user.immediate_manager = "威哥";
            user.user_number = "1234567usernumber";
            user.default_department = "酱油部门";
            user.create_user_id = 123;
            user.create_date = new DateTime();
            user.modify_user_id = 1234;
            user.modify_date = new DateTime();
            user.is_delete = "1";
            user.id = 1;

            user1.login_name = "小宫";
            user1.real_name = "很高兴";
            user1.isChecked = false;
            user1.birthday = new DateTime();
            user1.sex = "男";
            user1.age = 18;
            user1.remark = "我是小宫,大家好";
            user1.major = "专科";
            user1.email = "[email protected]";
            user1.birthday = new DateTime();
            user1.company_id = 1;
            user1.audit_state = "0";
            user1.stor_key = "123";
            user1.mobile_phone = "119";
            user1.office_phone = "120";
            user1.immediate_manager = "威哥";
            user1.user_number = "123456usernumber";
            user1.default_department = "酱油部门";
            user1.create_user_id = 123;
            user1.create_date = new DateTime();
            user1.modify_user_id = 1234;
            user1.modify_date = new DateTime();
            user1.is_delete = "1";
            user1.id = 2;
            list.Add(user);
            list.Add(user1);

            return list.ToList();
        }
Ejemplo n.º 3
0
        public List<Users> findRelatedUser(int roleId)
        {
            List<Users> list = new List<Users>();
            Users user = new Users();
            user.login_name = "小徐";
            user.id = 2;
            Users user1 = new Users();
            user1.login_name= "小宫";
            user1.id = 3;
            list.Add(user);
            list.Add(user1);

            return list;
        }
Ejemplo n.º 4
0
        public IList<Users> findRelatedUsers(int groupID)
        {
            IList<Users> list = new List<Users>();
            Users user1 = new Users();
            user1.login_name = "用户甲";
            Users user2 = new Users();
            user2.login_name = "用户乙";
            Users user3 = new Users();
            user3.login_name = "用户丙";

            list.Add(user1);
            list.Add(user2);
            list.Add(user3);

            return list;
        }
Ejemplo n.º 5
0
 public bool AddUser(Users user)
 {
     return false;
 }
Ejemplo n.º 6
0
 public bool ModifyUser(Users user)
 {
     return false;
 }
Ejemplo n.º 7
0
        public IList<Users> FindUser(String condition)
        {
            IList<Users> list = new BindingList<Users>();
            Users user  = new Users();
            Users user1 = new Users();
            Users user2 = new Users();
            Users user3 = new Users();

            user.id = 1;
            user.login_name = "小徐";
            user.real_name = "查到了";
            user.isChecked = false;
            user.birthday = new DateTime();
            user.sex = "男";
            user.age = 18;
            user.remark = "我是小徐,大家好";
            user.major = "本科(买的)";
            user.email = "[email protected]";
            user.birthday = new DateTime();
            user.company_id = 1;
            user.audit_state = "0";
            user.stor_key = "123";
            user.mobile_phone = "119";
            user.office_phone = "120";
            user.immediate_manager = "威哥";
            user.user_number = "1234567usernumber";
            user.default_department = "酱油部门";
            user.create_user_id = 123;
            user.create_date = new DateTime();
            user.modify_user_id = 1234;
            user.modify_date = new DateTime();
            user.is_delete = "1";

            user1.id = 2;
            user1.login_name = "小宫";
            user1.real_name = "很高兴";
            user1.isChecked = false;
            user1.birthday = new DateTime();
            user1.sex = "男";
            user1.age = 18;
            user1.remark = "我是小宫,大家好";
            user1.major = "专科";
            user1.email = "[email protected]";
            user1.birthday = new DateTime();
            user1.company_id = 1;
            user1.audit_state = "0";
            user1.stor_key = "123";
            user1.mobile_phone = "119";
            user1.office_phone = "120";
            user1.immediate_manager = "威哥";
            user1.user_number = "123456usernumber";
            user1.default_department = "酱油部门";
            user1.create_user_id = 123;
            user1.create_date = new DateTime();
            user1.modify_user_id = 1234;
            user1.modify_date = new DateTime();
            user1.is_delete = "1";

            user2.id = 3;
            user2.login_name = "威哥";
            user2.real_name = "很吊啊";
            user2.isChecked = false;
            user2.birthday = new DateTime();
            user2.sex = "男";
            user2.age = 18;
            user2.remark = "我是威哥,大家好";
            user2.major = "本科";
            user2.email = "[email protected]";
            user2.birthday = new DateTime();
            user2.user_number = "1234usernumber";
            user2.company_id = 1;
            user2.audit_state = "0";
            user2.stor_key = "123";
            user2.mobile_phone = "119";
            user2.office_phone = "120";
            user2.immediate_manager = "老臣";
            user2.default_department = "研发部";
            user2.create_user_id = 123;
            user2.create_date = new DateTime();
            user2.modify_user_id = 1234;
            user2.modify_date = new DateTime();
            user2.is_delete = "1";

            user3.id = 4;
            user3.login_name = "总监";
            user3.real_name = "不满意";
            user3.isChecked = false;
            user3.birthday = new DateTime();
            user3.user_number = "1123456";
            user3.sex = "男";
            user.age = 18;
            user3.remark = "我是总监,大家好";
            user3.major = "本科";
            user3.email = "[email protected]";
            user3.birthday = new DateTime();
            user3.company_id = 1;
            user3.audit_state = "0";
            user3.stor_key = "123";
            user3.mobile_phone = "119";
            user3.office_phone = "120";
            user3.immediate_manager = "主席";
            user3.default_department = "设计部";
            user3.create_user_id = 123;
            user3.create_date = new DateTime();
            user3.modify_user_id = 1234;
            user3.modify_date = new DateTime();
            user3.is_delete = "1";

            list.Add(user);
            list.Add(user1);
            list.Add(user2);
            list.Add(user3);

            return list;
        }
Ejemplo n.º 8
0
        /// <summary>
        /// 右键菜单 修改用户
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void barButtonItem_Modify_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            user = (Users)this.SystemManagementAndTools_SystemUserMessageManage_UserList_UserListMessage_GridView.GetFocusedRow();

            UserMessage messageForm = new UserMessage();
            messageForm.Tag = "Modify";

            messageForm.user = user;
            messageForm.ShowDialog();
        }