<%@ Page Language="C#" %>

<%@ Register TagPrefix="aspxform" Namespace="XFormDesigner.Framework.Web.UI" Assembly="XFormDesigner.Framework" %>
<script runat="server">

    // Insert page code here
    //
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            if (Request.QueryString["formNo"] != null)
            {
                this.XTextBox25.Text = Request.QueryString["formNo"].ToString();
            }


        }
    }

</script>
<html xmlns:xform="xmlns:xform">
<head runat="server">
    <meta http-equiv="X-UA-Compatible" content="IE=Edge" />
    <link href="/Oimec/Styles/css/StyleSheet.css" rel="stylesheet" type="text/css" />
    <title>BPM Form</title>
    <style>
        BODY {
            FONT-SIZE: 12px;
            FONT-FAMILY: verdana;
        }

        TABLE {
            border-collapse: collapse;
            FONT-SIZE: 12px;
            FONT-FAMILY: verdana;
        }

        P {
            PADDING-RIGHT: 0px;
            PADDING-LEFT: 0px;
            PADDING-BOTTOM: 0px;
            MARGIN: 0px;
            PADDING-TOP: 0px;
            FONT-SIZE: 12px;
            FONT-FAMILY: verdana;
        }

        TD {
            padding: 1px;
        }

            TD.NoPadding {
                PADDING-RIGHT: 0px;
                PADDING-LEFT: 0px;
                PADDING-BOTTOM: 0px;
                PADDING-TOP: 0px;
            }
        /*INPUT {height: 15px}*/
        INPUT.UL {
            BORDER-RIGHT: medium none;
            BORDER-TOP: medium none;
            BORDER-LEFT: medium none;
            BORDER-BOTTOM: #33ff33 1px solid;
        }

        TEXTAREA {
            FONT-SIZE: 12px;
        }

        input {
            vertical-align: middle; /*margin-right:-3px*/
        }
    </style>
    <script type="text/javascript">
        //获取X控件值
        function GetXValue(id) {
            return agent.Eles[document.getElementById(id).getAttribute("xform_xele_index")].getValue();
        }
        //给X控件赋值
        function SetXValue(id, value) {
            return agent.Eles[document.getElementById(id).getAttribute("xform_xele_index")].setValue(value);
        }


        function AjaxParm(url, async, parm, fun) {
            YZSoft.Ajax.request({
                async: async,
                url: url,
                params: parm,
                success: fun
            });
        }
        //单选获取选中的值
        function checkedVaule(name) {
            var obj = document.getElementsByName(name);
            for (var i = 0; i < obj.length; i++) {
                if (obj[i].checked) {
                    return obj[i].value;
                }
            }

        }

        //生成盖章报价单
        function CreateQuotation() {
            var itemId = agent.Eles[document.getElementById("XTextBox5").getAttribute("xform_xele_index")].getValue();//销售机会 id
            var IsRideStitch = checkedVaule("XRadioButtonList1");//是否盖骑缝章      
            var attachment = agent.Eles[document.getElementById("XAttachments2").getAttribute("xform_xele_index")].getValue();
            var FormNo = agent.Eles[document.getElementById("XLabel").getAttribute("xform_xele_index")].getValue();//申请单号
            var id = document.getElementById("XAttachments2").getElementsByTagName("div")[2].id;
            var filename = document.getElementById(id).getAttribute("filename");
            var FileType = "";
            if (filename != null) {

                //文件扩展名的正则表达式
                var patternFileExtension = /\.([0-9a-z]+)(?:[\?#]|$)/i;
                //获得文件扩展名 
                var fileExtension = filename.split('.').pop();
                FileType = fileExtension;

            }
            var decode = "";

            var url = YZSoft.$url('Oimec/ApiServices/CrmapiHandler.ashx');
            var parm = { method: "CreateQuotation", oppID: itemId, IsRideStitch: IsRideStitch, attachment: attachment, FileType: FileType, FormNo: FormNo };
            AjaxParm(url, false, parm, function (action) {

                var obj = eval("(" + action.responseText + ")");
                var code = obj.Code;
                var Message = obj.Message;

                if (code == 0) {//成功                   
                    decode = obj.Value;
                } else {
                    decode = "1";
                }

            });
            return decode;
        }

        function CheckFile() {
            var attachment = agent.Eles[document.getElementById("XAttachments2").getAttribute("xform_xele_index")].getValue();

            var id = document.getElementById("XAttachments2").getElementsByTagName("div")[2].id;
            var filename = document.getElementById(id).getAttribute("filename");
            var FileType = "";
            if (filename != null) {

                //文件扩展名的正则表达式
                var patternFileExtension = /\.([0-9a-z]+)(?:[\?#]|$)/i;
                //获得文件扩展名 
                var fileExtension = filename.split('.').pop();
                FileType = fileExtension;

            }

            var decode = "";
            if (attachment != null && attachment != "") {
                var url = YZSoft.$url('Oimec/ApiServices/CrmapiHandler.ashx');
                var parm = { method: "IsExistBookMark", attachment: attachment, FileType: FileType };
                AjaxParm(url, false, parm, function (action) {

                    var obj = eval("(" + action.responseText + ")");
                    var code = obj.Code;

                    if (code == 0) {//成功                   
                        decode = "0";
                    } else {
                        decode = "1";
                    }

                });
            }
            else
                decode = "2";
            return decode;
        }
        agent.on('beforeSubmit', function (actname1, actname) {
            if (actname == "提交") {

                var XAttachments1 = agent.Eles[document.getElementById("XAttachments2").getAttribute("xform_xele_index")].getValue();
                if (XAttachments1 != null && XAttachments1 != "") {
                    var arr = XAttachments1.split(';');
                    if (arr.length >= 2) {
                        //alert(arr.length)

                        Ext.MessageBox.alert("提示", "报价单文档上传目前只支持上传一个");
                        return false;
                    }
                }
                var code = CheckFile();
                if (code == "1") {
                    Ext.MessageBox.alert('提示', '报价单附件不含签章标记，无法进行盖章，请检查附件后重新上传！');
                    return false;
                }
                if (code == "2") {
                    Ext.MessageBox.alert('提示', '请上传报价单附件！');
                    return false;
                }
            }
            if (actname == "同意") {
                var vl = CreateQuotation();
                if (vl != "" && vl != "1") {
                    //表单存储对象地址
                    SetXValue("XTextBox6", vl);
                }
                else {
                    Ext.MessageBox.alert('提示', '报价单盖章失败,请联系管理员');
                    return false;
                }
            }
        });

        //下载附件
        function fileDownload(txtid, extension) {

            var objName = agent.Eles[document.getElementById(txtid).getAttribute("xform_xele_index")].getValue();
            if (objName == "") {
                Ext.MessageBox.alert('提示', '无附件可下载');
            }
            else {
                //alert(objName);
                var url = YZSoft.$url('Oimec/ApiServices/SalesAPIHandler.ashx');
                YZSoft.src.ux.File.download(url, {
                    method: 'DownloadAliOss',
                    objName: objName,
                    objExt: extension
                });
            }

        }

        Ext.onReady(function () {

            //流程节点
            var StepName = agent.Eles[document.getElementById("StepName").getAttribute("xform_xele_index")].getValue();
            //文档路径
            var AttachmentObj = agent.Eles[document.getElementById("XTextBox6").getAttribute("xform_xele_index")].getValue();

            if (StepName == "结束" && (AttachmentObj == "" || AttachmentObj == "1")) {

                var vl = CreateQuotation();

                if (vl != "" && vl != "1") {
                    //表单存储对象地址
                    SetXValue("XTextBox6", vl);
                }
                else {
                    //  Ext.MessageBox.alert('提示', '报价单盖章失败,请联系管理员');
                    //  return false;
                }
            }

        });

    </script>
</head>
<body>
    <form runat="server">
        <!-- Insert content here -->
        <table width="1200" class="head" border="0" cellspacing="0" cellpadding="0">
            <tbody>
                <tr>
                    <td class="logo"></td>
                    <td class="biaoti" style="padding-left: 30px">
                        <asp:Label ID="Label1" runat="server" Text="报价单盖章申请单"></asp:Label></td>
                    <td class="formno">
                        <asp:Label ID="XLabel2" runat="server" Text="表单号："></asp:Label>
                        <aspxform:XLabel ID="XLabel" runat="server" Text="--系统自动生成--" XDataBind="DF_CRM_CustomerQuotationSeal.FormNo" ValueToDisplayText BackColor="#8AB3DF" Value></aspxform:XLabel>
                    </td>
                </tr>
            </tbody>
        </table>
        <br />
        <table width="1192" class="table" border="0" cellspacing="0" cellpadding="0">
            <tbody>
                <tr>
                    <td height="17" colspan="4">
                        <asp:Label ID="Label19" runat="server" Text="标记*的为申请人发起申请时必填" ForeColor="Red"></asp:Label></td>
                </tr>
                <tr>
                    <td height="21" class="title1" colspan="4">
                        <asp:Label ID="Label3" runat="server" Text="基本信息"></asp:Label>
                        <aspxform:XDropDownList runat="server" HiddenExpress="1" DataMap="NodeName->StepName" XDataSource="TableName:BPMInstProcSteps;Filter:TaskID->DF_CRM_CustomerQuotationSeal.TaskID;orderby:ReceiveAt desc"></aspxform:XDropDownList>
                        <aspxform:XTextBox runat="server" ID="StepName" HiddenInput="true" HiddenExpress="1" XDataBind="StepName" Width="100"></aspxform:XTextBox>
                        <aspxform:XTextBox runat="server" ID="TaskID" HiddenInput="true" HiddenExpress="1" XDataBind="DF_CRM_CustomerQuotationSeal.TaskID" Width="100"></aspxform:XTextBox>

                        <aspxform:XTextBox ID="XTextBox6" runat="server" XDataBind="DF_CRM_CustomerQuotationSeal.AttachmentObj" BorderWidth="1" BorderColor="#DCDCDC" HiddenInput="True"></aspxform:XTextBox>
                    </td>
                </tr>
                <tr>
                    <td width="131" class="tsbottomlabel">
                        <asp:Label ID="Label5" runat="server" Text="创建用户"></asp:Label>
                        <aspxform:XTextBox ID="XTextBox12" runat="server" XDataBind="DF_CRM_CustomerQuotationSeal.AppAccount" BorderWidth="1" BorderColor="#DCDCDC" HiddenInput="True" Width="20px"></aspxform:XTextBox>
                    </td>
                    <td width="465" class="tsbottomtext">
                        <aspxform:XTextBox ID="XTextBox1" runat="server" XDataBind="DF_CRM_CustomerQuotationSeal.AppName" BackColor="#E6F1F8" BorderWidth="1" BorderColor="#DCDCDC" Width="70%" ReadOnly="True"></aspxform:XTextBox>
                    </td>
                    <td width="131" class="tsbottomlabel">
                        <asp:Label ID="Label7" runat="server" Text="创建日期"></asp:Label></td>
                    <td width="465" class="tsbottomtext">
                        <aspxform:XDateTimePicker ID="XDateTimePicker1" runat="server" XDataBind="DF_CRM_CustomerQuotationSeal.CreateDate" BackColor="#E6F1F8" BorderWidth="1" BorderColor="#DCDCDC" Width="50%" DisplayOnly="True"></aspxform:XDateTimePicker>
                    </td>
                </tr>
                <tr>
                    <td height="21" class="tsbottomlabel">
                        <asp:Label ID="Label4" runat="server" Text="业务员"></asp:Label>
                        <aspxform:XTextBox ID="XTextBox13" runat="server" XDataBind="DF_CRM_CustomerQuotationSeal.SalesmanID" ValueToDisplayText BorderWidth="1px" BorderColor="Gainsboro" HiddenInput="False" Max="0" Min="0" Width="20px" HiddenExpress="1"></aspxform:XTextBox>
                    </td>
                    <td class="tsbottomtext">
                        <aspxform:XTextBox ID="XTextBox2" runat="server" XDataBind="DF_CRM_CustomerQuotationSeal.SalesmanName" BackColor="#E6F1F8" BorderWidth="1" BorderColor="#DCDCDC" Width="70%" ReadOnly="True"></aspxform:XTextBox>
                    </td>
                    <td class="tsbottomlabel"></td>
                    <td class="tsbottomtext"></td>
                </tr>
                <tr>
                    <td height="20" class="tsbottomlabel">
                        <asp:Label ID="Label10" runat="server" Text="BU"></asp:Label></td>
                    <td class="tsbottomtext">
                        <aspxform:XTextBox ID="XTextBox3" runat="server" XDataBind="DF_CRM_CustomerQuotationSeal.BU" BackColor="#E6F1F8" BorderWidth="1" BorderColor="#DCDCDC" Width="70%" ReadOnly="True"></aspxform:XTextBox>
                    </td>
                    <td class="tsbottomlabel">
                        <asp:Label ID="Label16" runat="server" Text="所属地区"></asp:Label></td>
                    <td class="tsbottomtext">
                        <aspxform:XTextBox ID="XTextBox4" runat="server" XDataBind="DF_CRM_CustomerQuotationSeal.Area" BackColor="#E6F1F8" BorderWidth="1" BorderColor="#DCDCDC" Width="70%" ReadOnly="True"></aspxform:XTextBox>
                    </td>
                </tr>
                <tr>
                    <td height="25" class="tsbottomlabel"></td>
                    <td class="tsbottomtext"></td>
                    <td class="tsbottomlabel"></td>
                    <td class="tsbottomtext"></td>
                </tr>
                <tr>
                    <td height="20" class="tsbottomlabel">
                        <asp:Label ID="Label9" runat="server" Text="销售机会编号"></asp:Label>
                        <aspxform:XTextBox ID="XTextBox5" runat="server" XDataBind="DF_CRM_CustomerQuotationSeal.SalesOppID" BorderWidth="1" BorderColor="#DCDCDC" HiddenInput="True" Width="20px"></aspxform:XTextBox>
                    </td>
                    <td class="tsbottomtext">
                        <aspxform:XTextBox ID="XTextBox25" runat="server" XDataBind="DF_CRM_CustomerQuotationSeal.SalesOppFormNo" ValueToDisplayText="TableName:DF_CRM_SalesOpportunities;FilterColumn:FormNo;DisplayColumn:FormNo" BackColor="#E6F1F8" BorderWidth="1" BorderColor="#DCDCDC" Width="70%" ReadOnly="True" DataMap="ItemId->DF_CRM_CustomerQuotationSeal.SalesOppID;SalesmanID->DF_CRM_CustomerQuotationSeal.SalesManID;BU->DF_CRM_CustomerQuotationSeal.BU;Area->DF_CRM_CustomerQuotationSeal.Area;BillingCompany->DF_CRM_CustomerQuotationSeal.BillingCompany;PTPName->DF_CRM_CustomerQuotationSeal.PayCustomerName;DemanderContractNumber->DF_CRM_CustomerQuotationSeal.CustomerContractNo;SalesmanName->DF_CRM_CustomerQuotationSeal.SalesManName"></aspxform:XTextBox>
                    </td>
                    <td class="tsbottomlabel">
                        <asp:Label ID="Label6" runat="server" Text="开票公司"></asp:Label></td>
                    <td class="tsbottomtext">
                        <aspxform:XTextBox ID="XTextBox14" runat="server" XDataBind="DF_CRM_CustomerQuotationSeal.BillingCompany" BackColor="#E6F1F8" BorderWidth="1" BorderColor="#DCDCDC" Width="70%" ReadOnly="True"></aspxform:XTextBox>
                    </td>
                </tr>
                <tr>
                    <td height="20" class="tsbottomlabel">
                        <asp:Label ID="Label11" runat="server" Text="需方合同编号"></asp:Label></td>
                    <td class="tsbottomtext">
                        <aspxform:XTextBox ID="XTextBox20" runat="server" XDataBind="DF_CRM_CustomerQuotationSeal.CustomerContractNo" BackColor="#E6F1F8" BorderWidth="1" BorderColor="#DCDCDC" Width="70%" ReadOnly="True"></aspxform:XTextBox>
                    </td>
                    <td class="tsbottomlabel">
                        <asp:Label ID="Label12" runat="server" Text="付款方客户名称"></asp:Label></td>
                    <td class="tsbottomtext">
                        <aspxform:XTextBox ID="XTextBox15" runat="server" XDataBind="DF_CRM_CustomerQuotationSeal.PayCustomerName" BackColor="#E6F1F8" BorderWidth="1" BorderColor="#DCDCDC" Width="70%" ReadOnly="True"></aspxform:XTextBox>
                    </td>
                </tr>
            </tbody>
        </table>
        &nbsp;<aspxform:XRequiredFieldValidator ID="XRequiredFieldValidator3" runat="server" ForeColor="Red" ValidationGroup="sb" ControlToValidate="XAttachments2" ErrorMessage="请上传报价单文档">请上传报价单文档</aspxform:XRequiredFieldValidator>
        <br />
        <table width="1200" class="table" border="0" cellspacing="0" cellpadding="0">
            <tbody>
                <tr>
                    <td width="10%" class="tsbottomlabel">
                        <asp:Label ID="Label22" runat="server" Text="带不含税价格"></asp:Label>

                    </td>
                    <td class="tsbottomtext" colspan="3">
                        <aspxform:XRadioButtonList ID="ExcludingTax" runat="server" XDataBind="DF_CRM_CustomerQuotationSeal.IsExcludingTax" RepeatDirection="Horizontal">
                            <asp:ListItem Selected="True">是</asp:ListItem>
                            <asp:ListItem>否</asp:ListItem>
                        </aspxform:XRadioButtonList>
                    </td>

                </tr>
                <tr>
                    <td width="10%" class="tsbottomlabel">
                        <asp:Label ID="Label13" runat="server" Text="报价单模板下载"></asp:Label></td>
                    <td class="tsbottomtext" hiddenexpress="DF_CRM_CustomerQuotationSeal.IsExcludingTax=='否'">
                        <aspxform:XHyperLink ID="XHyperLink1" runat="server" BackColor="#d4e4fe" HiddenExpress='DF_CRM_CustomerQuotationSeal.BillingCompany!="1000东方中科北京" ' NavigateUrl="~/Docs/QuotationTemplate/东方中科客户报价单-含税不含税-北京.docx">Word模板下载</aspxform:XHyperLink>
                        <aspxform:XHyperLink ID="XHyperLink2" runat="server" BackColor="#d4e4fe" HiddenExpress='DF_CRM_CustomerQuotationSeal.BillingCompany!="1010东方中科上海" ' NavigateUrl="~/Docs/QuotationTemplate/东方中科客户报价单-含税不含税-上海.docx">Word模板下载</aspxform:XHyperLink>
                        <aspxform:XHyperLink ID="XHyperLink3" runat="server" BackColor="#d4e4fe" HiddenExpress='DF_CRM_CustomerQuotationSeal.BillingCompany!="1020东方中科深圳" ' NavigateUrl="~/Docs/QuotationTemplate/东方中科客户报价单-含税不含税-深圳.docx">Word模板下载</aspxform:XHyperLink>
                        <aspxform:XHyperLink ID="XHyperLink4" runat="server" BackColor="#d4e4fe" HiddenExpress='DF_CRM_CustomerQuotationSeal.BillingCompany!="2100苏州博德" ' NavigateUrl="~/Docs/QuotationTemplate/苏州博德客户报价单-含税不含税.docx">Word模板下载</aspxform:XHyperLink>&nbsp;&nbsp;
                        <aspxform:XHyperLink ID="XHyperLink5" runat="server" BackColor="#d4e4fe" HiddenExpress='DF_CRM_CustomerQuotationSeal.BillingCompany!="1000东方中科北京" ' NavigateUrl="~/Docs/QuotationTemplate/东方中科客户报价单-含税不含税-北京.xlsx">Excel模板下载</aspxform:XHyperLink>
                        <aspxform:XHyperLink ID="XHyperLink6" runat="server" BackColor="#d4e4fe" HiddenExpress='DF_CRM_CustomerQuotationSeal.BillingCompany!="1010东方中科上海" ' NavigateUrl="~/Docs/QuotationTemplate/东方中科客户报价单-含税不含税-上海.xlsx">Excel模板下载</aspxform:XHyperLink>
                        <aspxform:XHyperLink ID="XHyperLink7" runat="server" BackColor="#d4e4fe" HiddenExpress='DF_CRM_CustomerQuotationSeal.BillingCompany!="1020东方中科深圳"' NavigateUrl="~/Docs/QuotationTemplate/东方中科客户报价单-含税不含税-深圳.xlsx">Excel模板下载</aspxform:XHyperLink>
                        <aspxform:XHyperLink ID="XHyperLink8" runat="server" BackColor="#d4e4fe" HiddenExpress='DF_CRM_CustomerQuotationSeal.BillingCompany!="2100苏州博德"' NavigateUrl="~/Docs/QuotationTemplate/苏州博德客户报价单-含税不含税.xlsx">Excel模板下载</aspxform:XHyperLink>


                    </td>
                    <td class="tsbottomtext" hiddenexpress="DF_CRM_CustomerQuotationSeal.IsExcludingTax=='是'">
                        <aspxform:XHyperLink ID="XHyperLink9" runat="server" BackColor="#d4e4fe" HiddenExpress='DF_CRM_CustomerQuotationSeal.BillingCompany!="1000东方中科北京"' NavigateUrl="~/Docs/QuotationTemplate/东方中科客户报价单-含税-北京.docx">Word模板下载</aspxform:XHyperLink>
                        <aspxform:XHyperLink ID="XHyperLink10" runat="server" BackColor="#d4e4fe" HiddenExpress='DF_CRM_CustomerQuotationSeal.BillingCompany!="1010东方中科上海" ' NavigateUrl="~/Docs/QuotationTemplate/东方中科客户报价单-含税-上海.docx">Word模板下载</aspxform:XHyperLink>
                        <aspxform:XHyperLink ID="XHyperLink11" runat="server" BackColor="#d4e4fe" HiddenExpress='DF_CRM_CustomerQuotationSeal.BillingCompany!="1020东方中科深圳"' NavigateUrl="~/Docs/QuotationTemplate/东方中科客户报价单-含税-深圳.docx">Word模板下载</aspxform:XHyperLink>
                        <aspxform:XHyperLink ID="XHyperLink12" runat="server" BackColor="#d4e4fe" HiddenExpress='DF_CRM_CustomerQuotationSeal.BillingCompany!="2100苏州博德" ' NavigateUrl="~/Docs/QuotationTemplate/苏州博德客户报价单-含税.docx">Word模板下载</aspxform:XHyperLink>&nbsp;&nbsp;
                        <aspxform:XHyperLink ID="XHyperLink13" runat="server" BackColor="#d4e4fe" HiddenExpress='DF_CRM_CustomerQuotationSeal.BillingCompany!="1000东方中科北京" ' NavigateUrl="~/Docs/QuotationTemplate/东方中科客户报价单-含税-北京.xlsx">Excel模板下载</aspxform:XHyperLink>
                        <aspxform:XHyperLink ID="XHyperLink14" runat="server" BackColor="#d4e4fe" HiddenExpress='DF_CRM_CustomerQuotationSeal.BillingCompany!="1010东方中科上海" ' NavigateUrl="~/Docs/QuotationTemplate/东方中科客户报价单-含税-上海.xlsx">Excel模板下载</aspxform:XHyperLink>
                        <aspxform:XHyperLink ID="XHyperLink15" runat="server" BackColor="#d4e4fe" HiddenExpress='DF_CRM_CustomerQuotationSeal.BillingCompany!="1020东方中科深圳" ' NavigateUrl="~/Docs/QuotationTemplate/东方中科客户报价单-含税-深圳.xlsx">Excel模板下载</aspxform:XHyperLink>
                        <aspxform:XHyperLink ID="XHyperLink16" runat="server" BackColor="#d4e4fe" HiddenExpress='DF_CRM_CustomerQuotationSeal.BillingCompany!="2100苏州博德" ' NavigateUrl="~/Docs/QuotationTemplate/苏州博德客户报价单-含税.xlsx">Excel模板下载</aspxform:XHyperLink>
                    </td>
                    <td class="tsbottomlabel">
                        <asp:Label ID="Label8" runat="server" Text="是否盖骑缝章"></asp:Label></td>
                    <td class="tsbottomtext">
                        <aspxform:XRadioButtonList ID="XRadioButtonList1" runat="server" XDataBind="DF_CRM_CustomerQuotationSeal.IsSeal" RepeatDirection="Horizontal">
                            <asp:ListItem>是</asp:ListItem>
                            <asp:ListItem Selected="True">否</asp:ListItem>
                        </aspxform:XRadioButtonList>
                    </td>
                </tr>
            </tbody>
        </table>
        <table width="1200" class="table" border="0" cellspacing="0" cellpadding="0">
            <tbody>
                <tr>
                    <td width="1200" height="16" class="tsbottomlabel" colspan="4">

                        <asp:Label ID="Label14" runat="server" Text="说明:" ForeColor="Blue" Font-Size="14px"></asp:Label>
                        <br />
                        <asp:Label ID="Label15" runat="server" Text="1、支持WORD、Excel格式文件" ForeColor="Blue" Font-Size="14px"></asp:Label>
                        <br />
                        <asp:Label ID="Label17" runat="server" Text="2、建议使用公司模板，做报价单文件（模板文件里设置了盖电子章的位置了,即文本末尾签章处）" ForeColor="Blue" Font-Size="14px"></asp:Label>
                        <br />
                        <asp:Label ID="Label18" runat="server" Text="3、如果不使用公司模板，请在要盖电子章的位置设置“乙方签章”字样,标记出盖章位置" ForeColor="Blue" Font-Size="14px"></asp:Label>
                        <br />
                        <asp:Label ID="Label21" runat="server" Text="4、如以上均不适用，请线下使用：印章审批单--地区经理签字后方可盖章" ForeColor="Blue" Font-Size="14px"></asp:Label>
                    </td>
                </tr>
                <tr style="line-height: 0px;">
                    <td class="tsbottomlabel">
                        <asp:Label ID="Label20" runat="server" Text="*" ForeColor="Red"></asp:Label>&nbsp;<asp:Label ID="Label2" runat="server" Text="报价单文档上传"></asp:Label>
                    </td>
                    <td colspan="3" class="tsbottomtext">
                        <aspxform:XAttachments ID="XAttachments2" runat="server" XDataBind="DF_CRM_CustomerQuotationSeal.Attachment" Width="100%" FileTypes="*.doc;*.docx;*.xlsx;*.xls" DisableExpress='Global.StepName!="业务员申请"'></aspxform:XAttachments>
                        &nbsp; 
                          <div HiddenExpress="DF_CRM_CustomerQuotationSeal.AttachmentObj==''">
                              <input id="btn_download2" style="cursor: pointer;height:25px" onclick="fileDownload('XTextBox6', '.pdf')"  type="button" value="下载盖章后文件" />
                          </div>
                        <input id="btn_download3" style="cursor: pointer" onclick="CreateQuotation()" type="button" hidden="hidden" value="盖章文件" />
                    </td>
                </tr>
            </tbody>
        </table>
        <br />
        <table width="1200" class="table" border="0" cellspacing="0" cellpadding="0">
            <tbody>
                <tr>
                    <td width="1200" height="16" class="title1">
                        <asp:Label ID="Label83" runat="server" Text="备注"></asp:Label></td>
                </tr>
                <tr>
                    <td class="tsbottomtext">
                        <aspxform:XTextBox ID="XTextBox23" runat="server" XDataBind="DF_CRM_CustomerQuotationSeal.Remark" BorderWidth="1" BorderColor="#DCDCDC" Width="100%" Rows="5" TextMode="MultiLine"></aspxform:XTextBox>
                    </td>
                </tr>
            </tbody>
        </table>
        <br />
        <aspxform:XSignTrace ID="XSignTrace1" runat="server" BorderWidth="1" BorderColor="#dcdcdc" Width="1200px"></aspxform:XSignTrace>
    </form>
</body>
</html>
