private DTO.Business.View_OrderList GetOrderMess(string orderid) { DTO.Business.View_OrderList view_order = new DTO.Business.View_OrderList(); view_order.OrderID = int.Parse(orderid); return Business.Business.View_OrderListBLL.Get(view_order); }
/// <summary> /// 获取父对象 /// </summary> protected void GetDTO() { DTO.Business.View_OrderList model = new DTO.Business.View_OrderList(); model.OrderID = Convert.ToInt32(Request.Params["ID"]); model = Business.Business.View_OrderListBLL.Get(model); this.txtOrderNo.Text = model.OrderNo; //this.txtUserID.Text = model.UserID; //this.txtBusmanID.Text = model.BusmanID; this.txtOrderPrice.Text = model.OrderPrice.ToString(); this.txtWorkTime.Text = model.WorkTime.ToString(); this.txtNote.Text = model.Note; this.txtPhotoURL.ImageUrl = model.PhotoURL; this.txtStatus.Text =Common.StatusHelper.GetOrderStatusText(model.Status); this.txtOrderTime.Text = model.OrderTime.ToString(); this.txtGetOrderTime.Text = model.GetOrderTime.ToString(); this.txtPayTime.Text = model.PayTime.ToString(); //this.txtAddressID.Text = model.AddressID; //this.txtRepairTypeID.Text = model.RepairTypeID; this.txtRepairName.Text = model.RepairName; this.txtCustomName.Text = model.CustomName; this.txtBusmanName.Text = model.BusmanName; this.txtCustomPhone.Text = model.CustomPhone; this.txtBusmanPhone.Text = model.BusmanPhone; this.txtAddressName.Text = model.AddressName; //if (model.Status == 1) { // this.btnPostMess.Visible = true; //} }