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


C# ClsBAL.GetSourcesDests方法代码示例

本文整理汇总了C#中BAL.ClsBAL.GetSourcesDests方法的典型用法代码示例。如果您正苦于以下问题:C# ClsBAL.GetSourcesDests方法的具体用法?C# ClsBAL.GetSourcesDests怎么用?C# ClsBAL.GetSourcesDests使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在BAL.ClsBAL的用法示例。


在下文中一共展示了ClsBAL.GetSourcesDests方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: BindSourcesDests

    protected void BindSourcesDests()
    {
        try
        {
            objBAL = new ClsBAL();
            ObjDataset = (DataSet)objBAL.GetSourcesDests();
            if (ObjDataset != null)
            {
                if (ObjDataset.Tables.Count > 0)
                {
                    if (ObjDataset.Tables[0].Rows.Count > 0)
                    {
                        ddllocation.DataSource = ObjDataset.Tables[0];
                        ddllocation.DataTextField = "SourceName";
                        ddllocation.DataBind();
                        ddllocation.Items.Insert(0, "ALL");

                    }

                }
            }

        }
        catch (Exception ex)
        {

            throw ex;
        }
    }
开发者ID:srisai339,项目名称:LoveJourney_Working,代码行数:29,代码来源:HomeDelivery.aspx.cs

示例2: BindSourcesDests

    protected void BindSourcesDests()
    {
        try
        {
            objBAL = new ClsBAL();
            ObjDataset = (DataSet)objBAL.GetSourcesDests();
            if (ObjDataset != null)
            {
                if (ObjDataset.Tables.Count > 0)
                {
                    if (ObjDataset.Tables[0].Rows.Count > 0)
                    {
                        ddlSources.DataSource = ObjDataset.Tables[0];
                        ddlSources.DataTextField = "SourceName";
                        ddlSources.DataBind();
                        ddlSources.Items.Insert(0, "ALL");

                    }
                    if (ObjDataset.Tables[1].Rows.Count > 0)
                    {
                        ddlDestinations.DataSource = ObjDataset.Tables[1];
                        ddlDestinations.DataTextField = "DestinationName";
                        ddlDestinations.DataBind();
                        ddlDestinations.Items.Insert(0, "ALL");
                    }
                    if (ObjDataset.Tables[2].Rows.Count > 0)
                    {
                        ddloperator.DataSource = ObjDataset.Tables[2];
                        ddloperator.DataTextField = "TravelOPName";
                        ddloperator.DataBind();
                        ddloperator.Items.Insert(0, "ALL");
                    }
                }
            }

        }
        catch (Exception ex)
        {

            throw ex;
        }
    }
开发者ID:srisai339,项目名称:LoveJourney_Working,代码行数:42,代码来源:TentativeBooking.aspx.cs

示例3: BindSourcesDests

 protected void BindSourcesDests()
 {
     try
     {
         ClsBAL objManabusBAL = new ClsBAL();
         DataSet ObjDataset = (DataSet)objManabusBAL.GetSourcesDests();
         if (ObjDataset != null)
         {
             if (ObjDataset.Tables.Count > 0)
             {
                 if (ObjDataset.Tables[0].Rows.Count > 0)
                 {
                     ddlSources.DataSource = ObjDataset.Tables[0];
                     ddlSources.DataTextField = "SourceName";
                     ddlSources.DataBind();
                     ddlSources.Items.Insert(0, "ALL");
                 }
                 if (ObjDataset.Tables[1].Rows.Count > 0)
                 {
                     ddlDestinations.DataSource = ObjDataset.Tables[1];
                     ddlDestinations.DataTextField = "DestinationName";
                     ddlDestinations.DataBind();
                     ddlDestinations.Items.Insert(0, "ALL");
                 }
                 //if (ObjDataset.Tables[2].Rows.Count > 0)
                 //{
                 //    ddlOperator.DataSource = ObjDataset.Tables[2];
                 //    ddlOperator.DataTextField = "TravelOPName";
                 //    ddlOperator.DataBind();
                 //    ddlOperator.Items.Insert(0, "ALL");
                 //}
             }
         }
     }
     catch (Exception ex)
     {
         lblMsg.InnerHtml = ex.Message;
         throw ex;
     }
 }
开发者ID:srisai339,项目名称:LoveJourney_Working,代码行数:40,代码来源:UserReport.aspx.cs


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