Beispiel #1
0
        public static BarButtonItem AddRefresh(PhieuQuanLy10Change frm)
        {
            BarButtonItem resfresh = new BarButtonItem();
            resfresh.Caption = "Làm mới lại các dữ liệu tìm kiếm";
            resfresh.PaintStyle = BarItemPaintStyle.CaptionInMenu;
            resfresh.Glyph = FrameworkParams.imageStore.GetImage2020("view-refresh.png");
            resfresh.Visibility = BarItemVisibility.Always;
            resfresh.Alignment = BarItemLinkAlignment.Right;

            frm.MainBar.LinksPersistInfo.Add(new LinkPersistInfo(resfresh, false));
            frm.barManager1.Items.Add(resfresh);

            resfresh.ItemClick += delegate(object sender, ItemClickEventArgs e)
            {
                try

                {
                    frm.PLLoadFilterPart();

                }
                catch
                {

                }
            };
            return resfresh;
        }
Beispiel #2
0
 public PhieuQuanLy10Fix(PhieuQuanLy10Change phieuQL)
 {
     this.that = phieuQL;
     if ((phieuQL as IDuyetSupport) != null) this.DuyetSupport = true;
     HamDung();
 }
Beispiel #3
0
        public PhieuQuanLy10Fix(PhieuQuanLy10Change phieuQL, string dataSetID, string query)
        {
            this.that = phieuQL;
            if ((phieuQL as IDuyetSupport) != null) this.DuyetSupport = true;
            if (dataSetID == null)
                this.dataSetID = that.GetType().FullName + that.gridViewMaster._GetPLGUI();
            else
                this.dataSetID = dataSetID + that.gridViewMaster._GetPLGUI();
            this.saveQuery = query;

            HamDung();
        }
Beispiel #4
0
 public PhieuQuanLy10Fix(PhieuQuanLy10Change phieuQL, string fullQuery)
     : this(phieuQL, null, fullQuery)
 {
 }
Beispiel #5
0
 public static void InitPrintGrid(PhieuQuanLy10Change frm, bool IsLandscape)
 {
     AppCtrl.InitPrintGrid(frm.barManager1,frm.MainBar, frm.gridViewMaster, frm.barButtonItemPrint,IsLandscape);
 }
Beispiel #6
0
 public static BarButtonItem AddXemTatCa(PhieuQuanLy10Change frm, RepositoryItemCheckedComboBoxEdit listChoseColumn)
 {
     return AddXemTatCa(frm.barManager1,
          frm.MainBar, frm.barButtonItemSearch, frm.popupControlContainerFilter, frm.barCheckItemFilter,
          frm.gridViewMaster, listChoseColumn, frm.UpdateRow());
 }
Beispiel #7
0
 public static void FormatButtonTimKiem(PhieuQuanLy10Change frm)
 {
     frm.barButtonItemSearch.Appearance.ForeColor = Color.Blue;
     Font bk = frm.barButtonItemSearch.Font;
     frm.barButtonItemSearch.Appearance.Font = new Font(bk, FontStyle.Bold);
     frm.barButtonItemSearch.Appearance.Options.UseFont = true;
     frm.barButtonItemSearch.Appearance.Options.UseForeColor = true;
 }
 /// <summary>Mở nút nghiệp vụ ở phiếu quản lý : PhieuQuanLy10Change
 /// Do FW chưa hỗ trợ
 /// </summary>
 public static void InitBtnNghiepVu(PhieuQuanLy10Change that)
 {
     that.gridViewMaster.FocusedRowChanged += delegate(object sender, DevExpress.XtraGrid.Views.Base.FocusedRowChangedEventArgs e)
     {
         if ((that.gridViewMaster.DataSource as DataView).Table.Rows.Count > 0)
             that.barSubItem1.Enabled = true;
         else that.barSubItem1.Enabled = false;
     };
 }
Beispiel #9
0
 public static void AddRefresh(PhieuQuanLy10Change frm)
 {
     AddRefresh(frm.barManager1, frm.MainBar, frm.PLLoadFilterPart);
 }
Beispiel #10
0
 public static void FormatButtonTimKiem(PhieuQuanLy10Change frm)
 {
     FormatButtonTimKiem(frm.barButtonItemSearch);
 }
Beispiel #11
0
 public static void AddXemTatCa(PhieuQuanLy10Change frm)
 {
     AddXemTatCa(frm.barManager1,
                 frm.MainBar, frm.barButtonItemSearch, frm.popupControlContainerFilter, frm.barCheckItemFilter,
                 frm.gridViewMaster, frm.UpdateRow(), frm.ASCSortClause, frm.DESCSortClause, frm.GroupByClause);
 }
Beispiel #12
0
 public static BarButtonItem InitPrintGrid(PhieuQuanLy10Change frm, bool isLandscape)
 {
     return InitPrintGrid(frm.barManager1, frm.MainBar, frm.gridViewMaster, frm.barButtonItemPrint, isLandscape);
 }