protected void btnSave_Click(object sender, EventArgs e)
    {
        int comId = int.Parse(Request.QueryString["ID"]);

        if (cp == null)
        {
            cp = CompanyDeposits.DepositSelect(comId);
        }
        if (cp == null)
        {
            cp            = new CompanyDeposit();
            cp.CreateTime = DateTime.Now;
            cp.CreateUser = Profile.AccountInfo.UserID;
        }
        cp.CompanyID     = comId;
        cp.DepositAmount = decimal.Parse(txtAmount.Text);
        cp.DepositDate   = DateTime.Parse(txtDate.Text);
        cp.DepositDelta  = decimal.Parse(txtDelta.Text);
        cp.DepositDesc   = txtDesc.Text.Trim();
        cp.DepositMemo   = string.Empty;
        cp.DepositType   = (DepositType)(int.Parse(ddlType.SelectedValue));
        if (CompanyDeposits.DepositSave(cp))
        {
            mbMsg.ShowMsg("成功更新保证金信息!", System.Drawing.Color.Navy);
        }
        else
        {
            mbMsg.ShowMsg("无法保存保证金信息,请联系管理员!", System.Drawing.Color.Red);
        }
    }