本文整理汇总了C#中BusinessObjects.MasterDataBLL.GetBulletinById方法的典型用法代码示例。如果您正苦于以下问题:C# MasterDataBLL.GetBulletinById方法的具体用法?C# MasterDataBLL.GetBulletinById怎么用?C# MasterDataBLL.GetBulletinById使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类BusinessObjects.MasterDataBLL
的用法示例。
在下文中一共展示了MasterDataBLL.GetBulletinById方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Page_Load
protected void Page_Load(object sender, EventArgs e)
{
base.Page_Load(sender, e);
try {
//��ȡURL���ݲ���
string strMode = this.Request.QueryString["mode"] == null ? "" : this.Request.QueryString["mode"].ToString();
string strID = this.Request.QueryString["id"] == null ? "" : this.Request.QueryString["id"].ToString();
//���ÿؼ�״̬
setControlStatus(strMode);
// ��ȡҳ��������Ϣ
if (!strMode.Equals("") && !strMode.Equals("add") && !strID.Equals("")) {
MasterDataBLL bll = new MasterDataBLL();
ERS.BulletinDataTable dt = bll.GetBulletinById(Convert.ToInt32(strID));
if (dt != null && dt.Count > 0) {
ERS.BulletinRow dr = dt[0];
txtTitle.Text = dr.BulletinTitle.ToString();
lblCreator.Text = dr.Creator.ToString();
lblCreateTime.Text = dr.CreateTime.ToString();
txtContent.Text = dr.BulletinContent.ToString();
}
}
} catch (Exception ex) {
PageUtility.DealWithException(this, ex);
}
}
示例2: Page_Load
protected void Page_Load(object sender, EventArgs e)
{
this.Page.Title = "ϵͳ����";
MasterDataBLL bll = new MasterDataBLL();
ERS.BulletinRow bulletin = bll.GetBulletinById(int.Parse(Request["ObjectId"]))[0];
this.BulletinTitleLabel.Text = bulletin.BulletinTitle;
this.BulletinContentCtl.Text = bulletin.BulletinContent;
this.CreateTimeLabel.Text = bulletin.CreateTime.ToString("yyyy-MM-dd");
if (!bulletin.IsAttachFileNameNull())
this.ViewUCFileUpload.AttachmentFileName = bulletin.AttachFileName;
if (!bulletin.IsRealAttachFileNameNull())
this.ViewUCFileUpload.RealAttachmentFileName = bulletin.RealAttachFileName;
}