| | |
| | | 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.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.selPrintTypes.Items.Add(new ListItem("其他", "-1")); |
| | | |
| | | this.selExigencyDegree.DataSource = _sys_DictionaryBLL.GetDataByType("OA_紧急程度"); |
| | | this.selExigencyDegree.DataBind(); |
| | |
| | | { |
| | | 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; |
| | |
| | | var StaffId = CurrentUser.StaffId; |
| | | this.SelShejirenyuan1111.Value = StaffId.ToString(); |
| | | } |
| | | |
| | | } |
| | | } |
| | | |
| | |
| | | decimal bakai = 370 * 260; |
| | | |
| | | decimal sanshierkai = 130 * 185; |
| | | |
| | | decimal dasanshierkai = 140 * 210; |
| | | |
| | | var txtFirstSize = Request["txtFirstSize"].ToDecimal2()??0; |
| | | var txtSecondSize = Request["txtSecondSize"].ToDecimal2() ?? 0; |
| | |
| | | { |
| | | gongjia = new decimal(1.3); |
| | | } |
| | | else if (chicun == sanshierkai) |
| | | else if (chicun >= sanshierkai && chicun <= dasanshierkai) |
| | | { |
| | | gongjia = new decimal(0.7); |
| | | } |
| | |
| | | var shejijijian = bll_OA_ShejijijianBLLBLL.GetModelByformid(CurrentUser.MemberId, PrintTypeId.ToString(),"", eC_OrderExtend.Shejileixing.ToString(),null).FirstOrDefault(); |
| | | if (shejijijian != null) |
| | | { |
| | | 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; |
| | |
| | | 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) |
| | |
| | | |
| | | 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; |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | } |
| | |
| | | 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 |
| | | |