Пример #1
0
    protected void Del(string szID)
    {
        string[] szIDList = szID.Split(',');
        for (int i = 0; i < szIDList.Length; i++)
        {
            string szIDTemp = szIDList[i];
            if (szIDTemp == null || szIDTemp == "")
            {
                continue;
            }
            REQUESTCODE  uResponse = REQUESTCODE.EXECUTE_FAIL;
            CREDITRECREQ vrGet     = new CREDITRECREQ();
            vrGet.dwSID = Parse(szIDTemp);
            CREDITREC[] vtRes;

            uResponse = m_Request.System.CreditRecGet(vrGet, out vtRes);
            if (vtRes != null && vtRes.Length > 0)
            {
                ADMINCREDIT setvale = new ADMINCREDIT();
                setvale.dwAccNo     = vtRes[0].dwAccNo;
                setvale.szTrueName  = vtRes[0].szTrueName;
                setvale.dwCTSN      = vtRes[0].dwCTSN;
                setvale.dwCreditSN  = (uint)CREDITKIND.DWCREDITSN.CREDIT_CORRECTERR;
                setvale.dwSubjectID = vtRes[0].dwSID;
                setvale.szReason    = "取消违约";
                uResponse           = m_Request.System.AdminCreditDo(setvale);
            }
        }
    }
Пример #2
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (IsPostBack)
     {
         RESVREQ vrGet    = new RESVREQ();
         string  szResvID = Request["id"];
         string  szText   = Request["szMessageInfo"];
         if (szResvID == null || szResvID == "")
         {
             MessageBox("设置失败", "提示", MSGBOX.ERROR, MSGBOX_ACTION.NONE);
             return;
         }
         vrGet.dwResvID   = Parse(szResvID);
         vrGet.dwStatFlag = (uint)RESVREQ.DWSTATFLAG.STATFLAG_DEL + (uint)RESVREQ.DWSTATFLAG.STATFLAG_INUSE + (uint)RESVREQ.DWSTATFLAG.STATFLAG_OVER;
         UNIRESERVE[] vtRes;
         if (m_Request.Reserve.Get(vrGet, out vtRes) == REQUESTCODE.EXECUTE_SUCCESS && vtRes != null && vtRes.Length > 0)
         {
             ADMINCREDIT setValue = new ADMINCREDIT();
             setValue.dwAccNo    = vtRes[0].dwOwner;
             setValue.szTrueName = vtRes[0].szOwnerName;
             string szScore = Request["score"];
             if (szScore == "")
             {
                 MessageBox("请填写扣除分数", "提示", MSGBOX.ERROR, MSGBOX_ACTION.NONE);
                 return;
             }
             setValue.dwCreditScore = Parse(szScore);
             setValue.dwCTSN        = (uint)CREDITKIND.DWCREDITSN.CREDIT_DEREGULATION;
             setValue.dwCreditSN    = (uint)CREDITKIND.DWCREDITSN.CREDIT_DEREGULATION;
             setValue.dwSubjectID   = Parse(szResvID);
             string szMessageInfo = Request["szMessageInfo"];
             if (szMessageInfo == "")
             {
                 MessageBox("必须填写原因", "提示", MSGBOX.ERROR, MSGBOX_ACTION.NONE);
                 return;
             }
             setValue.szReason = szMessageInfo;
             setValue.szMemo   = szMessageInfo;
             if (m_Request.System.AdminCreditDo(setValue) == REQUESTCODE.EXECUTE_SUCCESS)
             {
                 MessageBox("人工违约处理成功", "提示", MSGBOX.SUCCESS, MSGBOX_ACTION.OK);
             }
             else
             {
                 MessageBox(m_Request.szErrMessage.ToString(), "提示", MSGBOX.ERROR, MSGBOX_ACTION.NONE);
             }
         }
     }
 }
Пример #3
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (IsPostBack)
     {
         YARDRESVREQ vrGet    = new YARDRESVREQ();
         string      szResvID = Request["id"];
         string      szText   = Request["szMessageInfo"];
         if (szResvID == null || szResvID == "")
         {
             MessageBox("设置失败", "提示", MSGBOX.ERROR, MSGBOX_ACTION.NONE);
             return;
         }
         vrGet.dwResvID = Parse(szResvID);
         YARDRESV[] vtRes;
         if (m_Request.Reserve.GetYardResv(vrGet, out vtRes) == REQUESTCODE.EXECUTE_SUCCESS && vtRes != null && vtRes.Length > 0)
         {
             ADMINCREDIT setValue = new ADMINCREDIT();
             setValue.dwAccNo    = vtRes[0].dwApplicantID;
             setValue.szTrueName = vtRes[0].szApplicantName;
             string szScore = Request["score"];
             if (szScore == "")
             {
                 MessageBox("请填写扣除分数", "提示", MSGBOX.ERROR, MSGBOX_ACTION.NONE);
                 return;
             }
             setValue.dwCreditScore = Parse(szScore);
             setValue.dwCTSN        = (uint)CREDITKIND.DWCREDITSN.CREDIT_DEREGULATION;
             setValue.dwCreditSN    = (uint)CREDITKIND.DWCREDITSN.CREDIT_DEREGULATION;
             setValue.dwSubjectID   = Parse(szResvID);
             string szMessageInfo = Request["szMessageInfo"];
             if (szMessageInfo == "")
             {
                 MessageBox("必须填写原因", "提示", MSGBOX.ERROR, MSGBOX_ACTION.NONE);
                 return;
             }
             setValue.szReason = "不按时使用";
             setValue.szMemo   = "不按时使用";
             if (m_Request.System.AdminCreditDo(setValue) == REQUESTCODE.EXECUTE_SUCCESS)
             {
                 MessageBox("强制违约成功", "提示", MSGBOX.SUCCESS, MSGBOX_ACTION.OK);
             }
             else
             {
                 MessageBox(m_Request.szErrMessage.ToString(), "提示", MSGBOX.ERROR, MSGBOX_ACTION.NONE);
             }
         }
     }
 }
Пример #4
0
    protected void Del(string szID)
    {
        REQUESTCODE  uResponse = REQUESTCODE.EXECUTE_FAIL;
        CREDITRECREQ vrGet     = new CREDITRECREQ();

        vrGet.dwSID = Parse(szID);
        CREDITREC[] vtRes;

        uResponse = m_Request.System.CreditRecGet(vrGet, out vtRes);
        if (vtRes != null && vtRes.Length > 0)
        {
            ADMINCREDIT setvale = new ADMINCREDIT();
            setvale.dwAccNo     = vtRes[0].dwAccNo;
            setvale.szTrueName  = vtRes[0].szTrueName;
            setvale.dwCTSN      = vtRes[0].dwCTSN;
            setvale.dwCreditSN  = (uint)CREDITKIND.DWCREDITSN.CREDIT_CORRECTERR;
            setvale.dwSubjectID = vtRes[0].dwSID;
            setvale.szReason    = "取消违约";
            uResponse           = m_Request.System.AdminCreditDo(setvale);
        }
    }
Пример #5
0
    protected void DelAll()
    {
        CREDITRECREQ vrParameter = new CREDITRECREQ();

        vrParameter.dwStartDate = DateToUint(dwStartDate.Value);
        vrParameter.dwEndDate   = DateToUint(dwEndDate.Value);
        CREDITREC[] vrResult;
        vrParameter.szReqExtInfo.dwNeedLines = 10000;
        vrParameter.szReqExtInfo.dwStartLine = 0;
        if (m_Request.System.CreditRecGet(vrParameter, out vrResult) == REQUESTCODE.EXECUTE_SUCCESS)
        {
            for (int i = 0; i < vrResult.Length; i++)
            {
                ADMINCREDIT setvale = new ADMINCREDIT();
                setvale.dwAccNo     = vrResult[i].dwAccNo;
                setvale.szTrueName  = vrResult[i].szTrueName;
                setvale.dwCTSN      = vrResult[i].dwCTSN;
                setvale.dwCreditSN  = (uint)CREDITKIND.DWCREDITSN.CREDIT_CORRECTERR;
                setvale.dwSubjectID = vrResult[i].dwSID;
                setvale.szReason    = "取消违约";
                m_Request.System.AdminCreditDo(setvale);
            }
        }
    }