| | |
| | | { |
| | | EC_SpecialOrdersBLL bll_EC_SpecialOrdersBLL = null; |
| | | string orderIdStr = string.Empty; |
| | | public string PrintTypeId = ""; |
| | | public string therowspan = ""; |
| | | //初始化 |
| | | public AgSpecialOrderDetail() |
| | | { |
| | |
| | | { |
| | | _inquiryCommonModel = SerializationHelper.DeSerialize(typeof(InquiryCommonModel), _eC_OrderPrintParameter.PrintParameter) as InquiryCommonModel; |
| | | } |
| | | |
| | | PrintTypeId = _eC_OrderBasic.PrintTypeId.ToString(); |
| | | #endregion |
| | | |
| | | EC_SpecialOrders m_EC_SpecialOrders = bll_EC_SpecialOrdersBLL.GetModelByOrderId(orderId); |
| | |
| | | |
| | | this.spanSpecialNum.InnerText = string.IsNullOrEmpty(m_EC_SpecialOrders.PSO_OrderNum) ? bll_EC_SpecialOrdersBLL.GetPSO_OrderNum(CurrentUser.MemberId) : m_EC_SpecialOrders.PSO_OrderNum; |
| | | this.spanSpecialExigency.InnerText = _eC_OrderBasic.OrderExtend.ExigencyCase.Name; |
| | | this.spanSpecialTime.InnerText = m_EC_SpecialOrders.PSO_OrderTime == null ? DateTime.Now.ToString("yyyy-MM-dd HH:mm") : m_EC_SpecialOrders.PSO_OrderTime.Value.ToString("yyyy-MM-dd HH:mm"); |
| | | this.spanSpecialTime.InnerText = m_EC_SpecialOrders.PSO_OrderTime == null ? DateTime.Now.ToString("yyyy-MM-dd") : m_EC_SpecialOrders.PSO_OrderTime.Value.ToString("yyyy-MM-dd"); |
| | | this.spanSpecialOprator.InnerText = string.IsNullOrEmpty(m_EC_SpecialOrders.Operator) ? CurrentUser.ShortName : m_EC_SpecialOrders.Operator; |
| | | |
| | | if (string.IsNullOrEmpty(m_EC_SpecialOrders.PSO_Work)) |
| | |
| | | { |
| | | this.txtPSO_Work_o.InnerText = m_EC_SpecialOrders.PSO_Work; |
| | | } |
| | | |
| | | this.txtPSO_Work_o_TR.Visible = false; |
| | | if (string.IsNullOrEmpty(m_EC_SpecialOrders.PSO_Remarks)) |
| | | { |
| | | this.txtPSO_Remarks_o_TR.Visible = false; |
| | | // this.txtPSO_Remarks_o_TR.Visible = false; |
| | | } |
| | | else |
| | | { |
| | |
| | | } |
| | | |
| | | this.spanOrderNum.InnerText = _eC_OrderBasic.SellerOrderId; |
| | | this.spanPrintNum.InnerText = m_EC_SpecialOrders.OrderNum.ToString2() ; |
| | | //this.spanOrderType.InnerText = _eC_OrderBasic.OrderType.Name; |
| | | this.spanOrderTitle.InnerText = _eC_OrderBasic.DocumentName; |
| | | this.spanOrderDeliveryTime.InnerText = _eC_OrderBasic.DeliveryTime == null ? "" : _eC_OrderBasic.DeliveryTime.Value.ToString("yyyy-MM-dd HH:mm"); |
| | | this.spanOrderDeliveryTime.InnerText = _eC_OrderBasic.DeliveryTime == null ? "" : _eC_OrderBasic.DeliveryTime.Value.ToString("yyyy-MM-dd"); |
| | | |
| | | this.spanOrderCustormName.InnerText = _eC_OrderBasic.BuyerName; |
| | | this.spanOrderCustormLevel.InnerText = _eC_OrderBasic.OrderExtend.CustomerLevel.Name; |
| | |
| | | { |
| | | eC_SpecialForums.shifouxianshi = "display:none;"; |
| | | eC_SpecialForums.shifouxianshiheban = "display:none;"; |
| | | eC_SpecialForums.shifouqitadingdan = "display:;"; |
| | | eC_SpecialForums.shifouqitadingdan = ""; |
| | | } |
| | | else |
| | | { |
| | | eC_SpecialForums.shifouqitadingdan = "display:none;"; |
| | | } |
| | | |
| | | if (eC_SpecialForums.PSF_PressesDesk.IndexOf("轮转") >= 0) |
| | | { |
| | | eC_SpecialForums.shifouxianshilunzhuan = "display:none;"; |
| | | |
| | | } |
| | | else |
| | | { |
| | | eC_SpecialForums.shifouxianshilunzhuan = ""; |
| | | } |
| | | |
| | | } |
| | | this.RepClientList.DataSource = m_EC_SpecialForumsList; |
| | | this.RepClientList.DataBind(); |
| | | |
| | | |
| | | List<EC_SpecialHoudaos> m_EC_SpecialHoudaosList = bll_EC_SpecialOrdersBLL.GetEC_SpecialHoudaosListByKeyid(m_EC_SpecialOrders.Keyid) as List<EC_SpecialHoudaos>; |
| | | this.RepeaterHoudaoList.DataSource = m_EC_SpecialHoudaosList; |
| | | this.RepeaterHoudaoList.DataBind(); |
| | | |
| | | if (m_EC_SpecialHoudaosList == null || m_EC_SpecialHoudaosList.Count <= 0) |
| | | { |
| | | this.Tr1.Visible = false; |
| | | } |
| | | if(m_EC_SpecialHoudaosList != null) |
| | | { |
| | | therowspan = (m_EC_SpecialHoudaosList.Count + 1) + ""; |
| | | } |
| | | else |
| | | { |
| | | therowspan = "1"; |
| | | } |
| | | |
| | | |
| | | return true; |
| | | } |
| | | /// <summary> |