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


C# Member.Select_Member方法代码示例

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


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

示例1: Select_LowFare

        public Entity.LowFare[] Select_LowFare(string p_Search_Content, int p_Search_Method, int p_LowFare_Status, int p_PageSize, int p_PageIndex)
        {
            switch (p_Search_Method)
            {
                case 7:
                    {
                        BLL.Member b_Member = new Member();
                        Entity.Member o_Member = b_Member.Select_Member(1, p_Search_Content);
                        if (o_Member != null)
                            p_Search_Content = o_Member.Member_ID.ToString();
                        else
                            return null;
                    }
                    break;

                case 8:
                    {
                        BLL.Member b_Member = new Member();
                        Entity.Member o_Member = b_Member.Select_Member(2, p_Search_Content);
                        if (o_Member != null)
                            p_Search_Content = o_Member.Member_ID.ToString();
                        else
                            return null;
                    }
                    break;
            }

            DataTable o_DataTable = d_LowFare.Select_LowFare(p_Search_Content, p_Search_Method, p_LowFare_Status, p_PageSize, p_PageIndex, ref g_TotalCount, ref g_TotalPage);
            if (o_DataTable == null)
                return null;
            else
            {
                Entity.LowFare[] e_LowFare = new Entity.LowFare[o_DataTable.Rows.Count];

                int i = 0;
                foreach (DataRow o_DataRow in o_DataTable.Rows)
                {
                    e_LowFare[i] = new Entity.LowFare();
                    DateRow_LowFare(o_DataRow, e_LowFare[i]);

                    i++;
                }

                return e_LowFare;
            }
        }
开发者ID:hihua,项目名称:hihuacode,代码行数:46,代码来源:LowFare.cs

示例2: Select_Consumption

        public Entity.Consumption[] Select_Consumption(string p_Search_Content, int p_Search_Method, int p_Search_Year, int p_Search_Month, int p_PageSize, int p_PageIndex)
        {
            switch (p_Search_Method)
            {
                case 9:
                    {
                        BLL.Member b_Member = new Member();
                        Entity.Member o_Member = b_Member.Select_Member(1, p_Search_Content);
                        if (o_Member != null)
                        {
                            p_Search_Content = o_Member.Member_ID.ToString();
                            p_Search_Method = 9;
                        }
                        else
                            return null;
                    }
                    break;

                case 10:
                    {
                        BLL.Member b_Member = new Member();
                        Entity.Member o_Member = b_Member.Select_Member(2, p_Search_Content);
                        if (o_Member != null)
                        {
                            p_Search_Content = o_Member.Member_ID.ToString();
                            p_Search_Method = 9;
                        }
                        else
                            return null;
                    }
                    break;

                case 11:
                    {
                        BLL.Member b_Member = new Member();
                        Entity.Member o_Member = b_Member.Select_Member(1, p_Search_Content);
                        if (o_Member != null)
                        {
                            p_Search_Content = o_Member.Member_ID.ToString();
                            p_Search_Method = 10;
                        }
                        else
                            return null;
                    }
                    break;

                case 12:
                    {
                        BLL.Member b_Member = new Member();
                        Entity.Member o_Member = b_Member.Select_Member(2, p_Search_Content);
                        if (o_Member != null)
                        {
                            p_Search_Content = o_Member.Member_ID.ToString();
                            p_Search_Method = 10;
                        }
                        else
                            return null;
                    }
                    break;

                case 13:
                    {
                        BLL.AdminUser b_AdminUser = new AdminUser();
                        Entity.AdminUser o_AdminUser = b_AdminUser.Select_AdminUser(1, p_Search_Content);
                        if (o_AdminUser != null)
                        {
                            p_Search_Content = o_AdminUser.AdminUser_ID.ToString();
                            p_Search_Method = 11;
                        }
                        else
                            return null;
                    }
                    break;

                case 14:
                    {
                        BLL.AdminUser b_AdminUser = new AdminUser();
                        Entity.AdminUser o_AdminUser = b_AdminUser.Select_AdminUser(2, p_Search_Content);
                        if (o_AdminUser != null)
                        {
                            p_Search_Content = o_AdminUser.AdminUser_ID.ToString();
                            p_Search_Method = 11;
                        }
                        else
                            return null;
                    }
                    break;

                default:
                    break;
            }

            DataTable o_DataTable = d_Consumption.Select_Consumption(p_Search_Content, p_Search_Method, p_Search_Year, p_Search_Month, p_PageSize, p_PageIndex, ref g_TotalCount, ref g_TotalPage);
            if (o_DataTable == null)
                return null;
            else
            {
                Entity.Consumption[] e_Consumption = new Entity.Consumption[o_DataTable.Rows.Count];

                int i = 0;
//.........这里部分代码省略.........
开发者ID:hihua,项目名称:hihuacode,代码行数:101,代码来源:Consumption.cs

示例3: DateRow_LowFare

        private void DateRow_LowFare(DataRow p_DataRow, Entity.LowFare p_LowFare)
        {
            if (p_DataRow == null || p_LowFare == null)
                return;

            p_LowFare.LowFare_ID = Convert.ToInt32(p_DataRow["LowFare_ID"].ToString());
            p_LowFare.LowFare_Type = Convert.ToInt32(p_DataRow["LowFare_Type"].ToString());

            BLL.LowFare_Detail b_LowFare_Detail = new LowFare_Detail();
            Entity.LowFare_Detail[] e_LowFare_Detail = b_LowFare_Detail.Select_LowFare_Detail_LowFare_ID(Convert.ToInt32(p_DataRow["LowFare_Detail_ID"].ToString()), 1, 1);
            if (e_LowFare_Detail != null)
            {
                p_LowFare.LowFare_Detail_ID = new List<Entity.LowFare_Detail>();
                foreach (Entity.LowFare_Detail o_LowFare_Detail in e_LowFare_Detail)
                    p_LowFare.LowFare_Detail_ID.Add(o_LowFare_Detail);
            }

            p_LowFare.LowFare_Adults = Convert.ToInt32(p_DataRow["LowFare_Adults"].ToString());
            p_LowFare.LowFare_Children = Convert.ToInt32(p_DataRow["LowFare_Children"].ToString());
            p_LowFare.LowFare_Infants = Convert.ToInt32(p_DataRow["LowFare_Infants"].ToString());
            p_LowFare.LowFare_Passengers = p_DataRow["LowFare_Passengers"].ToString();
            p_LowFare.LowFare_Airline = p_DataRow["LowFare_Airline"].ToString();
            p_LowFare.LowFare_Class = p_DataRow["LowFare_Class"].ToString();

            BLL.Member b_Member = new Member();
            p_LowFare.LowFare_Member_ID = b_Member.Select_Member(Convert.ToInt32(p_DataRow["LowFare_Member_ID"].ToString()));

            BLL.AdminUser b_AdminUser = new AdminUser();
            p_LowFare.LowFare_AdminUser_ID = b_AdminUser.Select_AdminUser(Convert.ToInt32(p_DataRow["LowFare_AdminUser_ID"].ToString()));

            p_LowFare.LowFare_Status = Convert.ToInt32(p_DataRow["LowFare_Status"].ToString());
            p_LowFare.LowFare_AddTime = DateTime.Parse(p_DataRow["LowFare_AddTime"].ToString());
            p_LowFare.LowFare_SubmitTime = p_DataRow["LowFare_SubmitTime"].ToString();
        }
开发者ID:hihua,项目名称:hihuacode,代码行数:34,代码来源:LowFare.cs

示例4: DateRow_Consumption

        private void DateRow_Consumption(DataRow p_DataRow, Entity.Consumption p_Consumption)
        {
            if (p_DataRow == null || p_Consumption == null)
                return;

            p_Consumption.Consumption_ID = Convert.ToInt32(p_DataRow["Consumption_ID"].ToString());
            p_Consumption.Consumption_Serial = p_DataRow["Consumption_Serial"].ToString();
            p_Consumption.Consumption_Type = Convert.ToInt32(p_DataRow["Consumption_Type"].ToString());
            p_Consumption.Consumption_Src = p_DataRow["Consumption_Src"].ToString();
            p_Consumption.Consumption_Dest = p_DataRow["Consumption_Dest"].ToString();
            p_Consumption.Consumption_Price = Convert.ToInt32(p_DataRow["Consumption_Price"].ToString());
            p_Consumption.Consumption_DePrice = Convert.ToInt32(p_DataRow["Consumption_DePrice"].ToString());
            p_Consumption.Consumption_Points = Convert.ToInt32(p_DataRow["Consumption_Points"].ToString());
            p_Consumption.Consumption_Commission = Convert.ToInt32(p_DataRow["Consumption_Commission"].ToString());
            p_Consumption.Consumption_Date = DateTime.Parse(p_DataRow["Consumption_Date"].ToString());

            BLL.Member b_Member = new Member();
            p_Consumption.Consumption_Org_Member_ID = b_Member.Select_Member(Convert.ToInt32(p_DataRow["Consumption_Org_Member_ID"].ToString()));
            p_Consumption.Consumption_Com_Member_ID = b_Member.Select_Member(Convert.ToInt32(p_DataRow["Consumption_Com_Member_ID"].ToString()));

            BLL.AdminUser b_AdminUser = new AdminUser();
            p_Consumption.Consumption_Admin_ID = b_AdminUser.Select_AdminUser(Convert.ToInt32(p_DataRow["Consumption_Admin_ID"].ToString()));

            p_Consumption.Consumption_AddTime = DateTime.Parse(p_DataRow["Consumption_AddTime"].ToString());
            p_Consumption.Consumption_Remark = p_DataRow["Consumption_Remark"].ToString();
        }
开发者ID:hihua,项目名称:hihuacode,代码行数:26,代码来源:Consumption.cs


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