コード例 #1
0
ファイル: ConferenceApplyForm.cs プロジェクト: Ato42/CMS
 /// <summary>
 /// 读取界面
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void ConferenceApplyForm_Load(object sender, EventArgs e)
 {
     GetStaff();
     dgvConMember.DataSource = dataset;
     List<TopicModel >  toplist = new List<TopicModel> ();
     toplist = userbll.GetUserTopic(emp);
     foreach (TopicModel top in toplist)
     {
         cmbTopic.Items.Add(top.TopicHead);
     }
     ConferenceAuditorBLL conabll = new ConferenceAuditorBLL();
     cmbHost.Text = conabll.GetAEmployee(emp.EmId).EmDepart;
     rdoInCon.Checked = true;
     rdoInCon_Click(null,null);
     rdoReg.Checked = true;
     rdoReg_Click(null,null);
 }
コード例 #2
0
ファイル: TopicManagementForm.cs プロジェクト: Ato42/CMS
 /// <summary>
 /// 读取议题信息
 /// </summary>
 /// <param name="statut">状态</param>
 /// <param name="statusDisplay">状态名称</param>
 /// <param name="dgvTopic">填充的表格</param>
 /// <param name="Name">列名前缀</param>
 /// <param name="query">查询的内容</param>
 private void load(char statut, string statusDisplay, DataGridView dgvTopic, string Name, string query)
 {
     try
     {
         dgvTopic.Rows.Clear();
         TopicAuditorBLL      Topic        = new TopicAuditorBLL();
         List <TopicModel>    TopicList    = new List <TopicModel>();
         ConferenceAuditorBLL GetAEmployee = new ConferenceAuditorBLL();
         TopicList = Topic.GetTopicInfo(query);
         int n = 0;
         foreach (TopicModel topic in TopicList)
         {
             if (topic.TopicStatus == statut)
             {
                 dgvTopic.Rows.Add();
                 dgvTopic.Rows[n].Cells[Name + "Id"].Value          = topic.TopicId;
                 dgvTopic.Rows[n].Cells[Name + "ApplicantId"].Value = topic.TopicApplicantId;
                 dgvTopic.Rows[n].Cells[Name + "Applicant"].Value   = GetAEmployee.GetAEmployee(topic.TopicApplicantId).EmName;
                 dgvTopic.Rows[n].Cells[Name + "SubTime"].Value     = topic.TopicSubTime;
                 if (topic.TopicStatus == '0')
                 {
                     dgvTopic.Rows[n].Cells[Name + "VerifyTime"].Value = "";
                 }
                 else
                 {
                     dgvTopic.Rows[n].Cells[Name + "VerifyTime"].Value = topic.TopicVerifyTime;
                 }
                 dgvTopic.Rows[n].Cells[Name + "Head"].Value    = topic.TopicHead;
                 dgvTopic.Rows[n].Cells[Name + "Content"].Value = topic.TopicContent;
                 dgvTopic.Rows[n].Cells[Name + "Status"].Value  = statusDisplay;
                 n++;
             }
         }
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message);
     }
 }
コード例 #3
0
ファイル: ConferenceAuditForm.cs プロジェクト: Ato42/CMS
        /// <summary>
        /// 在dgvAudit选中单元格时显示详细信息
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void dgvAudit_CellContentClick(object sender, DataGridViewCellEventArgs e)
        {
            string strConName = dgvAudit.CurrentRow.Cells["ColumnConId2"].Value.ToString();
            List <ConferenceModel> conlist = new List <ConferenceModel>();
            List <EmployeeModel>   inclist = new List <EmployeeModel>();

            conlist = auditbll.GetConferenceInfo(strConName);
            foreach (ConferenceModel con in conlist)
            {
                if (int.Parse(strConName) == con.ConId)
                {
                    inclist = exebll.GetInConMemberInfo(con);
                    cmbRecMan.Items.Clear();
                    foreach (EmployeeModel em in inclist)
                    {
                        cmbRecMan.Items.Add(em.EmName);
                    }
                    cmbRecMan.Text      = auditbll.GetAEmployee(con.ConRecordMen).EmName;
                    cmbRecMan.Enabled   = false;
                    cmbStaffMan.Text    = auditbll.GetAEmployee(con.ConStaffMen).EmName;
                    cmbStaffMan.Enabled = false;

                    txtConId.Text        = con.ConId.ToString();
                    txtConId.Enabled     = false;
                    cmbHost.SelectedItem = con.ConHost;
                    cmbTopic.Text        = con.ConName;
                    cmbTopic.Enabled     = false;
                    rtxRemarks2.Text     = con.ConOthers;
                    if (con.ConRegister == '0')
                    {
                        txtReg.Text = "不用签到";
                    }
                    else
                    {
                        txtReg.Text = "需要签到";
                    }
                    txtReg.Enabled = false;
                    if (con.ConType == '0')
                    {
                        txtType.Text = "内部会议";
                    }
                    else
                    {
                        txtType.Text = "外部会议";
                    }
                    txtType.Enabled = false;
                    List <BoardroomModel> bdrlist = new List <BoardroomModel>();
                    bdrlist = auditbll.GetBoardroomInfo(con.ConPlace.ToString());
                    foreach (BoardroomModel bdr in bdrlist)
                    {
                        cmbPlace.Text = bdr.BdrName;
                    }
                    List <ResourceModel> reslist = new List <ResourceModel>();
                    reslist = auditbll.GetConUseResourceInfo(con.ConId);
                    lstStaff2.Items.Clear();
                    foreach (ResourceModel res in reslist)
                    {
                        lstStaff2.Items.Add(res.ResourceId + "  " + res.ResourceClass);
                    }
                }
            }
        }