예제 #1
0
    //绑定信息
    public void readInfo()
    {
        MemberInfoModel memberInfoModel = MemberInfoModifyBll.getMemberInfo(Session["Member"].ToString());


        DataTable dt = DetialQueryBLL.GetMemberInfoBalanceByNumber(ExpectNum, Session["Member"].ToString());

        if (dt.Rows.Count > 0)
        {
            lblNewPeople.Text = dt.Rows[0]["CurrentNewNetNum"].ToString();
            if (AjaxClass.GetCurrency(Convert.ToInt32(bzCurrency), Convert.ToInt32(Session["Default_Currency"].ToString())) == 0)
            {
                lblNewYeji.Text         = "0.00";
                lblTotalYeji.Text       = "0.00";
                lblCurrentOneMark2.Text = "0.00";
                lblTotalOneMark2.Text   = "0.00";
            }
            else
            {
                lblNewYeji.Text         = (double.Parse(dt.Rows[0]["CurrentTotalNetRecord"].ToString())).ToString("0.00");
                lblTotalYeji.Text       = (double.Parse(dt.Rows[0]["TotalNetRecord"].ToString())).ToString("0.00");
                lblCurrentOneMark2.Text = (double.Parse(dt.Rows[0]["CurrentOneMark2"].ToString())).ToString("0.00");
                lblTotalOneMark2.Text   = (double.Parse(dt.Rows[0]["TotalOneMark2"].ToString())).ToString("0.00");
            }
            lblTotalPeople.Text = dt.Rows[0]["TotalNetNum"].ToString();
        }
    }
예제 #2
0
    /// <summary>
    /// 取得要查询网络的起点编号
    /// </summary>
    /// <param name="isDian">是否是店调用</param>
    /// <returns>起点编号</returns>
    private string getBH(string sf)
    {
        string bh = txtBox_GLBH.Text;

        if (bh.Length == 0)
        {
            switch (sf)
            {
            case "D":
                string storeid = Session["Store"].ToString();
                bh = DetialQueryBLL.GetNumberByStoreID(storeid);    //Session["Store"]
                break;

            case "G":
                bh = BLL.CommonClass.CommonDataBLL.getManageID(3);;
                break;

            case "H":
                bh = Convert.ToString(Session["Member"]);
                break;
            }
        }
        else
        {
            bh = txtBox_GLBH.Text;
        }

        return(bh);
    }
예제 #3
0
    protected void Page_Load(object sender, EventArgs e)
    {
        Permissions.MemRedirect(Page, Permissions.redirUrl);
        Response.Cache.SetExpires(DateTime.Now);
        Permissions.CheckMemberPermission();
        //获取标准币种
        bzCurrency = CommonDataBLL.GetStandard();
        if (!IsPostBack)
        {
            if (Session["Default_Currency"] == null)
            {
                Session["Default_Currency"] = bzCurrency;
            }


            int RegQishu = CommonDataBLL.GetRegisterQishu(Session["Member"].ToString());


            //BtnQuery_Click(null, null);

            /*--------------------------------------------------------------------------------------------------------------------------------------*/

            if (Request.QueryString["expectnum"] != null)
            {
                expectnum = Convert.ToInt32(Request.QueryString["expectnum"]);
            }
            int maxExpectNum = DetialQueryBLL.IsSuanceJj(expectnum);
            if (Request.QueryString["type"] != null)
            {
                //历史奖金
                if (Request.QueryString["type"] == "0")
                {
                    if (maxExpectNum == 0)
                    {
                        Page.ClientScript.RegisterStartupScript(GetType(), "", "<script>alert('" + GetTran("000344", "当前没有已结算的工资") + "!');</script>");
                        //return;
                    }
                }
            }
            else
            {
                readBonus(maxExpectNum);
            }

            /*--------------------------------------------------------------------------------------------------------------------------------------*/
        }



        Translations();
    }
예제 #4
0
    /// <summary>
    /// 取得要查询网络的起点编号
    /// </summary>
    /// <param name="isDian">是否是店调用</param>
    /// <returns>起点编号</returns>
    private string getBH(string sf)
    {
        string bh = "";

        switch (sf)
        {
        case "D":
            string storeid = Session["Store"].ToString();
            bh = DetialQueryBLL.GetNumberByStoreID(storeid);    //Session["Store"]
            break;

        case "G":
            bh = BLL.CommonClass.CommonDataBLL.getManageID(1);
            break;

        case "H":
            bh = Convert.ToString(Session["Member"]);
            break;
        }

        return(bh);
    }
예제 #5
0
    //绑定信息
    public void readInfo()
    {
        MemberInfoModel memberInfoModel = MemberInfoModifyBll.getMemberInfo(Number);

        #region 读取个人信息
        if (memberInfoModel != null)
        {
            this.storeid.Text = memberInfoModel.StoreID;
        }

        #endregion

        DataTable dt = DetialQueryBLL.GetMemberInfoBalanceByNumber(ExpectNum, Number);
        if (dt.Rows.Count > 0)
        {
            CurrentTotalNetRecord.Text = (Convert.ToDouble(dt.Rows[0]["CurrentTotalNetRecord"]) / AjaxClass.GetCurrency(Convert.ToInt32(bzCurrency), Convert.ToInt32(Session["Default_Currency"].ToString()))).ToString("0.00");
            CurrentOneMark.Text        = (Convert.ToDouble(dt.Rows[0]["CurrentOneMark"]) / AjaxClass.GetCurrency(Convert.ToInt32(bzCurrency), Convert.ToInt32(Session["Default_Currency"].ToString()))).ToString("0.00");
            level.Text = dt.Rows[0]["levelstr"].ToString();
            if (dt.Rows[0]["TotalNetNum"] == null || dt.Rows[0]["TotalNetNum"].ToString() == "")
            {
                labTotalNetNum.Text = "0";;
            }
            else
            {
                labTotalNetNum.Text = (Convert.ToDouble(dt.Rows[0]["TotalNetNum"]) / AjaxClass.GetCurrency(Convert.ToInt32(bzCurrency), Convert.ToInt32(Session["Default_Currency"].ToString()))).ToString("0.00");
            }
            labDTotalNetNum.Text = (Convert.ToDouble(dt.Rows[0]["DTotalNetNum"]) / AjaxClass.GetCurrency(Convert.ToInt32(bzCurrency), Convert.ToInt32(Session["Default_Currency"].ToString()))).ToString("0.00");

            //个人总资格业绩
            if (dt.Rows[0]["TotalOneMark"] == null || dt.Rows[0]["TotalOneMark"].ToString() == "")
            {
                labCurrentOneMark1.Text = "0.00";
            }
            else
            {
                labCurrentOneMark1.Text = (Convert.ToDouble(dt.Rows[0]["TotalOneMark"].ToString()) / AjaxClass.GetCurrency(Convert.ToInt32(bzCurrency), Convert.ToInt32(Session["Default_Currency"].ToString()))).ToString("0.00");
            }

            labCurrentTotalNetRecord.Text = (Convert.ToDouble(dt.Rows[0]["CurrentTotalNetRecord"].ToString()) / AjaxClass.GetCurrency(Convert.ToInt32(bzCurrency), Convert.ToInt32(Session["Default_Currency"].ToString()))).ToString("0.00");

            if (dt.Rows[0]["TotalNetRecord"] == null || dt.Rows[0]["TotalNetRecord"].ToString() == "")
            {
                labTotalNetRecord1.Text = "0.00";
            }
            else
            {
                labTotalNetRecord1.Text = (Convert.ToDouble(dt.Rows[0]["TotalNetRecord"].ToString()) / AjaxClass.GetCurrency(Convert.ToInt32(bzCurrency), Convert.ToInt32(Session["Default_Currency"].ToString()))).ToString("0.00");
            }

            labdCurrentTotalNetRecord2.Text = Convert.ToDouble(dt.Rows[0]["dCurrentTotalNetRecord"].ToString()).ToString("0.00");
            labdTotalNetRecord2.Text        = (Convert.ToDouble(dt.Rows[0]["dTotalNetRecord"].ToString()) / AjaxClass.GetCurrency(Convert.ToInt32(bzCurrency), Convert.ToInt32(Session["Default_Currency"].ToString()))).ToString("0.00");

            CurrentNewNetNum.Text = (Convert.ToDouble(dt.Rows[0]["DCurrentNewNetNum"].ToString()) / AjaxClass.GetCurrency(Convert.ToInt32(bzCurrency), Convert.ToInt32(Session["Default_Currency"].ToString()))).ToString("0.00");
        }
        else
        {
            CurrentTotalNetRecord.Text = "0.00";
            CurrentOneMark.Text        = "0.00";
            level.Text            = " ";
            CurrentNewNetNum.Text = "0";
        }
    }
예제 #6
0
    protected void Page_Load(object sender, EventArgs e)
    {
        Permissions.MemRedirect(Page, Permissions.redirUrl);
        Response.Cache.SetExpires(DateTime.Now);
        Permissions.CheckMemberPermission();
        //获取标准币种
        bzCurrency = CommonDataBLL.GetStandard();
        if (!IsPostBack)
        {
            if (Session["Default_Currency"] == null)
            {
                Session["Default_Currency"] = bzCurrency;
            }


            int RegQishu = CommonDataBLL.GetRegisterQishu(Session["Member"].ToString());

            //CommonDataBLL.BindQishuListB(RegQishu,DropDownQiShu, false);
            //CommonDataBLL.BindQishuListB(RegQishu,DropDownQiShu1, false);

            //BtnQuery_Click(null,null);

            /*--------------------------------------------------------------------------------------------------------------------------------------*/

            if (Request.QueryString["expectnum"] != null)
            {
                expectnum = Convert.ToInt32(Request.QueryString["expectnum"]);
            }
            int maxExpectNum = DetialQueryBLL.IsSuanceJj(expectnum);
            if (Request.QueryString["type"] != null)
            {
                //历史奖金
                if (Request.QueryString["type"] == "0")
                {
                    if (maxExpectNum == 0)
                    {
                        Page.ClientScript.RegisterStartupScript(GetType(), "", "<script>alert('" + GetTran("000344", "当前没有已结算的工资") + "!');</script>");
                        //return;
                    }
                    //drp.DataBound += new EventHandler(DropDownList1_SelectedIndexChanged);
                    //this.ExpectNum1.ExpectNum = expectnum;
                    //memberperformance.ExpectNum = expectnum;
                    //memberperformance.Type = 1;
                    //LinkButton1.Visible = true;
                    //td1.Visible = true;
                }
            }
            else
            {
                //this.ExpectNum1.ExpectNum = BLL.CommonClass.CommonDataBLL.GetMaxqishu();
                //memberperformance.ExpectNum = BLL.CommonClass.CommonDataBLL.GetMaxqishu();
                //memberperformance.Type = 1;
                readBonus();
                //LinkButton1.Visible = false;
                //td1.Visible = false;
                //ExpectNum1.Enable = false;
            }

            /*--------------------------------------------------------------------------------------------------------------------------------------*/
        }



        //Translations();
    }
예제 #7
0
    /*-------------------------------------------------------------------------------------------------------------------------------------------------------*/
    public void readBonus(int expectnum)
    {
        int       maxqs   = DetialQueryBLL.IsSuanceJj(expectnum);                                   // BLL.CommonClass.CommonDataBLL.GetMaxqishu();
        double    curreny = AjaxClass.GetCurrency(Convert.ToInt32(bzCurrency), Convert.ToInt32(Session["Default_Currency"].ToString()));
        DataTable dt      = MemberInfoModifyBll.getBonusTable(maxqs, Session["Member"].ToString()); //第一个参数期数

        DataTable dt_one   = DAL.DBHelper.ExecuteDataTable("select IsSuance from config where ExpectNum=" + maxqs);
        string    IsSuance = dt_one.Rows[0]["IsSuance"].ToString();//是否显示

        if (dt.Rows.Count > 0)
        {
            if (curreny == 0)
            {
                //this.Label1.Text = "0";
                this.Label1.Text  = "0.00";
                this.Label2.Text  = "0.00";
                this.Label3.Text  = "0.00";
                this.Label4.Text  = "0.00";
                this.Label5.Text  = "0.00";
                this.Label6.Text  = "0.00";
                this.Label7.Text  = "0.00";
                this.Label8.Text  = "0.00";
                this.Label9.Text  = "0.00";
                this.Label10.Text = "0.00";
            }
            else
            {
                if (IsSuance == "0")
                {
                    this.Label1.Text  = "0.00";
                    this.Label2.Text  = "0.00";
                    this.Label3.Text  = "0.00";
                    this.Label4.Text  = "0.00";
                    this.Label5.Text  = "0.00";
                    this.Label6.Text  = "0.00";
                    this.Label7.Text  = "0.00";
                    this.Label8.Text  = "0.00";
                    this.Label9.Text  = "0.00";
                    this.Label10.Text = "0.00";
                }
                else
                {
                    //this.Label1.Text = (Convert.ToDouble(dt.Rows[0]["Bonus0"]) / AjaxClass.GetCurrency(Convert.ToInt32(bzCurrency), Convert.ToInt32(Session["Default_Currency"].ToString()))).ToString("0.00");
                    this.Label1.Text = (Convert.ToDouble(dt.Rows[0]["Bonus1"]) *
                                        AjaxClass.GetCurrency(Convert.ToInt32(bzCurrency), Convert.ToInt32(Session["Default_Currency"].ToString()))).ToString("0.00");
                    this.Label2.Text  = (Convert.ToDouble(dt.Rows[0]["Bonus2"]) * curreny).ToString("0.00");
                    this.Label3.Text  = (Convert.ToDouble(dt.Rows[0]["Bonus3"]) * curreny).ToString("0.00");
                    this.Label4.Text  = (Convert.ToDouble(dt.Rows[0]["Bonus4"]) * curreny).ToString("0.00");
                    this.Label5.Text  = (Convert.ToDouble(dt.Rows[0]["Bonus5"]) * curreny).ToString("0.00");
                    this.Label6.Text  = (Convert.ToDouble(dt.Rows[0]["Kougl"]) * curreny).ToString("0.00");
                    this.Label7.Text  = (Convert.ToDouble(dt.Rows[0]["Koufl"]) * curreny).ToString("0.00");
                    this.Label8.Text  = (Convert.ToDouble(dt.Rows[0]["Koufx"]) * curreny).ToString("0.00");
                    this.Label9.Text  = (Convert.ToDouble(dt.Rows[0]["CurrentSolidSend"]) * curreny).ToString("0.00");
                    this.Label10.Text = (Convert.ToDouble(dt.Rows[0]["CurrentTotalMoney"]) * curreny).ToString("0.00");
                }
            }
        }
        else
        {
            //this.Label1.Text = "0.00";
            this.Label1.Text  = "0.00";
            this.Label2.Text  = "0.00";
            this.Label3.Text  = "0.00";
            this.Label4.Text  = "0.00";
            this.Label5.Text  = "0.00";
            this.Label6.Text  = "0.00";
            this.Label7.Text  = "0.00";
            this.Label8.Text  = "0.00";
            this.Label9.Text  = "0.00";
            this.Label10.Text = "0.00";
        }
    }