| | |
| | | |
| | | |
| | | /// <summary> |
| | | /// 根据编号获取设计订单信息 |
| | | /// </summary> |
| | | /// <param name="orderId">订单唯一编号</param> |
| | | /// <returns></returns> |
| | | public EC_OrderBasic SelectModelByxiadanId(int orderId) |
| | | { |
| | | return _eC_OrderBasicDAL.SelectModelByxiadanId(orderId); |
| | | } |
| | | |
| | | |
| | | /// <summary> |
| | | /// 根据编号获取订单信息 |
| | | /// </summary> |
| | | /// <param name="orderId">订单唯一编号</param> |
| | |
| | | /// </summary> |
| | | /// <param name="orderId"></param> |
| | | /// <returns></returns> |
| | | public bool UpShejiStatus(int Keyid, int ShejiStatus, string Operator) |
| | | public bool UpShejiStatus(int Keyid, int ShejiStatus, string Operator, int XiadanKeyid) |
| | | { |
| | | return _eC_OrderExtendDAL.UpShejiStatus(Keyid, ShejiStatus, Operator); |
| | | return _eC_OrderExtendDAL.UpShejiStatus(Keyid, ShejiStatus, Operator, XiadanKeyid); |
| | | } |
| | | |
| | | /// <summary> |
| | |
| | | /// <returns></returns> |
| | | EC_OrderBasic SelectModelById(int orderId); |
| | | |
| | | |
| | | /// <summary> |
| | | /// 根据编号获取订单信息 |
| | | /// </summary> |
| | | /// <param name="orderId">订单唯一编号</param> |
| | | /// <returns></returns> |
| | | EC_OrderBasic SelectModelByxiadanId(int orderId); |
| | | |
| | | /// <summary> |
| | | /// 根据订单编号获取订单 |
| | | /// </summary> |
| | |
| | | /// <param name="SurplusPrintNum"></param> |
| | | /// <param name="Operator"></param> |
| | | /// <returns></returns> |
| | | bool UpShejiStatus(int Keyid, int ShejiStatus, string Operator); |
| | | bool UpShejiStatus(int Keyid, int ShejiStatus, string Operator, int XiadanKeyid); |
| | | |
| | | |
| | | /// <summary> |
| | |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 设计订单下单返回XiadanKeyid |
| | | /// </summary> |
| | | public int? XiadanKeyid |
| | | { |
| | | get; |
| | | set; |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 是否结算 `1是2否 |
| | | /// </summary> |
| | | public int? shifoujiesuan |
| | |
| | | this.shifoujiesuan = isChange ? MyConvert.ConvertToInt32(value) : this.shifoujiesuan; |
| | | theValue = this.shifoujiesuan; |
| | | } |
| | | else if ("XiadanKeyid".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 142) |
| | | { |
| | | this.XiadanKeyid = isChange ? MyConvert.ConvertToInt32(value) : this.XiadanKeyid; |
| | | theValue = this.XiadanKeyid; |
| | | } |
| | | |
| | | |
| | | #endregion |
| | | |
| | |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 设计订单下单返回XiadanKeyid |
| | | /// </summary> |
| | | public int? XiadanKeyid |
| | | { |
| | | get; |
| | | set; |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 是否结算 `1是2否 |
| | | /// </summary> |
| | | public int? shifoujiesuan |
| | |
| | | theValue = this.shifoujiesuan; |
| | | } |
| | | |
| | | else if ("XiadanKeyid".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 94) |
| | | { |
| | | this.XiadanKeyid = isChange ? MyConvert.ConvertToInt32(value) : this.XiadanKeyid; |
| | | theValue = this.XiadanKeyid; |
| | | } |
| | | |
| | | #endregion |
| | | |
| | | |
| | |
| | | |
| | | |
| | | /// <summary> |
| | | /// 根据编号获取订单信息 |
| | | /// </summary> |
| | | /// <param name="orderId">订单唯一编号</param> |
| | | /// <returns></returns> |
| | | public EC_OrderBasic SelectModelByxiadanId(int orderId) |
| | | { |
| | | if (0 >= orderId) |
| | | { |
| | | return null; |
| | | } |
| | | else |
| | | { |
| | | } |
| | | string condition = " "; |
| | | if (orderId > 0) |
| | | { |
| | | condition = " b.[XiadanKeyid]=" + orderId + ""; |
| | | } |
| | | else |
| | | { |
| | | return null; |
| | | } |
| | | |
| | | |
| | | try |
| | | { |
| | | IList<EC_OrderBasic> result = _dataBase.SelectModel<EC_OrderBasic>("a.*", " EC_OrderBasic a inner join [EC_OrderExtend] b on a.[Keyid] = b.[Keyid] ", condition) as IList<EC_OrderBasic>;//执行查询 |
| | | |
| | | return (null == result || result.Count == 0) ? null : result[0];//返回结果 |
| | | |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | throw ex; |
| | | } |
| | | |
| | | } |
| | | |
| | | |
| | | /// <summary> |
| | | /// 根据订单编号获取订单 |
| | | /// </summary> |
| | | /// <param name="orderIds">订单编号</param> |
| | |
| | | /// <param name="SurplusPrintNum"></param> |
| | | /// <param name="Operator"></param> |
| | | /// <returns></returns> |
| | | public bool UpShejiStatus(int Keyid, int ShejiStatus, string Operator) |
| | | public bool UpShejiStatus(int Keyid, int ShejiStatus, string Operator, int XiadanKeyid) |
| | | { |
| | | |
| | | try |
| | | { |
| | | var sqlStr = "UPDATE [EC_OrderExtend] SET [ShejiStatus]="+ ShejiStatus + " WHERE Keyid=@Keyid "; |
| | | var sqlStr = "UPDATE [EC_OrderExtend] SET [ShejiStatus]="+ ShejiStatus + " ,[XiadanKeyid]=" + XiadanKeyid + " WHERE Keyid=@Keyid "; |
| | | SqlParameter par = new SqlParameter("@Keyid", Keyid); |
| | | _dataBase.ExecuteSql(sqlStr, par); |
| | | |
| | |
| | | _inquiryCommonModel = SerializationHelper.DeSerialize(typeof(InquiryCommonModel), _eC_OrderPrintParameter.PrintParameter) as InquiryCommonModel; |
| | | |
| | | } |
| | | var inquiryWorkBookModels = _inquiryCommonModel.InquiryWorkBookList.OrderBy(x=>x.WorkBookNameTxt).ThenBy(x=>x.WorkBookSizeTxt); |
| | | var inquiryWorkBookModels = _inquiryCommonModel.InquiryWorkBookList.OrderBy(x=>x.WorkBookSizeTxt).ThenBy(x=>x.WorkBookNameTxt); |
| | | if (string.IsNullOrEmpty(biaotou)) |
| | | { |
| | | foreach (var inquiryWorkBookModel in inquiryWorkBookModels) |
| | |
| | | }); |
| | | } |
| | | } |
| | | var reg222 = /^-[1-9]\d*|[0-9]/; |
| | | |
| | | $(".validateIntfushu").live("blur", |
| | | function () { |
| | | var defaultPrice = $(this).attr("defaultValue"); |
| | | var price = $(this).val(); |
| | | if (!reg222.test(price)) { |
| | | alertMsg("设置的值必须为整数"); |
| | | // $(this).focus(); |
| | | $(this).val(defaultPrice); |
| | | } |
| | | } |
| | | ); |
| | | |
| | | |
| | | $(function () { |
| | | $(".AlreadyReply").remove(); |
| | | }); |
| | |
| | | 未送货数量 |
| | | </th> |
| | | <th style="text-align: center"> |
| | | 新增发货 |
| | | 发货数量(可负数) |
| | | </th> |
| | | </tr> |
| | | </HeaderTemplate> |
| | |
| | | <%#Eval("weisonghuonums")%> |
| | | </td> |
| | | <td style="text-align: center"> |
| | | <input type="text" name="fahuoCount" style="height: 15px; line-height: 15px; width:80px;" class="validateInt req" defaultValue="0" value="0"/> |
| | | <input type="text" name="fahuoCount" style="height: 15px; line-height: 15px; width:80px;" class="validateIntfushu req" defaultValue="0" value="0"/> |
| | | </td> |
| | | </tr> |
| | | </ItemTemplate> |
| | |
| | | _inquiryCommonModel = SerializationHelper.DeSerialize(typeof(InquiryCommonModel), _eC_OrderPrintParameter.PrintParameter) as InquiryCommonModel; |
| | | |
| | | } |
| | | var inquiryWorkBookModels = _inquiryCommonModel.InquiryWorkBookList.OrderBy(x => x.WorkBookNameTxt).ThenBy(x => x.WorkBookSizeTxt); |
| | | var inquiryWorkBookModels = _inquiryCommonModel.InquiryWorkBookList.OrderBy(x => x.WorkBookSizeTxt).ThenBy(x => x.WorkBookNameTxt); |
| | | |
| | | var cmsPlanOrderItemsgroup = new List<CoreCmsPlanOrderItem>(); |
| | | foreach (var inquiryWorkBookModel in inquiryWorkBookModels) |
| | |
| | | for (int i = 0; i < fahuos.Length; i++) |
| | | { |
| | | var fahuo = fahuos[i].ToInt32(); |
| | | if (fahuo.HasValue && fahuo.Value > 0) |
| | | if (fahuo.HasValue && fahuo.Value != 0) |
| | | { |
| | | yanzheng = true; |
| | | } |
| | |
| | | } |
| | | //新增发货 |
| | | function onViewXinzengsonghuo(keyid) { |
| | | top.Dialog.open({ URL: "/Pages/business/DeliverWorkBookFahuo.aspx?orderId=" + keyid, Title: "新增发货", Width: 1500, Height: 900 }); |
| | | top.Dialog.open({ URL: "/Pages/business/DeliverWorkBookFahuo.aspx?orderId=" + keyid, Title: "新增修改发货", Width: 1500, Height: 900 }); |
| | | } |
| | | //库存盘点 |
| | | function onViewKucunpandian(keyid) { |
| | |
| | | <span onclick="onDele('<%#Eval("Keyid")%>')">打印送货单</span> |
| | | <span onclick="onViewCarInsurance('<%#Eval("Keyid")%>')">查看送货情况</span> |
| | | |
| | | <span menu_member_case_id="case_Xinzengsonghuo" menu_member_case_name="新增发货 " onclick="onViewXinzengsonghuo('<%#Eval("Keyid")%>')">新增发货 </span> |
| | | <span menu_member_case_id="case_Xinzengsonghuo" menu_member_case_name="新增修改发货 " onclick="onViewXinzengsonghuo('<%#Eval("Keyid")%>')">新增修改发货 </span> |
| | | <span menu_member_case_id="case_Kucunpandian" menu_member_case_name="库存盘点" onclick="onViewKucunpandian('<%#Eval("Keyid")%>')">库存盘点</span> |
| | | <span onclick="onViewfahuo('<%#Eval("Keyid")%>')">查看发货情况</span> |
| | | |
| | |
| | | _inquiryCommonModel = SerializationHelper.DeSerialize(typeof(InquiryCommonModel), _eC_OrderPrintParameter.PrintParameter) as InquiryCommonModel; |
| | | |
| | | } |
| | | var inquiryWorkBookModels = _inquiryCommonModel.InquiryWorkBookList.OrderBy(x => x.WorkBookNameTxt).ThenBy(x => x.WorkBookSizeTxt); |
| | | var inquiryWorkBookModels = _inquiryCommonModel.InquiryWorkBookList.OrderBy(x => x.WorkBookSizeTxt).ThenBy(x => x.WorkBookNameTxt); |
| | | |
| | | var cmsPlanOrderItemsgroup = new List<CoreCmsPlanOrderItem>(); |
| | | foreach (var inquiryWorkBookModel in inquiryWorkBookModels) |
| | |
| | | _inquiryCommonModel = SerializationHelper.DeSerialize(typeof(InquiryCommonModel), _eC_OrderPrintParameter.PrintParameter) as InquiryCommonModel; |
| | | |
| | | } |
| | | var inquiryWorkBookModels = _inquiryCommonModel.InquiryWorkBookList.OrderBy(x => x.WorkBookNameTxt).ThenBy(x => x.WorkBookSizeTxt); |
| | | var inquiryWorkBookModels = _inquiryCommonModel.InquiryWorkBookList.OrderBy(x => x.WorkBookSizeTxt).ThenBy(x => x.WorkBookNameTxt); |
| | | if (string.IsNullOrEmpty(biaotou)) |
| | | { |
| | | int i = 1; |
| | |
| | | _inquiryCommonModel = SerializationHelper.DeSerialize(typeof(InquiryCommonModel), _eC_OrderPrintParameter.PrintParameter) as InquiryCommonModel; |
| | | |
| | | } |
| | | var inquiryWorkBookModels = _inquiryCommonModel.InquiryWorkBookList.OrderBy(x=>x.WorkBookNameTxt).ThenBy(x=>x.WorkBookSizeTxt); |
| | | var inquiryWorkBookModels = _inquiryCommonModel.InquiryWorkBookList.OrderBy(x=>x.WorkBookSizeTxt).ThenBy(x=>x.WorkBookNameTxt); |
| | | |
| | | if (string.IsNullOrEmpty(biaotou)) |
| | | { |
| | |
| | | |
| | | var Number = coreDeliverOrderItems1.Sum(x => x.Number); |
| | | var LessNumber = coreDeliverOrderItems1.Sum(x => x.LessNumber); |
| | | if((nums - LessNumber - Number) > 0) |
| | | { |
| | | biaowei += " <td style=\"text-align:center\"> " + Number + " </td> <td style=\"text-align:center\"> <span style=\"color:red;\" >" + (nums - LessNumber - Number) + " </span></td>"; |
| | | } |
| | | else |
| | | { |
| | | biaowei += " <td style=\"text-align:center\"> " + Number + " </td> <td style=\"text-align:center\"> <span style=\"color:green;\" >" + (nums - LessNumber - Number) + " </span></td>"; |
| | | } |
| | | |
| | | |
| | | biaowei += " <td style=\"text-align:center\"> " + Number + " </td> <td style=\"text-align:center\"> <span style=\"color:red;\" >" + (nums - LessNumber - Number) + " </span></td>"; |
| | | |
| | | |
| | | } |
| | | |
| | |
| | | var Number = coreDeliverOrderItems1.Sum(x => x.Number); |
| | | var LessNumber = coreDeliverOrderItems1.Sum(x => x.LessNumber); |
| | | |
| | | coreCmsPlanOrder.biaoge += " <td style=\"text-align:center\"> " + Number + " </td> <td style=\"text-align:center\"> <span style=\"color:red;\" >" + (cmsPlanOrderItem.nums - LessNumber - Number) + " </span></td>"; |
| | | if(cmsPlanOrderItem.nums - LessNumber - Number > 0) |
| | | { |
| | | coreCmsPlanOrder.biaoge += " <td style=\"text-align:center\"> " + Number + " </td> <td style=\"text-align:center\"> <span style=\"color:red;\" >" + (cmsPlanOrderItem.nums - LessNumber - Number) + " </span></td>"; |
| | | } |
| | | else |
| | | { |
| | | coreCmsPlanOrder.biaoge += " <td style=\"text-align:center\"> " + Number + " </td> <td style=\"text-align:center\"> <span style=\"color:green;\" >" + (cmsPlanOrderItem.nums - LessNumber - Number) + " </span></td>"; |
| | | } |
| | | |
| | | } |
| | | else |
| | | { |
| | | coreCmsPlanOrder.biaoge += " <td style=\"text-align:center\"> 0 </td> <td style=\"text-align:center\"> <span style=\"color:red;\" >0</span></td> "; |
| | | coreCmsPlanOrder.biaoge += " <td style=\"text-align:center\"> 0 </td> <td style=\"text-align:center\"> <span style=\"color:green;\" >0</span></td> "; |
| | | } |
| | | |
| | | } |
| | |
| | | _inquiryCommonModel = SerializationHelper.DeSerialize(typeof(InquiryCommonModel), _eC_OrderPrintParameter.PrintParameter) as InquiryCommonModel; |
| | | |
| | | } |
| | | var inquiryWorkBookModels = _inquiryCommonModel.InquiryWorkBookList.OrderBy(x=>x.WorkBookNameTxt).ThenBy(x=>x.WorkBookSizeTxt); |
| | | var inquiryWorkBookModels = _inquiryCommonModel.InquiryWorkBookList.OrderBy(x=>x.WorkBookSizeTxt).ThenBy(x=>x.WorkBookNameTxt); |
| | | |
| | | if (string.IsNullOrEmpty(biaotou)) |
| | | { |
| | |
| | | var t = (screen.availHeight - 300) / 2; |
| | | window.open("/Pages/business/DeliverPlanWentiOrder.aspx?Orderid="+orderid, '_blank', 'height=750,width=900,top=' + t + ',left=' + l + ',toolbar=no,menubar=no,scrollbars=no,resizable=no,location=no,status=no'); |
| | | } |
| | | //查看设计订单 |
| | | function Toshejiorder(orderid) { |
| | | var l = (screen.availWidth - 500) / 2; |
| | | var t = (screen.availHeight - 300) / 2; |
| | | window.open("/Pages/business/ShejiOrderDeatil.aspx?orderId=" + orderid, '_blank', 'height=850,width=800,top=' + t + ',left=' + l + ',toolbar=no,menubar=no,scrollbars=no,resizable=no,location=no,status=no'); |
| | | |
| | | |
| | | } |
| | | |
| | | |
| | | |
| | | $(function () { |
| | | $("#btnPrint").click(function () { |
| | |
| | | <%-- <span onclick="onViewuplod('<%=BuyerId %>')" <%=ContractCount.ToString() == "0" ? "style=\"display:none;\"" : ""%> >查看合同 </span>--%> |
| | | <input type="button" <%=ContractCount.ToString() == "0" ? "style=\"display:none;\"" : ""%> value="查看合同" onclick="onViewuplod('<%=BuyerId %>')"> |
| | | <input type="button" value="问题反馈" onclick="ToAddorder('<%=OrderId %>')"> |
| | | <input type="button" <%=(string.IsNullOrEmpty(shejidingdanid))?"style=\"display:none;\"":"" %> value="设计订单" onclick="Toshejiorder('<%=OrderId %>')"> |
| | | </td> |
| | | </tr> |
| | | </table> |
| | |
| | | public int ContractCount = 0; |
| | | public string BuyerId = ""; |
| | | public int OrderId = 0; |
| | | public string shejidingdanid = ""; |
| | | /// <summary> |
| | | /// 页面加载事件 |
| | | /// </summary> |
| | |
| | | CY.WebForm.BasePage.JavaScript.MessageBox("数据不存在!", this); |
| | | return false; |
| | | } |
| | | EC_OrderBasic shejiorder = _eC_OrderBasicBLL.SelectModelByxiadanId(orderId.Value); |
| | | |
| | | if (shejiorder != null) |
| | | { |
| | | shejidingdanid = shejiorder.Keyid.ToString(); |
| | | } |
| | | |
| | | //if (CurrentUser.MemberId!=Guid.Parse(UtilConst.AdminFirmId)&&_eC_OrderBasic.BuyerId != CurrentUser.MemberId && _eC_OrderBasic.SellerId != CurrentUser.MemberId) |
| | | //{ |
| | | // CY.WebForm.BasePage.JavaScript.MessageBox("数据不存在!", this); |
| | |
| | | } |
| | | } |
| | | // PageAllMoney +=( eC_OrderBasic.ShejiSumPrice.Value + eC_OrderBasic.ShejiSumPriceneiye.Value); |
| | | eC_OrderBasic.Shejiticheng = eC_OrderBasic.ShejirenyuanName + eC_OrderBasic.Shejicount + "*" + (eC_OrderBasic.ShejiUnitPrice.HasValue? eC_OrderBasic.ShejiUnitPrice.Value.ToString("G29"):"0") + "=" + (eC_OrderBasic.ShejiSumPrice.HasValue ? eC_OrderBasic.ShejiSumPrice.Value.ToString("G29") : "0"); |
| | | if(eC_OrderBasic.ShejiSumPrice.HasValue && eC_OrderBasic.ShejiSumPrice.Value > 0) |
| | | { |
| | | eC_OrderBasic.Shejiticheng = eC_OrderBasic.ShejirenyuanName + eC_OrderBasic.Shejicount + "*" + (eC_OrderBasic.ShejiUnitPrice.HasValue ? eC_OrderBasic.ShejiUnitPrice.Value.ToString("G29") : "0") + "=" + (eC_OrderBasic.ShejiSumPrice.HasValue ? eC_OrderBasic.ShejiSumPrice.Value.ToString("G29") : "0"); |
| | | } |
| | | |
| | | if ( eC_OrderBasic.PrintTypeId == 15 || eC_OrderBasic.PrintTypeId == 38) |
| | | { |
| | | eC_OrderBasic.Shejiticheng += "<br/> " + eC_OrderBasic.ShejirenyuanNameneiye + eC_OrderBasic.Shejicountneiye + "*" + (eC_OrderBasic.ShejiUnitPriceneiye.HasValue ? eC_OrderBasic.ShejiUnitPriceneiye.Value.ToString("G29") : "0") + "=" + (eC_OrderBasic.ShejiSumPriceneiye.HasValue ? eC_OrderBasic.ShejiSumPriceneiye.Value.ToString("G29") : "0"); |
| | | if(eC_OrderBasic.ShejiSumPriceneiye.HasValue && eC_OrderBasic.ShejiSumPriceneiye.Value > 0) |
| | | { |
| | | eC_OrderBasic.Shejiticheng += "<br/> " + eC_OrderBasic.ShejirenyuanNameneiye + eC_OrderBasic.Shejicountneiye + "*" + (eC_OrderBasic.ShejiUnitPriceneiye.HasValue ? eC_OrderBasic.ShejiUnitPriceneiye.Value.ToString("G29") : "0") + "=" + (eC_OrderBasic.ShejiSumPriceneiye.HasValue ? eC_OrderBasic.ShejiSumPriceneiye.Value.ToString("G29") : "0"); |
| | | } |
| | | |
| | | } |
| | | eC_OrderBasic.Shejicountneiyename = (eC_OrderBasic.Shejicountneiye.HasValue && eC_OrderBasic.Shejicountneiye.Value > 0) ? eC_OrderBasic.Shejicountneiye.Value.ToString() : ""; |
| | | if (eC_OrderBasic.PrintTypeId == 6) |
| | | { |
| | | eC_OrderBasic.Shejiticheng += "<br/> " + eC_OrderBasic.ShejirenyuanNameneiye + eC_OrderBasic.Shejicountneiye + "*" + (eC_OrderBasic.ShejiUnitPriceneiye.HasValue ? eC_OrderBasic.ShejiUnitPriceneiye.Value.ToString("G29") : "0") + "=" + (eC_OrderBasic.ShejiSumPriceneiye.HasValue ? eC_OrderBasic.ShejiSumPriceneiye.Value.ToString("G29") : "0"); |
| | | if (eC_OrderBasic.ShejiSumPriceneiye.HasValue && eC_OrderBasic.ShejiSumPriceneiye.Value > 0) |
| | | { |
| | | eC_OrderBasic.Shejiticheng += "<br/> " + eC_OrderBasic.ShejirenyuanNameneiye + eC_OrderBasic.Shejicountneiye + "*" + (eC_OrderBasic.ShejiUnitPriceneiye.HasValue ? eC_OrderBasic.ShejiUnitPriceneiye.Value.ToString("G29") : "0") + "=" + (eC_OrderBasic.ShejiSumPriceneiye.HasValue ? eC_OrderBasic.ShejiSumPriceneiye.Value.ToString("G29") : "0"); |
| | | } |
| | | |
| | | |
| | | if (!string.IsNullOrEmpty(eC_OrderBasic.ShejileixingNameneiye1)) |
| | | { |
| | | eC_OrderBasic.Shejiticheng += "<br/> " + eC_OrderBasic.ShejirenyuanNameneiye1 + eC_OrderBasic.Shejicountneiye1 + "*" + (eC_OrderBasic.ShejiUnitPriceneiye1.HasValue ? eC_OrderBasic.ShejiUnitPriceneiye1.Value.ToString("G29") : "0") + "=" + (eC_OrderBasic.ShejiSumPriceneiye1.HasValue ? eC_OrderBasic.ShejiSumPriceneiye1.Value.ToString("G29") : "0"); |
| | | if (eC_OrderBasic.ShejiSumPriceneiye1.HasValue && eC_OrderBasic.ShejiSumPriceneiye1.Value > 0) |
| | | { |
| | | eC_OrderBasic.Shejiticheng += "<br/> " + eC_OrderBasic.ShejirenyuanNameneiye1 + eC_OrderBasic.Shejicountneiye1 + "*" + (eC_OrderBasic.ShejiUnitPriceneiye1.HasValue ? eC_OrderBasic.ShejiUnitPriceneiye1.Value.ToString("G29") : "0") + "=" + (eC_OrderBasic.ShejiSumPriceneiye1.HasValue ? eC_OrderBasic.ShejiSumPriceneiye1.Value.ToString("G29") : "0"); |
| | | } |
| | | |
| | | } |
| | | if (!string.IsNullOrEmpty(eC_OrderBasic.ShejileixingNameneiye2)) |
| | | { |
| | | eC_OrderBasic.Shejiticheng += "<br/> " + eC_OrderBasic.ShejirenyuanNameneiye2 + eC_OrderBasic.Shejicountneiye2 + "*" + (eC_OrderBasic.ShejiUnitPriceneiye2.HasValue ? eC_OrderBasic.ShejiUnitPriceneiye2.Value.ToString("G29") : "0") + "=" + (eC_OrderBasic.ShejiSumPriceneiye2.HasValue ? eC_OrderBasic.ShejiSumPriceneiye2.Value.ToString("G29") : "0"); |
| | | if (eC_OrderBasic.ShejiSumPriceneiye2.HasValue && eC_OrderBasic.ShejiSumPriceneiye2.Value > 0) |
| | | { |
| | | eC_OrderBasic.Shejiticheng += "<br/> " + eC_OrderBasic.ShejirenyuanNameneiye2 + eC_OrderBasic.Shejicountneiye2 + "*" + (eC_OrderBasic.ShejiUnitPriceneiye2.HasValue ? eC_OrderBasic.ShejiUnitPriceneiye2.Value.ToString("G29") : "0") + "=" + (eC_OrderBasic.ShejiSumPriceneiye2.HasValue ? eC_OrderBasic.ShejiSumPriceneiye2.Value.ToString("G29") : "0"); |
| | | } |
| | | |
| | | } |
| | | |
| | | |
| | |
| | | //开始下单 |
| | | foreach (var eC_OrderBasic in eC_OrderBasics) |
| | | { |
| | | var resul = _eC_OrderBasicBLL.UpShejiStatus(eC_OrderBasic.Keyid.Value, 1, CurrentUser.ShortName); |
| | | var ssssss = eC_OrderBasic.Keyid.Value; |
| | | |
| | | |
| | | if (resul) |
| | | { |
| | | |
| | | var eC_OrderExtend = _eC_OrderBasicBLL.GetModelByKeyid(eC_OrderBasic.Keyid.Value); |
| | | eC_OrderExtend.ShejiStatus = eC_OrderBasic.Keyid.Value; |
| | | var acceptWayByOrder = _AcceptWayByOrderBLL.GetModelByTargetId(eC_OrderBasic.Keyid.Value); |
| | |
| | | var eC_OrderPrint = new EC_OrderPrintParameter(); |
| | | eC_OrderPrint.PrintParameter = eC_OrderBasic.PrintParameter; |
| | | bool isWin = eC_OrderBLL.NewOrderpiliang(eC_OrderBasic, eC_OrderExtend, pay_TradingSingle, acceptWayByOrder, null, 0, 0, eC_OrderPrint); |
| | | } |
| | | |
| | | var resul = _eC_OrderBasicBLL.UpShejiStatus(ssssss, 1, CurrentUser.ShortName, eC_OrderBasic.Keyid.Value); |
| | | |
| | | |
| | | } |
| | | |