Beispiel #1
0
    private void deleteItem(int id)
    {
        using (SqlConnection conn = new SqlConnection(DBHelper.connString))
        {
            conn.Open();
            using (SqlTransaction tran = conn.BeginTransaction())
            {
                try
                {
                    ChangeLogs cl = new ChangeLogs("smscontent", "ltrim(rtrim(str(ProductID)))");
                    cl.AddRecordtran(tran, id.ToString());

                    SMScontentBLL.deleteSMScontent(tran, id);
                    cl.AddRecordtran(tran, id.ToString());
                    cl.DeletedIntoLogs(ChangeCategory.company23, Session["Company"].ToString(), ENUM_USERTYPE.objecttype10);
                    tran.Commit();
                }
                catch
                {
                    tran.Rollback();
                    lblMessage.Text = GetTran("007147", "短信删除失败,请联系管理员!");
                    return;
                }
            }
        }

        lblMessage.Text = GetTran("007146", "短信删除成功");
    }
Beispiel #2
0
    /// <summary>
    /// 判断是删除还是修改功能
    /// </summary>
    /// <param name="sender"></param>
    /// <param name="e"></param>
    protected void gwbankCard_RowCommand(object sender, GridViewCommandEventArgs e)
    {
        if (e.CommandName == "updCard")
        {   //获取id
            int         id    = int.Parse(e.CommandArgument.ToString());
            GridViewRow gvrow = (GridViewRow)(((LinkButton)e.CommandSource).Parent.Parent);
            this.txtbank.Text     = gwbankCard.Rows[gvrow.RowIndex].Cells[2].Text.Trim();
            this.txtname.Text     = gwbankCard.Rows[gvrow.RowIndex].Cells[3].Text.Trim();
            this.txtcard.Text     = gwbankCard.Rows[gvrow.RowIndex].Cells[4].Text.Trim();
            ViewState["ID"]       = id;
            ViewState["bnakbook"] = gwbankCard.Rows[gvrow.RowIndex].Cells[3].Text.Trim();
            this.TranControls(this.but1, new string[][] { new string[] { "001124", "保 存" } });
        }
        else if (e.CommandName == "delCard")
        {
            //获取id
            int        id = int.Parse(e.CommandArgument.ToString());
            ChangeLogs cl = new ChangeLogs("companybank", "ltrim(rtrim(str(id)))");
            cl.AddRecord(id);
            if (CompanyBankBLL.DelCompanyBank(id))
            {
                cl.AddRecord(id);
                cl.DeletedIntoLogs(ChangeCategory.company13, Session["Company"].ToString(), ENUM_USERTYPE.objecttype3);
                ClientScript.RegisterStartupScript(this.GetType(), "", "<script language='javascript'>alert('" + GetTran("000749", "删除成功!") + "')</script>");
            }
            else
            {
                ClientScript.RegisterStartupScript(this.GetType(), "", "<script language='javascript'>alert('" + GetTran("000417", "删除失败!") + "')</script>");
            }
            ViewState["ID"] = null;
        }

        bindcontrol(null, null);
    }
Beispiel #3
0
    protected void GridView1_RowCommand(object sender, GridViewCommandEventArgs e)
    {
        if (e.CommandName.Trim() == "del")
        {
            GridViewRow gvrow        = (GridViewRow)(((LinkButton)e.CommandSource).Parent.Parent);
            string      LanguageCode = ((Label)gvrow.FindControl("lblLanguageCode")).Text.Trim();
            string      id           = e.CommandArgument.ToString();
            ChangeLogs  cl           = new ChangeLogs("language", "ltrim(rtrim(str(ID)))");
            cl.AddRecord(id);

            int var = BLL.other.Company.LanguageBLL.DelLanguage(Convert.ToInt32(id), LanguageCode);
            if (var > 0)
            {
                cl.AddRecord(id);
                cl.DeletedIntoLogs(ChangeCategory.company35, Session["Company"].ToString(), ENUM_USERTYPE.objecttype9);

                BLL.CommonClass.Transforms.JSAlert(GetTran("000008", "删除成功!"));
                LanguageBind();
            }
            else
            {
                BLL.CommonClass.Transforms.JSAlert(GetTran("000009", "删除失败!"));
            }
        }
    }
Beispiel #4
0
 protected void GridView1_RowCommand(object sender, GridViewCommandEventArgs e)
 {
     if (e.CommandName == "del")
     {
         Response.Cache.SetExpires(DateTime.Now);
         Permissions.CheckManagePermission(EnumCompanyPermission.FinanceDelTuihui);
         ChangeLogs cl = new ChangeLogs("ChongHong", "ltrim(rtrim(str(ID)))");
         cl.AddRecord(int.Parse(e.CommandArgument.ToString()));
         //获取当前选择的行
         GridViewRow row = (GridViewRow)((LinkButton)e.CommandSource).NamingContainer;
         //删除
         bool blean = ReleaseBLL.DelChongHong(int.Parse(e.CommandArgument.ToString()), double.Parse(row.Cells[4].Text), row.Cells[2].Text);
         if (blean)
         {
             cl.DeletedIntoLogs(ChangeCategory.company17, e.CommandArgument.ToString(), ENUM_USERTYPE.objecttype5);
             Page.ClientScript.RegisterStartupScript(GetType(), "", "<script>alert('" + GetTran("000749", "删除成功!") + "')</script>");
         }
         GetShopList();
     }
 }
Beispiel #5
0
    protected void gvInfo_RowCommand(object sender, GridViewCommandEventArgs e)
    {
        string[] Arg     = Convert.ToString(e.CommandArgument).Split('_');
        string   DocID   = Arg[0];
        int      isExist = StorageInBrowseBLL.DocIdIsExistByDocId(DocID);

        //Exist
        if (isExist > 0)
        {
            if (e.CommandName == "Auditing")
            {
                int isAuditing = StorageInBrowseBLL.IsAuditingByDocId(DocID, 1);
                //Effective(In other words,Auditing)
                if (isAuditing > 0)
                {
                    Page.ClientScript.RegisterStartupScript(GetType(), "", Transforms.ReturnAlert(GetTran("006888", "该入库单已经被审核!")));
                }
                //No Auditing
                else
                {
                    string   DocAuditer   = CommonDataBLL.GetNameByAdminID(Session["Company"].ToString());
                    DateTime DocAuditTime = MYDateTime1.GetCurrentDateTime();
                    string   OperateIP    = CommonDataBLL.OperateIP;
                    string   OperateNum   = CommonDataBLL.OperateBh;

                    //更新公司库存
                    string TempWareHouseID = Arg[1];
                    int    changwei        = Convert.ToInt32(Arg[2]);
                    int    auditingCout    = StorageInBrowseBLL.checkDoc(DocAuditer, DocAuditTime, OperateIP, OperateNum, DocID, TempWareHouseID, changwei);
                    if (auditingCout > 0)
                    {
                        Page.ClientScript.RegisterStartupScript(GetType(), "", "<script>if(confirm('" + GetTran("002214", "入库单审核成功,是否要打印此入库单?") + "'))window.open('docPrint.aspx?DocID=" + DocID + "');</script>");
                    }

                    else
                    {
                        Page.ClientScript.RegisterStartupScript(GetType(), "", Transforms.ReturnAlert(GetTran("002216", "入库单审核失败,请联系管理员!")));
                        return;
                    }
                }
            }
            else if (e.CommandName == "NoEffect")
            {
                int isEffect = StorageInBrowseBLL.IsAuditingByDocId(DocID, 0);
                //No effect
                if (isEffect <= 0)
                {
                    DateTime CloseDate     = MYDateTime1.GetCurrentDateTime();
                    string   OperateIP     = CommonDataBLL.OperateIP;
                    string   OperateNum    = CommonDataBLL.OperateBh;
                    int      noEffectCount = StorageInBrowseBLL.updDocTypeName(CloseDate, DocID, OperateIP, OperateNum);
                    if (noEffectCount > 0)
                    {
                        Page.ClientScript.RegisterStartupScript(GetType(), "", Transforms.ReturnAlert(GetTran("002218", "此入库单审核无效成功!")));
                    }

                    else
                    {
                        Page.ClientScript.RegisterStartupScript(GetType(), "", Transforms.ReturnAlert(GetTran("002221", "此入库单审核无效失败,请联系管理员!")));
                    }
                }

                else
                {
                    Page.ClientScript.RegisterStartupScript(GetType(), "", Transforms.ReturnAlert(GetTran("006890", "该入库单已经被审核无效!")));
                }
            }
            else if (e.CommandName == "Del")
            {
                ChangeLogs cl = new ChangeLogs("InventoryDoc", "DocID");
                cl.AddRecord(DocID);
                ChangeLogs cl2 = new ChangeLogs("InventoryDocDetails", "DocID");
                cl2.AddRecord(DocID);
                int delCount = StorageInBrowseBLL.delDoc(DocID);
                if (delCount > 0)
                {
                    cl.AddRecord(DocID);
                    cl.DeletedIntoLogs(ChangeCategory.company8, Session["Company"].ToString(), ENUM_USERTYPE.objecttype0);
                    cl2.AddRecord(DocID);
                    cl2.DeletedIntoLogs(ChangeCategory.company8, Session["Company"].ToString(), ENUM_USERTYPE.objecttype0);

                    Page.ClientScript.RegisterStartupScript(GetType(), "", Transforms.ReturnAlert(GetTran("002225", "入库单删除成功!")));
                }
                else
                {
                    Page.ClientScript.RegisterStartupScript(GetType(), "", Transforms.ReturnAlert(GetTran("002228", "入库单编辑失败,请联系管理员!")));
                    return;
                }
            }
            else if (e.CommandName == "Edit")
            {
                Response.Redirect("StorageInEdit.aspx?billID=" + DocID);
            }
        }
        else
        {
            Page.ClientScript.RegisterStartupScript(GetType(), "", Transforms.ReturnAlert(GetTran("006894", "该入库单不存在!")));
        }
        Btn_Search_Click(null, null);
    }
Beispiel #6
0
    /// <summary>
    /// 批量处理
    /// </summary>
    /// <param name="sender"></param>
    /// <param name="e"></param>
    protected void btn_listsubmit_Click(object sender, EventArgs e)
    {
        try
        {
            int ret = 0;

            for (int i = 0; i < GridView1.Rows.Count; i++)
            {
                CheckBox chb = (CheckBox)GridView1.Rows[i].FindControl("chb") as CheckBox;

                LinkButton LinkButton1 = (LinkButton)GridView1.Rows[i].FindControl("LinkButton1") as LinkButton;
                LinkButton LinkButton2 = (LinkButton)GridView1.Rows[i].FindControl("LinkButton2") as LinkButton;
                LinkButton LinkButton3 = (LinkButton)GridView1.Rows[i].FindControl("LinkButton3") as LinkButton;
                string[]   args        = null;
                args = LinkButton1.ToolTip.ToString().Split(',');
                string        numebr     = args[0].ToString();
                string        isAuditing = args[1].ToString();
                int           id         = Convert.ToInt32(args[2].ToString());
                double        money      = Convert.ToDouble(args[3].ToString());
                int           bz         = Convert.ToInt32(args[2].ToString());
                WithdrawModel wDraw      = new WithdrawModel();
                wDraw.Id     = id;
                wDraw.Number = numebr;
                wDraw.ApplicationExpecdtNum = BLL.CommonClass.CommonDataBLL.getMaxqishu();
                wDraw.WithdrawMoney         = money;
                wDraw.AuditExpectNum        = BLL.CommonClass.CommonDataBLL.getMaxqishu();
                wDraw.AuditingIP            = BLL.CommonClass.CommonDataBLL.OperateIP;
                wDraw.AuditingManageId      = BLL.CommonClass.CommonDataBLL.OperateBh;
                wDraw.AuditTime             = DateTime.Now.ToUniversalTime();
                wDraw.Wyj = bz;
                //已汇出
                if (rad_list.SelectedValue == "1" && chb.Checked == true && LinkButton1.Visible == true)
                {
                    if (BLL.Registration_declarations.RegistermemberBLL.GetMemberCashAuditState(id) == 2)
                    {
                        ret = -1;
                        Page.ClientScript.RegisterStartupScript(GetType(), "", "<script>alert('" + GetTran("007829", "编号为") + id + GetTran("007176", "的该申请单已经审核,不可以重复审核!") + "')</script>");
                        this.BtnConfirm_Click(null, null);
                        break;
                    }

                    if (!BLL.Registration_declarations.RegistermemberBLL.isDelMemberCash(id))
                    {
                        ret = -1;
                        Page.ClientScript.RegisterStartupScript(GetType(), "", "<script>alert('" + GetTran("007829", "编号为") + id + GetTran("007177", "该申请单已经被删除!") + "')</script>");
                        this.BtnConfirm_Click(null, null);
                        break;
                    }

                    double leftMoney = Convert.ToDouble(BLL.CommonClass.CommonDataBLL.GetLeftMoney1(numebr));
                    if (money > leftMoney)
                    {
                        ret = -1;
                        Page.ClientScript.RegisterStartupScript(GetType(), "", "<script>alert('" + GetTran("007829", "编号为") + id + GetTran("007175", "可提现余额不足,不能审核!") + "')</script>");
                        break;
                    }
                    Application.Lock();
                    bool isSure = false;

                    isSure = BLL.Registration_declarations.RegistermemberBLL.AuditWithdraw(wDraw);

                    Application.UnLock();
                    if (isSure)
                    {
                        ret = 1;
                    }
                    else
                    {
                        ret = -1;
                        Page.ClientScript.RegisterStartupScript(GetType(), "", "<script>alert('" + GetTran("007829", "编号为") + id + GetTran("006041", "审核失败!") + "')</script>");
                        break;
                    }
                }//账户出错
                else if (rad_list.SelectedValue == "2" && chb.Checked == true && LinkButton2.Visible == true)
                {
                    if (BLL.Registration_declarations.RegistermemberBLL.GetMemberCashAuditState(id) == 2)
                    {
                        ret = -1;
                        Page.ClientScript.RegisterStartupScript(GetType(), "", "<script>alert('" + GetTran("007829", "编号为") + id + GetTran("007181", "该申请单已经审核,不可以转成账号错误!") + "');</script>");
                        break;
                    }
                    if (BLL.Registration_declarations.RegistermemberBLL.GetMemberCashAuditState(id) == 3)
                    {
                        ret = -1;
                        Page.ClientScript.RegisterStartupScript(GetType(), "", "<script>alert('" + GetTran("007829", "编号为") + id + GetTran("007180", "该申请单已经是账号错误,不可以重复账号错误!") + "');</script>");
                        break;
                    }

                    if (!BLL.Registration_declarations.RegistermemberBLL.isDelMemberCash(id))
                    {
                        ret = -1;
                        Page.ClientScript.RegisterStartupScript(GetType(), "", "<script>alert('" + GetTran("007829", "编号为") + id + GetTran("007179", "该申请单已经删除,不可以转成账号错误!") + "')</script>");
                        this.BtnConfirm_Click(null, null);
                        break;
                    }

                    ChangeLogs cl = new ChangeLogs("MemberCash", "ltrim(rtrim(str(id)))");
                    cl.AddRecord(wDraw.Id);
                    Application.Lock();
                    bool isSure = BLL.Registration_declarations.RegistermemberBLL.updateCardEorror(wDraw.Id, wDraw.WithdrawMoney, wDraw.Number);
                    Application.UnLock();
                    if (isSure)
                    {
                        cl.AddRecord(wDraw.Id);
                        cl.DeletedIntoLogs(ChangeCategory.company14, Session["Company"].ToString(), ENUM_USERTYPE.objecttype5);
                        ret = 1;
                    }
                    else
                    {
                        ret = -1;
                        Page.ClientScript.RegisterStartupScript(GetType(), "", "<script>alert('" + GetTran("007829", "编号为") + id + GetTran("001541", "操作失败!)") + "')</script>");
                        break;
                    }
                }//开始处理
                else if (rad_list.SelectedValue == "3" && chb.Checked == true && LinkButton3.Visible == true)
                {
                    if (BLL.Registration_declarations.RegistermemberBLL.GetMemberCashAuditState(id) == 1)
                    {
                        ret = -1;
                        Page.ClientScript.RegisterStartupScript(GetType(), "", "<script>alert('" + GetTran("007829", "编号为") + id + GetTran("007182", "该申请单已经审核,不可以在开始处理!") + "');</script>");
                        break;
                    }
                    if (BLL.Registration_declarations.RegistermemberBLL.GetMemberCashAuditState(id) == 2)
                    {
                        ret = -1;
                        Page.ClientScript.RegisterStartupScript(GetType(), "", "<script>alert('" + GetTran("007829", "编号为") + id + GetTran("007183", "该申请单已经开始处理,不可以在开始处理!") + "');</script>");
                        break;
                    }
                    if (BLL.Registration_declarations.RegistermemberBLL.GetMemberCashAuditState(id) == 3)
                    {
                        ret = -1;
                        Page.ClientScript.RegisterStartupScript(GetType(), "", "<script>alert('" + GetTran("007829", "编号为") + id + GetTran("007184", "该申请单已经是账号错误,不可以在开始处理!") + "');</script>");
                        break;
                    }

                    if (!BLL.Registration_declarations.RegistermemberBLL.isDelMemberCash(id))
                    {
                        ret = -1;
                        Page.ClientScript.RegisterStartupScript(GetType(), "", "<script>alert('" + GetTran("007829", "编号为") + id + GetTran("007185", "该申请单已经删除,不可以在开始处理!") + "')</script>");
                        this.BtnConfirm_Click(null, null);
                        break;
                    }

                    ChangeLogs cl = new ChangeLogs("MemberCash", "ltrim(rtrim(str(id)))");
                    cl.AddRecord(wDraw.Id);
                    Application.Lock();
                    bool isSure = BLL.Registration_declarations.RegistermemberBLL.updateKscl(wDraw.Id);
                    Application.UnLock();
                    if (isSure)
                    {
                        cl.AddRecord(wDraw.Id);
                        cl.DeletedIntoLogs(ChangeCategory.company14, Session["Company"].ToString(), ENUM_USERTYPE.objecttype5);
                        ret = 1;
                    }
                    else
                    {
                        ret = -1;
                        Page.ClientScript.RegisterStartupScript(GetType(), "", "<script>alert('" + GetTran("007829", "编号为") + id + GetTran("001541", "操作失败!") + "')</script>");
                        break;
                    }
                }
            }

            if (rad_list.SelectedValue == "1" && ret == 0)
            {
                Page.ClientScript.RegisterStartupScript(GetType(), "", "<script>alert('" + GetTran("007834", "选项中没有需要已汇出的选项") + "')</script>");
                this.BtnConfirm_Click(null, null);
                return;
            }
            else if (rad_list.SelectedValue == "2" && ret == 0)
            {
                Page.ClientScript.RegisterStartupScript(GetType(), "", "<script>alert('" + GetTran("007835", "选项中没有账户错误的选项") + "')</script>");
                this.BtnConfirm_Click(null, null);
                return;
            }
            else if (rad_list.SelectedValue == "3" && ret == 0)
            {
                Page.ClientScript.RegisterStartupScript(GetType(), "", "<script>alert('" + GetTran("007836", "选项中没有开始处理的选项") + "')</script>");
                this.BtnConfirm_Click(null, null);
                return;
            }

            if (ret > 0)
            {
                Page.ClientScript.RegisterStartupScript(GetType(), "", "<script>alert('" + GetTran("001401", "操作成功!") + "')</script>");
                this.BtnConfirm_Click(null, null);
                return;
            }
        }
        catch
        {
            Page.ClientScript.RegisterStartupScript(GetType(), "", "<script>alert('" + GetTran("001541", "操作失败!") + "')</script>");
            return;
        }
    }
Beispiel #7
0
    protected void GridView1_RowCommand(object sender, GridViewCommandEventArgs e)
    {
        string[] args = e.CommandArgument.ToString().Split(',');

        string        numebr      = args[0].ToString();
        string        isAuditing  = args[1].ToString();
        int           id          = Convert.ToInt32(args[2].ToString());
        double        money       = Convert.ToDouble(args[3].ToString());
        double        withdrawSXF = Convert.ToDouble(args[4].ToString());
        double        wyj         = Convert.ToDouble(args[5].ToString());
        int           IsJL        = Convert.ToInt16(args[6].ToString());
        WithdrawModel wDraw       = new WithdrawModel();

        wDraw.Id     = id;
        wDraw.Number = numebr;
        wDraw.ApplicationExpecdtNum = BLL.CommonClass.CommonDataBLL.getMaxqishu();
        wDraw.WithdrawMoney         = money;
        wDraw.WithdrawSXF           = withdrawSXF;
        wDraw.Wyj              = wyj;
        wDraw.AuditExpectNum   = BLL.CommonClass.CommonDataBLL.getMaxqishu();
        wDraw.AuditingIP       = BLL.CommonClass.CommonDataBLL.OperateIP;
        wDraw.AuditingManageId = BLL.CommonClass.CommonDataBLL.OperateBh;
        wDraw.AuditTime        = DateTime.Now.ToUniversalTime();
        wDraw.IsJL             = IsJL;

        if (e.CommandName.ToString() == "Lbtn")
        {
            if (BLL.Registration_declarations.RegistermemberBLL.GetMemberCashAuditState(id) == 2)
            {
                Page.ClientScript.RegisterStartupScript(GetType(), "", "<script>alert('" + GetTran("007176", "该申请单已经审核,不可以重复审核!") + "')</script>");
                this.BtnConfirm_Click(null, null);
                return;
            }

            if (!BLL.Registration_declarations.RegistermemberBLL.isDelMemberCash(id))
            {
                Page.ClientScript.RegisterStartupScript(GetType(), "", "<script>alert('" + GetTran("007177", "该申请单已经被删除!") + "')</script>");
                this.BtnConfirm_Click(null, null);
                return;
            }
            if (wDraw.IsJL != 1)
            {
                double leftMoney = Convert.ToDouble(BLL.CommonClass.CommonDataBLL.GetLeftMoney1(numebr));
                if (money > leftMoney)
                {
                    Page.ClientScript.RegisterStartupScript(GetType(), "", "<script>alert('" + GetTran("007175", "可提现余额不足,不能审核!") + "')</script>");
                    return;
                }
            }
            Application.Lock();
            bool isSure = false;

            isSure = BLL.Registration_declarations.RegistermemberBLL.AuditWithdraw(wDraw);

            Application.UnLock();
            if (isSure)
            {
                Page.ClientScript.RegisterStartupScript(GetType(), "", "<script>alert('" + GetTran("000858", "审核成功!") + "')</script>");
                this.BtnConfirm_Click(null, null);
            }
            else
            {
                Page.ClientScript.RegisterStartupScript(GetType(), "", "<script>alert('" + GetTran("006041", "审核失败!") + "')</script>");
                return;
            }
        }
        if (e.CommandName == "Del")
        {
            if (BLL.Registration_declarations.RegistermemberBLL.GetMemberCashAuditState(id) == 1)
            {
                Page.ClientScript.RegisterStartupScript(GetType(), "", "<script>alert('" + GetTran("007174", "该申请单已经审核,不可以删除!") + "');</script>");
                return;
            }
            if (BLL.Registration_declarations.RegistermemberBLL.GetMemberCashAuditState(id) == 3)
            {
                Page.ClientScript.RegisterStartupScript(GetType(), "", "<script>alert('" + GetTran("007173", "该申请单账号错误,不可以删除!") + "');</script>");
                return;
            }

            if (!BLL.Registration_declarations.RegistermemberBLL.isDelMemberCash(id))
            {
                Page.ClientScript.RegisterStartupScript(GetType(), "", "<script>alert('" + GetTran("007178", "该申请单已经删除,不可以删除!") + "')</script>");
                this.BtnConfirm_Click(null, null);
                return;
            }

            ChangeLogs cl = new ChangeLogs("MemberCash", "ltrim(rtrim(str(id)))");
            cl.AddRecord(wDraw.Id);
            Application.Lock();
            bool isSure = BLL.Registration_declarations.RegistermemberBLL.DeleteWithdraw(wDraw);
            Application.UnLock();
            if (isSure)
            {
                cl.AddRecord(wDraw.Id);
                cl.DeletedIntoLogs(ChangeCategory.company14, Session["Company"].ToString(), ENUM_USERTYPE.objecttype5);

                Page.ClientScript.RegisterStartupScript(GetType(), "", "<script>alert('" + GetTran("000008", "删除成功!)") + "')</script>");
                this.BtnConfirm_Click(null, null);
                return;
            }
            else
            {
                Page.ClientScript.RegisterStartupScript(GetType(), "", "<script>alert('" + GetTran("000009", "删除失败!)") + "')</script>");
                return;
            }
        }
        //账号错误
        if (e.CommandName == "carderror")
        {
            if (BLL.Registration_declarations.RegistermemberBLL.GetMemberCashAuditState(id) == 2)
            {
                Page.ClientScript.RegisterStartupScript(GetType(), "", "<script>alert('" + GetTran("007181", "该申请单已经审核,不可以转成账号错误!") + "');</script>");
                return;
            }
            if (BLL.Registration_declarations.RegistermemberBLL.GetMemberCashAuditState(id) == 3)
            {
                Page.ClientScript.RegisterStartupScript(GetType(), "", "<script>alert('" + GetTran("007180", "该申请单已经是账号错误,不可以重复账号错误!") + "');</script>");
                return;
            }

            if (!BLL.Registration_declarations.RegistermemberBLL.isDelMemberCash(id))
            {
                Page.ClientScript.RegisterStartupScript(GetType(), "", "<script>alert('" + GetTran("007179", "该申请单已经删除,不可以转成账号错误!") + "')</script>");
                this.BtnConfirm_Click(null, null);
                return;
            }

            ChangeLogs cl = new ChangeLogs("MemberCash", "ltrim(rtrim(str(id)))");
            cl.AddRecord(wDraw.Id);
            Application.Lock();
            bool isSure = false;

            isSure = BLL.Registration_declarations.RegistermemberBLL.updateCardEorror(wDraw.Id, wDraw.WithdrawMoney, wDraw.Number);

            Application.UnLock();
            if (isSure)
            {
                cl.AddRecord(wDraw.Id);
                cl.DeletedIntoLogs(ChangeCategory.company14, Session["Company"].ToString(), ENUM_USERTYPE.objecttype5);

                Page.ClientScript.RegisterStartupScript(GetType(), "", "<script>alert('" + GetTran("001401", "操作成功!)") + "')</script>");
                this.BtnConfirm_Click(null, null);
                return;
            }
            else
            {
                Page.ClientScript.RegisterStartupScript(GetType(), "", "<script>alert('" + GetTran("001541", "操作失败!)") + "')</script>");
                return;
            }
        }
        //开始处理
        if (e.CommandName == "kscl")
        {
            if (BLL.Registration_declarations.RegistermemberBLL.GetMemberCashAuditState(id) == 1)
            {
                Page.ClientScript.RegisterStartupScript(GetType(), "", "<script>alert('" + GetTran("007182", "该申请单已经审核,不可以在开始处理!") + "');</script>");
                return;
            }
            if (BLL.Registration_declarations.RegistermemberBLL.GetMemberCashAuditState(id) == 2)
            {
                Page.ClientScript.RegisterStartupScript(GetType(), "", "<script>alert('" + GetTran("007183", "该申请单已经开始处理,不可以在开始处理!") + "');</script>");
                return;
            }
            if (BLL.Registration_declarations.RegistermemberBLL.GetMemberCashAuditState(id) == 3)
            {
                Page.ClientScript.RegisterStartupScript(GetType(), "", "<script>alert('" + GetTran("007184", "该申请单已经是账号错误,不可以在开始处理!") + "');</script>");
                return;
            }

            if (!BLL.Registration_declarations.RegistermemberBLL.isDelMemberCash(id))
            {
                Page.ClientScript.RegisterStartupScript(GetType(), "", "<script>alert('" + GetTran("007185", "该申请单已经删除,不可以在开始处理!") + "')</script>");
                this.BtnConfirm_Click(null, null);
                return;
            }

            ChangeLogs cl = new ChangeLogs("Withdraw", "ltrim(rtrim(str(id)))");
            cl.AddRecord(wDraw.Id);
            Application.Lock();
            bool isSure = BLL.Registration_declarations.RegistermemberBLL.updateKscl(wDraw.Id);
            Application.UnLock();
            if (isSure)
            {
                cl.AddRecord(wDraw.Id);
                cl.DeletedIntoLogs(ChangeCategory.company14, Session["Company"].ToString(), ENUM_USERTYPE.objecttype5);

                Page.ClientScript.RegisterStartupScript(GetType(), "", "<script>alert('" + GetTran("001401", "操作成功!)") + "')</script>");
                this.BtnConfirm_Click(null, null);
                return;
            }
            else
            {
                Page.ClientScript.RegisterStartupScript(GetType(), "", "<script>alert('" + GetTran("001541", "操作失败!)") + "')</script>");
                return;
            }
        }
    }