本文整理汇总了C#中BusinessObjects.MasterDataBLL.GetRejectReason方法的典型用法代码示例。如果您正苦于以下问题:C# MasterDataBLL.GetRejectReason方法的具体用法?C# MasterDataBLL.GetRejectReason怎么用?C# MasterDataBLL.GetRejectReason使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类BusinessObjects.MasterDataBLL
的用法示例。
在下文中一共展示了MasterDataBLL.GetRejectReason方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: createEditTableCell
private TableCell createEditTableCell(DataRow dr)
{
TableCell tcTemp = new TableCell();
tcTemp.Attributes.Add("class", "FlowBg_now");//�˴���ӵ��ǵ�ǰ�����cell
Label lblRegionCaption = new Label();
lblRegionCaption.Text = DBNullConverter.ToStr(dr["RegionCaption"]);
lblRegionCaption.ID = "lblRegionCaption";
lblRegionCaption.Attributes.Add("class", "TxtB");
tcTemp.Controls.Add(lblRegionCaption);
tcTemp.Controls.Add(new LiteralControl("<br><br>"));
Label lblApproverEx = new Label();
if (DBNullConverter.ToInt32(dr["OnError"]) == 1)
lblApproverEx.Text = "������:";
else
lblApproverEx.Text = "������:";
lblApproverEx.Attributes.Add("class", "TxtB");
tcTemp.Controls.Add(lblApproverEx);
Label lblApprover = new Label();
lblApprover.ID = "lblApprover";
lblApprover.Text = DBNullConverter.ToStr(dr["Approver"]);
tcTemp.Controls.Add(lblApprover);
tcTemp.Controls.Add(new LiteralControl("<br><br>"));
Label lblrequiredLable = new Label();
lblrequiredLable.Text = "*";
lblrequiredLable.ForeColor = System.Drawing.Color.Red;
tcTemp.Controls.Add(lblrequiredLable);
Label lblStatus = new Label();
lblStatus.ID = "lblStatus";
lblStatus.Text = "����״̬:" + setHighLight(dr["IsOutTime"].ToString());
lblStatus.Attributes.Add("class", "TxtB");
tcTemp.Controls.Add(lblStatus);
tcTemp.Controls.Add(new LiteralControl("<br><br>"));
//Dim radApprove As RadioButton = New RadioButton
radApprove.ID = "radApprove";
if (DBNullConverter.ToInt32(dr["OnError"]) == 1)
radApprove.Text = "���Իָ�";
else {
radApprove.Text = "ͬ��";
radApprove.CheckedChanged += new EventHandler(radApprove_CheckedChanged);
}
radApprove.GroupName = "gnStatus";
radApprove.Checked = true;
radApprove.AutoPostBack = true;
tcTemp.Controls.Add(radApprove);
tcTemp.Controls.Add(new LiteralControl("<br><br>"));
//Dim radReject As RadioButton = New RadioButton
radReject.ID = "radReject";
if (DBNullConverter.ToInt32(dr["OnError"]) == 1)
radReject.Text = "�˻ص���";
else {
radReject.Text = "�ܾ�";
radReject.CheckedChanged += new EventHandler(radApprove_CheckedChanged);
}
radReject.GroupName = "gnStatus";
radReject.AutoPostBack = true;
tcTemp.Controls.Add(radReject);
tcTemp.Controls.Add(new LiteralControl(" "));
//if (radReject.Checked)
//{
// lblRejectReason.Text = "Reject Reason:";
// lblRejectReason.ID = "lblRejectReason";
// lblRejectReason.Attributes.Add("class", "TxtB");
// lblRejectReason.Visible = false;
// tcTemp.Controls.Add(lblRejectReason);
// tcTemp.Controls.Add(new LiteralControl("<br><br>"));
ddlReject.ID = "ddlReject";
ddlReject.Width = new Unit("142px");
ddlReject.Visible = false;
ddlReject.DataValueField = "RejectReasonId";
ddlReject.DataTextField = "RejectReasonTitle";
ddlReject.AutoPostBack = true;
//RejectReasonBLL bll = new RejectReasonBLL();
if (DBNullConverter.ToInt32(dr["OnError"]) == 1) {
tcTemp.Controls.Add(new LiteralControl("<br><br>"));
} else {
MasterDataBLL bll = new MasterDataBLL();
ddlReject.DataSource = bll.GetRejectReason();
ddlReject.DataBind();
ddlReject.Items.Insert(0, new ListItem("---����ѡ��---", ""));
ddlReject.SelectedIndexChanged += new EventHandler(ddlReject_SelectedIndexChanged);
tcTemp.Controls.Add(ddlReject);
tcTemp.Controls.Add(new LiteralControl("<br><br>"));
Label lblComments = new Label();
lblComments.Text = "�������:";
lblComments.ID = "lblComments";
lblComments.Attributes.Add("class", "TxtB");
tcTemp.Controls.Add(lblComments);
tcTemp.Controls.Add(new LiteralControl("<br><br>"));
}
txtComments.ID = "txtComments";
//.........这里部分代码省略.........