CY_ECommercePlatform/CY.BLL/EC/EC_OrderBasicBLL.cs
@@ -720,7 +720,7 @@ } var isWin = _eC_OrderBasicDAL.Updatejinedanjia(eC_OrderBasic.Keyid.Value, eC_OrderBasic.SumPrice.Value, eC_OrderBasic.UnitPrice.Value); var isWin = _eC_OrderBasicDAL.Updatejinedanjia(eC_OrderBasic.Keyid.Value, eC_OrderBasic.SumPrice.Value, eC_OrderBasic.UnitPrice.Value, num); eC_OrderPrintParameter.PrintParameter = SerializationHelper.Serialize(model); isWin = _eC_OrderPrintParameterDAL.UpdateModel(eC_OrderPrintParameter); CY_ECommercePlatform/CY.BLL/OA/CoreCmsPlanOrderBLL.cs
@@ -157,6 +157,17 @@ } /// <summary> /// æ ¹æ®formidè·å¾ä¿¡æ¯ /// </summary> /// <param name="Keyid">ç¼å·</param> /// <returns></returns> public IEnumerable<Model.CoreCmsPlanOrder> GetModelByids(string ids) { return _ICoreCmsPlanOrderDAL.GetModelByids(ids); } /// <summary> /// è·åå ¨é¨åä½å®¢æ· /// </summary> /// <param name="Keyid">主é®id</param> CY_ECommercePlatform/CY.IDAL/EC/IEC_OrderBasicDAL.cs
@@ -283,7 +283,7 @@ /// <param name="orderId"></param> /// <param name="SumPrice"></param> /// <param name="UnitPrice"></param> bool Updatejinedanjia(int orderId,decimal SumPrice, decimal UnitPrice); bool Updatejinedanjia(int orderId,decimal SumPrice, decimal UnitPrice,int num); /// <summary> /// ä¿®æ¹æå°ç¶æ CY_ECommercePlatform/CY.IDAL/OA/ICoreCmsPlanOrderDAL.cs
@@ -32,6 +32,13 @@ /// <returns></returns> IEnumerable<CoreCmsPlanOrder> GetModelByorderid(int orderid); /// <summary> /// æ ¹æ®orderidè·å¾ä¿¡æ¯ /// </summary> /// <param name="ids">ç¼å·</param> /// <returns></returns> IEnumerable<CoreCmsPlanOrder> GetModelByids(string ids); /// <summary> /// ä¿®æ¹ CY_ECommercePlatform/CY.Model/OA/CoreCmsPlanOrder.cs
@@ -1,6 +1,7 @@ using System; using CY.Infrastructure.Domain; using CY.Infrastructure.Common; using System.Collections.Generic; namespace CY.Model { @@ -509,6 +510,41 @@ public System.Int32 nums { get; set; } public List<JiHuaOrderDetail> jiHuaOrderDetails { get; set; } } /// <summary> /// 计å订å /// </summary> public class JiHuaOrderDetail { /// <summary> /// åååç§° /// </summary> public System.String name { get; set; } /// <summary> /// ååè§æ ¼ /// </summary> public System.String specification { get; set; } /// <summary> /// è´§åä»·æ ¼åä»· /// </summary> public System.Decimal price { get; set; } /// <summary> /// æ°é /// </summary> public System.Int32 nums { get; set; } } } CY_ECommercePlatform/CY.SQLDAL/EC/EC_OrderBasicDAL.cs
@@ -2750,12 +2750,12 @@ /// ä¿®æ¹æå°ç¶æ /// </summary> /// <param name="orderId"></param> public bool Updatejinedanjia(int orderId, decimal SumPrice, decimal UnitPrice) public bool Updatejinedanjia(int orderId, decimal SumPrice, decimal UnitPrice,int num) { try { string sqlStr = string.Empty; sqlStr = "UPDATE EC_OrderBasic SET SumPrice="+ SumPrice + " ,UnitPrice="+ UnitPrice + " WHERE Keyid=@orderId"; sqlStr = "UPDATE EC_OrderBasic SET SumPrice="+ SumPrice + " ,UnitPrice="+ UnitPrice + " WHERE Keyid=@orderId;UPDATE [EC_OrderExtend] SET [PrintNum]=" + num + " WHERE Keyid="+ orderId ; SqlParameter par = new SqlParameter("@orderId", orderId); _dataBase.ExecuteSql(sqlStr, par); } CY_ECommercePlatform/CY.SQLDAL/OA/CoreCmsPlanOrderDAL.cs
@@ -275,6 +275,17 @@ /// <summary> /// å ¨é¨æ¥è¯¢ /// </summary> /// <param name="query"></param> /// <returns></returns> public IEnumerable<Model.CoreCmsPlanOrder> GetModelByids(string ids) { return _dataBase.SelectModel<Model.CoreCmsPlanOrder>(" * ", " CoreCmsPlanOrder ", " [id] in ( " + ids + ")") as IList<Model.CoreCmsPlanOrder>;//æ§è¡æ¥è¯¢ } /// <summary> /// ä¿®æ¹ /// </summary> /// <param name="model"></param> CY_ECommercePlatform/CY.WebForm/Pages/business/AgMergerOrderEdit.aspx
@@ -5,7 +5,9 @@ <head runat="server"> <title>åçæ½å·¥å</title> <uc:CMSHead ID="CMSHead1" runat="server" /> <link rel="stylesheet" type="text/css" href="../../Styles/base.css" /> <script type="text/javascript"> $(function () { $("input[name='PMS_PaperPositive']").blur(function () { var PMS_PaperCount = parseInt($("input[name='PMS_PaperCount']").val()); @@ -55,6 +57,27 @@ $("#PMS_PaperSource").change(); $("#selPlateType").change(); $(".xialap").hover(function () { $(this).find(".xialapb").show(); }, function () { $(this).find(".xialapb").hide(); }); $(".xialapr").hover(function () { $(this).find(".xialapb").show(); $(this).removeClass("xialapr").addClass("xialaprh"); }, function () { $(this).removeClass("xialaprh").addClass("xialapr"); $(this).find(".xialapb").hide(); }); $(".xialapr").click(function () { $(this).parent().parent().find("input").val($(this).text()); $(".xialapb").hide(); }); }); </script> <script type="text/javascript"> @@ -127,6 +150,39 @@ { document.getElementById('PrintSizeName').value = ""; } } /* 交æå®¢æ·éä¸å¼åçæ¹å */ function custormerChange(sel) { if (window.isDataLoading) { return; } if (sel.value.indexOf('å å¼') >= 0) { document.getElementById('PlateSpec').value = '395*460'; document.getElementById('PMS_ChromaticNumber').value = '1'; /*document.getElementById('CTPCount').value = '8';*/ } else if (sel.value.indexOf('åè²') >= 0 ) { document.getElementById('PlateSpec').value = '770*1030'; document.getElementById('PMS_ChromaticNumber').value = '4'; /* document.getElementById('CTPCount').value = '2';*/ } else if (sel.value.indexOf('å «è²') >= 0) { document.getElementById('PlateSpec').value = '790*1030'; document.getElementById('PMS_ChromaticNumber').value = '4'; /* document.getElementById('CTPCount').value = '2';*/ } else if (sel.value.indexOf('é»ç½') >= 0 ) { document.getElementById('PlateSpec').value = '760*920'; document.getElementById('PMS_ChromaticNumber').value = '1'; /* document.getElementById('CTPCount').value = '2';*/ } else if (sel.value.indexOf('轮转') >= 0) { document.getElementById('PlateSpec').value = '579*810'; document.getElementById('PMS_ChromaticNumber').value = '1'; /* document.getElementById('CTPCount').value = '';*/ } } </script> </head> @@ -329,7 +385,7 @@ å°å·æºå°ï¼ </td> <td> <select keepDefaultStyle="true" name="PMS_Machine" id="selPMS_Machine" runat="server" style=" width:80px;"> <select keepDefaultStyle="true" name="PMS_Machine" id="selPMS_Machine" runat="server" style=" width:80px;" onchange='custormerChange(this)'> <option value="">è¯·éæ©</option> <option value="1弿º">1弿º</option> <option value="2弿º">2弿º</option> @@ -386,22 +442,41 @@ </td> </tr> <tr> <td class="ali03 w70px "> çæç±»åï¼ <td class="ali03 w70px " style="display:none;"> <%-- çæç±»åï¼--%> </td> <td> <select keepDefaultStyle="true" name="selPlateType" onchange='PlateChange(this)' runat = "server" id="selPlateType" style=" width:80px;"> <td style="display:none;"> <select keepDefaultStyle="true" name="selPlateType" onchange='PlateChange(this)' runat = "server" id="selPlateType" style=" width:80px;display:none;"> <option selected="selected" value="1">æ¬åCTP</option> <option value="0">èªå¸¦CTP</option> <option value="2">èªå¸¦è²æ</option> <option value="3">æ¬åè²æ</option> </select><label class="Btnb CangKubtn_o" style="margin-left: 2px;"><input type="button" class="Btn FromWarehouseByBanCai" value="è¿æ¥ä»åº" id="BtnStorePlate" /></label><input type="hidden" runat="server" name="PSF_PaperId" id="PSF_PaperId2" /> </select><label class="Btnb CangKubtn_o" style="margin-left: 2px;display:none;"><input type="button" class="Btn FromWarehouseByBanCai" value="è¿æ¥ä»åº" id="BtnStorePlate" /></label><input type="hidden" runat="server" name="PSF_PaperId" id="PSF_PaperId2" /> </td> <td class="ali03 w70px "> è§æ ¼ï¼ </td> <td> <%-- <input type="text" class="noJ " name="CTPSpecName" style="width:80px" id="PlateSpec" runat = "server"/>--%> <%-- <select keepDefaultStyle="true" name="CTPSpecName" id="PlateSpec" runat="server" style="width:80px" > </select> --%> <div class="xialap"> <input type="text" class="noJ " name="CTPSpecName" style="width:80px" id="PlateSpec" runat = "server"/> <div class="xialapb" > <%=xialapr %> <%-- <div class="xialapr">500</div> <div class="xialapr">1000</div> <div class="xialapr">2000</div> <div class="xialapr">3000</div> <div class="xialapr">5000</div> <div class="xialapr">10000</div>--%> </div> </div> <select keepDefaultStyle="true" name="selCTPSpec" runat="server" style="display:none;width:80px" id="selCTPSpec" runat = "server"></select> <select keepDefaultStyle="true" name="selFilmSpec" runat="server" style="display:none;width:80px" id="selFilmSpec" runat = "server"></select> </td> @@ -426,7 +501,7 @@ <td id="tdPsCount" style="display:none" runat="server"> <input type="text" class="noJ PS_o" name="PSCount" style="width:80px" id="PSCount" runat = "server" /> </td> <td id="tdBlank" colspan = "4"> <td id="tdBlank" colspan = "6"> </td> </tr> @@ -438,10 +513,10 @@ <input type="text" class="date" name="PMS_CompletionTime" style=" width:140px;" runat = "server" id ="PMS_CompletionTime"/> </td> <td class="ali03 w70px "> éé¢ï¼ <%-- éé¢ï¼--%> </td> <td> <input type="text" class="float req " min="0" name="PMS_TotalPrice" style="width:80px" runat = "server" id="PMS_TotalPrice" /> <input type="text" class="float req " min="0" name="PMS_TotalPrice" style="width:80px;display:none;" runat = "server" id="PMS_TotalPrice" value="0" /> </td> <td colspan="6"> </td> CY_ECommercePlatform/CY.WebForm/Pages/business/AgMergerOrderEdit.aspx.cs
@@ -27,6 +27,7 @@ OA_InventoryBLL bll_OA_InventoryBLL = null; OA_OutOfStorageBLL bll_OA_OutOfStorageBLL = null; public Guid targetid = Guid.Empty; public string xialapr = ""; //åå§å public AgMergerOrderEdit() @@ -91,6 +92,20 @@ this.selFilmSpec.DataBind(); this.selFilmSpec.Items.Insert(0, new ListItem("è¯·éæ©", "")); //this.selFilmSpec.Visible = false; //this.PlateSpec.DataSource = bll_EC_MemberDictionaryBLL.SelectListByMemberIdAndParType(CurrentUser.MemberId, "çæè§æ ¼"); //this.PlateSpec.DataValueField = "ParName"; //this.PlateSpec.DataTextField = "ParName"; //this.PlateSpec.DataBind(); //this.PlateSpec.Items.Insert(0, new ListItem("è¯·éæ©", "")); var sss = bll_EC_MemberDictionaryBLL.SelectListByMemberIdAndParType(CurrentUser.MemberId, "çæè§æ ¼"); foreach (var eC_MemberDictionary in sss) { xialapr += " <div class=\"xialapr\">"+ eC_MemberDictionary.ParName + "</div>"; } Pagination pa = new Pagination(); pa.PageSize = 500; @@ -327,6 +342,7 @@ RepMergerEdit.Visible = false; this.RepClientList.DataSource = mEC_OrderBasicList; this.RepClientList.DataBind(); this.selOutFirm.Value = "-1"; } return true; } @@ -676,7 +692,7 @@ m_EC_OrderBasicNew.BuyerName = CurrentUser.Name; m_EC_OrderBasicNew.Creater = CurrentUser.ShortName; m_EC_OrderBasicNew.Operator = CurrentUser.ShortName; m_EC_OrderBasicNew.DeliveryTime = _eC_OrderBasic.DeliveryTime.Value.ToDateTime2(); m_EC_OrderBasicNew.DeliveryTime = _eC_OrderBasic.DeliveryTime.ToDateTime2(); m_EC_OrderBasicNew.DocumentName = _eC_OrderBasic.PrintType.PrintName; m_EC_OrderBasicNew.OrderTypeId = 3; m_EC_OrderBasicNew.PrintTypeId = _eC_OrderBasic.PrintTypeId; CY_ECommercePlatform/CY.WebForm/Pages/business/AgMergerOrderEdit.aspx.designer.cs
@@ -2,15 +2,17 @@ // <èªå¨çæ> // æ¤ä»£ç ç±å·¥å ·çæã // // å¯¹æ¤æä»¶çæ´æ¹å¯è½ä¼å¯¼è´ä¸æ£ç¡®çè¡ä¸ºï¼å¹¶ä¸å¦æ // éæ°çæä»£ç ï¼è¿äºæ´æ¹å°ä¼ä¸¢å¤±ã // å¯¹æ¤æä»¶çæ´æ¹å¯è½å¯¼è´ä¸æ£ç¡®çè¡ä¸ºï¼å¦æ // éæ°çæä»£ç ï¼åæåæ´æ¹å°ä¸¢å¤±ã // </èªå¨çæ> //------------------------------------------------------------------------------ namespace CY.WebForm.Pages.business { namespace CY.WebForm.Pages.business { public partial class AgMergerOrderEdit { public partial class AgMergerOrderEdit { /// <summary> /// CMSHead1 æ§ä»¶ã CY_ECommercePlatform/CY.WebForm/Pages/business/AgOutsourcSingleAllEdit.aspx
@@ -86,7 +86,9 @@ å¶åäººï¼ </td> <td class="w100px"> <span id="spanSpecialOprator" runat="server"></span> <%-- <span id="spanSpecialOprator" runat="server"></span>--%> <select keepdefaultstyle='true' id='selBusinessManager' runat="server" datatextfield='Name' datavaluefield='Name'> </select> </td> <td class="ali03 w100px"> å¶åæ¥æï¼ CY_ECommercePlatform/CY.WebForm/Pages/business/AgOutsourcSingleAllEdit.aspx.cs
@@ -21,6 +21,7 @@ OA_CorporateClientsBLL bll_OA_CorporateClientsBLL = null; Sys_DictionaryBLL bll_Sys_DictionaryBLL = null; EC_OrderBLL bll_EC_OrderBLL = null; OA_StaffBLL bll_OA_StaffBLL = null; public Guid targetid = Guid.Empty; public static string Keyid; @@ -39,6 +40,7 @@ bll_OA_CorporateClientsBLL = new OA_CorporateClientsBLL(); bll_Sys_DictionaryBLL = new Sys_DictionaryBLL(); bll_EC_OrderBLL = new EC_OrderBLL(); bll_OA_StaffBLL = new OA_StaffBLL(); } /// <summary> @@ -127,7 +129,8 @@ this.spanSumPrice.InnerText = (_eC_OrderBasic.SumPrice ??0).ToString("0.00"); this.spanSurplusPrintNum.InnerText = _eC_OrderBasic.OrderExtend.SurplusPrintNum.ToString2(); this.spanSpecialOprator.InnerText = CurrentUser.ShortName; //this.spanSpecialOprator.InnerText = CurrentUser.ShortName; this.selBusinessManager.Value = _eC_OrderBasic.Creater; this.spanSpecialTime.InnerText = DateTime.Now.ToString("yyyy-MM-dd HH:mm"); this.txtRemark.Value = _eC_OrderBasic.Remark.ToString2(); @@ -154,6 +157,12 @@ this.selExigencyDegree.DataBind(); this.selExigencyDegree.Items.Add(new ListItem("è¯·éæ©", "")); this.selExigencyDegree.Value = "0"; this.selBusinessManager.DataSource = bll_OA_StaffBLL.SelectListByFirmId(CurrentUser.MemberId, true, false); this.selBusinessManager.DataTextField = "Name"; this.selBusinessManager.DataValueField = "Name"; this.selBusinessManager.DataBind(); //this.selBusinessManager.Items.Insert(0, new ListItem("å ¨é¨", "")); } } @@ -209,7 +218,7 @@ m_EC_OrderBasicNew.SellerId = this.selOutFirm.SelectedValue.ToGuid2(); m_EC_OrderBasicNew.BuyerId = CurrentUser.MemberId; m_EC_OrderBasicNew.BuyerName = CurrentUser.Name; m_EC_OrderBasicNew.Creater = CurrentUser.ShortName; m_EC_OrderBasicNew.Creater = this.selBusinessManager.Value;// CurrentUser.ShortName; m_EC_OrderBasicNew.Operator = CurrentUser.ShortName; m_EC_OrderBasicNew.DeliveryTime = this.txtDeliveryTime.Value.ToDateTime2(); m_EC_OrderBasicNew.DocumentName = _eC_OrderBasic.DocumentName; CY_ECommercePlatform/CY.WebForm/Pages/business/AgOutsourcSingleAllEdit.aspx.designer.cs
@@ -2,15 +2,17 @@ // <èªå¨çæ> // æ¤ä»£ç ç±å·¥å ·çæã // // å¯¹æ¤æä»¶çæ´æ¹å¯è½ä¼å¯¼è´ä¸æ£ç¡®çè¡ä¸ºï¼å¹¶ä¸å¦æ // éæ°çæä»£ç ï¼è¿äºæ´æ¹å°ä¼ä¸¢å¤±ã // å¯¹æ¤æä»¶çæ´æ¹å¯è½å¯¼è´ä¸æ£ç¡®çè¡ä¸ºï¼å¦æ // éæ°çæä»£ç ï¼åæåæ´æ¹å°ä¸¢å¤±ã // </èªå¨çæ> //------------------------------------------------------------------------------ namespace CY.WebForm.Pages.business { namespace CY.WebForm.Pages.business { public partial class AgOutsourcSingleAllEdit { public partial class AgOutsourcSingleAllEdit { /// <summary> /// Head1 æ§ä»¶ã @@ -49,13 +51,13 @@ protected global::System.Web.UI.WebControls.DropDownList selOutFirm; /// <summary> /// spanSpecialOprator æ§ä»¶ã /// selBusinessManager æ§ä»¶ã /// </summary> /// <remarks> /// èªå¨çæçåæ®µã /// è¥è¦è¿è¡ä¿®æ¹ï¼è¯·å°å段声æä»è®¾è®¡å¨æä»¶ç§»å°ä»£ç éèæä»¶ã /// </remarks> protected global::System.Web.UI.HtmlControls.HtmlGenericControl spanSpecialOprator; protected global::System.Web.UI.HtmlControls.HtmlSelect selBusinessManager; /// <summary> /// spanSpecialTime æ§ä»¶ã CY_ECommercePlatform/CY.WebForm/Pages/business/AgSpecialOrderEdit.aspx
@@ -5,6 +5,7 @@ <head runat="server"> <title>ä¸çæ½å·¥å</title> <uc:CMSHead ID="CMSHead1" runat="server" /> <link rel="stylesheet" type="text/css" href="../../Styles/base.css?v=1" /> <style type="text/css"> body { font-family: 微软é é»; } tr { line-height: 20px; } @@ -229,27 +230,27 @@ <input type="text" class=" w80px int " msg="è¯·å¡«åæ°å" name="PSF_PNum" value="<%#Eval("PSF_PNum")%>" /> </td> <td colspan="2"> <select keepdefaultstyle="true" class=" w120px" name="PSF_PressesDesk"> <select keepdefaultstyle="true" class=" w120px" name="PSF_PressesDesk" value_selspec="<%#Container.ItemIndex + 1%>"> <%--<option value="">è¯·éæ©</option>--%> <%=PressesDeskHtml %> </select> </td> <td> <select keepdefaultstyle="true" class="" name="PSF_PrintedColorPositive"> <option value="åè²">åè²</option> <select keepdefaultstyle="true" class="" name="PSF_PrintedColorPositive" value_selspec="<%#Container.ItemIndex + 1%>" > <option value="åè²" selected="selected">åè²</option> <option value="åè²">åè²</option> <option value="ä¸è²">ä¸è²</option> <option value="åè²" selected="selected">åè²</option> <option value="åè²" >åè²</option> <option value="å+ä¸">å+ä¸</option> </select> </td> <td> <select keepdefaultstyle="true" class="" name="PSF_PrintedColorRear" value_ppwaerid="<%#Container.ItemIndex + 1%>"> <option value="0è²">0è²</option> <option value="åè²">åè²</option> <option value="åè²" selected="selected">åè²</option> <option value="åè²">åè²</option> <option value="ä¸è²">ä¸è²</option> <option value="åè²" selected="selected">åè²</option> <option value="åè²" >åè²</option> <option value="å+ä¸">å+ä¸</option> </select> </td> @@ -290,13 +291,13 @@ æ¶è </td> <td colspan="1"> 弿° <p name="PSF_OpenSpecificationsspan" value_selspecspan="<%#Container.ItemIndex + 1%>">弿°</p> </td> <td> 宽度(mm) </td> <td> é¿åº¦(mm) <p name="PSF_OpenWidthspan" value_openwidthspan="<%#Container.ItemIndex + 1%>">é¿åº¦(mm)</p> </td> </tr> <tr> @@ -332,19 +333,30 @@ </td> <td colspan="1"> <select keepdefaultstyle="true" class=" w80px" name="PSF_OpenSpecifications" value_selspec="<%#Container.ItemIndex + 1%>"> <%--<option value="">è¯·éæ©</option>--%> <option value="">è¯·éæ©</option> <%=selCuttingPaperSpecHtml%> </select> </td> <td> <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%>' /> <div class="xialapb" > <div class="xialapr">755</div> <div class="xialapr">760</div> <div class="xialapr">765</div> <div class="xialapr">770</div> </div> </div> </td> <td> <input type="text" class=" w80px int " msg="è¯·å¡«åæ°å" name="PSF_OpenLength" value="<%#(Eval("PSF_OpenWidth") == null || Eval("PSF_OpenLength").ToString()=="0")?"":Eval("PSF_OpenLength").ToString()%>" value_ppwaerid='<%#Container.ItemIndex + 1%>' /> <input type="text" class=" w80px int " msg="è¯·å¡«åæ°å" name="PSF_OpenLength" value="<%#(Eval("PSF_OpenLength") == null || Eval("PSF_OpenLength").ToString()=="0")?"":Eval("PSF_OpenLength").ToString()%>" value_ppwaerid='<%#Container.ItemIndex + 1%>' /> </td> </tr> <tr class=" price_tabbg" style="font-weight: bold; background-color: #E6E6E6; width: 100%"> <td> <td style="display:none;"> çæç±»å </td> <td colspan="2"> @@ -359,11 +371,11 @@ <td id="lbPSCount" value_ppwaerid='<%#Container.ItemIndex + 1%>' class="lb lbPSCount" colspan="4" style="display: none"> PSçæ°é </td> <td colspan="6"> <td colspan="7"> </td> </tr> <tr> <td> <td style="display:none;"> <select keepdefaultstyle="true" value_selwaerid="<%#Container.ItemIndex + 1%>" name="selPlateType" id="selPlateType"> <option value="æ¬åCTP">æ¬åCTP</option> <option value="èªå¸¦CTP">èªå¸¦CTP</option> @@ -374,7 +386,18 @@ <input type="button" value_waerid="<%#Container.ItemIndex + 1%>" class="Btn FromWarehouseByBanCai" value="è¿æ¥ä»åº" id="BtnStorePlate" /></label><input type="hidden" value_ppwaerid="<%#Container.ItemIndex + 1%>" name="PSF_PaperId2" /> </td> <td colspan="2"> <div class="xialapp" style="margin-left:32%;"> <input type="text" value_ppwaerid="<%#Container.ItemIndex + 1%>" class="txt CTPSpecName " name="CTPSpecName" id="PlateSpec" value="<%#Eval("PSF_CTPSpecType")%>" /> <div class="xialapbp" > <%=xialapr %> <%-- <div class="xialapr">500</div> <div class="xialapr">1000</div> <div class="xialapr">2000</div> <div class="xialapr">3000</div> <div class="xialapr">5000</div> <div class="xialapr">10000</div>--%> </div> </div> <select keepdefaultstyle="true" value_ppwaerid="<%#Container.ItemIndex + 1%>" class="sel selCTPSpec" name="selCTPSpec" style="display: none; width: 80px" id="selCTPSpec"> <option value="">è¯·éæ©</option> <%=selCTPSpecHtml %> @@ -395,7 +418,7 @@ <td id="tdPsCount" style="display: none" runat="server" value_ppwaerid="<%#Container.ItemIndex + 1%>" class="td tdPsCount" colspan="4"> <input type="text" value_ppwaerid="<%#Container.ItemIndex + 1%>" class="txt PSCount" name="PSCount" style="width: 80px" id="PSCount" value="<%#Eval("PSF_PSCount")%>" /> </td> <td colspan="6"> <td colspan="7"> </td> </tr> <tr> @@ -511,6 +534,7 @@ var value_id = parseInt($(".AddTab").last().attr("value_id")); $(".AddTab").last().after($(".AddTab").last().clone(true)); $(".AddTab").last().attr("value_id", value_id + 1); $(".xialap").last().attr("value_ppwaerid", value_id + 1); $(".AddTab span").last().text(value_id + 1); $(".FromWarehouse").last().attr("value_WaerId", value_id + 1); $("input[name='PSF_PaperId']").last().attr("value_PpWaerId", value_id + 1); @@ -532,9 +556,14 @@ $("input[name='PSF_LastNum']").last().attr("value_lastNumid", value_id + 1); $("input[name='PSF_PrintedCount']").last().attr("value_ppwaerid", value_id + 1); $("select[name='PSF_OpenSpecifications']").last().attr("value_selSpec", value_id + 1); $("p[name='PSF_OpenSpecificationsspan']").last().attr("value_selspecspan", value_id + 1); $("p[name='PSF_OpenWidthspan']").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); $("select[name='PSF_PrintedColorPositive']").last().attr("value_selspec", value_id + 1); $("select[name='PSF_Typesetting']").last().attr("value_ppwaerid", value_id + 1); $("input[name='PSF_OpenWidth']").last().attr("value_ppwaerid", value_id + 1); $("input[name='PSF_OpenWidthName']").last().attr("value_ppwaerid", value_id + 1); $("input[name='PSF_OpenLength']").last().attr("value_ppwaerid", value_id + 1); $("select[name='selPlateType']").last().attr("value_selwaerid", value_id + 1); @@ -553,6 +582,8 @@ $("input[name='PSF_PaperId3']").last().attr("value_PpWaerId", value_id + 1); // $("select[name='PSF_OpenSpecifications']").last().val("å°å ¨å¼"); //$("p[name='PSF_OpenSpecificationsspan']").last().text("弿°"); //$("p[name='PSF_OpenWidthspan']").last().text("é¿åº¦(mm)"); $("select[name='PSF_OpenSpecifications']").last().change(); $("select[name='PSF_PrintedColorRear']").last().change(); @@ -562,6 +593,10 @@ $("select[name='selPlateType']").last().val("æ¬åCTP"); $("select[name='selPlateType']").last().change(); $("select[name='PSF_OpenSpecifications']").last().val("8å¼"); $("select[name='PSF_OpenSpecifications']").last().change(); $("input[name='CTPSpecName']").last().val("395*460"); $("select[name='PSF_PressesDesk']").last().change(); // $("select[name='PSF_Component']").last().val("å 页"); $("input[name='PSF_PNum']").last().val(""); @@ -570,7 +605,7 @@ $("input[name='PSF_PrintedCount']").last().val(""); $("input[name='PSF_PrintedPositive']").last().val(""); $("input[name='PSF_LastNum']").last().last().val(""); $("input[name='CTPSpecName']").last().val(""); // $("input[name='CTPSpecName']").last().val(""); $("input[name='CTPCount']").last().last().val(""); }); @@ -687,6 +722,84 @@ } }); $("select[name='PSF_PressesDesk']").live("change", function () { var value_SelWaerId = $(this).attr("value_selspec"); if ($(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("8å¼"); $("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(); $("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_PrintedColorPositive'][value_selspec='" + value_SelWaerId + "']").val("åè²"); $("select[name='PSF_PrintedColorRear'][value_ppwaerid='" + value_SelWaerId + "']").val("åè²"); $("input[name='CTPSpecName'][value_ppwaerid='" + value_SelWaerId + "']").val("770*1030"); $("select[name='PSF_OpenSpecifications'][value_selspec='" + value_SelWaerId + "']").val("2å¼"); $("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(); $("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_PrintedColorPositive'][value_selspec='" + value_SelWaerId + "']").val("åè²"); $("select[name='PSF_PrintedColorRear'][value_ppwaerid='" + value_SelWaerId + "']").val("åè²"); $("input[name='CTPSpecName'][value_ppwaerid='" + value_SelWaerId + "']").val("790*1030"); $("select[name='PSF_OpenSpecifications'][value_selspec='" + value_SelWaerId + "']").val("2å¼"); $("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(); $("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_PrintedColorPositive'][value_selspec='" + value_SelWaerId + "']").val("åè²"); $("select[name='PSF_PrintedColorRear'][value_ppwaerid='" + value_SelWaerId + "']").val("åè²"); $("input[name='CTPSpecName'][value_ppwaerid='" + value_SelWaerId + "']").val("760*920"); $("select[name='PSF_OpenSpecifications'][value_selspec='" + value_SelWaerId + "']").val("2å¼"); $("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(); $("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_PrintedColorPositive'][value_selspec='" + value_SelWaerId + "']").val("åè²"); $("select[name='PSF_PrintedColorRear'][value_ppwaerid='" + value_SelWaerId + "']").val("åè²"); $("input[name='CTPSpecName'][value_ppwaerid='" + value_SelWaerId + "']").val("578*810"); $("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(); $("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(); } }); $("select[name='PSF_PrintedColorRear']").live("change", function () { var value_SelWaerId = $(this).attr("value_ppwaerid"); if ($(this).val() == "0è²") { @@ -726,6 +839,17 @@ $("select[name='selPlateType']").each(function (ii, vv) { $(vv).change(); }); $("select[name='PSF_OpenSpecifications']").each(function (ii, vv) { var keyid = "<%=keyid %>"; if (keyid != "") { } else { $(vv).val("8å¼"); } }); $("select[name='PSF_OpenSpecifications']").each(function (ii, vv) { var keyid = "<%=keyid %>"; if (keyid != "") { @@ -734,6 +858,40 @@ $(vv).change(); } }); $("select[name='PSF_PressesDesk']").each(function (ii, vv) { var keyid = "<%=keyid %>"; if (keyid != "") { var value_SelWaerId = $(this).attr("value_selspec"); if ($(vv).val().indexOf('轮转') >= 0) { $("select[name='PSF_OpenSpecifications'][value_selspec='" + value_SelWaerId + "']").hide(); $("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(); } } }); $("input[name='CTPSpecName']").each(function (ii, vv) { var keyid = "<%=keyid %>"; if (keyid != "") { } else { $(vv).val("395*460"); } }); $(function () { $(".FromWarehouse").click(function () { @@ -753,6 +911,49 @@ }); }); $(".xialap").hover(function () { $(this).find(".xialapb").show(); }, function () { $(this).find(".xialapb").hide(); }); $(".xialapr").hover(function () { $(this).find(".xialapb").show(); $(this).removeClass("xialapr").addClass("xialaprh"); }, function () { $(this).removeClass("xialaprh").addClass("xialapr"); $(this).find(".xialapb").hide(); }); $(".xialapr").click(function () { $(this).parent().parent().find("input").val($(this).text()); $(".xialapb").hide(); }); $(".xialapp").hover(function () { $(this).find(".xialapbp").show(); }, function () { $(this).find(".xialapbp").hide(); }); $(".xialaprp").hover(function () { $(this).find(".xialapbp").show(); $(this).removeClass("xialaprp").addClass("xialaprhp"); }, function () { $(this).removeClass("xialaprhp").addClass("xialaprp"); $(this).find(".xialapbp").hide(); }); $(".xialaprp").click(function () { $(this).parent().parent().find("input").val($(this).text()); $(".xialapbp").hide(); }); }); function CorrectText() { CY_ECommercePlatform/CY.WebForm/Pages/business/AgSpecialOrderEdit.aspx.cs
@@ -36,6 +36,7 @@ public string printCount = ""; public string[] Width = new string[7]; public string[] Lenth = new string[7]; public string xialapr = ""; //åå§å public AgSpecialOrderEdit() { @@ -81,6 +82,12 @@ { PressesDeskHtml += "<option value='" + item.ParName + "'>" + item.ParName + "</option>"; } } var sss = bll_EC_MemberDictionaryBLL.SelectListByMemberIdAndParType(CurrentUser.MemberId, "çæè§æ ¼"); foreach (var eC_MemberDictionary in sss) { xialapr += " <div class=\"xialaprp\">" + eC_MemberDictionary.ParName + "</div>"; } if (m_EC_MemberDictionaryList_o != null && m_EC_MemberDictionaryList_o.Count > 0) { @@ -365,6 +372,7 @@ string[] PSF_BigPaperCount = Request["PSF_BigPaperCount"].ToString2().Split(','); string[] PSF_OpenSpecifications = Request["PSF_OpenSpecifications"].ToString2().Split(','); string[] PSF_OpenWidth = Request["PSF_OpenWidth"].ToString2().Split(','); string[] PSF_OpenWidthName = Request["PSF_OpenWidthName"].ToString2().Split(','); string[] PSF_OpenLength = Request["PSF_OpenLength"].ToString2().Split(','); string[] selPlateType = Request["selPlateType"].ToString2().Split(','); @@ -484,7 +492,19 @@ //} m_EC_SpecialForums.PSF_BigPaperCount = 0; m_EC_SpecialForums.PSF_OpenSpecifications = PSF_OpenSpecifications[i].ToString2().Replace("ï¼+-+ï¼", ","); if (PSF_PressesDesk[i].IndexOf("轮转")>=0) { if (PSF_OpenWidthName[i].ToInt32() == null) { m_EC_SpecialForums.PSF_OpenWidth = 0; } else { m_EC_SpecialForums.PSF_OpenWidth = PSF_OpenWidthName[i].ToInt32(); } } else { if (PSF_OpenWidth[i].ToInt32() == null) { m_EC_SpecialForums.PSF_OpenWidth = 0; @@ -493,6 +513,8 @@ { m_EC_SpecialForums.PSF_OpenWidth = PSF_OpenWidth[i].ToInt32(); } } if (PSF_OpenLength[i].ToInt32() == null) { CY_ECommercePlatform/CY.WebForm/Pages/business/AgSpecialOrderEdit.aspx.designer.cs
@@ -2,15 +2,17 @@ // <èªå¨çæ> // æ¤ä»£ç ç±å·¥å ·çæã // // å¯¹æ¤æä»¶çæ´æ¹å¯è½ä¼å¯¼è´ä¸æ£ç¡®çè¡ä¸ºï¼å¹¶ä¸å¦æ // éæ°çæä»£ç ï¼è¿äºæ´æ¹å°ä¼ä¸¢å¤±ã // å¯¹æ¤æä»¶çæ´æ¹å¯è½å¯¼è´ä¸æ£ç¡®çè¡ä¸ºï¼å¦æ // éæ°çæä»£ç ï¼åæåæ´æ¹å°ä¸¢å¤±ã // </èªå¨çæ> //------------------------------------------------------------------------------ namespace CY.WebForm.Pages.business { namespace CY.WebForm.Pages.business { public partial class AgSpecialOrderEdit { public partial class AgSpecialOrderEdit { /// <summary> /// CMSHead1 æ§ä»¶ã CY_ECommercePlatform/CY.WebForm/Pages/business/DeliverWorkBookPrint.aspx
@@ -46,7 +46,19 @@ } //å é¤ function onDeles(orderid) { top.Dialog.open({ URL: "/Pages/business/DeliverWorkBookPrintDetail.aspx?orderid=" + orderid, Title: "æ¹éæå°éè´§å", Width: 1000, Height: 900 }); var keyid = ""; var num = 0; $(".SelectCheck:checked").each(function (ii, vv) { keyid = keyid + "," + $(vv).attr("value_kid"); num++; }); if (num == 0) { alertMsg("æªéä¸ä»»ä½å¦æ ¡"); return; } top.Dialog.open({ URL: "/Pages/business/DeliverWorkBookPrintDetail.aspx?orderid=" + keyid, Title: "æ¹éæå°éè´§å", Width: 1000, Height: 900 }); } //æ¹éå é¤ @@ -115,6 +127,7 @@ <HeaderTemplate> <table class="tableStyle"> <tr> <th width="25"></th> <th width="30" style="text-align: center"> ç¼å· </th> @@ -131,7 +144,9 @@ </HeaderTemplate> <ItemTemplate> <tr> <td> <input type="checkbox" class="SelectCheck" value_kid="<%#Eval("id")%>" /> </td> <td style="text-align: center"> <%#Container.ItemIndex + 1%> </td> CY_ECommercePlatform/CY.WebForm/Pages/business/DeliverWorkBookPrintDetail.aspx.cs
@@ -97,7 +97,7 @@ { //å¦ææ¯æ¹éæå° string orderIdStr = Request["orderId"]; this.hideOrderId.Value = orderIdStr; //妿æ¯åªæå°ä¸å¼ string PlanOrderidStr = Request["PlanOrderid"]; @@ -106,9 +106,11 @@ var coreCmsPlanOrders = new List<CoreCmsPlanOrder>(); if (!string.IsNullOrEmpty(orderIdStr)) { var ssss = bll_CoreCmsPlanOrderBLL.GetModelByorderid(orderIdStr.ToInt32().Value); orderIdStr = orderIdStr.Substring(1); this.hideOrderId.Value = orderIdStr; var ssss = bll_CoreCmsPlanOrderBLL.GetModelByids(orderIdStr); coreCmsPlanOrders = ssss.ToList(); orderkeyid = orderIdStr.ToInt32().Value; orderkeyid = coreCmsPlanOrders[0].orderkeyid.Value; } else if (!string.IsNullOrEmpty(PlanOrderidStr)) { CY_ECommercePlatform/CY.WebForm/Pages/business/OrderEdit.aspx
@@ -9,7 +9,7 @@ <link rel="stylesheet" type="text/css" href="../../Styles/base.css" /> <link href="../../Styles/changes.css" rel="stylesheet" type="text/css" /> <link href="../../Styles/ParticularWQJ.css" rel="stylesheet" type="text/css" /> <script src="../../js/Inquiry/Inquiry.js?v=87 type="text/javascript"></script> <script src="../../js/Inquiry/Inquiry.js?v=89 type="text/javascript"></script> <script src="../../js/business/Order.js?v=36" type="text/javascript"></script> <!--åå°é¡µé¢end--> <script type="text/javascript" language="javascript"> CY_ECommercePlatform/CY.WebForm/Pages/business/PlanOrderList.aspx.cs
@@ -29,6 +29,7 @@ //WorkBookTypeBLL _WorkBookTypeBLL = new WorkBookTypeBLL(); CoreCmsPlanOrderItemBLL _coreCmsPlanOrderItemBLL = new CoreCmsPlanOrderItemBLL(); EC_OrderPrintParameterBLL _OrderPrintParameterBLL = new EC_OrderPrintParameterBLL(); OA_CorporateClientsBLL bll_OA_CorporateClientsBLL = new OA_CorporateClientsBLL(); public string orderkeyid = ""; protected void Page_Load(object sender, EventArgs e) @@ -198,6 +199,7 @@ return; } var lie = new List<JiHuaOrder>(); var jiHuaOrderDetails = new List<JiHuaOrderDetail>(); using (var fileStream = file.InputStream) { // 使ç¨HSSFWorkbookæå¼.xlsæ ¼å¼çæä»¶ @@ -206,10 +208,41 @@ // è·å第ä¸ä¸ªå·¥ä½è¡¨ ISheet sheet = workbook.GetSheetAt(0); //è·å表头ä½ä¸æ¬åç§° for (int i = 0; i < 1; i++) { IRow row = sheet.GetRow(i); int j = 5; while (true) { var jiHuaOrderDetail = new JiHuaOrderDetail(); ICell cell1 = row.GetCell(j); if (cell1 == null) { break; } jiHuaOrderDetail.name = getcellvalue(cell1); if (string.IsNullOrEmpty(jiHuaOrderDetail.name)) { break; } j += 1; jiHuaOrderDetails.Add(jiHuaOrderDetail); } } // è¿ä»£å·¥ä½è¡¨ä¸çææè¡ for (int i = 1; i <= sheet.LastRowNum; i++) { var hang = new JiHuaOrder(); var jiHuaOrderDetails1 = new List<JiHuaOrderDetail>(); IRow row = sheet.GetRow(i); if (row == null) continue; // è·³è¿ç©ºè¡ @@ -217,87 +250,52 @@ ICell cell0 = row.GetCell(0); if (cell0 == null) { JavaScript.MessageBox("第" + (i + 1) + "å¸ä¸è½ä¸ºç©º", this); JavaScript.MessageBox("第" + (i + 1) + "çåºä¸è½ä¸ºç©º", this); return; } hang.shi = getcellvalue(cell0); hang.pianqu = getcellvalue(cell0); ICell cell1 = row.GetCell(1); if (cell1 == null) { JavaScript.MessageBox("第" + (i + 1) + "åºå¿ä¸è½ä¸ºç©º", this); JavaScript.MessageBox("第" + (i + 1) + "妿 ¡ä¸è½ä¸ºç©º", this); return; } hang.quxian = getcellvalue(cell1); hang.shipAddress = getcellvalue(cell1); ICell cell2 = row.GetCell(2); if (cell2 == null) { JavaScript.MessageBox("第" + (i + 1) + "çåºä¸è½ä¸ºç©º", this); JavaScript.MessageBox("第" + (i + 1) + "è系人ä¸è½ä¸ºç©º", this); return; } hang.pianqu = getcellvalue(cell2); hang.shipName = getcellvalue(cell2); ICell cell3 = row.GetCell(3); if (cell3 == null) { JavaScript.MessageBox("第" + (i + 1) + "妿 ¡ä¸è½ä¸ºç©º", this); JavaScript.MessageBox("第" + (i + 1) + "èç³»çµè¯ä¸è½ä¸ºç©º", this); return; } hang.shipAddress = getcellvalue(cell3); hang.shipMobile = getcellvalue(cell3); ICell cell4 = row.GetCell(4); if (cell4 == null) { JavaScript.MessageBox("第" + (i + 1) + "è系人ä¸è½ä¸ºç©º", this); return; } hang.shipName = getcellvalue(cell4); ICell cell5 = row.GetCell(5); if (cell5 == null) { JavaScript.MessageBox("第" + (i + 1) + "èç³»çµè¯ä¸è½ä¸ºç©º", this); return; } hang.shipMobile = getcellvalue(cell5); ICell cell6 = row.GetCell(6); if (cell6 == null) { JavaScript.MessageBox("第" + (i + 1) + "æ¶è´§å°åä¸è½ä¸ºç©º", this); return; } hang.shouhuoAddress = getcellvalue(cell6); hang.shouhuoAddress = getcellvalue(cell4); ICell cell7 = row.GetCell(7); if (cell7 == null) for(int j=0; j< jiHuaOrderDetails.Count; j++) { JavaScript.MessageBox("第" + (i + 1) + "åååç§°ä¸è½ä¸ºç©º", this); return ; } hang.name = getcellvalue(cell7); var jiHuaOrderDetail = new JiHuaOrderDetail(); jiHuaOrderDetail.name = jiHuaOrderDetails[j].name; ICell cell8 = row.GetCell(8); if (cell8 == null) { JavaScript.MessageBox("第" + (i + 1) + "è§æ ¼ä¸è½ä¸ºç©º", this); return ; } hang.specification = getcellvalue(cell8); //ICell cell9 = row.GetCell(9); //if (cell9 == null) //{ // JavaScript.MessageBox("第" + (i + 1) + "åä»·ï¼å ï¼ä¸è½ä¸ºç©º", this); // return ; //} //hang.price = decimal.Parse(getcellvalue(cell9)); ICell cell9 = row.GetCell(9); ICell cell9 = row.GetCell(j+5); if (cell9 == null) { JavaScript.MessageBox("第" + (i + 1) + "æ°éä¸è½ä¸ºç©º", this); @@ -305,28 +303,42 @@ } int aaa = 0; int.TryParse(getcellvalue(cell9), out aaa); hang.nums = aaa; jiHuaOrderDetail.nums = aaa; jiHuaOrderDetails1.Add(jiHuaOrderDetail); } //ICell cell7 = row.GetCell(7); //if (cell7 == null) //{ // JavaScript.MessageBox("第" + (i + 1) + "åååç§°ä¸è½ä¸ºç©º", this); // return ; //} //hang.name = getcellvalue(cell7); //ICell cell8 = row.GetCell(8); //if (cell8 == null) //{ // JavaScript.MessageBox("第" + (i + 1) + "è§æ ¼ä¸è½ä¸ºç©º", this); // return ; //} //hang.specification = getcellvalue(cell8); hang.jiHuaOrderDetails = jiHuaOrderDetails1; lie.Add(hang); } } if (lie != null && lie.Count > 0) { if (string.IsNullOrEmpty(lie[0].shi)) { JavaScript.MessageBox("第" + 1 + "å¸ä¸è½ä¸ºç©º", this); return; } if (string.IsNullOrEmpty(lie[0].quxian)) { JavaScript.MessageBox("第" + 1 + "åºå¿ä¸è½ä¸ºç©º", this); return; } for (int i = 0; i < lie.Count; i++) { if (!string.IsNullOrEmpty(lie[i].shipAddress)) @@ -340,23 +352,74 @@ } if (string.IsNullOrEmpty(lie[i].name)) for(int j = 0;j< lie[i].jiHuaOrderDetails.Count; j++) { if (string.IsNullOrEmpty(lie[i].jiHuaOrderDetails[j].name)) { JavaScript.MessageBox("第" + (i + 1) + "åååç§°ä¸è½ä¸ºç©º", this); return; } } if (string.IsNullOrEmpty(lie[i].specification)) { JavaScript.MessageBox("第" + (i + 1) + "è§æ ¼ä¸è½ä¸ºç©º", this); return; //if (string.IsNullOrEmpty(lie[i].specification)) //{ // JavaScript.MessageBox("第" + (i + 1) + "è§æ ¼ä¸è½ä¸ºç©º", this); // return; //} } } } var orderid = HideKeyid.Value; var sys_CitySites = bll_Sys_CitySiteBLL.SelectAllModel(null).ToList(); var eC_OrderPrintParameter = _OrderPrintParameterBLL.GetModel(orderid.ToInt32().Value); ; InquiryCommonModel model = SerializationHelper.DeSerialize(typeof(InquiryCommonModel), eC_OrderPrintParameter.PrintParameter) as InquiryCommonModel; var eC_OrderBasic = _eC_OrderBasicBLL.SelectModelById(orderid.ToInt32().Value); var Province = ""; var City = ""; var County = ""; int Provinceid = 0; int Cityid = 0; int Countyid = 0; if (eC_OrderBasic != null) { var customerCommunications = bll_OA_CorporateClientsBLL.GetModel_CustomerCommunications(eC_OrderBasic.BuyerId); Province = customerCommunications.Province; City = customerCommunications.City; County = customerCommunications.County; var sys_CitySite = bll_Sys_CitySiteBLL.GetModelByName(Province); if (sys_CitySite != null) { Provinceid = sys_CitySite.Keyid; var sys_CitySite1 = bll_Sys_CitySiteBLL.SelectAllNextModel(sys_CitySite.Keyid, 0, 2).FirstOrDefault(x => x.Name == City); if (sys_CitySite1 != null) { Cityid = sys_CitySite1.Keyid; var sys_CitySite2 = bll_Sys_CitySiteBLL.SelectAllNextModel(sys_CitySite.Keyid, sys_CitySite1.Keyid, 3).FirstOrDefault(x => x.Name == County); if (sys_CitySite2 != null) { Countyid = sys_CitySite2.Keyid; } } } } using (TransactionScope scope = new TransactionScope(TransactionScopeOption.Required, new TransactionOptions @@ -370,72 +433,81 @@ string pianqu = ""; if (lie != null && lie.Count > 0) { var order = new List<JiHuaOrder>(); for (int i = 0; i < lie.Count; i++) { if (i == 0) { order.Add(lie[i]); pianqu = lie[i].pianqu; for (int j = 0; j < lie.Count; j++) { var coreCmsPlanOrder = _PlanOrderBLL.GetModelByorderid(HideKeyid.Value.ToInt32().Value).Where(x => x.shipAddress == lie[j].shipAddress && x.shouhuoAddress == lie[j].shouhuoAddress).FirstOrDefault(); if (coreCmsPlanOrder == null) { CoreCmsPlanOrder order = new CoreCmsPlanOrder(); order.status = 1; order.shipMobile = lie[j].shipMobile; order.shipAddress = lie[j].shipAddress; order.shipName = lie[j].shipName; order.shouhuoAddress = lie[j].shouhuoAddress; order.userMobile = lie[j].shipMobile; order.createBy = CurrentUser.ShortName; order.createTime = DateTime.Now; order.upDataBy = CurrentUser.ShortName; order.upDataTime = DateTime.Now; order.isdelete = false; order.orderkeyid = HideKeyid.Value.ToInt32(); order.FirmId = CurrentUser.MemberId; order.sheng = Province; order.shi = City; order.quxian = County; order.shengId = Provinceid; order.shiId = Cityid; order.quxianId = Countyid; } else order.pianqu = lie[j].pianqu; var jiHuaOrders = lie[j].jiHuaOrderDetails; decimal orderAmount = 0; var cmsPlanOrderItems = new List<CoreCmsPlanOrderItem>(); for (int i = 0; i < jiHuaOrders.Count; i++) { if (string.IsNullOrEmpty(lie[i].shipAddress)) var workbook = model.InquiryWorkBookList.FirstOrDefault(x => (x.WorkBookSizeTxt + x.WorkBookNameTxt ) == jiHuaOrders[i].name || (x.WorkBookNameTxt + x.WorkBookSizeTxt ) == jiHuaOrders[i].name); if (workbook == null) { order.Add(lie[i]); } else { //ä¿å订å //jm = await _coreCmsPlanOrderServices.ToAddJiHua(order, _user.ID, _user.Name); //if (jm.code == 1) //{ // return jm; //} string res = saveorder(order,model.InquiryWorkBookList,sys_CitySites); if (!string.IsNullOrEmpty(res)) { JavaScript.MessageBox(res, this); JavaScript.MessageBox(jiHuaOrders[i].name + "没æ¾å°åä»·", this); return; } order = new List<JiHuaOrder>(); if (string.IsNullOrEmpty(lie[i].shi)) { lie[i].shi = lie[0].shi; var item = new CoreCmsPlanOrderItem(); item.orderId = 0; item.name = workbook.WorkBookNameTxt; item.specification = workbook.WorkBookSizeTxt; item.price = workbook.WorkBookPrice.ToDecimal2().Value;//jiHuaOrders[i].price; item.fengmian = string.IsNullOrEmpty(workbook.fengmian) ? "" : workbook.fengmian; item.neiye = string.IsNullOrEmpty(workbook.neiye) ? "" : workbook.neiye; item.nums = jiHuaOrders[i].nums; ; item.amount = item.price * (decimal)jiHuaOrders[i].nums; item.createBy = CurrentUser.ShortName; item.createTime = DateTime.Now; item.upDataBy = CurrentUser.ShortName; item.upDataTime = DateTime.Now; item.isdelete = false; item.isOld = true; cmsPlanOrderItems.Add(item); orderAmount += item.amount; } if (string.IsNullOrEmpty(lie[i].quxian)) order.orderAmount = orderAmount; order.oldOrderAmount = orderAmount; order.keYongAmount = 0; order.huaFeiAmount = 0; var id = _PlanOrderBLL.InsertModelIden(order); var ssss = false; foreach (var cmsPlanOrderItem in cmsPlanOrderItems) { lie[i].quxian = lie[0].quxian; } if (string.IsNullOrEmpty(lie[i].pianqu)) { lie[i].pianqu = pianqu; } else { pianqu = lie[i].pianqu; } order.Add(lie[i]); cmsPlanOrderItem.orderId = id; ssss = _PlanOrderBLL.insertModelOrderItem(cmsPlanOrderItem); } } if (i == lie.Count - 1) { //ä¿å订å //jm = await _coreCmsPlanOrderServices.ToAddJiHua(order, _user.ID, _user.Name); //if (jm.code == 1) //{ // return jm; //} string res = saveorder(order, model.InquiryWorkBookList, sys_CitySites); if (!string.IsNullOrEmpty(res)) { JavaScript.MessageBox(res, this); return; } } } CY_ECommercePlatform/CY.WebForm/Pages/front/WorkBook.aspx
@@ -60,7 +60,7 @@ <div id="WorkBooka1"> <table class="table2" style="margin-top: 0px;"> <tr> <th colspan="10" align="left">ä½ä¸æ¬</th> <th colspan="10" align="left">1</th> </tr> <tr> <td align="left">åå:</td> @@ -169,7 +169,7 @@ <div id="WorkBooka2" style="display:none;"> <table class="table2" style="margin-top: 0px;"> <tr> <th colspan="10" align="left">ä½ä¸æ¬2</th> <th colspan="10" align="left">2</th> </tr> <tr> <td align="left">åå:</td> @@ -278,7 +278,7 @@ <div id="WorkBooka3" style="display:none;"> <table class="table2" style="margin-top: 0px;"> <tr> <th colspan="10" align="left">ä½ä¸æ¬3</th> <th colspan="10" align="left">3</th> </tr> <tr> <td align="left">åå:</td> @@ -385,7 +385,7 @@ <div id="WorkBooka4" style="display:none;"> <table class="table2" style="margin-top: 0px;"> <tr> <th colspan="10" align="left">ä½ä¸æ¬4</th> <th colspan="10" align="left">4</th> </tr> <tr> <td align="left">åå:</td> @@ -492,7 +492,7 @@ <div id="WorkBooka5" style="display:none;"> <table class="table2" style="margin-top: 0px;"> <tr> <th colspan="10" align="left">ä½ä¸æ¬5</th> <th colspan="10" align="left">5</th> </tr> <tr> <td align="left">åå:</td> @@ -599,7 +599,7 @@ <div id="WorkBooka6" style="display:none;"> <table class="table2" style="margin-top: 0px;"> <tr> <th colspan="10" align="left">ä½ä¸æ¬6</th> <th colspan="10" align="left">6</th> </tr> <tr> <td align="left">åå:</td> @@ -706,7 +706,7 @@ <div id="WorkBooka7" style="display:none;"> <table class="table2" style="margin-top: 0px;"> <tr> <th colspan="10" align="left">ä½ä¸æ¬7</th> <th colspan="10" align="left">7</th> </tr> <tr> <td align="left">åå:</td> @@ -813,7 +813,7 @@ <div id="WorkBooka8" style="display:none;"> <table class="table2" style="margin-top: 0px;"> <tr> <th colspan="10" align="left">ä½ä¸æ¬8</th> <th colspan="10" align="left">8</th> </tr> <tr> <td align="left">åå:</td> @@ -920,7 +920,7 @@ <div id="WorkBooka9" style="display:none;" > <table class="table2" style="margin-top: 0px;"> <tr> <th colspan="10" align="left">ä½ä¸æ¬9</th> <th colspan="10" align="left">9</th> </tr> <tr> <td align="left">åå:</td> @@ -1027,7 +1027,7 @@ <div id="WorkBooka10" style="display:none;" > <table class="table2" style="margin-top: 0px;"> <tr> <th colspan="10" align="left">ä½ä¸æ¬10</th> <th colspan="10" align="left">10</th> </tr> <tr> <td align="left">åå:</td> @@ -1134,7 +1134,7 @@ <div id="WorkBooka11" style="display:none;" > <table class="table2" style="margin-top: 0px;"> <tr> <th colspan="10" align="left">ä½ä¸æ¬11</th> <th colspan="10" align="left">11</th> </tr> <tr> <td align="left">åå:</td> @@ -1241,7 +1241,7 @@ <div id="WorkBooka12" style="display:none;" > <table class="table2" style="margin-top: 0px;"> <tr> <th colspan="10" align="left">ä½ä¸æ¬12</th> <th colspan="10" align="left">12</th> </tr> <tr> <td align="left">åå:</td> @@ -1348,7 +1348,7 @@ <div id="WorkBooka13" style="display:none;" > <table class="table2" style="margin-top: 0px;"> <tr> <th colspan="10" align="left">ä½ä¸æ¬13</th> <th colspan="10" align="left">13</th> </tr> <tr> <td align="left">åå:</td> @@ -1455,7 +1455,7 @@ <div id="WorkBooka14" style="display:none;" > <table class="table2" style="margin-top: 0px;"> <tr> <th colspan="10" align="left">ä½ä¸æ¬14</th> <th colspan="10" align="left">14</th> </tr> <tr> <td align="left">åå:</td> @@ -1562,7 +1562,7 @@ <div id="WorkBooka15" style="display:none;" > <table class="table2" style="margin-top: 0px;"> <tr> <th colspan="10" align="left">ä½ä¸æ¬15</th> <th colspan="10" align="left">15</th> </tr> <tr> <td align="left">åå:</td> @@ -1669,7 +1669,7 @@ <div id="WorkBooka16" style="display:none;" > <table class="table2" style="margin-top: 0px;"> <tr> <th colspan="10" align="left">ä½ä¸æ¬16</th> <th colspan="10" align="left">16</th> </tr> <tr> <td align="left">åå:</td> @@ -1776,7 +1776,7 @@ <div id="WorkBooka17" style="display:none;" > <table class="table2" style="margin-top: 0px;"> <tr> <th colspan="10" align="left">ä½ä¸æ¬17</th> <th colspan="10" align="left">17</th> </tr> <tr> <td align="left">åå:</td> @@ -1883,7 +1883,7 @@ <div id="WorkBooka18" style="display:none;" > <table class="table2" style="margin-top: 0px;"> <tr> <th colspan="10" align="left">ä½ä¸æ¬18</th> <th colspan="10" align="left">18</th> </tr> <tr> <td align="left">åå:</td> @@ -1990,7 +1990,7 @@ <div id="WorkBooka19" style="display:none;" > <table class="table2" style="margin-top: 0px;"> <tr> <th colspan="10" align="left">ä½ä¸æ¬19</th> <th colspan="10" align="left">19</th> </tr> <tr> <td align="left">åå:</td> @@ -2097,7 +2097,7 @@ <div id="WorkBooka20" style="display:none;" > <table class="table2" style="margin-top: 0px;"> <tr> <th colspan="10" align="left">ä½ä¸æ¬20</th> <th colspan="10" align="left">20</th> </tr> <tr> <td align="left">åå:</td> @@ -2204,7 +2204,7 @@ <div id="WorkBooka21" style="display:none;" > <table class="table2" style="margin-top: 0px;"> <tr> <th colspan="10" align="left">ä½ä¸æ¬21</th> <th colspan="10" align="left">21</th> </tr> <tr> <td align="left">åå:</td> @@ -2311,7 +2311,7 @@ <div id="WorkBooka22" style="display:none;" > <table class="table2" style="margin-top: 0px;"> <tr> <th colspan="10" align="left">ä½ä¸æ¬22</th> <th colspan="10" align="left">22</th> </tr> <tr> <td align="left">åå:</td> @@ -2418,7 +2418,7 @@ <div id="WorkBooka23" style="display:none;" > <table class="table2" style="margin-top: 0px;"> <tr> <th colspan="10" align="left">ä½ä¸æ¬23</th> <th colspan="10" align="left">23</th> </tr> <tr> <td align="left">åå:</td> @@ -2525,7 +2525,7 @@ <div id="WorkBooka24" style="display:none;" > <table class="table2" style="margin-top: 0px;"> <tr> <th colspan="10" align="left">ä½ä¸æ¬24</th> <th colspan="10" align="left">24</th> </tr> <tr> <td align="left">åå:</td> @@ -2632,7 +2632,7 @@ <div id="WorkBooka25" style="display:none;" > <table class="table2" style="margin-top: 0px;"> <tr> <th colspan="10" align="left">ä½ä¸æ¬25</th> <th colspan="10" align="left">25</th> </tr> <tr> <td align="left">åå:</td> @@ -2739,7 +2739,7 @@ <div id="WorkBooka26" style="display:none;" > <table class="table2" style="margin-top: 0px;"> <tr> <th colspan="10" align="left">ä½ä¸æ¬26</th> <th colspan="10" align="left">26</th> </tr> <tr> <td align="left">åå:</td> @@ -2846,7 +2846,7 @@ <div id="WorkBooka27" style="display:none;" > <table class="table2" style="margin-top: 0px;"> <tr> <th colspan="10" align="left">ä½ä¸æ¬27</th> <th colspan="10" align="left">27</th> </tr> <tr> <td align="left">åå:</td> @@ -2953,7 +2953,7 @@ <div id="WorkBooka28" style="display:none;" > <table class="table2" style="margin-top: 0px;"> <tr> <th colspan="10" align="left">ä½ä¸æ¬28</th> <th colspan="10" align="left">28</th> </tr> <tr> <td align="left">åå:</td> @@ -3060,7 +3060,7 @@ <div id="WorkBooka29" style="display:none;" > <table class="table2" style="margin-top: 0px;"> <tr> <th colspan="10" align="left">ä½ä¸æ¬29</th> <th colspan="10" align="left">29</th> </tr> <tr> <td align="left">åå:</td> @@ -3167,7 +3167,7 @@ <div id="WorkBooka30" style="display:none;" > <table class="table2" style="margin-top: 0px;"> <tr> <th colspan="10" align="left">ä½ä¸æ¬30</th> <th colspan="10" align="left">30</th> </tr> <tr> <td align="left">åå:</td> @@ -3279,7 +3279,7 @@ <tr> <td align="left"> <label class="Btnb"> <input type="button" id="WorkBookAdd" value="ä½ä¸æ¬2" class="Btn add nadd" onclick="WorkBookAddClick();" /></label> <input type="button" id="WorkBookAdd" value=" 2 " class="Btn add nadd" onclick="WorkBookAddClick();" /></label> <label class="Btnb"> <input type="button" value="å é¤" id="WorkBookDel" class="Btn add" onclick="WorkBookDelClick();" /></label> <input type="hidden" id="hidWorkBookPageNum" name="hidWorkBookPageNum" value="1" maxValue="30" minValue="1"/> CY_ECommercePlatform/CY.WebForm/Styles/base.css
@@ -114,6 +114,54 @@ .xialap .xialapb .xialapr{width:82px; height: 20px;_height: 18px; line-height: 20px;_line-height: 18px;cursor:pointer;} .xialap .xialapb .xialaprh{width:82px;height: 20px;_height: 18px; line-height: 20px;_line-height: 18px;cursor:pointer;background-color:#3399ff;color:White} /*䏿æ¡*/ .xialap{text-align:center;position: relative; width:80px} .xialap .xialapb{border: solid 1px #b2b2b2; background-color: White; position:absolute; z-index:10;_top:15px; _left:0px;left:0px;top:18px;display:none;text-align:left;} .xialap .xialapb .xialapr{width:82px; height: 20px;_height: 18px; line-height: 20px;_line-height: 18px;cursor:pointer;} .xialap .xialapb .xialaprh{width:82px;height: 20px;_height: 18px; line-height: 20px;_line-height: 18px;cursor:pointer;background-color:#3399ff;color:White} /*䏿æ¡*/ .xialapp { text-align: center; position: relative; width: 80px } .xialapp .xialapbp { border: solid 1px #b2b2b2; background-color: White; position: absolute; z-index: 10; _top: 15px; _left: 0px; left: 0px; top: 18px; display: none; text-align: left; } .xialapp .xialapbp .xialaprp { width: 82px; height: 20px; _height: 18px; line-height: 20px; _line-height: 18px; cursor: pointer; } .xialapp .xialapbp .xialaprhp { width: 82px; height: 20px; _height: 18px; line-height: 20px; _line-height: 18px; cursor: pointer; background-color: #3399ff; color: White } .Btnb{border:solid 1px #ffbd76; display:inline-block;} .Btnb .Btn{height:22px;line-height:22px;padding:0px 5px;border:0px;background:url(../../images/Common/Site_btn_bg.png) repeat-x 0px 0px;color:#d83d00;cursor:pointer;text-decoration:none; display:inline-block;} CY_ECommercePlatform/CY.WebForm/images/jihuageshi/ÉÏ´«¼Æ»®¶©µ¥.xlsxBinary files differ
CY_ECommercePlatform/CY.WebForm/js/Inquiry/Inquiry.js
@@ -228,14 +228,14 @@ var minValue = $("#hidWorkBookPageNum").attr("minValue"); var newValue = parseInt(hidValue) + 1; if (newValue > maxValue) { alertMsg("ä½ä¸æ¬æ°å¢ä¸è½è¶ è¿30个ï¼"); alertMsg("æ°å¢ä¸è½è¶ è¿30个ï¼"); return; } $("#WorkBooka" + newValue + "").show(); $("#hidWorkBookPageNum").val(newValue); if (newValue != maxValue) { var value = newValue + 1; $("#WorkBookAdd").val("ä½ä¸æ¬" + value); $("#WorkBookAdd").val(" " + value +" " ); } $("#WorkBookNamea" + newValue + "").val((parseInt($("#WorkBookNamea" + hidValue + "").val())+1)); $("#WorkBookSizea" + newValue + "").val($("#WorkBookSizea" + hidValue + "").val());