Exemplo n.º 1
0
 public Staff()
 {
     _login_id = String.Empty;
     _password = String.Empty;
     _code = String.Empty;
     _name = String.Empty;
     _sex = null;
     _married = null;
     _id_card = String.Empty;
     _country_tag = String.Empty;
     _nation_tag = String.Empty;
     _position_tag = String.Empty;
     _title_tag = String.Empty;
     _political_appearance_tag = String.Empty;
     _degree_tag = String.Empty;
     _birthday = null;
     _enters_day = null;
     _leaves_day = null;
     _office_phone = String.Empty;
     _ext_number = String.Empty;
     _family_phone = String.Empty;
     _cell_phone = String.Empty;
     _email = String.Empty;
     _address = String.Empty;
     _zip_code = String.Empty;
     _remark = String.Empty;
     _is_inner_user = 0;
     _disabled = 0;
     _order_id = 0;
     _department = null;
     _roles = new HashedSet();
     _module_rights_grant = new HashedSet();
     _module_rights_deny = new HashedSet();
 }
Exemplo n.º 2
0
 public User()
 {
     _login_id = String.Empty;
     _password = String.Empty;
     _name = String.Empty;
     _sex = null;
     _birthday = null;
     _id_card = String.Empty;
     _office_phone = String.Empty;
     _family_phone = String.Empty;
     _cell_phone = String.Empty;
     _email = String.Empty;
     _address = String.Empty;
     _zip_code = String.Empty;
     _remark = String.Empty;
     _disabled = 0;
 }
		public static bool Equals(NullableInt32 x, NullableInt32 y)
		{
			if (x.HasValue != y.HasValue) //one is null
				return false;
			else if (x.HasValue) //therefor y also HasValue
				return x.Value == y.Value;
			else //both are null
				return true;
		}
		public bool Equals(NullableInt32 x)
		{
			return Equals(this, x);
		}