public void BookShow() { brModel = brBll.GetModel(Convert.ToInt32(id)); if (brModel != null) { List <Model.Book_Rdetail> list = bllbr.GetListModel("Book_no='" + brModel.book_no + "'"); if (list != null) { //预定人 this.lbname.Text = brModel.book_Name; //号码 this.lbtele.Text = brModel.tele_no; //客人来源 Model.guest_source gsModel = gsBll.GetModel(Convert.ToInt32(brModel.source_id)); this.lbsource.Text = gsModel.gs_name; //房型 Model.room_type rtModel = rtBll.GetModel(Convert.ToInt32(list[0].Real_type_Id)); this.lbroomtype.Text = rtModel.room_name; //房数 this.lbrealnum.Text = list.Count.ToString(); //可退订金 this.lbdeposit.Text = (Convert.ToDouble(brModel.deposit)).ToString(); } } }
public void BookShow() { brModel = brBll.GetModel(Convert.ToInt32(id)); //预定人 this.lbname.Text = brModel.book_Name; //号码 this.lbtele.Text = brModel.tele_no; //客人来源 Model.guest_source gsModel = gsBll.GetModel(Convert.ToInt32(brModel.source_id)); this.lbsource.Text = gsModel.gs_name; //房型 Model.room_type rtModel = rtBll.GetModel(Convert.ToInt32(brModel.real_type_id)); //可退订金 this.lbdeposit.Text = (Convert.ToDouble(brModel.deposit)).ToString(); //来店时间 this.lbtimeto.Text = brModel.time_to.ToString(); //离店时间 this.lbtimefrom.Text = brModel.time_from.ToString(); //绑定房型下拉 }
//获得客人来源中文名称 public string GetSourceTypeName(object id) { if (id.ToString() == "") { return(""); } BLL.guest_source gsbll = new BLL.guest_source(); Model.guest_source model = gsbll.GetModel(Convert.ToInt32(id.ToString())); return(model.gs_name); }
//获得来源 public string GetLYName(int id) { Model.guest_source model = fmGust.GetModel(Convert.ToInt32(id.ToString())); if (model != null) { return(model.gs_name); } else { return(""); } }
public string GetSourceName(object id) { Model.guest_source model = new Model.guest_source(); try { model = guestBll.GetModel(Convert.ToInt32(id)); } catch { } return(model.gs_name); }
//获得来源 public string GetLYName(int id) { Model.guest_source model = fmGust.GetModel(Convert.ToInt32(id.ToString())); return(model.gs_name); }