예제 #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;
        }
예제 #2
0
 public static void InitPrintGrid(PhieuQuanLy10BandedChange frm, bool IsLandscape)
 {
     AppCtrl.InitPrintGrid(frm.barManager1,frm.MainBar, frm.gridViewMaster, frm.barButtonItemPrint,IsLandscape);
 }
예제 #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;
 }
예제 #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());
 }
예제 #5
0
 public static void FormatButtonTimKiem(PhieuQuanLy10BandedChange frm)
 {
     FormatButtonTimKiem(frm.barButtonItemSearch);
 }
예제 #6
0
 public static void AddRefresh(PhieuQuanLy10BandedChange frm)
 {
     AddRefresh(frm.barManager1, frm.MainBar, frm.PLLoadFilterPart);
 }
예제 #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);
 }
예제 #8
0
 public static BarButtonItem InitPrintGrid(PhieuQuanLy10BandedChange frm, bool isLandscape)
 {
     return InitPrintGrid(frm.barManager1, frm.MainBar, frm.gridViewMaster, frm.barButtonItemPrint, isLandscape);
 }
예제 #9
0
 public PhieuQuanLy10BandedFix(PhieuQuanLy10BandedChange phieuQL)
 {
     this.that = phieuQL;
     if ((phieuQL as IDuyetSupport) != null) this.DuyetSupport = true;
     HamDung();
 }
예제 #10
0
        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();
        }
예제 #11
0
 public PhieuQuanLy10BandedFix(PhieuQuanLy10BandedChange phieuQL, string fullQuery)
     : this(phieuQL, null, fullQuery)
 {
 }