Example #1
0
    /// <summary>
    /// 签约
    /// </summary>
    public void AccountSign()
    {
        ZhongXinInfo entity         = GetZhongXinByID(tools.CheckInt(Request["ID"]));
        ISupplier    mysupplierBll  = SupplierFactory.CreateSupplier();
        SupplierInfo entitySypplier = mysupplierBll.GetSupplierByID(entity.SupplierID, Public.GetUserPrivilege());

        if (entity == null)
        {
            Public.Msg("error", "错误信息", "操作失败,请稍后重试", false, "{back}");
        }

        string strResult = string.Empty;

        if (sendmessages.AccountSign(entity.CompanyName, ref strResult))
        {
            entity.Register   = 1;
            entity.SubAccount = strResult;
        }
        else
        {
            Public.Msg("error", "错误信息", strResult, false, "{back}");
        }

        if (MyBLL.EditZhongXin(entity))
        {
            //推送短信
            SMS mySMS = new SMS();
            mySMS.Send(entitySypplier.Supplier_Mobile, entity.CompanyName, "zhongxin_info");
            Public.Msg("positive", "操作成功", "操作成功", true, "zhongxin_list.aspx");
        }
        else
        {
            Public.Msg("error", "错误信息", "操作失败,请稍后重试", false, "{back}");
        }
    }
Example #2
0
    //合同查看打印
    public void Contract_View_New(OrdersInfo ordersInfo, int contact_no)
    {
        string Template_Html = "";
        int    Contract_ID;
        string Time = string.Empty;

        string Contract_Product_Goods          = "";
        string ContractTemplate_TopFuJian      = "";
        string Sell_Contract_Template_OnlyRead = "";
        string Supplier_CompanyName            = "";
        string Member_NickName        = "";
        string ContractTemResponsible = string.Empty;

        SupplierInfo supplierInfo = null;
        SupplierInfo Supplierinfo = null;

        string Sell_Contract_Template_EndFuJianContent = "";

        Contract_ID            = tools.CheckInt(Request["Contract_ID"]);
        Contract_Product_Goods = new Contract().Contract_Orders_Goods_Print(Contract_ID);
        SupplierInfo MemberSupplierinfo        = null;
        string       MemberSupplierCompanyName = "";
        MemberInfo   memberInfo = null;

        if (ordersInfo != null)
        {
            memberInfo   = new Member().GetMemberByID(ordersInfo.Orders_BuyerID);
            Supplierinfo = new Supplier().GetSupplierByID(memberInfo.Member_SupplierID);

            if (memberInfo != null)
            {
                //Member_NickName = memberInfo.Member_NickName;
                MemberSupplierinfo = new Supplier().GetSupplierByID(memberInfo.Member_SupplierID);
                if (MemberSupplierinfo != null)
                {
                    MemberSupplierCompanyName = MemberSupplierinfo.Supplier_CompanyName;
                }
            }
        }
        List <OrdersLogInfo> logs = MyOrdersLog.GetOrdersLogsByOrdersID(ordersInfo.Orders_ID).Where(p => p.Orders_Log_Remark == "供应商确认订单").ToList();

        if (ordersInfo != null)
        {
            supplierInfo = MySupplier.GetSupplierByID(ordersInfo.Orders_SupplierID, pub.CreateUserPrivilege("1392d14a-6746-4167-804a-d04a2f81d226"));
            if (supplierInfo != null)
            {
                Supplier_CompanyName = supplierInfo.Supplier_CompanyName;
            }
        }
        //合同顶部附件
        ContractTemplateInfo ContractTemplateEntity = MyContractTemplate.GetContractTemplateBySign("Sell_Contract_Template_TopFuJian", pub.CreateUserPrivilege("d4d58107-0e58-485f-af9e-3b38c7ff9672"));

        if (logs.Count > 0)
        {
            Time = tools.NullStr(logs.FirstOrDefault().Orders_Log_Addtime.ToString("yyyy年MM月dd日"));
        }

        //合同模板运输责任
        ContractTemplateInfo ContractTemResponsibleEntity = MyContractTemplate.GetContractTemplateBySign("Sell_Contract_Template_Responsible", pub.CreateUserPrivilege("d4d58107-0e58-485f-af9e-3b38c7ff9672"));

        if (ContractTemResponsibleEntity != null)
        {
            ContractTemResponsible = ContractTemResponsibleEntity.Contract_Template_Content;
            if (ordersInfo != null)
            {
                ContractTemResponsible = ContractTemResponsible.Replace("{Responsible}", ordersInfo.Orders_Responsible == 1 ? "卖家责任" : "买家责任");
            }
        }


        if (ContractTemplateEntity != null)
        {
            ContractTemplate_TopFuJian = ContractTemplateEntity.Contract_Template_Content;
            ContractTemplate_TopFuJian = ContractTemplate_TopFuJian.Replace("{supplier_name}", Supplier_CompanyName);
            ContractTemplate_TopFuJian = ContractTemplate_TopFuJian.Replace("{member_name}", MemberSupplierCompanyName);
            ContractTemplate_TopFuJian = ContractTemplate_TopFuJian.Replace("{time}", string.IsNullOrEmpty(Time) ? "卖家尚未确认订单" : Time);

            //ContractTemplate_TopFuJian = ContractTemplate_TopFuJian.Replace("{orders_goodslist}", Contract_Product_Goods);
            ContractTemplate_TopFuJian = ContractTemplate_TopFuJian.Replace("{orders_goodslist}", new Member().GetOrdersGoods(ordersInfo));
        }


        //合同尾部附件
        ContractTemplateInfo Sell_Contract_Template_EndFuJianEntity = MyContractTemplate.GetContractTemplateBySign("Sell_Contract_Template_EndFuJian", pub.CreateUserPrivilege("d4d58107-0e58-485f-af9e-3b38c7ff9672"));

        if (Sell_Contract_Template_EndFuJianEntity != null)
        {
            Sell_Contract_Template_EndFuJianContent = Sell_Contract_Template_EndFuJianEntity.Contract_Template_Content;

            Sell_Contract_Template_EndFuJianContent = Sell_Contract_Template_EndFuJianContent.Replace("{member_name}", supplierInfo.Supplier_CompanyName);
            Sell_Contract_Template_EndFuJianContent = Sell_Contract_Template_EndFuJianContent.Replace("{member_adress}", supplierInfo.Supplier_Address);
            Sell_Contract_Template_EndFuJianContent = Sell_Contract_Template_EndFuJianContent.Replace("{member_corproate}", supplierInfo.Supplier_Corporate);
            Sell_Contract_Template_EndFuJianContent = Sell_Contract_Template_EndFuJianContent.Replace("{supplier_name}", Supplierinfo.Supplier_CompanyName);
            Sell_Contract_Template_EndFuJianContent = Sell_Contract_Template_EndFuJianContent.Replace("{supplier_adress}", Supplierinfo.Supplier_Address);
            Sell_Contract_Template_EndFuJianContent = Sell_Contract_Template_EndFuJianContent.Replace("{supplier_corproate}", Supplierinfo.Supplier_Corporate);
        }



        //易耐网交易合同标准条款
        ContractTemplateInfo Sell_Contract_Template_OnlyReadEntity = MyContractTemplate.GetContractTemplateBySign("Sell_Contract_Template_OnlyRead", pub.CreateUserPrivilege("d4d58107-0e58-485f-af9e-3b38c7ff9672"));

        if (Sell_Contract_Template_OnlyReadEntity != null)
        {
            Sell_Contract_Template_OnlyRead = Sell_Contract_Template_OnlyReadEntity.Contract_Template_Content;
        }



        if (Contract_ID == 0)
        {
            Response.Write("<script>alert('合同无效!');windwo.close();</script>");
            Response.End();
        }
        ContractInfo entity = GetContractByID(Contract_ID);

        if (entity != null)
        {
            if (Request["action"] == "print")
            {
                Response.Write("<script>window.print();</script>");
            }

            string       address      = "";// /**/
            ContractInfo ContractInfo = null;



            if (ordersInfo != null)
            {
                if (MySupplier != null)
                {
                    ContractInfo = MyContract.GetContractByID(contact_no, pub.CreateUserPrivilege("a3465003-08b3-4a31-9103-28d16c57f2c8"));
                    if (ContractInfo != null)
                    {
                        Template_Html = ContractInfo.Contract_Note;

                        Template_Html = Template_Html.Replace("{supplier_name}", Supplier_CompanyName);
                        Template_Html = Template_Html.Replace("{member_name}", MemberSupplierCompanyName);
                        Template_Html = Template_Html.Replace("{orders_address}", addr.DisplayAddress(ordersInfo.Orders_Address_State, ordersInfo.Orders_Address_City, ordersInfo.Orders_Address_County) + ordersInfo.Orders_Address_StreetAddress);



                        Template_Html = Template_Html.Replace("{supplier_sealimg}", pub.FormatImgURL(supplierInfo.Supplier_SealImg, "fullpath"));


                        Template_Html = Template_Html.Replace("{orders_paywayname}", ordersInfo.Orders_Payway_Name);
                        Template_Html = Template_Html.Replace("{orders_deliveryname}", ordersInfo.Orders_Delivery_Name);



                        Template_Html = Template_Html.Replace("{orders_goodslist}", new Member().GetOrdersGoods(ordersInfo));


                        if (memberInfo != null)
                        {
                            Template_Html = Template_Html.Replace("{member_name}", memberInfo.MemberProfileInfo.Member_Company);
                            Template_Html = Template_Html.Replace("{member_sealimg}", pub.FormatImgURL(memberInfo.MemberProfileInfo.Member_SealImg, "fullpath"));
                        }
                    }
                }
                Template_Html = ContractTemplate_TopFuJian + Template_Html + ContractTemResponsible + ordersInfo.Orders_ContractAdd + Sell_Contract_Template_OnlyRead + Sell_Contract_Template_EndFuJianContent;;
            }

            Response.Write(Server.HtmlDecode(Template_Html));
        }
        else
        {
            Response.Write("<script>alert('合同无效!');windwo.close();</script>");
            Response.End();
        }
    }
Example #3
0
    public void AddZhonghang()
    {
        Supplier_ID = tools.CheckInt(Session["supplier_id"].ToString());
        ZhongXinInfo zhongxininfo = GetZhongXinBySuppleir(Supplier_ID);

        if (zhongxininfo == null)
        {
            pub.Msg("info", "提示信息", "系统繁忙,若多次出现请联系管理员", false, "{back}");
        }

        SupplierInfo entitys = MySupplier.GetSupplierByID(Supplier_ID, pub.CreateUserPrivilege("1392d14a-6746-4167-804a-d04a2f81d226"));

        if (entitys != null)
        {
            string CompanyName     = tools.CheckStr(Request.Form["CompanyName"]);
            string ReceiptAccount  = tools.CheckStr(Request.Form["ReceiptAccount"]);
            string ReceiptBank     = tools.CheckStr(Request.Form["ReceiptBank"]);
            string BankCode        = tools.CheckStr(Request.Form["BankCode"]);
            string BankName        = tools.CheckStr(Request.Form["BankName"]);
            string OpenAccountName = tools.CheckStr(Request.Form["OpenAccountName"]);

            if (CompanyName == "")
            {
                pub.Msg("info", "提示信息", "填写公司名称", false, "{back}");
            }

            if (ReceiptAccount == "")
            {
                pub.Msg("info", "提示信息", "填写出金收款账号须真实有效", false, "{back}");
            }

            if (ReceiptBank == "")
            {
                pub.Msg("info", "提示信息", "填写出金收款银行", false, "{back}");
            }

            if (BankCode == "")
            {
                pub.Msg("info", "提示信息", "填写银行行号", false, "{back}");
            }

            if (BankName == "")
            {
                pub.Msg("info", "提示信息", "填写银行名称", false, "{back}");
            }

            if (OpenAccountName == "")
            {
                pub.Msg("info", "提示信息", "填写开户名称", false, "{back}");
            }

            ZhongXinInfo entity = MyBLL.GetZhongXinBySuppleir(Supplier_ID);

            entity.ReceiptAccount = ReceiptAccount;
            entity.ReceiptBank    = ReceiptBank;
            entity.BankCode       = BankCode;
            entity.BankName       = BankName;
            entity.Audit          = 0;
            entity.Register       = 0;

            if (MyBLL.EditZhongXin(entity))
            {
                pub.Msg("positive", "操作成功", "操作成功", true, "/supplier/ZhongXin.aspx?tip=success");
            }
            else
            {
                pub.Msg("error", "错误信息", "操作失败,请稍后重试", false, "{back}");
            }
        }
        else
        {
            pub.Msg("error", "错误信息", "信息保存失败,请稍后再试!", false, "{back}");
        }
    }
Example #4
0
    public string GetZhongXins()
    {
        QueryInfo Query = new QueryInfo();

        Query.PageSize    = tools.CheckInt(Request["rows"]);
        Query.CurrentPage = tools.CheckInt(Request["page"]);
        Query.ParamInfos.Add(new ParamInfo("AND", "int", "ZhongXinInfo.ID", ">", "0"));

        string keyword = tools.CheckStr(Request["keyword"]);

        if (keyword != "")
        {
            Query.ParamInfos.Add(new ParamInfo("AND(", "str", "ZhongXinInfo.CompanyName", "like", keyword));
            Query.ParamInfos.Add(new ParamInfo("OR)", "str", "ZhongXinInfo.ReceiptAccount", "like", keyword));
        }
        Query.OrderInfos.Add(new OrderInfo(tools.CheckStr(Request["sidx"]), tools.CheckStr(Request["sord"])));

        PageInfo pageinfo = MyBLL.GetPageInfo(Query);

        IList <ZhongXinInfo> entitys = null;

        if (pageinfo.RecordCount > 0)
        {
            entitys = MyBLL.GetZhongXins(Query);
        }

        SupplierInfo supplier = null;

        if (entitys != null)
        {
            StringBuilder jsonBuilder = new StringBuilder();
            jsonBuilder.Append("{\"page\":" + pageinfo.CurrentPage + ",\"total\":" + pageinfo.PageCount + ",\"records\":" + pageinfo.RecordCount + ",\"rows\"");
            jsonBuilder.Append(":[");
            foreach (ZhongXinInfo entity in entitys)
            {
                jsonBuilder.Append("{\"id\":" + entity.ID + ",\"cell\":[");

                //各字段
                jsonBuilder.Append("\"");
                jsonBuilder.Append(entity.ID);
                jsonBuilder.Append("\",");

                jsonBuilder.Append("\"");
                supplier = MySupplier.GetSupplierByID(entity.SupplierID, Public.GetUserPrivilege());
                if (supplier != null)
                {
                    jsonBuilder.Append(Public.JsonStr(supplier.Supplier_CompanyName));
                }
                else
                {
                    jsonBuilder.Append(entity.SupplierID);
                }
                jsonBuilder.Append("\",");

                jsonBuilder.Append("\"");
                jsonBuilder.Append(Public.JsonStr(entity.CompanyName));
                jsonBuilder.Append("\",");

                jsonBuilder.Append("\"");
                jsonBuilder.Append(Public.JsonStr(entity.OpenAccountName));
                jsonBuilder.Append("\",");

                jsonBuilder.Append("\"");
                jsonBuilder.Append(Public.JsonStr(entity.SubAccount));
                jsonBuilder.Append("\",");

                jsonBuilder.Append("\"");
                jsonBuilder.Append(Public.JsonStr(entity.ReceiptAccount));
                jsonBuilder.Append("\",");

                jsonBuilder.Append("\"");
                jsonBuilder.Append(Public.JsonStr(entity.ReceiptBank));
                jsonBuilder.Append("\",");

                jsonBuilder.Append("\"");
                jsonBuilder.Append(Public.JsonStr(entity.BankName));
                jsonBuilder.Append("\",");

                jsonBuilder.Append("\"");
                jsonBuilder.Append(Public.JsonStr(entity.BankCode));
                jsonBuilder.Append("\",");

                jsonBuilder.Append("\"");
                if (entity.Audit == 0)
                {
                    jsonBuilder.Append(Public.JsonStr("未审核"));
                }
                else
                {
                    jsonBuilder.Append(Public.JsonStr("已审核"));
                }
                jsonBuilder.Append("\",");

                jsonBuilder.Append("\"");
                if (entity.Register == 0)
                {
                    jsonBuilder.Append(Public.JsonStr("未推送"));
                }
                else
                if (entity.Register == 1)
                {
                    jsonBuilder.Append(Public.JsonStr("已推送未绑定"));
                }
                else
                {
                    jsonBuilder.Append(Public.JsonStr("已推送绑定"));
                }
                jsonBuilder.Append("\",");

                jsonBuilder.Append("\"");

                if (entity.Audit == 1)//平台已审核
                {
                    if (entity.Register == 0)
                    {
                        jsonBuilder.Append("<img src=\\\"/images/btn_add.gif\\\" alt=\\\"推送数据\\\" align=\\\"absmiddle\\\"> <a  href=\\\"javascript:void(0);\\\" onclick=\\\"window.open('zhongxin_do.aspx?action=tuisong&id=" + entity.ID + "', '_self')\\\">推送数据</a> ");
                    }
                    if (entity.Register == 1)
                    {
                        jsonBuilder.Append("<img src=\\\"/images/btn_add.gif\\\" alt=\\\"绑定出金账号\\\" align=\\\"absmiddle\\\"> <a  href=\\\"javascript:void(0);\\\" onclick=\\\"window.open('zhongxin_do.aspx?action=editRegister&id=" + entity.ID + "', '_self')\\\">绑定</a> ");
                    }
                }

                jsonBuilder.Append("<img src=\\\"/images/btn_add.gif\\\" alt=\\\"修改\\\" align=\\\"absmiddle\\\"> <a href=\\\"zhongxin_edit.aspx?id=" + entity.ID + "\\\" title=\\\"修改\\\">修改</a> ");
                jsonBuilder.Append("\",");

                jsonBuilder.Remove(jsonBuilder.Length - 1, 1);
                jsonBuilder.Append("]},");
            }
            jsonBuilder.Remove(jsonBuilder.Length - 1, 1);
            jsonBuilder.Append("]");
            jsonBuilder.Append("}");
            return(jsonBuilder.ToString());
        }
        else
        {
            return(null);
        }
    }
Example #5
0
    public string GetFeedBacks()
    {
        string    nickname      = "";
        string    type_name     = "";
        int       Feedback_Type = 0;
        string    keyword       = tools.CheckStr(Request["keyword"]);
        int       isreply       = tools.CheckInt(Request["isreply"]);
        string    date_start    = tools.CheckStr(Request.QueryString["date_start"]);
        string    date_end      = tools.CheckStr(Request.QueryString["date_end"]);
        QueryInfo Query         = new QueryInfo();

        Query.PageSize    = tools.CheckInt(Request["rows"]);
        Query.CurrentPage = tools.CheckInt(Request["page"]);
        Query.ParamInfos.Add(new ParamInfo("AND", "str", "FeedBackInfo.Feedback_Site", "=", Public.GetCurrentSite()));

        string listtype = tools.CheckStr(Request.QueryString["listtype"]);

        switch (listtype)
        {
        case "message":
            Query.ParamInfos.Add(new ParamInfo("AND", "int", "FeedBackInfo.Feedback_Type", "=", "1"));
            break;

        case "idea":
            Query.ParamInfos.Add(new ParamInfo("AND", "int", "FeedBackInfo.Feedback_Type", "!=", "1"));
            break;

        case "suggest":
            Query.ParamInfos.Add(new ParamInfo("AND(", "int", "FeedBackInfo.Feedback_Type", "=", "3"));
            Query.ParamInfos.Add(new ParamInfo("OR)", "int", "FeedBackInfo.Feedback_Type", "=", "4"));
            break;

        case "complain":
            Query.ParamInfos.Add(new ParamInfo("AND(", "int", "FeedBackInfo.Feedback_Type", "=", "5"));
            Query.ParamInfos.Add(new ParamInfo("OR)", "int", "FeedBackInfo.Feedback_Type", "=", "6"));
            break;

        default:
            Query.ParamInfos.Add(new ParamInfo("AND", "int", "FeedBackInfo.Feedback_Type", "=", "1"));
            break;
        }
        if (isreply == 1)
        {
            Query.ParamInfos.Add(new ParamInfo("AND", "str", "FeedBackInfo.Feedback_Reply_Content", "<>", ""));
        }
        else if (isreply == 2)
        {
            Query.ParamInfos.Add(new ParamInfo("AND", "str", "FeedBackInfo.Feedback_Reply_Content", "=", ""));
        }
        if (keyword.Length > 0)
        {
            Query.ParamInfos.Add(new ParamInfo("AND(", "str", "FeedBackInfo.Feedback_Name", "like", keyword));
            Query.ParamInfos.Add(new ParamInfo("OR", "str", "FeedBackInfo.Feedback_CompanyName", "like", keyword));
            Query.ParamInfos.Add(new ParamInfo("OR", "str", "FeedBackInfo.Feedback_Tel", "like", keyword));
            Query.ParamInfos.Add(new ParamInfo("OR)", "str", "FeedBackInfo.Feedback_Email", "like", keyword));
        }
        if (date_start != "")
        {
            Query.ParamInfos.Add(new ParamInfo("AND", "funint", "DATEDIFF(d, '" + date_start + "',{FeedBackInfo.Feedback_Addtime})", ">=", "0"));
        }
        if (date_end != "")
        {
            Query.ParamInfos.Add(new ParamInfo("AND", "funint", "DATEDIFF(d, '" + date_end + "',{FeedBackInfo.Feedback_Addtime})", "<=", "0"));
        }
        Query.OrderInfos.Add(new OrderInfo(tools.CheckStr(Request["sidx"]), tools.CheckStr(Request["sord"])));

        PageInfo             pageinfo = MyFeedback.GetPageInfo(Query, Public.GetUserPrivilege());
        IList <FeedBackInfo> entitys  = MyFeedback.GetFeedBacks(Query, Public.GetUserPrivilege());

        if (entitys != null)
        {
            StringBuilder jsonBuilder = new StringBuilder();
            jsonBuilder.Append("{\"page\":" + pageinfo.CurrentPage + ",\"total\":" + pageinfo.PageCount + ",\"records\":" + pageinfo.RecordCount + ",\"rows\"");
            jsonBuilder.Append(":[");
            foreach (FeedBackInfo entity in entitys)
            {
                nickname = "游客";
                MemberInfo member = new MemberInfo();

                if (entity.Feedback_MemberID > 0)
                {
                    member = MyBLL.GetMemberByID(entity.Feedback_MemberID, Public.GetUserPrivilege());
                    if (member != null)
                    {
                        nickname = member.Member_NickName;
                    }
                }

                SupplierInfo supplierinfo = new SupplierInfo();

                if (entity.Feedback_SupplierID > 0)
                {
                    supplierinfo = MySupplier.GetSupplierByID(entity.Feedback_SupplierID, Public.GetUserPrivilege());
                    if (supplierinfo != null)
                    {
                        nickname = supplierinfo.Supplier_Nickname;
                    }
                }

                switch (entity.Feedback_Type)
                {
                //case 1:
                //    type_name = "简单的留言";
                //    break;
                //case 2:
                //    type_name = "对网站的意见";
                //    break;
                //case 3:
                //    type_name = "对公司的建议";
                //    break;
                //case 4:
                //    type_name = "具有合作意向";
                //    break;
                //case 5:
                //    type_name = "产品投诉";
                //    break;
                //case 6:
                //    type_name = "服务投诉";
                //    break;


                case 1:
                    type_name = "网站留言";
                    break;

                case 2:
                    type_name = "商业承兑融资";
                    break;

                case 3:
                    type_name = "应收账款融资";
                    break;

                case 4:
                    type_name = "货押融资";
                    break;

                    //case 3:
                    //    type_name = "对公司的建议";
                    //    break;
                    //case 4:
                    //    type_name = "具有合作意向";
                    //    break;
                    //case 5:
                    //    type_name = "产品投诉";
                    //    break;
                    //case 6:
                    //    type_name = "服务投诉";
                    //break;
                }

                jsonBuilder.Append("{\"id\":" + entity.Feedback_ID + ",\"cell\":[");
                //各字段
                jsonBuilder.Append("\"");
                jsonBuilder.Append(entity.Feedback_ID);
                jsonBuilder.Append("\",");

                jsonBuilder.Append("\"");
                jsonBuilder.Append(Public.JsonStr(entity.Feedback_Name));
                jsonBuilder.Append("\",");

                //jsonBuilder.Append("\"");
                //jsonBuilder.Append(Public.JsonStr(entity.Feedback_CompanyName));
                //jsonBuilder.Append("\",");

                jsonBuilder.Append("\"");
                jsonBuilder.Append(Public.JsonStr(type_name));
                jsonBuilder.Append("\",");

                jsonBuilder.Append("\"");
                jsonBuilder.Append(Public.JsonStr(entity.Feedback_Tel));
                jsonBuilder.Append("\",");

                if (Feedback_Type == 1)
                {
                    jsonBuilder.Append("\"");
                    jsonBuilder.Append(Public.JsonStr(entity.Feedback_Email));
                    jsonBuilder.Append("\",");
                }
                else
                {
                    jsonBuilder.Append("\"");
                    jsonBuilder.Append(tools.CheckFloat(entity.Feedback_Amount.ToString()));
                    jsonBuilder.Append("\",");
                }


                jsonBuilder.Append("\"");
                if (entity.Feedback_Reply_Content != "")
                {
                    jsonBuilder.Append("已回复");
                }
                else
                {
                    jsonBuilder.Append("未回复");
                }

                jsonBuilder.Append("\",");

                jsonBuilder.Append("\"");
                jsonBuilder.Append(entity.Feedback_Addtime.ToString("yy-MM-dd"));
                jsonBuilder.Append("\",");

                jsonBuilder.Append("\"");
                jsonBuilder.Append("<img src=\\\"/images/icon_view.gif\\\" alt=\\\"查看\\\" align=\\\"absmiddle\\\"> <a href=\\\"feedback_view.aspx?feedback_id=" + entity.Feedback_ID + "\\\" title=\\\"查看\\\">查看</a> ");

                if (Public.CheckPrivilege("cc567804-3e2e-4c6c-aa22-c9a353508074"))
                {
                    jsonBuilder.Append("<img src=\\\"/images/icon_del.gif\\\" alt=\\\"删除\\\" align=\\\"absmiddle\\\"> <a href=\\\"javascript:void(0);\\\" onclick=\\\"confirmdelete('supplier_do.aspx?action=feedbackmove&listtype=" + listtype + "&feedback_id=" + entity.Feedback_ID + "')\\\" title=\\\"删除\\\">删除</a>");


                    //jsonBuilder.Append(" <img src=\\\"/images/icon_del.gif\\\"  alt=\\\"删除\\\"> <a href=\\\"javascript:void(0);\\\" onclick=\\\"confirmdelete('depot_do.aspx?action=move&depot_id=" + Depot_ID + "')\\\" title=\\\"删除\\\">删除</a>");
                }

                jsonBuilder.Append("\",");

                jsonBuilder.Remove(jsonBuilder.Length - 1, 1);
                jsonBuilder.Append("]},");

                supplierinfo = null;
            }
            jsonBuilder.Remove(jsonBuilder.Length - 1, 1);
            jsonBuilder.Append("]");
            jsonBuilder.Append("}");
            return(jsonBuilder.ToString());
        }
        else
        {
            return(null);
        }
    }