/// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 protected void InitializeComponent()
 {
     this.components = new System.ComponentModel.Container();
     System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(frmPhieuTamUngQL));
     this.barManager1 = new DevExpress.XtraBars.BarManager(this.components);
     this.MainBar = new DevExpress.XtraBars.Bar();
     this.barButtonItemAdd = new DevExpress.XtraBars.BarButtonItem();
     this.barButtonItemXem = new DevExpress.XtraBars.BarButtonItem();
     this.barButtonItemDelete = new DevExpress.XtraBars.BarButtonItem();
     this.barButtonItemUpdate = new DevExpress.XtraBars.BarButtonItem();
     this.barButtonItemPrint = new DevExpress.XtraBars.BarButtonItem();
     this.popupMenu1 = new DevExpress.XtraBars.PopupMenu(this.components);
     this.barButtonItem4 = new DevExpress.XtraBars.BarButtonItem();
     this.barButtonItemDuyet = new DevExpress.XtraBars.BarButtonItem();
     this.barButtonItemKoDuyet = new DevExpress.XtraBars.BarButtonItem();
     this.barButtonItemCommit = new DevExpress.XtraBars.BarButtonItem();
     this.barButtonItemNoCommit = new DevExpress.XtraBars.BarButtonItem();
     this.barSubItem1 = new DevExpress.XtraBars.BarSubItem();
     this.barButtonItemSearch = new DevExpress.XtraBars.BarButtonItem();
     this.popupMenuFilter = new DevExpress.XtraBars.PopupMenu(this.components);
     this.barCheckItemFilter = new DevExpress.XtraBars.BarCheckItem();
     this.barButtonItemClose = new DevExpress.XtraBars.BarButtonItem();
     this.barDockControlTop = new DevExpress.XtraBars.BarDockControl();
     this.barDockControlBottom = new DevExpress.XtraBars.BarDockControl();
     this.barDockControlLeft = new DevExpress.XtraBars.BarDockControl();
     this.barDockControlRight = new DevExpress.XtraBars.BarDockControl();
     this.barStaticItem1 = new DevExpress.XtraBars.BarStaticItem();
     this.barButtonItem1 = new DevExpress.XtraBars.BarButtonItem();
     this.barButtonItem2 = new DevExpress.XtraBars.BarButtonItem();
     this.barButtonItem3 = new DevExpress.XtraBars.BarButtonItem();
     this.barButtonItem5 = new DevExpress.XtraBars.BarButtonItem();
     this.splitContainerControl1 = new DevExpress.XtraEditors.SplitContainerControl();
     this.gridControlMaster = new DevExpress.XtraGrid.GridControl();
     this.gridViewMaster = new DevExpress.XtraGrid.Views.Grid.PLGridView();
     this.colID = new DevExpress.XtraGrid.Columns.GridColumn();
     this.colMaphieu = new DevExpress.XtraGrid.Columns.GridColumn();
     this.colNguoiDeNghi = new DevExpress.XtraGrid.Columns.GridColumn();
     this.colNgayXinTamUng = new DevExpress.XtraGrid.Columns.GridColumn();
     this.colSoTien = new DevExpress.XtraGrid.Columns.GridColumn();
     this.colLyDo = new DevExpress.XtraGrid.Columns.GridColumn();
     this.colNguoiDuyet = new DevExpress.XtraGrid.Columns.GridColumn();
     this.colGhichu = new DevExpress.XtraGrid.Columns.GridColumn();
     this.colThangTamUng = new DevExpress.XtraGrid.Columns.GridColumn();
     this.colQuaLuong = new DevExpress.XtraGrid.Columns.GridColumn();
     this.colKetChuyen = new DevExpress.XtraGrid.Columns.GridColumn();
     this.xtraTabControlDetail = new DevExpress.XtraTab.XtraTabControl();
     this.xtraTabPageDetail = new DevExpress.XtraTab.XtraTabPage();
     this.gridControlDetail = new DevExpress.XtraGrid.GridControl();
     this.gridViewDetail = new DevExpress.XtraGrid.Views.Grid.PLGridView();
     this.popupControlContainerFilter = new DevExpress.XtraBars.PopupControlContainer(this.components);
     this.NhanVien = new ProtocolVN.Framework.Win.PLDMTreeGroup();
     this.chkEditQuaLuong = new DevExpress.XtraEditors.CheckEdit();
     this.chkEditKetChuyen = new DevExpress.XtraEditors.CheckEdit();
     this.dateThangNamDen = new ProtocolVN.Framework.Win.PLMonthYearTimeEdit();
     this.plLabel2 = new System.Windows.Forms.PLLabel();
     this.dateThangNam = new ProtocolVN.Framework.Win.PLMonthYearTimeEdit();
     this.plLabel1 = new System.Windows.Forms.PLLabel();
     this.DuyetSelect = new ProtocolVN.Framework.Win.PLDuyetCheckbox();
     this.labelControl11 = new System.Windows.Forms.PLLabel();
     this.plTreeSelectItem1 = new ProtocolVN.Framework.Win.PLDMTreeGroupElement();
     this.gridColumn8 = new DevExpress.XtraGrid.Columns.GridColumn();
     this.gridColumn6 = new DevExpress.XtraGrid.Columns.GridColumn();
     ((System.ComponentModel.ISupportInitialize)(this.barManager1)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.popupMenu1)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.popupMenuFilter)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.splitContainerControl1)).BeginInit();
     this.splitContainerControl1.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.gridControlMaster)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.gridViewMaster)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.xtraTabControlDetail)).BeginInit();
     this.xtraTabControlDetail.SuspendLayout();
     this.xtraTabPageDetail.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.gridControlDetail)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.gridViewDetail)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.popupControlContainerFilter)).BeginInit();
     this.popupControlContainerFilter.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.chkEditQuaLuong.Properties)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.chkEditKetChuyen.Properties)).BeginInit();
     this.SuspendLayout();
     //
     // barManager1
     //
     this.barManager1.Bars.AddRange(new DevExpress.XtraBars.Bar[] {
     this.MainBar});
     this.barManager1.DockControls.Add(this.barDockControlTop);
     this.barManager1.DockControls.Add(this.barDockControlBottom);
     this.barManager1.DockControls.Add(this.barDockControlLeft);
     this.barManager1.DockControls.Add(this.barDockControlRight);
     this.barManager1.Form = this;
     this.barManager1.Items.AddRange(new DevExpress.XtraBars.BarItem[] {
     this.barButtonItemAdd,
     this.barButtonItemDelete,
     this.barButtonItemUpdate,
     this.barButtonItemPrint,
     this.barStaticItem1,
     this.barButtonItem1,
     this.barButtonItem2,
     this.barButtonItemCommit,
     this.barButtonItemNoCommit,
     this.barSubItem1,
     this.barButtonItemXem,
     this.barButtonItemSearch,
     this.barButtonItemClose,
     this.barCheckItemFilter,
     this.barButtonItem3,
     this.barButtonItem4,
     this.barButtonItem5,
     this.barButtonItemDuyet,
     this.barButtonItemKoDuyet});
     this.barManager1.MaxItemId = 37;
     //
     // MainBar
     //
     this.MainBar.BarName = "MainBar";
     this.MainBar.DockCol = 0;
     this.MainBar.DockRow = 0;
     this.MainBar.DockStyle = DevExpress.XtraBars.BarDockStyle.Top;
     this.MainBar.FloatLocation = new System.Drawing.Point(39, 133);
     this.MainBar.FloatSize = new System.Drawing.Size(72, 73);
     this.MainBar.LinksPersistInfo.AddRange(new DevExpress.XtraBars.LinkPersistInfo[] {
     new DevExpress.XtraBars.LinkPersistInfo(DevExpress.XtraBars.BarLinkUserDefines.Caption, this.barButtonItemAdd, "&Thêm"),
     new DevExpress.XtraBars.LinkPersistInfo(this.barButtonItemXem),
     new DevExpress.XtraBars.LinkPersistInfo(this.barButtonItemDelete),
     new DevExpress.XtraBars.LinkPersistInfo(this.barButtonItemUpdate),
     new DevExpress.XtraBars.LinkPersistInfo(this.barButtonItemPrint, true),
     new DevExpress.XtraBars.LinkPersistInfo(this.barButtonItemDuyet, true),
     new DevExpress.XtraBars.LinkPersistInfo(this.barButtonItemKoDuyet),
     new DevExpress.XtraBars.LinkPersistInfo(this.barButtonItemCommit),
     new DevExpress.XtraBars.LinkPersistInfo(this.barButtonItemNoCommit),
     new DevExpress.XtraBars.LinkPersistInfo(this.barSubItem1, true),
     new DevExpress.XtraBars.LinkPersistInfo(this.barButtonItemSearch, true),
     new DevExpress.XtraBars.LinkPersistInfo(this.barButtonItemClose, true)});
     this.MainBar.OptionsBar.AllowQuickCustomization = false;
     this.MainBar.OptionsBar.DrawDragBorder = false;
     this.MainBar.OptionsBar.RotateWhenVertical = false;
     this.MainBar.OptionsBar.UseWholeRow = true;
     this.MainBar.Text = "Custom 1";
     //
     // barButtonItemAdd
     //
     this.barButtonItemAdd.Caption = "Thêm";
     this.barButtonItemAdd.Id = 0;
     this.barButtonItemAdd.Name = "barButtonItemAdd";
     this.barButtonItemAdd.PaintStyle = DevExpress.XtraBars.BarItemPaintStyle.CaptionGlyph;
     //
     // barButtonItemXem
     //
     this.barButtonItemXem.Caption = "X&em";
     this.barButtonItemXem.Id = 24;
     this.barButtonItemXem.Name = "barButtonItemXem";
     this.barButtonItemXem.PaintStyle = DevExpress.XtraBars.BarItemPaintStyle.CaptionGlyph;
     //
     // barButtonItemDelete
     //
     this.barButtonItemDelete.Caption = "&Xóa";
     this.barButtonItemDelete.Id = 1;
     this.barButtonItemDelete.Name = "barButtonItemDelete";
     this.barButtonItemDelete.PaintStyle = DevExpress.XtraBars.BarItemPaintStyle.CaptionGlyph;
     //
     // barButtonItemUpdate
     //
     this.barButtonItemUpdate.Caption = "&Sửa";
     this.barButtonItemUpdate.Id = 2;
     this.barButtonItemUpdate.Name = "barButtonItemUpdate";
     this.barButtonItemUpdate.PaintStyle = DevExpress.XtraBars.BarItemPaintStyle.CaptionGlyph;
     //
     // barButtonItemPrint
     //
     this.barButtonItemPrint.ButtonStyle = DevExpress.XtraBars.BarButtonStyle.DropDown;
     this.barButtonItemPrint.Caption = "&In";
     this.barButtonItemPrint.DropDownControl = this.popupMenu1;
     this.barButtonItemPrint.Id = 3;
     this.barButtonItemPrint.Name = "barButtonItemPrint";
     this.barButtonItemPrint.PaintStyle = DevExpress.XtraBars.BarItemPaintStyle.CaptionGlyph;
     //
     // popupMenu1
     //
     this.popupMenu1.LinksPersistInfo.AddRange(new DevExpress.XtraBars.LinkPersistInfo[] {
     new DevExpress.XtraBars.LinkPersistInfo(this.barButtonItem4)});
     this.popupMenu1.Manager = this.barManager1;
     this.popupMenu1.Name = "popupMenu1";
     //
     // barButtonItem4
     //
     this.barButtonItem4.Caption = "Xem t&rước";
     this.barButtonItem4.Id = 33;
     this.barButtonItem4.Name = "barButtonItem4";
     //
     // barButtonItemDuyet
     //
     this.barButtonItemDuyet.Caption = "&Duyệt";
     this.barButtonItemDuyet.Id = 35;
     this.barButtonItemDuyet.Name = "barButtonItemDuyet";
     this.barButtonItemDuyet.PaintStyle = DevExpress.XtraBars.BarItemPaintStyle.CaptionGlyph;
     this.barButtonItemDuyet.ItemClick += new DevExpress.XtraBars.ItemClickEventHandler(this.barButtonItemDuyet_ItemClick);
     //
     // barButtonItemKoDuyet
     //
     this.barButtonItemKoDuyet.Caption = "&Không duyệt";
     this.barButtonItemKoDuyet.Id = 36;
     this.barButtonItemKoDuyet.Name = "barButtonItemKoDuyet";
     this.barButtonItemKoDuyet.PaintStyle = DevExpress.XtraBars.BarItemPaintStyle.CaptionGlyph;
     this.barButtonItemKoDuyet.ItemClick += new DevExpress.XtraBars.ItemClickEventHandler(this.barButtonItemKoDuyet_ItemClick);
     //
     // barButtonItemCommit
     //
     this.barButtonItemCommit.Caption = "&Duyệt";
     this.barButtonItemCommit.Id = 17;
     this.barButtonItemCommit.Name = "barButtonItemCommit";
     this.barButtonItemCommit.PaintStyle = DevExpress.XtraBars.BarItemPaintStyle.CaptionGlyph;
     //
     // barButtonItemNoCommit
     //
     this.barButtonItemNoCommit.Caption = "&Không duyệt";
     this.barButtonItemNoCommit.Id = 18;
     this.barButtonItemNoCommit.Name = "barButtonItemNoCommit";
     this.barButtonItemNoCommit.PaintStyle = DevExpress.XtraBars.BarItemPaintStyle.CaptionGlyph;
     //
     // barSubItem1
     //
     this.barSubItem1.Caption = "&Nghiệp vụ";
     this.barSubItem1.Id = 20;
     this.barSubItem1.Name = "barSubItem1";
     this.barSubItem1.PaintStyle = DevExpress.XtraBars.BarItemPaintStyle.CaptionGlyph;
     //
     // barButtonItemSearch
     //
     this.barButtonItemSearch.ButtonStyle = DevExpress.XtraBars.BarButtonStyle.DropDown;
     this.barButtonItemSearch.Caption = "Tì&m kiếm";
     this.barButtonItemSearch.DropDownControl = this.popupMenuFilter;
     this.barButtonItemSearch.Id = 27;
     this.barButtonItemSearch.Name = "barButtonItemSearch";
     this.barButtonItemSearch.PaintStyle = DevExpress.XtraBars.BarItemPaintStyle.CaptionGlyph;
     //
     // popupMenuFilter
     //
     this.popupMenuFilter.LinksPersistInfo.AddRange(new DevExpress.XtraBars.LinkPersistInfo[] {
     new DevExpress.XtraBars.LinkPersistInfo(this.barCheckItemFilter)});
     this.popupMenuFilter.Manager = this.barManager1;
     this.popupMenuFilter.Name = "popupMenuFilter";
     //
     // barCheckItemFilter
     //
     this.barCheckItemFilter.Caption = "Điề&u kiện tìm kiếm";
     this.barCheckItemFilter.Checked = true;
     this.barCheckItemFilter.Id = 29;
     this.barCheckItemFilter.Name = "barCheckItemFilter";
     this.barCheckItemFilter.PaintStyle = DevExpress.XtraBars.BarItemPaintStyle.CaptionGlyph;
     //
     // barButtonItemClose
     //
     this.barButtonItemClose.Caption = "Đón&g";
     this.barButtonItemClose.Id = 28;
     this.barButtonItemClose.Name = "barButtonItemClose";
     this.barButtonItemClose.PaintStyle = DevExpress.XtraBars.BarItemPaintStyle.CaptionGlyph;
     //
     // barDockControlTop
     //
     this.barDockControlTop.Dock = System.Windows.Forms.DockStyle.Top;
     this.barDockControlTop.Location = new System.Drawing.Point(0, 0);
     this.barDockControlTop.Size = new System.Drawing.Size(912, 24);
     //
     // barDockControlBottom
     //
     this.barDockControlBottom.Dock = System.Windows.Forms.DockStyle.Bottom;
     this.barDockControlBottom.Location = new System.Drawing.Point(0, 497);
     this.barDockControlBottom.Size = new System.Drawing.Size(912, 0);
     //
     // barDockControlLeft
     //
     this.barDockControlLeft.Dock = System.Windows.Forms.DockStyle.Left;
     this.barDockControlLeft.Location = new System.Drawing.Point(0, 24);
     this.barDockControlLeft.Size = new System.Drawing.Size(0, 473);
     //
     // barDockControlRight
     //
     this.barDockControlRight.Dock = System.Windows.Forms.DockStyle.Right;
     this.barDockControlRight.Location = new System.Drawing.Point(912, 24);
     this.barDockControlRight.Size = new System.Drawing.Size(0, 473);
     //
     // barStaticItem1
     //
     this.barStaticItem1.AutoSize = DevExpress.XtraBars.BarStaticItemSize.None;
     this.barStaticItem1.Border = DevExpress.XtraEditors.Controls.BorderStyles.NoBorder;
     this.barStaticItem1.Id = 13;
     this.barStaticItem1.Name = "barStaticItem1";
     this.barStaticItem1.TextAlignment = System.Drawing.StringAlignment.Near;
     this.barStaticItem1.Width = 100;
     //
     // barButtonItem1
     //
     this.barButtonItem1.Caption = "barButtonItem1";
     this.barButtonItem1.Id = 14;
     this.barButtonItem1.Name = "barButtonItem1";
     //
     // barButtonItem2
     //
     this.barButtonItem2.Caption = "barButtonItem2";
     this.barButtonItem2.Id = 15;
     this.barButtonItem2.Name = "barButtonItem2";
     //
     // barButtonItem3
     //
     this.barButtonItem3.ButtonStyle = DevExpress.XtraBars.BarButtonStyle.DropDown;
     this.barButtonItem3.Caption = "In";
     this.barButtonItem3.Id = 30;
     this.barButtonItem3.Name = "barButtonItem3";
     //
     // barButtonItem5
     //
     this.barButtonItem5.Caption = "barButtonItem5";
     this.barButtonItem5.Id = 34;
     this.barButtonItem5.Name = "barButtonItem5";
     //
     // splitContainerControl1
     //
     this.splitContainerControl1.Dock = System.Windows.Forms.DockStyle.Fill;
     this.splitContainerControl1.Horizontal = false;
     this.splitContainerControl1.Location = new System.Drawing.Point(0, 88);
     this.splitContainerControl1.Name = "splitContainerControl1";
     this.splitContainerControl1.Panel1.Controls.Add(this.gridControlMaster);
     this.splitContainerControl1.Panel1.Text = "splitContainerControl1_Panel1";
     this.splitContainerControl1.Panel2.CaptionLocation = DevExpress.Utils.Locations.Left;
     this.splitContainerControl1.Panel2.Controls.Add(this.xtraTabControlDetail);
     this.splitContainerControl1.Panel2.ShowCaption = true;
     this.splitContainerControl1.Panel2.Text = "splitContainerControl1_Panel2";
     this.splitContainerControl1.Size = new System.Drawing.Size(912, 409);
     this.splitContainerControl1.SplitterPosition = 175;
     this.splitContainerControl1.TabIndex = 4;
     this.splitContainerControl1.Text = "splitContainerControl1";
     //
     // gridControlMaster
     //
     this.gridControlMaster.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("gridControlMaster.BackgroundImage")));
     this.gridControlMaster.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Center;
     this.gridControlMaster.Dock = System.Windows.Forms.DockStyle.Fill;
     this.gridControlMaster.Location = new System.Drawing.Point(0, 0);
     this.gridControlMaster.MainView = this.gridViewMaster;
     this.gridControlMaster.Name = "gridControlMaster";
     this.gridControlMaster.Size = new System.Drawing.Size(912, 175);
     this.gridControlMaster.TabIndex = 0;
     this.gridControlMaster.TabStop = false;
     this.gridControlMaster.ViewCollection.AddRange(new DevExpress.XtraGrid.Views.Base.BaseView[] {
     this.gridViewMaster});
     //
     // gridViewMaster
     //
     this.gridViewMaster.Appearance.GroupPanel.Font = new System.Drawing.Font("Tahoma", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Inch);
     this.gridViewMaster.Appearance.GroupPanel.Options.UseFont = true;
     this.gridViewMaster.Appearance.HeaderPanel.Options.UseTextOptions = true;
     this.gridViewMaster.Appearance.HeaderPanel.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center;
     this.gridViewMaster.Columns.AddRange(new DevExpress.XtraGrid.Columns.GridColumn[] {
     this.colID,
     this.colMaphieu,
     this.colNguoiDeNghi,
     this.colNgayXinTamUng,
     this.colSoTien,
     this.colLyDo,
     this.colNguoiDuyet,
     this.colGhichu,
     this.colThangTamUng,
     this.colQuaLuong,
     this.colKetChuyen});
     this.gridViewMaster.GridControl = this.gridControlMaster;
     this.gridViewMaster.GroupCount = 1;
     this.gridViewMaster.GroupPanelText = "DANH SÁCH TẠM ỨNG ";
     this.gridViewMaster.IndicatorWidth = 40;
     this.gridViewMaster.Name = "gridViewMaster";
     this.gridViewMaster.OptionsLayout.Columns.AddNewColumns = false;
     this.gridViewMaster.OptionsNavigation.AutoFocusNewRow = true;
     this.gridViewMaster.OptionsNavigation.EnterMoveNextColumn = true;
     this.gridViewMaster.OptionsPrint.UsePrintStyles = true;
     this.gridViewMaster.OptionsSelection.MultiSelect = true;
     this.gridViewMaster.OptionsView.EnableAppearanceEvenRow = true;
     this.gridViewMaster.OptionsView.EnableAppearanceOddRow = true;
     this.gridViewMaster.OptionsView.NewItemRowPosition = DevExpress.XtraGrid.Views.Grid.NewItemRowPosition.Bottom;
     this.gridViewMaster.OptionsView.ShowGroupedColumns = true;
     this.gridViewMaster.OptionsView.ShowGroupPanel = false;
     this.gridViewMaster.SortInfo.AddRange(new DevExpress.XtraGrid.Columns.GridColumnSortInfo[] {
     new DevExpress.XtraGrid.Columns.GridColumnSortInfo(this.colThangTamUng, DevExpress.Data.ColumnSortOrder.Ascending)});
     //
     // colID
     //
     this.colID.Caption = "ID";
     this.colID.Name = "colID";
     this.colID.Width = 23;
     //
     // colMaphieu
     //
     this.colMaphieu.Caption = "Mã phiếu";
     this.colMaphieu.Name = "colMaphieu";
     this.colMaphieu.Visible = true;
     this.colMaphieu.VisibleIndex = 0;
     this.colMaphieu.Width = 55;
     //
     // colNguoiDeNghi
     //
     this.colNguoiDeNghi.Caption = "Người tạm ứng";
     this.colNguoiDeNghi.MinWidth = 126;
     this.colNguoiDeNghi.Name = "colNguoiDeNghi";
     this.colNguoiDeNghi.Visible = true;
     this.colNguoiDeNghi.VisibleIndex = 1;
     this.colNguoiDeNghi.Width = 126;
     //
     // colNgayXinTamUng
     //
     this.colNgayXinTamUng.Caption = "Ngày đề nghị";
     this.colNgayXinTamUng.MinWidth = 126;
     this.colNgayXinTamUng.Name = "colNgayXinTamUng";
     this.colNgayXinTamUng.Visible = true;
     this.colNgayXinTamUng.VisibleIndex = 2;
     this.colNgayXinTamUng.Width = 126;
     //
     // colSoTien
     //
     this.colSoTien.Caption = "Số tiền (VNĐ)";
     this.colSoTien.MinWidth = 126;
     this.colSoTien.Name = "colSoTien";
     this.colSoTien.SummaryItem.SummaryType = DevExpress.Data.SummaryItemType.Sum;
     this.colSoTien.Visible = true;
     this.colSoTien.VisibleIndex = 3;
     this.colSoTien.Width = 126;
     //
     // colLyDo
     //
     this.colLyDo.Caption = "Lý do";
     this.colLyDo.MinWidth = 126;
     this.colLyDo.Name = "colLyDo";
     this.colLyDo.Visible = true;
     this.colLyDo.VisibleIndex = 4;
     this.colLyDo.Width = 126;
     //
     // colNguoiDuyet
     //
     this.colNguoiDuyet.Caption = "Người duyệt";
     this.colNguoiDuyet.Name = "colNguoiDuyet";
     this.colNguoiDuyet.Width = 71;
     //
     // colGhichu
     //
     this.colGhichu.Caption = "Ghi chú";
     this.colGhichu.Name = "colGhichu";
     this.colGhichu.Width = 47;
     //
     // colThangTamUng
     //
     this.colThangTamUng.Caption = "Tháng tạm ứng";
     this.colThangTamUng.Name = "colThangTamUng";
     this.colThangTamUng.Width = 98;
     //
     // colQuaLuong
     //
     this.colQuaLuong.Caption = "Kết chuyển qua lương";
     this.colQuaLuong.Name = "colQuaLuong";
     this.colQuaLuong.Width = 117;
     //
     // colKetChuyen
     //
     this.colKetChuyen.Caption = "Kết chuyển từ lương";
     this.colKetChuyen.Name = "colKetChuyen";
     this.colKetChuyen.Width = 110;
     //
     // xtraTabControlDetail
     //
     this.xtraTabControlDetail.Dock = System.Windows.Forms.DockStyle.Fill;
     this.xtraTabControlDetail.Location = new System.Drawing.Point(0, 0);
     this.xtraTabControlDetail.Name = "xtraTabControlDetail";
     this.xtraTabControlDetail.SelectedTabPage = this.xtraTabPageDetail;
     this.xtraTabControlDetail.Size = new System.Drawing.Size(912, 228);
     this.xtraTabControlDetail.TabIndex = 0;
     this.xtraTabControlDetail.TabPages.AddRange(new DevExpress.XtraTab.XtraTabPage[] {
     this.xtraTabPageDetail});
     this.xtraTabControlDetail.TabStop = false;
     //
     // xtraTabPageDetail
     //
     this.xtraTabPageDetail.Controls.Add(this.gridControlDetail);
     this.xtraTabPageDetail.Name = "xtraTabPageDetail";
     this.xtraTabPageDetail.Size = new System.Drawing.Size(905, 199);
     this.xtraTabPageDetail.Text = "Chi tiết";
     //
     // gridControlDetail
     //
     this.gridControlDetail.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("gridControlDetail.BackgroundImage")));
     this.gridControlDetail.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Center;
     this.gridControlDetail.Dock = System.Windows.Forms.DockStyle.Fill;
     this.gridControlDetail.Location = new System.Drawing.Point(0, 0);
     this.gridControlDetail.MainView = this.gridViewDetail;
     this.gridControlDetail.Name = "gridControlDetail";
     this.gridControlDetail.Size = new System.Drawing.Size(905, 199);
     this.gridControlDetail.TabIndex = 113;
     this.gridControlDetail.ViewCollection.AddRange(new DevExpress.XtraGrid.Views.Base.BaseView[] {
     this.gridViewDetail});
     //
     // gridViewDetail
     //
     this.gridViewDetail.Appearance.HeaderPanel.Options.UseTextOptions = true;
     this.gridViewDetail.Appearance.HeaderPanel.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center;
     this.gridViewDetail.GridControl = this.gridControlDetail;
     this.gridViewDetail.GroupPanelText = "Phí dịch vụ";
     this.gridViewDetail.IndicatorWidth = 40;
     this.gridViewDetail.Name = "gridViewDetail";
     this.gridViewDetail.OptionsBehavior.AutoExpandAllGroups = true;
     this.gridViewDetail.OptionsLayout.Columns.AddNewColumns = false;
     this.gridViewDetail.OptionsNavigation.AutoFocusNewRow = true;
     this.gridViewDetail.OptionsNavigation.EnterMoveNextColumn = true;
     this.gridViewDetail.OptionsPrint.UsePrintStyles = true;
     this.gridViewDetail.OptionsView.EnableAppearanceEvenRow = true;
     this.gridViewDetail.OptionsView.EnableAppearanceOddRow = true;
     this.gridViewDetail.OptionsView.NewItemRowPosition = DevExpress.XtraGrid.Views.Grid.NewItemRowPosition.Bottom;
     this.gridViewDetail.OptionsView.ShowFooter = true;
     this.gridViewDetail.OptionsView.ShowGroupedColumns = true;
     //
     // popupControlContainerFilter
     //
     this.popupControlContainerFilter.BorderStyle = DevExpress.XtraEditors.Controls.BorderStyles.NoBorder;
     this.popupControlContainerFilter.Controls.Add(this.NhanVien);
     this.popupControlContainerFilter.Controls.Add(this.chkEditQuaLuong);
     this.popupControlContainerFilter.Controls.Add(this.chkEditKetChuyen);
     this.popupControlContainerFilter.Controls.Add(this.dateThangNamDen);
     this.popupControlContainerFilter.Controls.Add(this.plLabel2);
     this.popupControlContainerFilter.Controls.Add(this.dateThangNam);
     this.popupControlContainerFilter.Controls.Add(this.plLabel1);
     this.popupControlContainerFilter.Controls.Add(this.DuyetSelect);
     this.popupControlContainerFilter.Controls.Add(this.labelControl11);
     this.popupControlContainerFilter.Controls.Add(this.plTreeSelectItem1);
     this.popupControlContainerFilter.Dock = System.Windows.Forms.DockStyle.Top;
     this.popupControlContainerFilter.Location = new System.Drawing.Point(0, 24);
     this.popupControlContainerFilter.Manager = this.barManager1;
     this.popupControlContainerFilter.Name = "popupControlContainerFilter";
     this.popupControlContainerFilter.Size = new System.Drawing.Size(912, 64);
     this.popupControlContainerFilter.TabIndex = 0;
     this.popupControlContainerFilter.Visible = false;
     //
     // NhanVien
     //
     this.NhanVien.Location = new System.Drawing.Point(436, 8);
     this.NhanVien.Name = "NhanVien";
     this.NhanVien.Size = new System.Drawing.Size(216, 20);
     this.NhanVien.TabIndex = 2;
     //
     // chkEditQuaLuong
     //
     this.chkEditQuaLuong.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
     this.chkEditQuaLuong.Location = new System.Drawing.Point(768, 33);
     this.chkEditQuaLuong.MenuManager = this.barManager1;
     this.chkEditQuaLuong.Name = "chkEditQuaLuong";
     this.chkEditQuaLuong.Properties.Caption = "Kết chuyển qua lương";
     this.chkEditQuaLuong.Size = new System.Drawing.Size(133, 19);
     this.chkEditQuaLuong.TabIndex = 210;
     //
     // chkEditKetChuyen
     //
     this.chkEditKetChuyen.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
     this.chkEditKetChuyen.Location = new System.Drawing.Point(768, 8);
     this.chkEditKetChuyen.MenuManager = this.barManager1;
     this.chkEditKetChuyen.Name = "chkEditKetChuyen";
     this.chkEditKetChuyen.Properties.Caption = "Kết chuyển từ lương";
     this.chkEditKetChuyen.Size = new System.Drawing.Size(126, 19);
     this.chkEditKetChuyen.TabIndex = 209;
     //
     // dateThangNamDen
     //
     this.dateThangNamDen.Location = new System.Drawing.Point(232, 8);
     this.dateThangNamDen.Name = "dateThangNamDen";
     this.dateThangNamDen.Size = new System.Drawing.Size(97, 25);
     this.dateThangNamDen.TabIndex = 1;
     //
     // plLabel2
     //
     this.plLabel2.Location = new System.Drawing.Point(208, 11);
     this.plLabel2.Name = "plLabel2";
     this.plLabel2.Size = new System.Drawing.Size(18, 13);
     this.plLabel2.TabIndex = 208;
     this.plLabel2.Text = "đến";
     this.plLabel2.ToolTip = "Dữ liệu bắt buộc nhập";
     this.plLabel2.ZZZType = System.Windows.Forms.PLLabel.LabelType.REQUIRED;
     //
     // dateThangNam
     //
     this.dateThangNam.Location = new System.Drawing.Point(105, 8);
     this.dateThangNam.Name = "dateThangNam";
     this.dateThangNam.Size = new System.Drawing.Size(97, 25);
     this.dateThangNam.TabIndex = 0;
     //
     // plLabel1
     //
     this.plLabel1.Location = new System.Drawing.Point(12, 11);
     this.plLabel1.Name = "plLabel1";
     this.plLabel1.Size = new System.Drawing.Size(87, 13);
     this.plLabel1.TabIndex = 206;
     this.plLabel1.Text = "Tháng tạm ứng từ";
     this.plLabel1.ZZZType = System.Windows.Forms.PLLabel.LabelType.NORMAL;
     //
     // DuyetSelect
     //
     this.DuyetSelect.Location = new System.Drawing.Point(428, 34);
     this.DuyetSelect.Name = "DuyetSelect";
     this.DuyetSelect.Size = new System.Drawing.Size(216, 24);
     this.DuyetSelect.TabIndex = 3;
     //
     // labelControl11
     //
     this.labelControl11.Location = new System.Drawing.Point(359, 11);
     this.labelControl11.Name = "labelControl11";
     this.labelControl11.Size = new System.Drawing.Size(71, 13);
     this.labelControl11.TabIndex = 195;
     this.labelControl11.Text = "Người tạm ứng";
     this.labelControl11.ZZZType = System.Windows.Forms.PLLabel.LabelType.NORMAL;
     //
     // plTreeSelectItem1
     //
     this.plTreeSelectItem1.Location = new System.Drawing.Point(605, -20);
     this.plTreeSelectItem1.Name = "plTreeSelectItem1";
     this.plTreeSelectItem1.Size = new System.Drawing.Size(167, 20);
     this.plTreeSelectItem1.TabIndex = 193;
     this.plTreeSelectItem1.ZZZWidthFactor = 2F;
     //
     // gridColumn8
     //
     this.gridColumn8.Caption = "VAT";
     this.gridColumn8.Name = "gridColumn8";
     this.gridColumn8.Visible = true;
     this.gridColumn8.VisibleIndex = 5;
     //
     // gridColumn6
     //
     this.gridColumn6.Caption = "VAT";
     this.gridColumn6.Name = "gridColumn6";
     this.gridColumn6.Visible = true;
     this.gridColumn6.VisibleIndex = 5;
     this.gridColumn6.Width = 96;
     //
     // frmPhieuTamUngQL
     //
     this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
     this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
     this.ClientSize = new System.Drawing.Size(912, 497);
     this.Controls.Add(this.splitContainerControl1);
     this.Controls.Add(this.popupControlContainerFilter);
     this.Controls.Add(this.barDockControlLeft);
     this.Controls.Add(this.barDockControlRight);
     this.Controls.Add(this.barDockControlBottom);
     this.Controls.Add(this.barDockControlTop);
     this.Name = "frmPhieuTamUngQL";
     this.Text = "Quản lý tạm ứng";
     ((System.ComponentModel.ISupportInitialize)(this.barManager1)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.popupMenu1)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.popupMenuFilter)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.splitContainerControl1)).EndInit();
     this.splitContainerControl1.ResumeLayout(false);
     ((System.ComponentModel.ISupportInitialize)(this.gridControlMaster)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.gridViewMaster)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.xtraTabControlDetail)).EndInit();
     this.xtraTabControlDetail.ResumeLayout(false);
     this.xtraTabPageDetail.ResumeLayout(false);
     ((System.ComponentModel.ISupportInitialize)(this.gridControlDetail)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.gridViewDetail)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.popupControlContainerFilter)).EndInit();
     this.popupControlContainerFilter.ResumeLayout(false);
     this.popupControlContainerFilter.PerformLayout();
     ((System.ComponentModel.ISupportInitialize)(this.chkEditQuaLuong.Properties)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.chkEditKetChuyen.Properties)).EndInit();
     this.ResumeLayout(false);
 }
 /// <summary>
 /// Lấy ra chuỗi thời gian của tháng tạm ứng
 /// </summary>
 /// <param name="ThangTamUngTu"></param>
 /// <param name="ThangTamUngDen"></param>
 /// <returns></returns>
 private string GetStringThangTamUng(PLMonthYearTimeEdit ThangTamUngTu, PLMonthYearTimeEdit ThangTamUngDen)
 {
     DatabaseFB db = HelpDB.getDatabase();
     DbCommand cmd = db.GetStoredProcCommand("LAYSOTHANG");
     db.AddInParameter(cmd, "@TUNGAY", DbType.DateTime, ThangTamUngTu._timeEdit.Time);
     db.AddInParameter(cmd, "@DENNGAY", DbType.DateTime, ThangTamUngDen._timeEdit.Time);
     int SoThang = HelpNumber.ParseInt32(db.ExecuteScalar(cmd));
     PLMonthYearTimeEdit ThangTang = new PLMonthYearTimeEdit();
     StringBuilder StrThangNam = new StringBuilder("") ;
     if (SoThang > 0)
     {
         ThangTang._timeEdit.Time = ThangTamUngTu._timeEdit.Time;
         StrThangNam.Append(" in('" + ThangTamUngTu._timeEdit.Text + "'");
         for (int i = 0; i < SoThang; i++)
         {
             ThangTang._timeEdit.Time = ThangTang._timeEdit.Time.AddMonths(1);
             StrThangNam.Append(",'" + ThangTang._timeEdit.Text + "'");
         }
     }
     else if (SoThang < 0)
     {
         StrThangNam.Append(" in(' '");
     }
     else StrThangNam.Append(" in('" + ThangTamUngTu._timeEdit.Text + "'").ToString();
     return StrThangNam.Append(")").ToString();
 }