Exemple #1
0
        public static BarButtonItem AddRefresh( PhieuQuanLy10BandedChange 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;
        }
Exemple #2
0
 public static void InitPrintGrid(PhieuQuanLy10BandedChange frm, bool IsLandscape)
 {
     AppCtrl.InitPrintGrid(frm.barManager1,frm.MainBar, frm.gridViewMaster, frm.barButtonItemPrint,IsLandscape);
 }
Exemple #3
0
 public static void FormatButtonTimKiem(PhieuQuanLy10BandedChange 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;
 }
Exemple #4
0
 public static BarButtonItem AddXemTatCa(PhieuQuanLy10BandedChange frm,RepositoryItemCheckedComboBoxEdit listChoseColumn )
 {
     return AddXemTatCa(frm.barManager1,
          frm.MainBar, frm.barButtonItemSearch, frm.popupControlContainerFilter,frm.barCheckItemFilter,
          frm.gridViewMaster,listChoseColumn,frm.UpdateRow());
 }
Exemple #5
0
 public static void FormatButtonTimKiem(PhieuQuanLy10BandedChange frm)
 {
     FormatButtonTimKiem(frm.barButtonItemSearch);
 }
Exemple #6
0
 public static void AddRefresh(PhieuQuanLy10BandedChange frm)
 {
     AddRefresh(frm.barManager1, frm.MainBar, frm.PLLoadFilterPart);
 }
Exemple #7
0
 public static BarButtonItem AddXemTatCa(PhieuQuanLy10BandedChange frm)
 {
     return AddXemTatCa(frm.barManager1,
                        frm.MainBar, frm.barButtonItemSearch, frm.popupControlContainerFilter,
                        frm.barCheckItemFilter,
                        frm.gridViewMaster, frm.UpdateRow(), frm.ASCSortClause, frm.DESCSortClause,
                        frm.GroupByClause);
 }
Exemple #8
0
 public static BarButtonItem InitPrintGrid(PhieuQuanLy10BandedChange frm, bool isLandscape)
 {
     return InitPrintGrid(frm.barManager1, frm.MainBar, frm.gridViewMaster, frm.barButtonItemPrint, isLandscape);
 }
 public PhieuQuanLy10BandedFix(PhieuQuanLy10BandedChange phieuQL)
 {
     this.that = phieuQL;
     if ((phieuQL as IDuyetSupport) != null) this.DuyetSupport = true;
     HamDung();
 }
        public PhieuQuanLy10BandedFix(PhieuQuanLy10BandedChange 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();
        }
 public PhieuQuanLy10BandedFix(PhieuQuanLy10BandedChange phieuQL, string fullQuery)
     : this(phieuQL, null, fullQuery)
 {
 }