buli
2023-07-11 80a3f59e2d3df07805bc67e329300b8de90a5b3a
force-app/main/default/pages/StraightBackAddress.page
@@ -5,12 +5,22 @@
  @last modified on  : 03-30-2022
  @last modified by  : ChangeMeIn@UserSettingsUnder.SFDoc
-->
<apex:page controller="StraightBackAddressController"  action="{!init}"  showHeader="false"   sidebar="true" id="allPage"  title="直返收货地址">
<apex:page
    controller="StraightBackAddressController"
    action="{!init}"
    showHeader="false"
    sidebar="true"
    id="allPage"
    title="直返收货地址"
    lightningStylesheets="true"
>
    <apex:stylesheet value="{!URLFOR($Resource.blockUIcss)}"/>
    <apex:includeScript value="{!URLFOR($Resource.jquery183minjs)}"/>
    <apex:includeScript value="{!URLFOR($Resource.PleaseWaitDialog)}"/>
    <apex:includeScript value="{!URLFOR($Resource.CommonUtilJs)}"/>
    <apex:includeScript value="{! URLFOR($Resource.AWSService, 'AWSService.js') }" />
    <apex:includeScript
        value="{! URLFOR($Resource.AWSService, 'AWSService.js') }"
    />
    <apex:includeScript value="{!URLFOR($Resource.connection20)}"/>
    <apex:includeScript value="{!URLFOR($Resource.apex20)}"/>
    <script type="text/javascript">
@@ -440,7 +450,6 @@
                let rc = new sforce.SObject('Repair__c');
                rc.Id='{!RepairId}';
                rc.address_Contacts__c=contactsName;
                debugger
                rc.address_ZipCode__c = address.ZipCode__c;
                rc.address_City__c = cityName;
                rc.address_Contacts_Name__c = ContactPerson;
@@ -851,11 +860,12 @@
        //2022 02 28 张华建 display PI Data end
    </script>
    <script type="text/javascript">
        function DecryptAddress(){
            debugger
            let arr1 = [];let a1=false;
            let arr2 = [];let a2=false;
            debugger;
            let arr1 = [];
            let a1 = false;
            let arr2 = [];
            let a2 = false;
            j$('td.oraddress').each(function(i,e){
               let did = j$(e).attr('address-data-id');
               if (did) {
@@ -866,40 +876,50 @@
               if (did) {
                   arr2.push(did);
               }
            })
            });
            
            if (arr1.length) {
                b();
                AWSService.post(staticResource.searchUrl,{
                AWSService.post(
                    staticResource.searchUrl,
                    {
                    dataIds:arr1
                },function(data){
                    },
                    function (data) {
                    ub();
                    if(data && data.object && data.object.length > 0){
                        for (let di in data.object) {
                            if (data.object[di] && data.object[di].dataId) {
                                addressAwsData[data.object[di].dataId] = data.object[di];
                                    addressAwsData[data.object[di].dataId] =
                                        data.object[di];
                            }
                        }
                    }
                },staticResource.token)
                    },
                    staticResource.token
                );
            }
            if (arr2.length) {
                b();
                AWSService.post(staticResourceContact.searchUrl,{
                AWSService.post(
                    staticResourceContact.searchUrl,
                    {
                    dataIds:arr2
                },function(data){
                    },
                    function (data) {
                    ub();
                    if(data && data.object && data.object.length > 0){
                        for (let di in data.object) {
                            if (data.object[di] && data.object[di].dataId) {
                                addressAwsData[data.object[di].dataId] = data.object[di];
                                    addressAwsData[data.object[di].dataId] =
                                        data.object[di];
                            }
                        }
                    }
                },staticResourceContact.token)
                    },
                    staticResourceContact.token
                );
            }
        }
    </script>
@@ -909,10 +929,24 @@
        <apex:inputHidden value="{!insUpdDataStr}" id="insUpdDataStr"/>
        <div id="tab01">            
            <!-- 页面数据初始化方法 -->
            <apex:actionFunction name="init" action="{!init}" rerender="oppBlock1,message,checEventFrame" onComplete="ub();"></apex:actionFunction>
            <apex:actionFunction
                name="init"
                action="{!init}"
                rerender="oppBlock1,message,checEventFrame"
                onComplete="ub();"
            ></apex:actionFunction>
            <!-- 检索数据查询方法 -->
            <apex:actionFunction name="searchBtn" action="{!searchBtn}" rerender="oppBlock1,message,checEventFrame,tableValueFrontEnd" onComplete="ub();DecryptAddress();">
                <apex:param name="addressDataIds" assignTo="{!addressDataIds}" value=""></apex:param>
            <apex:actionFunction
                name="searchBtn"
                action="{!searchBtn}"
                rerender="oppBlock1,message,checEventFrame,tableValueFrontEnd"
                onComplete="ub();DecryptAddress();"
            >
                <apex:param
                    name="addressDataIds"
                    assignTo="{!addressDataIds}"
                    value=""
                ></apex:param>
            </apex:actionFunction>
            <!-- 采用方法 -->
            <!--<actionFunction name="adoptSave" action="{!adoptSave}" rerender="oppBlock2,message" onComplete="ub();">
@@ -920,68 +954,150 @@
                <apex:param name="isUpload" assignTo="{!isUpload}" value="" />
            </actionFunction>-->
            <!-- 保存和修改方法 -->
            <apex:actionFunction name="save" action="{!save}" rerender="oppBlock2,message" onComplete="ub();Trans()"></apex:actionFunction>
            <apex:actionFunction
                name="save"
                action="{!save}"
                rerender="oppBlock2,message"
                onComplete="ub();Trans()"
            ></apex:actionFunction>
            <!-- 点击修改按钮获取修改数据方法 -->
            <apex:actionFunction name="onEditor" action="{!onEditor}" rerender="oppBlock2,checEventFrame,insUpdDataStr" onComplete="decrypt();ub();">
            <apex:actionFunction
                name="onEditor"
                action="{!onEditor}"
                rerender="oppBlock2,checEventFrame,insUpdDataStr"
                onComplete="decrypt();ub();"
            >
                <apex:param name="UpdId" assignTo="{!UpdId}" value="" />
            </apex:actionFunction>
            <!-- 复制方法 -->
            <apex:actionFunction name="onCopy" action="{!onCopy}" rerender="oppBlock2,checEventFrame," onComplete="decrypt();ub();">
            <apex:actionFunction
                name="onCopy"
                action="{!onCopy}"
                rerender="oppBlock2,checEventFrame,"
                onComplete="decrypt();ub();"
            >
                <apex:param name="UpdId" assignTo="{!UpdId}" value="" />
            </apex:actionFunction>
            <!-- 返回父页面 -->
            <apex:actionFunction name="redirectPag" action="{!redirectPag}" rerender="true" onComplete="ub();"></apex:actionFunction>
            <apex:actionFunction
                name="redirectPag"
                action="{!redirectPag}"
                rerender="true"
                onComplete="ub();"
            ></apex:actionFunction>
        <apex:pageBlock id="searchBlock" tabStyle="Report">
            <table style="border-bottom-width: 0px; font-size:12px;width:100%">
                <table
                    style="
                        border-bottom-width: 0px;
                        font-size: 12px;
                        width: 100%;
                    "
                >
                <tr>
                    <td style="width: 15%">
                        <font>类&nbsp;型&nbsp;</font>&nbsp;
                            <!-- <apex:selectList id="numtextA1Id" value="{!numtextA1}" size="1" style="width:110px">
                                <apex:selectOptions value="{!optionType}"/>
                            </apex:selectList> -->
                            <apex:inputField value="{!optionAddressClassification.Address_Classification__c}" id="AddressClassificationId"/>
                            <apex:inputField
                                value="{!optionAddressClassification.Address_Classification__c}"
                                id="AddressClassificationId"
                            />
                        </td>
                        <td style="width: 20%">
                            <font>客&nbsp;户&nbsp;名&nbsp;</font>&nbsp;
                            <apex:inputText id="txtNameId" value="{!txtName}"/>
                            <a class="inlineEditUndoLink" title="清空" href="#" onclick="document.getElementById('allPage:allForm:searchBlock:txtNameId').value = '';document.getElementById('allPage:allForm:searchBlock:txtNameId').focus();" style="display: inline;">
                                <img width="16px" height="16px" src="/img/s.gif" alt="清空" class="inlineEditUndo"/>
                            <a
                                class="inlineEditUndoLink"
                                title="清空"
                                href="#"
                                onclick="document.getElementById('allPage:allForm:searchBlock:txtNameId').value = '';document.getElementById('allPage:allForm:searchBlock:txtNameId').focus();"
                                style="display: inline"
                            >
                                <img
                                    width="16px"
                                    height="16px"
                                    src="/img/s.gif"
                                    alt="清空"
                                    class="inlineEditUndo"
                                />
                            </a>
                        </td>
                        <td style="width: 20%">
                            <font>地&nbsp;址&nbsp;</font>&nbsp;
                            <apex:inputText id="txtAddressId" value="{!txtAddress}"/>
                            <a class="inlineEditUndoLink" title="清空" href="#" onclick="document.getElementById('allPage:allForm:searchBlock:txtAddressId').value = '';document.getElementById('allPage:allForm:searchBlock:txtAddressId').focus(); " style="display: inline;">
                                <img width="16px" height="16px" src="/s.gif" alt="清空" class="inlineEditUndo"/>
                            <apex:inputText
                                id="txtAddressId"
                                value="{!txtAddress}"
                            />
                            <a
                                class="inlineEditUndoLink"
                                title="清空"
                                href="#"
                                onclick="document.getElementById('allPage:allForm:searchBlock:txtAddressId').value = '';document.getElementById('allPage:allForm:searchBlock:txtAddressId').focus(); "
                                style="display: inline"
                            >
                                <img
                                    width="16px"
                                    height="16px"
                                    src="/s.gif"
                                    alt="清空"
                                    class="inlineEditUndo"
                                />
                            </a>
                        </td>
                        <td style="width: 20%">
                            <apex:commandButton onclick="searchBtnJs();return false;"  rendered="true" value="检索" style="width:60px;"  onComplete=""/>
                            <apex:commandButton
                                onclick="searchBtnJs();return false;"
                                rendered="true"
                                value="检索"
                                style="width: 60px"
                                onComplete=""
                            />
                            &nbsp;&nbsp;
                            <!-- <apex:commandButton onclick="onAdoptJs();return false;"  rendered="true" value="采用" style="width:60px;background:#98c1fbf7"/>
                            &nbsp;&nbsp; -->
                            <apex:commandButton onclick="sendBackJs();return false;"  rendered="true" value="返回" style="width:60px;"/>
                            <apex:commandButton
                                onclick="sendBackJs();return false;"
                                rendered="true"
                                value="返回"
                                style="width: 60px"
                            />
                        </td>
                        <td style="width: 25%">
                            &nbsp;
                        </td>
                        <td style="width: 25%">&nbsp;</td>
                    </tr>
                </table>
            </apex:pageBlock>
        </div>
        <div>
            <apex:outputPanel id="message">
                <apex:pageMessages />
            </apex:outputPanel>
        </div>
        <div id="tab02" style="overflow-x: auto; overflow-y: auto;">
        <div id="tab02" style="overflow-x: auto; overflow-y: auto">
            <apex:pageBlock id="oppBlock1" tabStyle="Report">
                <apex:pageblocksection title="地址列表" id="edmpdDetails" rendered="true" columns="1" >
                <apex:pageblocksection
                    title="地址列表"
                    id="edmpdDetails"
                    rendered="true"
                    columns="1"
                >
                    <apex:outputPanel >
                        <table class="list" style="border-bottom-width: 0px; font-size:11px; border-spacing:0;" border="" id="tableHeader_L" >
                        <table
                            class="list"
                            style="
                                border-bottom-width: 0px;
                                font-size: 11px;
                                border-spacing: 0;
                            "
                            border=""
                            id="tableHeader_L"
                        >
                            <thead>
                                <tr class="headerRow" height="30px"  align="center">
                                <tr
                                    class="headerRow"
                                    height="30px"
                                    align="center"
                                >
                                    <!--标题 -->
                                    <td style="">序号</td>
                                    <td style="">类型</td>
@@ -992,81 +1108,216 @@
                                    <td style="">省</td>
                                    <td style="">市</td>
                                    <td style="">详细地址</td>
                                    <td style="" colspan="3">
                                        操作
                                    </td>
                                    <td style="" colspan="3">操作</td>
                                </tr>
                            </thead>
                            <tbody>
                                <apex:variable value="{!0}" var="cnt" />
                                <apex:repeat value="{!tableData}" var="or" id="oppTable">
                                    <tr class="dataRow {!IF(MOD(cnt, 2)==0, 'odd', 'even')} {!IF(cnt==1, 'first', '')}" onmouseover="if (window.hiOn){hiOn(this);} " onmouseout="if (window.hiOff){hiOff(this);} "  onblur="if (window.hiOff){hiOff(this);}" onfocus="if (window.hiOn){hiOn(this);}">
                                        <td align="center" style="vertical-align: inherit;width:25px;border-width: 0px 1px 1px 0px;">
                                <apex:repeat
                                    value="{!tableData}"
                                    var="or"
                                    id="oppTable"
                                >
                                    <tr
                                        class="dataRow {!IF(MOD(cnt, 2)==0, 'odd', 'even')} {!IF(cnt==1, 'first', '')}"
                                        onmouseover="if (window.hiOn){hiOn(this);} "
                                        onmouseout="if (window.hiOff){hiOff(this);} "
                                        onblur="if (window.hiOff){hiOff(this);}"
                                        onfocus="if (window.hiOn){hiOn(this);}"
                                    >
                                        <td
                                            align="center"
                                            style="
                                                vertical-align: inherit;
                                                width: 25px;
                                                border-width: 0px 1px 1px 0px;
                                            "
                                        >
                                            {!cnt+1}
                                        </td>
                                        <td  align="center"  style="vertical-align: inherit;border-width: 0px 1px 1px 0px;">
                                            <apex:outputText value="{!or.address.Address_Classification__c}" />
                                        <td
                                            align="center"
                                            style="
                                                vertical-align: inherit;
                                                border-width: 0px 1px 1px 0px;
                                            "
                                        >
                                            <apex:outputText
                                                value="{!or.address.Address_Classification__c}"
                                            />
                                        </td>
                                        <td align="left" class="Customer__c" style="vertical-align: inherit;border-width: 0px 1px 1px 0px;">
                                            <apex:outputfield value="{!or.address.Customer__c}" />
                                        <td
                                            align="left"
                                            class="Customer__c"
                                            style="
                                                vertical-align: inherit;
                                                border-width: 0px 1px 1px 0px;
                                            "
                                        >
                                            <apex:outputfield
                                                value="{!or.address.Customer__c}"
                                            />
                                        </td>
                                        <td align="left" class="oraddress" style="vertical-align: inherit;border-width: 0px 1px 1px 0px;" address-data-id="{!or.address.AWS_Data_Id__c}" contact-data-id="{!or.address.Contacts__r.AWS_Data_Id__c}">
                                        <td
                                            align="left"
                                            class="oraddress"
                                            style="
                                                vertical-align: inherit;
                                                border-width: 0px 1px 1px 0px;
                                            "
                                            address-data-id="{!or.address.AWS_Data_Id__c}"
                                            contact-data-id="{!or.address.Contacts__r.AWS_Data_Id__c}"
                                        >
                                            <!-- <apex:outputfield value="{!or.address.Contacts__c}" id="{!or.address.Contacts__c}_{!or.address.Id}"/> -->
                                            <!-- <a href="#" id="{!or.address.Id}" onmouseover="showPIDiv('{!or.address.Id}')" onmouseout="hidePIDiv('{!or.address.Id}')"  aws-data-id="{!or.address.Contacts__r.AWS_Data_Id__c}">{!or.address.Contacts__r.Name}</a> -->
                                            <a href="#" id="{!or.address.Id}" onmouseover="showPIDiv('{!or.address.Id}')" onmouseout="hidePIDiv('{!or.address.Id}')"  aws-data-id="{!or.address.AWS_Data_Id__c}">{!or.address.ContactName__c}</a>
                                            <a
                                                href="#"
                                                id="{!or.address.Id}"
                                                onmouseover="showPIDiv('{!or.address.Id}')"
                                                onmouseout="hidePIDiv('{!or.address.Id}')"
                                                aws-data-id="{!or.address.AWS_Data_Id__c}"
                                                >{!or.address.ContactName__c}</a
                                            >
                                        </td>
                                        <td align="left" style="vertical-align: inherit;border-width: 0px 1px 1px 0px;">
                                            <apex:outputText value="{!or.address.Telephone__c}" />
                                        <td
                                            align="left"
                                            style="
                                                vertical-align: inherit;
                                                border-width: 0px 1px 1px 0px;
                                            "
                                        >
                                            <apex:outputText
                                                value="{!or.address.Telephone__c}"
                                            />
                                        </td>
                                        <td align="left" style="vertical-align: inherit;border-width: 0px 1px 1px 0px;">
                                            <apex:outputText value="{!or.address.ZipCode__c}" />
                                        <td
                                            align="left"
                                            style="
                                                vertical-align: inherit;
                                                border-width: 0px 1px 1px 0px;
                                            "
                                        >
                                            <apex:outputText
                                                value="{!or.address.ZipCode__c}"
                                            />
                                        </td>
                                        <td align="center" style="vertical-align: inherit;border-width: 0px 1px 1px 0px;">
                                            <apex:outputfield value="{!or.address.Province__c}" />
                                        <td
                                            align="center"
                                            style="
                                                vertical-align: inherit;
                                                border-width: 0px 1px 1px 0px;
                                            "
                                        >
                                            <apex:outputfield
                                                value="{!or.address.Province__c}"
                                            />
                                        </td>
                                        <td align="center" style="vertical-align: inherit;border-width: 0px 1px 1px 0px;">
                                            <apex:outputfield value="{!or.address.City__c}" />
                                        <td
                                            align="center"
                                            style="
                                                vertical-align: inherit;
                                                border-width: 0px 1px 1px 0px;
                                            "
                                        >
                                            <apex:outputfield
                                                value="{!or.address.City__c}"
                                            />
                                        </td>
                                        <td align="left" style="vertical-align: inherit;border-width: 0px 1px 1px 0px;">
                                            <apex:outputText value="{!or.address.Detailed_Address__c}" />
                                        <td
                                            align="left"
                                            style="
                                                vertical-align: inherit;
                                                border-width: 0px 1px 1px 0px;
                                            "
                                        >
                                            <apex:outputText
                                                value="{!or.address.Detailed_Address__c}"
                                            />
                                        </td>
                                        <td align="center" style="vertical-align: inherit;width:30px;">
                                            <apex:commandButton value=" 编辑 " onclick="onEditorJs('{!or.address.id}');return false;" style="background:#98c1fbf7;display:{!or.canEdit};"/>
                                        <td
                                            align="center"
                                            style="
                                                vertical-align: inherit;
                                                width: 30px;
                                            "
                                        >
                                            <apex:commandButton
                                                value=" 编辑 "
                                                onclick="onEditorJs('{!or.address.id}');return false;"
                                                style="background:#98c1fbf7;display:{!or.canEdit};"
                                            />
                                        </td>
                                        <td align="center" style="vertical-align: inherit;width:30px;">
                                            <apex:commandButton value=" 复制 " onclick="onCopyJs('{!or.address.id}');return false;" style="background: #98c1fbf7;display:{!or.canCopy};"/>
                                        <td
                                            align="center"
                                            style="
                                                vertical-align: inherit;
                                                width: 30px;
                                            "
                                        >
                                            <apex:commandButton
                                                value=" 复制 "
                                                onclick="onCopyJs('{!or.address.id}');return false;"
                                                style="background: #98c1fbf7;display:{!or.canCopy};"
                                            />
                                        </td>
                                        <td align="center" style="vertical-align: inherit;width:30px;">
                                            <apex:commandButton value=" 采用 " onclick="onAdoptJs(event,JSON.parse('{!or.addressJson}'));return false;" style="background: #98c1fbf7;display:{!or.canAdopt};"/>
                                        <td
                                            align="center"
                                            style="
                                                vertical-align: inherit;
                                                width: 30px;
                                            "
                                        >
                                            <apex:commandButton
                                                value=" 采用 "
                                                onclick="onAdoptJs(event,JSON.parse('{!or.addressJson}'));return false;"
                                                style="background: #98c1fbf7;display:{!or.canAdopt};"
                                            />
                                        </td>
                                    </tr>
                                    <apex:variable value="{!cnt + 1}" var="cnt" />
                                    <apex:variable
                                        value="{!cnt + 1}"
                                        var="cnt"
                                    />
                                </apex:repeat>
                            </tbody>
                            <script>
                                console.log('queryPI();')
                                console.log('queryPI();');
                                queryPI();
                            </script>
                        </table>
                    </apex:outputPanel>
                </apex:pageblocksection>
            </apex:pageBlock>
        </div>
        <div id="tab03">
            <apex:pageBlock id="oppBlock2" tabStyle="Report">
                <!-- <apex:inputHidden id="LastName_Encrypted__c"         value="{!newCon.LastName_Encrypted__c}"/>
                <apex:inputHidden id="Con_AWS_Data_Id__c"            value="{!newCon.AWS_Data_Id__c}"/> -->
                <apex:inputHidden id="Add_AWS_Data_Id__c"            value="{!insUpdData.AWS_Data_Id__c}"/>
                <apex:inputHidden
                    id="Add_AWS_Data_Id__c"
                    value="{!insUpdData.AWS_Data_Id__c}"
                />
                <!-- zhj 新方案改造 2022-12-05 start -->
                <!-- <apex:inputHidden id="Telephone_Encrypted__c"        value="{!insUpdData.Telephone_Encrypted__c}"/>
                <apex:inputHidden id="ContactName_Encrypted__c"        value="{!insUpdData.ContactName_Encrypted__c}"/>
                <apex:inputHidden id="ZipCode_Encrypted__c"          value="{!insUpdData.ZipCode_Encrypted__c}"/>
                <apex:inputHidden id="Detailed_Address_Encrypted__c" value="{!insUpdData.Detailed_Address_Encrypted__c}"/> -->
                <!-- zhj 新方案改造 2022-12-05 end -->
                <apex:pageblocksection title="编辑地址" id="UpdAddressId" rendered="true" columns="3">
                    <apex:inputfield value="{!insUpdData.Address_Classification__c}" id="Address_Classification__c"/>
                    <apex:inputfield value="{!insUpdData.Customer__c}" id="Customer__r_Name" required="false" />
                <apex:pageblocksection
                    title="编辑地址"
                    id="UpdAddressId"
                    rendered="true"
                    columns="3"
                >
                    <apex:inputfield
                        value="{!insUpdData.Address_Classification__c}"
                        id="Address_Classification__c"
                    />
                    <apex:inputfield
                        value="{!insUpdData.Customer__c}"
                        id="Customer__r_Name"
                        required="false"
                    />
                    <!-- Before PIPL 20220308 -->
                    <!-- <apex:inputfield value="{!insUpdData.Contacts__c}" id="Contacts__c" required="false"/> -->
                    <!-- WLIG-CCX4BB 【委托】修理直返收货地址功能改造 thh 20220513 start -->
@@ -1074,40 +1325,60 @@
                    <!-- <apex:inputText label="联系人" disabled="true" value="{!contactNameValue}" id="Contacts__c">                       
                    </apex:inputText>
                    <apex:inputHidden id="contactIdValue" value="{!contactIdValue}"/> -->
                    <apex:inputfield value="{!insUpdData.ContactName__c}" id="ContactName__c"/>
                    <apex:inputfield
                        value="{!insUpdData.ContactName__c}"
                        id="ContactName__c"
                    />
                    <!-- Add By Li Jun for PIPL 20220308 End -->
                    <!-- <apex:inputfield value="{!insUpdData.Create_Contacts__c}" id="Create_Contacts__c" required="false"/> -->
                    <!-- WLIG-CCX4BB 【委托】修理直返收货地址功能改造 thh 20220513 end -->
                    <apex:inputfield value="{!insUpdData.Province__c}" id="Province__r_Name" style="" />
                    <apex:inputfield value="{!insUpdData.City__c}" id="City__r_name" />
                    <apex:inputfield value="{!insUpdData.Telephone__c}" id="Telephone__c" />
                    <apex:inputfield value="{!insUpdData.ZipCode__c}" id="ZipCode__c" />
                    <apex:inputfield
                        value="{!insUpdData.Province__c}"
                        id="Province__r_Name"
                        style=""
                    />
                    <apex:inputfield
                        value="{!insUpdData.City__c}"
                        id="City__r_name"
                    />
                    <apex:inputfield
                        value="{!insUpdData.Telephone__c}"
                        id="Telephone__c"
                    />
                    <apex:inputfield
                        value="{!insUpdData.ZipCode__c}"
                        id="ZipCode__c"
                    />
                    <!-- <apex:pageblockSectionItem /> -->
                    <!-- <apex:inputTextarea value="{!insUpdData.Detailed_Address__c}" id="Detailed_Address__c" style="resize:vertical;width: 90%" rows="3" cols="3"/> -->
                    <apex:inputfield value="{!insUpdData.Detailed_Address__c}" id="Detailed_Address__c" style="resize:vertical;width: 98%"/>
                    <apex:inputfield
                        value="{!insUpdData.Detailed_Address__c}"
                        id="Detailed_Address__c"
                        style="resize: vertical; width: 98%"
                    />
                    <div id="errorMsg" class="errorMsg"></div>
                </apex:pageblocksection>
                <div style="text-align: center;">
                    <apex:commandButton immediate="true" value="保存" onclick="savaJs();" rerender="dummy"  />
                <div style="text-align: center">
                    <apex:commandButton
                        immediate="true"
                        value="保存"
                        onclick="savaJs();"
                        rerender="dummy"
                    />
                </div>
                <!-- <script>
                    replaceSearchContactLookup();
                </script> -->
            </apex:pageBlock>
        </div>        
    </apex:form>
    <apex:outputPanel id="checEventFrame">
      <script type="text/javascript">
            j$("select option[value='办事处']")[1].remove();
            
            DecryptAddress();
        </script>
    </apex:outputPanel>
</apex:page>