username@email.com
2024-12-25 84f9a6812122e59ba862d2e72c743b29c7ed5f48
采购付款
18个文件已修改
6个文件已添加
1578 ■■■■■ 已修改文件
CY_ECommercePlatform/CY.WebForm/CY.WebForm.csproj 16 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
CY_ECommercePlatform/CY.WebForm/Pages/business/AgOutsourcSingleAllList.aspx 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
CY_ECommercePlatform/CY.WebForm/Pages/business/AgSpecialOrderDetail.aspx 24 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
CY_ECommercePlatform/CY.WebForm/Pages/business/AgSpecialOrderDetail.aspx.cs 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
CY_ECommercePlatform/CY.WebForm/Pages/business/AgSpecialOrderEdit.aspx 256 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
CY_ECommercePlatform/CY.WebForm/Pages/business/AgSpecialOrderList.aspx 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
CY_ECommercePlatform/CY.WebForm/Pages/business/Caigoufukuanshenqing.aspx 158 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
CY_ECommercePlatform/CY.WebForm/Pages/business/Caigoufukuanshenqing.aspx.cs 314 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
CY_ECommercePlatform/CY.WebForm/Pages/business/Caigoufukuanshenqing.aspx.designer.cs 116 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
CY_ECommercePlatform/CY.WebForm/Pages/business/InvoicingConfirm.aspx 10 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
CY_ECommercePlatform/CY.WebForm/Pages/business/OrderListBatchKaipiao.aspx 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
CY_ECommercePlatform/CY.WebForm/Pages/business/Waixiefukuanfukuan.aspx 15 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
CY_ECommercePlatform/CY.WebForm/Pages/business/Waixiefukuanweikaipiao.aspx 15 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
CY_ECommercePlatform/CY.WebForm/Pages/financial/CaigouPayEdit.aspx 142 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
CY_ECommercePlatform/CY.WebForm/Pages/financial/CaigouPayEdit.aspx.cs 260 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
CY_ECommercePlatform/CY.WebForm/Pages/financial/CaigouPayEdit.aspx.designer.cs 134 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
CY_ECommercePlatform/CY.WebForm/Pages/financial/NewWaixieExpenses.aspx.cs 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
CY_ECommercePlatform/CY.WebForm/Pages/financial/WaixieExpenses.aspx.cs 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
CY_ECommercePlatform/CY.WebForm/Pages/procurement/ProcurementList.aspx 78 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
CY_ECommercePlatform/CY.WebForm/Pages/procurement/ProcurementList.aspx.designer.cs 14 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
CY_ECommercePlatform/CY.WebForm/Pages/work/MyRequestAdd.aspx 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
CY_ECommercePlatform/CY.WebForm/Pages/work/MyRequestList.aspx 7 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
CY_ECommercePlatform/CY.WebForm/Pages/work/RequestReplyAdd.aspx.cs 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
CY_ECommercePlatform/CY.WebForm/Pages/work/RequestReplyList.aspx 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
CY_ECommercePlatform/CY.WebForm/CY.WebForm.csproj
@@ -1883,6 +1883,7 @@
    <Content Include="Pages\business\BackVisitNoteEdit.aspx" />
    <Content Include="Pages\business\BargainPrice.aspx" />
    <Content Include="Pages\business\BargainPriceByFirm.aspx" />
    <Content Include="Pages\business\Caigoufukuanshenqing.aspx" />
    <Content Include="Pages\business\WaixieOrderPrint.aspx" />
    <Content Include="Pages\business\Waixiefukuanweikaipiao.aspx" />
    <Content Include="Pages\business\Waixiefukuanfukuan.aspx" />
@@ -2045,6 +2046,7 @@
    <Content Include="Pages\financial\DepositsCustomerFapiao.aspx" />
    <Content Include="Pages\financial\NewWaixieExpenses.aspx" />
    <Content Include="Pages\financial\OutsourcePiliangPayMoney.aspx" />
    <Content Include="Pages\financial\CaigouPayEdit.aspx" />
    <Content Include="Pages\financial\WaixieExpenses.aspx" />
    <Content Include="Pages\financial\FirmAccountPrint.aspx" />
    <Content Include="Pages\financial\FirmAccountPrintTable.aspx" />
@@ -3304,6 +3306,13 @@
    <Compile Include="Pages\business\BargainPriceByFirm.aspx.designer.cs">
      <DependentUpon>BargainPriceByFirm.aspx</DependentUpon>
    </Compile>
    <Compile Include="Pages\business\Caigoufukuanshenqing.aspx.cs">
      <DependentUpon>Caigoufukuanshenqing.aspx</DependentUpon>
      <SubType>ASPXCodeBehind</SubType>
    </Compile>
    <Compile Include="Pages\business\Caigoufukuanshenqing.aspx.designer.cs">
      <DependentUpon>Caigoufukuanshenqing.aspx</DependentUpon>
    </Compile>
    <Compile Include="Pages\business\WaixieOrderPrint.aspx.cs">
      <DependentUpon>WaixieOrderPrint.aspx</DependentUpon>
      <SubType>ASPXCodeBehind</SubType>
@@ -4438,6 +4447,13 @@
    <Compile Include="Pages\financial\OutsourcePiliangPayMoney.aspx.designer.cs">
      <DependentUpon>OutsourcePiliangPayMoney.aspx</DependentUpon>
    </Compile>
    <Compile Include="Pages\financial\CaigouPayEdit.aspx.cs">
      <DependentUpon>CaigouPayEdit.aspx</DependentUpon>
      <SubType>ASPXCodeBehind</SubType>
    </Compile>
    <Compile Include="Pages\financial\CaigouPayEdit.aspx.designer.cs">
      <DependentUpon>CaigouPayEdit.aspx</DependentUpon>
    </Compile>
    <Compile Include="Pages\financial\WaixieExpenses.aspx.cs">
      <DependentUpon>WaixieExpenses.aspx</DependentUpon>
      <SubType>ASPXCodeBehind</SubType>
CY_ECommercePlatform/CY.WebForm/Pages/business/AgOutsourcSingleAllList.aspx
@@ -158,7 +158,7 @@
                    <div class="right">
                        <div class="padding_top5 padding_left10">
                            
                            <a href="javascript:;"   onclick="ToWaixieFukuan()"><span class="icon_edit">外协付款申请</span></a>
                            <a href="javascript:;" menu_member_case_id="case_waixiefukuan" menu_member_case_name="外协付款申请"  onclick="ToWaixieFukuan()"><span class="icon_edit">外协付款申请</span></a>
                              <div class="box_tool_line">
                            </div>
                            <a style="color: #666; cursor: inherit;">(如果外协给线上厂商的订单被受理,那么此外协订单不可再修改,也不可删除。)</a>
CY_ECommercePlatform/CY.WebForm/Pages/business/AgSpecialOrderDetail.aspx
@@ -236,18 +236,18 @@
                                        印刷机台
                                    </td>
                                    <td colspan="2">
                                        印色
                                        <span  style="<%#Eval("shifouxianshi")%>" >印色</span>
                                    </td>
                                    <td rowspan="2" colspan="2">
                                        排版方式
                                       <span  style="<%#Eval("shifouxianshi")%>" >印刷方式</span>
                                    </td>
                                </tr>
                                <tr class=" price_tabbg" style="font-weight: bold; background-color: #E4E4E4;">
                                    <td>
                                        正
                                        <span  style="<%#Eval("shifouxianshi")%>" >正</span>
                                    </td>
                                    <td>
                                        背
                                        <span  style="<%#Eval("shifouxianshi")%>" >背</span>
                                    </td>
                                </tr>
                                <tr style="background-color: #FFFFFF;">
@@ -261,13 +261,13 @@
                                        <%#Eval("PSF_PressesDesk")%>
                                    </td>
                                    <td>
                                        <%#Eval("PSF_PrintedColorPositive")%>
                                     <span  style="<%#Eval("shifouxianshi")%>" ><%#Eval("PSF_PrintedColorPositive")%></span>
                                    </td>
                                    <td>
                                        <%#Eval("PSF_PrintedColorRear")%>
                                     <span  style="<%#Eval("shifouxianshi")%>" ><%#Eval("PSF_PrintedColorRear")%></span>
                                    </td>
                                    <td colspan="2">
                                        <%#Eval("PSF_Typesetting")%>
                                     <span  style="<%#Eval("shifouxianshi")%>" ><%#Eval("PSF_Typesetting")%></span>
                                    </td>
                                    <%--<td>
                                        <%#Eval("PSF_SheetSource")%>
@@ -279,7 +279,7 @@
                                        <%#Eval("PSF_EditionCount")%>
                                    </td>--%>
                                </tr>
                                <tr class=" price_tabbg" style="font-weight: bold; background-color: #E6E6E6;<%#Eval("shifouxianshi")%>">
                                <tr class=" price_tabbg" style="font-weight: bold; background-color: #E6E6E6;">
                                    <td rowspan="2">
                                        纸张来源
                                    </td>
@@ -296,7 +296,7 @@
                                        开料规格
                                    </td>
                                </tr>
                                <tr class=" price_tabbg" style="font-weight: bold; background-color: #E6E6E6;<%#Eval("shifouxianshi")%>">
                                <tr class=" price_tabbg" style="font-weight: bold; background-color: #E6E6E6;">
                                    <td>
                                        纸张数量
                                    </td>
@@ -316,7 +316,7 @@
                                        长度(mm)
                                    </td>
                                </tr>
                                <tr style="background-color: #FFFFFF;<%#Eval("shifouxianshi")%>">
                                <tr style="background-color: #FFFFFF;">
                                    <td>
                                        <%#Eval("PSF_PaperSource")%>
                                    </td>
@@ -356,7 +356,7 @@
                                        规格
                                    </td>
                                    <td id="lbCTPCount" <%#show("CTPCount",Eval("PSF_PlateSource").ToString())%>>
                                        CTP数量(张)
                                       <span  style="<%#Eval("shifouxianshi")%>" > CTP数量(张) </span>
                                    </td>
                                    <td id="lbPSSpec" <%#show("PSSpec",Eval("PSF_PlateSource").ToString())%>>
                                        PS版规格
@@ -375,7 +375,7 @@
                                                <%#Eval("PSF_CTPSpecType")%>
                                            </td>
                                            <td id="tdCTPCount" <%#show("CTPCount",Eval("PSF_PlateSource").ToString())%>>
                                                <%#0.Equals(Eval("PSF_CTPCount")) ? "" : Eval("PSF_CTPCount")%>
                                              <span  style="<%#Eval("shifouxianshi")%>" >   <%#0.Equals(Eval("PSF_CTPCount")) ? "" : Eval("PSF_CTPCount")%> </span>
                                            </td>
                                            <td id="tdPSSpec" <%#show("PSSpec",Eval("PSF_PlateSource").ToString())%>>
                                                <%#Eval("PSF_PSSpec")%>
CY_ECommercePlatform/CY.WebForm/Pages/business/AgSpecialOrderDetail.aspx.cs
@@ -173,7 +173,7 @@
            foreach (var eC_SpecialForums  in m_EC_SpecialForumsList)
            {
                if (eC_SpecialForums.PSF_PressesDesk.IndexOf("数码")>=0)
                if (eC_SpecialForums.PSF_PressesDesk.IndexOf("数码")>=0 || eC_SpecialForums.PSF_PressesDesk.IndexOf("直接修切") >= 0)
                {
                    eC_SpecialForums.shifouxianshi = "display:none;";
                }
CY_ECommercePlatform/CY.WebForm/Pages/business/AgSpecialOrderEdit.aspx
@@ -207,7 +207,7 @@
                                    <p name="PSF_yinse" value_openwidthspan="<%#Container.ItemIndex + 1%>">印色</p>        
                                </td>
                                <td rowspan="2" colspan="2">
                                    印刷方式
                                    <p name="PSF_yinshufangshi" value_openwidthspan="<%#Container.ItemIndex + 1%>">印刷方式</p>
                                </td>
                                 
                            </tr>
@@ -351,7 +351,7 @@
                                    <input type="text" class="  w80px  int " msg="请填写数字" name="PSF_OpenWidth" value="<%#(Eval("PSF_OpenWidth") == null || Eval("PSF_OpenWidth").ToString()=="0")?"":Eval("PSF_OpenWidth").ToString()%>" value_ppwaerid='<%#Container.ItemIndex + 1%>' />
                                    <div class="xialap"   value_ppwaerid='<%#Container.ItemIndex + 1%>' style="display:none;" >
                             <input type="text" class="  w80px  int " name="PSF_OpenWidthName"   value="<%#(Eval("PSF_OpenWidth") == null || Eval("PSF_OpenWidth").ToString()=="0")?"":Eval("PSF_OpenWidth").ToString()%>" value_ppwaerid='<%#Container.ItemIndex + 1%>'    />
                             <input type="text" class="  w80px  int " value_ppwaerid='<%#Container.ItemIndex + 1%>'  name="PSF_OpenWidthName"   value="<%#(Eval("PSF_OpenWidth") == null || Eval("PSF_OpenWidth").ToString()=="0")?"":Eval("PSF_OpenWidth").ToString()%>"    />
                            <div class="xialapb" >
                              
                                <div class="xialapr">755</div>
@@ -571,6 +571,7 @@
                $("p[name='PSF_OpenWidthspan']").last().attr("value_openwidthspan", value_id + 1);
                $("p[name='PSF_yinse']").last().attr("value_openwidthspan", value_id + 1);
                $("p[name='PSF_yinsezheng']").last().attr("value_openwidthspan", value_id + 1);
                $("p[name='PSF_yinshufangshi']").last().attr("value_openwidthspan", value_id + 1);
                $("p[name='PSF_yinsebei']").last().attr("value_openwidthspan", value_id + 1);
                $("select[name='PSF_PrintedColorRear']").last().attr("value_ppwaerid", value_id + 1);
                $("select[name='PSF_PressesDesk']").last().attr("value_selspec", value_id + 1);
@@ -791,6 +792,8 @@
                    $("p[name='PSF_yinsezheng'][value_openwidthspan='" + value_SelWaerId + "']").show();
                    $("p[name='PSF_yinsebei'][value_openwidthspan='" + value_SelWaerId + "']").show();
                    $("p[name='PSF_yinshufangshi'][value_openwidthspan='" + value_SelWaerId + "']").show();
                    $("select[name='PSF_PrintedColorRear'][value_ppwaerid='" + value_SelWaerId + "']").show();
                    $("select[name='PSF_PrintedColorPositive'][value_selspec='" + value_SelWaerId + "']").show();
@@ -800,6 +803,8 @@
                    $("tr[name='PSF_PrintedPaperTdtrtr'][value_selspec='" + value_SelWaerId + "']").show();
                    $("select[name='PSF_Typesettinghide'][value_ppwaerid='" + value_SelWaerId + "']").hide();
                    $(".lbCTPCount[value_ppwaerid='" + value_SelWaerId + "']").show();
                    $("input[name='CTPCount'][value_ppwaerid='" + value_SelWaerId + "']").show();
                   
                }
                else if ($(this).val().indexOf('四色') >= 0) {
@@ -821,7 +826,7 @@
                    $("p[name='PSF_yinse'][value_openwidthspan='" + value_SelWaerId + "']").show();
                    $("p[name='PSF_yinsezheng'][value_openwidthspan='" + value_SelWaerId + "']").show();
                    $("p[name='PSF_yinsebei'][value_openwidthspan='" + value_SelWaerId + "']").show();
                    $("p[name='PSF_yinshufangshi'][value_openwidthspan='" + value_SelWaerId + "']").show();
                    $("select[name='PSF_PrintedColorRear'][value_ppwaerid='" + value_SelWaerId + "']").show();
                    $("select[name='PSF_PrintedColorPositive'][value_selspec='" + value_SelWaerId + "']").show();
@@ -830,6 +835,8 @@
                    $("tr[name='PSF_PrintedPaperTdtr'][value_selspec='" + value_SelWaerId + "']").show();
                    $("tr[name='PSF_PrintedPaperTdtrtr'][value_selspec='" + value_SelWaerId + "']").show();
                    $("select[name='PSF_Typesettinghide'][value_ppwaerid='" + value_SelWaerId + "']").hide();
                    $(".lbCTPCount[value_ppwaerid='" + value_SelWaerId + "']").show();
                    $("input[name='CTPCount'][value_ppwaerid='" + value_SelWaerId + "']").show();
                }
                else if ($(this).val().indexOf('八色') >= 0) {
                    $("select[name='PSF_PrintedColorPositive'][value_selspec='" + value_SelWaerId + "']").val("四色");
@@ -852,7 +859,7 @@
                    $("p[name='PSF_yinsezheng'][value_openwidthspan='" + value_SelWaerId + "']").show();
                    $("p[name='PSF_yinsebei'][value_openwidthspan='" + value_SelWaerId + "']").show();
                    $("p[name='PSF_yinshufangshi'][value_openwidthspan='" + value_SelWaerId + "']").show();
                    $("select[name='PSF_PrintedColorRear'][value_ppwaerid='" + value_SelWaerId + "']").show();
                    $("select[name='PSF_PrintedColorPositive'][value_selspec='" + value_SelWaerId + "']").show();
@@ -860,6 +867,8 @@
                    $("tr[name='PSF_PrintedPaperTdtr'][value_selspec='" + value_SelWaerId + "']").show();
                    $("tr[name='PSF_PrintedPaperTdtrtr'][value_selspec='" + value_SelWaerId + "']").show();
                    $("select[name='PSF_Typesettinghide'][value_ppwaerid='" + value_SelWaerId + "']").hide();
                    $(".lbCTPCount[value_ppwaerid='" + value_SelWaerId + "']").show();
                    $("input[name='CTPCount'][value_ppwaerid='" + value_SelWaerId + "']").show();
                }
                else if ($(this).val().indexOf('黑白') >= 0) {
                    $("select[name='PSF_PrintedColorPositive'][value_selspec='" + value_SelWaerId + "']").val("单色");
@@ -871,8 +880,8 @@
                    $("p[name='PSF_OpenSpecificationsspan'][value_selspecspan='" + value_SelWaerId + "']").show();
                    $("p[name='PSF_OpenWidthspan'][value_openwidthspan='" + value_SelWaerId + "']").show();
                    $("input[name='PSF_OpenLength'][value_ppwaerid='" + value_SelWaerId + "']").show();
                    $("input[name='PSF_OpenWidth'][value_ppwaerid='" + value_SelWaerId + "']").show();
                    $(".xialap[value_ppwaerid='" + value_SelWaerId + "']").hide();
                    $("input[name='PSF_OpenWidth'][value_ppwaerid='" + value_SelWaerId + "']").hide();
                    $(".xialap[value_ppwaerid='" + value_SelWaerId + "']").show();
@@ -881,7 +890,7 @@
                    $("p[name='PSF_yinse'][value_openwidthspan='" + value_SelWaerId + "']").show();
                    $("p[name='PSF_yinsezheng'][value_openwidthspan='" + value_SelWaerId + "']").show();
                    $("p[name='PSF_yinsebei'][value_openwidthspan='" + value_SelWaerId + "']").show();
                    $("p[name='PSF_yinshufangshi'][value_openwidthspan='" + value_SelWaerId + "']").show();
                    $("select[name='PSF_PrintedColorRear'][value_ppwaerid='" + value_SelWaerId + "']").show();
                    $("select[name='PSF_PrintedColorPositive'][value_selspec='" + value_SelWaerId + "']").show();
@@ -890,6 +899,9 @@
                    $("tr[name='PSF_PrintedPaperTdtr'][value_selspec='" + value_SelWaerId + "']").show();
                    $("tr[name='PSF_PrintedPaperTdtrtr'][value_selspec='" + value_SelWaerId + "']").show();
                    $("select[name='PSF_Typesettinghide'][value_ppwaerid='" + value_SelWaerId + "']").hide();
                    $(".lbCTPCount[value_ppwaerid='" + value_SelWaerId + "']").show();
                    $("input[name='CTPCount'][value_ppwaerid='" + value_SelWaerId + "']").show();
                    $("input[name='PSF_OpenWidthName'][value_ppwaerid='" + value_SelWaerId + "']").val("755");
                }
                else if ($(this).val().indexOf('轮转') >= 0) {
                    $("select[name='PSF_PrintedColorPositive'][value_selspec='" + value_SelWaerId + "']").val("单色");
@@ -898,13 +910,14 @@
                    $("select[name='PSF_OpenSpecifications'][value_selspec='" + value_SelWaerId + "']").val("");
                    $("select[name='PSF_OpenSpecifications'][value_selspec='" + value_SelWaerId + "']").change();
                    $("select[name='PSF_OpenSpecifications'][value_selspec='" + value_SelWaerId + "']").hide();
                    $(".xialap[value_ppwaerid='" + value_SelWaerId + "']").show();
                    $("input[name='PSF_OpenWidthName'][value_ppwaerid='" + value_SelWaerId + "']").val("755");
                    
                    $("p[name='PSF_OpenSpecificationsspan'][value_selspecspan='" + value_SelWaerId + "']").hide();
                    $("p[name='PSF_OpenWidthspan'][value_openwidthspan='" + value_SelWaerId + "']").hide();
                    $("input[name='PSF_OpenLength'][value_ppwaerid='" + value_SelWaerId + "']").hide();
                    $("input[name='PSF_OpenWidth'][value_ppwaerid='" + value_SelWaerId + "']").hide();
                    $(".xialap[value_ppwaerid='" + value_SelWaerId + "']").show();
@@ -915,7 +928,7 @@
                    $("p[name='PSF_yinsezheng'][value_openwidthspan='" + value_SelWaerId + "']").show();
                    $("p[name='PSF_yinsebei'][value_openwidthspan='" + value_SelWaerId + "']").show();
                    $("p[name='PSF_yinshufangshi'][value_openwidthspan='" + value_SelWaerId + "']").show();
                    $("select[name='PSF_PrintedColorRear'][value_ppwaerid='" + value_SelWaerId + "']").show();
                    $("select[name='PSF_PrintedColorPositive'][value_selspec='" + value_SelWaerId + "']").show();
@@ -923,9 +936,46 @@
                    $("tr[name='PSF_PrintedPaperTdtr'][value_selspec='" + value_SelWaerId + "']").show();
                    $("tr[name='PSF_PrintedPaperTdtrtr'][value_selspec='" + value_SelWaerId + "']").show();
                    $("select[name='PSF_Typesettinghide'][value_ppwaerid='" + value_SelWaerId + "']").hide();
                    $(".lbCTPCount[value_ppwaerid='" + value_SelWaerId + "']").show();
                    $("input[name='CTPCount'][value_ppwaerid='" + value_SelWaerId + "']").show();
                }
                // else if () {
                //    //$("select[name='PSF_OpenSpecifications'][value_selspec='" + value_SelWaerId + "']").show();
                //    //$("p[name='PSF_OpenSpecificationsspan'][value_selspecspan='" + value_SelWaerId + "']").show();
                //    //$("p[name='PSF_OpenWidthspan'][value_openwidthspan='" + value_SelWaerId + "']").show();
                //    //$("input[name='PSF_OpenLength'][value_ppwaerid='" + value_SelWaerId + "']").show();
                //    //$("input[name='PSF_OpenWidth'][value_ppwaerid='" + value_SelWaerId + "']").show();
                //    //$(".xialap[value_ppwaerid='" + value_SelWaerId + "']").hide();
                   
                } else if ($(this).val().indexOf('数码') >= 0) {
                //    //$("select[name='PSF_Typesetting'][value_ppwaerid='" + value_SelWaerId + "']").hide();
                //    //$("p[name='PSF_yinse'][value_openwidthspan='" + value_SelWaerId + "']").hide();
                //    //$("p[name='PSF_yinsezheng'][value_openwidthspan='" + value_SelWaerId + "']").hide();
                //    //$("p[name='PSF_yinsebei'][value_openwidthspan='" + value_SelWaerId + "']").hide();
                //    //$("select[name='PSF_PrintedColorRear'][value_ppwaerid='" + value_SelWaerId + "']").hide();
                //    //$("select[name='PSF_PrintedColorPositive'][value_selspec='" + value_SelWaerId + "']").hide();
                //    //$("tr[name='PSF_PrintedPaperTd'][value_selspec='" + value_SelWaerId + "']").hide();
                //    //$("tr[name='PSF_PrintedPaperTdtr'][value_selspec='" + value_SelWaerId + "']").hide();
                //    //$("tr[name='PSF_PrintedPaperTdtrtr'][value_selspec='" + value_SelWaerId + "']").hide();
                //    //$("select[name='PSF_Typesettinghide'][value_ppwaerid='" + value_SelWaerId + "']").show();
                //    //$("select[name='PSF_PrintedColorPositive'][value_selspec='" + value_SelWaerId + "']").val("");
                //    //$("select[name='PSF_PrintedColorRear'][value_ppwaerid='" + value_SelWaerId + "']").val("");
                //}
                else if ($(this).val().indexOf('直接修切') >= 0 || $(this).val().indexOf('数码') >= 0) {
                    $("select[name='PSF_PrintedColorPositive'][value_selspec='" + value_SelWaerId + "']").val("单色");
                    $("select[name='PSF_PrintedColorRear'][value_ppwaerid='" + value_SelWaerId + "']").val("单色");
                    $("input[name='CTPSpecName'][value_ppwaerid='" + value_SelWaerId + "']").val("395*460");
                    $("select[name='PSF_OpenSpecifications'][value_selspec='" + value_SelWaerId + "']").val("4开");
                    $("select[name='PSF_OpenSpecifications'][value_selspec='" + value_SelWaerId + "']").change();
                    $("select[name='PSF_OpenSpecifications'][value_selspec='" + value_SelWaerId + "']").show();
                    $("p[name='PSF_OpenSpecificationsspan'][value_selspecspan='" + value_SelWaerId + "']").show();
                    $("p[name='PSF_OpenWidthspan'][value_openwidthspan='" + value_SelWaerId + "']").show();
@@ -933,26 +983,25 @@
                    $("input[name='PSF_OpenWidth'][value_ppwaerid='" + value_SelWaerId + "']").show();
                    $(".xialap[value_ppwaerid='" + value_SelWaerId + "']").hide();
                    $(".lbCTPCount[value_ppwaerid='" + value_SelWaerId + "']").hide();
                    $("input[name='CTPCount'][value_ppwaerid='" + value_SelWaerId + "']").hide();
                    $("select[name='PSF_Typesetting'][value_ppwaerid='" + value_SelWaerId + "']").hide();
                    $("p[name='PSF_yinse'][value_openwidthspan='" + value_SelWaerId + "']").hide();
                    $("p[name='PSF_yinsezheng'][value_openwidthspan='" + value_SelWaerId + "']").hide();
                    $("p[name='PSF_yinsebei'][value_openwidthspan='" + value_SelWaerId + "']").hide();
                    $("p[name='PSF_yinsebei'][value_openwidthspan='" + value_SelWaerId + "']").hide();
                    $("p[name='PSF_yinshufangshi'][value_openwidthspan='" + value_SelWaerId + "']").hide();
              
                  
                    $("select[name='PSF_PrintedColorRear'][value_ppwaerid='" + value_SelWaerId + "']").hide();
                    $("select[name='PSF_PrintedColorPositive'][value_selspec='" + value_SelWaerId + "']").hide();
                   
                    $("tr[name='PSF_PrintedPaperTd'][value_selspec='" + value_SelWaerId + "']").hide();
                    $("tr[name='PSF_PrintedPaperTdtr'][value_selspec='" + value_SelWaerId + "']").hide();
                    $("tr[name='PSF_PrintedPaperTdtrtr'][value_selspec='" + value_SelWaerId + "']").hide();
                    $("select[name='PSF_Typesettinghide'][value_ppwaerid='" + value_SelWaerId + "']").show();
                    $("select[name='PSF_PrintedColorPositive'][value_selspec='" + value_SelWaerId + "']").val("");
                    $("select[name='PSF_PrintedColorRear'][value_ppwaerid='" + value_SelWaerId + "']").val("");
                    $("tr[name='PSF_PrintedPaperTd'][value_selspec='" + value_SelWaerId + "']").show();
                    $("tr[name='PSF_PrintedPaperTdtr'][value_selspec='" + value_SelWaerId + "']").show();
                    $("tr[name='PSF_PrintedPaperTdtrtr'][value_selspec='" + value_SelWaerId + "']").show();
                    $("select[name='PSF_Typesettinghide'][value_ppwaerid='" + value_SelWaerId + "']").hide();
                }
                 
@@ -1024,37 +1073,186 @@
                var keyid = "<%=keyid %>";
                if (keyid != "") {
                    var value_SelWaerId = $(this).attr("value_selspec");
                    if ($(vv).val().indexOf('轮转') >= 0) {
                    if ($(vv).val().indexOf('六开') >= 0) {
                        $("select[name='PSF_OpenSpecifications'][value_selspec='" + value_SelWaerId + "']").show();
                        $("p[name='PSF_OpenSpecificationsspan'][value_selspecspan='" + value_SelWaerId + "']").show();
                        $("p[name='PSF_OpenWidthspan'][value_openwidthspan='" + value_SelWaerId + "']").show();
                        $("input[name='PSF_OpenLength'][value_ppwaerid='" + value_SelWaerId + "']").show();
                        $("input[name='PSF_OpenWidth'][value_ppwaerid='" + value_SelWaerId + "']").show();
                        $(".xialap[value_ppwaerid='" + value_SelWaerId + "']").hide();
                        $("select[name='PSF_Typesetting'][value_ppwaerid='" + value_SelWaerId + "']").show();
                        $("p[name='PSF_yinse'][value_openwidthspan='" + value_SelWaerId + "']").show();
                        $("p[name='PSF_yinsezheng'][value_openwidthspan='" + value_SelWaerId + "']").show();
                        $("p[name='PSF_yinsebei'][value_openwidthspan='" + value_SelWaerId + "']").show();
                        $("p[name='PSF_yinshufangshi'][value_openwidthspan='" + value_SelWaerId + "']").show();
                        $("select[name='PSF_PrintedColorRear'][value_ppwaerid='" + value_SelWaerId + "']").show();
                        $("select[name='PSF_PrintedColorPositive'][value_selspec='" + value_SelWaerId + "']").show();
                        $("tr[name='PSF_PrintedPaperTd'][value_selspec='" + value_SelWaerId + "']").show();
                        $("tr[name='PSF_PrintedPaperTdtr'][value_selspec='" + value_SelWaerId + "']").show();
                        $("tr[name='PSF_PrintedPaperTdtrtr'][value_selspec='" + value_SelWaerId + "']").show();
                        $("select[name='PSF_Typesettinghide'][value_ppwaerid='" + value_SelWaerId + "']").hide();
                        $(".lbCTPCount[value_ppwaerid='" + value_SelWaerId + "']").show();
                        $("input[name='CTPCount'][value_ppwaerid='" + value_SelWaerId + "']").show();
                    }
                    else if ($(vv).val().indexOf('四色') >= 0) {
                        $("select[name='PSF_OpenSpecifications'][value_selspec='" + value_SelWaerId + "']").show();
                        $("p[name='PSF_OpenSpecificationsspan'][value_selspecspan='" + value_SelWaerId + "']").show();
                        $("p[name='PSF_OpenWidthspan'][value_openwidthspan='" + value_SelWaerId + "']").show();
                        $("input[name='PSF_OpenLength'][value_ppwaerid='" + value_SelWaerId + "']").show();
                        $("input[name='PSF_OpenWidth'][value_ppwaerid='" + value_SelWaerId + "']").show();
                        $(".xialap[value_ppwaerid='" + value_SelWaerId + "']").hide();
                        $("select[name='PSF_Typesetting'][value_ppwaerid='" + value_SelWaerId + "']").show();
                        $("p[name='PSF_yinse'][value_openwidthspan='" + value_SelWaerId + "']").show();
                        $("p[name='PSF_yinsezheng'][value_openwidthspan='" + value_SelWaerId + "']").show();
                        $("p[name='PSF_yinsebei'][value_openwidthspan='" + value_SelWaerId + "']").show();
                        $("p[name='PSF_yinshufangshi'][value_openwidthspan='" + value_SelWaerId + "']").show();
                        $("select[name='PSF_PrintedColorRear'][value_ppwaerid='" + value_SelWaerId + "']").show();
                        $("select[name='PSF_PrintedColorPositive'][value_selspec='" + value_SelWaerId + "']").show();
                        $("tr[name='PSF_PrintedPaperTd'][value_selspec='" + value_SelWaerId + "']").show();
                        $("tr[name='PSF_PrintedPaperTdtr'][value_selspec='" + value_SelWaerId + "']").show();
                        $("tr[name='PSF_PrintedPaperTdtrtr'][value_selspec='" + value_SelWaerId + "']").show();
                        $("select[name='PSF_Typesettinghide'][value_ppwaerid='" + value_SelWaerId + "']").hide();
                        $(".lbCTPCount[value_ppwaerid='" + value_SelWaerId + "']").show();
                        $("input[name='CTPCount'][value_ppwaerid='" + value_SelWaerId + "']").show();
                    }
                    else if ($(vv).val().indexOf('八色') >= 0) {
                        $("select[name='PSF_OpenSpecifications'][value_selspec='" + value_SelWaerId + "']").show();
                        $("p[name='PSF_OpenSpecificationsspan'][value_selspecspan='" + value_SelWaerId + "']").show();
                        $("p[name='PSF_OpenWidthspan'][value_openwidthspan='" + value_SelWaerId + "']").show();
                        $("input[name='PSF_OpenLength'][value_ppwaerid='" + value_SelWaerId + "']").show();
                        $("input[name='PSF_OpenWidth'][value_ppwaerid='" + value_SelWaerId + "']").show();
                        $(".xialap[value_ppwaerid='" + value_SelWaerId + "']").hide();
                        $("select[name='PSF_Typesetting'][value_ppwaerid='" + value_SelWaerId + "']").show();
                        $("p[name='PSF_yinse'][value_openwidthspan='" + value_SelWaerId + "']").show();
                        $("p[name='PSF_yinsezheng'][value_openwidthspan='" + value_SelWaerId + "']").show();
                        $("p[name='PSF_yinsebei'][value_openwidthspan='" + value_SelWaerId + "']").show();
                        $("p[name='PSF_yinshufangshi'][value_openwidthspan='" + value_SelWaerId + "']").show();
                        $("select[name='PSF_PrintedColorRear'][value_ppwaerid='" + value_SelWaerId + "']").show();
                        $("select[name='PSF_PrintedColorPositive'][value_selspec='" + value_SelWaerId + "']").show();
                        $("tr[name='PSF_PrintedPaperTd'][value_selspec='" + value_SelWaerId + "']").show();
                        $("tr[name='PSF_PrintedPaperTdtr'][value_selspec='" + value_SelWaerId + "']").show();
                        $("tr[name='PSF_PrintedPaperTdtrtr'][value_selspec='" + value_SelWaerId + "']").show();
                        $("select[name='PSF_Typesettinghide'][value_ppwaerid='" + value_SelWaerId + "']").hide();
                        $(".lbCTPCount[value_ppwaerid='" + value_SelWaerId + "']").show();
                        $("input[name='CTPCount'][value_ppwaerid='" + value_SelWaerId + "']").show();
                    }
                    else if ($(vv).val().indexOf('黑白') >= 0) {
                        $("select[name='PSF_OpenSpecifications'][value_selspec='" + value_SelWaerId + "']").show();
                        $("p[name='PSF_OpenSpecificationsspan'][value_selspecspan='" + value_SelWaerId + "']").show();
                        $("p[name='PSF_OpenWidthspan'][value_openwidthspan='" + value_SelWaerId + "']").show();
                        $("input[name='PSF_OpenLength'][value_ppwaerid='" + value_SelWaerId + "']").show();
                        $("input[name='PSF_OpenWidth'][value_ppwaerid='" + value_SelWaerId + "']").hide();
                        $(".xialap[value_ppwaerid='" + value_SelWaerId + "']").show();
                        $("select[name='PSF_Typesetting'][value_ppwaerid='" + value_SelWaerId + "']").show();
                        $("p[name='PSF_yinse'][value_openwidthspan='" + value_SelWaerId + "']").show();
                        $("p[name='PSF_yinsezheng'][value_openwidthspan='" + value_SelWaerId + "']").show();
                        $("p[name='PSF_yinsebei'][value_openwidthspan='" + value_SelWaerId + "']").show();
                        $("p[name='PSF_yinshufangshi'][value_openwidthspan='" + value_SelWaerId + "']").show();
                        $("select[name='PSF_PrintedColorRear'][value_ppwaerid='" + value_SelWaerId + "']").show();
                        $("select[name='PSF_PrintedColorPositive'][value_selspec='" + value_SelWaerId + "']").show();
                        $("tr[name='PSF_PrintedPaperTd'][value_selspec='" + value_SelWaerId + "']").show();
                        $("tr[name='PSF_PrintedPaperTdtr'][value_selspec='" + value_SelWaerId + "']").show();
                        $("tr[name='PSF_PrintedPaperTdtrtr'][value_selspec='" + value_SelWaerId + "']").show();
                        $("select[name='PSF_Typesettinghide'][value_ppwaerid='" + value_SelWaerId + "']").hide();
                        $(".lbCTPCount[value_ppwaerid='" + value_SelWaerId + "']").show();
                        $("input[name='CTPCount'][value_ppwaerid='" + value_SelWaerId + "']").show();
                        $("input[name='PSF_OpenWidthName'][value_ppwaerid='" + value_SelWaerId + "']").val("755");
                    }
                    else if ($(vv).val().indexOf('轮转') >= 0) {
                        $("select[name='PSF_OpenSpecifications'][value_selspec='" + value_SelWaerId + "']").hide();
                        $(".xialap[value_ppwaerid='" + value_SelWaerId + "']").show();
                        $("input[name='PSF_OpenWidthName'][value_ppwaerid='" + value_SelWaerId + "']").val("755");
                        $("p[name='PSF_OpenSpecificationsspan'][value_selspecspan='" + value_SelWaerId + "']").hide();
                        $("p[name='PSF_OpenWidthspan'][value_openwidthspan='" + value_SelWaerId + "']").hide();
                        $("input[name='PSF_OpenLength'][value_ppwaerid='" + value_SelWaerId + "']").hide();
                        $("input[name='PSF_OpenWidth'][value_ppwaerid='" + value_SelWaerId + "']").hide();
                        $(".xialap[value_ppwaerid='" + value_SelWaerId + "']").show();
                    } else if ($(vv).val().indexOf('数码') >= 0)
                    {
                        
                        $("select[name='PSF_Typesetting'][value_ppwaerid='" + value_SelWaerId + "']").show();
                        $("p[name='PSF_yinse'][value_openwidthspan='" + value_SelWaerId + "']").show();
                        $("p[name='PSF_yinsezheng'][value_openwidthspan='" + value_SelWaerId + "']").show();
                        $("p[name='PSF_yinsebei'][value_openwidthspan='" + value_SelWaerId + "']").show();
                        $("p[name='PSF_yinshufangshi'][value_openwidthspan='" + value_SelWaerId + "']").show();
                        $("select[name='PSF_PrintedColorRear'][value_ppwaerid='" + value_SelWaerId + "']").show();
                        $("select[name='PSF_PrintedColorPositive'][value_selspec='" + value_SelWaerId + "']").show();
                        $("tr[name='PSF_PrintedPaperTd'][value_selspec='" + value_SelWaerId + "']").show();
                        $("tr[name='PSF_PrintedPaperTdtr'][value_selspec='" + value_SelWaerId + "']").show();
                        $("tr[name='PSF_PrintedPaperTdtrtr'][value_selspec='" + value_SelWaerId + "']").show();
                        $("select[name='PSF_Typesettinghide'][value_ppwaerid='" + value_SelWaerId + "']").hide();
                        $(".lbCTPCount[value_ppwaerid='" + value_SelWaerId + "']").show();
                        $("input[name='CTPCount'][value_ppwaerid='" + value_SelWaerId + "']").show();
                    }
                    else if ($(vv).val().indexOf('直接修切') >= 0 || $(vv).val().indexOf('数码') >= 0) {
                        $("select[name='PSF_OpenSpecifications'][value_selspec='" + value_SelWaerId + "']").show();
                        $("p[name='PSF_OpenSpecificationsspan'][value_selspecspan='" + value_SelWaerId + "']").show();
                        $("p[name='PSF_OpenWidthspan'][value_openwidthspan='" + value_SelWaerId + "']").show();
                        $("input[name='PSF_OpenLength'][value_ppwaerid='" + value_SelWaerId + "']").show();
                        $("input[name='PSF_OpenWidth'][value_ppwaerid='" + value_SelWaerId + "']").show();
                        $(".xialap[value_ppwaerid='" + value_SelWaerId + "']").hide();
                        $(".lbCTPCount[value_ppwaerid='" + value_SelWaerId + "']").hide();
                        $("input[name='CTPCount'][value_ppwaerid='" + value_SelWaerId + "']").hide();
                        $("select[name='PSF_Typesetting'][value_ppwaerid='" + value_SelWaerId + "']").hide();
                        $("p[name='PSF_yinse'][value_openwidthspan='" + value_SelWaerId + "']").hide();
                        $("p[name='PSF_yinsezheng'][value_openwidthspan='" + value_SelWaerId + "']").hide();
                        $("p[name='PSF_yinsebei'][value_openwidthspan='" + value_SelWaerId + "']").hide();
                        $("p[name='PSF_yinsebei'][value_openwidthspan='" + value_SelWaerId + "']").hide();
                        $("p[name='PSF_yinshufangshi'][value_openwidthspan='" + value_SelWaerId + "']").hide();
                        $("select[name='PSF_PrintedColorRear'][value_ppwaerid='" + value_SelWaerId + "']").hide();
                        $("select[name='PSF_PrintedColorPositive'][value_selspec='" + value_SelWaerId + "']").hide();
                        $("tr[name='PSF_PrintedPaperTd'][value_selspec='" + value_SelWaerId + "']").hide();
                        $("tr[name='PSF_PrintedPaperTdtr'][value_selspec='" + value_SelWaerId + "']").hide();
                        $("tr[name='PSF_PrintedPaperTdtrtr'][value_selspec='" + value_SelWaerId + "']").hide();
                        $("select[name='PSF_Typesettinghide'][value_ppwaerid='" + value_SelWaerId + "']").show();
                        $("tr[name='PSF_PrintedPaperTd'][value_selspec='" + value_SelWaerId + "']").show();
                        $("tr[name='PSF_PrintedPaperTdtr'][value_selspec='" + value_SelWaerId + "']").show();
                        $("tr[name='PSF_PrintedPaperTdtrtr'][value_selspec='" + value_SelWaerId + "']").show();
                        $("select[name='PSF_Typesettinghide'][value_ppwaerid='" + value_SelWaerId + "']").hide();
               
                    }
                 } 
             });
CY_ECommercePlatform/CY.WebForm/Pages/business/AgSpecialOrderList.aspx
@@ -40,7 +40,7 @@
                    <td class="ali03 w60px">
                        下单时间:
                    </td>
                    <td style="width: 215px;">
                    <td style="width: 265px;">
                        <input id="txtBeginDate" type="text" runat="server" class='date w100px' maxlength='10' />-<input id="txtEndDate" type="text" runat="server" class='date w100px' maxlength='10' />
                    </td>
                    <td class="ali03 w80px ">
CY_ECommercePlatform/CY.WebForm/Pages/business/Caigoufukuanshenqing.aspx
New file
@@ -0,0 +1,158 @@
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Caigoufukuanshenqing.aspx.cs" Inherits="CY.WebForm.Pages.business.Caigoufukuanshenqing" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head runat="server">
        <uc:CMSHead ID="CMSHead1" runat="server" />
    </head>
    <body style="padding:10px">
        <form runat="server">
            <table class="tableStyle" >
                 <tr>
                    <td class="ali03">收款单位:</td>
                    <td> <%--<select keepdefaultstyle='true' id='selSuppliers' runat="server"  datatextfield='Name' datavaluefield='Keyid'  onchange='custormerChange(this)' class='Sreq' sign="" selinputhtml="True"  style=" width:183px;"  >
                        </select>--%>
                        <input id='txtSupplierName' runat="server" maxlength='50' placeholder="请输入收款单位"  style="width:200px;" readonly="readonly" />
                        <input type="hidden" id='selSuppliersss' runat="server" />
                    </td>
                </tr>
                 <tr>
                    <td class="ali03">金额:</td>
                    <td> <input id='txtZengjianmoney' runat="server" maxlength='18' onblur="validateAmount(event)" placeholder="请输入金额"   readonly="readonly"  /></td>
                </tr>
                 <tr>
                    <td class="ali03">户名:</td>
                    <td> <input id='txtHuming' runat="server" maxlength='50' placeholder="请输入户名"  style="width:200px;" /></td>
                </tr>
                 <tr>
                    <td class="ali03">开户行:</td>
                    <td> <input id='txtBank' runat="server" maxlength='50' placeholder="请输入开户行"  style="width:200px;" /></td>
                </tr>
                  <tr>
                    <td class="ali03">账号:</td>
                    <td> <input id='txtAccountID' runat="server" maxlength='50'  placeholder="请输入账号" style="width:200px;" /></td>
                </tr>
                 <tr style="display:none;" >
                    <td class="ali03">订单:</td>
                    <td> <span id="ordernos" runat="server" ></span></td>
                </tr>
                  <tr style="display:none;">
                    <td class="ali03">订单金额:</td>
                    <td> <span id="ordernjine" runat="server" ></span></td>
                </tr>
                <tr>
                    <td colspan="2"></td>
                </tr>
                 <tr id="trbtn" runat="server">
                    <td class="ali02" colspan="2">
                        <asp:Button ID="btn_Submit" Text="提交申请" runat="server" OnClick="btn_Submit_form" />
                        <span style="margin-left:10px"></span>
                        <input type="button" value="取消 " onclick="top.Dialog.close()" />
                    </td>
                </tr>
            </table>
        </form>
    </body>
    <script type="text/javascript" language="javascript">
        function custormerChange(sel) {
            window.submitUrl = '/Pages/business/Caigoufukuanshenqing.aspx';
            CallServer({ Target: "GetSuplier", id: sel.value }, function (data, textStatus) {
                var jobj = false;
                try {
                    jobj = eval('[' + data + ']')[0];
                } catch (ex) {
                    global.DealDataException(ex); return;
                }
                if (jobj != '-2') {
                    document.getElementById('txtBank').value = jobj.Bank;
                    document.getElementById('txtAccountID').value = jobj.AccountID;
                    if (jobj.Huming == "") {
                        document.getElementById('txtHuming').value = jobj.Name;
                    } else {
                        document.getElementById('txtHuming').value = jobj.Huming;
                    }
                } else {
                    document.getElementById('txtBank').value = "";
                    document.getElementById('txtAccountID').value = "";
                    document.getElementById('txtHuming').value = "";
                }
            });
        }
        ///新增客户
        function showCustomer() {
            top.Dialog.open({ URL: "/Pages/procurement/SuppliersEdit.aspx?Keyid='0'&&flasss=ddfffff", Title: "新增供应商", Width: 950, Height: 650 });
        }
        //为Select新增过滤功能
        function SelectAddSearch() {
            $("select[SelInputHtml='True']").each(function (i, v) {
                $(this).unbind("blur");
                var old = $(this).html();
                var oldObject = $(this).clone();
                var sign = "selectS" + i;
                $(v).attr("sign", sign);
                var inputClass = "input_" + sign;
                var html = "<span style='margin-left:10px'>过滤:</span><input type='text' class='" + inputClass + "' style='width:80px;height:18px;line-height:18px;'/><span onclick='showCustomer()' style=\"padding-left:10px;\" class=\"a_under\">新增供应商</span>";
                $(v).after(html);
                $("." + inputClass).blur(function () {
                    var nowval = $(this).val().trim();
                    var output = "";
                    if (nowval == "" || nowval == null) {
                        output = old;
                    } else {
                        output += "<option value=''>请选择</option>";
                        var valueArr = new Array();
                        oldObject.find("option").each(function (ii, vv) {
                            var value = $.trim($(vv).attr("value"));
                            var text = $.trim($(vv).text());
                            if (text.indexOf(nowval) >= 0)
                                valueArr.push(value + "|||" + text);
                        });
                        for (var ss in valueArr) {
                            var s = valueArr[ss];
                            if (s.split("|||").length == 2) {
                                var value1 = s.split("|||")[0];
                                var text1 = s.split("|||")[1];
                                output += "<option value='" + value1 + "'>" + text1 + "</option>";
                            }
                        }
                    }
                    $(v).html(output);
                });
            });
        }
        $(function () {
            SelectAddSearch();
        });
        function validateAmount(event) {
            var input = event.target;
            var value = input.value;
            var regex = /^\d+(\.\d+)?$/;
            if (!regex.test(value)) {
                // 输入无效,重置值并将焦点设回文本框
                input.value = '0';
                input.focus();
                alert('请输入有效的正负金额,例如  45.67');
            }
        }
    </script>
</html>
CY_ECommercePlatform/CY.WebForm/Pages/business/Caigoufukuanshenqing.aspx.cs
New file
@@ -0,0 +1,314 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using CY.BLL.EC;
using CY.Model;
using CY.Infrastructure.Common;
using CY.BLL.Integrity;
using CY.BLL;
using System.Threading.Tasks;
using System.Transactions;
using CY.BLL.OA;
using CY.Infrastructure.Query;
namespace CY.WebForm.Pages.business
{
    //吴辉
    //卖家评价
    public partial class Caigoufukuanshenqing : BasePage
    {
        OA_FukuanshenqingBLL _oA_FukuanshenqingBLL = null;
        OA_CorporateClientsBLL _oA_CorporateClientsBLL = null;
        OA_StaffBLL bll_OA_StaffBLL = null;
        OA_WorkPlanBll oA_WorkReminderBll = null;
        OA_SuppliersBLL _OA_SuppliersBLL = null;
        OA_ProcurementBLL _OA_ProcurementBLL = null;
        //初始化
        public Caigoufukuanshenqing()
        {
            _oA_CorporateClientsBLL = new OA_CorporateClientsBLL();
            _oA_FukuanshenqingBLL = new OA_FukuanshenqingBLL();
            bll_OA_StaffBLL = new OA_StaffBLL();
            oA_WorkReminderBll = new OA_WorkPlanBll();
            _OA_SuppliersBLL = new OA_SuppliersBLL();
            _OA_ProcurementBLL = new OA_ProcurementBLL();
        }
        //页面加载
        protected void Page_Load(object sender, EventArgs e)
        {
            try
            {
                switch (Request["Target"])
                {
                    case "GetSuplier":
                        LoadCommunication();
                        break;
                    default:
                        if (!IsPostBack)
                        {
                            InitData();
                        }
                        return;
                }
            }
            catch (Exception ex)
            {
                PAGEHandleException(ex);
                Response.Clear();
                //Response.Write("-1");
                Response.Write(ex.Message);
            }
            Response.End();
        }
        //绑定数据
        public void InitData()
        {
            string orderIdStr = Request["id"];
            string orderNoStr = Request["orderno"];
            if (!string.IsNullOrEmpty(orderIdStr))
            {
                this.ordernos.InnerText = orderNoStr.Trim(',');
                ////供应商
                //this.selSuppliers.DataSource = _OA_SuppliersBLL.getSupplierTable(CurrentUser.MemberId);
                //this.selSuppliers.DataBind();
                //this.selSuppliers.Items.Insert(0, new ListItem("全部", ""));
                decimal total = 0;
                orderIdStr = orderIdStr.Trim(',');
                string[] idsArray = orderIdStr.Split(',');
                if (idsArray != null && idsArray.Length > 0)
                {
                    Pagination pa = new Pagination();
                    pa.PageSize = 1000;
                    pa.PageIndex = 1;
                    var models = _OA_ProcurementBLL.getModelList(pa, CurrentUser.MemberId,orderIdStr).ToList();
                    if (models.Count > 0)
                    {
                        var sss = _OA_SuppliersBLL.getSingleSupplier(models[0].SuppliersId.Value.ToString());
                        if (sss!=null)
                        {
                            this.txtSupplierName.Value = sss.Name;
                            this.selSuppliersss.Value = sss.Keyid.ToString();
                            this.txtHuming.Value = sss.Huming;
                            this.txtBank.Value = sss.Bank;
                            this.txtAccountID.Value = sss.AccountID;
                        }
                    }
                    total = models.Sum(x => x.AllMoney) ?? 0;
                    ordernjine.InnerText = total.ToString("0.00");
                    this.txtZengjianmoney.Value = total.ToString("0.00");
                    //khname.InnerText = name;
                    //Dingdanshu.InnerText = orderIdStr.Split(',').Length +"个";
                }
                else
                {
                    JavaScript.CloseDIVOpener(this);
                }
            }
        }
        /// <summary>
        /// 加载供应商
        /// </summary>
        private void LoadCommunication()
        {
            Response.Clear();
            string id = Request["id"];
            if (string.IsNullOrEmpty(id))
            {
                Response.Write("-2");
                return;
            }
            var oA_Suppliers = _OA_SuppliersBLL.getSingleSupplier(id);
            Response.Write(null == oA_Suppliers ? "" : JsonHelper.GetJsonStringByObject(oA_Suppliers));
        }
        //提交事件
        protected void btn_Submit_form(object sender, EventArgs e)
        {
            AcceptAll3();
        }
        /// <summary>
        /// 批量开票申请
        /// </summary>
        public void AcceptAll3()
        {
            //if (string.IsNullOrEmpty(this.selSuppliers.Value))
            //{
            //    JavaScript.MessageBox("请选择收款单位!", this);
            //    return;
            //}
            if (this.txtZengjianmoney.Value.ToDecimal2()<=0)
            {
                JavaScript.MessageBox("请输入申请金额!", this);
                return;
            }
            string ids = Request["id"].Trim(',');
            string orderNoStr = Request["orderno"].Trim(',');
            string[] idsArray = ids.Split(',');
            if (idsArray != null && idsArray.Length > 0)
            {
                using (TransactionScope scope = new TransactionScope(TransactionScopeOption.Required,
           new TransactionOptions
           {
               IsolationLevel = IsolationLevel.ReadCommitted,
               Timeout = TransactionManager.MaximumTimeout
           }
           )
                    )
                {
                    try
                    {
                        bool result = false;
                        OA_Fukuanshenqing oA_Fukuanshenqing = new OA_Fukuanshenqing();
                        oA_Fukuanshenqing.FirmId = CurrentUser.MemberId;
                        oA_Fukuanshenqing.SupplierId = this.selSuppliersss.Value;
                        oA_Fukuanshenqing.Fukuanshenqingstatus = 0;
                        oA_Fukuanshenqing.ApprovalStatus = 0;
                        oA_Fukuanshenqing.Fukuanmoney = this.txtZengjianmoney.Value.ToDecimal2();
                        oA_Fukuanshenqing.Bank = this.txtBank.Value;
                        oA_Fukuanshenqing.Huming = this.txtHuming.Value;
                        oA_Fukuanshenqing.AccountID = this.txtAccountID.Value;
                        oA_Fukuanshenqing.Yishoumoney = 0;
                        oA_Fukuanshenqing.Youwufapiao = 0;
                        oA_Fukuanshenqing.Fukuanyongtu = "采购付款";
                        oA_Fukuanshenqing.FukuanStatus = 1 ;
                        oA_Fukuanshenqing.remark = "";
                        oA_Fukuanshenqing.DindanId = ids;
                        oA_Fukuanshenqing.Creater = CurrentUser.ShortName;
                        oA_Fukuanshenqing.CreateTime = DateTime.Now;
                        oA_Fukuanshenqing.Updater = CurrentUser.ShortName;
                        oA_Fukuanshenqing.LastUpdateTime = DateTime.Now;
                        //var oA_Suppliers = _OA_SuppliersBLL.getSingleSupplier(this.selSuppliers.Value);
                        //var _SupplierName = "";
                        //if (oA_Suppliers != null)
                        //{
                        //    _SupplierName = oA_Suppliers.Name;
                        //}
                        var _SupplierName = this.txtSupplierName.Value;
                        oA_Fukuanshenqing.SupplierName = _SupplierName;
                        var id = _oA_FukuanshenqingBLL.InsertModel(oA_Fukuanshenqing);
                        //需要添加审批信息
                        DateTime nowTime = DateTime.Now;
                            OA_WorkPlan m_OA_WorkPlan = new OA_WorkPlan();
                            m_OA_WorkPlan.ApprovalContent = "";
                            m_OA_WorkPlan.ApprovalStaffId = Guid.Empty;
                            m_OA_WorkPlan.ApprovalStaffName = "";
                            m_OA_WorkPlan.ApprovalStatus = 0;
                            m_OA_WorkPlan.ApprovalTime = nowTime;
                            m_OA_WorkPlan.EvaluationContent = "";
                            m_OA_WorkPlan.EvaluationStaff = "";
                            m_OA_WorkPlan.EvaluationStaffId = Guid.Empty;
                            m_OA_WorkPlan.EvaluationStatus = 0;
                            m_OA_WorkPlan.EvaluationTime = nowTime;
                            m_OA_WorkPlan.RewardContent = "";
                            m_OA_WorkPlan.RewardMoney = 0;
                            m_OA_WorkPlan.RewardResult = "";
                            m_OA_WorkPlan.RewardType = 0;
                            m_OA_WorkPlan.PlanStartTime = nowTime;
                            m_OA_WorkPlan.PlanStatus = 1;
                            m_OA_WorkPlan.SentStaffId = CurrentUser.TrueMemberId;
                            m_OA_WorkPlan.MemberId = CurrentUser.MemberId;
                            OA_Staff m_OA_Staff = bll_OA_StaffBLL.GetModelByMemberId(CurrentUser.TrueMemberId);
                            if (m_OA_Staff != null)
                                m_OA_WorkPlan.DepartId = m_OA_Staff.DepartmentId;
                            else
                                m_OA_WorkPlan.DepartId = 0;
                            m_OA_WorkPlan.PlanPeople = CurrentUser.TrueName;
                            m_OA_WorkPlan.ReciveStaffId = CurrentUser.TrueMemberId;
                            m_OA_WorkPlan.Operator = CurrentUser.ShortName;
                            m_OA_WorkPlan.PlanComplany = id.ToString();
                            m_OA_WorkPlan.PlanContent = orderNoStr + " 采购付款申请。订单金额:"+ this.ordernjine.InnerText + ", 收款单位:"+ _SupplierName + ", 户名:" + oA_Fukuanshenqing.Huming;
                            m_OA_WorkPlan.PlanDataType = 16;
                            m_OA_WorkPlan.PlanMoney = oA_Fukuanshenqing.Fukuanmoney;
                            m_OA_WorkPlan.PlanRemark = oA_Fukuanshenqing.remark;
                            m_OA_WorkPlan.PlanRunTime = DateTime.Now;
                            m_OA_WorkPlan.PlanTitle = orderNoStr + " 采购付款申请";
                            m_OA_WorkPlan.PlanType = 3;
                            m_OA_WorkPlan.LastUpdateTime = nowTime;
                        result = oA_WorkReminderBll.InsertModel(m_OA_WorkPlan);
                        if (!result)
                        {
                            return;
                        }
                        //}
                        scope.Complete();
                    }
                    catch (Exception ex)
                    {
                        // 回滚事务
                    }
                    finally
                    {
                        // 释放资源
                        scope.Dispose();
                    }
                }
                //JavaScript.MessageBox("提交成功", this);
                //操作成功
                JavaScript.MessageBoxsssss("提交成功", this, true, true);
            }
        }
    }
}
CY_ECommercePlatform/CY.WebForm/Pages/business/Caigoufukuanshenqing.aspx.designer.cs
New file
@@ -0,0 +1,116 @@
//------------------------------------------------------------------------------
// <自动生成>
//     此代码由工具生成。
//
//     对此文件的更改可能导致不正确的行为,如果
//     重新生成代码,则所做更改将丢失。
// </自动生成>
//------------------------------------------------------------------------------
namespace CY.WebForm.Pages.business
{
    public partial class Caigoufukuanshenqing
    {
        /// <summary>
        /// CMSHead1 控件。
        /// </summary>
        /// <remarks>
        /// 自动生成的字段。
        /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
        /// </remarks>
        protected global::CY.WebForm.Pages.common.CMSHead CMSHead1;
        /// <summary>
        /// txtSupplierName 控件。
        /// </summary>
        /// <remarks>
        /// 自动生成的字段。
        /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
        /// </remarks>
        protected global::System.Web.UI.HtmlControls.HtmlInputText txtSupplierName;
        /// <summary>
        /// selSuppliersss 控件。
        /// </summary>
        /// <remarks>
        /// 自动生成的字段。
        /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
        /// </remarks>
        protected global::System.Web.UI.HtmlControls.HtmlInputHidden selSuppliersss;
        /// <summary>
        /// txtZengjianmoney 控件。
        /// </summary>
        /// <remarks>
        /// 自动生成的字段。
        /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
        /// </remarks>
        protected global::System.Web.UI.HtmlControls.HtmlInputText txtZengjianmoney;
        /// <summary>
        /// txtHuming 控件。
        /// </summary>
        /// <remarks>
        /// 自动生成的字段。
        /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
        /// </remarks>
        protected global::System.Web.UI.HtmlControls.HtmlInputText txtHuming;
        /// <summary>
        /// txtBank 控件。
        /// </summary>
        /// <remarks>
        /// 自动生成的字段。
        /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
        /// </remarks>
        protected global::System.Web.UI.HtmlControls.HtmlInputText txtBank;
        /// <summary>
        /// txtAccountID 控件。
        /// </summary>
        /// <remarks>
        /// 自动生成的字段。
        /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
        /// </remarks>
        protected global::System.Web.UI.HtmlControls.HtmlInputText txtAccountID;
        /// <summary>
        /// ordernos 控件。
        /// </summary>
        /// <remarks>
        /// 自动生成的字段。
        /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
        /// </remarks>
        protected global::System.Web.UI.HtmlControls.HtmlGenericControl ordernos;
        /// <summary>
        /// ordernjine 控件。
        /// </summary>
        /// <remarks>
        /// 自动生成的字段。
        /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
        /// </remarks>
        protected global::System.Web.UI.HtmlControls.HtmlGenericControl ordernjine;
        /// <summary>
        /// trbtn 控件。
        /// </summary>
        /// <remarks>
        /// 自动生成的字段。
        /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
        /// </remarks>
        protected global::System.Web.UI.HtmlControls.HtmlTableRow trbtn;
        /// <summary>
        /// btn_Submit 控件。
        /// </summary>
        /// <remarks>
        /// 自动生成的字段。
        /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
        /// </remarks>
        protected global::System.Web.UI.WebControls.Button btn_Submit;
    }
}
CY_ECommercePlatform/CY.WebForm/Pages/business/InvoicingConfirm.aspx
@@ -436,12 +436,12 @@
                                </td>
                                 <td>
                                      
                                         <a href='javascript:void(0)' title='付款登记' class='a_under' onclick='ViewFukuan("<%#Eval("Keyid")%>")'> 付款登记    </a>  &nbsp;&nbsp;&nbsp;
                                      <a href='javascript:void(0)' title='催款' class='a_under' onclick='ViewCuishou("<%#Eval("Keyid")%>")'> 催款    </a> &nbsp;&nbsp;&nbsp;
                                     <a href='javascript:void(0)' title='收款' class='a_under' onclick='ViewShoukuan("<%#Eval("Keyid")%>","<%#Eval("Shenqingleixing")%>")'> 收款    </a> &nbsp;&nbsp;&nbsp;
                                       <a href='javascript:void(0)' title='收款' class='a_under' onclick='ViewShouru("<%#Eval("Keyid")%>","<%#Eval("Shenqingleixing")%>")'> 收入确认    </a> &nbsp;&nbsp;&nbsp;
                                         <a href='javascript:void(0)' menu_member_case_id="case_fukuandengji" menu_member_case_name="付款登记" title='付款登记' class='a_under' onclick='ViewFukuan("<%#Eval("Keyid")%>")'> 付款登记    </a>  &nbsp;&nbsp;&nbsp;
                                      <a href='javascript:void(0)' menu_member_case_id="case_cuikuan" menu_member_case_name="催款" title='催款' class='a_under' onclick='ViewCuishou("<%#Eval("Keyid")%>")'> 催款    </a> &nbsp;&nbsp;&nbsp;
                                     <a href='javascript:void(0)' menu_member_case_id="case_shoukuan" menu_member_case_name="收款" title='收款' class='a_under' onclick='ViewShoukuan("<%#Eval("Keyid")%>","<%#Eval("Shenqingleixing")%>")'> 收款    </a> &nbsp;&nbsp;&nbsp;
                                       <a href='javascript:void(0)' menu_member_case_id="case_shouruqueren" menu_member_case_name="收入确认" title='收入确认' class='a_under' onclick='ViewShouru("<%#Eval("Keyid")%>","<%#Eval("Shenqingleixing")%>")'> 收入确认    </a> &nbsp;&nbsp;&nbsp;
                                      <a href='javascript:void(0)' title='撤回' class='a_under' onclick='ToAccept("<%#Eval("Keyid")%>")'> 撤回    </a>
                                      <a href='javascript:void(0)'menu_member_case_id="case_chehui" menu_member_case_name="撤回" title='撤回' class='a_under' onclick='ToAccept("<%#Eval("Keyid")%>")'> 撤回    </a>
                                </td>
                                
                            </tr>
CY_ECommercePlatform/CY.WebForm/Pages/business/OrderListBatchKaipiao.aspx
@@ -335,10 +335,10 @@
                            <a href="javascript:;"   onclick="ToBatchRemove();"><span class="icon_remove">去除订单</span></a>
                            <div class="box_tool_line">
                            </div>
                            <a href="javascript:;"   onclick="ToBatchInvoicingList();"><span class="icon_edit">开票申请</span></a>
                            <a href="javascript:;" menu_member_case_id="case_kaipiaoshenqing" menu_member_case_name="开票申请"   onclick="ToBatchInvoicingList();"><span class="icon_edit">开票申请</span></a>
                            <div class="box_tool_line">
                            </div>
                             <a href="javascript:;"   onclick="ToInvoicingkehu();"><span class="icon_edit">预付款开票</span></a>
                             <a href="javascript:;"  menu_member_case_id="case_yufukuanshenqing" menu_member_case_name="预付款开票"   onclick="ToInvoicingkehu();"><span class="icon_edit">预付款开票</span></a>
                            <div class="box_tool_line">
                            </div>
                           <%-- <a href="javascript:;" menu_member_case_id="case_ToBatchPayList" menu_member_case_name="批量收款" onclick="ToBatchPayList();"><span class="icon_edit">批量收款</span></a>
CY_ECommercePlatform/CY.WebForm/Pages/business/Waixiefukuanfukuan.aspx
@@ -92,7 +92,14 @@
        function ViewShoukuan(personId, yongtu, supplierId) {
            if (yongtu == "外协加工费" && supplierId.length > 10) {
                top.Dialog.open({ URL: "/Pages/financial/NewWaixieExpenses.aspx?id=" + personId, Title: "外协付款", Width: 600, Height: 800 });
            } else {
            }
            else if (yongtu == "采购付款") {
                top.Dialog.open({ URL: "/Pages/financial/CaigouPayEdit.aspx?id=" + personId, Title: "采购付款", Width: 600, Height: 800 });
            }
            else if (yongtu == "其他付款") {
                top.Dialog.open({ URL: "/Pages/financial/WaixieExpenses.aspx?id=" + personId, Title: "其他付款", Width: 600, Height: 800 });
            }
            else {
                top.Dialog.open({ URL: "/Pages/financial/WaixieExpenses.aspx?id=" + personId, Title: "外协付款", Width: 600, Height: 800 });
            }
         
@@ -121,11 +128,13 @@
            
            if (yongtu == "外协加工费") {
                if (supplierId.length > 10) {
                    top.Dialog.open({ URL: "/Pages/business/WaixieOrderPrint.aspx?Keyid=&SellerOrderId=" + SellerOrderId, Title: "查看订单", Width: 1080, Height: 650 });
                    top.Dialog.open({ URL: "/Pages/business/WaixieOrderPrint.aspx?Keyid=&SellerOrderId=" + SellerOrderId, Title: "查看外协订单", Width: 1080, Height: 650 });
                } else {
                    top.Dialog.open({ URL: "/Pages/business/InvoicingOrderPrint.aspx?Keyid=&SellerOrderId=" + SellerOrderId, Title: "查看订单", Width: 1080, Height: 650 });
                }
                
            } else if (yongtu == "采购付款"){
                top.Dialog.open({ URL: "/Pages/procurement/ProcurementListHTML.aspx?Keyid=" + SellerOrderId, Title: "查看采购订单", Width: 1080, Height: 650 });
            }
           
        }
@@ -364,7 +373,7 @@
                                 <td>
                                      
                                         
                                     <a href='javascript:void(0)' title='付款' class='a_under' onclick='ViewShoukuan("<%#Eval("Keyid")%>","<%#Eval("Fukuanyongtu")%>","<%#Eval("SupplierId")%>")'> 付款    </a>
                                     <a href='javascript:void(0)' menu_member_case_id="case_fukuan" menu_member_case_name="付款" title='付款' class='a_under' onclick='ViewShoukuan("<%#Eval("Keyid")%>","<%#Eval("Fukuanyongtu")%>","<%#Eval("SupplierId")%>")'> 付款    </a>
                                     
                                </td>
                                
CY_ECommercePlatform/CY.WebForm/Pages/business/Waixiefukuanweikaipiao.aspx
@@ -115,10 +115,17 @@
        
        //查看客户资料
        function Viewkaipiao(Keyid, SellerOrderId, yongtu) {
            //window.open("/Pages/business/InvoicingOrderPrint.aspx?Keyid=&SellerOrderId=" + SellerOrderId, '', '');
        function Viewkaipiao(Keyid, SellerOrderId, yongtu, supplierId) {
            if (yongtu == "外协加工费") {
                top.Dialog.open({ URL: "/Pages/business/WaixieOrderPrint.aspx?Keyid=&SellerOrderId=" + SellerOrderId, Title: "查看订单", Width: 1080, Height: 650 });
                if (supplierId.length > 10) {
                    top.Dialog.open({ URL: "/Pages/business/WaixieOrderPrint.aspx?Keyid=&SellerOrderId=" + SellerOrderId, Title: "查看外协订单", Width: 1080, Height: 650 });
                } else {
                    top.Dialog.open({ URL: "/Pages/business/InvoicingOrderPrint.aspx?Keyid=&SellerOrderId=" + SellerOrderId, Title: "查看订单", Width: 1080, Height: 650 });
                }
            } else if (yongtu == "采购付款") {
                top.Dialog.open({ URL: "/Pages/procurement/ProcurementListHTML.aspx?Keyid=" + SellerOrderId, Title: "查看采购订单", Width: 1080, Height: 650 });
            }
        }
@@ -330,7 +337,7 @@
                                
                                <td>
                                    
                                      <%#Eval("Fukuanyongtu").ToString().Equals("其他付款")?"":"<a href='javascript:void(0)' title='查看订单' class='a_under' onclick='Viewkaipiao(\""+Eval("Keyid") +"\",\""+Eval("DindanId")+"\",\""+Eval("Fukuanyongtu")+"\")'>   查看订单   </a>" %>
                                      <%#Eval("Fukuanyongtu").ToString().Equals("其他付款")?"":"<a href='javascript:void(0)' title='查看订单' class='a_under' onclick='Viewkaipiao(\""+Eval("Keyid") +"\",\""+Eval("DindanId")+"\",\""+Eval("Fukuanyongtu")+"\",\""+Eval("SupplierId")+"\")'>   查看订单   </a>" %>
                                    
                                  
                                </td>
CY_ECommercePlatform/CY.WebForm/Pages/financial/CaigouPayEdit.aspx
New file
@@ -0,0 +1,142 @@
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="CaigouPayEdit.aspx.cs" Inherits="CY.WebForm.Pages.financial.CaigouPayEdit" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>选择付款账户</title>
    <uc:CMSHead ID="CMSHead1" runat="server" />
    <script language="javascript" type="text/javascript">
        function ChangeThisType(obj) {
            $("#selAccountNameOut").html("<option value=''>请选择</option>");
            $("#spanMoneyOut").html("");
            $.ajax({
                url: "/Pages/financial/FirmAccountExpensesEdit.aspx",
                type: "POST",
                dataType: "html",
                data: { TypeName: $(obj).val(), DataType: "change" },
                global: false,
                cache: false,
                success: function (data) {
                    var myobj = eval('(' + data + ')');
                    if (myobj != null && myobj.length > 0) {
                        for (var i = 0; i < myobj.length; i++) {
                            var city_keyid = myobj[i].Keyid;
                            var city_name = myobj[i].AccountName + "-" + myobj[i].UserName;
                            var option = "";
                            option = "<option value = '" + city_keyid + "' value_money='" + myobj[i].Balance.toFixed(2) + "'>" + city_name + "</option>";
                            $(option).appendTo($("#selAccountNameOut"));
                        }
                    }
                }
            });
        }
    </script>
    <script type="text/javascript">
        $(function () {
            ChangeThisType("#selAcoountTypeOut");
            $(".AccountName").change(function () {
                var nowMoney = $(this).find("option:selected").attr("value_money");
                if (nowMoney == undefined || nowMoney == "") {
                    $("#spanMoneyOut").html("余额:0");
                } else {
                    $("#spanMoneyOut").html("余额:" + nowMoney);
                }
            });
        });
    </script>
</head>
<body>
    <form id="form1" runat="server" class="form2">
    <table class="tableStyle" style="margin: 5px 0;">
        <tr>
            <td class="ali03 ">
                采购单数:
            </td>
            <td>
                <span class="moneystyle" id="spanCountRe" runat="server"></span>
                  <input type="hidden"  id="Keyid" runat="server" />
            </td>
        </tr>
        <tr>
            <td class="ali03 ">
                总金额:
            </td>
            <td>
                <span class="moneystyle" id="spanAllMoney" runat="server">¥</span>
            </td>
        </tr>
        <tr>
            <td class="ali03 ">
                未付金额:
            </td>
            <td>
                <span class="moneystyle" id="spanReceiveMoney" runat="server">¥</span>
            </td>
        </tr>
         <tr>
                <td class="ali03 ">
                    有无发票:
                </td>
                <td>
                    <input runat="server" id="txtYouwufapiao" type="text" style="width: 259px" readonly="readonly" />
                </td>
            </tr>
        <tr>
            <td class="ali03  ">
                账户类型:
            </td>
            <td>
                <select id="selAcoountTypeOut" runat="server" datatextfield="Name" datavaluefield="Name" onchange="ChangeThisType(this);" keepdefaultstyle="true" style="width: 120px;" msg="请选择账户类型">
                </select>
            </td>
        </tr>
        <tr>
            <td class="ali03 ">
                账户名称:
            </td>
            <td>
                <select class="Sreq AccountName" id="selAccountNameOut" runat="server" datatextfield="AccountName" datavaluefield="Keyid" keepdefaultstyle="true" style="width: 120px;" msg="请选择账户名称">
                    <option value="">请选择</option>
                </select><span style="padding-left: 10px; color: #999999;" id="spanMoneyOut"></span>
            </td>
        </tr>
        <tr>
            <td class="ali03 ">
                科目:
            </td>
            <td>
                <select class="Sreq" id="selSubject" runat="server" datatextfield="SubjectName" datavaluefield="Keyid" keepdefaultstyle="true" style="width: 120px;" msg="请选择科目">
                </select>
            </td>
        </tr>
        <tr>
            <td class="ali03 ">
                收取金额:
            </td>
            <td  title="当单个付款时可部分付款">
                <asp:TextBox TextMode="SingleLine"  id="txtReciveMoney" runat="server" class="req float" min="0"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td class="ali03 ">
                    有无发票:
                </td>
           <td>
            <input type="radio" name='rdoReceiveQuannbu' id='rdoReceiveQuannbu0' value='2'   /><label for='rdoReceiveQuannbu0'>有</label>
             <input type="radio" name='rdoReceiveQuannbu' id='rdoReceiveQuannbu1' value='1'   checked="checked"   /><label for='rdoReceiveQuannbu1'>无</label>
        </td>
    </tr>
        <tr>
            <td class="ali03">
            </td>
            <td>
                <asp:Button ID="btn_Submit" Text="提交" runat="server" OnClick="btn_Submit_form" />
            </td>
        </tr>
    </table>
    </form>
</body>
</html>
CY_ECommercePlatform/CY.WebForm/Pages/financial/CaigouPayEdit.aspx.cs
New file
@@ -0,0 +1,260 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using CY.BLL.OA;
using System.Data;
using System.Data.SqlClient;
using CY.Infrastructure.Common;
using CY.Model;
using CY.BLL.Sys;
using CY.BLL;
using System.Transactions;
namespace CY.WebForm.Pages.financial
{
    //吴辉
    //采购付款选择账户
    public partial class CaigouPayEdit : BasePage
    {
        OA_WarehouseInfoBLL _OA_WarehouseInfoBLL = null;
        OA_CargoSpaceBLL _OA_CargoSpaceBLL = null;
        OA_OutOfStorageBLL bll_OA_OutOfStorageBLL = null;
        OA_SubjectSetBLL bll_OA_SubjectSetBLL = null;
        Sys_DictionaryBLL bll_Sys_DictionaryBLL = null;
        OA_ProcurementBLL bll_OA_ProcurementBLL = null;
        OA_FirmAccountBLL bll_OA_FirmAccountBLL = null;
        OA_SuppliersBLL bll_OA_SuppliersBLL = null;
        OA_FukuanshenqingBLL _fukuanshenqingBLL = null;
        decimal? AllMoney = 0;
        decimal? ReceiveMoney = 0;
        //初始化
        public CaigouPayEdit()
        {
            bll_OA_OutOfStorageBLL = new OA_OutOfStorageBLL();
            _OA_WarehouseInfoBLL = new OA_WarehouseInfoBLL();
            _OA_CargoSpaceBLL = new OA_CargoSpaceBLL();
            bll_OA_SubjectSetBLL = new OA_SubjectSetBLL();
            bll_Sys_DictionaryBLL = new Sys_DictionaryBLL();
            bll_OA_ProcurementBLL = new OA_ProcurementBLL();
            bll_OA_FirmAccountBLL = new OA_FirmAccountBLL();
            bll_OA_SuppliersBLL = new OA_SuppliersBLL();
            _fukuanshenqingBLL = new OA_FukuanshenqingBLL();
        }
        //页面加载
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                InitialData();
            }
        }
        //加载数据
        protected void InitialData()
        {
            //科目名称
            this.selSubject.DataSource = bll_OA_SubjectSetBLL.getAllSubject(CurrentUser.MemberId, "贷");
            this.selSubject.DataBind();
            this.selSubject.Items.Insert(0, new ListItem("请选择", ""));
            //账户类型
            this.selAcoountTypeOut.DataSource = bll_Sys_DictionaryBLL.GetDataByType("账户类型");
            this.selAcoountTypeOut.DataBind();
            var id = Request["id"];
            var fukuanshenqing = _fukuanshenqingBLL.GetModelByKeyid(id.ToInt32().Value);
            if (fukuanshenqing != null)
            {
                this.Keyid.Value = id;
                this.txtYouwufapiao.Value = fukuanshenqing.YouwufapiaoName;
                string[] Keys = fukuanshenqing.DindanId.Trim(',').Split(',');
                foreach (var item in Keys)
                {
                    if (!string.IsNullOrEmpty(item))
                    {
                        OA_Procurement m_OA_Procurement = bll_OA_ProcurementBLL.SelectSingleModel(item);
                        if (m_OA_Procurement != null)
                        {
                            AllMoney += m_OA_Procurement.AllMoney;
                            ReceiveMoney += (m_OA_Procurement.AllMoney - m_OA_Procurement.ReceiveMoney);
                        }
                    }
                }
                this.spanAllMoney.InnerHtml = "¥" + (AllMoney ?? 0).ToString("0.00");
                this.spanReceiveMoney.InnerHtml = "¥" + ReceiveMoney.Value.ToString("0.00");
                this.spanCountRe.InnerHtml = Keys.Count().ToString2() + " 单";
                this.txtReciveMoney.Enabled = false;
                this.txtReciveMoney.Text = (ReceiveMoney ?? 0).ToString("0.00");
                this.txtReciveMoney.Attributes.Add("max", (ReceiveMoney ?? 0).ToString("0.00"));
            }
        }
        //提交事件
        protected void btn_Submit_form(object sender, EventArgs e)
        {
            try
            {
                if (string.IsNullOrEmpty(Request["selAccountNameOut"]))
                {
                    JavaScript.MessageBox("请选择账户", this);
                    return;
                }
                ReceiveMoney = this.txtReciveMoney.Text.ToDecimal2();
                int? SubjectId = this.selSubject.Value.ToInt32();
                decimal? money = ReceiveMoney;
                if (Request["amount"].ToString2() == "one")
                {
                    money = this.txtReciveMoney.Text.ToDecimal2();
                }
                int? AccountIdOut = Request["selAccountNameOut"].ToInt32();
                if (SubjectId == null || money == null || AccountIdOut == null)
                    JavaScript.MessageBox("操作失败", this);
                else
                {
                    DateTime nowTime = DateTime.Now;
                    OA_SubjectSet m_OA_SubjectSet = bll_OA_SubjectSetBLL.getSingleSubject(SubjectId);
                    OA_FirmAccount m_OA_FirmAccountOut = bll_OA_FirmAccountBLL.getSingleSubject(AccountIdOut);
                    if (m_OA_FirmAccountOut.Balance < money)
                    {
                        JavaScript.MessageBox("账户余额不足", this);
                    }
                    else
                    {
                        var id = this.Keyid.Value.ToInt32().Value;
                        var fukuanshenqing = _fukuanshenqingBLL.GetModelByKeyid(id);
                        var Youwufapiao = Request["rdoReceiveQuannbu"];
                        if (fukuanshenqing.Youwufapiao == 2 && Youwufapiao == "1")
                        {
                            JavaScript.MessageBox("已经保存为有发票,无法修改为无发票!", this);
                            return;
                        }
                        string[] Keys = fukuanshenqing.DindanId.Trim(',').Split(',');
                        var ssss = false;
                        using (TransactionScope scope = new TransactionScope(TransactionScopeOption.Required,
                new TransactionOptions
                {
                    IsolationLevel = System.Transactions.IsolationLevel.ReadCommitted,
                    Timeout = TransactionManager.MaximumTimeout
                }
                ))
                        {
                            try
                            {
                                var yishoumoney = fukuanshenqing.Yishoumoney.HasValue ? fukuanshenqing.Yishoumoney.Value : 0;
                                if (money >= (fukuanshenqing.Fukuanmoney - fukuanshenqing.Yishoumoney))
                                {
                                    fukuanshenqing.FukuanStatus = 2;
                                }
                                fukuanshenqing.Yishoumoney = yishoumoney + money;
                                fukuanshenqing.Updater = CurrentUser.ShortName;
                                fukuanshenqing.LastUpdateTime = DateTime.Now;
                                fukuanshenqing.Youwufapiao = Youwufapiao.ToInt32();
                                ssss = _fukuanshenqingBLL.UpdateModel(fukuanshenqing);
                                if (this.txtReciveMoney.Text.ToDecimal2() > 0)
                                {
                                    List<OA_Procurement> m_OA_ProcurementList = new List<OA_Procurement>();
                                    List<OA_FirmAccountRecord> m_OA_FirmAccountRecordList = new List<OA_FirmAccountRecord>();
                                    m_OA_FirmAccountOut.Balance -= money;
                                    m_OA_FirmAccountOut.AllExpenses += money;
                                    foreach (var item in Keys)
                                    {
                                        OA_Procurement m_OA_Procurement = bll_OA_ProcurementBLL.SelectSingleModel(item);
                                        if (m_OA_Procurement != null)
                                        {
                                            if (Request["amount"].ToString2() == "one")
                                                m_OA_Procurement.ReceiveMoney += money;
                                            else
                                                m_OA_Procurement.ReceiveMoney = m_OA_Procurement.AllMoney;
                                            if (m_OA_Procurement.ReceiveMoney == m_OA_Procurement.AllMoney)
                                                m_OA_Procurement.ClearingStatusId = bll_Sys_DictionaryBLL.GetKeyIdByKeyid(1, "结账状态");
                                            m_OA_Procurement.Operator = CurrentUser.ShortName;
                                            m_OA_Procurement.LastUpdateTime = DateTime.Now;
                                            OA_Suppliers m_OA_Suppliers = bll_OA_SuppliersBLL.getSingleSupplier(m_OA_Procurement.SuppliersId.ToString2());
                                            OA_FirmAccountRecord m_OA_FirmAccountRecordOut = new OA_FirmAccountRecord();
                                            m_OA_FirmAccountRecordOut.AccountId = m_OA_FirmAccountOut.Keyid;
                                            m_OA_FirmAccountRecordOut.RecordTypeId = 2;//支出
                                            if (Request["amount"].ToString2() == "one")
                                                m_OA_FirmAccountRecordOut.Money = money;
                                            else
                                                m_OA_FirmAccountRecordOut.Money = (m_OA_Procurement.AllMoney - m_OA_Procurement.ReceiveMoney);
                                            m_OA_FirmAccountRecordOut.SubjectId = m_OA_SubjectSet.Keyid;
                                            m_OA_FirmAccountRecordOut.OperationalMatters = "采购付款";
                                            m_OA_FirmAccountRecordOut.PaymentUnit = m_OA_Suppliers.Name;
                                            m_OA_FirmAccountRecordOut.LastUpdateTime = nowTime;
                                            m_OA_FirmAccountRecordOut.Operator = CurrentUser.ShortName.ToString2();
                                            m_OA_FirmAccountRecordOut.Remark = "";
                                            m_OA_FirmAccountRecordOut.ResidualAmount = m_OA_FirmAccountOut.Balance;
                                            m_OA_FirmAccountRecordList.Add(m_OA_FirmAccountRecordOut);
                                            m_OA_ProcurementList.Add(m_OA_Procurement);
                                        }
                                    }
                                    if (m_OA_ProcurementList.Count > 0)
                                    {
                                        ssss = bll_OA_FirmAccountBLL.PurchasePayList(m_OA_FirmAccountRecordList, m_OA_ProcurementList, m_OA_FirmAccountOut);
                                    }
                                }
                                if (ssss)
                                {
                                    scope.Complete();
                                    JavaScript.MessageBox("付款成功", this, "top.frmright.ReLoad();top.Dialog.close();");
                                }
                                else
                                    JavaScript.MessageBox("添加失败", this);
                            }
                            catch (Exception ex)
                            {
                                PAGEHandleException(ex);
                                JavaScript.MessageBox("添加失败", this);
                            }
                            finally
                            {
                                scope.Dispose();
                            }
                        }
                    }
                }
            }
            catch (Exception ex)
            {
                PAGEHandleException(ex);
                JavaScript.MessageBox("操作失败", this);
            }
        }
    }
}
CY_ECommercePlatform/CY.WebForm/Pages/financial/CaigouPayEdit.aspx.designer.cs
New file
@@ -0,0 +1,134 @@
//------------------------------------------------------------------------------
// <自动生成>
//     此代码由工具生成。
//
//     对此文件的更改可能导致不正确的行为,如果
//     重新生成代码,则所做更改将丢失。
// </自动生成>
//------------------------------------------------------------------------------
namespace CY.WebForm.Pages.financial
{
    public partial class CaigouPayEdit
    {
        /// <summary>
        /// Head1 控件。
        /// </summary>
        /// <remarks>
        /// 自动生成的字段。
        /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
        /// </remarks>
        protected global::System.Web.UI.HtmlControls.HtmlHead Head1;
        /// <summary>
        /// CMSHead1 控件。
        /// </summary>
        /// <remarks>
        /// 自动生成的字段。
        /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
        /// </remarks>
        protected global::CY.WebForm.Pages.common.CMSHead CMSHead1;
        /// <summary>
        /// form1 控件。
        /// </summary>
        /// <remarks>
        /// 自动生成的字段。
        /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
        /// </remarks>
        protected global::System.Web.UI.HtmlControls.HtmlForm form1;
        /// <summary>
        /// spanCountRe 控件。
        /// </summary>
        /// <remarks>
        /// 自动生成的字段。
        /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
        /// </remarks>
        protected global::System.Web.UI.HtmlControls.HtmlGenericControl spanCountRe;
        /// <summary>
        /// Keyid 控件。
        /// </summary>
        /// <remarks>
        /// 自动生成的字段。
        /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
        /// </remarks>
        protected global::System.Web.UI.HtmlControls.HtmlInputHidden Keyid;
        /// <summary>
        /// spanAllMoney 控件。
        /// </summary>
        /// <remarks>
        /// 自动生成的字段。
        /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
        /// </remarks>
        protected global::System.Web.UI.HtmlControls.HtmlGenericControl spanAllMoney;
        /// <summary>
        /// spanReceiveMoney 控件。
        /// </summary>
        /// <remarks>
        /// 自动生成的字段。
        /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
        /// </remarks>
        protected global::System.Web.UI.HtmlControls.HtmlGenericControl spanReceiveMoney;
        /// <summary>
        /// txtYouwufapiao 控件。
        /// </summary>
        /// <remarks>
        /// 自动生成的字段。
        /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
        /// </remarks>
        protected global::System.Web.UI.HtmlControls.HtmlInputText txtYouwufapiao;
        /// <summary>
        /// selAcoountTypeOut 控件。
        /// </summary>
        /// <remarks>
        /// 自动生成的字段。
        /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
        /// </remarks>
        protected global::System.Web.UI.HtmlControls.HtmlSelect selAcoountTypeOut;
        /// <summary>
        /// selAccountNameOut 控件。
        /// </summary>
        /// <remarks>
        /// 自动生成的字段。
        /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
        /// </remarks>
        protected global::System.Web.UI.HtmlControls.HtmlSelect selAccountNameOut;
        /// <summary>
        /// selSubject 控件。
        /// </summary>
        /// <remarks>
        /// 自动生成的字段。
        /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
        /// </remarks>
        protected global::System.Web.UI.HtmlControls.HtmlSelect selSubject;
        /// <summary>
        /// txtReciveMoney 控件。
        /// </summary>
        /// <remarks>
        /// 自动生成的字段。
        /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
        /// </remarks>
        protected global::System.Web.UI.WebControls.TextBox txtReciveMoney;
        /// <summary>
        /// btn_Submit 控件。
        /// </summary>
        /// <remarks>
        /// 自动生成的字段。
        /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
        /// </remarks>
        protected global::System.Web.UI.WebControls.Button btn_Submit;
    }
}
CY_ECommercePlatform/CY.WebForm/Pages/financial/NewWaixieExpenses.aspx.cs
@@ -155,11 +155,11 @@
                {
                    var yishoumoney = fukuanshenqing.Yishoumoney.HasValue ? fukuanshenqing.Yishoumoney.Value : 0;
                    fukuanshenqing.Yishoumoney = yishoumoney + money;
                    if (money >= (fukuanshenqing.Fukuanmoney - fukuanshenqing.Yishoumoney))
                    {
                        fukuanshenqing.FukuanStatus = 2;
                    }
                    fukuanshenqing.Yishoumoney = yishoumoney + money;
                    fukuanshenqing.Updater = CurrentUser.ShortName;
                    fukuanshenqing.LastUpdateTime = DateTime.Now;
                    fukuanshenqing.Youwufapiao = Youwufapiao.ToInt32();
CY_ECommercePlatform/CY.WebForm/Pages/financial/WaixieExpenses.aspx.cs
@@ -151,11 +151,11 @@
                try
                {
                    var yishoumoney = fukuanshenqing.Yishoumoney.HasValue ? fukuanshenqing.Yishoumoney.Value : 0;
                    fukuanshenqing.Yishoumoney = yishoumoney + money;
                    if (money >= (fukuanshenqing.Fukuanmoney - fukuanshenqing.Yishoumoney))
                    {
                        fukuanshenqing.FukuanStatus = 2;
                    }
                    fukuanshenqing.Yishoumoney = yishoumoney + money;
                    fukuanshenqing.Updater = CurrentUser.ShortName;
                    fukuanshenqing.LastUpdateTime = DateTime.Now;
                    fukuanshenqing.Youwufapiao = Youwufapiao.ToInt32();
CY_ECommercePlatform/CY.WebForm/Pages/procurement/ProcurementList.aspx
@@ -32,6 +32,74 @@
                window.location = "/Pages/procurement/ProcurementList.aspx?Keyid=" + keyid;
            });
        }
        /*
确认批量开票申请
*/
        function ToWaixieFukuan() {
            var ids = '';
            var ordernos = '';
            var cks = $("input[name='ckId']:checked");
            if (cks.length == 0) {
                alertMsg('没有选中任何项!');
                return;
            }
            else {
            }
            var SellerId = '';
            var i = 0;
            var SellerId111 = '';
            cks.each(
                function () {
                    var ckVal = $(this).val();
                    var ckValJson = eval('(' + ckVal + ')');
                    if (i == 0) {
                        SellerId = ckValJson.SuppliersId;
                        SellerId111 = ckValJson.SuppliersId;
                        i += 1;
                    } else {
                        if (SellerId != ckValJson.SuppliersId) {
                            SellerId = ''
                        }
                    }
                    ids = ids + ',' + ckValJson.id;
                    //ordernos = ordernos + ',' + ckValJson.orderId;
                }
            );
            if (SellerId111 == '') {
                alertMsg('无供应商的订单不能申请付款!');
                return;
            }
            if (SellerId == '') {
                alertMsg('必须选择同一个供应商!');
                return;
            }
            kaipiaoConfirm(ids, ordernos);
            //var msg = ('确认开票申请吗?');
            //top.Dialog.confirm(msg, function () {
            //    DoAcceptAll3(ids);
            //});
        }
        function kaipiaoConfirm(orderId, orderno) {
            var url = "/Pages/business/Caigoufukuanshenqing.aspx?id=" + orderId + "&&orderno=" + orderno;
            top.Dialog.open({ URL: url, Title: "采购付款申请", Height: 600, Width: 580 });
        }
    </script>
</head>
<body>
@@ -105,7 +173,7 @@
                    <td>
                    </td>
                    <td>
                        <asp:Button ID="btn_Register" Text="查询" runat="server" padding="0px" OnClick="btn_Register_Click" />
                        <asp:Button ID="btn_Search" Text="查询" runat="server" padding="0px" OnClick="btn_Register_Click" />
                        <input type="button" onclick="resetSearch()" value="重置" />
                    </td>
                </tr>
@@ -118,6 +186,9 @@
                        <div class="padding_top5 padding_left10">
                            <a href="javascript:;" onclick="addModel()" menu_member_case_id="case_addModel" menu_member_case_name="新增采购信息"><span class="icon_add">新增采购信息</span></a>
                            <a href="javascript:;" onclick="PrintModel()" menu_member_case_id="case_PrintModel" menu_member_case_name="打印采购信息"><span class="icon_add">打印采购信息</span></a>
                             <a href="javascript:;" menu_member_case_id="case_caigoufukuan" menu_member_case_name="采购付款申请"  onclick="ToWaixieFukuan()"><span class="icon_edit">采购付款申请</span></a>
                              <div class="box_tool_line">
                            </div>
                            <div class="clear">
                            </div>
                        </div>
@@ -181,7 +252,10 @@
                <ItemTemplate>
                    <tr>
                        <td>
                            <input type="checkbox" />
                            <input type="checkbox" name='ckId' value_keyid="<%#Eval("Keyid")%>"   value="{
                                    id:<%#Eval("Keyid")%>,
                                    SuppliersId:'<%#Eval("SuppliersId")%>'
                                    }" id='ckBox<%#Container.ItemIndex%>' class='ckBox' />
                        </td>
                        <td>
                            <%#Container.ItemIndex + 1+ this.UCPager1.PageSize * (this.UCPager1.PageIndex - 1)%>
CY_ECommercePlatform/CY.WebForm/Pages/procurement/ProcurementList.aspx.designer.cs
@@ -2,15 +2,17 @@
// <自动生成>
//     此代码由工具生成。
//
//     对此文件的更改可能会导致不正确的行为,并且如果
//     重新生成代码,这些更改将会丢失。
//     对此文件的更改可能导致不正确的行为,如果
//     重新生成代码,则所做更改将丢失。
// </自动生成>
//------------------------------------------------------------------------------
namespace CY.WebForm.Pages.procurement {
namespace CY.WebForm.Pages.procurement
{
    
    
    public partial class ProcurementList {
    public partial class ProcurementList
    {
        
        /// <summary>
        /// CMSHead1 控件。
@@ -121,13 +123,13 @@
        protected global::System.Web.UI.HtmlControls.HtmlInputText txtPaperWeight;
        
        /// <summary>
        /// btn_Register 控件。
        /// btn_Search 控件。
        /// </summary>
        /// <remarks>
        /// 自动生成的字段。
        /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
        /// </remarks>
        protected global::System.Web.UI.WebControls.Button btn_Register;
        protected global::System.Web.UI.WebControls.Button btn_Search;
        
        /// <summary>
        /// ReProcurentList 控件。
CY_ECommercePlatform/CY.WebForm/Pages/work/MyRequestAdd.aspx
@@ -149,7 +149,7 @@
            </tr>
             <tr class="trShoukuandanwei"  style=" display:none;">
                    <td class="ali03">选择供应商:</td>
                    <td colspan="3"> <select keepdefaultstyle='true' id='selSuppliers' runat="server"  datatextfield='Name' datavaluefield='Keyid'  onchange='custormerChange(this)' class='Sreq' sign="" selinputhtml="True"  style=" width:183px;"  >
                    <td colspan="3"> <select keepdefaultstyle='true' id='selSuppliers' runat="server"  datatextfield='Name' datavaluefield='Keyid'  onchange='custormerChange(this)'  sign="" selinputhtml="True"  style=" width:183px;"  >
                        </select></td>
                </tr>
            <tr>
CY_ECommercePlatform/CY.WebForm/Pages/work/MyRequestList.aspx
@@ -86,6 +86,7 @@
                            <option value="13">开票申请</option>
                            <option value="14">外协付款申请</option>
                             <option value="15">付款申请</option>
                              <option value="16">采购付款申请</option>
                            <option value="12">其他</option>
                        </select>
                    </td>
@@ -166,7 +167,7 @@
                <ItemTemplate>
                    <tr>
                        <td>
                            <input type="checkbox" value='<%#Eval("Keyid")%>' class='<%#(Eval("ApprovalStatus").ToString()=="1" || Eval("ApprovalStatus").ToString()=="3" || Eval("PlanDataType").ToString()=="13" || Eval("PlanDataType").ToString()=="14")?"AlreadyReply":""%>' />
                            <input type="checkbox" value='<%#Eval("Keyid")%>' class='<%#(Eval("ApprovalStatus").ToString()=="1" || Eval("ApprovalStatus").ToString()=="3" || Eval("PlanDataType").ToString()=="13" || Eval("PlanDataType").ToString()=="14"|| Eval("PlanDataType").ToString()=="16")?"AlreadyReply":""%>' />
                        </td>
                        <td style="text-align: center">
                            <%#Container.ItemIndex + 1+ this.UCPager1.PageSize * (this.UCPager1.PageIndex - 1)%>
@@ -188,8 +189,8 @@
                        </td>
                        <td class="Operate " style="text-align: center">
                            <span menu_member_case_id="case_PlanView" menu_member_case_name="查看" onclick="onView('<%#Eval("Keyid")%>')">查看</span> 
                            <span menu_member_case_id="case_PlanEdit" menu_member_case_name="修改" onclick="onEdit('<%#Eval("Keyid")%>')"  class='<%#(Eval("ApprovalStatus").ToString()=="1" || Eval("ApprovalStatus").ToString()=="3" || Eval("PlanDataType").ToString()=="13" || Eval("PlanDataType").ToString()=="14" )?"AlreadyReply":""%>'>修改</span>
                            <span menu_member_case_id="case_PlanDele" menu_member_case_name="删除" onclick="onDele('<%#Eval("Keyid")%>')" class='<%#(Eval("ApprovalStatus").ToString()=="1" || Eval("ApprovalStatus").ToString()=="3"  || Eval("PlanDataType").ToString()=="13" || Eval("PlanDataType").ToString()=="14")?"AlreadyReply":""%>'>删除</span>
                            <span menu_member_case_id="case_PlanEdit" menu_member_case_name="修改" onclick="onEdit('<%#Eval("Keyid")%>')"  class='<%#(Eval("ApprovalStatus").ToString()=="1" || Eval("ApprovalStatus").ToString()=="3" || Eval("PlanDataType").ToString()=="13" || Eval("PlanDataType").ToString()=="14" || Eval("PlanDataType").ToString()=="16")?"AlreadyReply":""%>'>修改</span>
                            <span menu_member_case_id="case_PlanDele" menu_member_case_name="删除" onclick="onDele('<%#Eval("Keyid")%>')" class='<%#(Eval("ApprovalStatus").ToString()=="1" || Eval("ApprovalStatus").ToString()=="3"  || Eval("PlanDataType").ToString()=="13" || Eval("PlanDataType").ToString()=="14"|| Eval("PlanDataType").ToString()=="16")?"AlreadyReply":""%>'>删除</span>
                        </td>
                    </tr>
                </ItemTemplate>
CY_ECommercePlatform/CY.WebForm/Pages/work/RequestReplyAdd.aspx.cs
@@ -103,7 +103,7 @@
                }
                if (m_OA_WorkPlan.ApprovalStatus == 1 && m_OA_WorkPlan.PlanDataType == 14)
                if (m_OA_WorkPlan.ApprovalStatus == 1 && (m_OA_WorkPlan.PlanDataType == 14 ||  m_OA_WorkPlan.PlanDataType == 16))
                {//批准反写
                    var fukuanshenqing = _oA_FukuanshenqingBLL.GetModelByKeyid(m_OA_WorkPlan.PlanComplany.ToInt32().Value);
                    fukuanshenqing.ApprovalStatus = 1;
CY_ECommercePlatform/CY.WebForm/Pages/work/RequestReplyList.aspx
@@ -60,6 +60,7 @@
                            <option value="13">开票申请</option>
                             <option value="14">外协付款申请</option>
                             <option value="15">付款申请</option>
                             <option value="16">采购付款申请</option>
                            <option value="12">其他</option>
                        </select>
                    </td>