예제 #1
0
        /// <summary>
        /// 查找采购员
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void btnFindBuyer_Click(object sender, EventArgs e)
        {
            m_formUser = new FormPersonnel(txtBuyer, "CG", "姓名");
            m_formUser.ShowDialog();

            txtBuyer.Tag = m_formUser.UserCode;
        }
예제 #2
0
        private void btnFindDesigner_Click(object sender, EventArgs e)
        {
            FormPersonnel form = new FormPersonnel(txtDesigner, "姓名");

            form.ShowDialog();

            txtDesigner.Tag = form.UserCode;
        }
예제 #3
0
        /// <summary>
        /// 获取人员信息
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void btnFindPersonnel_Click(object sender, EventArgs e)
        {
            FormPersonnel form = new FormPersonnel(txtPersonnelName);

            form.ShowDialog();

            txtPersonnelName.Tag = form.UserCode;
        }
 private void btnFindBuyer_Click(object sender, EventArgs e)
 {
     m_strOldPersonnelID = txtPersonnel.Tag.ToString();
     m_formUser          = null;
     m_formUser          = new FormPersonnel(txtPersonnel);
     m_formUser.ShowDialog();
     txtPersonnel.Tag = m_formUser.UserCode;
 }
        private void btnFind_Click(object sender, EventArgs e)
        {
            FormPersonnel form = new FormPersonnel(txtAssembler, GlobalObject.BasicInfo.DeptCode, "姓名");

            form.ShowDialog();

            txtAssembler.Tag = form.UserCode;
        }
예제 #6
0
        /// <summary>
        /// 查找人员
        /// </summary>
        private void btnFindCode(DataGridViewRow row)
        {
            FormPersonnel form = new FormPersonnel(row.Cells["姓名"], "姓名");

            form.ShowDialog();

            row.Cells["工号"].Value = form.UserCode;
            row.Cells["姓名"].Value = form.UserName;
        }
예제 #7
0
        private void btnFindChecker_Click(object sender, EventArgs e)
        {
            if (!BasicInfo.ListRoles.Contains(CE_RoleEnum.自制件检验组长.ToString()) &&
                !BasicInfo.ListRoles.Contains(CE_RoleEnum.电子检验组长.ToString()))
            {
                return;
            }

            FormPersonnel form = new FormPersonnel(txtChecker, BasicInfo.DeptCode, "姓名");

            form.ShowDialog();
        }
        private void btPersonnel_Click(object sender, EventArgs e)
        {
            FormPersonnel formPersonnel = new FormPersonnel();

            formPersonnel.ShowDialog();
        }