当前位置: 首页>>代码示例>>C#>>正文


C# MasterDataBLL.GetRejectReason方法代码示例

本文整理汇总了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("&nbsp;&nbsp;"));

        //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";
//.........这里部分代码省略.........
开发者ID:hijoy,项目名称:VSL_ERS,代码行数:101,代码来源:APFlowNodes.ascx.cs


注:本文中的BusinessObjects.MasterDataBLL.GetRejectReason方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。