コード例 #1
0
    protected void btnSave_Click(object sender, EventArgs e)
    {
        int     pId = int.Parse(Request.QueryString["PendingID"]);
        Pending p   = Pendings.PendingGetById(pId);

        if (ynblPending.SelectedValue)
        {
            p.Status = PendingStatus.Inspect;
        }
        else
        {
            p.Status = PendingStatus.Deny;
        }
        p.DenyReason = txtDesc.Text.Trim();
        p.UpdateUser = Profile.AccountInfo.UserID;
        p.UpdateTime = DateTime.Now;
        if (Pendings.PendingUpdate(p))
        {
            base.ExecuteJs("msg('审核成功!',true)", false);
        }
        else
        {
            base.ExecuteJs("msg('审核失败!')", false);
        }
    }
コード例 #2
0
    void BindCompany()
    {
        int comId = int.Parse(Request.QueryString["CompanyID"]);
        int pId   = int.Parse(Request.QueryString["PendingID"]);

        btnUpdateQualify.PostBackUrl = "CompanyQualify.aspx?ID=" + comId;
        btnUpdateDeposit.PostBackUrl = "CompanyDeposit.aspx?ID=" + comId;
        btnUpdateCredit.PostBackUrl  = "CompanyCredit.aspx?ID=" + comId;
        Company c = Companys.GetCompany(comId);

        ltCompanyName.Text = c.CompanyName;
        ltAddress.Text     = c.Address;
        ltFax.Text         = c.Fax;
        ltOrgCode.Text     = c.Orgcode;
        ltPhone.Text       = c.Phone;
        ltRegCode.Text     = c.Regcode;
        try
        {
            ltRegion.Text = Areas.GetArea(c.CompanyRegion).RegionName;
        }
        catch { ltRegion.Text = "--"; }
        ltRemark.Text = c.Remark;
        if (!string.IsNullOrEmpty(c.Website))
        {
            ltWebSite.Text = "<a href='" + c.Website + "' target='_blank'>" + c.Website + "</a>";
        }
        else
        {
            ltWebSite.Text = "--";
        }
        ltZipCode.Text     = c.Zipcode;
        ltCompanyType.Text = GetCompanyType(c.CompanyType);
        Pending p = Pendings.PendingGetById(pId);

        ltPendingType.Text = GetCompanyType(p.CompanyType);
    }