コード例 #1
0
        public FormPersonnelArchiveList(AuthorityFlag authFlag, string cardID)
        {
            InitializeComponent();

            m_authFlag = authFlag;
            AuthorityControl(m_authFlag);

            m_personnelArchive = m_personnerServer.GetPersonnelArchiveByCardID(cardID);

            if (m_personnelArchive != null)
            {
                BindControl();

                新建toolStripButton1.Visible = true;
            }
            else
            {
                MessageDialog.ShowPromptMessage("没有身份证为【" + cardID + "】的员工档案信息!");
                this.Close();
                return;
            }
        }