Exemple #1
0
        public void repositoryItemSearchLookUpEdit1_EditValueChanged(object sender, EventArgs e)
        {
            long PropertyID       = CommonConvert.Obj2Int64((this.gridView1.GetRow(this.gridView1.FocusedRowHandle) as DataRowView)["ID"]);
            var  searchLookUpEdit = sender as SearchLookUpEdit;

            if (searchLookUpEdit == null)
            {
                return;
            }

            DevExpress.XtraEditors.Repository.RepositoryItemSearchLookUpEdit riSearchLookUpEdit = searchLookUpEdit.Properties as DevExpress.XtraEditors.Repository.RepositoryItemSearchLookUpEdit;
            var  rowByKeyValue  = riSearchLookUpEdit.View.GetFocusedRowCellValue("ID");
            long PropertyRootID = CommonConvert.Obj2Int64(rowByKeyValue);

            this.propertiesMerchantTableAdapter.Connection.ConnectionString = ConfigurationManager.AppSettings["MerchantProperties"];
            this.propertiesMerchantTableAdapter.Update_RootProperty(PropertyRootID, PropertyID);
        }
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     this.gridControlData = new DevExpress.XtraGrid.GridControl();
     this.advBandedGridViewData = new DevExpress.XtraGrid.Views.BandedGrid.AdvBandedGridView();
     this.gridColumn1 = new DevExpress.XtraGrid.Views.BandedGrid.BandedGridColumn();
     this.repositoryItemSearchLookUpEditstu_code = new DevExpress.XtraEditors.Repository.RepositoryItemSearchLookUpEdit();
     this.repositoryItemSearchLookUpEdit1View = new DevExpress.XtraGrid.Views.Grid.GridView();
     this.gridColumn7 = new DevExpress.XtraGrid.Columns.GridColumn();
     this.gridColumn12 = new DevExpress.XtraGrid.Columns.GridColumn();
     this.gridColumn14 = new DevExpress.XtraGrid.Columns.GridColumn();
     this.gridColumn2 = new DevExpress.XtraGrid.Views.BandedGrid.BandedGridColumn();
     this.gridColumn5 = new DevExpress.XtraGrid.Views.BandedGrid.BandedGridColumn();
     this.gridColumn6 = new DevExpress.XtraGrid.Views.BandedGrid.BandedGridColumn();
     this.gridColumn8 = new DevExpress.XtraGrid.Views.BandedGrid.BandedGridColumn();
     this.repositoryItemSearchLookUpEditDiscountsId = new DevExpress.XtraEditors.Repository.RepositoryItemSearchLookUpEdit();
     this.gridView3 = new DevExpress.XtraGrid.Views.Grid.GridView();
     this.gridColumn15 = new DevExpress.XtraGrid.Columns.GridColumn();
     this.gridColumn9 = new DevExpress.XtraGrid.Views.BandedGrid.BandedGridColumn();
     this.repositoryItemCalcEditF2 = new DevExpress.XtraEditors.Repository.RepositoryItemCalcEdit();
     this.gridColumn3 = new DevExpress.XtraGrid.Views.BandedGrid.BandedGridColumn();
     this.repositoryItemButtonEditSave = new DevExpress.XtraEditors.Repository.RepositoryItemButtonEdit();
     this.gridColumn4 = new DevExpress.XtraGrid.Views.BandedGrid.BandedGridColumn();
     this.repositoryItemButtonEditDel = new DevExpress.XtraEditors.Repository.RepositoryItemButtonEdit();
     this.gridBand1 = new DevExpress.XtraGrid.Views.BandedGrid.GridBand();
     this.gridBand2 = new DevExpress.XtraGrid.Views.BandedGrid.GridBand();
     this.gridBand3 = new DevExpress.XtraGrid.Views.BandedGrid.GridBand();
     ((System.ComponentModel.ISupportInitialize)(this.gridControlData)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.advBandedGridViewData)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.repositoryItemSearchLookUpEditstu_code)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.repositoryItemSearchLookUpEdit1View)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.repositoryItemSearchLookUpEditDiscountsId)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.gridView3)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.repositoryItemCalcEditF2)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.repositoryItemButtonEditSave)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.repositoryItemButtonEditDel)).BeginInit();
     this.SuspendLayout();
     //
     // gridControlData
     //
     this.gridControlData.Dock = System.Windows.Forms.DockStyle.Fill;
     this.gridControlData.EmbeddedNavigator.Buttons.CancelEdit.Visible = false;
     this.gridControlData.EmbeddedNavigator.Buttons.Edit.Visible = false;
     this.gridControlData.EmbeddedNavigator.Buttons.EndEdit.Visible = false;
     this.gridControlData.EmbeddedNavigator.Buttons.Remove.Visible = false;
     this.gridControlData.Location = new System.Drawing.Point(0, 0);
     this.gridControlData.MainView = this.advBandedGridViewData;
     this.gridControlData.Name = "gridControlData";
     this.gridControlData.RepositoryItems.AddRange(new DevExpress.XtraEditors.Repository.RepositoryItem[] {
     this.repositoryItemButtonEditSave,
     this.repositoryItemButtonEditDel,
     this.repositoryItemSearchLookUpEditstu_code,
     this.repositoryItemSearchLookUpEditDiscountsId,
     this.repositoryItemCalcEditF2});
     this.gridControlData.Size = new System.Drawing.Size(834, 362);
     this.gridControlData.TabIndex = 0;
     this.gridControlData.UseEmbeddedNavigator = true;
     this.gridControlData.ViewCollection.AddRange(new DevExpress.XtraGrid.Views.Base.BaseView[] {
     this.advBandedGridViewData});
     this.gridControlData.KeyDown += new System.Windows.Forms.KeyEventHandler(this.ActiveKeyDownEvent);
     //
     // advBandedGridViewData
     //
     this.advBandedGridViewData.Bands.AddRange(new DevExpress.XtraGrid.Views.BandedGrid.GridBand[] {
     this.gridBand1,
     this.gridBand2,
     this.gridBand3});
     this.advBandedGridViewData.Columns.AddRange(new DevExpress.XtraGrid.Views.BandedGrid.BandedGridColumn[] {
     this.gridColumn1,
     this.gridColumn2,
     this.gridColumn5,
     this.gridColumn6,
     this.gridColumn8,
     this.gridColumn9,
     this.gridColumn3,
     this.gridColumn4});
     this.advBandedGridViewData.GridControl = this.gridControlData;
     this.advBandedGridViewData.Name = "advBandedGridViewData";
     this.advBandedGridViewData.OptionsPrint.EnableAppearanceEvenRow = true;
     this.advBandedGridViewData.OptionsPrint.EnableAppearanceOddRow = true;
     this.advBandedGridViewData.OptionsView.EnableAppearanceEvenRow = true;
     this.advBandedGridViewData.OptionsView.EnableAppearanceOddRow = true;
     this.advBandedGridViewData.VertScrollVisibility = DevExpress.XtraGrid.Views.Base.ScrollVisibility.Never;
     //
     // gridColumn1
     //
     this.gridColumn1.AppearanceCell.Options.UseTextOptions = true;
     this.gridColumn1.AppearanceCell.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center;
     this.gridColumn1.AppearanceHeader.Options.UseTextOptions = true;
     this.gridColumn1.AppearanceHeader.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center;
     this.gridColumn1.Caption = "اسم الطالب";
     this.gridColumn1.ColumnEdit = this.repositoryItemSearchLookUpEditstu_code;
     this.gridColumn1.FieldName = "stu_code";
     this.gridColumn1.Name = "gridColumn1";
     this.gridColumn1.Visible = true;
     this.gridColumn1.Width = 315;
     //
     // repositoryItemSearchLookUpEditstu_code
     //
     this.repositoryItemSearchLookUpEditstu_code.AutoHeight = false;
     this.repositoryItemSearchLookUpEditstu_code.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] {
     new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo)});
     this.repositoryItemSearchLookUpEditstu_code.DisplayMember = "stu_name";
     this.repositoryItemSearchLookUpEditstu_code.Name = "repositoryItemSearchLookUpEditstu_code";
     this.repositoryItemSearchLookUpEditstu_code.NullText = "";
     this.repositoryItemSearchLookUpEditstu_code.ValueMember = "stu_code";
     this.repositoryItemSearchLookUpEditstu_code.View = this.repositoryItemSearchLookUpEdit1View;
     //
     // repositoryItemSearchLookUpEdit1View
     //
     this.repositoryItemSearchLookUpEdit1View.Columns.AddRange(new DevExpress.XtraGrid.Columns.GridColumn[] {
     this.gridColumn7,
     this.gridColumn12,
     this.gridColumn14});
     this.repositoryItemSearchLookUpEdit1View.FocusRectStyle = DevExpress.XtraGrid.Views.Grid.DrawFocusRectStyle.RowFocus;
     this.repositoryItemSearchLookUpEdit1View.Name = "repositoryItemSearchLookUpEdit1View";
     this.repositoryItemSearchLookUpEdit1View.OptionsSelection.EnableAppearanceFocusedCell = false;
     this.repositoryItemSearchLookUpEdit1View.OptionsView.ShowGroupPanel = false;
     //
     // gridColumn7
     //
     this.gridColumn7.AppearanceCell.Options.UseTextOptions = true;
     this.gridColumn7.AppearanceCell.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center;
     this.gridColumn7.AppearanceHeader.Options.UseTextOptions = true;
     this.gridColumn7.AppearanceHeader.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center;
     this.gridColumn7.Caption = "اسم الطالب";
     this.gridColumn7.FieldName = "stu_name";
     this.gridColumn7.Name = "gridColumn7";
     this.gridColumn7.Visible = true;
     this.gridColumn7.VisibleIndex = 0;
     //
     // gridColumn12
     //
     this.gridColumn12.AppearanceCell.Options.UseTextOptions = true;
     this.gridColumn12.AppearanceCell.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center;
     this.gridColumn12.AppearanceHeader.Options.UseTextOptions = true;
     this.gridColumn12.AppearanceHeader.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center;
     this.gridColumn12.Caption = "الصف";
     this.gridColumn12.FieldName = "alsofof_name";
     this.gridColumn12.Name = "gridColumn12";
     this.gridColumn12.Visible = true;
     this.gridColumn12.VisibleIndex = 1;
     //
     // gridColumn14
     //
     this.gridColumn14.AppearanceCell.Options.UseTextOptions = true;
     this.gridColumn14.AppearanceCell.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center;
     this.gridColumn14.AppearanceHeader.Options.UseTextOptions = true;
     this.gridColumn14.AppearanceHeader.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center;
     this.gridColumn14.Caption = "الفصل";
     this.gridColumn14.FieldName = "fasl_name";
     this.gridColumn14.Name = "gridColumn14";
     this.gridColumn14.Visible = true;
     this.gridColumn14.VisibleIndex = 2;
     //
     // gridColumn2
     //
     this.gridColumn2.AppearanceCell.Options.UseTextOptions = true;
     this.gridColumn2.AppearanceCell.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center;
     this.gridColumn2.AppearanceHeader.Options.UseTextOptions = true;
     this.gridColumn2.AppearanceHeader.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center;
     this.gridColumn2.Caption = "العام الدراسي";
     this.gridColumn2.FieldName = "asase_year";
     this.gridColumn2.Name = "gridColumn2";
     this.gridColumn2.OptionsColumn.AllowEdit = false;
     this.gridColumn2.RowIndex = 1;
     this.gridColumn2.Visible = true;
     this.gridColumn2.Width = 99;
     //
     // gridColumn5
     //
     this.gridColumn5.AppearanceCell.Options.UseTextOptions = true;
     this.gridColumn5.AppearanceCell.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center;
     this.gridColumn5.AppearanceHeader.Options.UseTextOptions = true;
     this.gridColumn5.AppearanceHeader.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center;
     this.gridColumn5.Caption = "الصف";
     this.gridColumn5.FieldName = "alsofof_name";
     this.gridColumn5.Name = "gridColumn5";
     this.gridColumn5.OptionsColumn.AllowEdit = false;
     this.gridColumn5.RowIndex = 1;
     this.gridColumn5.Visible = true;
     this.gridColumn5.Width = 93;
     //
     // gridColumn6
     //
     this.gridColumn6.AppearanceCell.Options.UseTextOptions = true;
     this.gridColumn6.AppearanceCell.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center;
     this.gridColumn6.AppearanceHeader.Options.UseTextOptions = true;
     this.gridColumn6.AppearanceHeader.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center;
     this.gridColumn6.Caption = "الفصل";
     this.gridColumn6.FieldName = "fasl_name";
     this.gridColumn6.Name = "gridColumn6";
     this.gridColumn6.OptionsColumn.AllowEdit = false;
     this.gridColumn6.RowIndex = 1;
     this.gridColumn6.Visible = true;
     this.gridColumn6.Width = 104;
     //
     // gridColumn8
     //
     this.gridColumn8.AppearanceCell.Options.UseTextOptions = true;
     this.gridColumn8.AppearanceCell.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center;
     this.gridColumn8.AppearanceHeader.Options.UseTextOptions = true;
     this.gridColumn8.AppearanceHeader.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center;
     this.gridColumn8.Caption = "نوع الخصم";
     this.gridColumn8.ColumnEdit = this.repositoryItemSearchLookUpEditDiscountsId;
     this.gridColumn8.FieldName = "DiscountsId";
     this.gridColumn8.Name = "gridColumn8";
     this.gridColumn8.Visible = true;
     this.gridColumn8.Width = 120;
     //
     // repositoryItemSearchLookUpEditDiscountsId
     //
     this.repositoryItemSearchLookUpEditDiscountsId.AutoHeight = false;
     this.repositoryItemSearchLookUpEditDiscountsId.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] {
     new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo)});
     this.repositoryItemSearchLookUpEditDiscountsId.Name = "repositoryItemSearchLookUpEditDiscountsId";
     this.repositoryItemSearchLookUpEditDiscountsId.NullText = "";
     this.repositoryItemSearchLookUpEditDiscountsId.View = this.gridView3;
     //
     // gridView3
     //
     this.gridView3.Columns.AddRange(new DevExpress.XtraGrid.Columns.GridColumn[] {
     this.gridColumn15});
     this.gridView3.FocusRectStyle = DevExpress.XtraGrid.Views.Grid.DrawFocusRectStyle.RowFocus;
     this.gridView3.Name = "gridView3";
     this.gridView3.OptionsSelection.EnableAppearanceFocusedCell = false;
     this.gridView3.OptionsView.ShowGroupPanel = false;
     //
     // gridColumn15
     //
     this.gridColumn15.AppearanceCell.Options.UseTextOptions = true;
     this.gridColumn15.AppearanceCell.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center;
     this.gridColumn15.AppearanceHeader.Options.UseTextOptions = true;
     this.gridColumn15.AppearanceHeader.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center;
     this.gridColumn15.Caption = "نوع الخصم";
     this.gridColumn15.FieldName = "Discounts";
     this.gridColumn15.Name = "gridColumn15";
     this.gridColumn15.Visible = true;
     this.gridColumn15.VisibleIndex = 0;
     //
     // gridColumn9
     //
     this.gridColumn9.AppearanceCell.Options.UseTextOptions = true;
     this.gridColumn9.AppearanceCell.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center;
     this.gridColumn9.AppearanceHeader.Options.UseTextOptions = true;
     this.gridColumn9.AppearanceHeader.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center;
     this.gridColumn9.Caption = "المبلغ";
     this.gridColumn9.ColumnEdit = this.repositoryItemCalcEditF2;
     this.gridColumn9.FieldName = "DiscountMony";
     this.gridColumn9.Name = "gridColumn9";
     this.gridColumn9.Visible = true;
     this.gridColumn9.Width = 65;
     //
     // repositoryItemCalcEditF2
     //
     this.repositoryItemCalcEditF2.AutoHeight = false;
     this.repositoryItemCalcEditF2.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] {
     new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo)});
     this.repositoryItemCalcEditF2.DisplayFormat.FormatString = "f2";
     this.repositoryItemCalcEditF2.DisplayFormat.FormatType = DevExpress.Utils.FormatType.Numeric;
     this.repositoryItemCalcEditF2.EditFormat.FormatType = DevExpress.Utils.FormatType.Numeric;
     this.repositoryItemCalcEditF2.Mask.EditMask = "f2";
     this.repositoryItemCalcEditF2.Name = "repositoryItemCalcEditF2";
     //
     // gridColumn3
     //
     this.gridColumn3.AppearanceCell.Options.UseTextOptions = true;
     this.gridColumn3.AppearanceCell.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center;
     this.gridColumn3.AppearanceHeader.Options.UseTextOptions = true;
     this.gridColumn3.AppearanceHeader.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center;
     this.gridColumn3.Caption = "حفظ";
     this.gridColumn3.ColumnEdit = this.repositoryItemButtonEditSave;
     this.gridColumn3.Name = "gridColumn3";
     this.gridColumn3.Visible = true;
     this.gridColumn3.Width = 71;
     //
     // repositoryItemButtonEditSave
     //
     this.repositoryItemButtonEditSave.AutoHeight = false;
     this.repositoryItemButtonEditSave.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] {
     new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.OK)});
     this.repositoryItemButtonEditSave.Name = "repositoryItemButtonEditSave";
     this.repositoryItemButtonEditSave.TextEditStyle = DevExpress.XtraEditors.Controls.TextEditStyles.HideTextEditor;
     this.repositoryItemButtonEditSave.ButtonClick += new DevExpress.XtraEditors.Controls.ButtonPressedEventHandler(this.repositoryItemButtonEditSave_ButtonClick);
     //
     // gridColumn4
     //
     this.gridColumn4.AppearanceCell.Options.UseTextOptions = true;
     this.gridColumn4.AppearanceCell.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center;
     this.gridColumn4.AppearanceHeader.Options.UseTextOptions = true;
     this.gridColumn4.AppearanceHeader.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center;
     this.gridColumn4.Caption = "حذف";
     this.gridColumn4.ColumnEdit = this.repositoryItemButtonEditDel;
     this.gridColumn4.Name = "gridColumn4";
     this.gridColumn4.Visible = true;
     this.gridColumn4.Width = 70;
     //
     // repositoryItemButtonEditDel
     //
     this.repositoryItemButtonEditDel.AutoHeight = false;
     this.repositoryItemButtonEditDel.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] {
     new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Delete)});
     this.repositoryItemButtonEditDel.Name = "repositoryItemButtonEditDel";
     this.repositoryItemButtonEditDel.TextEditStyle = DevExpress.XtraEditors.Controls.TextEditStyles.HideTextEditor;
     this.repositoryItemButtonEditDel.ButtonClick += new DevExpress.XtraEditors.Controls.ButtonPressedEventHandler(this.repositoryItemButtonEditDel_ButtonClick);
     //
     // gridBand1
     //
     this.gridBand1.AppearanceHeader.Options.UseTextOptions = true;
     this.gridBand1.AppearanceHeader.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center;
     this.gridBand1.Caption = "معلومات الطالب";
     this.gridBand1.Columns.Add(this.gridColumn1);
     this.gridBand1.Columns.Add(this.gridColumn2);
     this.gridBand1.Columns.Add(this.gridColumn5);
     this.gridBand1.Columns.Add(this.gridColumn6);
     this.gridBand1.Name = "gridBand1";
     this.gridBand1.Width = 315;
     //
     // gridBand2
     //
     this.gridBand2.AppearanceHeader.Options.UseTextOptions = true;
     this.gridBand2.AppearanceHeader.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center;
     this.gridBand2.Caption = "الخصم";
     this.gridBand2.Columns.Add(this.gridColumn8);
     this.gridBand2.Columns.Add(this.gridColumn9);
     this.gridBand2.Name = "gridBand2";
     this.gridBand2.Width = 185;
     //
     // gridBand3
     //
     this.gridBand3.AppearanceHeader.Options.UseTextOptions = true;
     this.gridBand3.AppearanceHeader.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center;
     this.gridBand3.Caption = "العمليات";
     this.gridBand3.Columns.Add(this.gridColumn3);
     this.gridBand3.Columns.Add(this.gridColumn4);
     this.gridBand3.Name = "gridBand3";
     this.gridBand3.Width = 141;
     //
     // TBL_DiscountStFrm
     //
     this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
     this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
     this.ClientSize = new System.Drawing.Size(834, 362);
     this.Controls.Add(this.gridControlData);
     this.Name = "TBL_DiscountStFrm";
     this.Text = "تحديد الخصم";
     this.Load += new System.EventHandler(this.stu_nashatFrm_Load);
     ((System.ComponentModel.ISupportInitialize)(this.gridControlData)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.advBandedGridViewData)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.repositoryItemSearchLookUpEditstu_code)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.repositoryItemSearchLookUpEdit1View)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.repositoryItemSearchLookUpEditDiscountsId)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.gridView3)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.repositoryItemCalcEditF2)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.repositoryItemButtonEditSave)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.repositoryItemButtonEditDel)).EndInit();
     this.ResumeLayout(false);
 }
Exemple #3
0
 public void SetupGUILabels(DevExpress.XtraEditors.Repository.RepositoryItemSearchLookUpEdit _list)
 {
     SetupGUILabels(_list.View);
 }
 /// <summary> 
 /// Required method for Designer support - do not modify 
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     DevExpress.XtraGrid.GridLevelNode gridLevelNode2 = new DevExpress.XtraGrid.GridLevelNode();
     this.groupControl1 = new DevExpress.XtraEditors.GroupControl();
     this.btnXoa = new System.Windows.Forms.Button();
     this.btnHuy = new System.Windows.Forms.Button();
     this.btnThem = new System.Windows.Forms.Button();
     this.btnDongY = new System.Windows.Forms.Button();
     this.btnSua = new System.Windows.Forms.Button();
     this.nudDonGia = new DevExpress.XtraEditors.SpinEdit();
     this.label3 = new System.Windows.Forms.Label();
     this.txtTenDV = new System.Windows.Forms.TextBox();
     this.label2 = new System.Windows.Forms.Label();
     this.txtMaDV = new System.Windows.Forms.TextBox();
     this.label1 = new System.Windows.Forms.Label();
     this.glkPhong = new DevExpress.XtraEditors.GridLookUpEdit();
     this.gridLookUpEdit1View = new DevExpress.XtraGrid.Views.Grid.GridView();
     this.colMaPhieuNhan = new DevExpress.XtraGrid.Columns.GridColumn();
     this.colPhong = new DevExpress.XtraGrid.Columns.GridColumn();
     this.groupControl2 = new DevExpress.XtraEditors.GroupControl();
     this.gridDichVu = new DevExpress.XtraGrid.GridControl();
     this.grdvDV = new DevExpress.XtraGrid.Views.Grid.GridView();
     this.colMaDV = new DevExpress.XtraGrid.Columns.GridColumn();
     this.colTenDV = new DevExpress.XtraGrid.Columns.GridColumn();
     this.colGia = new DevExpress.XtraGrid.Columns.GridColumn();
     this.grdCTDV = new DevExpress.XtraGrid.GridControl();
     this.grdv_CTDV = new DevExpress.XtraGrid.Views.Grid.GridView();
     this.colMaPhong = new DevExpress.XtraGrid.Columns.GridColumn();
     this.colMaPhieu = new DevExpress.XtraGrid.Columns.GridColumn();
     this.colNgayThue = new DevExpress.XtraGrid.Columns.GridColumn();
     this.colTen = new DevExpress.XtraGrid.Columns.GridColumn();
     this.colSoLuong = new DevExpress.XtraGrid.Columns.GridColumn();
     this.colGiaTien = new DevExpress.XtraGrid.Columns.GridColumn();
     this.colThanhTien = new DevExpress.XtraGrid.Columns.GridColumn();
     this.colMaDV_CTDV = new DevExpress.XtraGrid.Columns.GridColumn();
     this.repositoryItemSearchLookUpEdit1 = new DevExpress.XtraEditors.Repository.RepositoryItemSearchLookUpEdit();
     this.repositoryItemSearchLookUpEdit1View = new DevExpress.XtraGrid.Views.Grid.GridView();
     this.repositoryItemLookUpEdit1 = new DevExpress.XtraEditors.Repository.RepositoryItemLookUpEdit();
     this.layoutView1 = new DevExpress.XtraGrid.Views.Layout.LayoutView();
     this.gridView1 = new DevExpress.XtraGrid.Views.Grid.GridView();
     this.groupControl3 = new DevExpress.XtraEditors.GroupControl();
     this.panel1 = new System.Windows.Forms.Panel();
     this.btnCTDV = new System.Windows.Forms.Button();
     this.lblMaPhong = new System.Windows.Forms.Label();
     this.lblSoLuong = new System.Windows.Forms.Label();
     this.btnThemDV = new System.Windows.Forms.Button();
     this.txtSoLuong = new System.Windows.Forms.TextBox();
     this.backgroundWorker1 = new System.ComponentModel.BackgroundWorker();
     ((System.ComponentModel.ISupportInitialize)(this.groupControl1)).BeginInit();
     this.groupControl1.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.nudDonGia.Properties)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.glkPhong.Properties)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.gridLookUpEdit1View)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.groupControl2)).BeginInit();
     this.groupControl2.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.gridDichVu)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.grdvDV)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.grdCTDV)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.grdv_CTDV)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.repositoryItemSearchLookUpEdit1)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.repositoryItemSearchLookUpEdit1View)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.repositoryItemLookUpEdit1)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.layoutView1)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.gridView1)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.groupControl3)).BeginInit();
     this.groupControl3.SuspendLayout();
     this.panel1.SuspendLayout();
     this.SuspendLayout();
     //
     // groupControl1
     //
     this.groupControl1.Controls.Add(this.btnXoa);
     this.groupControl1.Controls.Add(this.btnHuy);
     this.groupControl1.Controls.Add(this.btnThem);
     this.groupControl1.Controls.Add(this.btnDongY);
     this.groupControl1.Controls.Add(this.btnSua);
     this.groupControl1.Controls.Add(this.nudDonGia);
     this.groupControl1.Controls.Add(this.label3);
     this.groupControl1.Controls.Add(this.txtTenDV);
     this.groupControl1.Controls.Add(this.label2);
     this.groupControl1.Controls.Add(this.txtMaDV);
     this.groupControl1.Controls.Add(this.label1);
     this.groupControl1.Dock = System.Windows.Forms.DockStyle.Left;
     this.groupControl1.Location = new System.Drawing.Point(0, 0);
     this.groupControl1.Name = "groupControl1";
     this.groupControl1.Size = new System.Drawing.Size(278, 619);
     this.groupControl1.TabIndex = 5;
     this.groupControl1.Text = "Thông tin dịch vụ";
     //
     // btnXoa
     //
     this.btnXoa.Location = new System.Drawing.Point(97, 167);
     this.btnXoa.Name = "btnXoa";
     this.btnXoa.Size = new System.Drawing.Size(74, 29);
     this.btnXoa.TabIndex = 44;
     this.btnXoa.Text = "Xóa";
     this.btnXoa.UseVisualStyleBackColor = true;
     this.btnXoa.Click += new System.EventHandler(this.btnXoa_Click_1);
     //
     // btnHuy
     //
     this.btnHuy.Location = new System.Drawing.Point(97, 167);
     this.btnHuy.Name = "btnHuy";
     this.btnHuy.Size = new System.Drawing.Size(74, 29);
     this.btnHuy.TabIndex = 47;
     this.btnHuy.Text = "Hủy";
     this.btnHuy.UseVisualStyleBackColor = true;
     this.btnHuy.Visible = false;
     this.btnHuy.Click += new System.EventHandler(this.btnHuy_Click);
     //
     // btnThem
     //
     this.btnThem.Location = new System.Drawing.Point(21, 167);
     this.btnThem.Name = "btnThem";
     this.btnThem.Size = new System.Drawing.Size(74, 29);
     this.btnThem.TabIndex = 43;
     this.btnThem.Text = "Thêm";
     this.btnThem.UseVisualStyleBackColor = true;
     this.btnThem.Click += new System.EventHandler(this.btnThem_Click);
     //
     // btnDongY
     //
     this.btnDongY.Location = new System.Drawing.Point(21, 167);
     this.btnDongY.Name = "btnDongY";
     this.btnDongY.Size = new System.Drawing.Size(74, 29);
     this.btnDongY.TabIndex = 46;
     this.btnDongY.Text = "Đồng ý";
     this.btnDongY.UseVisualStyleBackColor = true;
     this.btnDongY.Visible = false;
     this.btnDongY.Click += new System.EventHandler(this.btnDongY_Click);
     //
     // btnSua
     //
     this.btnSua.Location = new System.Drawing.Point(177, 167);
     this.btnSua.Name = "btnSua";
     this.btnSua.Size = new System.Drawing.Size(74, 29);
     this.btnSua.TabIndex = 45;
     this.btnSua.Text = "Sửa";
     this.btnSua.UseVisualStyleBackColor = true;
     this.btnSua.Click += new System.EventHandler(this.btnSua_Click);
     //
     // nudDonGia
     //
     this.nudDonGia.EditValue = new decimal(new int[] {
     1,
     0,
     0,
     0});
     this.nudDonGia.Enabled = false;
     this.nudDonGia.Location = new System.Drawing.Point(71, 126);
     this.nudDonGia.Name = "nudDonGia";
     this.nudDonGia.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] {
     new DevExpress.XtraEditors.Controls.EditorButton()});
     this.nudDonGia.Properties.DisplayFormat.FormatString = "000,0";
     this.nudDonGia.Properties.DisplayFormat.FormatType = DevExpress.Utils.FormatType.Numeric;
     this.nudDonGia.Properties.EditFormat.FormatString = "000,0";
     this.nudDonGia.Properties.EditFormat.FormatType = DevExpress.Utils.FormatType.Numeric;
     this.nudDonGia.Properties.Increment = new decimal(new int[] {
     5000,
     0,
     0,
     0});
     this.nudDonGia.Properties.Mask.MaskType = DevExpress.XtraEditors.Mask.MaskType.None;
     this.nudDonGia.Properties.MaxValue = new decimal(new int[] {
     999999,
     0,
     0,
     0});
     this.nudDonGia.Size = new System.Drawing.Size(180, 20);
     this.nudDonGia.TabIndex = 38;
     //
     // label3
     //
     this.label3.AutoSize = true;
     this.label3.Location = new System.Drawing.Point(7, 130);
     this.label3.Name = "label3";
     this.label3.Size = new System.Drawing.Size(44, 13);
     this.label3.TabIndex = 4;
     this.label3.Text = "Đơn giá";
     //
     // txtTenDV
     //
     this.txtTenDV.Enabled = false;
     this.txtTenDV.Location = new System.Drawing.Point(71, 92);
     this.txtTenDV.Name = "txtTenDV";
     this.txtTenDV.Size = new System.Drawing.Size(180, 21);
     this.txtTenDV.TabIndex = 3;
     //
     // label2
     //
     this.label2.AutoSize = true;
     this.label2.Location = new System.Drawing.Point(7, 97);
     this.label2.Name = "label2";
     this.label2.Size = new System.Drawing.Size(62, 13);
     this.label2.TabIndex = 2;
     this.label2.Text = "Tên dịch vụ";
     //
     // txtMaDV
     //
     this.txtMaDV.Enabled = false;
     this.txtMaDV.Location = new System.Drawing.Point(71, 58);
     this.txtMaDV.Name = "txtMaDV";
     this.txtMaDV.Size = new System.Drawing.Size(180, 21);
     this.txtMaDV.TabIndex = 1;
     //
     // label1
     //
     this.label1.AutoSize = true;
     this.label1.Location = new System.Drawing.Point(7, 63);
     this.label1.Name = "label1";
     this.label1.Size = new System.Drawing.Size(58, 13);
     this.label1.TabIndex = 0;
     this.label1.Text = "Mã dịch vụ";
     //
     // glkPhong
     //
     this.glkPhong.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                 | System.Windows.Forms.AnchorStyles.Right)));
     this.glkPhong.Location = new System.Drawing.Point(4, 260);
     this.glkPhong.Name = "glkPhong";
     this.glkPhong.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] {
     new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo)});
     this.glkPhong.Properties.View = this.gridLookUpEdit1View;
     this.glkPhong.Size = new System.Drawing.Size(31, 20);
     this.glkPhong.TabIndex = 48;
     //
     // gridLookUpEdit1View
     //
     this.gridLookUpEdit1View.Columns.AddRange(new DevExpress.XtraGrid.Columns.GridColumn[] {
     this.colMaPhieuNhan,
     this.colPhong});
     this.gridLookUpEdit1View.FocusRectStyle = DevExpress.XtraGrid.Views.Grid.DrawFocusRectStyle.RowFocus;
     this.gridLookUpEdit1View.Name = "gridLookUpEdit1View";
     this.gridLookUpEdit1View.OptionsSelection.EnableAppearanceFocusedCell = false;
     this.gridLookUpEdit1View.OptionsView.ShowGroupPanel = false;
     //
     // colMaPhieuNhan
     //
     this.colMaPhieuNhan.Caption = "Mã phiếu";
     this.colMaPhieuNhan.FieldName = "MAPHIEU";
     this.colMaPhieuNhan.Name = "colMaPhieuNhan";
     this.colMaPhieuNhan.Visible = true;
     this.colMaPhieuNhan.VisibleIndex = 0;
     //
     // colPhong
     //
     this.colPhong.Caption = "Phòng";
     this.colPhong.FieldName = "MAPHONG";
     this.colPhong.Name = "colPhong";
     this.colPhong.Visible = true;
     this.colPhong.VisibleIndex = 1;
     //
     // groupControl2
     //
     this.groupControl2.Controls.Add(this.gridDichVu);
     this.groupControl2.Dock = System.Windows.Forms.DockStyle.Left;
     this.groupControl2.Location = new System.Drawing.Point(278, 0);
     this.groupControl2.Name = "groupControl2";
     this.groupControl2.Size = new System.Drawing.Size(392, 619);
     this.groupControl2.TabIndex = 8;
     this.groupControl2.Text = "Dịch vụ";
     //
     // gridDichVu
     //
     this.gridDichVu.Dock = System.Windows.Forms.DockStyle.Fill;
     this.gridDichVu.Location = new System.Drawing.Point(2, 21);
     this.gridDichVu.MainView = this.grdvDV;
     this.gridDichVu.Name = "gridDichVu";
     this.gridDichVu.Size = new System.Drawing.Size(388, 596);
     this.gridDichVu.TabIndex = 0;
     this.gridDichVu.ViewCollection.AddRange(new DevExpress.XtraGrid.Views.Base.BaseView[] {
     this.grdvDV});
     //
     // grdvDV
     //
     this.grdvDV.Columns.AddRange(new DevExpress.XtraGrid.Columns.GridColumn[] {
     this.colMaDV,
     this.colTenDV,
     this.colGia});
     this.grdvDV.GridControl = this.gridDichVu;
     this.grdvDV.Name = "grdvDV";
     this.grdvDV.OptionsBehavior.AllowAddRows = DevExpress.Utils.DefaultBoolean.False;
     this.grdvDV.OptionsBehavior.AllowDeleteRows = DevExpress.Utils.DefaultBoolean.False;
     this.grdvDV.OptionsBehavior.AllowFixedGroups = DevExpress.Utils.DefaultBoolean.False;
     this.grdvDV.OptionsBehavior.Editable = false;
     this.grdvDV.OptionsCustomization.AllowColumnMoving = false;
     this.grdvDV.OptionsFilter.AllowColumnMRUFilterList = false;
     this.grdvDV.OptionsFilter.AllowFilterEditor = false;
     this.grdvDV.OptionsFilter.AllowFilterIncrementalSearch = false;
     this.grdvDV.OptionsFilter.AllowMRUFilterList = false;
     this.grdvDV.OptionsFilter.AllowMultiSelectInCheckedFilterPopup = false;
     this.grdvDV.OptionsFind.AlwaysVisible = true;
     this.grdvDV.OptionsFind.ShowCloseButton = false;
     this.grdvDV.OptionsMenu.EnableGroupPanelMenu = false;
     this.grdvDV.OptionsNavigation.AutoFocusNewRow = true;
     this.grdvDV.OptionsView.ShowGroupPanel = false;
     this.grdvDV.FocusedRowChanged += new DevExpress.XtraGrid.Views.Base.FocusedRowChangedEventHandler(this.gridView1_FocusedRowChanged);
     //
     // colMaDV
     //
     this.colMaDV.Caption = "Mã DV";
     this.colMaDV.FieldName = "MADV";
     this.colMaDV.Name = "colMaDV";
     this.colMaDV.Visible = true;
     this.colMaDV.VisibleIndex = 0;
     this.colMaDV.Width = 67;
     //
     // colTenDV
     //
     this.colTenDV.Caption = "Dịch vụ";
     this.colTenDV.FieldName = "TENDV";
     this.colTenDV.Name = "colTenDV";
     this.colTenDV.Visible = true;
     this.colTenDV.VisibleIndex = 1;
     this.colTenDV.Width = 152;
     //
     // colGia
     //
     this.colGia.Caption = "Đơn giá";
     this.colGia.DisplayFormat.FormatString = "n0";
     this.colGia.DisplayFormat.FormatType = DevExpress.Utils.FormatType.Numeric;
     this.colGia.FieldName = "DONGIA";
     this.colGia.Name = "colGia";
     this.colGia.Visible = true;
     this.colGia.VisibleIndex = 2;
     this.colGia.Width = 153;
     //
     // grdCTDV
     //
     this.grdCTDV.Dock = System.Windows.Forms.DockStyle.Fill;
     gridLevelNode2.RelationName = "Level1";
     this.grdCTDV.LevelTree.Nodes.AddRange(new DevExpress.XtraGrid.GridLevelNode[] {
     gridLevelNode2});
     this.grdCTDV.Location = new System.Drawing.Point(2, 21);
     this.grdCTDV.MainView = this.grdv_CTDV;
     this.grdCTDV.Name = "grdCTDV";
     this.grdCTDV.RepositoryItems.AddRange(new DevExpress.XtraEditors.Repository.RepositoryItem[] {
     this.repositoryItemSearchLookUpEdit1,
     this.repositoryItemLookUpEdit1});
     this.grdCTDV.Size = new System.Drawing.Size(572, 596);
     this.grdCTDV.TabIndex = 1;
     this.grdCTDV.ViewCollection.AddRange(new DevExpress.XtraGrid.Views.Base.BaseView[] {
     this.grdv_CTDV,
     this.layoutView1,
     this.gridView1});
     //
     // grdv_CTDV
     //
     this.grdv_CTDV.Columns.AddRange(new DevExpress.XtraGrid.Columns.GridColumn[] {
     this.colMaPhong,
     this.colMaPhieu,
     this.colNgayThue,
     this.colTen,
     this.colSoLuong,
     this.colGiaTien,
     this.colThanhTien,
     this.colMaDV_CTDV});
     this.grdv_CTDV.GridControl = this.grdCTDV;
     this.grdv_CTDV.GroupCount = 1;
     this.grdv_CTDV.GroupSummary.AddRange(new DevExpress.XtraGrid.GridSummaryItem[] {
     new DevExpress.XtraGrid.GridGroupSummaryItem(DevExpress.Data.SummaryItemType.Sum, "colThanhTien", null, "(Tổng: {0:n0})")});
     this.grdv_CTDV.Name = "grdv_CTDV";
     this.grdv_CTDV.OptionsBehavior.AllowAddRows = DevExpress.Utils.DefaultBoolean.False;
     this.grdv_CTDV.OptionsBehavior.AllowDeleteRows = DevExpress.Utils.DefaultBoolean.False;
     this.grdv_CTDV.OptionsBehavior.AllowFixedGroups = DevExpress.Utils.DefaultBoolean.False;
     this.grdv_CTDV.OptionsBehavior.AutoExpandAllGroups = true;
     this.grdv_CTDV.OptionsBehavior.Editable = false;
     this.grdv_CTDV.OptionsCustomization.AllowColumnMoving = false;
     this.grdv_CTDV.OptionsFind.AlwaysVisible = true;
     this.grdv_CTDV.OptionsFind.ShowCloseButton = false;
     this.grdv_CTDV.OptionsView.ShowGroupPanel = false;
     this.grdv_CTDV.SortInfo.AddRange(new DevExpress.XtraGrid.Columns.GridColumnSortInfo[] {
     new DevExpress.XtraGrid.Columns.GridColumnSortInfo(this.colMaPhong, DevExpress.Data.ColumnSortOrder.Ascending)});
     //
     // colMaPhong
     //
     this.colMaPhong.Caption = "Mã phòng";
     this.colMaPhong.FieldName = "MaPhong";
     this.colMaPhong.Name = "colMaPhong";
     this.colMaPhong.Visible = true;
     this.colMaPhong.VisibleIndex = 0;
     //
     // colMaPhieu
     //
     this.colMaPhieu.Caption = "Mã phiếu";
     this.colMaPhieu.FieldName = "MaPhieu";
     this.colMaPhieu.Name = "colMaPhieu";
     this.colMaPhieu.Visible = true;
     this.colMaPhieu.VisibleIndex = 0;
     this.colMaPhieu.Width = 56;
     //
     // colNgayThue
     //
     this.colNgayThue.Caption = "Ngày thuê";
     this.colNgayThue.DisplayFormat.FormatString = "HH:mm:ss dd/MM/yyyy";
     this.colNgayThue.DisplayFormat.FormatType = DevExpress.Utils.FormatType.Custom;
     this.colNgayThue.FieldName = "NgayThue";
     this.colNgayThue.Name = "colNgayThue";
     this.colNgayThue.Visible = true;
     this.colNgayThue.VisibleIndex = 1;
     this.colNgayThue.Width = 109;
     //
     // colTen
     //
     this.colTen.Caption = "Tên dịch vụ";
     this.colTen.FieldName = "TenDV";
     this.colTen.Name = "colTen";
     this.colTen.Visible = true;
     this.colTen.VisibleIndex = 2;
     this.colTen.Width = 93;
     //
     // colSoLuong
     //
     this.colSoLuong.Caption = "Số lượng";
     this.colSoLuong.DisplayFormat.FormatType = DevExpress.Utils.FormatType.Numeric;
     this.colSoLuong.FieldName = "SoLuong";
     this.colSoLuong.Name = "colSoLuong";
     this.colSoLuong.Visible = true;
     this.colSoLuong.VisibleIndex = 3;
     this.colSoLuong.Width = 70;
     //
     // colGiaTien
     //
     this.colGiaTien.Caption = "Giá tiền";
     this.colGiaTien.DisplayFormat.FormatString = "n0";
     this.colGiaTien.DisplayFormat.FormatType = DevExpress.Utils.FormatType.Numeric;
     this.colGiaTien.FieldName = "DonGia";
     this.colGiaTien.Name = "colGiaTien";
     this.colGiaTien.Visible = true;
     this.colGiaTien.VisibleIndex = 4;
     this.colGiaTien.Width = 67;
     //
     // colThanhTien
     //
     this.colThanhTien.Caption = "Thành tiền";
     this.colThanhTien.DisplayFormat.FormatString = "n0";
     this.colThanhTien.DisplayFormat.FormatType = DevExpress.Utils.FormatType.Numeric;
     this.colThanhTien.FieldName = "colThanhTien";
     this.colThanhTien.Name = "colThanhTien";
     this.colThanhTien.UnboundExpression = "[SoLuong] * [DonGia]";
     this.colThanhTien.UnboundType = DevExpress.Data.UnboundColumnType.Integer;
     this.colThanhTien.Visible = true;
     this.colThanhTien.VisibleIndex = 5;
     this.colThanhTien.Width = 123;
     //
     // colMaDV_CTDV
     //
     this.colMaDV_CTDV.Caption = "Mã dịch vụ";
     this.colMaDV_CTDV.FieldName = "MaDV";
     this.colMaDV_CTDV.Name = "colMaDV_CTDV";
     //
     // repositoryItemSearchLookUpEdit1
     //
     this.repositoryItemSearchLookUpEdit1.AutoHeight = false;
     this.repositoryItemSearchLookUpEdit1.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] {
     new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo)});
     this.repositoryItemSearchLookUpEdit1.Name = "repositoryItemSearchLookUpEdit1";
     this.repositoryItemSearchLookUpEdit1.View = this.repositoryItemSearchLookUpEdit1View;
     //
     // repositoryItemSearchLookUpEdit1View
     //
     this.repositoryItemSearchLookUpEdit1View.FocusRectStyle = DevExpress.XtraGrid.Views.Grid.DrawFocusRectStyle.RowFocus;
     this.repositoryItemSearchLookUpEdit1View.Name = "repositoryItemSearchLookUpEdit1View";
     this.repositoryItemSearchLookUpEdit1View.OptionsSelection.EnableAppearanceFocusedCell = false;
     this.repositoryItemSearchLookUpEdit1View.OptionsView.ShowGroupPanel = false;
     //
     // repositoryItemLookUpEdit1
     //
     this.repositoryItemLookUpEdit1.AutoHeight = false;
     this.repositoryItemLookUpEdit1.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] {
     new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo)});
     this.repositoryItemLookUpEdit1.Columns.AddRange(new DevExpress.XtraEditors.Controls.LookUpColumnInfo[] {
     new DevExpress.XtraEditors.Controls.LookUpColumnInfo("MaPhong", "Mã Phòng"),
     new DevExpress.XtraEditors.Controls.LookUpColumnInfo("MaPhieu", "Mã Phiếu")});
     this.repositoryItemLookUpEdit1.Name = "repositoryItemLookUpEdit1";
     //
     // layoutView1
     //
     this.layoutView1.GridControl = this.grdCTDV;
     this.layoutView1.Name = "layoutView1";
     this.layoutView1.TemplateCard = null;
     //
     // gridView1
     //
     this.gridView1.GridControl = this.grdCTDV;
     this.gridView1.Name = "gridView1";
     //
     // groupControl3
     //
     this.groupControl3.Controls.Add(this.grdCTDV);
     this.groupControl3.Dock = System.Windows.Forms.DockStyle.Right;
     this.groupControl3.Location = new System.Drawing.Point(712, 0);
     this.groupControl3.Name = "groupControl3";
     this.groupControl3.Size = new System.Drawing.Size(576, 619);
     this.groupControl3.TabIndex = 9;
     this.groupControl3.Text = "Phòng";
     //
     // panel1
     //
     this.panel1.Controls.Add(this.btnCTDV);
     this.panel1.Controls.Add(this.glkPhong);
     this.panel1.Controls.Add(this.lblMaPhong);
     this.panel1.Controls.Add(this.lblSoLuong);
     this.panel1.Controls.Add(this.btnThemDV);
     this.panel1.Controls.Add(this.txtSoLuong);
     this.panel1.Dock = System.Windows.Forms.DockStyle.Fill;
     this.panel1.Location = new System.Drawing.Point(670, 0);
     this.panel1.Name = "panel1";
     this.panel1.Size = new System.Drawing.Size(42, 619);
     this.panel1.TabIndex = 10;
     //
     // btnCTDV
     //
     this.btnCTDV.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                 | System.Windows.Forms.AnchorStyles.Right)));
     this.btnCTDV.Location = new System.Drawing.Point(7, 296);
     this.btnCTDV.Name = "btnCTDV";
     this.btnCTDV.Size = new System.Drawing.Size(29, 23);
     this.btnCTDV.TabIndex = 49;
     this.btnCTDV.Text = "Xóa";
     this.btnCTDV.UseVisualStyleBackColor = true;
     this.btnCTDV.Click += new System.EventHandler(this.btnCTDV_Click);
     //
     // lblMaPhong
     //
     this.lblMaPhong.AutoSize = true;
     this.lblMaPhong.Location = new System.Drawing.Point(3, 232);
     this.lblMaPhong.Name = "lblMaPhong";
     this.lblMaPhong.Size = new System.Drawing.Size(58, 13);
     this.lblMaPhong.TabIndex = 3;
     this.lblMaPhong.Text = "Mã phòng:";
     //
     // lblSoLuong
     //
     this.lblSoLuong.AutoSize = true;
     this.lblSoLuong.Location = new System.Drawing.Point(4, 183);
     this.lblSoLuong.Name = "lblSoLuong";
     this.lblSoLuong.Size = new System.Drawing.Size(53, 13);
     this.lblSoLuong.TabIndex = 3;
     this.lblSoLuong.Text = "Số lượng:";
     //
     // btnThemDV
     //
     this.btnThemDV.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                 | System.Windows.Forms.AnchorStyles.Right)));
     this.btnThemDV.Location = new System.Drawing.Point(7, 147);
     this.btnThemDV.Name = "btnThemDV";
     this.btnThemDV.Size = new System.Drawing.Size(29, 23);
     this.btnThemDV.TabIndex = 1;
     this.btnThemDV.Text = "->";
     this.btnThemDV.UseVisualStyleBackColor = true;
     this.btnThemDV.Click += new System.EventHandler(this.btnThemDV_Click);
     //
     // txtSoLuong
     //
     this.txtSoLuong.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                 | System.Windows.Forms.AnchorStyles.Right)));
     this.txtSoLuong.Location = new System.Drawing.Point(6, 202);
     this.txtSoLuong.Name = "txtSoLuong";
     this.txtSoLuong.Size = new System.Drawing.Size(29, 21);
     this.txtSoLuong.TabIndex = 0;
     this.txtSoLuong.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.txtSoLuong_KeyPress);
     //
     // backgroundWorker1
     //
     this.backgroundWorker1.DoWork += new System.ComponentModel.DoWorkEventHandler(this.backgroundWorker1_DoWork);
     this.backgroundWorker1.RunWorkerCompleted += new System.ComponentModel.RunWorkerCompletedEventHandler(this.backgroundWorker1_RunWorkerCompleted);
     //
     // usrDichVu
     //
     this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
     this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
     this.Controls.Add(this.panel1);
     this.Controls.Add(this.groupControl3);
     this.Controls.Add(this.groupControl2);
     this.Controls.Add(this.groupControl1);
     this.Name = "usrDichVu";
     this.Size = new System.Drawing.Size(1288, 619);
     this.Load += new System.EventHandler(this.usrDichVu_Load);
     ((System.ComponentModel.ISupportInitialize)(this.groupControl1)).EndInit();
     this.groupControl1.ResumeLayout(false);
     this.groupControl1.PerformLayout();
     ((System.ComponentModel.ISupportInitialize)(this.nudDonGia.Properties)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.glkPhong.Properties)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.gridLookUpEdit1View)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.groupControl2)).EndInit();
     this.groupControl2.ResumeLayout(false);
     ((System.ComponentModel.ISupportInitialize)(this.gridDichVu)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.grdvDV)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.grdCTDV)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.grdv_CTDV)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.repositoryItemSearchLookUpEdit1)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.repositoryItemSearchLookUpEdit1View)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.repositoryItemLookUpEdit1)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.layoutView1)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.gridView1)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.groupControl3)).EndInit();
     this.groupControl3.ResumeLayout(false);
     this.panel1.ResumeLayout(false);
     this.panel1.PerformLayout();
     this.ResumeLayout(false);
 }