private void Initialize() { if (this.curOutboundOrder == null) { return; } try { this.skinLabel_OrderID.Text = this.curOutboundOrder.ID; this.skinLabel_Remarks.Text = this.curOutboundOrder.Remarks.ToString(); //this.skinLabel_TotalCount.Text = this.curOutboundOrder.TotalCount.ToString(); //this.skinLabel_TotalPrice.Text = this.curOutboundOrder.TotalPrice.ToString(); //string operatorName = CommonGlobalCache.GetUserName(this.curOutboundOrder.OperatorUserID); //if (string.IsNullOrEmpty(operatorName)) //{ // this.skinLabel_OperatorLabel.Visible = false; //} //this.skinLabel_Operator.Text = operatorName; //this.skinLabel_OperateTime.Text = this.curOutboundOrder.CreateTime.ToString(); //this.skinLabel_SenderShopName.Text= CommonGlobalCache.GetShopName(this.curOutboundOrder.ShopID); SourceOrderPartialDetail sourceOrderPartialDetail = CommonGlobalUtil.GetSourceOrderPartialDetail(this.curOutboundOrder.SourceOrderID); if (sourceOrderPartialDetail != null) { //this.skinLabel_ReceiverName.Text= CommonGlobalCache.GetShopName(sourceOrderPartialDetail.DestShopID); } List <BoundDetail> list = CommonGlobalCache.ServerProxy.GetOutboundDetail(this.curOutboundOrder.ID); this.BindingOutboundDetailSource(list); } catch (Exception ee) { CommonGlobalUtil.ShowError(ee); } }
private void Initialize() { if (this.curInboundOrder == null) { return; } try { SourceOrderPartialDetail sourceOrderPartialDetail = CommonGlobalUtil.GetSourceOrderPartialDetail(this.curInboundOrder.SourceOrderID); string operatorName = CommonGlobalCache.GetUserName(this.curInboundOrder.OperatorUserID); this.skinLabel3.Text = this.curInboundOrder.ID; this.skinLabel1.Text = this.curInboundOrder.Remarks.ToString(); if (this.curDateTime != "") { this.skinLabel6.Text = this.curDateTime.ToString(); } else { this.skinLabel6.Text = ""; this.skinLabel4.Text = ""; } List <BoundDetail> list = CommonGlobalCache.ServerProxy.GetInboundDetail(this.curInboundOrder.ID); this.BindingInboundDetailSource(list); } catch (Exception ee) { CommonGlobalUtil.ShowError(ee); } }