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


C# Addr_OrganizeCityBLL.GetAllChildNodeIDs方法代码示例

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


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

示例1: BindData

    public void BindData()
    {
        string condition = "";
        DateTime dtBegin = DateTime.Parse(this.tbx_begin.Text);
        DateTime dtEnd = DateTime.Parse(this.tbx_end.Text).AddDays(1);

        condition = "HR_ZhaoPinApply.InsertTime BETWEEN '" + dtBegin.ToString("yyyy-MM-dd") + "' AND '" + dtEnd.ToString("yyyy-MM-dd") + "' ";
        if (tr_OrganizeCity.SelectValue != "1")
        {
            Addr_OrganizeCityBLL orgcity = new Addr_OrganizeCityBLL(int.Parse(tr_OrganizeCity.SelectValue));
            string orgcitys = orgcity.GetAllChildNodeIDs();
            if (orgcitys != "") orgcitys += ",";
            orgcitys += tr_OrganizeCity.SelectValue;

            condition += " AND HR_ZhaoPinApply.OrganizeCity IN (" + orgcitys + ")";
        }

        if (tr_Position.SelectValue != "0")
        {
            condition += " AND HR_ZhaoPinApply.sqgw =" + tr_Position.SelectValue;
        }

        //Response.Write(condition);
        gv_List.ConditionString = condition;
        gv_List.BindGrid();
    }
开发者ID:fuhongliang,项目名称:GraduateProject,代码行数:26,代码来源:ZhaoPinApplyList.aspx.cs

示例2: Page_Load

    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            ViewState["Type"] = Request.QueryString["Type"] == null ? 0 : int.Parse(Request.QueryString["Type"]); //客户类型,1:公司仓库 2:经销商 3:终端门店

            #region 设置页面Title
            if ((int)ViewState["Type"] == 1)
                lb_PageTitle.Text = "办事处出货查询";
            else if ((int)ViewState["Type"] == 2)
                lb_PageTitle.Text = "经销商出货查询";
            else if ((int)ViewState["Type"] == 3)
                lb_PageTitle.Text = "零售商销量查询";
            else if ((int)ViewState["Type"] == 4)
                lb_PageTitle.Text = "办事处进货查询";
            #endregion

            AdvancedSearch1.ExtCondition = "SVM_SalesVolume.Type=" + ViewState["Type"].ToString();

            #region 判断当前可查询的范围
            Org_StaffBLL staff = new Org_StaffBLL((int)Session["UserID"], true);

            if (staff.Model.OrganizeCity > 1)
            {
                Addr_OrganizeCityBLL orgcity = new Addr_OrganizeCityBLL(staff.Model.OrganizeCity, true);
                string orgcitys = orgcity.GetAllChildNodeIDs();
                if (orgcitys != "") orgcitys += ",";
                orgcitys += staff.Model.OrganizeCity.ToString();

                AdvancedSearch1.ExtCondition += " AND SVM_SalesVolume.OrganizeCity IN (" + orgcitys + ")";
            }
            #endregion
        }
    }
开发者ID:fuhongliang,项目名称:GraduateProject,代码行数:34,代码来源:SalesVolumeAdvanceFind.aspx.cs

示例3: BindGrid

    private void BindGrid()
    {
        string condition = " 1=1 ";

        #region 组织查询条件
        if (string.IsNullOrEmpty(tr_OrganizeCity.SelectValue) && tr_OrganizeCity.SelectValue != "0")
        {
            //管理片区及所有下属管理片区
            Addr_OrganizeCityBLL orgcity = new Addr_OrganizeCityBLL(int.Parse(tr_OrganizeCity.SelectValue));
            string orgcitys = orgcity.GetAllChildNodeIDs();
            if (orgcitys != "") orgcitys += ",";
            orgcitys += tr_OrganizeCity.SelectValue;

            condition += " AND ORD_OrderDelivery.OrganizeCity IN (" + orgcitys + ")";
        }

        //会计月条件
        condition += " AND ORD_OrderDelivery.AccountMonth = " + ddl_Month.SelectedValue;

        //申请单号
        if (tbx_SheetCode.Text != "")
        {
            condition += " AND ORD_OrderDelivery.SheetCode like '%" + tbx_SheetCode.Text + "%'";
        }

        //审批状态
        if (ddl_State.SelectedValue != "0")
        {
            condition += " AND ORD_OrderDelivery.State = " + ddl_State.SelectedValue;
        }
        #endregion
           // gv_List.ConditionString = condition;
        gv_List.BindGrid();
    }
开发者ID:fuhongliang,项目名称:GraduateProject,代码行数:34,代码来源:OrderDeliveryList.aspx.cs

示例4: BindGrid

    private void BindGrid()
    {
        string condition = "1=1";

        #region 组织查询条件
        //管理片区及所有下属管理片区
        if (tr_OrganizeCity.SelectValue != "1")
        {
            Addr_OrganizeCityBLL orgcity = new Addr_OrganizeCityBLL(int.Parse(tr_OrganizeCity.SelectValue));
            string orgcitys = orgcity.GetAllChildNodeIDs();
            if (orgcitys != "") orgcitys += ",";
            orgcitys += tr_OrganizeCity.SelectValue;
            condition += " AND FNA_StaffSalary.OrganizeCity IN (" + orgcitys + ")";
        }

        //会计月条件
        condition += " AND FNA_StaffSalary.AccountMonth Between " + ddl_BeginMonth.SelectedValue;
        condition += " AND " + ddl_EndMonth.SelectedValue;

        //审批状态
        if (ddl_State.SelectedValue != "0")
        {
            condition += " AND FNA_StaffSalary.State = " + ddl_State.SelectedValue;
        }
        #endregion

        gv_List.ConditionString = condition;
        gv_List.BindGrid();
    }
开发者ID:fuhongliang,项目名称:GraduateProject,代码行数:29,代码来源:StaffSalaryList.aspx.cs

示例5: BindGrid

    public void BindGrid()
    {
        string condition = " 1 = 1 ";

        #region 判断当前可查询的范围
        if (tr_OrganizeCity.SelectValue != "1")
        {
            Addr_OrganizeCityBLL orgcity = new Addr_OrganizeCityBLL(int.Parse(tr_OrganizeCity.SelectValue));
            string orgcitys = orgcity.GetAllChildNodeIDs();
            if (orgcitys != "") orgcitys += ",";
            orgcitys += tr_OrganizeCity.SelectValue;

            if (orgcitys != "") condition += " AND OrganizeCity IN (" + orgcitys + ")";
        }

        if (tr_Position.SelectValue != "1")
        {
            Org_PositionBLL org_position = new Org_PositionBLL(int.Parse(tr_Position.SelectValue));
            string positions = org_position.GetAllChildPosition();
            if (positions != "") positions += ",";
            positions += tr_Position.SelectValue;

            if (positions != "") condition += " AND Position IN (" + positions + ")";
        }
        #endregion

        gv_List.BindGrid(Org_StaffNumberLimitBLL.GetModelList(condition));
    }
开发者ID:fuhongliang,项目名称:GraduateProject,代码行数:28,代码来源:Org_StaffNumberLimit.aspx.cs

示例6: bt_Refresh_Click

    protected void bt_Refresh_Click(object sender, EventArgs e)
    {
        string orgcitys = "";
        if (tr_OrganizeCity.SelectValue != "0")
        {
            Addr_OrganizeCityBLL orgcity = new Addr_OrganizeCityBLL(int.Parse(tr_OrganizeCity.SelectValue), true);
            orgcitys = orgcity.GetAllChildNodeIDs();
            if (orgcitys != "") orgcitys += ",";
            orgcitys += tr_OrganizeCity.SelectValue;
        }
        else
        {
            MessageBox.Show(this, "请选择要查询的管理片区!");
            return;
        }

        ReportParameter[] _parms = {
            new ReportParameter("OrganizeCitys", orgcitys),
            new ReportParameter("BeginMonth", ddl_BeginMonth.SelectedValue),
            new ReportParameter("EndMonth", ddl_EndMonth.SelectedValue)
        };

        ReportViewer1.ServerReport.ReportServerCredentials = new MCSReportServerCredentials();
        ReportViewer1.ServerReport.ReportPath = ViewState["ReportPath"].ToString();
        ReportViewer1.ServerReport.ReportServerUrl = new Uri(ViewState["ReportServerUrl"].ToString());
        ReportViewer1.ServerReport.SetParameters(_parms);
           // ReportViewer1.ServerReport.Refresh();
    }
开发者ID:fuhongliang,项目名称:GraduateProject,代码行数:28,代码来源:PubReportViewer01.aspx.cs

示例7: BindGrid

    private void BindGrid()
    {
        string condition = "1=1";

        #region 组织查询条件
        if (chb_ToOrganizecityChild.Checked)
        {
            Addr_OrganizeCityBLL orgcity = new Addr_OrganizeCityBLL(int.Parse(tr_OrganizeCity.SelectValue));
            string orgcitys = orgcity.GetAllChildNodeIDs();
            if (orgcitys != "") orgcitys += ",";
            orgcitys += tr_OrganizeCity.SelectValue;
            condition += " AND PDT_StandardPrice.OrganizeCity IN (" + orgcitys + ")";
        }
        else
        {
            condition += " AND PDT_StandardPrice.OrganizeCity=" + tr_OrganizeCity.SelectValue;
        }
        #endregion
        //if (MCSTabControl1.SelectedIndex == 0)
        //{
        //    condition += " AND PDT_StandardPrice.ActiveFlag=1 AND PDT_StandardPrice.ApproveFlag=1";
        //}
        //else
        //{
        //    condition += " AND (PDT_StandardPrice.ActiveFlag=2 OR PDT_StandardPrice.ApproveFlag=2)";
        //}
        condition += " AND PDT_StandardPrice.ActiveFlag=1 AND PDT_StandardPrice.ApproveFlag=1";
        gv_List.ConditionString = condition;
        gv_List.BindGrid();
    }
开发者ID:fuhongliang,项目名称:GraduateProject,代码行数:30,代码来源:PDT_StandardPrice.aspx.cs

示例8: bt_Refresh_Click

    protected void bt_Refresh_Click(object sender, EventArgs e)
    {
        string orgcitys = "";
        if (tr_OrganizeCity.SelectValue != "0")
        {
            Addr_OrganizeCityBLL orgcity = new Addr_OrganizeCityBLL(int.Parse(tr_OrganizeCity.SelectValue), true);
            orgcitys = orgcity.GetAllChildNodeIDs();
            if (orgcitys != "") orgcitys += ",";
            orgcitys += tr_OrganizeCity.SelectValue;
        }
        else
        {
            MessageBox.Show(this, "请选择要查询的管理片区!");
            return;
        }

        ReportViewer1.ServerReport.ReportServerCredentials = new MCSReportServerCredentials();
        ReportViewer1.ServerReport.ReportPath = ViewState["ReportPath"].ToString();
        ReportViewer1.ServerReport.ReportServerUrl = new Uri(ViewState["ReportServerUrl"].ToString());

        if (ReportViewer1.ServerReport.GetParameters().Count == 3)
        {
            int staff = 0;
            int position = new Org_StaffBLL((int)Session["UserID"]).Model.Position;
            string remark = new Org_PositionBLL(position).Model.Remark;
            if (remark != null && remark.Contains("OnlyViewSelfReport"))
            {
                staff = (int)Session["UserID"];
            }
            ReportParameter[] _parms = {
                new ReportParameter("OrganizeCitys", orgcitys),
                new ReportParameter("Month", ddl_Month.SelectedValue),
                new ReportParameter("Staff",staff.ToString())
             };
            ReportViewer1.ServerReport.SetParameters(_parms);
        }
        else
        {
            ReportParameter[] _parms = {
                new ReportParameter("OrganizeCitys", orgcitys),
                new ReportParameter("Month", ddl_Month.SelectedValue)
            };
            ReportViewer1.ServerReport.SetParameters(_parms);
        }
    }
开发者ID:fuhongliang,项目名称:GraduateProject,代码行数:45,代码来源:PubReportViewer04.aspx.cs

示例9: Page_Load

    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            #region 判断当前可查询的范围
            Org_StaffBLL staff = new Org_StaffBLL((int)Session["UserID"], true);

            if (staff.Model.OrganizeCity > 1 && staff.GetStaffOrganizeCity().Select("ID = 1").Length==0)
            {
                Addr_OrganizeCityBLL orgcity = new Addr_OrganizeCityBLL(staff.Model.OrganizeCity, true);
                string orgcitys = orgcity.GetAllChildNodeIDs();
                if (orgcitys != "") orgcitys += ",";
                orgcitys += staff.Model.OrganizeCity.ToString();
                AdvancedSearch1.ExtCondition = " MCS_CM.dbo.CM_Client.OrganizeCity IN (" + orgcitys + ") AND MCS_CM.dbo.CM_Client.ClientType=3";
            }
            #endregion
            AdvancedSearch1.DataKeyNames = new string[] { "CM_Client_ID" };
        }
    }
开发者ID:fuhongliang,项目名称:GraduateProject,代码行数:19,代码来源:AdvanceFind.aspx.cs

示例10: Page_Load

    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            #region 判断当前可查询的范围
            Org_StaffBLL staff = new Org_StaffBLL((int)Session["UserID"], true);

            if (staff.Model.OrganizeCity >1)
            {
                Addr_OrganizeCityBLL orgcity = new Addr_OrganizeCityBLL(staff.Model.OrganizeCity, true);
                string orgcitys = orgcity.GetAllChildNodeIDs();
                if (orgcitys != "") orgcitys += ",";
                orgcitys += staff.Model.OrganizeCity.ToString();
                as_uc_Journal.ExtCondition = " MCS_OA.dbo.JN_Journal.OrganizeCity IN (" + orgcitys + ") order by MCS_OA.dbo.JN_Journal.InsertTime desc";
            }
            #endregion
            as_uc_Journal.DataKeyNames = new string[] { "JN_Journal_ID" };
        }
    }
开发者ID:fuhongliang,项目名称:GraduateProject,代码行数:19,代码来源:AdvanceFind.aspx.cs

示例11: BindDate

    public void BindDate()
    {
        string ConditionStr = "";

        string orgcitys = "";
        #region 判断当前可查询的范围
        if (tr_OrganizeCity.SelectValue != "1")
        {
            Addr_OrganizeCityBLL orgcity = new Addr_OrganizeCityBLL(int.Parse(tr_OrganizeCity.SelectValue));
            orgcitys = orgcity.GetAllChildNodeIDs();
            if (orgcitys != "") orgcitys += ",";
            orgcitys += tr_OrganizeCity.SelectValue;

            if (orgcitys != "") ConditionStr += " MCS_Promotor.dbo.PM_SalaryLevel.OrganizeCity IN (" + orgcitys + ")";
        }
        #endregion
        gv_List.ConditionString = ConditionStr;
        gv_List.BindGrid();
    }
开发者ID:fuhongliang,项目名称:GraduateProject,代码行数:19,代码来源:PM_SalaryLevelList.aspx.cs

示例12: Page_Load

    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            #region 判断当前可查询的范围
            Org_StaffBLL staff = new Org_StaffBLL((int)Session["UserID"], true);

            if (staff.Model.OrganizeCity > 1 && staff.GetStaffOrganizeCity().Select("ID = 1").Length == 0)
            {
                Addr_OrganizeCityBLL orgcity = new Addr_OrganizeCityBLL(staff.Model.OrganizeCity, true);
                string orgcitys = orgcity.GetAllChildNodeIDs();
                if (orgcitys != "") orgcitys += ",";
                orgcitys += staff.Model.OrganizeCity.ToString();

                as_uc_promotor.ExtCondition = " MCS_Promotor.dbo.PM_Promotor.OrganizeCity IN (" + orgcitys + ")";
            }
            #endregion
            as_uc_promotor.DataKeyNames = new string[] { "PM_Promotor_ID" };
        }
    }
开发者ID:fuhongliang,项目名称:GraduateProject,代码行数:20,代码来源:AdvanceFind.aspx.cs

示例13: BindGrid

    private void BindGrid()
    {
        string condition = " CarNo LIKE '%" + tbx_CarNo.Text + "%' ";

        #region 判断当前可查询的管理片区范围
        if (tr_OrganizeCity.SelectValue != "1")
        {
            string orgcitys = "";
            Addr_OrganizeCityBLL orgcity = new Addr_OrganizeCityBLL(int.Parse(tr_OrganizeCity.SelectValue), true);
            orgcitys = orgcity.GetAllChildNodeIDs();
            if (orgcitys != "") orgcitys += ",";
            orgcitys += tr_OrganizeCity.SelectValue;

            if (orgcitys != "") condition += " AND Car_CarList.OrganizeCity IN (" + orgcitys + ") ";
        }
        #endregion

        gv_List.ConditionString = condition;
        gv_List.BindGrid();
    }
开发者ID:fuhongliang,项目名称:GraduateProject,代码行数:20,代码来源:CarList.aspx.cs

示例14: BindGrid

    private void BindGrid()
    {
        string ConditionStr = " FNA_BudgetTransferApply.AccountMonth = " + ddl_Month.SelectedValue;

        #region 判断当前可查询管理片区的范围
        string orgcitys = "";
        if (tr_OrganizeCity.SelectValue != "0" && tr_OrganizeCity.SelectValue != "1")
        {
            Addr_OrganizeCityBLL orgcity = new Addr_OrganizeCityBLL(int.Parse(tr_OrganizeCity.SelectValue), true);
            orgcitys = orgcity.GetAllChildNodeIDs();
            if (orgcitys != "") orgcitys += ",";
            orgcitys += tr_OrganizeCity.SelectValue;

            if (orgcitys != "") ConditionStr += " AND FNA_BudgetTransferApply.ToOrganizeCity IN (" + orgcitys + ")";
        }
        #endregion

        gv_List.ConditionString = ConditionStr;
        gv_List.BindGrid();
    }
开发者ID:fuhongliang,项目名称:GraduateProject,代码行数:20,代码来源:BudgetTransferApplyList.aspx.cs

示例15: BindGrid

    private void BindGrid()
    {
        string ConditionStr = " 1 = 1 ";

        #region 判断当前可查询管理片区的范围
        string orgcitys = "";
        if (tr_OrganizeCity.SelectValue != "0" && tr_OrganizeCity.SelectValue != "1")
        {
            Addr_OrganizeCityBLL orgcity = new Addr_OrganizeCityBLL(int.Parse(tr_OrganizeCity.SelectValue), true);
            orgcitys = orgcity.GetAllChildNodeIDs();
            if (orgcitys != "") orgcitys += ",";
            orgcitys += tr_OrganizeCity.SelectValue;

            if (orgcitys != "") ConditionStr += " AND dbo.CM_PropertyInTelephone.OrganizeCity IN (" + orgcitys + ")";
        }
        #endregion

        gv_List.ConditionString = ConditionStr;
        gv_List.BindGrid();
    }
开发者ID:fuhongliang,项目名称:GraduateProject,代码行数:20,代码来源:PropertyInTelephoneList.aspx.cs


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