コード例 #1
0
        private void dgvannouncement_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
        {
            if (dgvRecord.CurrentRow == null)
            {
                return;
            }
            DataRow        dr = (this.dgvRecord.CurrentRow.DataBoundItem as DataRowView).Row;
            string         id = dr["announcement_id"].ToString();
            UCBulletinView uc = new UCBulletinView(dr, this.Name);

            base.addUserControl(uc, "公告管理-预览", "view" + id, this.Tag.ToString(), this.Name);
        }
コード例 #2
0
        // 预览
        void UC_ViewEvent(object sender, EventArgs e)
        {
            if (this.dgvRecord.CurrentRow == null)
            {
                MessageBoxEx.Show("请选择预览记录!", "提示", MessageBoxButtons.OK, MessageBoxIcon.Information);
                return;
            }
            DataRow        dr = (this.dgvRecord.CurrentRow.DataBoundItem as DataRowView).Row;
            string         id = dr["announcement_id"].ToString();
            UCBulletinView uc = new UCBulletinView(dr, this.Name);

            base.addUserControl(uc, "公告管理-浏览", "BulletinView" + id, this.Tag.ToString(), this.Name);
        }
コード例 #3
0
 private void dgvannouncement_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
 {
     if (dgvRecord.CurrentRow == null)
     {
         return;
     }
     DataRow dr = (this.dgvRecord.CurrentRow.DataBoundItem as DataRowView).Row;
     string id = dr["announcement_id"].ToString();
     UCBulletinView uc = new UCBulletinView(dr, this.Name);
     base.addUserControl(uc, "公告管理-预览", "view" + id, this.Tag.ToString(), this.Name);
 }
コード例 #4
0
 //单击事件
 private void UCAnnounceItem_Click(object sender, EventArgs e)
 {
     if (this.dr != null)
     {
         //进入公告页,显示公告               
         UCBulletinView ucAnnounce = new UCBulletinView(dr, SYSModel.clsSysConfig.STR_CS_MEMU_HOMEMANAGE);
         string tag = "BulletinView|BulletinView_001|BulletinView_002";
         UCBase.AddUserControl(ucAnnounce, "公告管理-预览", "BulletinView" + dr["announcement_id"].ToString(), tag, "");
     }
 }
コード例 #5
0
 // 预览       
 void UC_ViewEvent(object sender, EventArgs e)
 {
     if (this.dgvRecord.CurrentRow == null)
     {
         MessageBoxEx.Show("请选择预览记录!", "提示", MessageBoxButtons.OK, MessageBoxIcon.Information);
         return;
     }
     DataRow dr = (this.dgvRecord.CurrentRow.DataBoundItem as DataRowView).Row;
     string id = dr["announcement_id"].ToString();
     UCBulletinView uc = new UCBulletinView(dr, this.Name);
     base.addUserControl(uc, "公告管理-浏览", "BulletinView" + id, this.Tag.ToString(), this.Name);
 }