protected void InitPage(string sueId) { IList <MSueUse> ls = null; IList <MSueUse> newls = null; int recordCount = 0; ls = new BSourceControl().GetHotelUseList(sueId, this.SiteUserInfo.CompanyId, 1, 1, ref recordCount); if (recordCount > 0) { newls = new BSourceControl().GetHotelUseList(sueId, this.SiteUserInfo.CompanyId, 1, recordCount, ref recordCount); } if (newls != null && newls.Count > 0) { this.rpt_tuandui.DataSource = newls; this.rpt_tuandui.DataBind(); } else { this.ph_tuandui.Visible = false; } MSourceSueHotel hotelModel = new EyouSoft.BLL.SourceStructure.BSourceControl().GetModelByHotelId(sueId, this.SiteUserInfo.CompanyId); if (hotelModel != null) { this.lbHotelName.Text = hotelModel.SourceName; this.lbRoomType.Text = hotelModel.RoomType; this.lbRoomNum.Text = hotelModel.ControlNum.ToString(); this.lbDate.Text = hotelModel.PeriodStartTime.ToString("yyyy-MM-dd"); this.lbLastDate.Text = hotelModel.LastTime.ToString("yyyy-MM-dd"); this.lbRoomPrice.Text = UtilsCommons.GetMoneyString(hotelModel.UnitPrice, ProviderToMoney); this.lbTotalPrcie.Text = UtilsCommons.GetMoneyString(hotelModel.TotalPrice, ProviderToMoney); this.lbPreMoney.Text = UtilsCommons.GetMoneyString(hotelModel.Advance, ProviderToMoney); this.lbRemark.Text = hotelModel.Remark; } }
protected void InitPage(string sueId) { IList <MSueUse> ls = null; IList <MSueUse> newls = null; int recordCount = 0; ls = new BSourceControl().GetOtherUseList(this.SiteUserInfo.CompanyId, sueId, 1, 1, ref recordCount); if (recordCount > 0) { newls = new BSourceControl().GetOtherUseList(this.SiteUserInfo.CompanyId, sueId, 1, recordCount, ref recordCount); } if (newls != null && newls.Count > 0) { this.rpt_tuandui.DataSource = newls; this.rpt_tuandui.DataBind(); } else { this.ph_tuandui.Visible = false; } var carModel = new EyouSoft.BLL.SourceStructure.BSourceControl().GetModelByOtherId(sueId, this.SiteUserInfo.CompanyId); if (carModel != null) { this.lbCarName.Text = carModel.SourceName; this.lbCarType.Text = carModel.TypeName; this.lbCarNum.Text = carModel.ControlNum.ToString(); this.lbPreDate.Text = (carModel.SueStartTime.HasValue ? carModel.SueStartTime.Value.ToString("yyyy-MM-dd") : "") + "-" + (carModel.SueEndTime.HasValue ? carModel.SueEndTime.Value.ToString("yyyy-MM-dd") : ""); this.lbLastDate.Text = carModel.LastTime.HasValue ? carModel.LastTime.Value.ToString("yyyy-MM-dd") : ""; this.lbCarPrice.Text = UtilsCommons.GetMoneyString(carModel.UnitPrice, ProviderToMoney); this.lbTotalPrice.Text = UtilsCommons.GetMoneyString(carModel.TotalPrice, ProviderToMoney); this.lbRemark.Text = EyouSoft.Common.Function.StringValidate.TextToHtml(carModel.Remark); } }
protected void InitPage(string sueId) { IList <MSueUse> ls = null; IList <MSueUse> newls = null; int recordCount = 0; ls = new BSourceControl().GetShipUseList(this.SiteUserInfo.CompanyId, sueId, 1, 1, ref recordCount); if (recordCount > 0) { newls = new BSourceControl().GetShipUseList(this.SiteUserInfo.CompanyId, sueId, 1, recordCount, ref recordCount); } if (newls != null && newls.Count > 0) { this.rpt_tuandui.DataSource = newls; this.rpt_tuandui.DataBind(); } else { this.ph_tuandui.Visible = false; } MSourceSueShip shipModel = new EyouSoft.BLL.SourceStructure.BSourceControl().GetModelByShipId(sueId, this.SiteUserInfo.CompanyId); if (shipModel != null) { this.lbBoatCompany.Text = shipModel.ShipCompany; this.lbBoatName.Text = shipModel.ShipName; this.lbBoatNum.Text = shipModel.ControlNum.ToString(); this.lbPreDate.Text = shipModel.GoShipTime.HasValue ? shipModel.GoShipTime.Value.ToString("yyyy-MM-dd") : ""; this.lbLastDate.Text = shipModel.LastTime.HasValue ? shipModel.LastTime.Value.ToString("yyyy-MM-dd") : ""; this.lbBoatPrice.Text = UtilsCommons.GetMoneyString(shipModel.UnitPrice, ProviderToMoney); this.lbTotalPrice.Text = UtilsCommons.GetMoneyString(shipModel.TotalPrice, ProviderToMoney); this.lbRemark.Text = EyouSoft.Common.Function.StringValidate.TextToHtml(shipModel.Remark); } }