component/Company.cs

(开头部分) 8KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

using System;
using System.Data;
using System.Data.SqlClient;
using System.Collections;
using System.Configuration;
using System.Security.Cryptography;
using System.Text;

namespace Hr.component
{
	public class Company:Hr.component.DatabaseOperation
	{
		private string m_Password;		
		private string m_Mail;

		public string Password
		{
			get
			{
				return m_Password;
			}
			set
			{
				m_Password = value;
			}
		}

		public string Mail
		{
			get
			{
				return m_Mail;
			}
			set
			{
				m_Mail = value;
			}
		}		


		public Company()
		{

		}


		public void Add()
		{
			if(IsExist())
			{
				throw new Exception("该公司已经注册了!");
			}
			else
			{
				strSQL = "Insert into company (Name,Password,Mail) Values("				
					+ "'" + this.Name + "',"
					+ "'" + publicfunc.Encrypt(this.Password,1) + "',"				
					+ "'" + this.Mail + "')";
				try
				{
后面还有 429 行代码,解锁后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明

AI 解读

登录后可用,每次 10 积分,解读结果公开显示在下面。

还没有人解读过这个文件。