using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;
using System.Threading;
using System.Runtime.Remoting;
using System.Runtime.Remoting.Messaging;
using System.Runtime.Remoting.Services;

using System.Net;
using System.IO;
using System.Net.Sockets;

using System.Security;
using System.Security.Cryptography;
using System.Text;

using BookCommunityClient.AuthWS;
using BookCommunityClient.DataWS;

using System.Web.Services;
using System.Web.Services.Protocols;

using System.Data;

namespace BookCommunityClient
{
	/// <summary>
	/// MainFrm 的摘要说明。
	/// </summary>
	public class MainFrm : System.Windows.Forms.Form
	{
		//		#region 自动生成的字段

		private XPanderControl.XPander xPander1;
		private XPanderControl.XPanderList xPanderList1;
		private System.Windows.Forms.Splitter splitter1;
		private XPanderControl.XPander xPander2;
		internal System.Windows.Forms.ImageList ilLinkIcon;
		private System.ComponentModel.IContainer components;
		private System.Windows.Forms.LinkLabel lkbLendList;
		private System.Windows.Forms.LinkLabel lkbBorrowList;
		private System.Windows.Forms.LinkLabel lkbHistory;
		private System.Windows.Forms.ToolBar tbrMain;
		private System.Windows.Forms.MainMenu mMenu;
		private System.Windows.Forms.MenuItem menuItem2;
		private System.Windows.Forms.MenuItem menuItem3;
		private System.Windows.Forms.MenuItem menuItem4;
		internal System.Windows.Forms.ImageList ilToolbar;
		private System.Windows.Forms.ToolBarButton tbbNew;
		private System.Windows.Forms.ToolBarButton tbbSearch;
		private System.Windows.Forms.StatusBar stbMain;
		private System.Windows.Forms.StatusBarPanel sbpAction;
		private System.Windows.Forms.StatusBarPanel sbpOnline;
		private System.Windows.Forms.Panel pnlAdvancedSearch;
		private System.Windows.Forms.Panel pnlHome;
		private System.Windows.Forms.LinkLabel lklHome;
		private System.Windows.Forms.GroupBox gpbQuickSearch;
		private System.Windows.Forms.Panel pnlQuickSearch;
		private System.Windows.Forms.Label lblQuickSearch;
		private System.Windows.Forms.Panel pnlFill_Home;
		private System.Windows.Forms.GroupBox gpbBooks_Home;
		private System.Windows.Forms.Panel pnlLeft_Home;
		private System.Windows.Forms.GroupBox gpbRemind_Home;
		private System.Windows.Forms.Panel pnlTop_Home;
		private System.Windows.Forms.Label lblToday_Home;
		private System.Windows.Forms.LinkLabel lkbAdvancedSearch;
		private System.Windows.Forms.Panel pnlSearchResult;
		private System.Windows.Forms.Panel pnlAll;
		private System.Windows.Forms.Panel pnlLogin;
		private System.Windows.Forms.TextBox tbxUserName_Login;
		private System.Windows.Forms.Button btnLogin_Login;
		private System.Windows.Forms.Label lblUserName_Login;
		private System.Windows.Forms.Label lblPassword_Login;
		private System.Windows.Forms.TextBox tbxPassword_Login;
		private System.Windows.Forms.MenuItem miFile;
		private System.Windows.Forms.MenuItem miLogout;
		private System.Windows.Forms.ProgressBar pgbLogin_Login;
		private System.Windows.Forms.Label lblError_Login;
		private System.Windows.Forms.ComboBox cbbQuickSearch;
		private System.Windows.Forms.TextBox tbxQuickSearch;
		private System.Windows.Forms.Button btnQuickSearch;
		private System.Windows.Forms.Label lblWelcome_Home;
		private System.Data.SqlClient.SqlDataAdapter sqlDataAdapter1;
		private System.Data.SqlClient.SqlCommand sqlSelectCommand1;
		private System.Data.SqlClient.SqlCommand sqlInsertCommand1;
		private System.Data.SqlClient.SqlCommand sqlUpdateCommand1;
		private System.Data.SqlClient.SqlCommand sqlDeleteCommand1;
		private System.Data.SqlClient.SqlConnection sqlConnection1;
		private BookCommunityClient.DataSet1 dataSet11;
		private System.Windows.Forms.Panel pnlTop_SearchResult;
		private System.Windows.Forms.Label lblCaption_SearchResult;
		private System.Windows.Forms.Panel pnlBottom_SearchResult;
		private System.Windows.Forms.Splitter splitter2;
		private System.Windows.Forms.Label label1;
		private System.Windows.Forms.Label label2;
		private System.Windows.Forms.Label label3;
		private System.Windows.Forms.Label label5;
		private System.Windows.Forms.Label label6;
		private System.Windows.Forms.Label label7;
		private System.Windows.Forms.Label label4;
		private System.Windows.Forms.Label label8;
		private System.Windows.Forms.Label label9;
		private System.Windows.Forms.Label label10;
		private System.Windows.Forms.Panel pnlFill_SearchResult;
		private System.Windows.Forms.DataGrid dgSearchResult;
		private System.Windows.Forms.Panel pnlUserDetail_SearchResult;
		private System.Windows.Forms.Panel pnlShareDetail_SearchResult;
		private System.Windows.Forms.Panel pnlMessageDetail_SearchResult;
		private System.Windows.Forms.ImageList ilRatingIcon;
		private System.Windows.Forms.Label lblUserName_UserDetail;
		private System.Windows.Forms.Label lblEmail_UserDetail;
		private System.Windows.Forms.Label lblMobilePhone_UserDetail;
		private System.Windows.Forms.Label lblWorkPhone_UserDetail;
		private System.Windows.Forms.Label lblHomePhone_UserDetail;
		private System.Windows.Forms.Label lblCompanyAddress_UserDetail;
		private System.Windows.Forms.Label lblAddress_UserDetail;
		private System.Windows.Forms.Label lblRealName_UserDetail;
		private System.Windows.Forms.Label lblCompany_UserDetail;
		private System.Windows.Forms.PictureBox pbxCredit_UserDetail;
		private System.Data.SqlClient.SqlDataAdapter sqlDataAdapter2;
		private System.Data.SqlClient.SqlCommand sqlSelectCommand2;
		private System.Data.SqlClient.SqlCommand sqlInsertCommand2;
		private System.Data.SqlClient.SqlCommand sqlUpdateCommand2;
		private System.Data.SqlClient.SqlCommand sqlDeleteCommand2;
		private System.Windows.Forms.Panel pnlBookDetail_SearchResult;
		private System.Windows.Forms.ImageList ilBtnIcon;
		private System.Windows.Forms.TabControl tbcMain_BookDetail;
		private System.Windows.Forms.TabPage tbpGeneral_BookDetail;
		private System.Windows.Forms.LinkLabel llbOwner_BookDetail;
		private System.Windows.Forms.Label label13;
		private System.Windows.Forms.Button button1;
		private System.Windows.Forms.Label label11;
		private System.Windows.Forms.Label lblPress_BookDetail;
		private System.Windows.Forms.Label label23;
		private System.Windows.Forms.Label label24;
		private System.Windows.Forms.Label label25;
		private System.Windows.Forms.Label lblBookNameChn_BookDetail;
		private System.Windows.Forms.Label lblBookNameEng_BookDetail;
		private System.Windows.Forms.Label lblAuthor_BookDetail;
		private System.Windows.Forms.Label lblTranslator_BookDetail;
		private System.Windows.Forms.Label label20;
		private System.Windows.Forms.Label label12;
		private System.Windows.Forms.Label lblISBN_BookDetail;
		private System.Windows.Forms.Label lblStatus_BookDetail;
		private System.Windows.Forms.Label label16;
		private System.Windows.Forms.Label label14;
		private System.Windows.Forms.TabPage tbpSummary_BookDetail;
		private System.Windows.Forms.TextBox tbxSummary_BookDetail;
		private System.Windows.Forms.TabPage tpIndex_BookDetail;
		private System.Windows.Forms.LinkLabel lkbRequestNew;
		private System.Windows.Forms.ToolBarButton tbbRequest;
		private System.Data.SqlClient.SqlDataAdapter sqlDataAdapter3;
		private System.Data.SqlClient.SqlCommand sqlSelectCommand3;
		private System.Data.SqlClient.SqlCommand sqlInsertCommand3;
		private System.Data.SqlClient.SqlCommand sqlUpdateCommand3;
		private System.Data.SqlClient.SqlCommand sqlDeleteCommand3;
		private System.Windows.Forms.Label label17;
		private System.Windows.Forms.Label label18;
		private System.Windows.Forms.Label label19;
		private System.Windows.Forms.Label label15;
		private System.Windows.Forms.Label lblMessageFrom_MessageDetail;
		private System.Windows.Forms.Label lblMessageTo_MessageDetail;
		private System.Windows.Forms.Label lblTitle_MessageDetail;
		private System.Windows.Forms.Label lblDate_MessageDetail;
		private System.Windows.Forms.RichTextBox rtbBody_MessageDetail;
		private System.Windows.Forms.Panel pnlFill_MessageDetail;
		private System.Windows.Forms.Panel pnlTop_MessageDetail;

		//		#endregion

		#region 自定义字段
		/// <summary>
		///  当前显示的panel
		/// </summary>
		private System.Windows.Forms.Panel pnlCurrent;
		/// <summary>
		///  当前显示的detail panel
		/// </summary>
		private System.Windows.Forms.Panel pnlCurrentDetail;
		/// <summary>
		/// 当前的搜索类型(即阅读栏类型)
		/// -1:未搜索, 0:书籍, 1:用户, 2:未读申请, 3:共享信息
		/// </summary>
		private UISearchTypeEnum searchTypeCurrent;

		// Datasets
		public DataSetBook DsBook = new DataSetBook();
		public DataSetMessage DsMessage = new DataSetMessage();
		public DataSetOnlineInfo DsOnlineInfo = new DataSetOnlineInfo();
		public DataSetShareInfo DsShareInfo = new DataSetShareInfo();
		public DataSetUserInfo DsUserInfo = new DataSetUserInfo();

		// Web Services
		internal AuthService m_authSvc = new AuthService();
		internal DataService m_dataSvc = new DataService();
		internal IAsyncResult m_asyncResultLogin;
		private const int c_wsTimeout = 30000;//30 seconds

		// Tickets for login and data access
		internal string m_authTicket;
		private System.Windows.Forms.TextBox tbxIndex_BookDetail;

		// progress bar who'll be used while doing data accessing
		private ProgressBar m_ProgressBar = null;
		private System.Windows.Forms.PictureBox pbxCoverPage_BookDetail;

		// bool who indicates whether current status is online or not.
		// it'll be true while online and false while offline
		private bool m_IsOnline = true; // default mode is online

		internal int CurrentSelectedID;

		//local information cache
		internal UserInformation CurrentUserInfo;
		internal BookInformation CurrentBookInfo;
		internal Image CurrentCoverPage;
		private System.Windows.Forms.Timer tmrUpdateDB;

		/// <summary>
		/// 数据库自动同步间隔
		/// </summary>
		internal int DataSetsAutoUpdateInterval=500;
		private System.Windows.Forms.Label label21;
		private System.Windows.Forms.Label label22;
		private System.Windows.Forms.Label label26;
		private System.Windows.Forms.Label label27;
		private System.Windows.Forms.Label label28;
		private System.Windows.Forms.Label label29;
		private System.Windows.Forms.Label label30;
		private System.Windows.Forms.Label label31;
		private System.Windows.Forms.Label label40;
		private System.Windows.Forms.Label lblBookNameEng_ShareInfo;
		private System.Windows.Forms.Label lblBookNameChn_ShareInfo;
		private System.Windows.Forms.LinkLabel llbShareTo_ShareInfo;
		private System.Windows.Forms.LinkLabel llbShareFrom_ShareInfo;
		private System.Windows.Forms.Label lblPlanStartDate_ShareInfo;
		private System.Windows.Forms.Label lblActualStartDate_ShareInfo;
		private System.Windows.Forms.Label lblPlanEndDate_ShareInfo;
		private System.Windows.Forms.Label lblActualEndDate_ShareInfo;
		private System.Windows.Forms.PictureBox pbxDepreciation_ShareInfo;
		private System.Windows.Forms.Splitter splitter3;
		private System.Windows.Forms.Panel panel1;
		private System.Windows.Forms.Panel panel2;
		private System.Windows.Forms.ListView lstNotification;
		private System.Windows.Forms.ColumnHeader clMainNotify;
		private System.Windows.Forms.ListView lstNewBooks;
		private System.Windows.Forms.ColumnHeader columnHeader1;
		private System.Windows.Forms.ToolBarButton tbbOnline;
		private System.Windows.Forms.Panel panel3;
		private System.Windows.Forms.Label label32;
		private System.Windows.Forms.Label label34;
		private System.Windows.Forms.Label label35;
		private System.Windows.Forms.Label label36;
		private System.Windows.Forms.Label label37;
		private System.Windows.Forms.Label label38;
		private System.Windows.Forms.Label label39;
		private System.Windows.Forms.Button btnSearch_AdvSearch;
		private System.Windows.Forms.TextBox tbxBookNameEng_AdvSearch;
		private System.Windows.Forms.TextBox tbxAuthor_AdvSearch;
		private System.Windows.Forms.TextBox tbxBookNameChn_AdvSearch;
		private System.Windows.Forms.TextBox tbxTranslator_AdvSearch;
		private System.Windows.Forms.TextBox tbxPress_AdvSearch;
		private System.Windows.Forms.TextBox tbxISBN_AdvSearch;
		private System.Windows.Forms.TextBox tbxSummary_AdvSearch;
		private System.Windows.Forms.Button btnClear_AdvSearch;

		internal string MyDocuemntPathString = string.Empty;
		#endregion

		#region 窗体的创建和销毁

		public MainFrm()
		{
			//
			// Windows 窗体设计器支持所必需的
			//
			InitializeComponent();

			//
			// TODO: 在 InitializeComponent 调用后添加任何构造函数代码
			//

			this.pnlCurrent = this.pnlHome;
			this.pnlCurrentDetail = null;
			this.cbbQuickSearch.SelectedIndex = 0;
			this.searchTypeCurrent = UISearchTypeEnum.INIT;

			//create web service objects
			this.m_authSvc.Timeout = c_wsTimeout;
			this.m_dataSvc.Timeout = c_wsTimeout;

			// get the my documents path
			MyDocuemntPathString = Environment.GetFolderPath(Environment.SpecialFolder.Personal) + @"\";

		}

		/// <summary>
		/// 清理所有正在使用的资源。
		/// </summary>
		protected override void Dispose( bool disposing )
		{
			if( disposing )
			{
				if(components != null)
				{
					components.Dispose();
				}
			}
			base.Dispose( disposing );
		}

		#region Windows 窗体设计器生成的代码
		/// <summary>
		/// 设计器支持所需的方法 - 不要使用代码编辑器修改
		/// 此方法的内容。
		/// </summary>
		private void InitializeComponent()
		{
			this.components = new System.ComponentModel.Container();
			System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(MainFrm));
			this.xPander1 = new XPanderControl.XPander();
			this.lklHome = new System.Windows.Forms.LinkLabel();
			this.ilLinkIcon = new System.Windows.Forms.ImageList(this.components);
			this.lkbAdvancedSearch = new System.Windows.Forms.LinkLabel();
			this.xPanderList1 = new XPanderControl.XPanderList();
			this.xPander2 = new XPanderControl.XPander();
			this.lkbHistory = new System.Windows.Forms.LinkLabel();
			this.lkbBorrowList = new System.Windows.Forms.LinkLabel();
			this.lkbLendList = new System.Windows.Forms.LinkLabel();
			this.lkbRequestNew = new System.Windows.Forms.LinkLabel();
			this.splitter1 = new System.Windows.Forms.Splitter();
			this.tbrMain = new System.Windows.Forms.ToolBar();
			this.tbbNew = new System.Windows.Forms.ToolBarButton();
			this.tbbSearch = new System.Windows.Forms.ToolBarButton();
			this.tbbRequest = new System.Windows.Forms.ToolBarButton();
			this.tbbOnline = new System.Windows.Forms.ToolBarButton();
			this.ilToolbar = new System.Windows.Forms.ImageList(this.components);
			this.mMenu = new System.Windows.Forms.MainMenu();
			this.miFile = new System.Windows.Forms.MenuItem();
			this.miLogout = new System.Windows.Forms.MenuItem();
			this.menuItem2 = new System.Windows.Forms.MenuItem();
			this.menuItem3 = new System.Windows.Forms.MenuItem();
			this.menuItem4 = new System.Windows.Forms.MenuItem();
			this.stbMain = new System.Windows.Forms.StatusBar();
			this.sbpAction = new System.Windows.Forms.StatusBarPanel();
			this.sbpOnline = new System.Windows.Forms.StatusBarPanel();
			this.gpbQuickSearch = new System.Windows.Forms.GroupBox();
			this.lblQuickSearch = new System.Windows.Forms.Label();
			this.cbbQuickSearch = new System.Windows.Forms.ComboBox();
			this.tbxQuickSearch = new System.Windows.Forms.TextBox();
			this.btnQuickSearch = new System.Windows.Forms.Button();
			this.pnlQuickSearch = new System.Windows.Forms.Panel();
			this.pnlAdvancedSearch = new System.Windows.Forms.Panel();
			this.panel3 = new System.Windows.Forms.Panel();
			this.btnSearch_AdvSearch = new System.Windows.Forms.Button();
			this.tbxBookNameEng_AdvSearch = new System.Windows.Forms.TextBox();
			this.label32 = new System.Windows.Forms.Label();
			this.label34 = new System.Windows.Forms.Label();
			this.label35 = new System.Windows.Forms.Label();
			this.label36 = new System.Windows.Forms.Label();
			this.label37 = new System.Windows.Forms.Label();
			this.label38 = new System.Windows.Forms.Label();
			this.label39 = new System.Windows.Forms.Label();
			this.tbxAuthor_AdvSearch = new System.Windows.Forms.TextBox();
			this.tbxBookNameChn_AdvSearch = new System.Windows.Forms.TextBox();
			this.tbxTranslator_AdvSearch = new System.Windows.Forms.TextBox();
			this.tbxPress_AdvSearch = new System.Windows.Forms.TextBox();
			this.tbxISBN_AdvSearch = new System.Windows.Forms.TextBox();
			this.tbxSummary_AdvSearch = new System.Windows.Forms.TextBox();
			this.btnClear_AdvSearch = new System.Windows.Forms.Button();
			this.pnlHome = new System.Windows.Forms.Panel();
			this.splitter3 = new System.Windows.Forms.Splitter();
			this.pnlFill_Home = new System.Windows.Forms.Panel();
			this.gpbBooks_Home = new System.Windows.Forms.GroupBox();
			this.panel2 = new System.Windows.Forms.Panel();
			this.lstNewBooks = new System.Windows.Forms.ListView();
			this.columnHeader1 = new System.Windows.Forms.ColumnHeader();
			this.pnlLeft_Home = new System.Windows.Forms.Panel();
			this.gpbRemind_Home = new System.Windows.Forms.GroupBox();
			this.panel1 = new System.Windows.Forms.Panel();
			this.lstNotification = new System.Windows.Forms.ListView();
			this.clMainNotify = new System.Windows.Forms.ColumnHeader();
			this.pnlTop_Home = new System.Windows.Forms.Panel();
			this.lblWelcome_Home = new System.Windows.Forms.Label();
			this.lblToday_Home = new System.Windows.Forms.Label();
			this.pnlSearchResult = new System.Windows.Forms.Panel();
			this.pnlFill_SearchResult = new System.Windows.Forms.Panel();
			this.dgSearchResult = new System.Windows.Forms.DataGrid();
			this.splitter2 = new System.Windows.Forms.Splitter();
			this.pnlBottom_SearchResult = new System.Windows.Forms.Panel();
			this.pnlShareDetail_SearchResult = new System.Windows.Forms.Panel();
			this.pbxDepreciation_ShareInfo = new System.Windows.Forms.PictureBox();
			this.llbShareFrom_ShareInfo = new System.Windows.Forms.LinkLabel();
			this.llbShareTo_ShareInfo = new System.Windows.Forms.LinkLabel();
			this.label27 = new System.Windows.Forms.Label();
			this.label28 = new System.Windows.Forms.Label();
			this.label29 = new System.Windows.Forms.Label();
			this.label30 = new System.Windows.Forms.Label();
			this.label31 = new System.Windows.Forms.Label();
			this.lblBookNameEng_ShareInfo = new System.Windows.Forms.Label();
			this.label21 = new System.Windows.Forms.Label();
			this.label22 = new System.Windows.Forms.Label();
			this.lblBookNameChn_ShareInfo = new System.Windows.Forms.Label();
			this.label26 = new System.Windows.Forms.Label();
			this.lblPlanStartDate_ShareInfo = new System.Windows.Forms.Label();
			this.lblActualStartDate_ShareInfo = new System.Windows.Forms.Label();
			this.lblPlanEndDate_ShareInfo = new System.Windows.Forms.Label();
			this.lblActualEndDate_ShareInfo = new System.Windows.Forms.Label();
			this.label40 = new System.Windows.Forms.Label();
			this.pnlUserDetail_SearchResult = new System.Windows.Forms.Panel();
			this.label2 = new System.Windows.Forms.Label();
			this.lblCompany_UserDetail = new System.Windows.Forms.Label();
			this.lblRealName_UserDetail = new System.Windows.Forms.Label();
			this.lblUserName_UserDetail = new System.Windows.Forms.Label();
			this.lblAddress_UserDetail = new System.Windows.Forms.Label();
			this.lblCompanyAddress_UserDetail = new System.Windows.Forms.Label();
			this.lblHomePhone_UserDetail = new System.Windows.Forms.Label();
			this.lblWorkPhone_UserDetail = new System.Windows.Forms.Label();
			this.lblMobilePhone_UserDetail = new System.Windows.Forms.Label();
			this.lblEmail_UserDetail = new System.Windows.Forms.Label();
			this.pbxCredit_UserDetail = new System.Windows.Forms.PictureBox();
			this.label10 = new System.Windows.Forms.Label();
			this.label9 = new System.Windows.Forms.Label();
			this.label8 = new System.Windows.Forms.Label();
			this.label4 = new System.Windows.Forms.Label();
			this.label7 = new System.Windows.Forms.Label();
			this.label6 = new System.Windows.Forms.Label();
			this.label5 = new System.Windows.Forms.Label();
			this.label3 = new System.Windows.Forms.Label();
			this.label1 = new System.Windows.Forms.Label();
			this.pnlMessageDetail_SearchResult = new System.Windows.Forms.Panel();
			this.pnlFill_MessageDetail = new System.Windows.Forms.Panel();
			this.rtbBody_MessageDetail = new System.Windows.Forms.RichTextBox();
			this.pnlTop_MessageDetail = new System.Windows.Forms.Panel();
			this.label15 = new System.Windows.Forms.Label();
			this.label17 = new System.Windows.Forms.Label();
			this.lblDate_MessageDetail = new System.Windows.Forms.Label();
			this.label19 = new System.Windows.Forms.Label();
			this.label18 = new System.Windows.Forms.Label();
			this.lblTitle_MessageDetail = new System.Windows.Forms.Label();
			this.lblMessageTo_MessageDetail = new System.Windows.Forms.Label();
			this.lblMessageFrom_MessageDetail = new System.Windows.Forms.Label();
			this.pnlBookDetail_SearchResult = new System.Windows.Forms.Panel();
			this.tbcMain_BookDetail = new System.Windows.Forms.TabControl();
			this.tbpGeneral_BookDetail = new System.Windows.Forms.TabPage();
			this.label14 = new System.Windows.Forms.Label();
			this.llbOwner_BookDetail = new System.Windows.Forms.LinkLabel();
			this.label13 = new System.Windows.Forms.Label();
			this.pbxCoverPage_BookDetail = new System.Windows.Forms.PictureBox();
			this.button1 = new System.Windows.Forms.Button();
			this.label11 = new System.Windows.Forms.Label();
			this.lblPress_BookDetail = new System.Windows.Forms.Label();
			this.label23 = new System.Windows.Forms.Label();
			this.label24 = new System.Windows.Forms.Label();
			this.label25 = new System.Windows.Forms.Label();
			this.lblBookNameChn_BookDetail = new System.Windows.Forms.Label();
			this.lblBookNameEng_BookDetail = new System.Windows.Forms.Label();
			this.lblAuthor_BookDetail = new System.Windows.Forms.Label();
			this.lblTranslator_BookDetail = new System.Windows.Forms.Label();
			this.label20 = new System.Windows.Forms.Label();
			this.label12 = new System.Windows.Forms.Label();
			this.lblISBN_BookDetail = new System.Windows.Forms.Label();
			this.lblStatus_BookDetail = new System.Windows.Forms.Label();
			this.label16 = new System.Windows.Forms.Label();
			this.tbpSummary_BookDetail = new System.Windows.Forms.TabPage();
			this.tbxSummary_BookDetail = new System.Windows.Forms.TextBox();
			this.tpIndex_BookDetail = new System.Windows.Forms.TabPage();
			this.tbxIndex_BookDetail = new System.Windows.Forms.TextBox();
			this.pnlTop_SearchResult = new System.Windows.Forms.Panel();
			this.lblCaption_SearchResult = new System.Windows.Forms.Label();
			this.pnlAll = new System.Windows.Forms.Panel();
			this.pnlLogin = new System.Windows.Forms.Panel();
			this.pgbLogin_Login = new System.Windows.Forms.ProgressBar();
			this.lblError_Login = new System.Windows.Forms.Label();
			this.lblPassword_Login = new System.Windows.Forms.Label();
			this.lblUserName_Login = new System.Windows.Forms.Label();
			this.btnLogin_Login = new System.Windows.Forms.Button();
			this.tbxUserName_Login = new System.Windows.Forms.TextBox();
			this.tbxPassword_Login = new System.Windows.Forms.TextBox();
			this.sqlDataAdapter1 = new System.Data.SqlClient.SqlDataAdapter();
			this.sqlDeleteCommand1 = new System.Data.SqlClient.SqlCommand();
			this.sqlConnection1 = new System.Data.SqlClient.SqlConnection();
			this.sqlInsertCommand1 = new System.Data.SqlClient.SqlCommand();
			this.sqlSelectCommand1 = new System.Data.SqlClient.SqlCommand();
			this.sqlUpdateCommand1 = new System.Data.SqlClient.SqlCommand();
			this.dataSet11 = new BookCommunityClient.DataSet1();
			this.ilRatingIcon = new System.Windows.Forms.ImageList(this.components);
			this.sqlDataAdapter2 = new System.Data.SqlClient.SqlDataAdapter();
			this.sqlDeleteCommand2 = new System.Data.SqlClient.SqlCommand();
			this.sqlInsertCommand2 = new System.Data.SqlClient.SqlCommand();
			this.sqlSelectCommand2 = new System.Data.SqlClient.SqlCommand();
			this.sqlUpdateCommand2 = new System.Data.SqlClient.SqlCommand();
			this.ilBtnIcon = new System.Windows.Forms.ImageList(this.components);
			this.sqlDataAdapter3 = new System.Data.SqlClient.SqlDataAdapter();
			this.sqlDeleteCommand3 = new System.Data.SqlClient.SqlCommand();
			this.sqlInsertCommand3 = new System.Data.SqlClient.SqlCommand();
			this.sqlSelectCommand3 = new System.Data.SqlClient.SqlCommand();
			this.sqlUpdateCommand3 = new System.Data.SqlClient.SqlCommand();
			this.tmrUpdateDB = new System.Windows.Forms.Timer(this.components);
			this.xPander1.SuspendLayout();
			this.xPanderList1.SuspendLayout();
			this.xPander2.SuspendLayout();
			((System.ComponentModel.ISupportInitialize)(this.sbpAction)).BeginInit();
			((System.ComponentModel.ISupportInitialize)(this.sbpOnline)).BeginInit();
			this.gpbQuickSearch.SuspendLayout();
			this.pnlQuickSearch.SuspendLayout();
			this.pnlAdvancedSearch.SuspendLayout();
			this.panel3.SuspendLayout();
			this.pnlHome.SuspendLayout();
			this.pnlFill_Home.SuspendLayout();
			this.gpbBooks_Home.SuspendLayout();
			this.panel2.SuspendLayout();
			this.pnlLeft_Home.SuspendLayout();
			this.gpbRemind_Home.SuspendLayout();
			this.panel1.SuspendLayout();
			this.pnlTop_Home.SuspendLayout();
			this.pnlSearchResult.SuspendLayout();
			this.pnlFill_SearchResult.SuspendLayout();
			((System.ComponentModel.ISupportInitialize)(this.dgSearchResult)).BeginInit();
			this.pnlBottom_SearchResult.SuspendLayout();
			this.pnlShareDetail_SearchResult.SuspendLayout();
			this.pnlUserDetail_SearchResult.SuspendLayout();
			this.pnlMessageDetail_SearchResult.SuspendLayout();
			this.pnlFill_MessageDetail.SuspendLayout();
			this.pnlTop_MessageDetail.SuspendLayout();
			this.pnlBookDetail_SearchResult.SuspendLayout();
			this.tbcMain_BookDetail.SuspendLayout();
			this.tbpGeneral_BookDetail.SuspendLayout();
			this.tbpSummary_BookDetail.SuspendLayout();
			this.tpIndex_BookDetail.SuspendLayout();
			this.pnlTop_SearchResult.SuspendLayout();
			this.pnlAll.SuspendLayout();
			this.pnlLogin.SuspendLayout();
			((System.ComponentModel.ISupportInitialize)(this.dataSet11)).BeginInit();
			this.SuspendLayout();
			// 
			// xPander1
			// 
			this.xPander1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 
				| System.Windows.Forms.AnchorStyles.Right)));
			this.xPander1.BackColor = System.Drawing.Color.FromArgb(((System.Byte)(214)), ((System.Byte)(223)), ((System.Byte)(247)));
			this.xPander1.CaptionColor = System.Drawing.Color.FromArgb(((System.Byte)(198)), ((System.Byte)(210)), ((System.Byte)(248)));
			this.xPander1.CaptionFont = new System.Drawing.Font("Microsoft Sans Serif", 8F, System.Drawing.FontStyle.Bold);
			this.xPander1.CaptionText = "书籍搜索";
			this.xPander1.CaptionTextColor = System.Drawing.Color.FromArgb(((System.Byte)(33)), ((System.Byte)(93)), ((System.Byte)(198)));
			this.xPander1.CaptionTextHighlightColor = System.Drawing.Color.FromArgb(((System.Byte)(66)), ((System.Byte)(142)), ((System.Byte)(255)));
			this.xPander1.Controls.Add(this.lklHome);
			this.xPander1.Controls.Add(this.lkbAdvancedSearch);
			this.xPander1.DockPadding.Top = 25;
			this.xPander1.Location = new System.Drawing.Point(19, 19);
			this.xPander1.Name = "xPander1";
			this.xPander1.Size = new System.Drawing.Size(170, 108);
			this.xPander1.TabIndex = 0;
			this.xPander1.Tag = 0;
			// 
			// lklHome
			// 
			this.lklHome.FlatStyle = System.Windows.Forms.FlatStyle.System;
			this.lklHome.ImageAlign = System.Drawing.ContentAlignment.TopLeft;
			this.lklHome.ImageIndex = 0;
			this.lklHome.ImageList = this.ilLinkIcon;
			this.lklHome.LinkBehavior = System.Windows.Forms.LinkBehavior.HoverUnderline;
			this.lklHome.LinkColor = System.Drawing.Color.FromArgb(((System.Byte)(33)), ((System.Byte)(93)), ((System.Byte)(198)));
			this.lklHome.Location = new System.Drawing.Point(24, 40);
			this.lklHome.Name = "lklHome";
			this.lklHome.Size = new System.Drawing.Size(100, 24);
			this.lklHome.TabIndex = 0;
			this.lklHome.TabStop = true;
			this.lklHome.Text = "显示今日";
			this.lklHome.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
			this.lklHome.VisitedLinkColor = System.Drawing.Color.FromArgb(((System.Byte)(33)), ((System.Byte)(93)), ((System.Byte)(198)));
			this.lklHome.LinkClicked += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.lkbHome_LinkClicked);
			// 
			// ilLinkIcon
			// 
			this.ilLinkIcon.ColorDepth = System.Windows.Forms.ColorDepth.Depth32Bit;
			this.ilLinkIcon.ImageSize = new System.Drawing.Size(16, 16);
			this.ilLinkIcon.ImageStream = ((System.Windows.Forms.ImageListStreamer)(resources.GetObject("ilLinkIcon.ImageStream")));
			this.ilLinkIcon.TransparentColor = System.Drawing.Color.White;
			// 
			// lkbAdvancedSearch
			// 
			this.lkbAdvancedSearch.FlatStyle = System.Windows.Forms.FlatStyle.System;
			this.lkbAdvancedSearch.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft;
			this.lkbAdvancedSearch.ImageIndex = 1;
			this.lkbAdvancedSearch.ImageList = this.ilLinkIcon;
			this.lkbAdvancedSearch.LinkBehavior = System.Windows.Forms.LinkBehavior.HoverUnderline;
			this.lkbAdvancedSearch.LinkColor = System.Drawing.Color.FromArgb(((System.Byte)(33)), ((System.Byte)(93)), ((System.Byte)(198)));
			this.lkbAdvancedSearch.Location = new System.Drawing.Point(24, 64);
			this.lkbAdvancedSearch.Name = "lkbAdvancedSearch";
			this.lkbAdvancedSearch.Size = new System.Drawing.Size(100, 24);
			this.lkbAdvancedSearch.TabIndex = 0;
			this.lkbAdvancedSearch.TabStop = true;
			this.lkbAdvancedSearch.Text = "高级搜索";
			this.lkbAdvancedSearch.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
			this.lkbAdvancedSearch.VisitedLinkColor = System.Drawing.Color.FromArgb(((System.Byte)(33)), ((System.Byte)(93)), ((System.Byte)(198)));
			this.lkbAdvancedSearch.LinkClicked += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.lkbAdvancedSearch_LinkClicked);
			// 
			// xPanderList1
			// 
			this.xPanderList1.BackColor = System.Drawing.Color.FromArgb(((System.Byte)(99)), ((System.Byte)(117)), ((System.Byte)(222)));
			this.xPanderList1.BackColorDark = System.Drawing.Color.FromArgb(((System.Byte)(99)), ((System.Byte)(117)), ((System.Byte)(222)));
			this.xPanderList1.BackColorLight = System.Drawing.Color.FromArgb(((System.Byte)(123)), ((System.Byte)(162)), ((System.Byte)(239)));
			this.xPanderList1.Controls.Add(this.xPander1);
			this.xPanderList1.Controls.Add(this.xPander2);
			this.xPanderList1.Dock = System.Windows.Forms.DockStyle.Left;
			this.xPanderList1.Location = new System.Drawing.Point(0, 36);
			this.xPanderList1.Name = "xPanderList1";
			this.xPanderList1.Size = new System.Drawing.Size(208, 475);
			this.xPanderList1.TabIndex = 1;
			// 
			// xPander2
			// 
			this.xPander2.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 
				| System.Windows.Forms.AnchorStyles.Right)));
			this.xPander2.BackColor = System.Drawing.Color.FromArgb(((System.Byte)(214)), ((System.Byte)(223)), ((System.Byte)(247)));
			this.xPander2.CaptionColor = System.Drawing.Color.FromArgb(((System.Byte)(198)), ((System.Byte)(210)), ((System.Byte)(248)));
			this.xPander2.CaptionFont = new System.Drawing.Font("Microsoft Sans Serif", 8F, System.Drawing.FontStyle.Bold);
			this.xPander2.CaptionText = "借阅信息";
			this.xPander2.CaptionTextColor = System.Drawing.Color.FromArgb(((System.Byte)(33)), ((System.Byte)(93)), ((System.Byte)(198)));
			this.xPander2.CaptionTextHighlightColor = System.Drawing.Color.FromArgb(((System.Byte)(66)), ((System.Byte)(142)), ((System.Byte)(255)));
			this.xPander2.Controls.Add(this.lkbHistory);
			this.xPander2.Controls.Add(this.lkbBorrowList);
			this.xPander2.Controls.Add(this.lkbLendList);
			this.xPander2.Controls.Add(this.lkbRequestNew);
			this.xPander2.DockPadding.Top = 25;
			this.xPander2.Location = new System.Drawing.Point(19, 148);
			this.xPander2.Name = "xPander2";
			this.xPander2.Size = new System.Drawing.Size(170, 156);
			this.xPander2.TabIndex = 0;
			this.xPander2.Tag = 1;
			// 
			// lkbHistory
			// 
			this.lkbHistory.FlatStyle = System.Windows.Forms.FlatStyle.System;
			this.lkbHistory.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft;
			this.lkbHistory.ImageIndex = 3;
			this.lkbHistory.ImageList = this.ilLinkIcon;
			this.lkbHistory.LinkBehavior = System.Windows.Forms.LinkBehavior.HoverUnderline;
			this.lkbHistory.LinkColor = System.Drawing.Color.FromArgb(((System.Byte)(33)), ((System.Byte)(93)), ((System.Byte)(198)));
			this.lkbHistory.Location = new System.Drawing.Point(24, 64);
			this.lkbHistory.Name = "lkbHistory";
			this.lkbHistory.Size = new System.Drawing.Size(100, 24);
			this.lkbHistory.TabIndex = 4;
			this.lkbHistory.TabStop = true;
			this.lkbHistory.Text = "历史消息";
			this.lkbHistory.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
			this.lkbHistory.VisitedLinkColor = System.Drawing.Color.FromArgb(((System.Byte)(33)), ((System.Byte)(93)), ((System.Byte)(198)));
			this.lkbHistory.LinkClicked += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.lkbHistory_LinkClicked);
			// 
			// lkbBorrowList
			// 
			this.lkbBorrowList.FlatStyle = System.Windows.Forms.FlatStyle.System;
			this.lkbBorrowList.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft;
			this.lkbBorrowList.ImageIndex = 4;
			this.lkbBorrowList.ImageList = this.ilLinkIcon;
			this.lkbBorrowList.LinkBehavior = System.Windows.Forms.LinkBehavior.HoverUnderline;
			this.lkbBorrowList.LinkColor = System.Drawing.Color.FromArgb(((System.Byte)(33)), ((System.Byte)(93)), ((System.Byte)(198)));
			this.lkbBorrowList.Location = new System.Drawing.Point(24, 88);
			this.lkbBorrowList.Name = "lkbBorrowList";
			this.lkbBorrowList.Size = new System.Drawing.Size(100, 24);
			this.lkbBorrowList.TabIndex = 3;
			this.lkbBorrowList.TabStop = true;
			this.lkbBorrowList.Text = "借入清单";
			this.lkbBorrowList.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
			this.lkbBorrowList.VisitedLinkColor = System.Drawing.Color.FromArgb(((System.Byte)(33)), ((System.Byte)(93)), ((System.Byte)(198)));
			this.lkbBorrowList.LinkClicked += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.lkbBorrowList_LinkClicked);
			// 
			// lkbLendList
			// 
			this.lkbLendList.FlatStyle = System.Windows.Forms.FlatStyle.System;
			this.lkbLendList.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft;
			this.lkbLendList.ImageIndex = 5;
			this.lkbLendList.ImageList = this.ilLinkIcon;
			this.lkbLendList.LinkBehavior = System.Windows.Forms.LinkBehavior.HoverUnderline;
			this.lkbLendList.LinkColor = System.Drawing.Color.FromArgb(((System.Byte)(33)), ((System.Byte)(93)), ((System.Byte)(198)));
			this.lkbLendList.Location = new System.Drawing.Point(24, 112);
			this.lkbLendList.Name = "lkbLendList";
			this.lkbLendList.Size = new System.Drawing.Size(100, 24);
			this.lkbLendList.TabIndex = 2;
			this.lkbLendList.TabStop = true;
			this.lkbLendList.Text = "借出清单";
			this.lkbLendList.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
			this.lkbLendList.VisitedLinkColor = System.Drawing.Color.FromArgb(((System.Byte)(33)), ((System.Byte)(93)), ((System.Byte)(198)));
			this.lkbLendList.LinkClicked += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.lkbLendList_LinkClicked);
			// 
			// lkbRequestNew
			// 
			this.lkbRequestNew.FlatStyle = System.Windows.Forms.FlatStyle.System;
			this.lkbRequestNew.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft;
			this.lkbRequestNew.ImageIndex = 2;
			this.lkbRequestNew.ImageList = this.ilLinkIcon;
			this.lkbRequestNew.LinkBehavior = System.Windows.Forms.LinkBehavior.HoverUnderline;
			this.lkbRequestNew.LinkColor = System.Drawing.Color.FromArgb(((System.Byte)(33)), ((System.Byte)(93)), ((System.Byte)(198)));
			this.lkbRequestNew.Location = new System.Drawing.Point(24, 40);
			this.lkbRequestNew.Name = "lkbRequestNew";
			this.lkbRequestNew.Size = new System.Drawing.Size(100, 24);
			this.lkbRequestNew.TabIndex = 1;
			this.lkbRequestNew.TabStop = true;
			this.lkbRequestNew.Text = "回复消息";
			this.lkbRequestNew.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
			this.lkbRequestNew.VisitedLinkColor = System.Drawing.Color.FromArgb(((System.Byte)(33)), ((System.Byte)(93)), ((System.Byte)(198)));
			this.lkbRequestNew.LinkClicked += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.lkbRequestNew_LinkClicked);
			// 
			// splitter1
			// 
			this.splitter1.Location = new System.Drawing.Point(208, 36);
			this.splitter1.Name = "splitter1";
			this.splitter1.Size = new System.Drawing.Size(4, 475);
			this.splitter1.TabIndex = 3;
			this.splitter1.TabStop = false;
			// 
			// tbrMain
			// 
			this.tbrMain.Appearance = System.Windows.Forms.ToolBarAppearance.Flat;
			this.tbrMain.Buttons.AddRange(new System.Windows.Forms.ToolBarButton[] {
																					   this.tbbNew,
																					   this.tbbSearch,
																					   this.tbbRequest,
																					   this.tbbOnline});
			this.tbrMain.ButtonSize = new System.Drawing.Size(63, 22);
			this.tbrMain.DropDownArrows = true;
			this.tbrMain.ImageList = this.ilToolbar;
			this.tbrMain.Location = new System.Drawing.Point(0, 0);
			this.tbrMain.Name = "tbrMain";
			this.tbrMain.ShowToolTips = true;
			this.tbrMain.Size = new System.Drawing.Size(876, 36);
			this.tbrMain.TabIndex = 4;
			this.tbrMain.TextAlign = System.Windows.Forms.ToolBarTextAlign.Right;
			this.tbrMain.ButtonClick += new System.Windows.Forms.ToolBarButtonClickEventHandler(this.tbrMain_ButtonClick);
			// 
			// tbbNew
			// 
			this.tbbNew.ImageIndex = 0;
			this.tbbNew.Text = "登录新书";
			// 
			// tbbSearch
			// 
			this.tbbSearch.ImageIndex = 1;
			this.tbbSearch.Text = "快速搜索";
			// 
			// tbbRequest
			// 
			this.tbbRequest.Enabled = false;
			this.tbbRequest.ImageIndex = 2;
			this.tbbRequest.Text = "申请借阅";
			// 
			// tbbOnline
			// 
			this.tbbOnline.ImageIndex = 4;
			this.tbbOnline.Text = "我要脱机";
			// 
			// ilToolbar
			// 
			this.ilToolbar.ColorDepth = System.Windows.Forms.ColorDepth.Depth32Bit;
			this.ilToolbar.ImageSize = new System.Drawing.Size(24, 24);
			this.ilToolbar.ImageStream = ((System.Windows.Forms.ImageListStreamer)(resources.GetObject("ilToolbar.ImageStream")));
			this.ilToolbar.TransparentColor = System.Drawing.Color.White;
			// 
			// mMenu
			// 
			this.mMenu.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
																				  this.miFile,
																				  this.menuItem2,
																				  this.menuItem3,
																				  this.menuItem4});
			// 
			// miFile
			// 
			this.miFile.Index = 0;
			this.miFile.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
																				   this.miLogout});
			this.miFile.Text = "文件(&F)";
			// 
			// miLogout
			// 
			this.miLogout.Index = 0;
			this.miLogout.Text = "注销(&L)";
			this.miLogout.Click += new System.EventHandler(this.miLogout_Click);
			// 
			// menuItem2
			// 
			this.menuItem2.Index = 1;
			this.menuItem2.Text = "检索(&S)";
			// 
			// menuItem3
			// 
			this.menuItem3.Index = 2;
			this.menuItem3.Text = "借阅(&B)";
			// 
			// menuItem4
			// 
			this.menuItem4.Index = 3;
			this.menuItem4.Text = "帮助(&H)";
			// 
			// stbMain
			// 
			this.stbMain.Location = new System.Drawing.Point(0, 511);
			this.stbMain.Name = "stbMain";
			this.stbMain.Panels.AddRange(new System.Windows.Forms.StatusBarPanel[] {
																					   this.sbpAction,
																					   this.sbpOnline});
			this.stbMain.ShowPanels = true;
			this.stbMain.Size = new System.Drawing.Size(876, 22);
			this.stbMain.TabIndex = 12;
			// 
			// sbpAction
			// 
			this.sbpAction.AutoSize = System.Windows.Forms.StatusBarPanelAutoSize.Spring;
			this.sbpAction.BorderStyle = System.Windows.Forms.StatusBarPanelBorderStyle.None;
			this.sbpAction.Text = "当前动作及状态";
			this.sbpAction.Width = 796;
			// 
			// sbpOnline
			// 
			this.sbpOnline.AutoSize = System.Windows.Forms.StatusBarPanelAutoSize.Contents;
			this.sbpOnline.BorderStyle = System.Windows.Forms.StatusBarPanelBorderStyle.None;
			this.sbpOnline.Text = "联机状态  ";
			this.sbpOnline.Width = 64;
			// 
			// gpbQuickSearch
			// 
			this.gpbQuickSearch.Controls.Add(this.lblQuickSearch);
			this.gpbQuickSearch.Controls.Add(this.cbbQuickSearch);
			this.gpbQuickSearch.Controls.Add(this.tbxQuickSearch);
			this.gpbQuickSearch.Controls.Add(this.btnQuickSearch);
			this.gpbQuickSearch.Dock = System.Windows.Forms.DockStyle.Fill;
			this.gpbQuickSearch.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
			this.gpbQuickSearch.Location = new System.Drawing.Point(0, 0);
			this.gpbQuickSearch.Name = "gpbQuickSearch";
			this.gpbQuickSearch.Size = new System.Drawing.Size(660, 44);
			this.gpbQuickSearch.TabIndex = 13;
			this.gpbQuickSearch.TabStop = false;
			// 
			// lblQuickSearch
			// 
			this.lblQuickSearch.AutoSize = true;
			this.lblQuickSearch.FlatStyle = System.Windows.Forms.FlatStyle.System;
			this.lblQuickSearch.Location = new System.Drawing.Point(16, 18);
			this.lblQuickSearch.Name = "lblQuickSearch";
			this.lblQuickSearch.Size = new System.Drawing.Size(60, 17);
			this.lblQuickSearch.TabIndex = 14;
			this.lblQuickSearch.Text = "快速搜索:";
			this.lblQuickSearch.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
			// 
			// cbbQuickSearch
			// 
			this.cbbQuickSearch.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
			this.cbbQuickSearch.Items.AddRange(new object[] {
																"书籍",
																"网友"});
			this.cbbQuickSearch.Location = new System.Drawing.Point(88, 16);
			this.cbbQuickSearch.Name = "cbbQuickSearch";
			this.cbbQuickSearch.Size = new System.Drawing.Size(72, 20);
			this.cbbQuickSearch.TabIndex = 15;
			// 
			// tbxQuickSearch
			// 
			this.tbxQuickSearch.Location = new System.Drawing.Point(168, 16);
			this.tbxQuickSearch.Name = "tbxQuickSearch";
			this.tbxQuickSearch.Size = new System.Drawing.Size(288, 21);
			this.tbxQuickSearch.TabIndex = 13;
			this.tbxQuickSearch.Text = "";
			// 
			// btnQuickSearch
			// 
			this.btnQuickSearch.FlatStyle = System.Windows.Forms.FlatStyle.System;
			this.btnQuickSearch.Location = new System.Drawing.Point(464, 16);
			this.btnQuickSearch.Name = "btnQuickSearch";
			this.btnQuickSearch.Size = new System.Drawing.Size(40, 23);
			this.btnQuickSearch.TabIndex = 12;
			this.btnQuickSearch.Text = "GO";
			this.btnQuickSearch.Click += new System.EventHandler(this.btnSearch_Click);
			// 
			// pnlQuickSearch
			// 
			this.pnlQuickSearch.Controls.Add(this.gpbQuickSearch);
			this.pnlQuickSearch.Dock = System.Windows.Forms.DockStyle.Top;
			this.pnlQuickSearch.DockPadding.Bottom = 4;
			this.pnlQuickSearch.DockPadding.Right = 4;
			this.pnlQuickSearch.Location = new System.Drawing.Point(212, 36);
			this.pnlQuickSearch.Name = "pnlQuickSearch";
			this.pnlQuickSearch.Size = new System.Drawing.Size(664, 48);
			this.pnlQuickSearch.TabIndex = 13;
			this.pnlQuickSearch.Visible = false;
			// 
			// pnlAdvancedSearch
			// 
			this.pnlAdvancedSearch.Controls.Add(this.panel3);
			this.pnlAdvancedSearch.Dock = System.Windows.Forms.DockStyle.Fill;
			this.pnlAdvancedSearch.DockPadding.Right = 4;
			this.pnlAdvancedSearch.Location = new System.Drawing.Point(212, 84);
			this.pnlAdvancedSearch.Name = "pnlAdvancedSearch";
			this.pnlAdvancedSearch.Size = new System.Drawing.Size(664, 427);
			this.pnlAdvancedSearch.TabIndex = 16;
			this.pnlAdvancedSearch.Visible = false;
			// 
			// panel3
			// 
			this.panel3.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
			this.panel3.Controls.Add(this.btnSearch_AdvSearch);
			this.panel3.Controls.Add(this.tbxBookNameEng_AdvSearch);
			this.panel3.Controls.Add(this.label32);
			this.panel3.Controls.Add(this.label34);
			this.panel3.Controls.Add(this.label35);
			this.panel3.Controls.Add(this.label36);
			this.panel3.Controls.Add(this.label37);
			this.panel3.Controls.Add(this.label38);
			this.panel3.Controls.Add(this.label39);
			this.panel3.Controls.Add(this.tbxAuthor_AdvSearch);
			this.panel3.Controls.Add(this.tbxBookNameChn_AdvSearch);
			this.panel3.Controls.Add(this.tbxTranslator_AdvSearch);
			this.panel3.Controls.Add(this.tbxPress_AdvSearch);
			this.panel3.Controls.Add(this.tbxISBN_AdvSearch);
			this.panel3.Controls.Add(this.tbxSummary_AdvSearch);
			this.panel3.Controls.Add(this.btnClear_AdvSearch);
			this.panel3.Dock = System.Windows.Forms.DockStyle.Fill;
			this.panel3.Location = new System.Drawing.Point(0, 0);
			this.panel3.Name = "panel3";
			this.panel3.Size = new System.Drawing.Size(660, 427);
			this.panel3.TabIndex = 0;
			// 
			// btnSearch_AdvSearch
			// 
			this.btnSearch_AdvSearch.FlatStyle = System.Windows.Forms.FlatStyle.System;
			this.btnSearch_AdvSearch.Location = new System.Drawing.Point(523, 376);
			this.btnSearch_AdvSearch.Name = "btnSearch_AdvSearch";
			this.btnSearch_AdvSearch.TabIndex = 53;
			this.btnSearch_AdvSearch.Text = "搜索";
			this.btnSearch_AdvSearch.Click += new System.EventHandler(this.btnSearch_AdvSearch_Click);
			// 
			// tbxBookNameEng_AdvSearch
			// 
			this.tbxBookNameEng_AdvSearch.Location = new System.Drawing.Point(174, 37);
			this.tbxBookNameEng_AdvSearch.Name = "tbxBookNameEng_AdvSearch";
			this.tbxBookNameEng_AdvSearch.Size = new System.Drawing.Size(424, 21);
			this.tbxBookNameEng_AdvSearch.TabIndex = 52;
			this.tbxBookNameEng_AdvSearch.Text = "";
			// 
			// label32
			// 
			this.label32.FlatStyle = System.Windows.Forms.FlatStyle.System;
			this.label32.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((System.Byte)(134)));
			this.label32.Location = new System.Drawing.Point(48, 232);
			this.label32.Name = "label32";
			this.label32.Size = new System.Drawing.Size(60, 17);
			this.label32.TabIndex = 45;
			this.label32.Text = "著者:";
			this.label32.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
			// 
			// label34
			// 
			this.label34.FlatStyle = System.Windows.Forms.FlatStyle.System;
			this.label34.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((System.Byte)(134)));
			this.label34.Location = new System.Drawing.Point(48, 184);
			this.label34.Name = "label34";
			this.label34.Size = new System.Drawing.Size(60, 17);
			this.label34.TabIndex = 51;
			this.label34.Text = "书籍摘要:";
			this.label34.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
			// 
			// label35
			// 
			this.label35.FlatStyle = System.Windows.Forms.FlatStyle.System;
			this.label35.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((System.Byte)(134)));
			this.label35.Location = new System.Drawing.Point(48, 328);
			this.label35.Name = "label35";
			this.label35.Size = new System.Drawing.Size(80, 17);
			this.label35.TabIndex = 50;
			this.label35.Text = "ISBN书号:";
			this.label35.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
			// 
			// label36
			// 
			this.label36.FlatStyle = System.Windows.Forms.FlatStyle.System;
			this.label36.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((System.Byte)(134)));
			this.label36.Location = new System.Drawing.Point(48, 136);
			this.label36.Name = "label36";
			this.label36.Size = new System.Drawing.Size(60, 17);
			this.label36.TabIndex = 48;
			this.label36.Text = "出版社:";
			this.label36.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
			// 
			// label37
			// 
			this.label37.FlatStyle = System.Windows.Forms.FlatStyle.System;
			this.label37.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((System.Byte)(134)));
			this.label37.Location = new System.Drawing.Point(48, 280);
			this.label37.Name = "label37";
			this.label37.Size = new System.Drawing.Size(48, 17);
			this.label37.TabIndex = 47;
			this.label37.Text = "译者:";
			this.label37.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
			// 
			// label38
			// 
			this.label38.FlatStyle = System.Windows.Forms.FlatStyle.System;
			this.label38.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((System.Byte)(134)));
			this.label38.Location = new System.Drawing.Point(48, 88);
			this.label38.Name = "label38";
			this.label38.Size = new System.Drawing.Size(104, 17);
			this.label38.TabIndex = 46;
			this.label38.Text = "书籍中文名称:";
			this.label38.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
			// 
			// label39
			// 
			this.label39.FlatStyle = System.Windows.Forms.FlatStyle.System;
			this.label39.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((System.Byte)(134)));
			this.label39.Location = new System.Drawing.Point(48, 40);
			this.label39.Name = "label39";
			this.label39.Size = new System.Drawing.Size(104, 17);
			this.label39.TabIndex = 44;
			this.label39.Text = "书籍英文名称:";
			this.label39.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
			// 
			// tbxAuthor_AdvSearch
			// 
			this.tbxAuthor_AdvSearch.Location = new System.Drawing.Point(174, 229);
			this.tbxAuthor_AdvSearch.Name = "tbxAuthor_AdvSearch";
			this.tbxAuthor_AdvSearch.Size = new System.Drawing.Size(424, 21);
			this.tbxAuthor_AdvSearch.TabIndex = 52;
			this.tbxAuthor_AdvSearch.Text = "";
			// 
			// tbxBookNameChn_AdvSearch
			// 
			this.tbxBookNameChn_AdvSearch.Location = new System.Drawing.Point(174, 85);
			this.tbxBookNameChn_AdvSearch.Name = "tbxBookNameChn_AdvSearch";
			this.tbxBookNameChn_AdvSearch.Size = new System.Drawing.Size(424, 21);
			this.tbxBookNameChn_AdvSearch.TabIndex = 52;
			this.tbxBookNameChn_AdvSearch.Text = "";
			// 
			// tbxTranslator_AdvSearch
			// 
			this.tbxTranslator_AdvSearch.Location = new System.Drawing.Point(174, 277);
			this.tbxTranslator_AdvSearch.Name = "tbxTranslator_AdvSearch";
			this.tbxTranslator_AdvSearch.Size = new System.Drawing.Size(424, 21);
			this.tbxTranslator_AdvSearch.TabIndex = 52;
			this.tbxTranslator_AdvSearch.Text = "";
			// 
			// tbxPress_AdvSearch
			// 
			this.tbxPress_AdvSearch.Location = new System.Drawing.Point(174, 133);
			this.tbxPress_AdvSearch.Name = "tbxPress_AdvSearch";
			this.tbxPress_AdvSearch.Size = new System.Drawing.Size(424, 21);
			this.tbxPress_AdvSearch.TabIndex = 52;
			this.tbxPress_AdvSearch.Text = "";
			// 
			// tbxISBN_AdvSearch
			// 
			this.tbxISBN_AdvSearch.Location = new System.Drawing.Point(174, 325);
			this.tbxISBN_AdvSearch.Name = "tbxISBN_AdvSearch";
			this.tbxISBN_AdvSearch.Size = new System.Drawing.Size(424, 21);
			this.tbxISBN_AdvSearch.TabIndex = 52;
			this.tbxISBN_AdvSearch.Text = "";
			// 
			// tbxSummary_AdvSearch
			// 
			this.tbxSummary_AdvSearch.Location = new System.Drawing.Point(174, 181);
			this.tbxSummary_AdvSearch.Name = "tbxSummary_AdvSearch";
			this.tbxSummary_AdvSearch.Size = new System.Drawing.Size(424, 21);
			this.tbxSummary_AdvSearch.TabIndex = 52;
			this.tbxSummary_AdvSearch.Text = "";
			// 
			// btnClear_AdvSearch
			// 
			this.btnClear_AdvSearch.FlatStyle = System.Windows.Forms.FlatStyle.System;
			this.btnClear_AdvSearch.Location = new System.Drawing.Point(408, 376);
			this.btnClear_AdvSearch.Name = "btnClear_AdvSearch";
			this.btnClear_AdvSearch.TabIndex = 53;
			this.btnClear_AdvSearch.Text = "清空";
			this.btnClear_AdvSearch.Click += new System.EventHandler(this.btnClear_AdvSearch_Click);
			// 
			// pnlHome
			// 
			this.pnlHome.Controls.Add(this.splitter3);
			this.pnlHome.Controls.Add(this.pnlFill_Home);
			this.pnlHome.Controls.Add(this.pnlLeft_Home);
			this.pnlHome.Controls.Add(this.pnlTop_Home);
			this.pnlHome.Dock = System.Windows.Forms.DockStyle.Fill;
			this.pnlHome.Location = new System.Drawing.Point(212, 84);
			this.pnlHome.Name = "pnlHome";
			this.pnlHome.Size = new System.Drawing.Size(664, 427);
			this.pnlHome.TabIndex = 16;
			this.pnlHome.VisibleChanged += new System.EventHandler(this.pnlHome_VisibleChanged);
			// 
			// splitter3
			// 
			this.splitter3.Location = new System.Drawing.Point(360, 55);
			this.splitter3.Name = "splitter3";
			this.splitter3.Size = new System.Drawing.Size(4, 372);
			this.splitter3.TabIndex = 9;
			this.splitter3.TabStop = false;
			// 
			// pnlFill_Home
			// 
			this.pnlFill_Home.Controls.Add(this.gpbBooks_Home);
			this.pnlFill_Home.Dock = System.Windows.Forms.DockStyle.Fill;
			this.pnlFill_Home.DockPadding.Right = 4;
			this.pnlFill_Home.Location = new System.Drawing.Point(360, 55);
			this.pnlFill_Home.Name = "pnlFill_Home";
			this.pnlFill_Home.Size = new System.Drawing.Size(304, 372);
			this.pnlFill_Home.TabIndex = 8;
			// 
			// gpbBooks_Home
			// 
			this.gpbBooks_Home.Controls.Add(this.panel2);
			this.gpbBooks_Home.Dock = System.Windows.Forms.DockStyle.Fill;
			this.gpbBooks_Home.Location = new System.Drawing.Point(0, 0);
			this.gpbBooks_Home.Name = "gpbBooks_Home";
			this.gpbBooks_Home.Size = new System.Drawing.Size(300, 372);
			this.gpbBooks_Home.TabIndex = 0;
			this.gpbBooks_Home.TabStop = false;
			this.gpbBooks_Home.Text = "登入新书";
			// 
			// panel2
			// 
			this.panel2.Controls.Add(this.lstNewBooks);
			this.panel2.Dock = System.Windows.Forms.DockStyle.Fill;
			this.panel2.DockPadding.All = 10;
			this.panel2.Location = new System.Drawing.Point(3, 17);
			this.panel2.Name = "panel2";
			this.panel2.Size = new System.Drawing.Size(294, 352);
			this.panel2.TabIndex = 0;
			// 
			// lstNewBooks
			// 
			this.lstNewBooks.Alignment = System.Windows.Forms.ListViewAlignment.Left;
			this.lstNewBooks.BackColor = System.Drawing.Color.FromArgb(((System.Byte)(216)), ((System.Byte)(228)), ((System.Byte)(248)));
			this.lstNewBooks.BorderStyle = System.Windows.Forms.BorderStyle.None;
			this.lstNewBooks.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] {
																						  this.columnHeader1});
			this.lstNewBooks.Dock = System.Windows.Forms.DockStyle.Fill;
			this.lstNewBooks.HeaderStyle = System.Windows.Forms.ColumnHeaderStyle.None;
			this.lstNewBooks.Location = new System.Drawing.Point(10, 10);
			this.lstNewBooks.Name = "lstNewBooks";
			this.lstNewBooks.Size = new System.Drawing.Size(274, 332);
			this.lstNewBooks.TabIndex = 0;
			this.lstNewBooks.View = System.Windows.Forms.View.Details;
			// 
			// columnHeader1
			// 
			this.columnHeader1.Width = 200;
			// 
			// pnlLeft_Home
			// 
			this.pnlLeft_Home.Controls.Add(this.gpbRemind_Home);
			this.pnlLeft_Home.Dock = System.Windows.Forms.DockStyle.Left;
			this.pnlLeft_Home.Location = new System.Drawing.Point(0, 55);
			this.pnlLeft_Home.Name = "pnlLeft_Home";
			this.pnlLeft_Home.Size = new System.Drawing.Size(360, 372);
			this.pnlLeft_Home.TabIndex = 7;
			// 
			// gpbRemind_Home
			// 
			this.gpbRemind_Home.Controls.Add(this.panel1);
			this.gpbRemind_Home.Dock = System.Windows.Forms.DockStyle.Fill;
			this.gpbRemind_Home.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
			this.gpbRemind_Home.Location = new System.Drawing.Point(0, 0);
			this.gpbRemind_Home.Name = "gpbRemind_Home";
			this.gpbRemind_Home.Size = new System.Drawing.Size(360, 372);
			this.gpbRemind_Home.TabIndex = 0;
			this.gpbRemind_Home.TabStop = false;
			this.gpbRemind_Home.Text = "今日提醒";
			// 
			// panel1
			// 
			this.panel1.Controls.Add(this.lstNotification);
			this.panel1.Dock = System.Windows.Forms.DockStyle.Fill;
			this.panel1.DockPadding.All = 10;
			this.panel1.Location = new System.Drawing.Point(3, 17);
			this.panel1.Name = "panel1";
			this.panel1.Size = new System.Drawing.Size(354, 352);
			this.panel1.TabIndex = 0;
			// 
			// lstNotification
			// 
			this.lstNotification.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 
				| System.Windows.Forms.AnchorStyles.Left) 
				| System.Windows.Forms.AnchorStyles.Right)));
			this.lstNotification.BackColor = System.Drawing.Color.FromArgb(((System.Byte)(216)), ((System.Byte)(228)), ((System.Byte)(248)));
			this.lstNotification.BorderStyle = System.Windows.Forms.BorderStyle.None;
			this.lstNotification.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] {
																							  this.clMainNotify});
			this.lstNotification.HeaderStyle = System.Windows.Forms.ColumnHeaderStyle.None;
			this.lstNotification.Location = new System.Drawing.Point(10, 10);
			this.lstNotification.MultiSelect = false;
			this.lstNotification.Name = "lstNotification";
			this.lstNotification.Size = new System.Drawing.Size(334, 332);
			this.lstNotification.TabIndex = 0;
			this.lstNotification.View = System.Windows.Forms.View.Details;
			// 
			// pnlTop_Home
			// 
			this.pnlTop_Home.Controls.Add(this.lblWelcome_Home);
			this.pnlTop_Home.Controls.Add(this.lblToday_Home);
			this.pnlTop_Home.Dock = System.Windows.Forms.DockStyle.Top;
			this.pnlTop_Home.Location = new System.Drawing.Point(0, 0);
			this.pnlTop_Home.Name = "pnlTop_Home";
			this.pnlTop_Home.Size = new System.Drawing.Size(664, 55);
			this.pnlTop_Home.TabIndex = 6;
			// 
			// lblWelcome_Home
			// 
			this.lblWelcome_Home.AutoSize = true;
			this.lblWelcome_Home.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(134)));
			this.lblWelcome_Home.Location = new System.Drawing.Point(16, 24);
			this.lblWelcome_Home.Name = "lblWelcome_Home";
			this.lblWelcome_Home.Size = new System.Drawing.Size(72, 22);
			this.lblWelcome_Home.TabIndex = 1;
			this.lblWelcome_Home.Text = "欢迎您，";
			// 
			// lblToday_Home
			// 
			this.lblToday_Home.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
			this.lblToday_Home.AutoSize = true;
			this.lblToday_Home.Font = new System.Drawing.Font("宋体", 24F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((System.Byte)(134)));
			this.lblToday_Home.Location = new System.Drawing.Point(576, 8);
			this.lblToday_Home.Name = "lblToday_Home";
			this.lblToday_Home.Size = new System.Drawing.Size(77, 40);
			this.lblToday_Home.TabIndex = 0;
			this.lblToday_Home.Text = "今日";
			this.lblToday_Home.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
			// 
			// pnlSearchResult
			// 
			this.pnlSearchResult.Controls.Add(this.pnlFill_SearchResult);
			this.pnlSearchResult.Controls.Add(this.splitter2);
			this.pnlSearchResult.Controls.Add(this.pnlBottom_SearchResult);
			this.pnlSearchResult.Controls.Add(this.pnlTop_SearchResult);
			this.pnlSearchResult.Dock = System.Windows.Forms.DockStyle.Fill;
			this.pnlSearchResult.DockPadding.Bottom = 4;
			this.pnlSearchResult.DockPadding.Right = 4;
			this.pnlSearchResult.Location = new System.Drawing.Point(212, 84);
			this.pnlSearchResult.Name = "pnlSearchResult";
			this.pnlSearchResult.Size = new System.Drawing.Size(664, 427);
			this.pnlSearchResult.TabIndex = 46;
			this.pnlSearchResult.Visible = false;
			// 
			// pnlFill_SearchResult
			// 
			this.pnlFill_SearchResult.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
			this.pnlFill_SearchResult.Controls.Add(this.dgSearchResult);
			this.pnlFill_SearchResult.Dock = System.Windows.Forms.DockStyle.Fill;
			this.pnlFill_SearchResult.Location = new System.Drawing.Point(0, 28);
			this.pnlFill_SearchResult.Name = "pnlFill_SearchResult";
			this.pnlFill_SearchResult.Size = new System.Drawing.Size(660, 167);
			this.pnlFill_SearchResult.TabIndex = 12;
			// 
			// dgSearchResult
			// 
			this.dgSearchResult.BackgroundColor = System.Drawing.SystemColors.Window;
			this.dgSearchResult.BorderStyle = System.Windows.Forms.BorderStyle.None;
			this.dgSearchResult.CaptionVisible = false;
			this.dgSearchResult.DataMember = "";
			this.dgSearchResult.Dock = System.Windows.Forms.DockStyle.Fill;
			this.dgSearchResult.FlatMode = true;
			this.dgSearchResult.HeaderForeColor = System.Drawing.SystemColors.ControlText;
			this.dgSearchResult.Location = new System.Drawing.Point(0, 0);
			this.dgSearchResult.Name = "dgSearchResult";
			this.dgSearchResult.ReadOnly = true;
			this.dgSearchResult.Size = new System.Drawing.Size(658, 165);
			this.dgSearchResult.TabIndex = 13;
			this.dgSearchResult.MouseDown += new System.Windows.Forms.MouseEventHandler(this.dgSearchResult_MouseDown);
			this.dgSearchResult.DoubleClick += new System.EventHandler(this.dgSearchResult_DoubleClick);
			this.dgSearchResult.CurrentCellChanged += new System.EventHandler(this.dgSearchResult_CurrentCellChanged);
			// 
			// splitter2
			// 
			this.splitter2.Dock = System.Windows.Forms.DockStyle.Bottom;
			this.splitter2.Location = new System.Drawing.Point(0, 195);
			this.splitter2.Name = "splitter2";
			this.splitter2.Size = new System.Drawing.Size(660, 4);
			this.splitter2.TabIndex = 11;
			this.splitter2.TabStop = false;
			// 
			// pnlBottom_SearchResult
			// 
			this.pnlBottom_SearchResult.Controls.Add(this.pnlShareDetail_SearchResult);
			this.pnlBottom_SearchResult.Controls.Add(this.pnlUserDetail_SearchResult);
			this.pnlBottom_SearchResult.Controls.Add(this.pnlMessageDetail_SearchResult);
			this.pnlBottom_SearchResult.Controls.Add(this.pnlBookDetail_SearchResult);
			this.pnlBottom_SearchResult.Dock = System.Windows.Forms.DockStyle.Bottom;
			this.pnlBottom_SearchResult.Location = new System.Drawing.Point(0, 199);
			this.pnlBottom_SearchResult.Name = "pnlBottom_SearchResult";
			this.pnlBottom_SearchResult.Size = new System.Drawing.Size(660, 224);
			this.pnlBottom_SearchResult.TabIndex = 10;
			// 
			// pnlShareDetail_SearchResult
			// 
			this.pnlShareDetail_SearchResult.BackColor = System.Drawing.SystemColors.Control;
			this.pnlShareDetail_SearchResult.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
			this.pnlShareDetail_SearchResult.Controls.Add(this.pbxDepreciation_ShareInfo);
			this.pnlShareDetail_SearchResult.Controls.Add(this.llbShareFrom_ShareInfo);
			this.pnlShareDetail_SearchResult.Controls.Add(this.llbShareTo_ShareInfo);
			this.pnlShareDetail_SearchResult.Controls.Add(this.label27);
			this.pnlShareDetail_SearchResult.Controls.Add(this.label28);
			this.pnlShareDetail_SearchResult.Controls.Add(this.label29);
			this.pnlShareDetail_SearchResult.Controls.Add(this.label30);
			this.pnlShareDetail_SearchResult.Controls.Add(this.label31);
			this.pnlShareDetail_SearchResult.Controls.Add(this.lblBookNameEng_ShareInfo);
			this.pnlShareDetail_SearchResult.Controls.Add(this.label21);
			this.pnlShareDetail_SearchResult.Controls.Add(this.label22);
			this.pnlShareDetail_SearchResult.Controls.Add(this.lblBookNameChn_ShareInfo);
			this.pnlShareDetail_SearchResult.Controls.Add(this.label26);
			this.pnlShareDetail_SearchResult.Controls.Add(this.lblPlanStartDate_ShareInfo);
			this.pnlShareDetail_SearchResult.Controls.Add(this.lblActualStartDate_ShareInfo);
			this.pnlShareDetail_SearchResult.Controls.Add(this.lblPlanEndDate_ShareInfo);
			this.pnlShareDetail_SearchResult.Controls.Add(this.lblActualEndDate_ShareInfo);
			this.pnlShareDetail_SearchResult.Controls.Add(this.label40);
			this.pnlShareDetail_SearchResult.Dock = System.Windows.Forms.DockStyle.Fill;
			this.pnlShareDetail_SearchResult.Location = new System.Drawing.Point(0, 0);
			this.pnlShareDetail_SearchResult.Name = "pnlShareDetail_SearchResult";
			this.pnlShareDetail_SearchResult.Size = new System.Drawing.Size(660, 224);
			this.pnlShareDetail_SearchResult.TabIndex = 5;
			this.pnlShareDetail_SearchResult.Visible = false;
			// 
			// pbxDepreciation_ShareInfo
			// 
			this.pbxDepreciation_ShareInfo.Location = new System.Drawing.Point(112, 130);
			this.pbxDepreciation_ShareInfo.Name = "pbxDepreciation_ShareInfo";
			this.pbxDepreciation_ShareInfo.Size = new System.Drawing.Size(64, 12);
			this.pbxDepreciation_ShareInfo.TabIndex = 116;
			this.pbxDepreciation_ShareInfo.TabStop = false;
			// 
			// llbShareFrom_ShareInfo
			// 
			this.llbShareFrom_ShareInfo.Location = new System.Drawing.Point(408, 56);
			this.llbShareFrom_ShareInfo.Name = "llbShareFrom_ShareInfo";
			this.llbShareFrom_ShareInfo.Size = new System.Drawing.Size(184, 16);
			this.llbShareFrom_ShareInfo.TabIndex = 115;
			this.llbShareFrom_ShareInfo.TabStop = true;
			this.llbShareFrom_ShareInfo.Text = "llbShareFrom_ShareInfo";
			this.llbShareFrom_ShareInfo.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
			// 
			// llbShareTo_ShareInfo
			// 
			this.llbShareTo_ShareInfo.Location = new System.Drawing.Point(112, 56);
			this.llbShareTo_ShareInfo.Name = "llbShareTo_ShareInfo";
			this.llbShareTo_ShareInfo.Size = new System.Drawing.Size(184, 16);
			this.llbShareTo_ShareInfo.TabIndex = 114;
			this.llbShareTo_ShareInfo.TabStop = true;
			this.llbShareTo_ShareInfo.Text = "llbShareTo_ShareInfo";
			this.llbShareTo_ShareInfo.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
			// 
			// label27
			// 
			this.label27.FlatStyle = System.Windows.Forms.FlatStyle.System;
			this.label27.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((System.Byte)(134)));
			this.label27.Location = new System.Drawing.Point(8, 104);
			this.label27.Name = "label27";
			this.label27.Size = new System.Drawing.Size(92, 17);
			this.label27.TabIndex = 113;
			this.label27.Text = "实际开始时间:";
			this.label27.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
			// 
			// label28
			// 
			this.label28.FlatStyle = System.Windows.Forms.FlatStyle.System;
			this.label28.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((System.Byte)(134)));
			this.label28.Location = new System.Drawing.Point(304, 104);
			this.label28.Name = "label28";
			this.label28.Size = new System.Drawing.Size(92, 17);
			this.label28.TabIndex = 112;
			this.label28.Text = "实际结束时间:";
			this.label28.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
			// 
			// label29
			// 
			this.label29.FlatStyle = System.Windows.Forms.FlatStyle.System;
			this.label29.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((System.Byte)(134)));
			this.label29.Location = new System.Drawing.Point(8, 56);
			this.label29.Name = "label29";
			this.label29.Size = new System.Drawing.Size(60, 17);
			this.label29.TabIndex = 107;
			this.label29.Text = "借书者:";
			this.label29.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
			// 
			// label30
			// 
			this.label30.FlatStyle = System.Windows.Forms.FlatStyle.System;
			this.label30.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((System.Byte)(134)));
			this.label30.Location = new System.Drawing.Point(8, 80);
			this.label30.Name = "label30";
			this.label30.Size = new System.Drawing.Size(92, 17);
			this.label30.TabIndex = 108;
			this.label30.Text = "计划开始时间:";
			this.label30.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
			// 
			// label31
			// 
			this.label31.FlatStyle = System.Windows.Forms.FlatStyle.System;
			this.label31.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((System.Byte)(134)));
			this.label31.Location = new System.Drawing.Point(304, 80);
			this.label31.Name = "label31";
			this.label31.Size = new System.Drawing.Size(92, 17);
			this.label31.TabIndex = 109;
			this.label31.Text = "计划结束时间:";
			this.label31.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
			// 
			// lblBookNameEng_ShareInfo
			// 
			this.lblBookNameEng_ShareInfo.FlatStyle = System.Windows.Forms.FlatStyle.System;
			this.lblBookNameEng_ShareInfo.Location = new System.Drawing.Point(112, 32);
			this.lblBookNameEng_ShareInfo.Name = "lblBookNameEng_ShareInfo";
			this.lblBookNameEng_ShareInfo.Size = new System.Drawing.Size(480, 16);
			this.lblBookNameEng_ShareInfo.TabIndex = 101;
			this.lblBookNameEng_ShareInfo.Text = "lblBookNameEng_ShareInfo";
			this.lblBookNameEng_ShareInfo.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
			// 
			// label21
			// 
			this.label21.FlatStyle = System.Windows.Forms.FlatStyle.System;
			this.label21.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((System.Byte)(134)));
			this.label21.Location = new System.Drawing.Point(8, 8);
			this.label21.Name = "label21";
			this.label21.Size = new System.Drawing.Size(64, 17);
			this.label21.TabIndex = 100;
			this.label21.Text = "中文书名:";
			this.label21.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
			// 
			// label22
			// 
			this.label22.FlatStyle = System.Windows.Forms.FlatStyle.System;
			this.label22.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((System.Byte)(134)));
			this.label22.Location = new System.Drawing.Point(8, 32);
			this.label22.Name = "label22";
			this.label22.Size = new System.Drawing.Size(60, 17);
			this.label22.TabIndex = 103;
			this.label22.Text = "英文书名:";
			this.label22.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
			// 
			// lblBookNameChn_ShareInfo
			// 
			this.lblBookNameChn_ShareInfo.FlatStyle = System.Windows.Forms.FlatStyle.System;
			this.lblBookNameChn_ShareInfo.Location = new System.Drawing.Point(112, 8);
			this.lblBookNameChn_ShareInfo.Name = "lblBookNameChn_ShareInfo";
			this.lblBookNameChn_ShareInfo.Size = new System.Drawing.Size(480, 16);
			this.lblBookNameChn_ShareInfo.TabIndex = 102;
			this.lblBookNameChn_ShareInfo.Text = "lblBookNameChn_ShareInfo";
			this.lblBookNameChn_ShareInfo.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
			// 
			// label26
			// 
			this.label26.FlatStyle = System.Windows.Forms.FlatStyle.System;
			this.label26.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((System.Byte)(134)));
			this.label26.Location = new System.Drawing.Point(8, 128);
			this.label26.Name = "label26";
			this.label26.Size = new System.Drawing.Size(92, 17);
			this.label26.TabIndex = 104;
			this.label26.Text = "折旧程度:";
			this.label26.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
			// 
			// lblPlanStartDate_ShareInfo
			// 
			this.lblPlanStartDate_ShareInfo.FlatStyle = System.Windows.Forms.FlatStyle.System;
			this.lblPlanStartDate_ShareInfo.Location = new System.Drawing.Point(112, 80);
			this.lblPlanStartDate_ShareInfo.Name = "lblPlanStartDate_ShareInfo";
			this.lblPlanStartDate_ShareInfo.Size = new System.Drawing.Size(184, 16);
			this.lblPlanStartDate_ShareInfo.TabIndex = 106;
			this.lblPlanStartDate_ShareInfo.Text = "lblPlanStartDate_ShareInfo";
			this.lblPlanStartDate_ShareInfo.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
			// 
			// lblActualStartDate_ShareInfo
			// 
			this.lblActualStartDate_ShareInfo.FlatStyle = System.Windows.Forms.FlatStyle.System;
			this.lblActualStartDate_ShareInfo.Location = new System.Drawing.Point(112, 104);
			this.lblActualStartDate_ShareInfo.Name = "lblActualStartDate_ShareInfo";
			this.lblActualStartDate_ShareInfo.Size = new System.Drawing.Size(184, 16);
			this.lblActualStartDate_ShareInfo.TabIndex = 106;
			this.lblActualStartDate_ShareInfo.Text = "lblActualStartDate_ShareInfo";
			this.lblActualStartDate_ShareInfo.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
			// 
			// lblPlanEndDate_ShareInfo
			// 
			this.lblPlanEndDate_ShareInfo.FlatStyle = System.Windows.Forms.FlatStyle.System;
			this.lblPlanEndDate_ShareInfo.Location = new System.Drawing.Point(408, 80);
			this.lblPlanEndDate_ShareInfo.Name = "lblPlanEndDate_ShareInfo";
			this.lblPlanEndDate_ShareInfo.Size = new System.Drawing.Size(184, 16);
			this.lblPlanEndDate_ShareInfo.TabIndex = 106;
			this.lblPlanEndDate_ShareInfo.Text = "lblPlanEndDate_ShareInfo";
			this.lblPlanEndDate_ShareInfo.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
			// 
			// lblActualEndDate_ShareInfo
			// 
			this.lblActualEndDate_ShareInfo.FlatStyle = System.Windows.Forms.FlatStyle.System;
			this.lblActualEndDate_ShareInfo.Location = new System.Drawing.Point(408, 104);
			this.lblActualEndDate_ShareInfo.Name = "lblActualEndDate_ShareInfo";
			this.lblActualEndDate_ShareInfo.Size = new System.Drawing.Size(184, 16);
			this.lblActualEndDate_ShareInfo.TabIndex = 106;
			this.lblActualEndDate_ShareInfo.Text = "lblActualEndDate_ShareInfo";
			this.lblActualEndDate_ShareInfo.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
			// 
			// label40
			// 
			this.label40.FlatStyle = System.Windows.Forms.FlatStyle.System;
			this.label40.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((System.Byte)(134)));
			this.label40.Location = new System.Drawing.Point(304, 56);
			this.label40.Name = "label40";
			this.label40.Size = new System.Drawing.Size(60, 17);
			this.label40.TabIndex = 107;
			this.label40.Text = "拥有者:";
			this.label40.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
			// 
			// pnlUserDetail_SearchResult
			// 
			this.pnlUserDetail_SearchResult.BackColor = System.Drawing.SystemColors.Control;
			this.pnlUserDetail_SearchResult.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
			this.pnlUserDetail_SearchResult.Controls.Add(this.label2);
			this.pnlUserDetail_SearchResult.Controls.Add(this.lblCompany_UserDetail);
			this.pnlUserDetail_SearchResult.Controls.Add(this.lblRealName_UserDetail);
			this.pnlUserDetail_SearchResult.Controls.Add(this.lblUserName_UserDetail);
			this.pnlUserDetail_SearchResult.Controls.Add(this.lblAddress_UserDetail);
			this.pnlUserDetail_SearchResult.Controls.Add(this.lblCompanyAddress_UserDetail);
			this.pnlUserDetail_SearchResult.Controls.Add(this.lblHomePhone_UserDetail);
			this.pnlUserDetail_SearchResult.Controls.Add(this.lblWorkPhone_UserDetail);
			this.pnlUserDetail_SearchResult.Controls.Add(this.lblMobilePhone_UserDetail);
			this.pnlUserDetail_SearchResult.Controls.Add(this.lblEmail_UserDetail);
			this.pnlUserDetail_SearchResult.Controls.Add(this.pbxCredit_UserDetail);
			this.pnlUserDetail_SearchResult.Controls.Add(this.label10);
			this.pnlUserDetail_SearchResult.Controls.Add(this.label9);
			this.pnlUserDetail_SearchResult.Controls.Add(this.label8);
			this.pnlUserDetail_SearchResult.Controls.Add(this.label4);
			this.pnlUserDetail_SearchResult.Controls.Add(this.label7);
			this.pnlUserDetail_SearchResult.Controls.Add(this.label6);
			this.pnlUserDetail_SearchResult.Controls.Add(this.label5);
			this.pnlUserDetail_SearchResult.Controls.Add(this.label3);
			this.pnlUserDetail_SearchResult.Controls.Add(this.label1);
			this.pnlUserDetail_SearchResult.Dock = System.Windows.Forms.DockStyle.Fill;
			this.pnlUserDetail_SearchResult.Location = new System.Drawing.Point(0, 0);
			this.pnlUserDetail_SearchResult.Name = "pnlUserDetail_SearchResult";
			this.pnlUserDetail_SearchResult.Size = new System.Drawing.Size(660, 224);
			this.pnlUserDetail_SearchResult.TabIndex = 5;
			this.pnlUserDetail_SearchResult.Visible = false;
			// 
			// label2
			// 
			this.label2.FlatStyle = System.Windows.Forms.FlatStyle.System;
			this.label2.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((System.Byte)(134)));
			this.label2.Location = new System.Drawing.Point(8, 48);
			this.label2.Name = "label2";
			this.label2.Size = new System.Drawing.Size(60, 17);
			this.label2.TabIndex = 3;
			this.label2.Text = "移动电话:";
			this.label2.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
			// 
			// lblCompany_UserDetail
			// 
			this.lblCompany_UserDetail.FlatStyle = System.Windows.Forms.FlatStyle.System;
			this.lblCompany_UserDetail.Location = new System.Drawing.Point(72, 112);
			this.lblCompany_UserDetail.Name = "lblCompany_UserDetail";
			this.lblCompany_UserDetail.Size = new System.Drawing.Size(136, 16);
			this.lblCompany_UserDetail.TabIndex = 34;
			this.lblCompany_UserDetail.Text = "Company";
			this.lblCompany_UserDetail.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
			// 
			// lblRealName_UserDetail
			// 
			this.lblRealName_UserDetail.FlatStyle = System.Windows.Forms.FlatStyle.System;
			this.lblRealName_UserDetail.Location = new System.Drawing.Point(72, 32);
			this.lblRealName_UserDetail.Name = "lblRealName_UserDetail";
			this.lblRealName_UserDetail.Size = new System.Drawing.Size(136, 16);
			this.lblRealName_UserDetail.TabIndex = 33;
			this.lblRealName_UserDetail.Text = "RealName";
			this.lblRealName_UserDetail.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
			// 
			// lblUserName_UserDetail
			// 
			this.lblUserName_UserDetail.FlatStyle = System.Windows.Forms.FlatStyle.System;
			this.lblUserName_UserDetail.Location = new System.Drawing.Point(72, 8);
			this.lblUserName_UserDetail.Name = "lblUserName_UserDetail";
			this.lblUserName_UserDetail.Size = new System.Drawing.Size(136, 16);
			this.lblUserName_UserDetail.TabIndex = 32;
			this.lblUserName_UserDetail.Text = "UserName";
			this.lblUserName_UserDetail.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
			// 
			// lblAddress_UserDetail
			// 
			this.lblAddress_UserDetail.FlatStyle = System.Windows.Forms.FlatStyle.System;
			this.lblAddress_UserDetail.Location = new System.Drawing.Point(72, 72);
			this.lblAddress_UserDetail.Name = "lblAddress_UserDetail";
			this.lblAddress_UserDetail.Size = new System.Drawing.Size(528, 16);
			this.lblAddress_UserDetail.TabIndex = 31;
			this.lblAddress_UserDetail.Text = "Address";
			this.lblAddress_UserDetail.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
			// 
			// lblCompanyAddress_UserDetail
			// 
			this.lblCompanyAddress_UserDetail.FlatStyle = System.Windows.Forms.FlatStyle.System;
			this.lblCompanyAddress_UserDetail.Location = new System.Drawing.Point(72, 128);
			this.lblCompanyAddress_UserDetail.Name = "lblCompanyAddress_UserDetail";
			this.lblCompanyAddress_UserDetail.Size = new System.Drawing.Size(528, 16);
			this.lblCompanyAddress_UserDetail.TabIndex = 30;
			this.lblCompanyAddress_UserDetail.Text = "CompanyAddress";
			this.lblCompanyAddress_UserDetail.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
			// 
			// lblHomePhone_UserDetail
			// 
			this.lblHomePhone_UserDetail.FlatStyle = System.Windows.Forms.FlatStyle.System;
			this.lblHomePhone_UserDetail.Location = new System.Drawing.Point(72, 88);
			this.lblHomePhone_UserDetail.Name = "lblHomePhone_UserDetail";
			this.lblHomePhone_UserDetail.Size = new System.Drawing.Size(224, 16);
			this.lblHomePhone_UserDetail.TabIndex = 29;
			this.lblHomePhone_UserDetail.Text = "HomePhone";
			this.lblHomePhone_UserDetail.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
			// 
			// lblWorkPhone_UserDetail
			// 
			this.lblWorkPhone_UserDetail.FlatStyle = System.Windows.Forms.FlatStyle.System;
			this.lblWorkPhone_UserDetail.Location = new System.Drawing.Point(72, 144);
			this.lblWorkPhone_UserDetail.Name = "lblWorkPhone_UserDetail";
			this.lblWorkPhone_UserDetail.Size = new System.Drawing.Size(224, 16);
			this.lblWorkPhone_UserDetail.TabIndex = 28;
			this.lblWorkPhone_UserDetail.Text = "WorkPhone";
			this.lblWorkPhone_UserDetail.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
			// 
			// lblMobilePhone_UserDetail
			// 
			this.lblMobilePhone_UserDetail.FlatStyle = System.Windows.Forms.FlatStyle.System;
			this.lblMobilePhone_UserDetail.Location = new System.Drawing.Point(72, 48);
			this.lblMobilePhone_UserDetail.Name = "lblMobilePhone_UserDetail";
			this.lblMobilePhone_UserDetail.Size = new System.Drawing.Size(232, 16);
			this.lblMobilePhone_UserDetail.TabIndex = 27;
			this.lblMobilePhone_UserDetail.Text = "MobilePhone";
			this.lblMobilePhone_UserDetail.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
			// 
			// lblEmail_UserDetail
			// 
			this.lblEmail_UserDetail.FlatStyle = System.Windows.Forms.FlatStyle.System;
			this.lblEmail_UserDetail.Location = new System.Drawing.Point(376, 48);
			this.lblEmail_UserDetail.Name = "lblEmail_UserDetail";
			this.lblEmail_UserDetail.Size = new System.Drawing.Size(224, 16);
			this.lblEmail_UserDetail.TabIndex = 26;
			this.lblEmail_UserDetail.Text = "Email";
			this.lblEmail_UserDetail.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
			// 
			// pbxCredit_UserDetail
			// 
			this.pbxCredit_UserDetail.Location = new System.Drawing.Point(368, 8);
			this.pbxCredit_UserDetail.Name = "pbxCredit_UserDetail";
			this.pbxCredit_UserDetail.Size = new System.Drawing.Size(64, 12);
			this.pbxCredit_UserDetail.TabIndex = 25;
			this.pbxCredit_UserDetail.TabStop = false;
			// 
			// label10
			// 
			this.label10.FlatStyle = System.Windows.Forms.FlatStyle.System;
			this.label10.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((System.Byte)(134)));
			this.label10.Location = new System.Drawing.Point(312, 8);
			this.label10.Name = "label10";
			this.label10.Size = new System.Drawing.Size(48, 17);
			this.label10.TabIndex = 12;
			this.label10.Text = "信用度:";
			this.label10.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
			// 
			// label9
			// 
			this.label9.FlatStyle = System.Windows.Forms.FlatStyle.System;
			this.label9.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((System.Byte)(134)));
			this.label9.Location = new System.Drawing.Point(8, 128);
			this.label9.Name = "label9";
			this.label9.Size = new System.Drawing.Size(60, 17);
			this.label9.TabIndex = 11;
			this.label9.Text = "公司地址:";
			this.label9.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
			// 
			// label8
			// 
			this.label8.FlatStyle = System.Windows.Forms.FlatStyle.System;
			this.label8.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((System.Byte)(134)));
			this.label8.Location = new System.Drawing.Point(8, 112);
			this.label8.Name = "label8";
			this.label8.Size = new System.Drawing.Size(48, 17);
			this.label8.TabIndex = 10;
			this.label8.Text = "公司:";
			this.label8.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
			// 
			// label4
			// 
			this.label4.FlatStyle = System.Windows.Forms.FlatStyle.System;
			this.label4.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((System.Byte)(134)));
			this.label4.Location = new System.Drawing.Point(312, 48);
			this.label4.Name = "label4";
			this.label4.Size = new System.Drawing.Size(60, 17);
			this.label4.TabIndex = 9;
			this.label4.Text = "电子邮件:";
			this.label4.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
			// 
			// label7
			// 
			this.label7.FlatStyle = System.Windows.Forms.FlatStyle.System;
			this.label7.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((System.Byte)(134)));
			this.label7.Location = new System.Drawing.Point(8, 144);
			this.label7.Name = "label7";
			this.label7.Size = new System.Drawing.Size(60, 17);
			this.label7.TabIndex = 7;
			this.label7.Text = "工作电话:";
			this.label7.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
			// 
			// label6
			// 
			this.label6.FlatStyle = System.Windows.Forms.FlatStyle.System;
			this.label6.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((System.Byte)(134)));
			this.label6.Location = new System.Drawing.Point(8, 88);
			this.label6.Name = "label6";
			this.label6.Size = new System.Drawing.Size(60, 17);
			this.label6.TabIndex = 6;
			this.label6.Text = "家庭电话:";
			this.label6.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
			// 
			// label5
			// 
			this.label5.FlatStyle = System.Windows.Forms.FlatStyle.System;
			this.label5.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((System.Byte)(134)));
			this.label5.Location = new System.Drawing.Point(8, 72);
			this.label5.Name = "label5";
			this.label5.Size = new System.Drawing.Size(48, 17);
			this.label5.TabIndex = 5;
			this.label5.Text = "地址:";
			this.label5.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
			// 
			// label3
			// 
			this.label3.FlatStyle = System.Windows.Forms.FlatStyle.System;
			this.label3.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((System.Byte)(134)));
			this.label3.Location = new System.Drawing.Point(8, 32);
			this.label3.Name = "label3";
			this.label3.Size = new System.Drawing.Size(60, 17);
			this.label3.TabIndex = 4;
			this.label3.Text = "真实姓名:";
			this.label3.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
			// 
			// label1
			// 
			this.label1.FlatStyle = System.Windows.Forms.FlatStyle.System;
			this.label1.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((System.Byte)(134)));
			this.label1.Location = new System.Drawing.Point(8, 8);
			this.label1.Name = "label1";
			this.label1.Size = new System.Drawing.Size(48, 17);
			this.label1.TabIndex = 0;
			this.label1.Text = "用户名:";
			this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
			// 
			// pnlMessageDetail_SearchResult
			// 
			this.pnlMessageDetail_SearchResult.BackColor = System.Drawing.SystemColors.Control;
			this.pnlMessageDetail_SearchResult.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
			this.pnlMessageDetail_SearchResult.Controls.Add(this.pnlFill_MessageDetail);
			this.pnlMessageDetail_SearchResult.Controls.Add(this.pnlTop_MessageDetail);
			this.pnlMessageDetail_SearchResult.Dock = System.Windows.Forms.DockStyle.Fill;
			this.pnlMessageDetail_SearchResult.Location = new System.Drawing.Point(0, 0);
			this.pnlMessageDetail_SearchResult.Name = "pnlMessageDetail_SearchResult";
			this.pnlMessageDetail_SearchResult.Size = new System.Drawing.Size(660, 224);
			this.pnlMessageDetail_SearchResult.TabIndex = 5;
			this.pnlMessageDetail_SearchResult.Visible = false;
			// 
			// pnlFill_MessageDetail
			// 
			this.pnlFill_MessageDetail.Controls.Add(this.rtbBody_MessageDetail);
			this.pnlFill_MessageDetail.Dock = System.Windows.Forms.DockStyle.Fill;
			this.pnlFill_MessageDetail.DockPadding.All = 4;
			this.pnlFill_MessageDetail.Location = new System.Drawing.Point(0, 56);
			this.pnlFill_MessageDetail.Name = "pnlFill_MessageDetail";
			this.pnlFill_MessageDetail.Size = new System.Drawing.Size(658, 166);
			this.pnlFill_MessageDetail.TabIndex = 52;
			// 
			// rtbBody_MessageDetail
			// 
			this.rtbBody_MessageDetail.BorderStyle = System.Windows.Forms.BorderStyle.None;
			this.rtbBody_MessageDetail.Dock = System.Windows.Forms.DockStyle.Fill;
			this.rtbBody_MessageDetail.Location = new System.Drawing.Point(4, 4);
			this.rtbBody_MessageDetail.Name = "rtbBody_MessageDetail";
			this.rtbBody_MessageDetail.ReadOnly = true;
			this.rtbBody_MessageDetail.Size = new System.Drawing.Size(650, 158);
			this.rtbBody_MessageDetail.TabIndex = 0;
			this.rtbBody_MessageDetail.TabStop = false;
			this.rtbBody_MessageDetail.Text = "";
			// 
			// pnlTop_MessageDetail
			// 
			this.pnlTop_MessageDetail.Controls.Add(this.label15);
			this.pnlTop_MessageDetail.Controls.Add(this.label17);
			this.pnlTop_MessageDetail.Controls.Add(this.lblDate_MessageDetail);
			this.pnlTop_MessageDetail.Controls.Add(this.label19);
			this.pnlTop_MessageDetail.Controls.Add(this.label18);
			this.pnlTop_MessageDetail.Controls.Add(this.lblTitle_MessageDetail);
			this.pnlTop_MessageDetail.Controls.Add(this.lblMessageTo_MessageDetail);
			this.pnlTop_MessageDetail.Controls.Add(this.lblMessageFrom_MessageDetail);
			this.pnlTop_MessageDetail.Dock = System.Windows.Forms.DockStyle.Top;
			this.pnlTop_MessageDetail.Location = new System.Drawing.Point(0, 0);
			this.pnlTop_MessageDetail.Name = "pnlTop_MessageDetail";
			this.pnlTop_MessageDetail.Size = new System.Drawing.Size(658, 56);
			this.pnlTop_MessageDetail.TabIndex = 51;
			// 
			// label15
			// 
			this.label15.FlatStyle = System.Windows.Forms.FlatStyle.System;
			this.label15.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((System.Byte)(134)));
			this.label15.Location = new System.Drawing.Point(8, 40);
			this.label15.Name = "label15";
			this.label15.Size = new System.Drawing.Size(60, 17);
			this.label15.TabIndex = 50;
			this.label15.Text = "标题:";
			this.label15.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
			// 
			// label17
			// 
			this.label17.FlatStyle = System.Windows.Forms.FlatStyle.System;
			this.label17.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((System.Byte)(134)));
			this.label17.Location = new System.Drawing.Point(8, 24);
			this.label17.Name = "label17";
			this.label17.Size = new System.Drawing.Size(60, 17);
			this.label17.TabIndex = 43;
			this.label17.Text = "收件人:";
			this.label17.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
			// 
			// lblDate_MessageDetail
			// 
			this.lblDate_MessageDetail.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
			this.lblDate_MessageDetail.FlatStyle = System.Windows.Forms.FlatStyle.System;
			this.lblDate_MessageDetail.Location = new System.Drawing.Point(464, 8);
			this.lblDate_MessageDetail.Name = "lblDate_MessageDetail";
			this.lblDate_MessageDetail.Size = new System.Drawing.Size(184, 16);
			this.lblDate_MessageDetail.TabIndex = 44;
			this.lblDate_MessageDetail.Text = "lblDate_MessageDetail";
			this.lblDate_MessageDetail.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
			// 
			// label19
			// 
			this.label19.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
			this.label19.FlatStyle = System.Windows.Forms.FlatStyle.System;
			this.label19.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((System.Byte)(134)));
			this.label19.Location = new System.Drawing.Point(384, 8);
			this.label19.Name = "label19";
			this.label19.Size = new System.Drawing.Size(64, 17);
			this.label19.TabIndex = 49;
			this.label19.Text = "发送时间:";
			this.label19.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
			// 
			// label18
			// 
			this.label18.FlatStyle = System.Windows.Forms.FlatStyle.System;
			this.label18.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((System.Byte)(134)));
			this.label18.Location = new System.Drawing.Point(8, 8);
			this.label18.Name = "label18";
			this.label18.Size = new System.Drawing.Size(48, 17);
			this.label18.TabIndex = 42;
			this.label18.Text = "发件人:";
			this.label18.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
			// 
			// lblTitle_MessageDetail
			// 
			this.lblTitle_MessageDetail.FlatStyle = System.Windows.Forms.FlatStyle.System;
			this.lblTitle_MessageDetail.Location = new System.Drawing.Point(72, 40);
			this.lblTitle_MessageDetail.Name = "lblTitle_MessageDetail";
			this.lblTitle_MessageDetail.Size = new System.Drawing.Size(576, 16);
			this.lblTitle_MessageDetail.TabIndex = 45;
			this.lblTitle_MessageDetail.Text = "lblTitle_MessageDetail";
			this.lblTitle_MessageDetail.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
			// 
			// lblMessageTo_MessageDetail
			// 
			this.lblMessageTo_MessageDetail.FlatStyle = System.Windows.Forms.FlatStyle.System;
			this.lblMessageTo_MessageDetail.Location = new System.Drawing.Point(72, 24);
			this.lblMessageTo_MessageDetail.Name = "lblMessageTo_MessageDetail";
			this.lblMessageTo_MessageDetail.Size = new System.Drawing.Size(184, 16);
			this.lblMessageTo_MessageDetail.TabIndex = 46;
			this.lblMessageTo_MessageDetail.Text = "lblMessageTo_MessageDetail";
			this.lblMessageTo_MessageDetail.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
			// 
			// lblMessageFrom_MessageDetail
			// 
			this.lblMessageFrom_MessageDetail.FlatStyle = System.Windows.Forms.FlatStyle.System;
			this.lblMessageFrom_MessageDetail.Location = new System.Drawing.Point(72, 8);
			this.lblMessageFrom_MessageDetail.Name = "lblMessageFrom_MessageDetail";
			this.lblMessageFrom_MessageDetail.Size = new System.Drawing.Size(184, 16);
			this.lblMessageFrom_MessageDetail.TabIndex = 47;
			this.lblMessageFrom_MessageDetail.Text = "lblMessageFrom_MessageDetail";
			this.lblMessageFrom_MessageDetail.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
			// 
			// pnlBookDetail_SearchResult
			// 
			this.pnlBookDetail_SearchResult.BackColor = System.Drawing.SystemColors.Control;
			this.pnlBookDetail_SearchResult.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
			this.pnlBookDetail_SearchResult.Controls.Add(this.tbcMain_BookDetail);
			this.pnlBookDetail_SearchResult.Dock = System.Windows.Forms.DockStyle.Fill;
			this.pnlBookDetail_SearchResult.Location = new System.Drawing.Point(0, 0);
			this.pnlBookDetail_SearchResult.Name = "pnlBookDetail_SearchResult";
			this.pnlBookDetail_SearchResult.Size = new System.Drawing.Size(660, 224);
			this.pnlBookDetail_SearchResult.TabIndex = 5;
			this.pnlBookDetail_SearchResult.Visible = false;
			this.pnlBookDetail_SearchResult.VisibleChanged += new System.EventHandler(this.pnlBookDetail_SearchResult_VisibleChanged);
			// 
			// tbcMain_BookDetail
			// 
			this.tbcMain_BookDetail.Controls.Add(this.tbpGeneral_BookDetail);
			this.tbcMain_BookDetail.Controls.Add(this.tbpSummary_BookDetail);
			this.tbcMain_BookDetail.Controls.Add(this.tpIndex_BookDetail);
			this.tbcMain_BookDetail.Dock = System.Windows.Forms.DockStyle.Fill;
			this.tbcMain_BookDetail.Location = new System.Drawing.Point(0, 0);
			this.tbcMain_BookDetail.Name = "tbcMain_BookDetail";
			this.tbcMain_BookDetail.SelectedIndex = 0;
			this.tbcMain_BookDetail.Size = new System.Drawing.Size(658, 222);
			this.tbcMain_BookDetail.TabIndex = 0;
			// 
			// tbpGeneral_BookDetail
			// 
			this.tbpGeneral_BookDetail.Controls.Add(this.label14);
			this.tbpGeneral_BookDetail.Controls.Add(this.llbOwner_BookDetail);
			this.tbpGeneral_BookDetail.Controls.Add(this.label13);
			this.tbpGeneral_BookDetail.Controls.Add(this.pbxCoverPage_BookDetail);
			this.tbpGeneral_BookDetail.Controls.Add(this.button1);
			this.tbpGeneral_BookDetail.Controls.Add(this.label11);
			this.tbpGeneral_BookDetail.Controls.Add(this.lblPress_BookDetail);
			this.tbpGeneral_BookDetail.Controls.Add(this.label23);
			this.tbpGeneral_BookDetail.Controls.Add(this.label24);
			this.tbpGeneral_BookDetail.Controls.Add(this.label25);
			this.tbpGeneral_BookDetail.Controls.Add(this.lblBookNameChn_BookDetail);
			this.tbpGeneral_BookDetail.Controls.Add(this.lblBookNameEng_BookDetail);
			this.tbpGeneral_BookDetail.Controls.Add(this.lblAuthor_BookDetail);
			this.tbpGeneral_BookDetail.Controls.Add(this.lblTranslator_BookDetail);
			this.tbpGeneral_BookDetail.Controls.Add(this.label20);
			this.tbpGeneral_BookDetail.Controls.Add(this.label12);
			this.tbpGeneral_BookDetail.Controls.Add(this.lblISBN_BookDetail);
			this.tbpGeneral_BookDetail.Controls.Add(this.lblStatus_BookDetail);
			this.tbpGeneral_BookDetail.Controls.Add(this.label16);
			this.tbpGeneral_BookDetail.Location = new System.Drawing.Point(4, 21);
			this.tbpGeneral_BookDetail.Name = "tbpGeneral_BookDetail";
			this.tbpGeneral_BookDetail.Size = new System.Drawing.Size(650, 197);
			this.tbpGeneral_BookDetail.TabIndex = 0;
			this.tbpGeneral_BookDetail.Text = "常规";
			// 
			// label14
			// 
			this.label14.Location = new System.Drawing.Point(8, 152);
			this.label14.Name = "label14";
			this.label14.TabIndex = 77;
			this.label14.Text = "相关其他信息:";
			// 
			// llbOwner_BookDetail
			// 
			this.llbOwner_BookDetail.Location = new System.Drawing.Point(192, 124);
			this.llbOwner_BookDetail.Name = "llbOwner_BookDetail";
			this.llbOwner_BookDetail.Size = new System.Drawing.Size(160, 16);
			this.llbOwner_BookDetail.TabIndex = 76;
			this.llbOwner_BookDetail.TabStop = true;
			this.llbOwner_BookDetail.Text = "lblOwner_BookDetail";
			this.llbOwner_BookDetail.LinkClicked += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.llbOwner_BookDetail_LinkClicked);
			// 
			// label13
			// 
			this.label13.FlatStyle = System.Windows.Forms.FlatStyle.System;
			this.label13.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((System.Byte)(134)));
			this.label13.Location = new System.Drawing.Point(128, 124);
			this.label13.Name = "label13";
			this.label13.Size = new System.Drawing.Size(60, 17);
			this.label13.TabIndex = 74;
			this.label13.Text = "所有者:";
			this.label13.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
			// 
			// pbxCoverPage_BookDetail
			// 
			this.pbxCoverPage_BookDetail.Image = ((System.Drawing.Image)(resources.GetObject("pbxCoverPage_BookDetail.Image")));
			this.pbxCoverPage_BookDetail.Location = new System.Drawing.Point(12, 12);
			this.pbxCoverPage_BookDetail.Name = "pbxCoverPage_BookDetail";
			this.pbxCoverPage_BookDetail.Size = new System.Drawing.Size(88, 110);
			this.pbxCoverPage_BookDetail.TabIndex = 72;
			this.pbxCoverPage_BookDetail.TabStop = false;
			// 
			// button1
			// 
			this.button1.Enabled = false;
			this.button1.FlatStyle = System.Windows.Forms.FlatStyle.System;
			this.button1.Image = ((System.Drawing.Image)(resources.GetObject("button1.Image")));
			this.button1.Location = new System.Drawing.Point(4, 4);
			this.button1.Name = "button1";
			this.button1.Size = new System.Drawing.Size(104, 128);
			this.button1.TabIndex = 71;
			// 
			// label11
			// 
			this.label11.FlatStyle = System.Windows.Forms.FlatStyle.System;
			this.label11.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((System.Byte)(134)));
			this.label11.Location = new System.Drawing.Point(128, 84);
			this.label11.Name = "label11";
			this.label11.Size = new System.Drawing.Size(60, 17);
			this.label11.TabIndex = 68;
			this.label11.Text = "出版社:";
			this.label11.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
			// 
			// lblPress_BookDetail
			// 
			this.lblPress_BookDetail.FlatStyle = System.Windows.Forms.FlatStyle.System;
			this.lblPress_BookDetail.Location = new System.Drawing.Point(192, 84);
			this.lblPress_BookDetail.Name = "lblPress_BookDetail";
			this.lblPress_BookDetail.Size = new System.Drawing.Size(312, 16);
			this.lblPress_BookDetail.TabIndex = 69;
			this.lblPress_BookDetail.Text = "lblPress_BookDetail";
			this.lblPress_BookDetail.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
			// 
			// label23
			// 
			this.label23.FlatStyle = System.Windows.Forms.FlatStyle.System;
			this.label23.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((System.Byte)(134)));
			this.label23.Location = new System.Drawing.Point(128, 64);
			this.label23.Name = "label23";
			this.label23.Size = new System.Drawing.Size(60, 17);
			this.label23.TabIndex = 60;
			this.label23.Text = "译者:";
			this.label23.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
			// 
			// label24
			// 
			this.label24.FlatStyle = System.Windows.Forms.FlatStyle.System;
			this.label24.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((System.Byte)(134)));
			this.label24.Location = new System.Drawing.Point(128, 44);
			this.label24.Name = "label24";
			this.label24.Size = new System.Drawing.Size(60, 17);
			this.label24.TabIndex = 59;
			this.label24.Text = "作者:";
			this.label24.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
			// 
			// label25
			// 
			this.label25.FlatStyle = System.Windows.Forms.FlatStyle.System;
			this.label25.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((System.Byte)(134)));
			this.label25.Location = new System.Drawing.Point(128, 24);
			this.label25.Name = "label25";
			this.label25.Size = new System.Drawing.Size(60, 17);
			this.label25.TabIndex = 66;
			this.label25.Text = "英文书名:";
			this.label25.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
			// 
			// lblBookNameChn_BookDetail
			// 
			this.lblBookNameChn_BookDetail.FlatStyle = System.Windows.Forms.FlatStyle.System;
			this.lblBookNameChn_BookDetail.Location = new System.Drawing.Point(192, 4);
			this.lblBookNameChn_BookDetail.Name = "lblBookNameChn_BookDetail";
			this.lblBookNameChn_BookDetail.Size = new System.Drawing.Size(312, 16);
			this.lblBookNameChn_BookDetail.TabIndex = 65;
			this.lblBookNameChn_BookDetail.Text = "lblBookNameChn_BookDetail";
			this.lblBookNameChn_BookDetail.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
			// 
			// lblBookNameEng_BookDetail
			// 
			this.lblBookNameEng_BookDetail.FlatStyle = System.Windows.Forms.FlatStyle.System;
			this.lblBookNameEng_BookDetail.Location = new System.Drawing.Point(192, 24);
			this.lblBookNameEng_BookDetail.Name = "lblBookNameEng_BookDetail";
			this.lblBookNameEng_BookDetail.Size = new System.Drawing.Size(312, 16);
			this.lblBookNameEng_BookDetail.TabIndex = 64;
			this.lblBookNameEng_BookDetail.Text = "lblBookNameEng_BookDetail";
			this.lblBookNameEng_BookDetail.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
			// 
			// lblAuthor_BookDetail
			// 
			this.lblAuthor_BookDetail.FlatStyle = System.Windows.Forms.FlatStyle.System;
			this.lblAuthor_BookDetail.Location = new System.Drawing.Point(192, 44);
			this.lblAuthor_BookDetail.Name = "lblAuthor_BookDetail";
			this.lblAuthor_BookDetail.Size = new System.Drawing.Size(312, 16);
			this.lblAuthor_BookDetail.TabIndex = 63;
			this.lblAuthor_BookDetail.Text = "lblAuthor_BookDetail";
			this.lblAuthor_BookDetail.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
			// 
			// lblTranslator_BookDetail
			// 
			this.lblTranslator_BookDetail.FlatStyle = System.Windows.Forms.FlatStyle.System;
			this.lblTranslator_BookDetail.Location = new System.Drawing.Point(192, 64);
			this.lblTranslator_BookDetail.Name = "lblTranslator_BookDetail";
			this.lblTranslator_BookDetail.Size = new System.Drawing.Size(312, 16);
			this.lblTranslator_BookDetail.TabIndex = 62;
			this.lblTranslator_BookDetail.Text = "lblTranslator_BookDetail";
			this.lblTranslator_BookDetail.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
			// 
			// label20
			// 
			this.label20.FlatStyle = System.Windows.Forms.FlatStyle.System;
			this.label20.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((System.Byte)(134)));
			this.label20.Location = new System.Drawing.Point(128, 4);
			this.label20.Name = "label20";
			this.label20.Size = new System.Drawing.Size(64, 17);
			this.label20.TabIndex = 61;
			this.label20.Text = "中文书名:";
			this.label20.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
			// 
			// label12
			// 
			this.label12.FlatStyle = System.Windows.Forms.FlatStyle.System;
			this.label12.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((System.Byte)(134)));
			this.label12.Location = new System.Drawing.Point(128, 104);
			this.label12.Name = "label12";
			this.label12.Size = new System.Drawing.Size(60, 17);
			this.label12.TabIndex = 67;
			this.label12.Text = "ISBN:";
			this.label12.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
			// 
			// lblISBN_BookDetail
			// 
			this.lblISBN_BookDetail.FlatStyle = System.Windows.Forms.FlatStyle.System;
			this.lblISBN_BookDetail.Location = new System.Drawing.Point(192, 104);
			this.lblISBN_BookDetail.Name = "lblISBN_BookDetail";
			this.lblISBN_BookDetail.Size = new System.Drawing.Size(312, 16);
			this.lblISBN_BookDetail.TabIndex = 70;
			this.lblISBN_BookDetail.Text = "lblISBN_BookDetail";
			this.lblISBN_BookDetail.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
			// 
			// lblStatus_BookDetail
			// 
			this.lblStatus_BookDetail.FlatStyle = System.Windows.Forms.FlatStyle.System;
			this.lblStatus_BookDetail.Location = new System.Drawing.Point(424, 124);
			this.lblStatus_BookDetail.Name = "lblStatus_BookDetail";
			this.lblStatus_BookDetail.Size = new System.Drawing.Size(176, 16);
			this.lblStatus_BookDetail.TabIndex = 75;
			this.lblStatus_BookDetail.Text = "lblStatus_BookDetail";
			this.lblStatus_BookDetail.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
			// 
			// label16
			// 
			this.label16.FlatStyle = System.Windows.Forms.FlatStyle.System;
			this.label16.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((System.Byte)(134)));
			this.label16.Location = new System.Drawing.Point(360, 124);
			this.label16.Name = "label16";
			this.label16.Size = new System.Drawing.Size(60, 17);
			this.label16.TabIndex = 73;
			this.label16.Text = "当前状态:";
			this.label16.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
			// 
			// tbpSummary_BookDetail
			// 
			this.tbpSummary_BookDetail.Controls.Add(this.tbxSummary_BookDetail);
			this.tbpSummary_BookDetail.DockPadding.All = 4;
			this.tbpSummary_BookDetail.Location = new System.Drawing.Point(4, 21);
			this.tbpSummary_BookDetail.Name = "tbpSummary_BookDetail";
			this.tbpSummary_BookDetail.Size = new System.Drawing.Size(650, 197);
			this.tbpSummary_BookDetail.TabIndex = 1;
			this.tbpSummary_BookDetail.Text = "摘要";
			// 
			// tbxSummary_BookDetail
			// 
			this.tbxSummary_BookDetail.BackColor = System.Drawing.SystemColors.Window;
			this.tbxSummary_BookDetail.Dock = System.Windows.Forms.DockStyle.Fill;
			this.tbxSummary_BookDetail.Location = new System.Drawing.Point(4, 4);
			this.tbxSummary_BookDetail.Multiline = true;
			this.tbxSummary_BookDetail.Name = "tbxSummary_BookDetail";
			this.tbxSummary_BookDetail.ReadOnly = true;
			this.tbxSummary_BookDetail.Size = new System.Drawing.Size(642, 189);
			this.tbxSummary_BookDetail.TabIndex = 0;
			this.tbxSummary_BookDetail.Text = "";
			// 
			// tpIndex_BookDetail
			// 
			this.tpIndex_BookDetail.Controls.Add(this.tbxIndex_BookDetail);
			this.tpIndex_BookDetail.DockPadding.All = 4;
			this.tpIndex_BookDetail.Location = new System.Drawing.Point(4, 21);
			this.tpIndex_BookDetail.Name = "tpIndex_BookDetail";
			this.tpIndex_BookDetail.Size = new System.Drawing.Size(650, 197);
			this.tpIndex_BookDetail.TabIndex = 2;
			this.tpIndex_BookDetail.Text = "目录";
			// 
			// tbxIndex_BookDetail
			// 
			this.tbxIndex_BookDetail.BackColor = System.Drawing.SystemColors.Window;
			this.tbxIndex_BookDetail.Dock = System.Windows.Forms.DockStyle.Fill;
			this.tbxIndex_BookDetail.Location = new System.Drawing.Point(4, 4);
			this.tbxIndex_BookDetail.Multiline = true;
			this.tbxIndex_BookDetail.Name = "tbxIndex_BookDetail";
			this.tbxIndex_BookDetail.ReadOnly = true;
			this.tbxIndex_BookDetail.Size = new System.Drawing.Size(642, 189);
			this.tbxIndex_BookDetail.TabIndex = 1;
			this.tbxIndex_BookDetail.Text = "";
			// 
			// pnlTop_SearchResult
			// 
			this.pnlTop_SearchResult.BackColor = System.Drawing.Color.FromArgb(((System.Byte)(25)), ((System.Byte)(76)), ((System.Byte)(164)));
			this.pnlTop_SearchResult.Controls.Add(this.lblCaption_SearchResult);
			this.pnlTop_SearchResult.Dock = System.Windows.Forms.DockStyle.Top;
			this.pnlTop_SearchResult.Location = new System.Drawing.Point(0, 0);
			this.pnlTop_SearchResult.Name = "pnlTop_SearchResult";
			this.pnlTop_SearchResult.Size = new System.Drawing.Size(660, 28);
			this.pnlTop_SearchResult.TabIndex = 2;
			// 
			// lblCaption_SearchResult
			// 
			this.lblCaption_SearchResult.AutoSize = true;
			this.lblCaption_SearchResult.FlatStyle = System.Windows.Forms.FlatStyle.System;
			this.lblCaption_SearchResult.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(134)));
			this.lblCaption_SearchResult.ForeColor = System.Drawing.Color.White;
			this.lblCaption_SearchResult.Location = new System.Drawing.Point(8, 8);
			this.lblCaption_SearchResult.Name = "lblCaption_SearchResult";
			this.lblCaption_SearchResult.Size = new System.Drawing.Size(72, 22);
			this.lblCaption_SearchResult.TabIndex = 0;
			this.lblCaption_SearchResult.Text = "搜索结果";
			this.lblCaption_SearchResult.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
			// 
			// pnlAll
			// 
			this.pnlAll.Controls.Add(this.pnlAdvancedSearch);
			this.pnlAll.Controls.Add(this.pnlHome);
			this.pnlAll.Controls.Add(this.pnlSearchResult);
			this.pnlAll.Controls.Add(this.pnlQuickSearch);
			this.pnlAll.Controls.Add(this.splitter1);
			this.pnlAll.Controls.Add(this.xPanderList1);
			this.pnlAll.Controls.Add(this.tbrMain);
			this.pnlAll.Controls.Add(this.stbMain);
			this.pnlAll.Dock = System.Windows.Forms.DockStyle.Fill;
			this.pnlAll.Location = new System.Drawing.Point(0, 0);
			this.pnlAll.Name = "pnlAll";
			this.pnlAll.Size = new System.Drawing.Size(876, 533);
			this.pnlAll.TabIndex = 36;
			this.pnlAll.Visible = false;
			// 
			// pnlLogin
			// 
			this.pnlLogin.BackColor = System.Drawing.Color.RoyalBlue;
			this.pnlLogin.Controls.Add(this.pgbLogin_Login);
			this.pnlLogin.Controls.Add(this.lblError_Login);
			this.pnlLogin.Controls.Add(this.lblPassword_Login);
			this.pnlLogin.Controls.Add(this.lblUserName_Login);
			this.pnlLogin.Controls.Add(this.btnLogin_Login);
			this.pnlLogin.Controls.Add(this.tbxUserName_Login);
			this.pnlLogin.Controls.Add(this.tbxPassword_Login);
			this.pnlLogin.Dock = System.Windows.Forms.DockStyle.Fill;
			this.pnlLogin.Location = new System.Drawing.Point(0, 0);
			this.pnlLogin.Name = "pnlLogin";
			this.pnlLogin.Size = new System.Drawing.Size(876, 533);
			this.pnlLogin.TabIndex = 36;
			// 
			// pgbLogin_Login
			// 
			this.pgbLogin_Login.Location = new System.Drawing.Point(688, 456);
			this.pgbLogin_Login.Name = "pgbLogin_Login";
			this.pgbLogin_Login.Size = new System.Drawing.Size(88, 14);
			this.pgbLogin_Login.TabIndex = 5;
			this.pgbLogin_Login.Visible = false;
			// 
			// lblError_Login
			// 
			this.lblError_Login.AutoSize = true;
			this.lblError_Login.Location = new System.Drawing.Point(362, 264);
			this.lblError_Login.Name = "lblError_Login";
			this.lblError_Login.Size = new System.Drawing.Size(221, 17);
			this.lblError_Login.TabIndex = 4;
			this.lblError_Login.Text = "登录失败，请检查是否按下Caps Lock键";
			this.lblError_Login.Visible = false;
			// 
			// lblPassword_Login
			// 
			this.lblPassword_Login.AutoSize = true;
			this.lblPassword_Login.Location = new System.Drawing.Point(306, 235);
			this.lblPassword_Login.Name = "lblPassword_Login";
			this.lblPassword_Login.Size = new System.Drawing.Size(35, 17);
			this.lblPassword_Login.TabIndex = 3;
			this.lblPassword_Login.Text = "密码:";
			this.lblPassword_Login.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
			// 
			// lblUserName_Login
			// 
			this.lblUserName_Login.AutoSize = true;
			this.lblUserName_Login.Location = new System.Drawing.Point(306, 203);
			this.lblUserName_Login.Name = "lblUserName_Login";
			this.lblUserName_Login.Size = new System.Drawing.Size(48, 17);
			this.lblUserName_Login.TabIndex = 2;
			this.lblUserName_Login.Text = "用户名:";
			this.lblUserName_Login.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
			// 
			// btnLogin_Login
			// 
			this.btnLogin_Login.BackColor = System.Drawing.SystemColors.Control;
			this.btnLogin_Login.Enabled = false;
			this.btnLogin_Login.FlatStyle = System.Windows.Forms.FlatStyle.System;
			this.btnLogin_Login.Location = new System.Drawing.Point(504, 232);
			this.btnLogin_Login.Name = "btnLogin_Login";
			this.btnLogin_Login.Size = new System.Drawing.Size(56, 23);
			this.btnLogin_Login.TabIndex = 1;
			this.btnLogin_Login.Text = "登录";
			this.btnLogin_Login.Click += new System.EventHandler(this.btnLogin_Login_Click);
			// 
			// tbxUserName_Login
			// 
			this.tbxUserName_Login.Location = new System.Drawing.Point(362, 201);
			this.tbxUserName_Login.Name = "tbxUserName_Login";
			this.tbxUserName_Login.Size = new System.Drawing.Size(136, 21);
			this.tbxUserName_Login.TabIndex = 0;
			this.tbxUserName_Login.Text = "";
			this.tbxUserName_Login.TextChanged += new System.EventHandler(this.tbxUserName_Login_TextChanged);
			// 
			// tbxPassword_Login
			// 
			this.tbxPassword_Login.Location = new System.Drawing.Point(362, 233);
			this.tbxPassword_Login.Name = "tbxPassword_Login";
			this.tbxPassword_Login.PasswordChar = '●';
			this.tbxPassword_Login.Size = new System.Drawing.Size(136, 21);
			this.tbxPassword_Login.TabIndex = 0;
			this.tbxPassword_Login.Text = "";
			this.tbxPassword_Login.TextChanged += new System.EventHandler(this.tbxPassword_Login_TextChanged);
			// 
			// sqlDataAdapter1
			// 
			this.sqlDataAdapter1.DeleteCommand = this.sqlDeleteCommand1;
			this.sqlDataAdapter1.InsertCommand = this.sqlInsertCommand1;
			this.sqlDataAdapter1.SelectCommand = this.sqlSelectCommand1;
			this.sqlDataAdapter1.TableMappings.AddRange(new System.Data.Common.DataTableMapping[] {
																									  new System.Data.Common.DataTableMapping("Table", "USER_INFO", new System.Data.Common.DataColumnMapping[] {
																																																				   new System.Data.Common.DataColumnMapping("ID", "ID"),
																																																				   new System.Data.Common.DataColumnMapping("RealName", "RealName"),
																																																				   new System.Data.Common.DataColumnMapping("UserName", "UserName"),
																																																				   new System.Data.Common.DataColumnMapping("Password", "Password"),
																																																				   new System.Data.Common.DataColumnMapping("Address", "Address"),
																																																				   new System.Data.Common.DataColumnMapping("Email", "Email"),
																																																				   new System.Data.Common.DataColumnMapping("MobilePhone", "MobilePhone"),
																																																				   new System.Data.Common.DataColumnMapping("HomePhone", "HomePhone"),
																																																				   new System.Data.Common.DataColumnMapping("WorkPhone", "WorkPhone"),
																																																				   new System.Data.Common.DataColumnMapping("Company", "Company"),
																																																				   new System.Data.Common.DataColumnMapping("CompanyAddress", "CompanyAddress"),
																																																				   new System.Data.Common.DataColumnMapping("Credit", "Credit")})});
			this.sqlDataAdapter1.UpdateCommand = this.sqlUpdateCommand1;
			// 
			// sqlDeleteCommand1
			// 
			this.sqlDeleteCommand1.CommandText = @"DELETE FROM USER_INFO WHERE (ID = @Original_ID) AND (Address = @Original_Address) AND (Company = @Original_Company OR @Original_Company IS NULL AND Company IS NULL) AND (CompanyAddress = @Original_CompanyAddress OR @Original_CompanyAddress IS NULL AND CompanyAddress IS NULL) AND (Credit = @Original_Credit) AND (Email = @Original_Email) AND (HomePhone = @Original_HomePhone OR @Original_HomePhone IS NULL AND HomePhone IS NULL) AND (MobilePhone = @Original_MobilePhone) AND (Password = @Original_Password) AND (RealName = @Original_RealName) AND (UserName = @Original_UserName) AND (WorkPhone = @Original_WorkPhone OR @Original_WorkPhone IS NULL AND WorkPhone IS NULL)";
			this.sqlDeleteCommand1.Connection = this.sqlConnection1;
			this.sqlDeleteCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@Original_ID", System.Data.SqlDbType.Int, 4, System.Data.ParameterDirection.Input, false, ((System.Byte)(0)), ((System.Byte)(0)), "ID", System.Data.DataRowVersion.Original, null));
			this.sqlDeleteCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@Original_Address", System.Data.SqlDbType.NVarChar, 200, System.Data.ParameterDirection.Input, false, ((System.Byte)(0)), ((System.Byte)(0)), "Address", System.Data.DataRowVersion.Original, null));
			this.sqlDeleteCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@Original_Company", System.Data.SqlDbType.NVarChar, 50, System.Data.ParameterDirection.Input, false, ((System.Byte)(0)), ((System.Byte)(0)), "Company", System.Data.DataRowVersion.Original, null));
			this.sqlDeleteCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@Original_CompanyAddress", System.Data.SqlDbType.NVarChar, 200, System.Data.ParameterDirection.Input, false, ((System.Byte)(0)), ((System.Byte)(0)), "CompanyAddress", System.Data.DataRowVersion.Original, null));
			this.sqlDeleteCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@Original_Credit", System.Data.SqlDbType.Int, 4, System.Data.ParameterDirection.Input, false, ((System.Byte)(0)), ((System.Byte)(0)), "Credit", System.Data.DataRowVersion.Original, null));
			this.sqlDeleteCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@Original_Email", System.Data.SqlDbType.NVarChar, 50, System.Data.ParameterDirection.Input, false, ((System.Byte)(0)), ((System.Byte)(0)), "Email", System.Data.DataRowVersion.Original, null));
			this.sqlDeleteCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@Original_HomePhone", System.Data.SqlDbType.NVarChar, 50, System.Data.ParameterDirection.Input, false, ((System.Byte)(0)), ((System.Byte)(0)), "HomePhone", System.Data.DataRowVersion.Original, null));
			this.sqlDeleteCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@Original_MobilePhone", System.Data.SqlDbType.NVarChar, 50, System.Data.ParameterDirection.Input, false, ((System.Byte)(0)), ((System.Byte)(0)), "MobilePhone", System.Data.DataRowVersion.Original, null));
			this.sqlDeleteCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@Original_Password", System.Data.SqlDbType.NVarChar, 50, System.Data.ParameterDirection.Input, false, ((System.Byte)(0)), ((System.Byte)(0)), "Password", System.Data.DataRowVersion.Original, null));
			this.sqlDeleteCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@Original_RealName", System.Data.SqlDbType.NVarChar, 50, System.Data.ParameterDirection.Input, false, ((System.Byte)(0)), ((System.Byte)(0)), "RealName", System.Data.DataRowVersion.Original, null));
			this.sqlDeleteCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@Original_UserName", System.Data.SqlDbType.NVarChar, 50, System.Data.ParameterDirection.Input, false, ((System.Byte)(0)), ((System.Byte)(0)), "UserName", System.Data.DataRowVersion.Original, null));
			this.sqlDeleteCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@Original_WorkPhone", System.Data.SqlDbType.NVarChar, 50, System.Data.ParameterDirection.Input, false, ((System.Byte)(0)), ((System.Byte)(0)), "WorkPhone", System.Data.DataRowVersion.Original, null));
			// 
			// sqlConnection1
			// 
			this.sqlConnection1.ConnectionString = "workstation id=\"HEGARA-LAB\";packet size=4096;user id=sa;data source=\"JEWELRY-LAB\"" +
				";persist security info=True;initial catalog=BSS;password=sql";
			// 
			// sqlInsertCommand1
			// 
			this.sqlInsertCommand1.CommandText = @"INSERT INTO USER_INFO(RealName, UserName, Password, Address, Email, MobilePhone, HomePhone, WorkPhone, Company, CompanyAddress, Credit) VALUES (@RealName, @UserName, @Password, @Address, @Email, @MobilePhone, @HomePhone, @WorkPhone, @Company, @CompanyAddress, @Credit); SELECT ID, RealName, UserName, Password, Address, Email, MobilePhone, HomePhone, WorkPhone, Company, CompanyAddress, Credit FROM USER_INFO WHERE (ID = @@IDENTITY)";
			this.sqlInsertCommand1.Connection = this.sqlConnection1;
			this.sqlInsertCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@RealName", System.Data.SqlDbType.NVarChar, 50, "RealName"));
			this.sqlInsertCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@UserName", System.Data.SqlDbType.NVarChar, 50, "UserName"));
			this.sqlInsertCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@Password", System.Data.SqlDbType.NVarChar, 50, "Password"));
			this.sqlInsertCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@Address", System.Data.SqlDbType.NVarChar, 200, "Address"));
			this.sqlInsertCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@Email", System.Data.SqlDbType.NVarChar, 50, "Email"));
			this.sqlInsertCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@MobilePhone", System.Data.SqlDbType.NVarChar, 50, "MobilePhone"));
			this.sqlInsertCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@HomePhone", System.Data.SqlDbType.NVarChar, 50, "HomePhone"));
			this.sqlInsertCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@WorkPhone", System.Data.SqlDbType.NVarChar, 50, "WorkPhone"));
			this.sqlInsertCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@Company", System.Data.SqlDbType.NVarChar, 50, "Company"));
			this.sqlInsertCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@CompanyAddress", System.Data.SqlDbType.NVarChar, 200, "CompanyAddress"));
			this.sqlInsertCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@Credit", System.Data.SqlDbType.Int, 4, "Credit"));
			// 
			// sqlSelectCommand1
			// 
			this.sqlSelectCommand1.CommandText = "SELECT ID, RealName, UserName, Password, Address, Email, MobilePhone, HomePhone, " +
				"WorkPhone, Company, CompanyAddress, Credit FROM USER_INFO";
			this.sqlSelectCommand1.Connection = this.sqlConnection1;
			// 
			// sqlUpdateCommand1
			// 
			this.sqlUpdateCommand1.CommandText = @"UPDATE USER_INFO SET RealName = @RealName, UserName = @UserName, Password = @Password, Address = @Address, Email = @Email, MobilePhone = @MobilePhone, HomePhone = @HomePhone, WorkPhone = @WorkPhone, Company = @Company, CompanyAddress = @CompanyAddress, Credit = @Credit WHERE (ID = @Original_ID) AND (Address = @Original_Address) AND (Company = @Original_Company OR @Original_Company IS NULL AND Company IS NULL) AND (CompanyAddress = @Original_CompanyAddress OR @Original_CompanyAddress IS NULL AND CompanyAddress IS NULL) AND (Credit = @Original_Credit) AND (Email = @Original_Email) AND (HomePhone = @Original_HomePhone OR @Original_HomePhone IS NULL AND HomePhone IS NULL) AND (MobilePhone = @Original_MobilePhone) AND (Password = @Original_Password) AND (RealName = @Original_RealName) AND (UserName = @Original_UserName) AND (WorkPhone = @Original_WorkPhone OR @Original_WorkPhone IS NULL AND WorkPhone IS NULL); SELECT ID, RealName, UserName, Password, Address, Email, MobilePhone, HomePhone, WorkPhone, Company, CompanyAddress, Credit FROM USER_INFO WHERE (ID = @ID)";
			this.sqlUpdateCommand1.Connection = this.sqlConnection1;
			this.sqlUpdateCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@RealName", System.Data.SqlDbType.NVarChar, 50, "RealName"));
			this.sqlUpdateCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@UserName", System.Data.SqlDbType.NVarChar, 50, "UserName"));
			this.sqlUpdateCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@Password", System.Data.SqlDbType.NVarChar, 50, "Password"));
			this.sqlUpdateCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@Address", System.Data.SqlDbType.NVarChar, 200, "Address"));
			this.sqlUpdateCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@Email", System.Data.SqlDbType.NVarChar, 50, "Email"));
			this.sqlUpdateCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@MobilePhone", System.Data.SqlDbType.NVarChar, 50, "MobilePhone"));
			this.sqlUpdateCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@HomePhone", System.Data.SqlDbType.NVarChar, 50, "HomePhone"));
			this.sqlUpdateCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@WorkPhone", System.Data.SqlDbType.NVarChar, 50, "WorkPhone"));
			this.sqlUpdateCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@Company", System.Data.SqlDbType.NVarChar, 50, "Company"));
			this.sqlUpdateCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@CompanyAddress", System.Data.SqlDbType.NVarChar, 200, "CompanyAddress"));
			this.sqlUpdateCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@Credit", System.Data.SqlDbType.Int, 4, "Credit"));
			this.sqlUpdateCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@Original_ID", System.Data.SqlDbType.Int, 4, System.Data.ParameterDirection.Input, false, ((System.Byte)(0)), ((System.Byte)(0)), "ID", System.Data.DataRowVersion.Original, null));
			this.sqlUpdateCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@Original_Address", System.Data.SqlDbType.NVarChar, 200, System.Data.ParameterDirection.Input, false, ((System.Byte)(0)), ((System.Byte)(0)), "Address", System.Data.DataRowVersion.Original, null));
			this.sqlUpdateCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@Original_Company", System.Data.SqlDbType.NVarChar, 50, System.Data.ParameterDirection.Input, false, ((System.Byte)(0)), ((System.Byte)(0)), "Company", System.Data.DataRowVersion.Original, null));
			this.sqlUpdateCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@Original_CompanyAddress", System.Data.SqlDbType.NVarChar, 200, System.Data.ParameterDirection.Input, false, ((System.Byte)(0)), ((System.Byte)(0)), "CompanyAddress", System.Data.DataRowVersion.Original, null));
			this.sqlUpdateCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@Original_Credit", System.Data.SqlDbType.Int, 4, System.Data.ParameterDirection.Input, false, ((System.Byte)(0)), ((System.Byte)(0)), "Credit", System.Data.DataRowVersion.Original, null));
			this.sqlUpdateCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@Original_Email", System.Data.SqlDbType.NVarChar, 50, System.Data.ParameterDirection.Input, false, ((System.Byte)(0)), ((System.Byte)(0)), "Email", System.Data.DataRowVersion.Original, null));
			this.sqlUpdateCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@Original_HomePhone", System.Data.SqlDbType.NVarChar, 50, System.Data.ParameterDirection.Input, false, ((System.Byte)(0)), ((System.Byte)(0)), "HomePhone", System.Data.DataRowVersion.Original, null));
			this.sqlUpdateCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@Original_MobilePhone", System.Data.SqlDbType.NVarChar, 50, System.Data.ParameterDirection.Input, false, ((System.Byte)(0)), ((System.Byte)(0)), "MobilePhone", System.Data.DataRowVersion.Original, null));
			this.sqlUpdateCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@Original_Password", System.Data.SqlDbType.NVarChar, 50, System.Data.ParameterDirection.Input, false, ((System.Byte)(0)), ((System.Byte)(0)), "Password", System.Data.DataRowVersion.Original, null));
			this.sqlUpdateCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@Original_RealName", System.Data.SqlDbType.NVarChar, 50, System.Data.ParameterDirection.Input, false, ((System.Byte)(0)), ((System.Byte)(0)), "RealName", System.Data.DataRowVersion.Original, null));
			this.sqlUpdateCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@Original_UserName", System.Data.SqlDbType.NVarChar, 50, System.Data.ParameterDirection.Input, false, ((System.Byte)(0)), ((System.Byte)(0)), "UserName", System.Data.DataRowVersion.Original, null));
			this.sqlUpdateCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@Original_WorkPhone", System.Data.SqlDbType.NVarChar, 50, System.Data.ParameterDirection.Input, false, ((System.Byte)(0)), ((System.Byte)(0)), "WorkPhone", System.Data.DataRowVersion.Original, null));
			this.sqlUpdateCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@ID", System.Data.SqlDbType.Int, 4, "ID"));
			// 
			// dataSet11
			// 
			this.dataSet11.DataSetName = "DataSet1";
			this.dataSet11.Locale = new System.Globalization.CultureInfo("zh-CN");
			// 
			// ilRatingIcon
			// 
			this.ilRatingIcon.ColorDepth = System.Windows.Forms.ColorDepth.Depth32Bit;
			this.ilRatingIcon.ImageSize = new System.Drawing.Size(64, 12);
			this.ilRatingIcon.ImageStream = ((System.Windows.Forms.ImageListStreamer)(resources.GetObject("ilRatingIcon.ImageStream")));
			this.ilRatingIcon.TransparentColor = System.Drawing.Color.Transparent;
			// 
			// sqlDataAdapter2
			// 
			this.sqlDataAdapter2.DeleteCommand = this.sqlDeleteCommand2;
			this.sqlDataAdapter2.InsertCommand = this.sqlInsertCommand2;
			this.sqlDataAdapter2.SelectCommand = this.sqlSelectCommand2;
			this.sqlDataAdapter2.TableMappings.AddRange(new System.Data.Common.DataTableMapping[] {
																									  new System.Data.Common.DataTableMapping("Table", "BOOK_INFO", new System.Data.Common.DataColumnMapping[] {
																																																				   new System.Data.Common.DataColumnMapping("ID", "ID"),
																																																				   new System.Data.Common.DataColumnMapping("BookNameEng", "BookNameEng"),
																																																				   new System.Data.Common.DataColumnMapping("BookNameChn", "BookNameChn"),
																																																				   new System.Data.Common.DataColumnMapping("Author", "Author"),
																																																				   new System.Data.Common.DataColumnMapping("Translator", "Translator"),
																																																				   new System.Data.Common.DataColumnMapping("Press", "Press"),
																																																				   new System.Data.Common.DataColumnMapping("ISBN", "ISBN"),
																																																				   new System.Data.Common.DataColumnMapping("Summary", "Summary"),
																																																				   new System.Data.Common.DataColumnMapping("CoverPage", "CoverPage"),
																																																				   new System.Data.Common.DataColumnMapping("Contents", "Contents"),
																																																				   new System.Data.Common.DataColumnMapping("Status", "Status"),
																																																				   new System.Data.Common.DataColumnMapping("Owner", "Owner"),
																																																				   new System.Data.Common.DataColumnMapping("CurrentShareInfo", "CurrentShareInfo")})});
			this.sqlDataAdapter2.UpdateCommand = this.sqlUpdateCommand2;
			// 
			// sqlDeleteCommand2
			// 
			this.sqlDeleteCommand2.CommandText = @"DELETE FROM BOOK_INFO WHERE (ID = @Original_ID) AND (Author = @Original_Author OR @Original_Author IS NULL AND Author IS NULL) AND (BookNameChn = @Original_BookNameChn OR @Original_BookNameChn IS NULL AND BookNameChn IS NULL) AND (BookNameEng = @Original_BookNameEng OR @Original_BookNameEng IS NULL AND BookNameEng IS NULL) AND (CoverPage = @Original_CoverPage OR @Original_CoverPage IS NULL AND CoverPage IS NULL) AND (CurrentShareInfo = @Original_CurrentShareInfo OR @Original_CurrentShareInfo IS NULL AND CurrentShareInfo IS NULL) AND (ISBN = @Original_ISBN OR @Original_ISBN IS NULL AND ISBN IS NULL) AND (Owner = @Original_Owner) AND (Press = @Original_Press OR @Original_Press IS NULL AND Press IS NULL) AND (Status = @Original_Status OR @Original_Status IS NULL AND Status IS NULL) AND (Translator = @Original_Translator OR @Original_Translator IS NULL AND Translator IS NULL)";
			this.sqlDeleteCommand2.Connection = this.sqlConnection1;
			this.sqlDeleteCommand2.Parameters.Add(new System.Data.SqlClient.SqlParameter("@Original_ID", System.Data.SqlDbType.Int, 4, System.Data.ParameterDirection.Input, false, ((System.Byte)(0)), ((System.Byte)(0)), "ID", System.Data.DataRowVersion.Original, null));
			this.sqlDeleteCommand2.Parameters.Add(new System.Data.SqlClient.SqlParameter("@Original_Author", System.Data.SqlDbType.NVarChar, 50, System.Data.ParameterDirection.Input, false, ((System.Byte)(0)), ((System.Byte)(0)), "Author", System.Data.DataRowVersion.Original, null));
			this.sqlDeleteCommand2.Parameters.Add(new System.Data.SqlClient.SqlParameter("@Original_BookNameChn", System.Data.SqlDbType.NVarChar, 50, System.Data.ParameterDirection.Input, false, ((System.Byte)(0)), ((System.Byte)(0)), "BookNameChn", System.Data.DataRowVersion.Original, null));
			this.sqlDeleteCommand2.Parameters.Add(new System.Data.SqlClient.SqlParameter("@Original_BookNameEng", System.Data.SqlDbType.NVarChar, 50, System.Data.ParameterDirection.Input, false, ((System.Byte)(0)), ((System.Byte)(0)), "BookNameEng", System.Data.DataRowVersion.Original, null));
			this.sqlDeleteCommand2.Parameters.Add(new System.Data.SqlClient.SqlParameter("@Original_CoverPage", System.Data.SqlDbType.NVarChar, 50, System.Data.ParameterDirection.Input, false, ((System.Byte)(0)), ((System.Byte)(0)), "CoverPage", System.Data.DataRowVersion.Original, null));
			this.sqlDeleteCommand2.Parameters.Add(new System.Data.SqlClient.SqlParameter("@Original_CurrentShareInfo", System.Data.SqlDbType.Int, 4, System.Data.ParameterDirection.Input, false, ((System.Byte)(0)), ((System.Byte)(0)), "CurrentShareInfo", System.Data.DataRowVersion.Original, null));
			this.sqlDeleteCommand2.Parameters.Add(new System.Data.SqlClient.SqlParameter("@Original_ISBN", System.Data.SqlDbType.NVarChar, 50, System.Data.ParameterDirection.Input, false, ((System.Byte)(0)), ((System.Byte)(0)), "ISBN", System.Data.DataRowVersion.Original, null));
			this.sqlDeleteCommand2.Parameters.Add(new System.Data.SqlClient.SqlParameter("@Original_Owner", System.Data.SqlDbType.Int, 4, System.Data.ParameterDirection.Input, false, ((System.Byte)(0)), ((System.Byte)(0)), "Owner", System.Data.DataRowVersion.Original, null));
			this.sqlDeleteCommand2.Parameters.Add(new System.Data.SqlClient.SqlParameter("@Original_Press", System.Data.SqlDbType.NVarChar, 50, System.Data.ParameterDirection.Input, false, ((System.Byte)(0)), ((System.Byte)(0)), "Press", System.Data.DataRowVersion.Original, null));
			this.sqlDeleteCommand2.Parameters.Add(new System.Data.SqlClient.SqlParameter("@Original_Status", System.Data.SqlDbType.NVarChar, 50, System.Data.ParameterDirection.Input, false, ((System.Byte)(0)), ((System.Byte)(0)), "Status", System.Data.DataRowVersion.Original, null));
			this.sqlDeleteCommand2.Parameters.Add(new System.Data.SqlClient.SqlParameter("@Original_Translator", System.Data.SqlDbType.NVarChar, 50, System.Data.ParameterDirection.Input, false, ((System.Byte)(0)), ((System.Byte)(0)), "Translator", System.Data.DataRowVersion.Original, null));
			// 
			// sqlInsertCommand2
			// 
			this.sqlInsertCommand2.CommandText = @"INSERT INTO BOOK_INFO(BookNameEng, BookNameChn, Author, Translator, Press, ISBN, Summary, CoverPage, Contents, Status, Owner, CurrentShareInfo) VALUES (@BookNameEng, @BookNameChn, @Author, @Translator, @Press, @ISBN, @Summary, @CoverPage, @Contents, @Status, @Owner, @CurrentShareInfo); SELECT ID, BookNameEng, BookNameChn, Author, Translator, Press, ISBN, Summary, CoverPage, Contents, Status, Owner, CurrentShareInfo FROM BOOK_INFO WHERE (ID = @@IDENTITY)";
			this.sqlInsertCommand2.Connection = this.sqlConnection1;
			this.sqlInsertCommand2.Parameters.Add(new System.Data.SqlClient.SqlParameter("@BookNameEng", System.Data.SqlDbType.NVarChar, 50, "BookNameEng"));
			this.sqlInsertCommand2.Parameters.Add(new System.Data.SqlClient.SqlParameter("@BookNameChn", System.Data.SqlDbType.NVarChar, 50, "BookNameChn"));
			this.sqlInsertCommand2.Parameters.Add(new System.Data.SqlClient.SqlParameter("@Author", System.Data.SqlDbType.NVarChar, 50, "Author"));
			this.sqlInsertCommand2.Parameters.Add(new System.Data.SqlClient.SqlParameter("@Translator", System.Data.SqlDbType.NVarChar, 50, "Translator"));
			this.sqlInsertCommand2.Parameters.Add(new System.Data.SqlClient.SqlParameter("@Press", System.Data.SqlDbType.NVarChar, 50, "Press"));
			this.sqlInsertCommand2.Parameters.Add(new System.Data.SqlClient.SqlParameter("@ISBN", System.Data.SqlDbType.NVarChar, 50, "ISBN"));
			this.sqlInsertCommand2.Parameters.Add(new System.Data.SqlClient.SqlParameter("@Summary", System.Data.SqlDbType.VarChar, 2147483647, "Summary"));
			this.sqlInsertCommand2.Parameters.Add(new System.Data.SqlClient.SqlParameter("@CoverPage", System.Data.SqlDbType.NVarChar, 50, "CoverPage"));
			this.sqlInsertCommand2.Parameters.Add(new System.Data.SqlClient.SqlParameter("@Contents", System.Data.SqlDbType.VarChar, 2147483647, "Contents"));
			this.sqlInsertCommand2.Parameters.Add(new System.Data.SqlClient.SqlParameter("@Status", System.Data.SqlDbType.NVarChar, 50, "Status"));
			this.sqlInsertCommand2.Parameters.Add(new System.Data.SqlClient.SqlParameter("@Owner", System.Data.SqlDbType.Int, 4, "Owner"));
			this.sqlInsertCommand2.Parameters.Add(new System.Data.SqlClient.SqlParameter("@CurrentShareInfo", System.Data.SqlDbType.Int, 4, "CurrentShareInfo"));
			// 
			// sqlSelectCommand2
			// 
			this.sqlSelectCommand2.CommandText = "SELECT ID, BookNameEng, BookNameChn, Author, Translator, Press, ISBN, Summary, Co" +
				"verPage, Contents, Status, Owner, CurrentShareInfo FROM BOOK_INFO";
			this.sqlSelectCommand2.Connection = this.sqlConnection1;
			// 
			// sqlUpdateCommand2
			// 
			this.sqlUpdateCommand2.CommandText = @"UPDATE BOOK_INFO SET BookNameEng = @BookNameEng, BookNameChn = @BookNameChn, Author = @Author, Translator = @Translator, Press = @Press, ISBN = @ISBN, Summary = @Summary, CoverPage = @CoverPage, Contents = @Contents, Status = @Status, Owner = @Owner, CurrentShareInfo = @CurrentShareInfo WHERE (ID = @Original_ID) AND (Author = @Original_Author OR @Original_Author IS NULL AND Author IS NULL) AND (BookNameChn = @Original_BookNameChn OR @Original_BookNameChn IS NULL AND BookNameChn IS NULL) AND (BookNameEng = @Original_BookNameEng OR @Original_BookNameEng IS NULL AND BookNameEng IS NULL) AND (CoverPage = @Original_CoverPage OR @Original_CoverPage IS NULL AND CoverPage IS NULL) AND (CurrentShareInfo = @Original_CurrentShareInfo OR @Original_CurrentShareInfo IS NULL AND CurrentShareInfo IS NULL) AND (ISBN = @Original_ISBN OR @Original_ISBN IS NULL AND ISBN IS NULL) AND (Owner = @Original_Owner) AND (Press = @Original_Press OR @Original_Press IS NULL AND Press IS NULL) AND (Status = @Original_Status OR @Original_Status IS NULL AND Status IS NULL) AND (Translator = @Original_Translator OR @Original_Translator IS NULL AND Translator IS NULL); SELECT ID, BookNameEng, BookNameChn, Author, Translator, Press, ISBN, Summary, CoverPage, Contents, Status, Owner, CurrentShareInfo FROM BOOK_INFO WHERE (ID = @ID)";
			this.sqlUpdateCommand2.Connection = this.sqlConnection1;
			this.sqlUpdateCommand2.Parameters.Add(new System.Data.SqlClient.SqlParameter("@BookNameEng", System.Data.SqlDbType.NVarChar, 50, "BookNameEng"));
			this.sqlUpdateCommand2.Parameters.Add(new System.Data.SqlClient.SqlParameter("@BookNameChn", System.Data.SqlDbType.NVarChar, 50, "BookNameChn"));
			this.sqlUpdateCommand2.Parameters.Add(new System.Data.SqlClient.SqlParameter("@Author", System.Data.SqlDbType.NVarChar, 50, "Author"));
			this.sqlUpdateCommand2.Parameters.Add(new System.Data.SqlClient.SqlParameter("@Translator", System.Data.SqlDbType.NVarChar, 50, "Translator"));
			this.sqlUpdateCommand2.Parameters.Add(new System.Data.SqlClient.SqlParameter("@Press", System.Data.SqlDbType.NVarChar, 50, "Press"));
			this.sqlUpdateCommand2.Parameters.Add(new System.Data.SqlClient.SqlParameter("@ISBN", System.Data.SqlDbType.NVarChar, 50, "ISBN"));
			this.sqlUpdateCommand2.Parameters.Add(new System.Data.SqlClient.SqlParameter("@Summary", System.Data.SqlDbType.VarChar, 2147483647, "Summary"));
			this.sqlUpdateCommand2.Parameters.Add(new System.Data.SqlClient.SqlParameter("@CoverPage", System.Data.SqlDbType.NVarChar, 50, "CoverPage"));
			this.sqlUpdateCommand2.Parameters.Add(new System.Data.SqlClient.SqlParameter("@Contents", System.Data.SqlDbType.VarChar, 2147483647, "Contents"));
			this.sqlUpdateCommand2.Parameters.Add(new System.Data.SqlClient.SqlParameter("@Status", System.Data.SqlDbType.NVarChar, 50, "Status"));
			this.sqlUpdateCommand2.Parameters.Add(new System.Data.SqlClient.SqlParameter("@Owner", System.Data.SqlDbType.Int, 4, "Owner"));
			this.sqlUpdateCommand2.Parameters.Add(new System.Data.SqlClient.SqlParameter("@CurrentShareInfo", System.Data.SqlDbType.Int, 4, "CurrentShareInfo"));
			this.sqlUpdateCommand2.Parameters.Add(new System.Data.SqlClient.SqlParameter("@Original_ID", System.Data.SqlDbType.Int, 4, System.Data.ParameterDirection.Input, false, ((System.Byte)(0)), ((System.Byte)(0)), "ID", System.Data.DataRowVersion.Original, null));
			this.sqlUpdateCommand2.Parameters.Add(new System.Data.SqlClient.SqlParameter("@Original_Author", System.Data.SqlDbType.NVarChar, 50, System.Data.ParameterDirection.Input, false, ((System.Byte)(0)), ((System.Byte)(0)), "Author", System.Data.DataRowVersion.Original, null));
			this.sqlUpdateCommand2.Parameters.Add(new System.Data.SqlClient.SqlParameter("@Original_BookNameChn", System.Data.SqlDbType.NVarChar, 50, System.Data.ParameterDirection.Input, false, ((System.Byte)(0)), ((System.Byte)(0)), "BookNameChn", System.Data.DataRowVersion.Original, null));
			this.sqlUpdateCommand2.Parameters.Add(new System.Data.SqlClient.SqlParameter("@Original_BookNameEng", System.Data.SqlDbType.NVarChar, 50, System.Data.ParameterDirection.Input, false, ((System.Byte)(0)), ((System.Byte)(0)), "BookNameEng", System.Data.DataRowVersion.Original, null));
			this.sqlUpdateCommand2.Parameters.Add(new System.Data.SqlClient.SqlParameter("@Original_CoverPage", System.Data.SqlDbType.NVarChar, 50, System.Data.ParameterDirection.Input, false, ((System.Byte)(0)), ((System.Byte)(0)), "CoverPage", System.Data.DataRowVersion.Original, null));
			this.sqlUpdateCommand2.Parameters.Add(new System.Data.SqlClient.SqlParameter("@Original_CurrentShareInfo", System.Data.SqlDbType.Int, 4, System.Data.ParameterDirection.Input, false, ((System.Byte)(0)), ((System.Byte)(0)), "CurrentShareInfo", System.Data.DataRowVersion.Original, null));
			this.sqlUpdateCommand2.Parameters.Add(new System.Data.SqlClient.SqlParameter("@Original_ISBN", System.Data.SqlDbType.NVarChar, 50, System.Data.ParameterDirection.Input, false, ((System.Byte)(0)), ((System.Byte)(0)), "ISBN", System.Data.DataRowVersion.Original, null));
			this.sqlUpdateCommand2.Parameters.Add(new System.Data.SqlClient.SqlParameter("@Original_Owner", System.Data.SqlDbType.Int, 4, System.Data.ParameterDirection.Input, false, ((System.Byte)(0)), ((System.Byte)(0)), "Owner", System.Data.DataRowVersion.Original, null));
			this.sqlUpdateCommand2.Parameters.Add(new System.Data.SqlClient.SqlParameter("@Original_Press", System.Data.SqlDbType.NVarChar, 50, System.Data.ParameterDirection.Input, false, ((System.Byte)(0)), ((System.Byte)(0)), "Press", System.Data.DataRowVersion.Original, null));
			this.sqlUpdateCommand2.Parameters.Add(new System.Data.SqlClient.SqlParameter("@Original_Status", System.Data.SqlDbType.NVarChar, 50, System.Data.ParameterDirection.Input, false, ((System.Byte)(0)), ((System.Byte)(0)), "Status", System.Data.DataRowVersion.Original, null));
			this.sqlUpdateCommand2.Parameters.Add(new System.Data.SqlClient.SqlParameter("@Original_Translator", System.Data.SqlDbType.NVarChar, 50, System.Data.ParameterDirection.Input, false, ((System.Byte)(0)), ((System.Byte)(0)), "Translator", System.Data.DataRowVersion.Original, null));
			this.sqlUpdateCommand2.Parameters.Add(new System.Data.SqlClient.SqlParameter("@ID", System.Data.SqlDbType.Int, 4, "ID"));
			// 
			// ilBtnIcon
			// 
			this.ilBtnIcon.ColorDepth = System.Windows.Forms.ColorDepth.Depth24Bit;
			this.ilBtnIcon.ImageSize = new System.Drawing.Size(18, 18);
			this.ilBtnIcon.ImageStream = ((System.Windows.Forms.ImageListStreamer)(resources.GetObject("ilBtnIcon.ImageStream")));
			this.ilBtnIcon.TransparentColor = System.Drawing.Color.Transparent;
			// 
			// sqlDataAdapter3
			// 
			this.sqlDataAdapter3.DeleteCommand = this.sqlDeleteCommand3;
			this.sqlDataAdapter3.InsertCommand = this.sqlInsertCommand3;
			this.sqlDataAdapter3.SelectCommand = this.sqlSelectCommand3;
			this.sqlDataAdapter3.TableMappings.AddRange(new System.Data.Common.DataTableMapping[] {
																									  new System.Data.Common.DataTableMapping("Table", "MESSAGE_INFO", new System.Data.Common.DataColumnMapping[] {
																																																					  new System.Data.Common.DataColumnMapping("ID", "ID"),
																																																					  new System.Data.Common.DataColumnMapping("MessageType", "MessageType"),
																																																					  new System.Data.Common.DataColumnMapping("MessageTo", "MessageTo"),
																																																					  new System.Data.Common.DataColumnMapping("MessageFrom", "MessageFrom"),
																																																					  new System.Data.Common.DataColumnMapping("Title", "Title"),
																																																					  new System.Data.Common.DataColumnMapping("Body", "Body"),
																																																					  new System.Data.Common.DataColumnMapping("HasRead", "HasRead")})});
			this.sqlDataAdapter3.UpdateCommand = this.sqlUpdateCommand3;
			// 
			// sqlDeleteCommand3
			// 
			this.sqlDeleteCommand3.CommandText = @"DELETE FROM MESSAGE_INFO WHERE (ID = @Original_ID) AND (Body = @Original_Body OR @Original_Body IS NULL AND Body IS NULL) AND (HasRead = @Original_HasRead OR @Original_HasRead IS NULL AND HasRead IS NULL) AND (MessageFrom = @Original_MessageFrom OR @Original_MessageFrom IS NULL AND MessageFrom IS NULL) AND (MessageTo = @Original_MessageTo OR @Original_MessageTo IS NULL AND MessageTo IS NULL) AND (MessageType = @Original_MessageType OR @Original_MessageType IS NULL AND MessageType IS NULL) AND (Title = @Original_Title OR @Original_Title IS NULL AND Title IS NULL)";
			this.sqlDeleteCommand3.Connection = this.sqlConnection1;
			this.sqlDeleteCommand3.Parameters.Add(new System.Data.SqlClient.SqlParameter("@Original_ID", System.Data.SqlDbType.Int, 4, System.Data.ParameterDirection.Input, false, ((System.Byte)(0)), ((System.Byte)(0)), "ID", System.Data.DataRowVersion.Original, null));
			this.sqlDeleteCommand3.Parameters.Add(new System.Data.SqlClient.SqlParameter("@Original_Body", System.Data.SqlDbType.NVarChar, 4000, System.Data.ParameterDirection.Input, false, ((System.Byte)(0)), ((System.Byte)(0)), "Body", System.Data.DataRowVersion.Original, null));
			this.sqlDeleteCommand3.Parameters.Add(new System.Data.SqlClient.SqlParameter("@Original_HasRead", System.Data.SqlDbType.Int, 4, System.Data.ParameterDirection.Input, false, ((System.Byte)(0)), ((System.Byte)(0)), "HasRead", System.Data.DataRowVersion.Original, null));
			this.sqlDeleteCommand3.Parameters.Add(new System.Data.SqlClient.SqlParameter("@Original_MessageFrom", System.Data.SqlDbType.Int, 4, System.Data.ParameterDirection.Input, false, ((System.Byte)(0)), ((System.Byte)(0)), "MessageFrom", System.Data.DataRowVersion.Original, null));
			this.sqlDeleteCommand3.Parameters.Add(new System.Data.SqlClient.SqlParameter("@Original_MessageTo", System.Data.SqlDbType.Int, 4, System.Data.ParameterDirection.Input, false, ((System.Byte)(0)), ((System.Byte)(0)), "MessageTo", System.Data.DataRowVersion.Original, null));
			this.sqlDeleteCommand3.Parameters.Add(new System.Data.SqlClient.SqlParameter("@Original_MessageType", System.Data.SqlDbType.NVarChar, 10, System.Data.ParameterDirection.Input, false, ((System.Byte)(0)), ((System.Byte)(0)), "MessageType", System.Data.DataRowVersion.Original, null));
			this.sqlDeleteCommand3.Parameters.Add(new System.Data.SqlClient.SqlParameter("@Original_Title", System.Data.SqlDbType.NVarChar, 50, System.Data.ParameterDirection.Input, false, ((System.Byte)(0)), ((System.Byte)(0)), "Title", System.Data.DataRowVersion.Original, null));
			// 
			// sqlInsertCommand3
			// 
			this.sqlInsertCommand3.CommandText = @"INSERT INTO MESSAGE_INFO(MessageType, MessageTo, MessageFrom, Title, Body, HasRead) VALUES (@MessageType, @MessageTo, @MessageFrom, @Title, @Body, @HasRead); SELECT ID, MessageType, MessageTo, MessageFrom, Title, Body, HasRead FROM MESSAGE_INFO WHERE (ID = @@IDENTITY)";
			this.sqlInsertCommand3.Connection = this.sqlConnection1;
			this.sqlInsertCommand3.Parameters.Add(new System.Data.SqlClient.SqlParameter("@MessageType", System.Data.SqlDbType.NVarChar, 10, "MessageType"));
			this.sqlInsertCommand3.Parameters.Add(new System.Data.SqlClient.SqlParameter("@MessageTo", System.Data.SqlDbType.Int, 4, "MessageTo"));
			this.sqlInsertCommand3.Parameters.Add(new System.Data.SqlClient.SqlParameter("@MessageFrom", System.Data.SqlDbType.Int, 4, "MessageFrom"));
			this.sqlInsertCommand3.Parameters.Add(new System.Data.SqlClient.SqlParameter("@Title", System.Data.SqlDbType.NVarChar, 50, "Title"));
			this.sqlInsertCommand3.Parameters.Add(new System.Data.SqlClient.SqlParameter("@Body", System.Data.SqlDbType.NVarChar, 4000, "Body"));
			this.sqlInsertCommand3.Parameters.Add(new System.Data.SqlClient.SqlParameter("@HasRead", System.Data.SqlDbType.Int, 4, "HasRead"));
			// 
			// sqlSelectCommand3
			// 
			this.sqlSelectCommand3.CommandText = "SELECT ID, MessageType, MessageTo, MessageFrom, Title, Body, HasRead FROM MESSAGE" +
				"_INFO";
			this.sqlSelectCommand3.Connection = this.sqlConnection1;
			// 
			// sqlUpdateCommand3
			// 
			this.sqlUpdateCommand3.CommandText = @"UPDATE MESSAGE_INFO SET MessageType = @MessageType, MessageTo = @MessageTo, MessageFrom = @MessageFrom, Title = @Title, Body = @Body, HasRead = @HasRead WHERE (ID = @Original_ID) AND (Body = @Original_Body OR @Original_Body IS NULL AND Body IS NULL) AND (HasRead = @Original_HasRead OR @Original_HasRead IS NULL AND HasRead IS NULL) AND (MessageFrom = @Original_MessageFrom OR @Original_MessageFrom IS NULL AND MessageFrom IS NULL) AND (MessageTo = @Original_MessageTo OR @Original_MessageTo IS NULL AND MessageTo IS NULL) AND (MessageType = @Original_MessageType OR @Original_MessageType IS NULL AND MessageType IS NULL) AND (Title = @Original_Title OR @Original_Title IS NULL AND Title IS NULL); SELECT ID, MessageType, MessageTo, MessageFrom, Title, Body, HasRead FROM MESSAGE_INFO WHERE (ID = @ID)";
			this.sqlUpdateCommand3.Connection = this.sqlConnection1;
			this.sqlUpdateCommand3.Parameters.Add(new System.Data.SqlClient.SqlParameter("@MessageType", System.Data.SqlDbType.NVarChar, 10, "MessageType"));
			this.sqlUpdateCommand3.Parameters.Add(new System.Data.SqlClient.SqlParameter("@MessageTo", System.Data.SqlDbType.Int, 4, "MessageTo"));
			this.sqlUpdateCommand3.Parameters.Add(new System.Data.SqlClient.SqlParameter("@MessageFrom", System.Data.SqlDbType.Int, 4, "MessageFrom"));
			this.sqlUpdateCommand3.Parameters.Add(new System.Data.SqlClient.SqlParameter("@Title", System.Data.SqlDbType.NVarChar, 50, "Title"));
			this.sqlUpdateCommand3.Parameters.Add(new System.Data.SqlClient.SqlParameter("@Body", System.Data.SqlDbType.NVarChar, 4000, "Body"));
			this.sqlUpdateCommand3.Parameters.Add(new System.Data.SqlClient.SqlParameter("@HasRead", System.Data.SqlDbType.Int, 4, "HasRead"));
			this.sqlUpdateCommand3.Parameters.Add(new System.Data.SqlClient.SqlParameter("@Original_ID", System.Data.SqlDbType.Int, 4, System.Data.ParameterDirection.Input, false, ((System.Byte)(0)), ((System.Byte)(0)), "ID", System.Data.DataRowVersion.Original, null));
			this.sqlUpdateCommand3.Parameters.Add(new System.Data.SqlClient.SqlParameter("@Original_Body", System.Data.SqlDbType.NVarChar, 4000, System.Data.ParameterDirection.Input, false, ((System.Byte)(0)), ((System.Byte)(0)), "Body", System.Data.DataRowVersion.Original, null));
			this.sqlUpdateCommand3.Parameters.Add(new System.Data.SqlClient.SqlParameter("@Original_HasRead", System.Data.SqlDbType.Int, 4, System.Data.ParameterDirection.Input, false, ((System.Byte)(0)), ((System.Byte)(0)), "HasRead", System.Data.DataRowVersion.Original, null));
			this.sqlUpdateCommand3.Parameters.Add(new System.Data.SqlClient.SqlParameter("@Original_MessageFrom", System.Data.SqlDbType.Int, 4, System.Data.ParameterDirection.Input, false, ((System.Byte)(0)), ((System.Byte)(0)), "MessageFrom", System.Data.DataRowVersion.Original, null));
			this.sqlUpdateCommand3.Parameters.Add(new System.Data.SqlClient.SqlParameter("@Original_MessageTo", System.Data.SqlDbType.Int, 4, System.Data.ParameterDirection.Input, false, ((System.Byte)(0)), ((System.Byte)(0)), "MessageTo", System.Data.DataRowVersion.Original, null));
			this.sqlUpdateCommand3.Parameters.Add(new System.Data.SqlClient.SqlParameter("@Original_MessageType", System.Data.SqlDbType.NVarChar, 10, System.Data.ParameterDirection.Input, false, ((System.Byte)(0)), ((System.Byte)(0)), "MessageType", System.Data.DataRowVersion.Original, null));
			this.sqlUpdateCommand3.Parameters.Add(new System.Data.SqlClient.SqlParameter("@Original_Title", System.Data.SqlDbType.NVarChar, 50, System.Data.ParameterDirection.Input, false, ((System.Byte)(0)), ((System.Byte)(0)), "Title", System.Data.DataRowVersion.Original, null));
			this.sqlUpdateCommand3.Parameters.Add(new System.Data.SqlClient.SqlParameter("@ID", System.Data.SqlDbType.Int, 4, "ID"));
			// 
			// tmrUpdateDB
			// 
			this.tmrUpdateDB.Tick += new System.EventHandler(this.tmrUpdateDB_Tick);
			// 
			// MainFrm
			// 
			this.AutoScaleBaseSize = new System.Drawing.Size(6, 14);
			this.BackColor = System.Drawing.Color.FromArgb(((System.Byte)(216)), ((System.Byte)(228)), ((System.Byte)(248)));
			this.ClientSize = new System.Drawing.Size(876, 533);
			this.Controls.Add(this.pnlAll);
			this.Controls.Add(this.pnlLogin);
			this.Menu = this.mMenu;
			this.Name = "MainFrm";
			this.Text = "MainFrm";
			this.Load += new System.EventHandler(this.MainFrm_Load);
			this.xPander1.ResumeLayout(false);
			this.xPanderList1.ResumeLayout(false);
			this.xPander2.ResumeLayout(false);
			((System.ComponentModel.ISupportInitialize)(this.sbpAction)).EndInit();
			((System.ComponentModel.ISupportInitialize)(this.sbpOnline)).EndInit();
			this.gpbQuickSearch.ResumeLayout(false);
			this.pnlQuickSearch.ResumeLayout(false);
			this.pnlAdvancedSearch.ResumeLayout(false);
			this.panel3.ResumeLayout(false);
			this.pnlHome.ResumeLayout(false);
			this.pnlFill_Home.ResumeLayout(false);
			this.gpbBooks_Home.ResumeLayout(false);
			this.panel2.ResumeLayout(false);
			this.pnlLeft_Home.ResumeLayout(false);
			this.gpbRemind_Home.ResumeLayout(false);
			this.panel1.ResumeLayout(false);
			this.pnlTop_Home.ResumeLayout(false);
			this.pnlSearchResult.ResumeLayout(false);
			this.pnlFill_SearchResult.ResumeLayout(false);
			((System.ComponentModel.ISupportInitialize)(this.dgSearchResult)).EndInit();
			this.pnlBottom_SearchResult.ResumeLayout(false);
			this.pnlShareDetail_SearchResult.ResumeLayout(false);
			this.pnlUserDetail_SearchResult.ResumeLayout(false);
			this.pnlMessageDetail_SearchResult.ResumeLayout(false);
			this.pnlFill_MessageDetail.ResumeLayout(false);
			this.pnlTop_MessageDetail.ResumeLayout(false);
			this.pnlBookDetail_SearchResult.ResumeLayout(false);
			this.tbcMain_BookDetail.ResumeLayout(false);
			this.tbpGeneral_BookDetail.ResumeLayout(false);
			this.tbpSummary_BookDetail.ResumeLayout(false);
			this.tpIndex_BookDetail.ResumeLayout(false);
			this.pnlTop_SearchResult.ResumeLayout(false);
			this.pnlAll.ResumeLayout(false);
			this.pnlLogin.ResumeLayout(false);
			((System.ComponentModel.ISupportInitialize)(this.dataSet11)).EndInit();
			this.ResumeLayout(false);

		}
		#endregion

		#endregion

		#region 界面显示相关函数
		/// <summary>
		/// 隐藏当前的panel，并显示指定的panel
		/// </summary>
		/// <param name="panel">要显示的panel</param>
		private void panel_switch(System.Windows.Forms.Panel panel)
		{
//			if(panel!=null && !panel.Visible)
//			{
//				this.pnlCurrent.Visible = false;
//				panel.Visible = true;
//			}
			panel_switch(panel, this.pnlCurrent);
			this.pnlCurrent = panel;

		}
		/// <summary>
		/// 隐藏panelOld，并显示panelNew
		/// </summary>
		/// <param name="panelNew">要显示的panel</param>
		/// <param name="panelOld">要隐藏的panel</param>
		private void panel_switch(System.Windows.Forms.Panel panelNew, System.Windows.Forms.Panel panelOld)
		{
			if(panelOld!=null && panelOld.Visible)
			{
				panelOld.Visible = false;
			}
			if(panelNew!=null && !panelNew.Visible)
			{
				panelNew.Visible = true;
			}
		}

		/// <summary>
		/// 隐藏当前的detail panel，并显示指定的detail panel
		/// </summary>
		/// <param name="panel">要显示的detail panel</param>
		private void panel_detail_switch(System.Windows.Forms.Panel panel)
		{
			if(this.pnlCurrentDetail!=null&&this.pnlCurrentDetail.Visible)
			{
				this.pnlCurrentDetail.Visible = false;
			}

			this.pnlCurrentDetail = panel;

			if(panel!=null && !panel.Visible)
			{
				panel.Visible = true;
			}
		}

		/// <summary>
		/// 如果username和password都输入了，则btnLogin可用，否则不可用
		/// 如果lblError_Login显示着的话，隐去它
		/// </summary>
		private void enable_btnLogin()
		{
			//使btnLogin_Login可用
			if(this.tbxUserName_Login.Text!=null&&this.tbxUserName_Login.Text!=""
				&&this.tbxPassword_Login.Text!=null&&this.tbxPassword_Login.Text!="")
			{
				this.btnLogin_Login.Enabled = true;
			}
			else
			{
				this.btnLogin_Login.Enabled = false;
			}

			//隐去lblError_Login
			if(this.lblError_Login.Visible)
			{
				this.lblError_Login.Visible = false;
			}
		}

		#endregion

		#region 填充用户信息相关函数
		/// <summary>
		/// 在pnlUserDetail_SearchResult显示datagrid中第index个记录的信息
		/// </summary>
		/// <param name="id">要显示的纪录的序列号</param>
		private void fill_user_detail(int id)
		{
			if(id>0)
			{
				DataSetUserInfo.USER_INFORow row = this.DsUserInfo.USER_INFO.FindByID(id);

				this.lblAddress_UserDetail.Text = row["Address"] as string;
				this.lblCompany_UserDetail.Text = row["Company"] as string;
				this.lblCompanyAddress_UserDetail.Text = row["CompanyAddress"] as string;
				this.lblEmail_UserDetail.Text = row["Email"] as string;
				this.lblHomePhone_UserDetail.Text = row["HomePhone"] as string;
				this.lblMobilePhone_UserDetail.Text = row["MobilePhone"] as string;
				this.lblRealName_UserDetail.Text = row["RealName"] as string;
				this.lblUserName_UserDetail.Text = row["UserName"] as string;
				this.lblWorkPhone_UserDetail.Text = row["WorkPhone"] as string;

				this.pbxCredit_UserDetail.Image = this.ilRatingIcon.Images[row.Credit-1];
			}
			else
			{
				this.lblAddress_UserDetail.Text = null;
				this.lblCompany_UserDetail.Text = null;
				this.lblCompanyAddress_UserDetail.Text = null;
				this.lblEmail_UserDetail.Text = null;
				this.lblHomePhone_UserDetail.Text = null;
				this.lblMobilePhone_UserDetail.Text = null;
				this.lblRealName_UserDetail.Text = null;
				this.lblUserName_UserDetail.Text = null;
				this.lblWorkPhone_UserDetail.Text = null;

				this.pbxCredit_UserDetail.Image = null;
			}
		}
		#endregion

		#region 填充消息相关函数
		/// <summary>
		/// 在pnlMessageDetail_SearchResult显示datagrid中第index个记录的信息
		/// </summary>
		/// <param name="id">要显示的纪录的序列号</param>
		private void fill_message_detail(int id)
		{
			if(id>0)
			{
				DataSetMessage.MESSAGE_INFORow row = this.DsMessage.MESSAGE_INFO.FindByID(id);

				if(row["Sender"] is DBNull || row["Sender"] as string == null)
					this.lblMessageFrom_MessageDetail.Text = MessageConstantString.MessageSystemSenderName;
				else
					this.lblMessageFrom_MessageDetail.Text = row["Sender"] as string;
				this.lblMessageTo_MessageDetail.Text = row["Receiver"] as string;
				this.lblTitle_MessageDetail.Text = row["Title"] as string;
				this.lblDate_MessageDetail.Text = ((DateTime)row["SendDate"]).ToLongDateString();
				this.rtbBody_MessageDetail.Text = row["Body"] as string;
			}
			else
			{
				this.lblMessageFrom_MessageDetail.Text = string.Empty;
				this.lblMessageTo_MessageDetail.Text = string.Empty;
				this.lblTitle_MessageDetail.Text = string.Empty;
				this.lblDate_MessageDetail.Text = string.Empty;
			}
			//this.lbl
		}
		#endregion

		#region 填充借阅信息相关函数
		/// <summary>
		/// 在pnlMessageDetail_SearchResult显示datagrid中第index个记录的信息
		/// </summary>
		/// <param name="id">要显示的纪录的序列号</param>
		private void fill_shareinfo_detail(int id)
		{
			if(id>0)
			{
				DataSetShareInfo.SHARE_INFORow row = this.DsShareInfo.SHARE_INFO.FindByID(id);

				this.lblBookNameChn_ShareInfo.Text = row["BookNameChn"] as string;// rowBook.BookNameChn;
				this.lblBookNameEng_ShareInfo.Text = row["BookNameEng"] as string;// rowBook.BookNameEng;

				this.lblPlanEndDate_ShareInfo.Text = row.PlanEndDate.ToLongDateString();
				this.lblPlanStartDate_ShareInfo.Text = row.PlanBeginDate.ToLongDateString();

				if(!row.IsActualEndDateNull())
					this.lblActualEndDate_ShareInfo.Text = row.ActualEndDate.ToLongDateString();
				else
					this.lblActualEndDate_ShareInfo.Text = string.Empty;

				if(!row.IsActualBeginDateNull())
					this.lblActualStartDate_ShareInfo.Text = row.ActualBeginDate.ToLongDateString();
				else
					this.lblActualStartDate_ShareInfo.Text = string.Empty;

				if(!row.IsDepreciationNull())
					this.pbxDepreciation_ShareInfo.Image = this.ilRatingIcon.Images[row.Depreciation-1];
				else
					this.pbxDepreciation_ShareInfo.Image = null;

				this.llbShareFrom_ShareInfo.Text = row["Owner"] as string;
				this.llbShareTo_ShareInfo.Text = row["Borrower"] as string;
			}
			else
			{//no data
				this.lblBookNameChn_ShareInfo.Text = string.Empty;
				this.lblBookNameEng_ShareInfo.Text = string.Empty;

				this.lblPlanEndDate_ShareInfo.Text = string.Empty;
				this.lblPlanStartDate_ShareInfo.Text = string.Empty;

				this.lblActualEndDate_ShareInfo.Text = string.Empty;
				this.lblActualStartDate_ShareInfo.Text = string.Empty;

				this.pbxDepreciation_ShareInfo.Image = null;

				this.llbShareFrom_ShareInfo.Text = string.Empty;
				this.llbShareTo_ShareInfo.Text = string.Empty;
			}
			//this.lbl
		}
		#endregion

		#region 填充书籍信息相关函数
		/// <summary>
		/// 在pnlBookDetail_SearchResult显示datagrid中第index个记录的信息
		/// </summary>
		/// <param name="id">要显示的纪录的序列号</param>
		private void fill_book_detail(int id)
		{
			if(id>0)
			{
				DataSetBook.BOOK_INFORow row = this.DsBook.BOOK_INFO.FindByID(id);

				this.lblAuthor_BookDetail.Text		= row["Author"] as string;
				this.lblBookNameChn_BookDetail.Text	= row["BookNameChn"] as string;
				this.lblBookNameEng_BookDetail.Text	= row["BookNameEng"] as string;
				this.lblISBN_BookDetail.Text		= row["ISBN"] as string;
				this.lblPress_BookDetail.Text		= row["Press"] as string;
				this.lblStatus_BookDetail.Text		= row["Status"] as string;
				this.lblTranslator_BookDetail.Text	= row["Translator"] as string;
				this.tbxSummary_BookDetail.Text		= row["Summary"] as string;
				this.tbxIndex_BookDetail.Text		= row["Contents"] as string;
				this.llbOwner_BookDetail.Text		= row["Owner"] as string;

				if(this.CurrentBookInfo == null)
					this.CurrentBookInfo = new BookInformation();

				this.CurrentBookInfo.ID				= (int)row["ID"];
				this.CurrentBookInfo.Owner			= (int)row["Owner"];
				this.CurrentBookInfo.Author			= row["Author"] as string;
				this.CurrentBookInfo.BookNameChn	= row["BookNameChn"] as string;
				this.CurrentBookInfo.BookNameEng	= row["BookNameEng"] as string;
				this.CurrentBookInfo.ISBN			= row["ISBN"] as string;
				this.CurrentBookInfo.Press			= row["Press"] as string;
				this.CurrentBookInfo.Status			= row["Status"] as string;
				this.CurrentBookInfo.Translator		= row["Translator"] as string;
				this.CurrentBookInfo.Summary		= row["Summary"] as string;
				this.CurrentBookInfo.Contents		= row["Contents"] as string;
				this.CurrentBookInfo.CoverPage		= row["CoverPage"] as string;
				this.CurrentBookInfo.CurrentShareInfo = row["CurrentShareInfo"] is DBNull?-1:(int)row["CurrentShareInfo"];
			}
			else
			{
				this.CurrentBookInfo = null;

				this.lblAuthor_BookDetail.Text		= string.Empty;
				this.lblBookNameChn_BookDetail.Text	= string.Empty;
				this.lblBookNameEng_BookDetail.Text	= string.Empty;
				this.lblISBN_BookDetail.Text		= string.Empty;
				this.lblPress_BookDetail.Text		= string.Empty;
				this.lblStatus_BookDetail.Text		= string.Empty;
				this.lblTranslator_BookDetail.Text	= string.Empty;
				this.tbxSummary_BookDetail.Text		= string.Empty;
				this.tbxIndex_BookDetail.Text		= string.Empty;
			}
		}
		#endregion

		private void tbrMain_ButtonClick(object sender, System.Windows.Forms.ToolBarButtonClickEventArgs e)
		{
			// Evaluate the Button property to determine which button was clicked.
			switch(this.tbrMain.Buttons.IndexOf(e.Button))
			{
				case 0://登录书籍
					BookRegisterFrm frmBookReg = new BookRegisterFrm(this);
					frmBookReg.Show();
					break; 
				case 1://快速搜索
					//显示/隐藏search bar					
					this.pnlQuickSearch.Visible = e.Button.Pushed = !(this.pnlQuickSearch.Visible);										
					break; 
				case 2://申请借阅
					//打开借阅向导
					RequestFrm frmRequest = new RequestFrm(this);
					frmRequest.Show();
					break; 
				case 3://联机
					//探测联机状态，显示图标
					this.tbbOnline.Pushed = !this.tbbOnline.Pushed;
					if(this.tbbOnline.Pushed)
					{
						//在线->离线
						this.tbbOnline.ImageIndex = 3;
						this.tbbOnline.Text = "我要联机";//"联机（当前脱机）";

						this.m_IsOnline = false;
					}
					else
					{
						//离线->在线
						this.tbbOnline.ImageIndex = 4;
						this.tbbOnline.Text = "我要脱机";//"脱机（当前联机）";						

						this.m_IsOnline = true;
					}		
					break; 
			}
		}

		private void lkbHome_LinkClicked(object sender, System.Windows.Forms.LinkLabelLinkClickedEventArgs e)
		{
			this.panel_switch(this.pnlHome);
		}

		private void btnSearch_Click(object sender, System.EventArgs e)
		{
			int nRow = -1;
			//启动搜索进度条
			this.ShowProgressBar("正在搜索\""+this.tbxQuickSearch.Text+"\"...");


			//根据搜索条件获得搜索结果，并绑定到this.dtgSearchResult
			switch(this.cbbQuickSearch.SelectedIndex) 
			{
				case 0://搜索书籍
					//显示BookDetail阅读栏						
					this.panel_detail_switch(pnlBookDetail_SearchResult);
					this.searchTypeCurrent = 0;

					// judge that current state is online or not
					if(this.m_IsOnline)
					{
						// if it is online...

						DataSetBook dsBook = this.m_dataSvc.SearchBooksFuzzy(this.m_authTicket
							,this.tbxQuickSearch.Text.Trim());

						if(dsBook!=null)
						{
							this.dgSearchResult.TableStyles.Clear();
							this.dgSearchResult.TableStyles.Add(BookCommunityClient.TableStyleGenerator.GetStyleForBook());

							// merge the result into field
							//this.DsBook.Clear();
							this.DsBook.Merge(dsBook);

							this.dgSearchResult.DataSource = this.DsBook.BOOK_INFO;//this.dataSet11.BOOK_INFO.DefaultView;
							nRow = this.DsBook.BOOK_INFO.DefaultView.Count;//this.dataSet11.BOOK_INFO.DefaultView.Count;

							//this.dgSearchResult.

							//如果搜索结果不为空的话，详细显示第0个结果
							if(nRow>0)
							{
								CurrentSelectedID = (int)this.DsBook.BOOK_INFO[0]["ID"];
							}
							else
							{
								CurrentSelectedID = -1;
							}
							this.fill_book_detail(CurrentSelectedID);
						}
					}
					else//offline
					{
						MessageBox.Show("由于离线状态不支持搜索操作，因此我们很抱歉的通知您，您的搜索请求无法完成。","操作失败");
					}
					break;

				case 1://搜索用户
					//显示UserDetail阅读栏
					this.panel_detail_switch(pnlUserDetail_SearchResult);
					this.searchTypeCurrent = UISearchTypeEnum.USER;

					// judge that current state is online or not
					if(this.m_IsOnline)
					{
						// if it is online...
						DataSetUserInfo dsUserinfo = this.m_dataSvc.Search(this.m_authTicket
							,this.tbxQuickSearch.Text.Trim());

						if(dsUserinfo!=null)
						{
							this.dgSearchResult.TableStyles.Clear();
							this.dgSearchResult.TableStyles.Add(BookCommunityClient.TableStyleGenerator.GetStyleForUser());

							// merge the result into field
							this.DsUserInfo.Clear();
							this.DsUserInfo.Merge(dsUserinfo);

							this.dgSearchResult.DataSource = this.DsUserInfo.USER_INFO;//this.dataSet11.USER_INFO.DefaultView;
							nRow = this.DsUserInfo.USER_INFO.DefaultView.Count;//this.dataSet11.USER_INFO.DefaultView;

							//如果搜索结果不为空的话，详细显示第0个结果
							if(nRow>0)
							{
								CurrentSelectedID = (int)this.DsUserInfo.USER_INFO[0]["ID"];
							}
							else
							{
								CurrentSelectedID = -1;
							}
							this.fill_user_detail(CurrentSelectedID);
						}
					}
					else//offline
					{
						MessageBox.Show("由于离线状态不支持搜索操作，因此我们很抱歉的通知您，您的搜索请求无法完成。","操作失败");
					}
					break;
				default:break;
				
			}
			

			//关闭搜索进度条
			this.HideProgressBar();

			//切换SearchResultPanel
			this.panel_switch(this.pnlSearchResult);
		}


		#region Login Logout 的相关函数
		private void incrementProgressBarWhileLogin()
		{
			if(this.pgbLogin_Login.Value<=90)
				this.pgbLogin_Login.Value += 3;
			else
				this.pgbLogin_Login.Value = 0;
		}
		private void beforeShowProgressBarWhileLogin()
		{
			//开始验证，显示ProgessBar
			this.pgbLogin_Login.Value = 0;
			this.pgbLogin_Login.Visible = true;
		}
		private void afterShowProgressBarWhileLogin()
		{
			//验证完毕，停止ProcessBar并隐去
			this.pgbLogin_Login.Visible = false;
		}
		private void showProgressBarWhileLogin()
		{
			this.Invoke(new DelegateUIMethodWhileAsyncCall(this.beforeShowProgressBarWhileLogin));
			do
			{
				Thread.Sleep(20);
				this.Invoke(new DelegateUIMethodWhileAsyncCall(this.incrementProgressBarWhileLogin));
				if((this.m_asyncResultLogin!=null && this.m_asyncResultLogin.IsCompleted) || this.m_authTicket!=null)
					break;
			}while(true);
			this.Invoke(new DelegateUIMethodWhileAsyncCall(this.afterShowProgressBarWhileLogin));
		}
		private void RetriveCurrentUserInfoCallBack(IAsyncResult ar)
		{
			this.CurrentUserInfo = this.m_authSvc.EndGetUserInfo(ar);
		}
		/// <summary>
		/// 成功通过身份认证
		/// </summary>
		private void passAuthLogin()
		{
			//正确，则记录下用户名，并显示在“今日”页上
			this.lblWelcome_Home.Text += this.tbxUserName_Login.Text+"！";

			//隐藏登录panel，擦除密码，显示程序主panel
			this.pnlLogin.Visible = false;				
			this.tbxPassword_Login.Text = "";
			this.pnlAll.Visible = true;

			if(this.m_IsOnline)
			{
				this.m_authSvc.BeginGetUserInfo(this.m_authTicket,new AsyncCallback(this.RetriveCurrentUserInfoCallBack),m_authSvc);
			
				this.m_dataSvc.BeginGetMyRelatedShareInfo(this.m_authTicket,new AsyncCallback(this.getShareInfoCallBack),m_dataSvc);
			}

			this.tmrUpdateDB.Start();
		}
		/// <summary>
		/// 进行身份认证时失败
		/// </summary>
		private void failAuthLogin()
		{
			//错误，则擦除密码，显示lblError_Login
			//lblError_Login上的text可以按实际情况填写
			this.tbxPassword_Login.Text = "";
			this.tbxPassword_Login.Focus();
			this.lblError_Login.Visible = true;
		}
		private void authLoginAsyncCallBack(IAsyncResult ar)
		{
			try
			{
				AuthService l_authSvc = ar.AsyncState as AuthService;
				m_authTicket = this.m_authSvc.EndGetAuthorizationTicket(ar);
			}
			catch(Exception ex)
			{
				string str = ex.Message;
			}
			if(m_authTicket!=null)
			{
				this.Invoke(new DelegateUIMethodWhileAsyncCall(this.passAuthLogin));
			}
			else
			{
				this.Invoke(new DelegateUIMethodWhileAsyncCall(this.failAuthLogin));
			}
			//Application.DoEvents();
		}

		private void btnLogin_Login_Click(object sender, System.EventArgs e)
		{
			//验证用户名和密码是否正确
			//bool success = this.tbxPassword_Login.Text.Equals("jewelry");
			string username = this.tbxUserName_Login.Text;
			string password = this.tbxPassword_Login.Text;
			byte[] dataOfPwd = (new UnicodeEncoding()).GetBytes(password);
			byte[] hashValueOfPwd = ((HashAlgorithm) CryptoConfig.CreateFromName("MD5")).ComputeHash(dataOfPwd);
			password = BitConverter.ToString(hashValueOfPwd);

			//验证开始，显示processbar并活动
			Thread thread = new Thread(new ThreadStart(this.showProgressBarWhileLogin));
			thread.Start();

			if(this.m_IsOnline)
			{
				m_asyncResultLogin = m_authSvc.BeginGetAuthorizationTicket(username,password,new AsyncCallback(this.authLoginAsyncCallBack),m_authSvc);
			}
			else
			{
				m_asyncResultLogin = null;
				;
			}
		}

		private void miLogout_Click(object sender, System.EventArgs e)
		{
			//显示确认对话框
			if(DialogResult.Yes == MessageBox.Show(this, 
				"如果你正在脱机状态，系统可能无法完成你所做的操作。\n您确认要注销吗？",
				"注销 图书共享系统",
				MessageBoxButtons.YesNo,
				MessageBoxIcon.Question,
				MessageBoxDefaultButton.Button1))
			{
				//完成注销操作
				this.m_asyncResultLogin = null;
				this.m_authTicket = null;

				//...

				//隐藏主panel，显示登录panel
				this.pnlAll.Visible = false;
				this.pnlLogin.Visible = true;

				//将焦点移到username
				this.tbxUserName_Login.SelectAll();
				this.tbxUserName_Login.Focus();
			}
				

		}

		private void tbxUserName_Login_TextChanged(object sender, System.EventArgs e)
		{
			//如果username和password都输入了，则btnLogin可用，否则不可用
			this.enable_btnLogin();


			//其他必要的输入检验
		}

		private void tbxPassword_Login_TextChanged(object sender, System.EventArgs e)
		{
			//如果username和password都输入了，则btnLogin可用，否则不可用
			this.enable_btnLogin();

			//其他必要的输入检验
		
		}

		#endregion

		#region 首页相关的操作
		private void processTodayNotice()
		{
			this.ShowProgressBar("获取今日信息...");

			if(this.m_IsOnline)
			{
				//与当前用户相关的处于“BORROWED”状态的SHARE_INFO
				//当前用户作为ShareTo的书籍的所有处于Queue或Borrowed状态的Share_info
				DataSet ds = null;
				try
				{
					ds = this.m_dataSvc.GetMyHomeInfo(this.m_authTicket);
				}catch(Exception ex)
				{
					string str = ex.Message;
				}
				//DataSetShareInfo dsBook = this.m_dataSvc.GetBookCurrentShareInfo(this.m_authTicket,this.CurrentBookInfo.ID);

				if(ds == null)
					return;

				string content = "[@borrower] 向 [@owner] 借的 <<[@bookname]>> ,";
				string inplan = "还有 [@num] 天到期";
				string outplan = "已经过期 [@num] 天了";

				string mostDangerString = string.Empty;

				this.lstNotification.Items.Clear();

				if(ds.Tables["BorrowIn"].Rows.Count>0)
				{
					//借给当前用户的借阅信息
					string ColumnTitle = "您当前借阅的书籍包括;";

					ListViewItem lvi = new ListViewItem(ColumnTitle);
					lvi.ForeColor = System.Drawing.Color.Maroon;

					this.lstNotification.Items.Add(lvi);

					foreach(DataRow dr in ds.Tables["BorrowIn"].Rows)
					{
						string tmpContent = content.Replace("[@borrower]","您");
						tmpContent = tmpContent.Replace("[@owner]",dr["OwnerUsername"].ToString());
						tmpContent = tmpContent.Replace("[@bookname]",dr["BookNameChn"].ToString());

						int diff = ( (TimeSpan)(((DateTime)dr["PlanEndDate"]) - DateTime.Today) ).Days;
						string tmpPlan;
						if(diff>0)
							tmpPlan = inplan.Replace("[@num]",diff.ToString());
						else
							tmpPlan = outplan.Replace("[@num]",((int)(-diff)).ToString());

						string tmpFinal = "    "+tmpContent+tmpPlan;
						this.lstNotification.Items.Add( tmpFinal );

						if(mostDangerString.Length<tmpFinal.Length)
							mostDangerString = tmpFinal;

					}
					this.lstNotification.Items.Add(" ");
				}

				if(ds.Tables["BorrowOut"].Rows.Count>0)
				{
					//当前用户借出的借阅信息
					string ColumnTitle = "您当前出借的书籍包括;";

					ListViewItem lvi = new ListViewItem(ColumnTitle);
					lvi.ForeColor = System.Drawing.Color.Maroon;

					this.lstNotification.Items.Add(lvi);

					foreach(DataRow dr in ds.Tables["BorrowOut"].Rows)
					{
						string tmpContent = content.Replace("[@borrower]",dr["ReceiverUsername"].ToString());
						tmpContent = tmpContent.Replace("[@owner]","您");
						tmpContent = tmpContent.Replace("[@bookname]",dr["BookNameChn"].ToString());

						int diff = ( (TimeSpan)(((DateTime)dr["PlanEndDate"]) - DateTime.Today) ).Days;
						string tmpPlan;
						if(diff>0)
							tmpPlan = inplan.Replace("[@num]",diff.ToString());
						else
							tmpPlan = outplan.Replace("[@num]",((int)(-diff)).ToString());

						string tmpFinal = "    "+tmpContent+tmpPlan;
						this.lstNotification.Items.Add( tmpFinal );

						if(mostDangerString.Length<tmpFinal.Length)
							mostDangerString = tmpFinal;
					}
					this.lstNotification.Items.Add(" ");
				}


				if(ds.Tables["InQueue"].Rows.Count>0)
				{
					//当前用户所期待的书的借阅信息
					string ColumnTitle = "您即将借阅的书籍包括;";

					ListViewItem lvi = new ListViewItem(ColumnTitle);
					lvi.ForeColor = System.Drawing.Color.Maroon;

					this.lstNotification.Items.Add(lvi);

					foreach(DataRow dr in ds.Tables["InQueue"].Rows)
					{
						string tmpContent = content.Replace("[@borrower]",dr["ReceiverUsername"].ToString());
						tmpContent = tmpContent.Replace("[@owner]",dr["OwnerUsername"].ToString());
						tmpContent = tmpContent.Replace("[@bookname]",dr["BookNameChn"].ToString());

						int diff = ( (TimeSpan)(((DateTime)dr["PlanEndDate"]) - DateTime.Today) ).Days;
						string tmpPlan;
						if(diff>0)
							tmpPlan = inplan.Replace("[@num]",diff.ToString());
						else
							tmpPlan = outplan.Replace("[@num]",((int)(-diff)).ToString());

						string tmpFinal = "    "+tmpContent+tmpPlan;
						this.lstNotification.Items.Add( tmpFinal );

						if(mostDangerString.Length<tmpFinal.Length)
							mostDangerString = tmpFinal;
					}
					this.lstNotification.Items.Add(" ");
				}

				if(this.lstNotification.Items.Count>0)
				{
					Image image = Image.FromFile("UseToMessure.jpg");
					Graphics g = Graphics.FromImage(image);
					SizeF s = g.MeasureString(mostDangerString,this.lstNotification.Items[0].Font);
					g.Dispose();
					image.Dispose();

					this.lstNotification.Tag = mostDangerString;
					this.lstNotification.Columns[0].Width = (int)s.Width+1;//mostDangerString.Length*10;
				}

			}
			this.HideProgressBar();
		}

		private void processNewBooks()
		{
			this.ShowProgressBar("获取登入新书...");

			if(this.m_IsOnline)
			{
				DataSet ds = null;
				try
				{
					ds = this.m_dataSvc.GetNewBooks(this.m_authTicket);

					if(ds == null)
						return;

					string content = "[@Author] 所著的 <<[@BookNameChn]([@BookNameEng])>> 可以借阅了！\r\n如果有兴趣，可以联系 [@username] 网友";

					string mostDangerString = string.Empty;

					this.lstNewBooks.Items.Clear();

					if(ds.Tables["NewBooks"].Rows.Count>0)
					{
						//新登入的书籍
						foreach(DataRow dr in ds.Tables["NewBooks"].Rows)
						{
							string tmpContent = content.Replace("[@Author]",dr["Author"] as string);
							tmpContent = tmpContent.Replace("[@BookNameChn]",dr["BookNameChn"] as string);
							tmpContent = tmpContent.Replace("[@BookNameEng]",dr["BookNameEng"] as string);
							tmpContent = tmpContent.Replace("[@username]",dr["Username"] as string);

							this.lstNewBooks.Items.Add( tmpContent );

							if(mostDangerString.Length<tmpContent.Length)
								mostDangerString = tmpContent;

						}
						this.lstNewBooks.Items.Add(" ");

						Image image = Image.FromFile("UseToMessure.jpg");
						Graphics g = Graphics.FromImage(image);
						SizeF s = g.MeasureString(mostDangerString,this.lstNewBooks.Items[0].Font);
						g.Dispose();
						image.Dispose();

						this.lstNewBooks.Tag = mostDangerString;
						this.lstNewBooks.Columns[0].Width = (int)s.Width+1;//mostDangerString.Length*10;
					}
				}
				catch(Exception ex)
				{
					string str = ex.Message;
				}

			}
			this.HideProgressBar();
		}

		private void pnlHome_VisibleChanged(object sender, System.EventArgs e)
		{
			if(this.pnlHome.Visible)
			{
				//更新“今日提醒”
				this.processTodayNotice();

				//更新“登入新书”
				this.processNewBooks();
			}
		}
		#endregion 

		private void dgSearchResult_CurrentCellChanged(object sender, System.EventArgs e)
		{
			//在恰当pnlxxxDetail_SearchResult中显示当前选择的row
			switch(this.searchTypeCurrent)
			{
				case UISearchTypeEnum.BOOK://显示书籍
				{
					int idx = this.dgSearchResult.CurrentCell.RowNumber;
					DataRowView drv = this.DsBook.BOOK_INFO.DefaultView[idx];
					int id = (int)drv.Row["ID"];
					CurrentSelectedID = id;

					this.fill_book_detail(id);
					break;
				}
				case UISearchTypeEnum.USER://搜索用户
				{
					int idx = this.dgSearchResult.CurrentCell.RowNumber;
					DataRowView drv = this.DsUserInfo.USER_INFO.DefaultView[idx];
					int id = (int)drv.Row["ID"];
					CurrentSelectedID = id;

					this.fill_user_detail(CurrentSelectedID);
					break;
				}
				case UISearchTypeEnum.MESSAGE://搜索未读消息
				{
					int idx = this.dgSearchResult.CurrentCell.RowNumber;
					DataRowView drv = this.DsMessage.MESSAGE_INFO.DefaultView[idx];
					int id = (int)drv.Row["ID"];
					CurrentSelectedID = id;

					this.fill_message_detail(CurrentSelectedID);
					break;
				}
				case UISearchTypeEnum.HISTORY://搜索历史消息
				{
					int idx = this.dgSearchResult.CurrentCell.RowNumber;
					DataRowView drv = this.DsMessage.MESSAGE_INFO.DefaultView[idx];
					int id = (int)drv.Row["ID"];
					CurrentSelectedID = id;

					this.fill_message_detail(CurrentSelectedID);
					break;
				}
				case UISearchTypeEnum.LEND://搜索借出消息
				{
					int idx = this.dgSearchResult.CurrentCell.RowNumber;
					DataTable dt = this.dgSearchResult.DataSource as DataTable;
					if(dt == null)
						break;//error!

					DataRowView drv = dt.DefaultView[idx];
					int id = (int)drv.Row["ID"];
					CurrentSelectedID = id;

					this.fill_shareinfo_detail(CurrentSelectedID);
					break;
				}
				case UISearchTypeEnum.BORROW://搜索借入消息
				{
					int idx = this.dgSearchResult.CurrentCell.RowNumber;
					DataTable dt = this.dgSearchResult.DataSource as DataTable;
					if(dt == null)
						break;//error!

					DataRowView drv = dt.DefaultView[idx];
					int id = (int)drv.Row["ID"];
					CurrentSelectedID = id;

					this.fill_shareinfo_detail(CurrentSelectedID);
					break;
				}
				default:break;
			}
		}

		private void llbOwner_BookDetail_LinkClicked(object sender, System.Windows.Forms.LinkLabelLinkClickedEventArgs e)
		{
			int idx = this.dgSearchResult.CurrentCell.RowNumber;
			DataRowView drv = this.DsUserInfo.USER_INFO.DefaultView[idx];
			int id = (int)drv.Row["ID"];
			CurrentSelectedID = id;

			UserDetailFrm form = new UserDetailFrm(this,CurrentSelectedID);
			form.Show();
		
		}

		private void pnlBookDetail_SearchResult_VisibleChanged(object sender, System.EventArgs e)
		{
			//仅当pnlBookDetail_SearchResult可见时，“申请借阅”工具按钮可用
			this.tbbRequest.Enabled = this.pnlBookDetail_SearchResult.Visible;
		}


		#region 状态栏中的ProgressBar相关函数
		private void ShowProgressBar(string  message) 
		{
			// if the progressbar doesn't exist then create it
			if (m_ProgressBar == null)
			{
				m_ProgressBar = new ProgressBar();
				this.stbMain.Controls.Add(m_ProgressBar);
				m_ProgressBar.Width = 100;
				m_ProgressBar.Anchor = AnchorStyles.Right | AnchorStyles.Bottom;
				m_ProgressBar.Height = 16;
				m_ProgressBar.Location = new System.Drawing.Point((this.sbpAction.Width - m_ProgressBar.Width) - 10, ((this.stbMain.Height - m_ProgressBar.Height) / 2) + 1);
			}

			this.sbpAction.Text = message;
			m_ProgressBar.Visible = true;
			m_ProgressBar.Value = 0;

			// start a new thread to increment the progressbar
			Thread progressThread = new Thread(new ThreadStart(this.BackGroundIncrementProgressBar));
			progressThread.IsBackground = true;
			progressThread.Name = "Progress Bar";
			progressThread.Start();
		}

		private void BackGroundIncrementProgressBar() 
		{
			// note: this is run on a worker thread
			while (m_ProgressBar.Value != 100)
			{
				if (m_ProgressBar.Value < 80)
					m_ProgressBar.Value += 8;
				
				Thread.Sleep(100);
			}
		}

		private void HideProgressBar()
		{
			// this sleep code is only eye candy but note that we must set m_ProgressBar.value = 100
			// so that BackGroundIncrementProgressBar() can die
			int i;
			for (i = 0 ; i < 17; i++)
			{
				Thread.Sleep(30);
				Application.DoEvents();

				// show 100% for a glance
				if (i == 15)
					m_ProgressBar.Value = 100;
			}

			// clear the status bar
			m_ProgressBar.Visible = false;
			this.sbpAction.Text = string.Empty;
		}
		#endregion

		private void lkbRequestNew_LinkClicked(object sender, System.Windows.Forms.LinkLabelLinkClickedEventArgs e)
		{
			//搜索该用户的所有New Message
			int nRow = -1;

			//启动搜索进度条
			this.ShowProgressBar("正在获取回复申请数据");

			//显示MessageDetail阅读栏
			this.searchTypeCurrent = UISearchTypeEnum.MESSAGE;
			this.panel_detail_switch(pnlMessageDetail_SearchResult);

			// judge that current state is online or not
			if(this.m_IsOnline)
			{
				// if it is online...
				DataSetMessage dsMessage = this.m_dataSvc.GetMyNewMessages(this.m_authTicket);

				if(dsMessage!=null)
				{
					this.dgSearchResult.TableStyles.Clear();
					this.dgSearchResult.TableStyles.Add(BookCommunityClient.TableStyleGenerator.GetStyleForMessage());
				
					// merge the result into field
					this.DsMessage.Clear();
					this.DsMessage.Merge(dsMessage);

					this.dgSearchResult.DataSource = this.DsMessage.MESSAGE_INFO;//this.dataSet11.USER_INFO.DefaultView;
					nRow = this.DsMessage.MESSAGE_INFO.DefaultView.Count;//this.dataSet11.USER_INFO.DefaultView;

					//如果搜索结果不为空的话，详细显示第0个结果
					if(nRow>0)
					{
						CurrentSelectedID = (int)this.DsMessage.MESSAGE_INFO[0]["ID"];
						this.fill_message_detail(CurrentSelectedID);
					}
					else
					{
						CurrentSelectedID = -1;
						this.fill_message_detail(-1);
					}
				}
			}			
			else//offline
			{
				DataSetMessage dsMessage = (DataSetMessage)this.DsMessage.Copy();

				foreach(DataSetMessage.MESSAGE_INFORow rowIter in dsMessage.MESSAGE_INFO.Rows)
				{
					if(rowIter == null)
						continue;
					if(rowIter.HasRead==1 || rowIter.MessageTo!=this.CurrentUserInfo.ID)
					{//delete it because it isn't "My" "New" message.
						dsMessage.MESSAGE_INFO.RemoveMESSAGE_INFORow(rowIter);
					}
				}

				if(dsMessage!=null)
				{
					this.dgSearchResult.TableStyles.Clear();
					this.dgSearchResult.TableStyles.Add(BookCommunityClient.TableStyleGenerator.GetStyleForMessage());

					this.dgSearchResult.DataSource = dsMessage.MESSAGE_INFO;//this.dataSet11.USER_INFO.DefaultView;
					nRow = dsMessage.MESSAGE_INFO.DefaultView.Count;//this.dataSet11.USER_INFO.DefaultView;

					//如果搜索结果不为空的话，详细显示第0个结果
					if(nRow>0)
					{
						CurrentSelectedID = (int)dsMessage.MESSAGE_INFO[0]["ID"];
						this.fill_message_detail(CurrentSelectedID);
					}
					else
					{
						CurrentSelectedID = -1;
						this.fill_message_detail(-1);
					}
				}
			}

			//关闭搜索进度条
			this.HideProgressBar();

			//切换SearchResultPanel
			this.panel_switch(this.pnlSearchResult);
			this.lblCaption_SearchResult.Text = "回复请求";
		}

		private void lkbHistory_LinkClicked(object sender, System.Windows.Forms.LinkLabelLinkClickedEventArgs e)
		{
			//搜索该用户的所有New Message
			int nRow = -1;

			//启动搜索进度条
			this.ShowProgressBar("正在获取历史消息数据");

			//显示MessageDetail阅读栏
			this.searchTypeCurrent = UISearchTypeEnum.HISTORY;
			this.panel_detail_switch(pnlMessageDetail_SearchResult);

			// judge that current state is online or not
			if(this.m_IsOnline)
			{
				// if it is online...
				DataSetMessage dsMessage = this.m_dataSvc.GetMyMessages(this.m_authTicket);

				if(dsMessage!=null)
				{
					this.dgSearchResult.TableStyles.Clear();
					this.dgSearchResult.TableStyles.Add(BookCommunityClient.TableStyleGenerator.GetStyleForMessage());
				
					// merge the result into field
					this.DsMessage.Clear();
					this.DsMessage.Merge(dsMessage);

					this.dgSearchResult.DataSource = this.DsMessage.MESSAGE_INFO;//this.dataSet11.USER_INFO.DefaultView;
					nRow = this.DsMessage.MESSAGE_INFO.DefaultView.Count;//this.dataSet11.USER_INFO.DefaultView;

					//如果搜索结果不为空的话，详细显示第0个结果
					if(nRow>0)
					{
						CurrentSelectedID = (int)this.DsMessage.MESSAGE_INFO[0]["ID"];
						this.fill_message_detail(CurrentSelectedID);
					}
					else
					{
						CurrentSelectedID = -1;
						this.fill_message_detail(-1);
					}
				}
			}			
			else//offline
			{
				DataSetMessage dsMessage = (DataSetMessage)this.DsMessage.Copy();

				foreach(DataSetMessage.MESSAGE_INFORow rowIter in dsMessage.MESSAGE_INFO.Rows)
				{
					if(rowIter == null)
						continue;
					if(rowIter.MessageTo!=this.CurrentUserInfo.ID)
					{//delete it because it isn't "My" message.
						dsMessage.MESSAGE_INFO.RemoveMESSAGE_INFORow(rowIter);
					}
				}

				if(dsMessage!=null)
				{
					this.dgSearchResult.TableStyles.Clear();
					this.dgSearchResult.TableStyles.Add(BookCommunityClient.TableStyleGenerator.GetStyleForMessage());

					this.dgSearchResult.DataSource = dsMessage.MESSAGE_INFO;//this.dataSet11.USER_INFO.DefaultView;
					nRow = dsMessage.MESSAGE_INFO.DefaultView.Count;//this.dataSet11.USER_INFO.DefaultView;

					//如果搜索结果不为空的话，详细显示第0个结果
					if(nRow>0)
					{
						CurrentSelectedID = (int)dsMessage.MESSAGE_INFO[0]["ID"];
						this.fill_message_detail(CurrentSelectedID);
					}
					else
					{
						CurrentSelectedID = -1;
						this.fill_message_detail(-1);
					}
				}
			}

			//关闭搜索进度条
			this.HideProgressBar();

			//切换SearchResultPanel
			this.panel_switch(this.pnlSearchResult);
			this.lblCaption_SearchResult.Text = "历史消息";
		
		}

		internal void lkbLendList_LinkClicked(object sender, System.Windows.Forms.LinkLabelLinkClickedEventArgs e)
		{
			//搜索该用户的所有借出的SHARE_INFO
			int nRow = -1;

			//启动搜索进度条
			this.ShowProgressBar("正在获取借出的讯息");

			//显示MessageDetail阅读栏
			this.searchTypeCurrent = UISearchTypeEnum.LEND;
			this.panel_detail_switch(pnlShareDetail_SearchResult);

			// judge that current state is online or not
			if(this.m_IsOnline)
			{
				// if it is online...
				DataSetShareInfo dsShareInfo = this.m_dataSvc.GetMyRelatedShareInfo(this.m_authTicket);

				if(dsShareInfo!=null)
				{
					this.dgSearchResult.TableStyles.Clear();
					this.dgSearchResult.TableStyles.Add(BookCommunityClient.TableStyleGenerator.GetStyleForLendShareInfo());
								
					// merge the result into field
					//					this.DsShareInfo.Clear();
					this.DsShareInfo.Merge(dsShareInfo);
				}
			}
			else//offline
			{
			}

			DataRow[] rows = this.DsShareInfo.SHARE_INFO.Select("ShareFrom="+this.CurrentUserInfo.ID+" AND (Status='QUEUE' OR Status='BORROWED' OR Status='RETURNED')");
			DataTable dt = this.DsShareInfo.SHARE_INFO.Clone();
			foreach(DataRow rowIter in rows)
			{
				if(rowIter==null)
					continue;

				dt.ImportRow(rowIter);
			}
				
			this.dgSearchResult.DataSource = dt;//this.DsShareInfo.SHARE_INFO;//this.dataSet11.USER_INFO.DefaultView;
			nRow = dt.DefaultView.Count;//this.dataSet11.USER_INFO.DefaultView;
				
			//如果搜索结果不为空的话，详细显示第0个结果
			if(nRow>0)
			{
				CurrentSelectedID = (int)dt.Rows[0]["ID"];
				this.fill_shareinfo_detail(CurrentSelectedID);
			}
			else
			{
				CurrentSelectedID = -1;
				this.fill_shareinfo_detail(-1);
			}
				
					

			//关闭搜索进度条
			this.HideProgressBar();

			//切换SearchResultPanel
			this.panel_switch(this.pnlSearchResult);
			this.lblCaption_SearchResult.Text = "借出信息";
		}

		private void lkbBorrowList_LinkClicked(object sender, System.Windows.Forms.LinkLabelLinkClickedEventArgs e)
		{
			//搜索该用户的所有借入的SHARE_INFO
			int nRow = -1;

			//启动搜索进度条
			this.ShowProgressBar("正在获取借入的讯息");

			//显示MessageDetail阅读栏
			this.searchTypeCurrent = UISearchTypeEnum.BORROW;
			this.panel_detail_switch(pnlShareDetail_SearchResult);
			

			// judge that current state is online or not
			if(this.m_IsOnline)
			{
				// if it is online...
				DataSetShareInfo dsShareInfo = this.m_dataSvc.GetMyRelatedShareInfo(this.m_authTicket);

				if(dsShareInfo!=null)
				{
					this.dgSearchResult.TableStyles.Clear();
					this.dgSearchResult.TableStyles.Add(BookCommunityClient.TableStyleGenerator.GetStyleForBorrowShareInfo());
								
					// merge the result into field
//					this.DsShareInfo.Clear();
					this.DsShareInfo.Merge(dsShareInfo);

					DataRow[] rows = this.DsShareInfo.SHARE_INFO.Select("ShareTo="+this.CurrentUserInfo.ID+" AND (Status='QUEUE' OR Status='BORROWED' OR Status='RETURNED')");
					DataTable dt = this.DsShareInfo.SHARE_INFO.Clone();
					foreach(DataRow rowIter in rows)
					{
						if(rowIter==null)
							continue;

						dt.ImportRow(rowIter);
					}
				
					this.dgSearchResult.DataSource = dt;//this.DsShareInfo.SHARE_INFO;//this.dataSet11.USER_INFO.DefaultView;
					nRow = dt.DefaultView.Count;//this.dataSet11.USER_INFO.DefaultView;
				
					//如果搜索结果不为空的话，详细显示第0个结果
					if(nRow>0)
					{
						CurrentSelectedID = (int)dt.Rows[0]["ID"];
						this.fill_shareinfo_detail(CurrentSelectedID);
					}
					else
					{
						CurrentSelectedID = -1;
						this.fill_shareinfo_detail(-1);
					}
				}
			}			

			//关闭搜索进度条
			this.HideProgressBar();

			//切换SearchResultPanel
			this.panel_switch(this.pnlSearchResult);
			this.lblCaption_SearchResult.Text = "借入信息";

		}

		private void lkbAdvancedSearch_LinkClicked(object sender, System.Windows.Forms.LinkLabelLinkClickedEventArgs e)
		{
//			//搜索该用户的所有借入的SHARE_INFO
//			int nRow = -1;
//
//			//启动搜索进度条
//			this.ShowProgressBar("");

			//显示MessageDetail阅读栏
//			this.searchTypeCurrent = UISearchTypeEnum.BORROW;
//			this.panel_detail_switch(pnlShareDetail_SearchResult);


//			//关闭搜索进度条
//			this.HideProgressBar();

			//切换pnlAdvancedSearch
			this.panel_switch(this.pnlAdvancedSearch);

		}


		private void dgSearchResult_DoubleClick(object sender, System.EventArgs e)
		{

		}


		#region 数据库自动同步相关函数
		/// <summary>
		/// 进行内存中的数据与数据库的同步
		/// </summary>
		private void updateDataBaseWorker()
		{
			if(this.m_IsOnline)
			{
				try
				{
					if(this.DsBook.HasChanges())
					{
						// 同步书籍信息
						this.Invoke(new DelegateUIMethodWhileAsyncCallWithString(this.ShowProgressBar),new object[]{"正在同步[书籍信息]..."});

						DataSetBook ds = this.m_dataSvc.UpdateBookInfo(this.m_authTicket,this.DsBook);

						if(ds!=null)
						{
							this.DsBook.Clear();
							this.DsBook.Merge(ds);
						}

						this.Invoke(new DelegateUIMethodWhileAsyncCall(this.HideProgressBar));
					}

					if(this.DsMessage.HasChanges())
					{
						// 同步消息信息
						this.Invoke(new DelegateUIMethodWhileAsyncCallWithString(this.ShowProgressBar),new object[]{"正在同步[消息信息]..."});

						DataSet ds = this.DsMessage.GetChanges(DataRowState.Added);
						if(ds!=null && ds.Tables.Count>0 && ds.Tables[0].Rows.Count>0)
						{
							for(int i = 0 ; i < ds.Tables[0].Rows.Count ; i++)
							{
								DataRow row = ds.Tables[0].Rows[i];
								//只处理Status为Request的行
								if((row["MessageType"] as string)!=Enum.GetName(typeof(MessageTypeEnum),MessageTypeEnum.REQUEST))
									continue;

								int tmpShareInfoID = (row["ShareInfo"] is DBNull)?(0):((int)row["ShareInfo"]);
								// 我设置了一个负随机数作为临时内存绑定的id号，接下来需要先将ShareInfo插入，获取id后再更新本message
								if(tmpShareInfoID>=0)//??Error!
									continue;

								DataSetShareInfo.SHARE_INFORow rowShare = this.DsShareInfo.SHARE_INFO.FindByID(tmpShareInfoID);
								DataSetShareInfo dsResult = this.m_dataSvc.InsertSingleRequestShareInfo(this.m_authTicket,rowShare.Book,rowShare.ShareTo
									,rowShare.ShareFrom,rowShare.PlanBeginDate,rowShare.PlanEndDate);

								this.DsShareInfo.SHARE_INFO.RemoveSHARE_INFORow(rowShare);
								this.DsShareInfo.Merge(dsResult);

								this.DsMessage.MESSAGE_INFO[((int)row["ID"])].ShareInfo = (int)dsResult.SHARE_INFO[0]["ID"];
							}
						}

						DataSetMessage dsUpdateResult = this.m_dataSvc.UpdateMessageInfo(this.m_authTicket,this.DsMessage);

						if(dsUpdateResult!=null)
						{
							dsUpdateResult = this.m_dataSvc.GetMyNewMessages(this.m_authTicket);
							this.DsMessage.Clear();
							this.DsMessage.Merge(dsUpdateResult);
						}

						this.Invoke(new DelegateUIMethodWhileAsyncCall(this.HideProgressBar));
					}

					if(this.DsOnlineInfo.HasChanges())
					{
						// 同步在线资料信息
						this.Invoke(new DelegateUIMethodWhileAsyncCallWithString(this.ShowProgressBar),new object[]{"正在同步[在线资料信息]..."});

						DataSetOnlineInfo ds = this.m_dataSvc.UpdateOnlineInfo(this.m_authTicket,this.DsOnlineInfo);

						if(ds!=null)
						{
							this.DsOnlineInfo.Clear();
							this.DsOnlineInfo.Merge(ds);
						}

						this.Invoke(new DelegateUIMethodWhileAsyncCall(this.HideProgressBar));
					}

					if(this.DsShareInfo.HasChanges())
					{
						// 同步共享信息
						this.Invoke(new DelegateUIMethodWhileAsyncCallWithString(this.ShowProgressBar),new object[]{"正在同步[共享信息]..."});

						DataSetShareInfo ds = this.m_dataSvc.UpdateShareInfo(this.m_authTicket,this.DsShareInfo);

						if(ds!=null)
						{
							this.DsShareInfo.Clear();
							this.DsShareInfo.Merge(ds);
						}

						this.Invoke(new DelegateUIMethodWhileAsyncCall(this.HideProgressBar));
					}

					if(this.DsUserInfo.HasChanges())
					{
						// 同步用户信息
						this.Invoke(new DelegateUIMethodWhileAsyncCallWithString(this.ShowProgressBar),new object[]{"正在同步[用户信息]..."});

						DataSetUserInfo ds = this.m_dataSvc.UpdateUserInfo(this.m_authTicket,this.DsUserInfo);

						if(ds!=null)
						{
							this.DsUserInfo.Clear();
							this.DsUserInfo.Merge(ds);
						}

						this.Invoke(new DelegateUIMethodWhileAsyncCall(this.HideProgressBar));
					}
				}
				catch(Exception ex)
				{
					string str = ex.Message;
				}
			}
			else//offline...
			{
				this.DsBook.WriteXml(		MyDocuemntPathString+LocalDataXmlFiles.FileNameDataSetBook,			XmlWriteMode.WriteSchema);
				this.DsMessage.WriteXml(	MyDocuemntPathString+LocalDataXmlFiles.FileNameDataSetMessage,		XmlWriteMode.WriteSchema);
				this.DsOnlineInfo.WriteXml(	MyDocuemntPathString+LocalDataXmlFiles.FileNameDataSetOnlineInfo,	XmlWriteMode.WriteSchema);
				this.DsShareInfo.WriteXml(	MyDocuemntPathString+LocalDataXmlFiles.FileNameDataSetShareInfo,	XmlWriteMode.WriteSchema);
				this.DsUserInfo.WriteXml(	MyDocuemntPathString+LocalDataXmlFiles.FileNameDataSetUserInfo,		XmlWriteMode.WriteSchema);
			}

			this.Invoke(new DelegateUIMethodWhileAsyncCall(this.tmrUpdateDB.Start));
		}
		private void tmrUpdateDB_Tick(object sender, System.EventArgs e)
		{
			this.tmrUpdateDB.Stop();

			DelegateUIMethodWhileAsyncCall duwac = new DelegateUIMethodWhileAsyncCall(this.updateDataBaseWorker);
			duwac.BeginInvoke(null,null);

//			this.tmrUpdateDB.Start();
		}
		#endregion

		private void getShareInfoCallBack(IAsyncResult ar)
		{
			try
			{
				DataService dataSvc = ar.AsyncState as DataService;
				DataSetShareInfo ds = dataSvc.EndGetMyRelatedShareInfo(ar);

				this.DsShareInfo.Clear();
				this.DsShareInfo.Merge(ds);
			}
			catch(Exception ex)
			{
				string str = ex.Message;
			}
		}
		/// <summary>
		/// 初始化界面
		/// </summary>
		/// <param name="sender"></param>
		/// <param name="e"></param>
		private void MainFrm_Load(object sender, System.EventArgs e)
		{
			this.tmrUpdateDB.Interval = this.DataSetsAutoUpdateInterval;

			//首先检测是否有离线数据，无论是否在线都需要载入的
			if(File.Exists(MyDocuemntPathString+LocalDataXmlFiles.FileNameDataSetBook) &&
				File.Exists(MyDocuemntPathString+LocalDataXmlFiles.FileNameDataSetMessage) &&
				File.Exists(MyDocuemntPathString+LocalDataXmlFiles.FileNameDataSetOnlineInfo) &&
				File.Exists(MyDocuemntPathString+LocalDataXmlFiles.FileNameDataSetShareInfo) &&
				File.Exists(MyDocuemntPathString+LocalDataXmlFiles.FileNameDataSetUserInfo) )
			{
				this.DsBook.ReadXml(MyDocuemntPathString+LocalDataXmlFiles.FileNameDataSetBook,XmlReadMode.Auto);
				this.DsMessage.ReadXml(MyDocuemntPathString+LocalDataXmlFiles.FileNameDataSetMessage,XmlReadMode.Auto);
				this.DsOnlineInfo.ReadXml(MyDocuemntPathString+LocalDataXmlFiles.FileNameDataSetOnlineInfo,XmlReadMode.Auto);
				this.DsShareInfo.ReadXml(MyDocuemntPathString+LocalDataXmlFiles.FileNameDataSetShareInfo,XmlReadMode.Auto);
				this.DsUserInfo.ReadXml(MyDocuemntPathString+LocalDataXmlFiles.FileNameDataSetUserInfo,XmlReadMode.Auto);

				//?需要设置离线么？
				//this.m_IsOnline = false;
			}

			//online，所以需要上线更新数据
			if(this.m_IsOnline)
			{

				DelegateUIMethodWhileAsyncCall duwac = new DelegateUIMethodWhileAsyncCall(this.updateDataBaseWorker);
				duwac.BeginInvoke(null,null);

			}

			//this.tmrUpdateDB.Start();
		}

		private void dgSearchResult_MouseDown(object sender, System.Windows.Forms.MouseEventArgs e)
		{
			// 如果数据记录被双击的话，显示相应的对话框
			if(e.Clicks == 2 && e.Button == MouseButtons.Left)
			{
				if(DataGrid.HitTestType.Cell == this.dgSearchResult.HitTest(e.X, e.Y).Type)
				{
					//在恰当的新窗口中详细显示对应的纪录
					switch(this.searchTypeCurrent)
					{
						case UISearchTypeEnum.BOOK://显示书籍
						{
							//					int idx = this.dgSearchResult.CurrentCell.RowNumber;
							//					DataRowView drv = this.DsBook.BOOK_INFO.DefaultView[idx];
							//					int id = (int)drv.Row["ID"];
							//					CurrentSelectedID = id;
							//
							//					this.fill_book_detail(id);

							int idx = this.dgSearchResult.CurrentCell.RowNumber;
							DataRowView drv = this.DsBook.BOOK_INFO.DefaultView[idx];
							int id = (int)drv.Row["ID"];
							CurrentSelectedID = id;
							this.fill_book_detail(this.CurrentSelectedID);

							BookDetailFrm form = new BookDetailFrm(this,CurrentSelectedID);
							form.Show();
							break;
						}
						case UISearchTypeEnum.USER://搜索用户
						{
							//					int idx = this.dgSearchResult.CurrentCell.RowNumber;
							//					DataRowView drv = this.DsUserInfo.USER_INFO.DefaultView[idx];
							//					int id = (int)drv.Row["ID"];
							//					CurrentSelectedID = id;
							//
							//					this.fill_user_detail(id);

							int idx = this.dgSearchResult.CurrentCell.RowNumber;
							DataRowView drv = this.DsUserInfo.USER_INFO.DefaultView[idx];
							int id = (int)drv.Row["ID"];
							CurrentSelectedID = id;
							this.fill_user_detail(this.CurrentSelectedID);

							UserDetailFrm form = new UserDetailFrm(this, this.CurrentSelectedID);
							form.Show();
							break;
						}
						case UISearchTypeEnum.MESSAGE://搜索消息
						{
							//					int idx = this.dgSearchResult.CurrentCell.RowNumber;
							//					DataRowView drv = this.DsUserInfo.USER_INFO.DefaultView[idx];
							//					int id = (int)drv.Row["ID"];
							//					CurrentSelectedID = id;
							//
							//					this.fill_message_detail(id);

							int idx = this.dgSearchResult.CurrentCell.RowNumber;
							DataRowView drv = this.DsMessage.MESSAGE_INFO.DefaultView[idx];
							int id = (int)drv.Row["ID"];
							CurrentSelectedID = id;

							MessageFrm form = new MessageFrm(this,this.CurrentSelectedID);
							form.Show();
							break;
						}
						case UISearchTypeEnum.LEND://借出信息
						{
							//					int idx = this.dgSearchResult.CurrentCell.RowNumber;
							//					DataRowView drv = this.DsUserInfo.USER_INFO.DefaultView[idx];
							//					int id = (int)drv.Row["ID"];
							//					CurrentSelectedID = id;
							//
							//					this.fill_message_detail(id);

							//					DataSetMessage.MESSAGE_INFORow row = this.DsMessage.MESSAGE_INFO.FindByID(this.CurrentSelectedID);
							//					row.HasRead = 1;
							//					MessageFrm form = new MessageFrm(this,this.CurrentSelectedID);

							int idx = this.dgSearchResult.CurrentCell.RowNumber;
							DataTable dt = this.dgSearchResult.DataSource as DataTable;
							if(dt==null)
								return;
							DataRowView drv = dt.DefaultView[idx];
							int id = (int)drv.Row["ID"];
							CurrentSelectedID = id;

							ReturnFrm form = new ReturnFrm(this,this.CurrentSelectedID);
							form.Show();
							break;
						}
						case UISearchTypeEnum.BORROW://借入信息
						{
							//					int idx = this.dgSearchResult.CurrentCell.RowNumber;
							//					DataRowView drv = this.DsUserInfo.USER_INFO.DefaultView[idx];
							//					int id = (int)drv.Row["ID"];
							//					CurrentSelectedID = id;
							//
							//					this.fill_message_detail(id);

							//					DataSetMessage.MESSAGE_INFORow row = this.DsMessage.MESSAGE_INFO.FindByID(this.CurrentSelectedID);
							//					row.HasRead = 1;
							//					MessageFrm form = new MessageFrm(this,this.CurrentSelectedID);
							//					form.Show();

							int idx = this.dgSearchResult.CurrentCell.RowNumber;
							DataTable dt = this.dgSearchResult.DataSource as DataTable;
							if(dt==null)
								return;
							DataRowView drv = dt.DefaultView[idx];
							int id = (int)drv.Row["ID"];
							CurrentSelectedID = id;

							BorrowFrm form = new BorrowFrm(this,this.CurrentSelectedID);
							form.Show();
							break;
						}
						default:break;
					}
				}
			}
		}

		private void clearAdvSearch()
		{
			this.tbxAuthor_AdvSearch.Clear();
			this.tbxBookNameChn_AdvSearch.Clear();
			this.tbxBookNameEng_AdvSearch.Clear();
			this.tbxISBN_AdvSearch.Clear();
			this.tbxPress_AdvSearch.Clear();
			this.tbxSummary_AdvSearch.Clear();
			this.tbxTranslator_AdvSearch.Clear();
		}
		private void btnClear_AdvSearch_Click(object sender, System.EventArgs e)
		{
			this.clearAdvSearch();
		}

		private void btnSearch_AdvSearch_Click(object sender, System.EventArgs e)
		{
			if(!this.m_IsOnline)
			{
				MessageBox.Show("由于离线状态不支持搜索操作，因此我们很抱歉的通知您，您的搜索请求无法完成。","操作失败");
				return;
			}

			int nRow = -1;
			//启动搜索进度条
			this.ShowProgressBar("正在进行高级搜索...");

			//搜索书籍
			//显示BookDetail阅读栏						
			this.panel_detail_switch(pnlBookDetail_SearchResult);
			this.searchTypeCurrent = 0;

			// if it is online...

			DataSetBook dsBook = this.m_dataSvc.SearchBooksExactly(this.m_authTicket
				,this.tbxBookNameEng_AdvSearch.Text.Trim()
				,this.tbxBookNameChn_AdvSearch.Text.Trim()
				,this.tbxAuthor_AdvSearch.Text.Trim()
				,this.tbxTranslator_AdvSearch.Text.Trim()
				,this.tbxPress_AdvSearch.Text.Trim()
				,this.tbxISBN_AdvSearch.Text.Trim()
				,this.tbxSummary_AdvSearch.Text.Trim());

			if(dsBook!=null)
			{
				this.dgSearchResult.TableStyles.Clear();
				this.dgSearchResult.TableStyles.Add(BookCommunityClient.TableStyleGenerator.GetStyleForBook());

				// merge the result into field
				//this.DsBook.Clear();
				this.DsBook.Merge(dsBook);

				this.dgSearchResult.DataSource = this.DsBook.BOOK_INFO;//this.dataSet11.BOOK_INFO.DefaultView;
				nRow = this.DsBook.BOOK_INFO.DefaultView.Count;//this.dataSet11.BOOK_INFO.DefaultView.Count;

				//this.dgSearchResult.

				//如果搜索结果不为空的话，详细显示第0个结果
				if(nRow>0)
				{
					CurrentSelectedID = (int)this.DsBook.BOOK_INFO[0]["ID"];
				}
				else
				{
					CurrentSelectedID = -1;
				}
				this.fill_book_detail(CurrentSelectedID);
			}

			

			//关闭搜索进度条
			this.HideProgressBar();

			//切换SearchResultPanel
			this.panel_switch(this.pnlSearchResult);
		}

	}
}
