<%@ 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)//首次加载
        {
            string CustomerID = Request.QueryString["CustomerID"];
            string CustomerName = Request.QueryString["CustomerName"];
            string CustomerSAPID = Request.QueryString["CustomerSAPID"];
            this.XTextBox7.Text = CustomerID;
            this.XTextBox8.Text = CustomerName;
            this.XTextBox1.Text = CustomerSAPID;
        }
    }

</script>
<html xmlns:xform="xmlns:xform">
<head runat="server">
    <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE8" />
    <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-RIGHT: 0px; PADDING-LEFT: 2px; PADDING-BOTTOM: 0px}
    TD.NoPadding {PADDING-RIGHT: 0px; PADDING-LEFT: 0px; PADDING-BOTTOM: 0px; PADDING-TOP: 0px}
    INPUT {HEIGHT: 20px}
    INPUT.UL {BORDER-RIGHT: medium none; BORDER-TOP: medium none; BORDER-LEFT: medium none; BORDER-BOTTOM: #33ff33 1px solid}
    TEXTAREA {FONT-SIZE:12px}
    .yz-inp-cnt{display:inline;}
    </style>
      <script type="text/javascript">
         agent.on('beforeSubmit', function (actname1, actname) {
           
             var CustomerID = agent.Eles[document.getElementById("XTextBox7").getAttribute("xform_xele_index")].getValue();
             var FormNo = agent.Eles[document.getElementById("FormNo").getAttribute("xform_xele_index")].getValue();

             var XDateTimePicker5 = agent.Eles[document.getElementById("XDateTimePicker5").getAttribute("xform_xele_index")].getValue();
             var XDateTimePicker6 = agent.Eles[document.getElementById("XDateTimePicker6").getAttribute("xform_xele_index")].getValue();
             var number = XDateTimePicker5 - XDateTimePicker6;
             if (XDateTimePicker5 != "" && XDateTimePicker6 != "" && number < 0) {
                 Ext.MessageBox.alert('提示', '对账日2必须大于对账日1');
                 return false;

             }
                //上传双方盖章后协议附件
             var AnnexAgreement = agent.Eles[document.getElementById("AnnexAgreement").getAttribute("xform_xele_index")].getValue();//上传双方盖章后协议附件
             var AnnexAgreementFileID = agent.Eles[document.getElementById("AnnexAgreementFileID").getAttribute("xform_xele_index")].getValue();//上传双方盖章后协议附件
             var fileExtensionAnnexAgreement = "";
             var fileidAnnexAgreement = "";

             if (AnnexAgreement != "") {
                 var arr = AnnexAgreement.split(';');
                    if (arr.length >= 2) {
                        Ext.MessageBox.alert("提示", "双方盖章协议支持上传一个,多个可以压缩打包上传,目前支持zip,7z格式");
                        return false;
                    }
                 if (AnnexAgreement != AnnexAgreementFileID) {//不相等

                     var idUploadAnnexAgreement = document.getElementById("AnnexAgreement").getElementsByTagName("div")[2].id;
                     fileidAnnexAgreement = document.getElementById(idUploadAnnexAgreement).getAttribute("fileid");
                     var filenameAnnexAgreement = document.getElementById(idUploadAnnexAgreement).getAttribute("filename");

                     if (filenameAnnexAgreement != null) {
                            //文件扩展名的正则表达式
                            var patternFileExtension = /\.([0-9a-z]+)(?:[\?#]|$)/i;
                            //获得文件扩展名 
                         fileExtensionAnnexAgreement = filenameAnnexAgreement.split('.').pop();
                     }
                 }

             }


             //上传客户PO
             var CustomerPO = agent.Eles[document.getElementById("CustomerPO").getAttribute("xform_xele_index")].getValue();//上传客户PO
             var CustomerPOFileID = agent.Eles[document.getElementById("CustomerPOFileID").getAttribute("xform_xele_index")].getValue();//上传客户PO
             var fileExtensionCustomerPO = "";
             var fileidCustomerPO = "";

             if (CustomerPO != "") {
                 var arr = CustomerPO.split(';');
                 if (arr.length >= 2) {
                     Ext.MessageBox.alert("提示", "客户PO支持上传一个,多个可以压缩打包上传,目前支持zip,7z格式");
                     return false;
                 }
                 if (CustomerPO != CustomerPOFileID) {//不相等

                     var idUploadCustomerPO = document.getElementById("CustomerPO").getElementsByTagName("div")[2].id;
                     fileidCustomerPO = document.getElementById(idUploadCustomerPO).getAttribute("fileid");
                     var filenameCustomerPO = document.getElementById(idUploadCustomerPO).getAttribute("filename");

                     if (filenameCustomerPO != null) {
                         //文件扩展名的正则表达式
                         var patternFileExtension = /\.([0-9a-z]+)(?:[\?#]|$)/i;
                         //获得文件扩展名 
                         fileExtensionCustomerPO = filenameCustomerPO.split('.').pop();
                     }
                 }

             }


             YZSoft.Ajax.request({
                 async: false,
                 url: "/Oimec/WorkFlow/Services/ContractedDistributorHandler.ashx",
                 params: {
                     method: 'UpLoadFileAli',
                     fileidAnnexAgreement: fileidAnnexAgreement,//上传路径id
                     fileExtensionAnnexAgreement: fileExtensionAnnexAgreement,
                     fileidCustomerPO: fileidCustomerPO,
                     fileExtensionCustomerPO: fileExtensionCustomerPO,
                     FormNo: FormNo,
                     CustomerID: CustomerID
                 },
                 success: function (action) {
                     console.log(action)
                     var data = action.result;
                     var AnnexAgreementFileAli = data.AnnexAgreementFileAli;
                     var CustomerPOFileAli = data.CustomerPOFileAli;

                     agent.Eles[document.getElementById("AnnexAgreementFileAli").getAttribute("xform_xele_index")].setValue(AnnexAgreementFileAli);//双方盖章后协议附件
                     agent.Eles[document.getElementById("CustomerPOFileAli").getAttribute("xform_xele_index")].setValue(CustomerPOFileAli);//上传客户PO
                 }
             });

         });

          Ext.onReady(function () {

              var StepName = agent.Eles[document.getElementById("StepName").getAttribute("xform_xele_index")].getValue();

              if (StepName == "业务员上传双方盖章后协议") {
                 var xdType = checkedVaule("XRadioButtonList1");
                  //创建合同
                  var code = GenerationContract();//创建正式合同
				   if (xdType=="我司PO") {
				  getDownAgreementElectronicSealPO();//我司PO预览 电子章的
				  }
                  if (code == 0) {
                      //Ext.MessageBox.alert('提示', '合同生成成功');
                  }
                  else {
                      Ext.MessageBox.alert('提示', '协议生成失败');
                      return false;
                  }
              }
          });
		  
		   //单选获取选中的值
          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 GenerationContract() {
              var TaskID = agent.Eles[document.getElementById("TaskID").getAttribute("xform_xele_index")].getValue();
              var url = YZSoft.$url('Oimec/WorkFlow/Services/ContractedDistributorHandler.ashx');
              var parm = {
                  method: "CreateContract",
                  TaskID: TaskID
              };

              var res;
              AjaxParm(url, false, parm, function (action) {

                  var obj = eval("(" + action.responseText + ")");
                  var code = obj.code;
                  var Message = obj.Message;
                  res = code
                  if (code == 0) {//成功
                      var objName = obj.objName;
                      setXValue("ObjName", objName);
                  }

              });
              return res;

          };
          
          //【协议模板插入内容】
          function AgreementPreviewchenk() {
              var TaskID = agent.Eles[document.getElementById("TaskID").getAttribute("xform_xele_index")].getValue();
              var url = YZSoft.$url('Oimec/WorkFlow/Services/ContractedDistributorHandler.ashx');
              var parm = {
                  method: "AgreementPreview",
                  TaskID: TaskID
              };
              var res;
              AjaxParm(url, false, parm, function (action) {

                  var obj = eval("(" + action.responseText + ")");
                  var code = obj.code;
                  var Message = obj.Message;
                  res = code
                  if (code == 0) {//成功
                      var objName = obj.objName;
                      setXValue("AgreementPreviewName", objName);
                  }

              });
              return res;
          }

          //【协议浏览】
          function btnAgreementPreview() {
              var code = AgreementPreviewchenk();//创建正式合同
              if (code == 0) {

                  var url = YZSoft.$url('Oimec/ApiServices/CrmapiHandler.ashx');

                  //aliOss文件路径
                  var objName = agent.Eles[document.getElementById("AgreementPreviewName").getAttribute("xform_xele_index")].getValue();
                   
                  var parm = { method: "GetCreateContract", ObjName: objName };
                  // alert(objName);
                  AjaxParm(url, true, parm, function (action) {

                      var obj = eval("(" + action.responseText + ")");
                      var urls = obj.Value;
                      window.open(urls, "_blank", "scrollbars=yes,resizable=1,modal=false,alwaysRaised=yes");
                  })
              }
              else {
                  Ext.MessageBox.alert('提示', '打开协议失败');
                  return false;
              }
          };

          //【下载合同】
          function DownGenerationContract() {
              var objName = agent.Eles[document.getElementById("ObjName").getAttribute("xform_xele_index")].getValue();
              var FormNo = agent.Eles[document.getElementById("FormNo").getAttribute("xform_xele_index")].getValue();
              
              var url = YZSoft.$url('Oimec/ApiServices/CrmapiHandler.ashx');
              YZSoft.src.ux.File.download(url, {
                  method: 'DownloadPDFBySalesTemplate',
                  objName: objName,
                  fileName: FormNo
              });
          }

          //【查看合同】
          function ButtonGenerationContract() {

              var url = YZSoft.$url('Oimec/ApiServices/CrmapiHandler.ashx');

              //aliOss文件路径
              var objName = agent.Eles[document.getElementById("ObjName").getAttribute("xform_xele_index")].getValue(); 
              //alert(objName);
              var parm = { method: "GetCreateContract", ObjName: objName };
              // alert(objName);
              AjaxParm(url, true, parm, function (action) {

                  var obj = eval("(" + action.responseText + ")");
                  var urls = obj.Value;
                  window.open(urls, "_blank", "scrollbars=yes,resizable=1,modal=false,alwaysRaised=yes");
              })
          };
		    //我司PO预览
          function DownAgreementPO()
          {
              var url = YZSoft.$url('Oimec/ApiServices/SalesAPIHandler.ashx');
              YZSoft.src.ux.File.download(url, {
                  method: 'CreateAgreementPO'
                   
              });
          }
		  //我司PO预览 电子章的
          function getDownAgreementElectronicSealPO() {
              var TaskID = agent.Eles[document.getElementById("TaskID").getAttribute("xform_xele_index")].getValue();
              var FormNo = agent.Eles[document.getElementById("FormNo").getAttribute("xform_xele_index")].getValue();
              var url = YZSoft.$url('Oimec/ApiServices/SalesAPIHandler.ashx');
              var parm = {
                  method: "CreateAgreementElectronicSealPO",
                  TaskID: TaskID,
                  FormNo: FormNo

              };

              var res;
              AjaxParm(url, false, parm, function (action) {

                  var obj = eval("(" + action.responseText + ")");
                 
                  var code = obj.Code;
                 
                  var Message = obj.Message;
                 
                  res = code
                 
                  if (code == 0) {//成功
                      var objName = obj.Message;
                     
                      setXValue("ObjNamePO", objName);
                  }

              });
              return res;
          };
		  
		     function DownAgreementElectronicSealPO() {

              var objName = agent.Eles[document.getElementById("ObjNamePO").getAttribute("xform_xele_index")].getValue();
              var FormNo = agent.Eles[document.getElementById("FormNo").getAttribute("xform_xele_index")].getValue();

              var url = YZSoft.$url('Oimec/ApiServices/CrmapiHandler.ashx');
              YZSoft.src.ux.File.download(url, {
                  method: 'DownloadPDFBySalesTemplate',
                  objName: objName,
                  fileName: FormNo
              });
          };

          function AjaxParm(url, async, parm, fun) {

              YZSoft.Ajax.request({
                  async: async,
                  url: url,
                  params: parm,
                  success: fun
              });
          };

          function setXValue(id, value) {
              agent.Eles[document.getElementById(id).getAttribute("xform_xele_index")].setValue(value);
          }
      </script>
</head>


<body>
    <form runat="server">
        <!-- Insert content here -->
        <table width="1200" align="center" class="head" border="0" cellspacing="0" cellpadding="0">
            <tbody>
                <tr>
                    <td class="logo">
                    </td>
                    <td class="biaoti" style="PADDING-LEFT: 10px">
                        <asp:Label id="XLabel1" runat="server" text="客户签约申请单"></asp:Label></td>
                        
                    <td class="formno">
                        <asp:Label id="XLabel2" runat="server" text="表单号："></asp:Label>
                        <aspxform:XLabel id="FormNo" runat="server" text="-系统自动生成-" Value XDataBind="DF_SD_ContractedDistributor.FormNo" ValueToDisplayText BackColor="#8AB3DF"></aspxform:XLabel>
                    </td>
                </tr>
            </tbody>
        </table>
        <br />
        <table width="1200" align="center" border="0" cellspacing="0" cellpadding="0">
            <tbody>
                <tr>
                    <td width="1200">
                        <asp:Label id="XLabel191" runat="server" text="标记 * 的是申请人必填项" forecolor="Red" font-size="10pt" valuetodisplaytext value></asp:Label> 
                        <aspxform:XTextBox id="StepName" runat="server"  BorderWidth="1" BorderColor="#DCDCDC" Width="60px" Express="Global.StepName" HiddenExpress="1"></aspxform:XTextBox>
                        <aspxform:XTextBox id="TaskID" runat="server" BorderWidth="1" BorderColor="#DCDCDC" Width="60px" XDataBind="DF_SD_ContractedDistributor.TaskID"  HiddenInput="true"></aspxform:XTextBox>
                    </td>
                </tr>
            </tbody>
        </table>
        <table width="1200" align="center" class="table" cellspacing="0" cellpadding="0">
            <tbody>
                <tr>
                    <td height="15" class="title1" colspan="4">
                        <asp:Label id="XLabel4" runat="server" text="用户信息"></asp:Label></td>
                    </tr>
                <tr>
                    <td style="WIDTH: 12%" height="19" class="ts">
                        <asp:Label id="XLabel5" runat="server" text="申请人"></asp:Label></td>
                    <td style="WIDTH: 38%" class="ts1">
                        <aspxform:XTextBox id="XTextBox6" runat="server" XDataBind="DF_SD_ContractedDistributor.CreatorAccount" BackColor="#E6F1F8" BorderWidth="1" Width="70%" DisableBehavior="ReadOnly" BorderColor="#DCDCDC" CssClass="text" ReadOnly="True" HiddenExpress="1"  ValueToDisplayText="TableName:DF_SA_SS_SalesPersonnel;FilterColumn:StaffID;DisplayColumn:StaffID" DataMap="StaffID->DF_SD_ContractedDistributor.SalesmanAccount;StaffName->DF_SD_ContractedDistributor.Salesman;ProductLine->BU;Region->DF_SD_ContractedDistributor.Region;IsEasyJet->YJ" ></aspxform:XTextBox>
                        <aspxform:XTextBox id="XTextBox4" runat="server" XDataBind="DF_SD_ContractedDistributor.CreatorName" BackColor="#E6F1F8" BorderWidth="1" Width="70%" DisableBehavior="ReadOnly" BorderColor="#DCDCDC" CssClass="text" ReadOnly="True"></aspxform:XTextBox>
                    </td>
                    <td style="WIDTH: 12%" class="ts">
                        <asp:Label id="XLabel20" runat="server" text="创建日期"></asp:Label></td>
                    <td style="WIDTH: 38%" class="ts1">
                        <aspxform:XDateTimePicker id="XDateTimePicker1" runat="server" XDataBind="DF_SD_ContractedDistributor.CreateDate" BorderWidth="1" Width="70%" DisableBehavior="ReadOnly" BorderColor="#DCDCDC" CssClass="text" DisplayOnly="True" backColor="#e6f1f8"></aspxform:XDateTimePicker>
                        <aspxform:XTextBox id="XTextBox9" runat="server" XDataBind="DF_SD_ContractedDistributor.UpdateAccount" BackColor="#E6F1F8" HiddenInput="true" BorderWidth="1" Width="70%" DisableBehavior="ReadOnly" BorderColor="#DCDCDC" CssClass="text" ReadOnly="True"></aspxform:XTextBox> <%--//更新人账户--%>
                        <aspxform:XTextBox id="XTextBox10" runat="server" XDataBind="DF_SD_ContractedDistributor.UpdatedName" BackColor="#E6F1F8" HiddenInput="true" BorderWidth="1" Width="70%" DisableBehavior="ReadOnly" BorderColor="#DCDCDC" CssClass="text" ReadOnly="True"></aspxform:XTextBox> <%--//更新人名称--%>
                        <aspxform:XDateTimePicker id="XDateTimePicker2" runat="server" XDataBind="DF_SD_ContractedDistributor.UpdateDate" BorderWidth="1" HiddenExpress="1" Width="70%" DisableBehavior="ReadOnly" BorderColor="#DCDCDC" CssClass="text" DisplayOnly="True" backColor="#e6f1f8" ></aspxform:XDateTimePicker> <%--//更新时间--%>
                    </td>
                </tr>
                <tr>
                    <td height="19" class="tsbottomlabel">
                        <asp:Label id="XLabel21" runat="server" text="业务员"></asp:Label>
                        <aspxform:XTextBox id="XTextBox35" runat="server" XDataBind="DF_SD_ContractedDistributor.SalesmanAccount" Width="20%" BorderColor="#DCDCDC" BorderWidth="1" HiddenExpress="1" ></aspxform:XTextBox> <%----%>
                        <aspxform:XTextBox id="XTextBox187" runat="server" XDataBind="YJ" Width="15px" BorderColor="Gainsboro" BorderWidth="1px" Max="0" Min="0" ValueToDisplayText HiddenInput="True"></aspxform:XTextBox>
                    </td>
                    <td class="tsbottomtext">
                        <aspxform:XTextBox id="XTextBox2" runat="server" XDataBind="DF_SD_ContractedDistributor.Salesman" BackColor="#E6F1F8" BorderWidth="1" Width="70%" DisableBehavior="ReadOnly" BorderColor="#DCDCDC" CssClass="text" ReadOnly="True"></aspxform:XTextBox>
                        <aspxform:XDataBrowserButton id="XDataBrowserButton1908" runat="server" Width="35px" Text="查询" XDataSource="TableName:DF_SA_SS_SalesPersonnel"  DisplayColumns="StaffID:工号;StaffName:姓名;SalesOffice:销售办公室;ProductLine:产品线;Region:地区" DataMap="StaffID->DF_SD_ContractedDistributor.SalesmanAccount;StaffName->DF_SD_ContractedDistributor.Salesman;ProductLine->BU;Region->DF_SD_ContractedDistributor.Region;IsEasyJet->YJ" HiddenExpress='Global.StepName!="业务员申请"' ></aspxform:XDataBrowserButton>  
                        
                    </td>
                    <td class="tsbottomlabel">
                     <td class="tsbottomtext">
                       </td>
                </tr>
                 <tr>
                    <td height="19" class="tsbottomlabel">
                        <asp:Label id="Label1" runat="server" text="BU"></asp:Label>
                        <aspxform:XDropDownList id="XDropDownList34" runat="server" HiddenExpress="1" DisplayColumn="Name" ValueColumn="Name" XDataSource="TableName:V_DF_SA_SS_ProductLine;Filter:Value->BU" DataMap="Name->DF_SD_ContractedDistributor.BU">
                            <asp:ListItem>未绑定</asp:ListItem>
                        </aspxform:XDropDownList>
                        <aspxform:XTextBox id="XTextBox128" runat="server" XDataBind="BU" Width="20px" BorderColor="#DCDCDC" BorderWidth="1" HiddenExpress="1"></aspxform:XTextBox>
                    
                    </td>
                      
                    <td class="tsbottomtext">
                       <aspxform:XTextBox id="XTextBox3" runat="server" XDataBind="DF_SD_ContractedDistributor.BU" BackColor="#E6F1F8" BorderWidth="1" Width="70%" DisableBehavior="ReadOnly" BorderColor="#DCDCDC" CssClass="text" ReadOnly="True"></aspxform:XTextBox>
                   </td>
                    <td class="tsbottomlabel">
                        <asp:Label id="Label2" runat="server" text="所属地区"></asp:Label></td>
                    <td class="tsbottomtext">
                        <aspxform:XTextBox id="PurchaseTotalAmount" runat="server" XDataBind="DF_SD_ContractedDistributor.Region" Width="70%" DisableBehavior="ReadOnly" BorderColor="#DCDCDC" CssClass="text" ReadOnly="True" BorderWidth="1" BackColor="#E6F1F8"  ></aspxform:XTextBox>
                    </td>
                </tr>
            </tbody>
        </table>
        <br />
         <table width="1200" align="center" class="table" cellspacing="0" cellpadding="0">
            <tbody>
                <tr>
                    <td height="15" class="title1" colspan="4">
                        <asp:Label id="Label3" runat="server" text="客户信息"></asp:Label></td>
                    </tr>
                <tr>
                    <td style="WIDTH: 12%" height="19" class="ts">
                        <asp:Label id="Label4" runat="server" text="客户名称"></asp:Label></td>
                     <td style="WIDTH: 38%" class="ts1">
                        <aspxform:XTextBox id="XTextBox8" runat="server" XDataBind="DF_SD_ContractedDistributor.CustomerName" BackColor="#E6F1F8" BorderWidth="1" Width="70%" DisableBehavior="ReadOnly" BorderColor="#DCDCDC" CssClass="text" ReadOnly="True"></aspxform:XTextBox>
                        <aspxform:XTextBox id="XTextBox7" runat="server" XDataBind="DF_SD_ContractedDistributor.CustomerID" BackColor="#E6F1F8" BorderWidth="1" HiddenInput="true" Width="70%" DisableBehavior="ReadOnly" BorderColor="#DCDCDC" CssClass="text" ReadOnly="True"></aspxform:XTextBox>
                    </td>
                    <td style="WIDTH: 12%" class="ts">
                        <asp:Label id="Label5" runat="server" text="客户SAPID"></asp:Label></td>
                    <td style="WIDTH: 38%" class="ts1">
                         <aspxform:XTextBox id="XTextBox1" runat="server" XDataBind="DF_SD_ContractedDistributor.CustomerSAPID" BackColor="#E6F1F8" BorderWidth="1" Width="70%" DisableBehavior="ReadOnly" BorderColor="#DCDCDC" CssClass="text" ReadOnly="True"></aspxform:XTextBox>
                   </td>
                </tr>
                <tr>
                    <td style="WIDTH: 12%" height="19" class="ts">
                        <asp:Label id="Label31" runat="server" value valuetodisplaytext text="*" forecolor="Red"></asp:Label> <asp:Label id="Label32" runat="server" text="联系人"></asp:Label></td>
                     <td style="WIDTH: 38%" class="ts1">
                        <aspxform:XTextBox id="ContactName" runat="server" XDataBind="DF_SD_ContractedDistributor.ContactName" BackColor="#E6F1F8" BorderWidth="1" Width="70%" DisableBehavior="ReadOnly" BorderColor="#DCDCDC" CssClass="text" ReadOnly="True"></aspxform:XTextBox>
                        <aspxform:XDataBrowserButton id="XDataBrowserButton1" runat="server" Width="35px" Text="查询" XDataSource="TableName:V_DF_MContact;Filter:CustomerID->DF_SD_ContractedDistributor.CustomerID,OwnerAccount->DF_SD_ContractedDistributor.SalesmanAccount"  DisplayColumns="ContactName:联系人;ContactMobile:手机;ContactTel:联系电话;ContactEmail:Email;Fax:传真;ContactAddr:通讯地址" DataMap="ContactName->DF_SD_ContractedDistributor.ContactName;ContactMobile->DF_SD_ContractedDistributor.ContactMobile;ContactEmail->DF_SD_ContractedDistributor.ContactEmail;Fax->DF_SD_ContractedDistributor.ContactFax;ContactAddr->DF_SD_ContractedDistributor.ContactAddr;ContactTel->DF_SD_ContractedDistributor.ContactTel" HiddenExpress='Global.StepName!="业务员申请"' ></aspxform:XDataBrowserButton>  
                     </td>
                    <td style="WIDTH: 12%" class="ts">
                        <asp:Label id="Label33" runat="server" text="联系电话"></asp:Label>
                    </td>
                    <td style="WIDTH: 38%" class="ts1">
                         <aspxform:XTextBox id="ContactTel" runat="server" XDataBind="DF_SD_ContractedDistributor.ContactTel" BackColor="#E6F1F8" BorderWidth="1" Width="70%" DisableBehavior="ReadOnly" BorderColor="#DCDCDC" CssClass="text" ReadOnly="True"></aspxform:XTextBox>
                    </td>
                     
                </tr>
                 <tr>
                    <td style="WIDTH: 12%" height="19" class="ts">
                        <asp:Label id="Label30" runat="server" value valuetodisplaytext text="*" forecolor="Red"></asp:Label> <asp:Label id="Label7" runat="server" text="通讯地址"></asp:Label></td>
                     <td style="WIDTH: 38%" class="ts1">
                        <aspxform:XTextBox id="ContactAddr" runat="server" XDataBind="DF_SD_ContractedDistributor.ContactAddr" BackColor="#E6F1F8" BorderWidth="1" Width="70%" DisableBehavior="ReadOnly" BorderColor="#DCDCDC" CssClass="text" ReadOnly="True"></aspxform:XTextBox>
                    </td>
                    <td style="WIDTH: 12%" class="ts">
                       <asp:Label id="Label16" runat="server" text="手机"></asp:Label></td>
                    <td style="WIDTH: 38%" class="ts1">
                         <aspxform:XTextBox id="ContactMobile" runat="server" XDataBind="DF_SD_ContractedDistributor.ContactMobile" BackColor="#E6F1F8" BorderWidth="1" Width="70%" DisableBehavior="ReadOnly" BorderColor="#DCDCDC" CssClass="text" ReadOnly="True"></aspxform:XTextBox>
                   </td>
                </tr>
                 <tr>
                    <td style="WIDTH: 12%" height="19" class="ts">
                       <asp:Label id="Label21" runat="server" value valuetodisplaytext text="*" forecolor="Red"></asp:Label> <asp:Label id="Label18" runat="server" text="Email"></asp:Label></td>
                     <td style="WIDTH: 38%" class="ts1">
                        <aspxform:XTextBox id="ContactEmail" runat="server" XDataBind="DF_SD_ContractedDistributor.ContactEmail" BackColor="#E6F1F8" BorderWidth="1" Width="70%" DisableBehavior="ReadOnly" BorderColor="#DCDCDC" CssClass="text" ReadOnly="True"></aspxform:XTextBox>
                     </td>
                    <td style="WIDTH: 12%" class="ts">
                        <asp:Label id="Label20" runat="server" text="传真"></asp:Label></td>
                    <td style="WIDTH: 38%" class="ts1">
                         <aspxform:XTextBox id="ContactFax" runat="server" XDataBind="DF_SD_ContractedDistributor.ContactFax" BackColor="#E6F1F8" BorderWidth="1" Width="70%" DisableBehavior="ReadOnly" BorderColor="#DCDCDC" CssClass="text" ReadOnly="True"></aspxform:XTextBox>
                   </td>
                </tr>
            </tbody>
        </table>
        <br />
        <table width="1200" align="center" class="table" cellspacing="0"  cellpadding="0">
            <tbody>
                <tr>
                    <td class="title1" colspan="4">
                        <asp:Label id="XLabel6" runat="server" text="交易信息"></asp:Label>
                       </td>
                </tr>
                <tr>
                    <td class="tsbottomlabel" style="WIDTH: 12%">
                        <asp:Label id="Label8" runat="server" value valuetodisplaytext text="*" forecolor="Red"></asp:Label> <asp:Label id="XLabel22" runat="server" text="付款条件"></asp:Label></td>
                    <td class="tsbottomtext" style="WIDTH: 38%">
                        <aspxform:XDropDownList id="XDropDownList26" runat="server" XDataBind="DF_SD_ContractedDistributor.TermPayment"  BorderColor="#DCDCDC" Width="40%" XDataSource PromptText="----请选择----" >
                            <asp:ListItem Value="货到30天">货到30天</asp:ListItem>
                            <asp:ListItem Value="货到15天">货到15天</asp:ListItem>
                        </aspxform:XDropDownList>
                    </td>
                    <td class="tsbottomlabel" style="WIDTH: 12%">
                         <asp:Label id="Label28" runat="server" value valuetodisplaytext text="*" forecolor="Red" HiddenExpress="DF_SD_ContractedDistributor.TermPayment==''"></asp:Label> <asp:Label id="Label29" runat="server" text="对账日1" HiddenExpress="DF_SD_ContractedDistributor.TermPayment==''"></asp:Label></td>
                    <td class="tsbottomtext" style="WIDTH: 38%">
                        <aspxform:XDropDownList id="XDateTimePicker6" runat="server" XDataBind="DF_SD_ContractedDistributor.ReconciliationDate1"  BorderColor="#DCDCDC" Width="40%" XDataSource PromptText="----请选择----" HiddenExpress="DF_SD_ContractedDistributor.TermPayment==''">
                            <asp:ListItem Value="1">1</asp:ListItem>
                            <asp:ListItem Value="2">2</asp:ListItem>
                            <asp:ListItem Value="3">3</asp:ListItem>
                            <asp:ListItem Value="4">4</asp:ListItem>
                            <asp:ListItem Value="5">5</asp:ListItem>
                            <asp:ListItem Value="6">6</asp:ListItem>
                            <asp:ListItem Value="7">7</asp:ListItem>
                            <asp:ListItem Value="8">8</asp:ListItem>
                            <asp:ListItem Value="9">9</asp:ListItem>
                            <asp:ListItem Value="10">10</asp:ListItem>
                            <asp:ListItem Value="11">11</asp:ListItem>
                            <asp:ListItem Value="12">12</asp:ListItem>
                            <asp:ListItem Value="13">13</asp:ListItem>
                            <asp:ListItem Value="14">14</asp:ListItem>
                            <asp:ListItem Value="15">15</asp:ListItem>
                            <asp:ListItem Value="16">16</asp:ListItem>
                            <asp:ListItem Value="17">17</asp:ListItem>
                            <asp:ListItem Value="18">18</asp:ListItem>
                            <asp:ListItem Value="19">19</asp:ListItem>
                            <asp:ListItem Value="20">20</asp:ListItem>
                            <asp:ListItem Value="21">21</asp:ListItem>
                            <asp:ListItem Value="22">22</asp:ListItem>
                            <asp:ListItem Value="23">23</asp:ListItem>
                            <asp:ListItem Value="24">24</asp:ListItem>
                            <asp:ListItem Value="25">25</asp:ListItem>
                            <asp:ListItem Value="26">26</asp:ListItem>
                            <asp:ListItem Value="27">27</asp:ListItem>
                            <asp:ListItem Value="28">28</asp:ListItem>
                        </aspxform:XDropDownList><asp:Label runat="server" HiddenExpress="DF_SD_ContractedDistributor.TermPayment==''">日</asp:Label> 
                    </td>
                </tr>
                
                <tr>
                    <td class="tsbottomlabel">
                         <asp:Label id="Label10" runat="server" value valuetodisplaytext text="*" forecolor="Red"></asp:Label> <asp:Label id="Label26" runat="server" text="既是客户又是供应商"></asp:Label></td>
                    <td class="tsbottomtext">
                        <aspxform:XRadioButtonList id="XRadioButtonList3" runat="server" XDataBind="DF_SD_ContractedDistributor.BothCustomerSupplier" RepeatDirection="Horizontal" DisableExpress='Global.StepName!="业务员申请" &amp;&amp; Global.StepName!="采购管理部经理审批"'>
                            <asp:ListItem Selected="True" Value="是">是</asp:ListItem>
                            <asp:ListItem Value="否">否</asp:ListItem>
                        </aspxform:XRadioButtonList></td>
                    <td class="tsbottomlabel" style="WIDTH: 12%"  >
                        <asp:Label id="Label35" runat="server"  value valuetodisplaytext text="*" forecolor="Red" HiddenExpress="DF_SD_ContractedDistributor.TermPayment!='货到15天'"></asp:Label>  <asp:Label id="Label13" runat="server" text="对账日2" HiddenExpress="DF_SD_ContractedDistributor.TermPayment!='货到15天'"></asp:Label></td>
                    <td class="tsbottomtext" style="WIDTH: 38%" >
                        <aspxform:XDropDownList id="XDateTimePicker5"  runat="server" XDataBind="DF_SD_ContractedDistributor.ReconciliationDate2"  BorderColor="#DCDCDC" Width="40%" XDataSource PromptText="----请选择----"  HiddenExpress="DF_SD_ContractedDistributor.TermPayment!='货到15天'">
                            <asp:ListItem Value="1">1</asp:ListItem>
                            <asp:ListItem Value="2">2</asp:ListItem>
                            <asp:ListItem Value="3">3</asp:ListItem>
                            <asp:ListItem Value="4">4</asp:ListItem>
                            <asp:ListItem Value="5">5</asp:ListItem>
                            <asp:ListItem Value="6">6</asp:ListItem>
                            <asp:ListItem Value="7">7</asp:ListItem>
                            <asp:ListItem Value="8">8</asp:ListItem>
                            <asp:ListItem Value="9">9</asp:ListItem>
                            <asp:ListItem Value="10">10</asp:ListItem>
                            <asp:ListItem Value="11">11</asp:ListItem>
                            <asp:ListItem Value="12">12</asp:ListItem>
                            <asp:ListItem Value="13">13</asp:ListItem>
                            <asp:ListItem Value="14">14</asp:ListItem>
                            <asp:ListItem Value="15">15</asp:ListItem>
                            <asp:ListItem Value="16">16</asp:ListItem>
                            <asp:ListItem Value="17">17</asp:ListItem>
                            <asp:ListItem Value="18">18</asp:ListItem>
                            <asp:ListItem Value="19">19</asp:ListItem>
                            <asp:ListItem Value="20">20</asp:ListItem>
                            <asp:ListItem Value="21">21</asp:ListItem>
                            <asp:ListItem Value="22">22</asp:ListItem>
                            <asp:ListItem Value="23">23</asp:ListItem>
                            <asp:ListItem Value="24">24</asp:ListItem>
                            <asp:ListItem Value="25">25</asp:ListItem>
                            <asp:ListItem Value="26">26</asp:ListItem>
                            <asp:ListItem Value="27">27</asp:ListItem>
                            <asp:ListItem Value="28">28</asp:ListItem>
                        </aspxform:XDropDownList> <asp:Label runat="server" HiddenExpress="DF_SD_ContractedDistributor.TermPayment!='货到15天'">日</asp:Label>
                    </td>
                </tr>
                <tr>
                    <td class="tsbottomlabel">
                         <asp:Label id="Label9" runat="server" value valuetodisplaytext text="*" forecolor="Red"></asp:Label> <asp:Label id="Label11" runat="server" text="发票类型"></asp:Label></td>
                    <td class="tsbottomtext">
                        <aspxform:XDropDownList id="XDropDownList1" runat="server" XDataBind="DF_SD_ContractedDistributor.InvoiceType"  BorderColor="#DCDCDC" Width="40%" XDataSource PromptText="----请选择----" >
                            <asp:ListItem Value="增值税专用发票">增值税专用发票</asp:ListItem>
                            <asp:ListItem Value="增值税普通发票">增值税普通发票</asp:ListItem>
                        </aspxform:XDropDownList>
                    <td class="tsbottomlabel">
                        <asp:Label id="Label15" runat="server" text="发票备注"></asp:Label>
                    </td>
                    <td class="tsbottomtext" > 
                        <aspxform:XDropDownList id="XDropDownList2" runat="server" XDataBind="DF_SD_ContractedDistributor.InvoiceRemarks"  BorderColor="#DCDCDC" Width="40%" XDataSource PromptText="----请选择----" >
                            <asp:ListItem Value="合同号">合同号</asp:ListItem>
                        </aspxform:XDropDownList>
                   </td>
                </tr>
                <tr hidden="hidden">
                    <td class="tsbottomlabel">
                         <asp:Label id="Label12" runat="server" value valuetodisplaytext text="*" forecolor="Red"></asp:Label> <asp:Label id="Label14" runat="server" text="框架协议模板"></asp:Label></td>
                    <td class="tsbottomtext">
                        <aspxform:XRadioButtonList id="XRadioButtonList2" runat="server" XDataBind="DF_SD_ContractedDistributor.FrameworkAgreementTemplate"  RepeatDirection="Horizontal">
                            <asp:ListItem Value="标准">标准</asp:ListItem>
                            <asp:ListItem Value="非标准">非标准</asp:ListItem>
                        </aspxform:XRadioButtonList>
                    </td>
                    <td class="tsbottomlabel"></td>
                    <td class="tsbottomtext" > </td>
                   
                </tr>
                <tr>
                    <td class="tsbottomlabel">
                         <asp:Label id="Label17" runat="server" value valuetodisplaytext text="*" forecolor="Red"></asp:Label> <asp:Label id="Label19" runat="server" text="签约有效期"></asp:Label></td>
                    <td class="tsbottomtext">
                       <aspxform:XDateTimePicker id="XDateTimePicker3" style="WIDTH: 33%" runat="server" XDataBind="DF_SD_ContractedDistributor.StartValidityContract" BorderColor="#DCDCDC" BorderWidth="1"></aspxform:XDateTimePicker>
                        至
                        <aspxform:XDateTimePicker id="XDateTimePicker4" style="WIDTH: 33%" runat="server" XDataBind="DF_SD_ContractedDistributor.ByValidityContract" BorderColor="#DCDCDC" BorderWidth="1"></aspxform:XDateTimePicker>
                    </td>
                    <td class="tsbottomlabel">
                        <asp:Label id="Label22" runat="server" value valuetodisplaytext text="*" forecolor="Red"></asp:Label> <asp:Label id="Label23" runat="server" text="合同样式"></asp:Label>

                    </td>
                    <td class="tsbottomtext" >
                        <aspxform:XRadioButtonList id="XRadioButtonList1" runat="server" XDataBind="DF_SD_ContractedDistributor.FormContract"  RepeatDirection="Horizontal">
                            <asp:ListItem Value="我司PO">我司PO</asp:ListItem>
                            <asp:ListItem Value="客户PO">客户PO</asp:ListItem>
                        </aspxform:XRadioButtonList>
                    </td>
                </tr>
                 <tr >
                    <td class="tsbottomlabel">
                        <div hiddenexpress='DF_SD_ContractedDistributor.TaskID==""'>
                            <asp:Label id="Label34" runat="server" text="协议预览及下载"></asp:Label>
                        </div>
                    </td>
                    <td class="tsbottomtext">
                        <div>
						 <aspxform:XTextBox id="ObjNamePO" style="WIDTH: 70%" runat="server" BorderWidth="1" BorderColor="#DCDCDC" XDataBind="DF_SD_ContractedDistributor.ObjNamePO"  HiddenInput="true"></aspxform:XTextBox>
                             <aspxform:XTextBox id="ObjName" style="WIDTH: 70%" runat="server" BorderWidth="1" BorderColor="#DCDCDC" XDataBind="DF_SD_ContractedDistributor.ObjName"  HiddenInput="true"></aspxform:XTextBox>
                             <input id="btn_ButtonGenerationContract" onclick="ButtonGenerationContract()" type="button" value="查看带电子章协议" hidden="hidden"  />
                            <aspxform:XTextBox id="AgreementPreviewName" style="WIDTH: 70%" runat="server" BorderWidth="1" BorderColor="#DCDCDC" XDataBind="AgreementPreviewName" HiddenInput="true" ></aspxform:XTextBox>
                             <input id="btn_AgreementPreview" onclick="btnAgreementPreview()" hiddenexpress="DF_SD_ContractedDistributor.TaskID==''"  type="button" value="协议预览" />
                             <input id="btn_DownGenerationContract"  hiddenexpress='Global.StepName!="业务员上传双方盖章后协议"' onclick="DownGenerationContract()" type="button" value="下载带电子章协议" />
                             <input id="btn_DownGenerationContract1" onclick="GenerationContract()" type="button" hidden="hidden" value="合同盖章" />
                       </div>
                    </td>
                    <td class="tsbottomlabel">
                         <div hiddenexpress='DF_SD_ContractedDistributor.FormContract !="客户PO"'>
                       <asp:Label id="Label36" runat="server" value valuetodisplaytext text="*" forecolor="Red"></asp:Label> <asp:Label id="Label6" runat="server" text="上传客户PO样式"></asp:Label>
                        </div>
						 <div hiddenexpress='DF_SD_ContractedDistributor.FormContract !="我司PO"'>
                       <asp:Label id="Label38" runat="server" text="PO预览及下载"></asp:Label>
                        </div>
                    </td>
                    <td class="tsbottomtext" >
                        <div hiddenexpress='DF_SD_ContractedDistributor.FormContract !="客户PO"'>
                        <aspxform:XAttachments id="CustomerPO" runat="server" XDataBind="DF_SD_ContractedDistributor.CustomerPO" width="100%" FileTypes="*.doc;*.docx;*.xls;*.xlsx;*.pdf;*.png;*.jpg;*.jpeg;*.gif;*.msg;*.eml;*.zip;*.7z" RepeatDirection="Horizontal"></aspxform:XAttachments>
                         <aspxform:XLabel ID="CustomerPOFileAli" runat="server" XDataBind="DF_SD_ContractedDistributor.CustomerPOFileAli" HiddenExpress="1"></aspxform:XLabel>
                        <aspxform:XTextBox id="CustomerPOFileID" XDataBind="CustomerPOFileID" Width="100" runat="server"  HiddenExpress="1"></aspxform:XTextBox>
                        </div>
						 <div hiddenexpress='DF_SD_ContractedDistributor.FormContract !="我司PO"'>
                               <input id="btn_DownAgreementPO" onclick="DownAgreementPO()" type="button"  value="我司PO预览" />
                               <input id="btn_DownAgreementElectronicSealPO" onclick="DownAgreementElectronicSealPO()" type="button" HiddenExpress=" Global.StepName!='业务员上传双方盖章后协议'&amp;&amp; DF_SD_ContractedDistributor.ObjNamePO==''"  value="下载带电子章我司PO" />
                              <input id="getDownAgreementElectronicSealPO" onclick="getDownAgreementElectronicSealPO()" type="button" hidden="hidden"  value="我司PO预览" />
                        </div>
                    </td>
                   
                </tr>
                <tr>
                    <td  class="tsbottomlabel">
                        <asp:Label id="Label25" runat="server" value valuetodisplaytext text="*" forecolor="Red" hiddenexpress='Global.StepName!="业务员上传双方盖章后协议"&amp;&amp; DF_SD_ContractedDistributor.ObjName==""'></asp:Label> <asp:Label id="Label24" runat="server" text="双方盖章后协议附件" hiddenexpress='Global.StepName!="业务员上传双方盖章后协议"&amp;&amp; DF_SD_ContractedDistributor.ObjName==""'></asp:Label></td>
                    <td class="tsbottomtext">
                        <aspxform:XAttachments id="AnnexAgreement" runat="server" XDataBind="DF_SD_ContractedDistributor.AnnexAgreement" width="100%" FileTypes="*.doc;*.docx;*.xls;*.xlsx;*.pdf;*.png;*.jpg;*.jpeg;*.gif;*.msg;*.eml;*.zip;*.7z" RepeatDirection="Horizontal" DisableExpress='Global.StepName!="业务员上传双方盖章后协议"'></aspxform:XAttachments>
                        <aspxform:XLabel ID="AnnexAgreementFileAli" runat="server" XDataBind="DF_SD_ContractedDistributor.AnnexAgreementFileAli" HiddenExpress="1"></aspxform:XLabel>
                        <aspxform:XTextBox id="AnnexAgreementFileID" XDataBind="AnnexAgreementFileID" Width="100" runat="server"  HiddenExpress="1"></aspxform:XTextBox>
                   <asp:Label id="L11" runat="server" forecolor="blue" Font-Size="14px" Text="注意：协议和PO一起上传,多个文件以压缩包的形式上传" hiddenexpress='Global.StepName!="业务员上传双方盖章后协议"&amp;&amp; DF_SD_ContractedDistributor.ObjName==""' ></asp:Label>
				   </td>
                    <td class="tsbottomlabel">
                         <asp:Label id="Labe1" runat="server" value valuetodisplaytext text="*" forecolor="Red"></asp:Label> <asp:Label id="Label27" runat="server" text="PO需要我司盖电子章"></asp:Label>
                    </td>
                    <td class="tsbottomtext" > 
                        <aspxform:XRadioButtonList id="XRadioButtonList4" runat="server" XDataBind="DF_SD_ContractedDistributor.IsNeedsSeal" Express="if(DF_SD_ContractedDistributor.FormContract=='我司PO','是','')"  DisableExpress="DF_SD_ContractedDistributor.FormContract=='我司PO'"  RepeatDirection="Horizontal">
                            <asp:ListItem Value="是">是</asp:ListItem>
                            <asp:ListItem Value="否">否</asp:ListItem>
                        </aspxform:XRadioButtonList>
                    </td>
                </tr>
                
            </tbody>
        </table>
        <br />
        <table width="1200" align="center" class="table" id="tabqutdetail" border="0" cellspacing="0" cellpadding="3" menudock="Left">
            <tbody>
                <tr>
                    <td height="17" class="title1" colspan="4">
                        <asp:Label id="XLabel32" runat="server" text="备注" valuetodisplaytext value></asp:Label></td>
                </tr>
                <tr>
                    <td class="tsbottomlabel">
                        <aspxform:XTextBox id="XTextBox5" runat="server" XDataBind="DF_SD_ContractedDistributor.Remarks" BorderColor="#DCDCDC" BorderWidth="1" width="100%" TextMode="MultiLine" Height="60px"></aspxform:XTextBox>
                    </td>
                </tr>
            </tbody>
        </table>
       <br />
        <aspxform:XRequiredFieldValidator id="请填写联系人" runat="server" ControlToValidate="ContactName" ErrorMessage="请填写联系人" Display="None" ValidationGroup="submit">请填写联系人</aspxform:XRequiredFieldValidator>
         <aspxform:XRequiredFieldValidator id="请填写通讯地址" runat="server" ControlToValidate="ContactAddr" ErrorMessage="请填写通讯地址" Display="None" ValidationGroup="submit">请填写通讯地址</aspxform:XRequiredFieldValidator>
         <aspxform:XRequiredFieldValidator id="请填写Email" runat="server" ControlToValidate="ContactEmail" ErrorMessage="请填写Email" Display="None" ValidationGroup="submit">请填写Email</aspxform:XRequiredFieldValidator>
         
        <aspxform:XRequiredFieldValidator id="请选择付款条件" runat="server" ControlToValidate="XDropDownList26" ErrorMessage="请选择付款条件" Display="None" ValidationGroup="submit">请选择付款条件</aspxform:XRequiredFieldValidator>
        <aspxform:XRequiredFieldValidator id="请选择对账日1" runat="server" DisableExpress='DF_SD_ContractedDistributor.TermPayment ==""' ForeColor="Red" ValidationGroup="submit" ControlToValidate="XDateTimePicker6" ErrorMessage="请选择对账日1">请选择对账日1</aspxform:XRequiredFieldValidator>
        <aspxform:XRequiredFieldValidator id="请选择对账日2" runat="server" DisableExpress='DF_SD_ContractedDistributor.TermPayment !="货到15天"' ControlToValidate="XDateTimePicker5" ErrorMessage="请选择对账日2" Display="None" ValidationGroup="submit">请选择对账日2</aspxform:XRequiredFieldValidator>
       
        <aspxform:XRequiredFieldValidator id="发票类型" runat="server" ControlToValidate="XDropDownList1" ErrorMessage="请选择发票类型" Display="None" ValidationGroup="submit">请选择发票类型</aspxform:XRequiredFieldValidator>
        <%--<aspxform:XRequiredFieldValidator id="请选择框架协议模板" runat="server" ControlToValidate="XRadioButtonList2" ErrorMessage="请选择框架协议模板" Display="None" ValidationGroup="submit">请选择框架协议模板</aspxform:XRequiredFieldValidator>--%>
         <aspxform:XRequiredFieldValidator id="XRequiredFieldValidator5" runat="server" ValidationGroup="submit" ControlToValidate="XDateTimePicker3" ErrorMessage="请选择签约有效期开始日期"></aspxform:XRequiredFieldValidator>
        <aspxform:XRequiredFieldValidator id="XRequiredFieldValidator6" runat="server" ValidationGroup="submit" ControlToValidate="XDateTimePicker4" ErrorMessage="请选择签约有效期结束日期"></aspxform:XRequiredFieldValidator>
        <aspxform:XCompareValidator id="XCompareValidator1" runat="server" ValidationGroup="submit" ControlToValidate="XDateTimePicker4" ErrorMessage="签约有效期开始日期必须大于签约有效期结束日期" Operator="GreaterThanEqual" ControlToCompare="XDateTimePicker3"></aspxform:XCompareValidator>
        
        <aspxform:XRequiredFieldValidator id="请选择合同样式" runat="server" ControlToValidate="XRadioButtonList1" ErrorMessage="请选择合同样式" Display="None" ValidationGroup="submit">请选择合同样式</aspxform:XRequiredFieldValidator>
        <aspxform:XRequiredFieldValidator id="请上传客户PO" runat="server" DisableExpress='DF_SD_ContractedDistributor.FormContract !="客户PO"' ControlToValidate="CustomerPO" ErrorMessage="请上传客户PO" Display="None" ValidationGroup="submit">请上传客户PO</aspxform:XRequiredFieldValidator>
        <aspxform:XRequiredFieldValidator id="XRequiredFieldValidator1" runat="server" DisableExpress='DF_SD_ContractedDistributor.FormContract !="客户PO"' ForeColor="Red" ValidationGroup="submit" ControlToValidate="XRadioButtonList4" ErrorMessage="请选择需要我司盖章">请选择需要我司盖章</aspxform:XRequiredFieldValidator>
       <aspxform:XRequiredFieldValidator id="请上传双方盖章后协议附件" runat="server" ForeColor="Red" ControlToValidate="AnnexAgreement" ErrorMessage="请上传双方盖章后协议附件" ValidationGroup="AAgreement"></aspxform:XRequiredFieldValidator>
        <div style="TEXT-ALIGN: center">
            <aspxform:XSignTrace id="XSignTrace1" runat="server" BorderWidth="1" Width="1200px" BorderColor="#dcdcdc"></aspxform:XSignTrace>
        </div>
    </form>
</body>
</html>
