public static string EditSupplier(string strID, string strSUPPLIER_NAME, string strSUPPLIER_TYPE, string strPRODUCTS, string strLINK_MAN, string strTEL, string strFAX, string strEMAIL,
                                      string strPOST_CODE, string strADDRESS, string strBANK, string strACCOUNT_FOR)
    {
        bool isSuccess = true;

        TOaSupplierInfoVo objSupplier = new TOaSupplierInfoVo();

        objSupplier.ID            = strID;
        objSupplier.SUPPLIER_NAME = strSUPPLIER_NAME;
        objSupplier.SUPPLIER_TYPE = strSUPPLIER_TYPE;
        objSupplier.PRODUCTS      = strPRODUCTS;
        objSupplier.LINK_MAN      = strLINK_MAN;
        objSupplier.TEL           = strTEL;
        objSupplier.FAX           = strFAX;
        objSupplier.EMAIL         = strEMAIL;
        objSupplier.POST_CODE     = strPOST_CODE;
        objSupplier.ADDRESS       = strADDRESS;
        objSupplier.BANK          = strBANK;
        objSupplier.ACCOUNT_FOR   = strACCOUNT_FOR;

        isSuccess = new TOaSupplierInfoLogic().Edit(objSupplier);

        if (isSuccess)
        {
            new PageBase().WriteLog("编辑服务商", "", new UserLogInfo().UserInfo.USER_NAME + "编辑服务商" + objSupplier.ID);
            return("1");
        }
        else
        {
            return("0");
        }
    }
    //获取服务商
    private void GetSupplier()
    {
        string strSortname  = Request.Params["sortname"];
        string strSortorder = Request.Params["sortorder"];
        int    intPageIdx   = Convert.ToInt32(Request.Params["page"]);
        int    intPagesize  = Convert.ToInt32(Request.Params["pagesize"]);

        string strSrhSUPPLIER_NAME = (Request.Params["srhSUPPLIER_NAME"] != null) ? Request.Params["srhSUPPLIER_NAME"] : "";
        string strSrhSUPPLIER_TYPE = (Request.Params["srhSUPPLIER_TYPE"] != null) ? Request.Params["srhSUPPLIER_TYPE"] : "";

        if (strSortname == null || strSortname.Length == 0)
        {
            strSortname = TOaSupplierInfoVo.ID_FIELD;
        }

        TOaSupplierInfoVo objSupplier = new TOaSupplierInfoVo();

        objSupplier.SUPPLIER_NAME = strSrhSUPPLIER_NAME;
        objSupplier.SUPPLIER_TYPE = strSrhSUPPLIER_TYPE;

        objSupplier.SORT_FIELD = strSortname;
        objSupplier.SORT_TYPE  = strSortorder;
        TOaSupplierInfoLogic logicSupplier = new TOaSupplierInfoLogic();

        int       intTotalCount = logicSupplier.GetSelectResultCount(objSupplier);;//总计的数据条数
        DataTable dt            = logicSupplier.SelectByTable(objSupplier, intPageIdx, intPagesize);

        string strJson = CreateToJson(dt, intTotalCount);

        Response.Write(strJson);
    }
    public static string deleteSupplier(string strDelIDs)
    {
        if (strDelIDs.Length == 0)
        {
            return("0");
        }

        string[] arrDelIDs = strDelIDs.Split(',');

        bool isSuccess = true;

        for (int i = 0; i < arrDelIDs.Length; i++)
        {
            isSuccess = new TOaSupplierInfoLogic().Delete(arrDelIDs[i]);
            if (isSuccess)
            {
                new PageBase().WriteLog("删除服务商", "", new UserLogInfo().UserInfo.USER_NAME + "删除服务商" + strDelIDs);
            }
            TOaSupplierJudgeVo objJudge = new TOaSupplierJudgeVo();
            objJudge.SUPPLIER_ID = arrDelIDs[i];
            if (new TOaSupplierJudgeLogic().Delete(objJudge))
            {
                new PageBase().WriteLog("删除服务商产品评价", "", new UserLogInfo().UserInfo.USER_NAME + "删除服务商产品评价" + objJudge.ID);
            }
        }

        if (isSuccess)
        {
            return("1");
        }
        else
        {
            return("0");
        }
    }