void SetEmpolyeesData(Empolyees empolyees) { this.m_Empolyees = empolyees; this.InitComboBoxData(); this.txtUser_ID.Text = empolyees.User_ID; this.txtPassword.Text = empolyees.Password; this.txtTel.Text = empolyees.Tel; this.txtEmpolyee_Name.Text = empolyees.Empolyee_Name; this.ckEnabled.Checked = empolyees.Enabled == "1" ? true : false; this.txtAlias.Text = empolyees.alias; this.txtFax.Text = empolyees.Fax; this.txtEmail.Text = empolyees.Email; this.txtRemark.Text = empolyees.Remark; }
/// <summary> /// 新建对象设置Key值 /// </summary> /// <param name="newobj"></param> void gridViewOperation_CreatingObjectEvent(Empolyees newobj) { newobj.Empolyee_ID = newobj.CreateID(); }