| | |
| | | this.SelShejirenyuanneiye6.Value = _eC_OrderBasic.Shejirenyuanneiye.HasValue ? _eC_OrderBasic.Shejirenyuanneiye.Value.ToString() : ""; |
| | | this.SelShejileixingneiye6.Value = _eC_OrderBasic.Shejileixingneiye.HasValue ? _eC_OrderBasic.Shejileixingneiye.Value.ToString() : ""; |
| | | this.txtShejiyaoqiuneiye6.Value = _eC_OrderBasic.Shejiyaoqiuneiye; |
| | | |
| | | |
| | | this.SelShejirenyuanneiye61.Value = _eC_OrderBasic.Shejirenyuanneiye1.HasValue ? _eC_OrderBasic.Shejirenyuanneiye1.Value.ToString() : ""; |
| | | this.SelShejileixingneiye61.Value = _eC_OrderBasic.Shejileixingneiye1.HasValue ? _eC_OrderBasic.Shejileixingneiye1.Value.ToString() : ""; |
| | | this.txtShejiyaoqiuneiye61.Value = _eC_OrderBasic.Shejiyaoqiuneiye1; |
| | | |
| | | |
| | | this.SelShejirenyuanneiye62.Value = _eC_OrderBasic.Shejirenyuanneiye2.HasValue ? _eC_OrderBasic.Shejirenyuanneiye2.Value.ToString() : ""; |
| | | this.SelShejileixingneiye62.Value = _eC_OrderBasic.Shejileixingneiye2.HasValue ? _eC_OrderBasic.Shejileixingneiye2.Value.ToString() : ""; |
| | | this.txtShejiyaoqiuneiye62.Value = _eC_OrderBasic.Shejiyaoqiuneiye2; |
| | | } |
| | | else if(_eC_OrderBasic.PrintTypeId == 15) |
| | | { |
| | |
| | | { |
| | | this.SelShejirenyuan1111.Value = _eC_OrderBasic.Shejirenyuan.HasValue ? _eC_OrderBasic.Shejirenyuan.Value.ToString() : ""; |
| | | this.txtShejiyaoqiu1111.Value = _eC_OrderBasic.Shejiyaoqiu; |
| | | this.txtShejiSumPrice1111.Value = _eC_OrderBasic.ShejiSumPrice.HasValue ? _eC_OrderBasic.ShejiSumPrice.Value.ToString("F2") : ""; |
| | | } |
| | | #endregion |
| | | |
| | |
| | | //this.rptCustormer.DataSource = corporateClients; |
| | | //this.rptCustormer.DataBind(); |
| | | |
| | | this.selPrintTypes.DataSource = _sysInquiry_PrintingTypeBLL.SelectUsedModlesByFirm(CurrentUser.MemberId).OrderBy(x=>x.orderNumHome); |
| | | this.selPrintTypes.DataSource = _sysInquiry_PrintingTypeBLL.SelectUsedModlesByFirm(CurrentUser.MemberId).Where(x=> x.KeyId != 37 && x.KeyId != 31).OrderBy(x=>x.orderNumHome); |
| | | this.selPrintTypes.DataBind(); |
| | | this.selPrintTypes.Items.Insert(0, new ListItem("请选择", "")); |
| | | this.selPrintTypes.Items.Add(new ListItem("其他", "-1")); |
| | |
| | | this.selCustormerManagers.DataBind(); |
| | | this.selCustormerManagers.Items.Insert(0, new ListItem("无", "0")); |
| | | |
| | | |
| | | var ToUpSetData = Request["ToUpSetData"]; |
| | | var oA_Staffs = oA_StaffBLL.SelectListByFirmId(CurrentUser.MemberId, null, null).Where(x => x.DepartmentId == 13); |
| | | this.SelShejirenyuan29.DataSource = oA_Staffs; |
| | | this.SelShejirenyuan29.DataBind(); |
| | | if (string.IsNullOrEmpty(ToUpSetData)) |
| | | { |
| | | var StaffId = CurrentUser.StaffId; |
| | | this.SelShejirenyuan29.Value = StaffId.ToString(); |
| | | } |
| | | |
| | | this.SelShejirenyuan6.DataSource = oA_Staffs; |
| | | this.SelShejirenyuan6.DataBind(); |
| | | if (string.IsNullOrEmpty(ToUpSetData)) |
| | | { |
| | | var StaffId = CurrentUser.StaffId; |
| | | this.SelShejirenyuan6.Value = StaffId.ToString(); |
| | | } |
| | | |
| | | this.SelShejirenyuanneiye6.DataSource = oA_Staffs; |
| | | this.SelShejirenyuanneiye6.DataBind(); |
| | | if (string.IsNullOrEmpty(ToUpSetData)) |
| | | { |
| | | var StaffId = CurrentUser.StaffId; |
| | | this.SelShejirenyuanneiye6.Value = StaffId.ToString(); |
| | | } |
| | | |
| | | |
| | | this.SelShejirenyuanneiye61.DataSource = oA_Staffs; |
| | | this.SelShejirenyuanneiye61.DataBind(); |
| | | if (string.IsNullOrEmpty(ToUpSetData)) |
| | | { |
| | | var StaffId = CurrentUser.StaffId; |
| | | this.SelShejirenyuanneiye61.Value = StaffId.ToString(); |
| | | } |
| | | |
| | | |
| | | |
| | | this.SelShejirenyuanneiye62.DataSource = oA_Staffs; |
| | | this.SelShejirenyuanneiye62.DataBind(); |
| | | if (string.IsNullOrEmpty(ToUpSetData)) |
| | | { |
| | | var StaffId = CurrentUser.StaffId; |
| | | this.SelShejirenyuanneiye62.Value = StaffId.ToString(); |
| | | } |
| | | |
| | | this.SelShejirenyuan15.DataSource = oA_Staffs; |
| | | this.SelShejirenyuan15.DataBind(); |
| | | if (string.IsNullOrEmpty(ToUpSetData)) |
| | | { |
| | | var StaffId = CurrentUser.StaffId; |
| | | this.SelShejirenyuan15.Value = StaffId.ToString(); |
| | | } |
| | | |
| | | this.SelShejirenyuanneiye15.DataSource = oA_Staffs; |
| | | this.SelShejirenyuanneiye15.DataBind(); |
| | | if (string.IsNullOrEmpty(ToUpSetData)) |
| | | { |
| | | var StaffId = CurrentUser.StaffId; |
| | | this.SelShejirenyuanneiye15.Value = StaffId.ToString(); |
| | | } |
| | | |
| | | this.SelShejirenyuan14.DataSource = oA_Staffs; |
| | | this.SelShejirenyuan14.DataBind(); |
| | | if (string.IsNullOrEmpty(ToUpSetData)) |
| | | { |
| | | var StaffId = CurrentUser.StaffId; |
| | | this.SelShejirenyuan14.Value = StaffId.ToString(); |
| | | } |
| | | |
| | | this.SelShejirenyuan27.DataSource = oA_Staffs; |
| | | this.SelShejirenyuan27.DataBind(); |
| | | if (string.IsNullOrEmpty(ToUpSetData)) |
| | | { |
| | | var StaffId = CurrentUser.StaffId; |
| | | this.SelShejirenyuan27.Value = StaffId.ToString(); |
| | | } |
| | | |
| | | this.SelShejirenyuan21.DataSource = oA_Staffs; |
| | | this.SelShejirenyuan21.DataBind(); |
| | | if (string.IsNullOrEmpty(ToUpSetData)) |
| | | { |
| | | var StaffId = CurrentUser.StaffId; |
| | | this.SelShejirenyuan21.Value = StaffId.ToString(); |
| | | } |
| | | |
| | | this.SelShejirenyuan7.DataSource = oA_Staffs; |
| | | this.SelShejirenyuan7.DataBind(); |
| | | if (string.IsNullOrEmpty(ToUpSetData)) |
| | | { |
| | | var StaffId = CurrentUser.StaffId; |
| | | this.SelShejirenyuan7.Value = StaffId.ToString(); |
| | | } |
| | | |
| | | this.SelShejirenyuan38.DataSource = oA_Staffs; |
| | | this.SelShejirenyuan38.DataBind(); |
| | | if (string.IsNullOrEmpty(ToUpSetData)) |
| | | { |
| | | var StaffId = CurrentUser.StaffId; |
| | | this.SelShejirenyuan38.Value = StaffId.ToString(); |
| | | } |
| | | |
| | | this.SelShejirenyuanneiye38.DataSource = oA_Staffs; |
| | | this.SelShejirenyuanneiye38.DataBind(); |
| | | if (string.IsNullOrEmpty(ToUpSetData)) |
| | | { |
| | | var StaffId = CurrentUser.StaffId; |
| | | this.SelShejirenyuanneiye38.Value = StaffId.ToString(); |
| | | } |
| | | |
| | | this.SelShejirenyuan20.DataSource = oA_Staffs; |
| | | this.SelShejirenyuan20.DataBind(); |
| | | if (string.IsNullOrEmpty(ToUpSetData)) |
| | | { |
| | | var StaffId = CurrentUser.StaffId; |
| | | this.SelShejirenyuan20.Value = StaffId.ToString(); |
| | | } |
| | | |
| | | this.SelShejirenyuan16.DataSource = oA_Staffs; |
| | | this.SelShejirenyuan16.DataBind(); |
| | | if (string.IsNullOrEmpty(ToUpSetData)) |
| | | { |
| | | var StaffId = CurrentUser.StaffId; |
| | | this.SelShejirenyuan16.Value = StaffId.ToString(); |
| | | } |
| | | |
| | | this.SelShejirenyuan22.DataSource = oA_Staffs; |
| | | this.SelShejirenyuan22.DataBind(); |
| | | if (string.IsNullOrEmpty(ToUpSetData)) |
| | | { |
| | | var StaffId = CurrentUser.StaffId; |
| | | this.SelShejirenyuan22.Value = StaffId.ToString(); |
| | | } |
| | | |
| | | this.SelShejirenyuan39.DataSource = oA_Staffs; |
| | | this.SelShejirenyuan39.DataBind(); |
| | | if (string.IsNullOrEmpty(ToUpSetData)) |
| | | { |
| | | var StaffId = CurrentUser.StaffId; |
| | | this.SelShejirenyuan39.Value = StaffId.ToString(); |
| | | } |
| | | |
| | | this.SelShejirenyuan23.DataSource = oA_Staffs; |
| | | this.SelShejirenyuan23.DataBind(); |
| | | if (string.IsNullOrEmpty(ToUpSetData)) |
| | | { |
| | | var StaffId = CurrentUser.StaffId; |
| | | this.SelShejirenyuan23.Value = StaffId.ToString(); |
| | | } |
| | | |
| | | this.SelShejirenyuan25.DataSource = oA_Staffs; |
| | | this.SelShejirenyuan25.DataBind(); |
| | | if (string.IsNullOrEmpty(ToUpSetData)) |
| | | { |
| | | var StaffId = CurrentUser.StaffId; |
| | | this.SelShejirenyuan25.Value = StaffId.ToString(); |
| | | } |
| | | |
| | | this.SelShejirenyuan26.DataSource = oA_Staffs; |
| | | this.SelShejirenyuan26.DataBind(); |
| | | if (string.IsNullOrEmpty(ToUpSetData)) |
| | | { |
| | | var StaffId = CurrentUser.StaffId; |
| | | this.SelShejirenyuan26.Value = StaffId.ToString(); |
| | | } |
| | | |
| | | this.SelShejirenyuan1111.DataSource = oA_Staffs; |
| | | this.SelShejirenyuan1111.DataBind(); |
| | | |
| | | if (string.IsNullOrEmpty(ToUpSetData)) |
| | | { |
| | | var StaffId = CurrentUser.StaffId; |
| | | this.SelShejirenyuan1111.Value = StaffId.ToString(); |
| | | } |
| | | } |
| | | } |
| | | |
| | |
| | | EC_OrderBasic eC_OrderBasic = new EC_OrderBasic();//订单主要信息 |
| | | OA_StaffBLL oA_StaffBLL = new BLL.OA_StaffBLL(); |
| | | OA_ShejijijianBLL bll_OA_ShejijijianBLLBLL = new OA_ShejijijianBLL(); |
| | | CY.BLL.Inquiry.PaperSizeDetailBLL _paperSizeDetailBLL = new CY.BLL.Inquiry.PaperSizeDetailBLL();//查询纸张尺寸 |
| | | |
| | | EC_OrderPrintParameter orderPrintParameter = null; |
| | | InquiryCommonModel _inquiryCommonModel = null; |
| | | eC_OrderExtend.Keyid = MyConvert.ConvertToInt32(txtKeyid.Value); |
| | |
| | | |
| | | var PrintTypeId = MyConvert.ConvertToInt32(Request["selPrintTypes"]); |
| | | #region 绑定设计信息 封面的数值就是1 内页的数量需要计算所有的内页页码的总和 |
| | | |
| | | //系统表格中工价为16开工价;32开下浮30%;32开以下减半;8开上浮30%,4开以上上浮1半 仅限于:黑白印件、书刊、画册、DM但、报纸5种,其他不管 |
| | | decimal gongjia = new decimal(1); |
| | | if(PrintTypeId == 29 || PrintTypeId == 6 || PrintTypeId == 15 || PrintTypeId == 14 || PrintTypeId == 7) |
| | | { |
| | | var paperSize = Request["paperSize"]; |
| | | if (paperSize != "-1") |
| | | { |
| | | var paperSizeDetail = _paperSizeDetailBLL.GetPaperSizeDetail(PrintTypeId.Value, paperSize.ToInt32().Value); |
| | | if (paperSizeDetail != null) |
| | | { |
| | | if (paperSizeDetail.Name.IndexOf("48开") >= 0 || paperSizeDetail.Name.IndexOf("64开") >= 0) |
| | | { |
| | | gongjia = new decimal(0.5); |
| | | } |
| | | else if (paperSizeDetail.Name.IndexOf("32开") >= 0) |
| | | { |
| | | gongjia = new decimal(0.7); |
| | | } |
| | | else if (paperSizeDetail.Name.IndexOf("16开") >= 0) |
| | | { |
| | | gongjia = new decimal(1); |
| | | } |
| | | else if (paperSizeDetail.Name.IndexOf("8开") >= 0 || paperSizeDetail.Name.IndexOf("6开") >= 0) |
| | | { |
| | | gongjia = new decimal(1.3); |
| | | } |
| | | else if(paperSizeDetail.Name.IndexOf("4开") >= 0 || paperSizeDetail.Name.IndexOf("3开") >= 0 || paperSizeDetail.Name.IndexOf("2开") >= 0 || paperSizeDetail.Name.IndexOf("全开") >= 0) |
| | | { |
| | | gongjia = new decimal(1.5); |
| | | } |
| | | |
| | | |
| | | |
| | | } |
| | | } |
| | | else |
| | | { |
| | | decimal sikai = 370 * 520; |
| | | //if (PrintTypeId == 29) |
| | | //{ |
| | | // sikai = 380 * 680; |
| | | //} |
| | | |
| | | decimal bakai = 370 * 260; |
| | | |
| | | decimal sanshierkai = 130 * 185; |
| | | decimal dasanshierkai = 140 * 210; |
| | | |
| | | var txtFirstSize = Request["txtFirstSize"].ToDecimal2()??0; |
| | | var txtSecondSize = Request["txtSecondSize"].ToDecimal2() ?? 0; |
| | | var chicun = txtFirstSize * txtSecondSize; |
| | | if (chicun>= sikai) |
| | | { |
| | | gongjia = new decimal(1.5); |
| | | } |
| | | else if (chicun >= bakai) |
| | | { |
| | | gongjia = new decimal(1.3); |
| | | } |
| | | else if (chicun >= sanshierkai && chicun <= dasanshierkai) |
| | | { |
| | | gongjia = new decimal(0.7); |
| | | } |
| | | else if (chicun < sanshierkai) |
| | | { |
| | | gongjia = new decimal(0.5); |
| | | } |
| | | |
| | | } |
| | | |
| | | |
| | | } |
| | | |
| | | |
| | | |
| | | if (PrintTypeId == 29) |
| | | { |
| | | eC_OrderExtend.Shejicount = 1;// Request["printCount"].ToString().ToInt32(); |
| | |
| | | var shejijijian = bll_OA_ShejijijianBLLBLL.GetModelByformid(CurrentUser.MemberId, PrintTypeId.ToString(),"", eC_OrderExtend.Shejileixing.ToString(),null).FirstOrDefault(); |
| | | if (shejijijian != null) |
| | | { |
| | | eC_OrderExtend.ShejiUnitPrice = shejijijian.Shejilemoney; |
| | | if(eC_OrderExtend.Danshuangmian == "双面不同") |
| | | { |
| | | eC_OrderExtend.ShejiUnitPrice = shejijijian.Shejilemoney * gongjia * 2; |
| | | } |
| | | else |
| | | { |
| | | eC_OrderExtend.ShejiUnitPrice = shejijijian.Shejilemoney * gongjia; |
| | | } |
| | | |
| | | if (eC_OrderExtend.ShejiUnitPrice.HasValue) |
| | | { |
| | | eC_OrderExtend.ShejiSumPrice = eC_OrderExtend.ShejiUnitPrice * eC_OrderExtend.Shejicount; |
| | |
| | | var shejijijian = bll_OA_ShejijijianBLLBLL.GetModelByformid(CurrentUser.MemberId, PrintTypeId.ToString(), "1", eC_OrderExtend.Shejileixing.ToString(), null).FirstOrDefault(); |
| | | if (shejijijian != null) |
| | | { |
| | | eC_OrderExtend.ShejiUnitPrice = shejijijian.Shejilemoney; |
| | | eC_OrderExtend.ShejiUnitPrice = shejijijian.Shejilemoney * gongjia; |
| | | if (eC_OrderExtend.ShejiUnitPrice.HasValue) |
| | | { |
| | | eC_OrderExtend.ShejiSumPrice = eC_OrderExtend.ShejiUnitPrice * eC_OrderExtend.Shejicount; |
| | |
| | | int insidePageNum = 1; |
| | | if (Request["hidInsidePageNum"] != null) |
| | | insidePageNum = Request["hidInsidePageNum"].ToString().ToInt32().Value; |
| | | int PageNumneiye = 0; |
| | | for (int i = 1; i <= insidePageNum; i++) |
| | | { |
| | | if (Request["pageNum" + i] != null) |
| | | PageNumneiye += Request["pageNum" + i].ToInt32().HasValue ? Request["pageNum" + i].ToInt32().Value : 0; |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | int PageNumneiye = Request["pageNum" + 1].ToInt32().HasValue ? Request["pageNum" + 1].ToInt32().Value : 0; |
| | | eC_OrderExtend.Shejicountneiye = PageNumneiye;// Request["printCount"].ToString().ToInt32(); |
| | | eC_OrderExtend.Shejileixingneiye = this.SelShejileixingneiye6.Value.ToInt32(); |
| | | if (eC_OrderExtend.Shejileixingneiye != 8) |
| | |
| | | var shejijijian1 = bll_OA_ShejijijianBLLBLL.GetModelByformid(CurrentUser.MemberId, PrintTypeId.ToString(), "2", eC_OrderExtend.Shejileixingneiye.ToString(), null).FirstOrDefault(); |
| | | if (shejijijian1 != null) |
| | | { |
| | | eC_OrderExtend.ShejiUnitPriceneiye = shejijijian1.Shejilemoney; |
| | | eC_OrderExtend.ShejiUnitPriceneiye = shejijijian1.Shejilemoney * gongjia; |
| | | if (eC_OrderExtend.ShejiUnitPriceneiye.HasValue) |
| | | { |
| | | eC_OrderExtend.ShejiSumPriceneiye = eC_OrderExtend.ShejiUnitPriceneiye * eC_OrderExtend.Shejicountneiye; |
| | |
| | | eC_OrderExtend.ShejileixingNameneiye = this.shejileixing(eC_OrderExtend.Shejileixingneiye.Value.ToString()); |
| | | eC_OrderExtend.Shejiyaoqiuneiye = this.txtShejiyaoqiuneiye6.Value; |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | if (insidePageNum > 1) |
| | | { |
| | | PageNumneiye = Request["pageNum" + 2].ToInt32().HasValue ? Request["pageNum" + 2].ToInt32().Value : 0; |
| | | eC_OrderExtend.Shejicountneiye1 = PageNumneiye;// Request["printCount"].ToString().ToInt32(); |
| | | eC_OrderExtend.Shejileixingneiye1 = this.SelShejileixingneiye61.Value.ToInt32(); |
| | | if (eC_OrderExtend.Shejileixingneiye1 != 8) |
| | | { |
| | | eC_OrderExtend.Shejirenyuanneiye1 = this.SelShejirenyuanneiye61.Value.ToInt32(); |
| | | var oA_Staff1 = oA_StaffBLL.GetModelByKeyid(eC_OrderExtend.Shejirenyuanneiye1); |
| | | if (oA_Staff1 != null) |
| | | { |
| | | eC_OrderExtend.ShejirenyuanNameneiye1 = oA_Staff1.Name; |
| | | } |
| | | |
| | | var shejijijian1 = bll_OA_ShejijijianBLLBLL.GetModelByformid(CurrentUser.MemberId, PrintTypeId.ToString(), "2", eC_OrderExtend.Shejileixingneiye1.ToString(), null).FirstOrDefault(); |
| | | if (shejijijian1 != null) |
| | | { |
| | | eC_OrderExtend.ShejiUnitPriceneiye1 = shejijijian1.Shejilemoney * gongjia; |
| | | if (eC_OrderExtend.ShejiUnitPriceneiye1.HasValue) |
| | | { |
| | | eC_OrderExtend.ShejiSumPriceneiye1 = eC_OrderExtend.ShejiUnitPriceneiye1 * eC_OrderExtend.Shejicountneiye1; |
| | | } |
| | | } |
| | | } |
| | | else |
| | | { |
| | | eC_OrderExtend.Shejirenyuanneiye1 = 0; |
| | | eC_OrderExtend.ShejirenyuanNameneiye1 = ""; |
| | | eC_OrderExtend.ShejiUnitPriceneiye1 = 0; |
| | | eC_OrderExtend.ShejiSumPriceneiye1 = 0; |
| | | } |
| | | |
| | | |
| | | |
| | | eC_OrderExtend.ShejileixingNameneiye1 = this.shejileixing(eC_OrderExtend.Shejileixingneiye1.Value.ToString()); |
| | | eC_OrderExtend.Shejiyaoqiuneiye1 = this.txtShejiyaoqiuneiye61.Value; |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | if (insidePageNum > 2) |
| | | { |
| | | PageNumneiye = Request["pageNum" + 3].ToInt32().HasValue ? Request["pageNum" + 3].ToInt32().Value : 0; |
| | | eC_OrderExtend.Shejicountneiye2 = PageNumneiye;// Request["printCount"].ToString().ToInt32(); |
| | | eC_OrderExtend.Shejileixingneiye2 = this.SelShejileixingneiye62.Value.ToInt32(); |
| | | if (eC_OrderExtend.Shejileixingneiye2 != 8) |
| | | { |
| | | eC_OrderExtend.Shejirenyuanneiye2 = this.SelShejirenyuanneiye62.Value.ToInt32(); |
| | | var oA_Staff1 = oA_StaffBLL.GetModelByKeyid(eC_OrderExtend.Shejirenyuanneiye2); |
| | | if (oA_Staff1 != null) |
| | | { |
| | | eC_OrderExtend.ShejirenyuanNameneiye2 = oA_Staff1.Name; |
| | | } |
| | | |
| | | var shejijijian1 = bll_OA_ShejijijianBLLBLL.GetModelByformid(CurrentUser.MemberId, PrintTypeId.ToString(), "2", eC_OrderExtend.Shejileixingneiye2.ToString(), null).FirstOrDefault(); |
| | | if (shejijijian1 != null) |
| | | { |
| | | eC_OrderExtend.ShejiUnitPriceneiye2 = shejijijian1.Shejilemoney * gongjia; |
| | | if (eC_OrderExtend.ShejiUnitPriceneiye2.HasValue) |
| | | { |
| | | eC_OrderExtend.ShejiSumPriceneiye2 = eC_OrderExtend.ShejiUnitPriceneiye2 * eC_OrderExtend.Shejicountneiye2; |
| | | } |
| | | } |
| | | } |
| | | else |
| | | { |
| | | eC_OrderExtend.Shejirenyuanneiye2 = 0; |
| | | eC_OrderExtend.ShejirenyuanNameneiye2 = ""; |
| | | eC_OrderExtend.ShejiUnitPriceneiye2 = 0; |
| | | eC_OrderExtend.ShejiSumPriceneiye2 = 0; |
| | | } |
| | | |
| | | |
| | | |
| | | eC_OrderExtend.ShejileixingNameneiye2 = this.shejileixing(eC_OrderExtend.Shejileixingneiye2.Value.ToString()); |
| | | eC_OrderExtend.Shejiyaoqiuneiye2 = this.txtShejiyaoqiuneiye62.Value; |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | } |
| | | else if (PrintTypeId == 15) |
| | | { |
| | |
| | | var shejijijian = bll_OA_ShejijijianBLLBLL.GetModelByformid(CurrentUser.MemberId, PrintTypeId.ToString(), "1", eC_OrderExtend.Shejileixing.ToString(), null).FirstOrDefault(); |
| | | if (shejijijian != null) |
| | | { |
| | | eC_OrderExtend.ShejiUnitPrice = shejijijian.Shejilemoney; |
| | | eC_OrderExtend.ShejiUnitPrice = shejijijian.Shejilemoney * gongjia; |
| | | if (eC_OrderExtend.ShejiUnitPrice.HasValue) |
| | | { |
| | | eC_OrderExtend.ShejiSumPrice = eC_OrderExtend.ShejiUnitPrice * eC_OrderExtend.Shejicount; |
| | |
| | | var shejijijian1 = bll_OA_ShejijijianBLLBLL.GetModelByformid(CurrentUser.MemberId, PrintTypeId.ToString(), "2", eC_OrderExtend.Shejileixingneiye.ToString(), null).FirstOrDefault(); |
| | | if (shejijijian1 != null) |
| | | { |
| | | eC_OrderExtend.ShejiUnitPriceneiye = shejijijian1.Shejilemoney; |
| | | eC_OrderExtend.ShejiUnitPriceneiye = shejijijian1.Shejilemoney * gongjia; |
| | | if (eC_OrderExtend.ShejiUnitPriceneiye.HasValue) |
| | | { |
| | | eC_OrderExtend.ShejiSumPriceneiye = eC_OrderExtend.ShejiUnitPriceneiye * eC_OrderExtend.Shejicountneiye; |
| | |
| | | var shejijijian = bll_OA_ShejijijianBLLBLL.GetModelByformid(CurrentUser.MemberId, PrintTypeId.ToString(), "", eC_OrderExtend.Shejileixing.ToString(), null).FirstOrDefault(); |
| | | if (shejijijian != null) |
| | | { |
| | | eC_OrderExtend.ShejiUnitPrice = shejijijian.Shejilemoney; |
| | | eC_OrderExtend.ShejiUnitPrice = shejijijian.Shejilemoney * gongjia; |
| | | if (eC_OrderExtend.ShejiUnitPrice.HasValue) |
| | | { |
| | | eC_OrderExtend.ShejiSumPrice = eC_OrderExtend.ShejiUnitPrice * eC_OrderExtend.Shejicount; |
| | |
| | | var shejijijian = bll_OA_ShejijijianBLLBLL.GetModelByformid(CurrentUser.MemberId, PrintTypeId.ToString(), "", eC_OrderExtend.Shejileixing.ToString(), null).FirstOrDefault(); |
| | | if (shejijijian != null) |
| | | { |
| | | eC_OrderExtend.ShejiUnitPrice = shejijijian.Shejilemoney; |
| | | eC_OrderExtend.ShejiUnitPrice = shejijijian.Shejilemoney * gongjia; |
| | | if (eC_OrderExtend.ShejiUnitPrice.HasValue) |
| | | { |
| | | eC_OrderExtend.ShejiSumPrice = eC_OrderExtend.ShejiUnitPrice * eC_OrderExtend.Shejicount; |
| | |
| | | } |
| | | else if (PrintTypeId == 38) |
| | | { |
| | | eC_OrderExtend.Shejicount = this.ShijuanprintCount.Value.ToInt32() ?? 0; //Request["printCount"].ToString().ToInt32(); |
| | | eC_OrderExtend.Shejicount = this.txtShejileixingName38.Value.ToInt32() ?? 0; //Request["printCount"].ToString().ToInt32(); |
| | | eC_OrderExtend.Shejirenyuan = this.SelShejirenyuan38.Value.ToInt32(); |
| | | var oA_Staff = oA_StaffBLL.GetModelByKeyid(eC_OrderExtend.Shejirenyuan); |
| | | if (oA_Staff != null) |
| | |
| | | |
| | | |
| | | |
| | | eC_OrderExtend.Shejicountneiye = this.DatikaprintCount.Value.ToInt32()??0; //Request["printCount"].ToString().ToInt32(); |
| | | eC_OrderExtend.Shejicountneiye = this.txtShejileixingNameneiye38.Value.ToInt32()??0; //Request["printCount"].ToString().ToInt32(); |
| | | eC_OrderExtend.Shejirenyuanneiye = this.SelShejirenyuanneiye38.Value.ToInt32(); |
| | | var oA_Staff1 = oA_StaffBLL.GetModelByKeyid(eC_OrderExtend.Shejirenyuanneiye); |
| | | if (oA_Staff1 != null) |
| | |
| | | eC_OrderExtend.Shejiyaoqiu = this.txtShejiyaoqiu1111.Value; |
| | | eC_OrderExtend.ShejiStatus = 2; |
| | | |
| | | var shejijijian = bll_OA_ShejijijianBLLBLL.GetModelByformid(CurrentUser.MemberId, PrintTypeId.ToString(), "", "", null).FirstOrDefault(); |
| | | if (shejijijian != null) |
| | | { |
| | | eC_OrderExtend.ShejiUnitPrice = shejijijian.Shejilemoney; |
| | | if (eC_OrderExtend.ShejiUnitPrice.HasValue) |
| | | { |
| | | eC_OrderExtend.ShejiSumPrice = eC_OrderExtend.ShejiUnitPrice * eC_OrderExtend.Shejicount; |
| | | } |
| | | } |
| | | //var shejijijian = bll_OA_ShejijijianBLLBLL.GetModelByformid(CurrentUser.MemberId, PrintTypeId.ToString(), "", "", null).FirstOrDefault(); |
| | | //if (shejijijian != null) |
| | | //{ |
| | | // eC_OrderExtend.ShejiUnitPrice = shejijijian.Shejilemoney; |
| | | // if (eC_OrderExtend.ShejiUnitPrice.HasValue) |
| | | // { |
| | | // eC_OrderExtend.ShejiSumPrice = eC_OrderExtend.ShejiUnitPrice * eC_OrderExtend.Shejicount; |
| | | // } |
| | | //} |
| | | |
| | | var sss = this.txtShejiSumPrice1111.Value.ToDecimal2(); |
| | | eC_OrderExtend.ShejiSumPrice = sss.HasValue?sss.Value:0; |
| | | eC_OrderExtend.ShejiUnitPrice = eC_OrderExtend.ShejiSumPrice; |
| | | } |
| | | #endregion |
| | | |