Ejemplo n.º 1
0
 /// <summary>
 /// 绑定客房类型信息
 /// </summary>
 public void BindRoomType()
 {
     this.ddlRoomType.DataSource     = RoomTypeManager.GetAllRoomTypes();
     this.ddlRoomType.DataTextField  = "TypeName";
     this.ddlRoomType.DataValueField = "TypeID";
     this.DataBind();
 }
Ejemplo n.º 2
0
 /// <summary>
 /// 窗体加载时执行
 /// </summary>
 private void RoomSettingForm_Load(object sender, EventArgs e)
 {
     //绑定客房类型数据
     this.cboTypeName.DataSource    = RoomTypeManager.GetAllRoomTypes();
     this.cboTypeName.DisplayMember = "TypeName";
     //绑定客房信息
     BindRoomInfoList();
 }
Ejemplo n.º 3
0
    /// <summary>
    /// 绑定客房类型
    /// </summary>
    public void BindRoomType()
    {
        ddlType.DataSource     = RoomTypeManager.GetAllRoomTypes();
        ddlType.DataTextField  = "TypeName";
        ddlType.DataValueField = "TypeId";
        ddlType.DataBind();
        ListItem item = new ListItem();

        item.Text  = "--选择--";
        item.Value = "-1";
        ddlType.Items.Insert(0, item);
    }
Ejemplo n.º 4
0
 /// <summary>
 /// 绑定客房类型信息
 /// </summary>
 public void BindRoomType()
 {
     this.gvRoomType.DataSource = RoomTypeManager.GetAllRoomTypes();
     this.gvRoomType.DataBind();
 }