Ejemplo n.º 1
0
 public ManageQuestions()
 {
     this.Visible = false;
     InitializeComponent();
     gridSelection = new GridCheckMarksSelection(gridViewQuestion);
     this.layoutControl1.AllowCustomizationMenu = false;
     BPContext = new BrightPlatformEntities(UserSession.EntityConnection);
     BindGridQuestions();
     this.SetQuestionViewContextMenu();
     this.Visible = true;
 }
 private void cboDepartment_EditValueChanged(object sender, EventArgs e)
 {
     if (cboDepartment.EditValue != "a7f14b9e-71a8-42fd-9cfc-9315e6551a03")
     {
         _accountingObjectsPresenter.DisplayByDepartment(cboDepartment.EditValue.ToString().Trim());
         Selection = new GridCheckMarksSelection(gridviewAccountingObject);
         Selection.CheckMarkColumn.VisibleIndex = 0;
         Selection.CheckMarkColumn.Width        = 40;
         gridviewAccountingObject.OptionsSelection.EnableAppearanceFocusedRow  = true;
         gridviewAccountingObject.OptionsSelection.EnableAppearanceFocusedCell = false;
     }
 }
Ejemplo n.º 3
0
        public void OnLoadView()
        {
            CommonHandler.SetRowNumberIndicator(grvSpecialCase);

            grcSpecialCase.DataSource = new List <SpecialCaseDto>();
            dataHandler = new XtraGridDataHandler <SpecialCaseDto>(grvSpecialCase);
            XHX.Common.BindComBox.BindProjectWithAll(cboProjects);
            dateStart.DateTime = DateTime.Today.AddDays(1 - DateTime.Today.Day);                          // 本月第一天
            dateEnd.DateTime   = DateTime.Today.AddDays(1 - DateTime.Today.Day).AddMonths(1).AddDays(-1); // 本月最后一天
            selection          = new GridCheckMarksSelection(grvSpecialCase);
            selection.CheckMarkColumn.VisibleIndex = 0;
        }
        private void OnLoadView()
        {
            BindComBox.BindProject(cboProject);

            SearchSubject();
            SearchShop();
            selection = new GridCheckMarksSelection(grvSubject);
            selection.CheckMarkColumn.VisibleIndex = 0;

            selection1 = new GridCheckMarksSelection(grvShop);
            selection1.CheckMarkColumn.VisibleIndex = 0;
        }
Ejemplo n.º 5
0
 public frmCustomer()
 {
     InitializeComponent();
     m_CustomerObject         = new CCustomerDTO();
     m_CustomerExecute        = new CCustomerBUS();
     m_CustomerData           = new DataTable();
     m_CustomerMultiSelect    = new GridCheckMarksSelection(grdvListCustomer);
     CustomerSno.VisibleIndex = 1;
     //dateBirthDay.Properties.DisplayFormat.FormatType = FormatType.DateTime;
     //dateBirthDay.Properties.DisplayFormat.FormatString = "dd/MM/yyyy";
     //dateBirthDay.Properties.Mask.EditMask = "dd/MM/yyyy";
 }
 public SingleShopReport()
 {
     InitializeComponent();
     service.Url = "http://192.168.1.99/XHX.YiQiServer/service.asmx";
     XHX.Common.BindComBox.BindProject(cboProjects);
     tbnFilePath.Properties.TextEditStyle = DevExpress.XtraEditors.Controls.TextEditStyles.DisableTextEditor;
     btnModule.Properties.TextEditStyle   = DevExpress.XtraEditors.Controls.TextEditStyles.DisableTextEditor;
     SearchAllShopByProjectCode(CommonHandler.GetComboBoxSelectedValue(cboProjects).ToString());
     CommonHandler.SetRowNumberIndicator(gridView1);
     selection = new GridCheckMarksSelection(gridView1);
     selection.CheckMarkColumn.VisibleIndex = 0;
 }
Ejemplo n.º 7
0
 public ManageDialogs()
 {
     this.Visible = false;
     InitializeComponent();
     gridSelection = new GridCheckMarksSelection(gridViewDialog);
     gridViewDialog.Columns["Customer"].VisibleIndex = 1;
     this.layoutControl1.AllowCustomizationMenu = false;
     BPContext = new BrightPlatformEntities(UserSession.EntityConnection);
     BindGridDialogs();
     this.SetDialogViewContextMenu();
     this.Visible = true;
 }
Ejemplo n.º 8
0
 private void FrmInventoryItemList_Load(object sender, EventArgs e)
 {
     _inventoryItemCategoriesPresenter.Display(true);
     _inventoryItemsPresenter.DisplayByIsActive(true);
     Selection = new GridCheckMarksSelection(gridViewInventoryItem);
     Selection.CheckMarkColumn.VisibleIndex = 0;
     Selection.CheckMarkColumn.Width        = 40;
     StateCheck = true;
     SetChecked();
     gridViewInventoryItem.OptionsSelection.EnableAppearanceFocusedRow  = true;
     gridViewInventoryItem.OptionsSelection.EnableAppearanceFocusedCell = false;
 }
Ejemplo n.º 9
0
 public frmBook()
 {
     InitializeComponent();
     m_BookData            = new DataTable();
     m_PublisherData       = new DataTable();
     m_PublisherExecute    = new CPublisherBUS();
     m_BookTitlesData      = new DataTable();
     m_BookExecute         = new CBookBUS();
     m_BookTitlesExecute   = new CBookTitlesBUS();
     m_BookMultiSelect     = new GridCheckMarksSelection(grdvListBook);
     BooksSno.VisibleIndex = 1;
 }
Ejemplo n.º 10
0
        public frmLOVPartyProduct()
        {
            InitializeComponent();

            check = new GridCheckMarksSelection(this.grvProductList);

            //for set idle time
            base.DialogIdle.IdleTime   = System.TimeSpan.Parse(UiUtility.DialogIdleTime);
            base.DialogIdle.IdleAsync += new EventHandler(this.DialogIdle_IdleAsync);

            base.LoadFormLayout();
            base.LoadGridLayout(this.grdProductList);
        }
Ejemplo n.º 11
0
 public frmSearchStaff()
 {
     InitializeComponent();
     rolePermissionDataTable = new DataTable();
     rolePermissionBUS       = new BUSRolePermission();
     rolePermissionObject    = new DTORolePermission();
     _StaffDT              = new DataTable();
     staffBUS              = new BUSStaff();
     staffObject           = new DTOStaff();
     staffMultiSelect      = new GridCheckMarksSelection(grdvListStaff);
     ruleBUS               = new BUSRule();
     StaffSno.VisibleIndex = 1;
 }
Ejemplo n.º 12
0
 public InspectionStandard(string projectCode, string subjectCode, string roleType)
 {
     InitializeComponent();
     _RoleType   = roleType;
     dataHandler = new XtraGridDataHandler <InspectionStandardDto>(grvInpectionStandard);
     CommonHandler.SetRowNumberIndicator(grvInpectionStandard);
     grcInspectionStandard.DataSource = new List <InspectionStandardDto>();
     selection = new GridCheckMarksSelection(grvInpectionStandard);
     selection.CheckMarkColumn.VisibleIndex = 0;
     this.projectCode = projectCode;
     this.subjectCode = subjectCode;
     SearchProject(projectCode, subjectCode);
 }
Ejemplo n.º 13
0
        public UserInfo()
        {
            InitializeComponent();

            //初始化Grid样式
            CommonHandler.SetRowNumberIndicator(grvUserInfo);

            InitData();

            dataHandler = new XtraGridDataHandler <UserInfoDto>(grvUserInfo);
            selection   = new GridCheckMarksSelection(grvUserInfo);
            selection.CheckMarkColumn.VisibleIndex = 0;
        }
Ejemplo n.º 14
0
 public frmCustomer()
 {
     InitializeComponent();
     rolePermissionDataTable = new DataTable();
     rolePermissionBUS       = new BUSRolePermission();
     rolePermissionObject    = new DTORolePermission();
     customerDataTable       = new DataTable();
     customerBUS             = new BUSCustomer();
     customerObject          = new DTOCustomer();
     customerMultiSelect     = new GridCheckMarksSelection(grdvListCustomer);
     ruleBUS = new BUSRule();
     CustomerSno.VisibleIndex = 1;
 }
Ejemplo n.º 15
0
 public frmBookTitle()
 {
     InitializeComponent();
     m_AuthorExecute            = new CAuthorBUS();
     m_BookGenreExecute         = new CBookGenreBUS();
     m_AuthorData               = new DataTable();
     m_BookGenreData            = new DataTable();
     m_BookTitlesMulitSelect    = new GridCheckMarksSelection(grdvListBookTitles);
     m_BookTitlesExecute        = new CBookTitlesBUS();
     m_BookTitlesData           = new DataTable();
     m_AuthorDetailExecute      = new CAuthorDetailBUS();
     BookTiltesSno.VisibleIndex = 1;
 }
Ejemplo n.º 16
0
        public void OnLoadView()
        {
            //初始化Grid样式
            CommonHandler.SetRowNumberIndicator(grvNotice);

            dataHandler          = new XtraGridDataHandler <NoticeDto>(grvNotice);
            grcNotice.DataSource = new List <NoticeDto>();
            selection            = new GridCheckMarksSelection(grvNotice);
            selection.CheckMarkColumn.VisibleIndex = 0;

            dateStart.DateTime = DateTime.Today.AddDays(1 - DateTime.Today.Day);                          // 本月第一天
            dateEnd.DateTime   = DateTime.Today.AddDays(1 - DateTime.Today.Day).AddMonths(1).AddDays(-1); // 本月最后一天
        }
        public UserInfo()
        {
            InitializeComponent();
            service.Url = "http://192.168.1.99/XHX.YiQiServer/service.asmx";
            //初始化Grid样式
            CommonHandler.SetRowNumberIndicator(grvUserInfo);

            InitData();

            dataHandler = new XtraGridDataHandler <UserInfoDto>(grvUserInfo);
            selection   = new GridCheckMarksSelection(grvUserInfo);
            selection.CheckMarkColumn.VisibleIndex = 0;
        }
Ejemplo n.º 18
0
        public ManageListCreation()
        {
            this.Visible = false;
            InitializeComponent();
            this.lcListCreationMergeList.AllowCustomizationMenu = false;
            this.lcListCreationSearch.AllowCustomizationMenu = false;

            this.InitializeUserControlContents();
            this.SetPrintExportContextMenuSearchList();
            this.SetPrintExportContextMenuMergeList();

            this.Visible = true;
            gridSelection = new GridCheckMarksSelection(gvMergeList);
        }
Ejemplo n.º 19
0
        /// <summary>
        /// Handles the Load event of the FrmS51H control.
        /// </summary>
        /// <param name="sender">The source of the event.</param>
        /// <param name="e">The <see cref="EventArgs" /> instance containing the event data.</param>
        private void FrmS51H_Load(object sender, EventArgs e)
        {
            _inventoryItemCategoriesPresenter.Display(true);
            _activitiesPresenter.DisplayActive(true);
            cboActivity.EditValue      = @"00000000-0000-0000-0000-000000000000";
            cboInventoryType.EditValue = @"00000000-0000-0000-0000-000000000000";
            _inventoryItemsPresenter.DisplayByIsActive(true);
            Selection = new GridCheckMarksSelection(gridInventoryView);
            Selection.CheckMarkColumn.VisibleIndex = 0;
            Selection.CheckMarkColumn.Width        = 40;

            gridInventoryView.OptionsSelection.EnableAppearanceFocusedRow  = true;
            gridInventoryView.OptionsSelection.EnableAppearanceFocusedCell = false;
        }
Ejemplo n.º 20
0
 public frmServiceDetail()
 {
     InitializeComponent();
     serviceDataTable         = new DataTable();
     servicesBUS              = new BUSServices();
     serviceDetailDataTable   = new DataTable();
     serviceDetailBUS         = new BUSServiceDetail();
     listServiceDetailObject  = new List <DTOServiceDetail>();
     orderDetailDataTable     = new DataTable();
     orderDetailBUS           = new BUSOrderDetail();
     serviceDetailMultiselect = new GridCheckMarksSelection(grdvServiceDetail);
     customerBUS              = new BUSCustomer();
     orderBUS = new BUSOrder();
 }
Ejemplo n.º 21
0
        public frmLOVRole()
        {
            InitializeComponent();

            check = new GridCheckMarksSelection(this.grvRole);

            this.resultList = new List <Role>();
            //for set idle time
            base.DialogIdle.IdleTime   = System.TimeSpan.Parse(UiUtility.DialogIdleTime);
            base.DialogIdle.IdleAsync += new EventHandler(this.DialogIdle_IdleAsync);

            base.LoadFormLayout();
            base.LoadGridLayout(this.grdRole);
        }
Ejemplo n.º 22
0
        private void FrmFixedAssetS24H_Load(object sender, EventArgs e)
        {
            _departmentsPresenter.Display();
            _fixedAssetCategoriesPresenter.DisplayComboCheck();
            _fixedAssetsPresenter.Display();

            Selection = new GridCheckMarksSelection(gridViewFixedAsset);
            Selection.CheckMarkColumn.VisibleIndex = 0;
            Selection.CheckMarkColumn.Width        = 5;
            StateCheck = true;
            gridViewFixedAsset.OptionsSelection.EnableAppearanceFocusedRow  = true;
            gridViewFixedAsset.OptionsSelection.EnableAppearanceFocusedCell = false;
            gridViewFixedAsset.OptionsView.ShowAutoFilterRow = true;
        }
Ejemplo n.º 23
0
        void SetLoadData()
        {
            string quy = String.Format("SELECT ID , tblCollectionReport.PaymentRefNumber,DepositSlipNumber,PaymentDate,UPPER(PayerName) as PayerName,Description,RevenueCode,Amount,BankName+ '-'+ BranchName AS Bank,EReceipts,CASE WHEN EReceiptsDate IS NULL THEN PaymentDate ELSE EReceiptsDate END EReceiptsDate  FROM Receipt.tblReceipt JOIN Collection.tblCollectionReport ON tblCollectionReport.PaymentRefNumber = tblReceipt.PaymentRefNumber where Sentby='{0}' ORDER BY AgencyCode ,RevenueCode,EReceipts", Program.UserID);


            try
            {
                using (var ds = new System.Data.DataSet())
                {
                    ds.Clear();

                    using (SqlDataAdapter ada = new SqlDataAdapter(quy, Logic.ConnectionString))
                    {
                        ada.Fill(ds, "table");
                    }
                    //dtn.Clear();
                    dtn = ds.Tables[0];
                    if (ds.Tables[0] != null && ds.Tables[0].Rows.Count > 0)
                    {
                        gridControl4.DataSource = ds.Tables[0];
                        gridView4.BestFitColumns();
                        gridView4.Columns["Amount"].DisplayFormat.FormatType        = FormatType.Numeric;
                        gridView4.Columns["Amount"].DisplayFormat.FormatString      = "n2";
                        gridView4.Columns["PaymentDate"].DisplayFormat.FormatType   = DevExpress.Utils.FormatType.DateTime;
                        gridView4.Columns["PaymentDate"].DisplayFormat.FormatString = "dd/MM/yyyy";
                        gridView4.Columns["ID"].Visible            = false;
                        gridView4.Columns["EReceiptsDate"].Visible = false;

                        if (isFirstGrid)
                        {
                            selection = new GridCheckMarksSelection(gridView4, ref lblSelect);
                            selection.CheckMarkColumn.VisibleIndex = 0;
                            isFirstGrid = false;
                        }
                    }
                    else
                    {
                        Common.setMessageBox("No Record Found", Program.ApplicationName, 3);
                        return;
                    }

                    //[GeneratedBy],[BankName],[BranchName]
                }
            }
            catch (Exception ex)
            {
                Common.setMessageBox(ex.Message, Program.ApplicationName, 3);
                return;
            }
        }
Ejemplo n.º 24
0
        public frmRoom()
        {
            InitializeComponent();

            statusDataTable      = new DataTable();
            roomTypeDataTable    = new DataTable();
            roomMulitiSelect     = new GridCheckMarksSelection(grdvListRoom);
            roomBUS              = new BUSRoom();
            statusBUS            = new BUSStatus();
            roomTypeBUS          = new BUSRoomType();
            roomDataTable        = new DataTable();
            RoomSno.VisibleIndex = 1;
            m_IsAdd              = false;
            btnSave.Enabled      = false;
        }
Ejemplo n.º 25
0
 public frmReceiptNote()
 {
     InitializeComponent();
     m_BookData                     = new DataTable();
     m_BookExecute                  = new CBookBUS();
     m_ReceiptNoteData              = new DataTable();
     m_ReceiptNoteDetailData        = new DataTable();
     m_ReceiptNoteExecute           = new CReceiptNoteBUS();
     m_ReceiptNoteDetailExecute     = new CReceiptNoteDateilBUS();
     m_ReceiptNoteDetailMultiselect = new GridCheckMarksSelection(grdvReceiptBook);
     ReceiptNoteId.VisibleIndex     = 1;
     //DateTime.Compare//
     labReceiptDateValue.Text = DateTime.Now.ToString("dd/MM/yyyy");
     txtReceiptNoteId.Text    = "PN000000**";
 }
Ejemplo n.º 26
0
        public RoleTypeProgram()
        {
            InitializeComponent();



            //初始化Grid样式
            CommonHandler.SetRowNumberIndicator(grvRoleTypeProgram);

            InitData();

            dataHandler = new XtraGridDataHandler <RoleTypeProgramDto>(grvRoleTypeProgram);
            selection   = new GridCheckMarksSelection(grvRoleTypeProgram);
            selection.CheckMarkColumn.VisibleIndex = 0;
        }
Ejemplo n.º 27
0
        /// <summary>
        /// Handles the Load event of the FrmS02aH control.
        /// </summary>
        /// <param name="sender">The source of the event.</param>
        /// <param name="e">The <see cref="EventArgs"/> instance containing the event data.</param>
        private void FrmS02aH_Load(object sender, EventArgs e)
        {
            //_accountsPresenter.DisplayActive();
            _glVoucherListsPresenter.Display();
            BindSelectDesignReport();

            dateTimeRangeV1.cboDateRange.SelectedIndex = GlobalVariable.DateRangeSelectedIndex;
            dateTimeRangeV1.FromDate = GlobalVariable.FromDate;
            dateTimeRangeV1.ToDate   = GlobalVariable.ToDate;

            Selection = new GridCheckMarksSelection(gridAccountNumberView);
            Selection.CheckMarkColumn.VisibleIndex = 0;
            Selection.CheckMarkColumn.Width        = 10;
            Selection.SelectAll();
        }
Ejemplo n.º 28
0
        public frmServices()
        {
            InitializeComponent();

            unitDataTable         = new DataTable();
            servicesTypeDataTable = new DataTable();
            servicesMulitiSelect  = new GridCheckMarksSelection(grdvListServices);
            servicesBUS           = new BUSServices();
            unitBUS                  = new BUSUnit();
            servicesTypeBUS          = new BUSServicesType();
            servicesDataTable        = new DataTable();
            ServicesSno.VisibleIndex = 1;
            m_IsAdd                  = false;
            btnSave.Enabled          = false;
        }
Ejemplo n.º 29
0
 private void FrmFixedAssetS24H_Load(object sender, EventArgs e)
 {
     if ((int)checkChooseFixedAsset.EditValue == 0)
     {
         _fixedAssetCategoriesPresenter.Display();
     }
     if ((int)checkChooseFixedAsset.EditValue == 1)
     {
         _fixedAssetsPresenter.Display();
     }
     gridFixedAssetControl.Visible = true;
     Selection = new GridCheckMarksSelection(gridFixedAssetControlView);
     Selection.CheckMarkColumn.VisibleIndex = 0;
     Selection.CheckMarkColumn.Width        = 10;
 }
 private void FrmS26H_Load(object sender, EventArgs e)
 {
     // TODO: This line of code loads data into the '_I_BIGTIME_2020DataSet.InventoryItem' table. You can move, or remove it, as needed.
     this.inventoryItemTableAdapter.Fill(this._I_BIGTIME_2020DataSet.InventoryItem);
     //_departmentsPresenter.DisplayActive();
     //_inventoryItemCategoriesPresenter.Display(true);
     _inventoryItemsPresenter.DisplayByIsTool(true);
     Selection = new GridCheckMarksSelection(gridInventoryView);
     Selection.CheckMarkColumn.VisibleIndex     = 0;
     Selection.CheckMarkColumn.Width            = 10;
     dateTimeRangeV1.cboDateRange.SelectedIndex = GlobalVariable.DateRangeSelectedIndex;
     dateTimeRangeV1.FromDate = GlobalVariable.FromDate;
     dateTimeRangeV1.ToDate   = GlobalVariable.ToDate;
     //cboInventoryItemCategories.EditValue = @"A0624CFA-D105-422F-BF20-11F246704DC3";
     //cboDepartments.EditValue = @"A0624CFA-D105-422F-BF20-11F246704DC3";
 }
 private void FrmS27_Load(object sender, EventArgs e)
 {
     _accountsPresenter.DisplayActive();
     _budgetSourcesPresenter.DisplayActive();
     _projectsPresenter.DisplayActive();
     checkcboBudgetSource.EditValue = "<<Tổng hợp>>";
     cbxAccount.ItemIndex           = 6;
     Selection = new GridCheckMarksSelection(gridProjectView);
     Selection.CheckMarkColumn.VisibleIndex    = 0;
     Selection.CheckMarkColumn.Width           = 40;
     dateTimeRangeV1.cboDateRange.SelectedItem = GlobalVariable.DateRangeSelected;
     dateTimeRangeV1.FromDate = GlobalVariable.FromDate;
     dateTimeRangeV1.ToDate   = GlobalVariable.ToDate;
     gridProjectView.OptionsSelection.EnableAppearanceFocusedRow  = false;
     gridProjectView.OptionsSelection.EnableAppearanceFocusedCell = false;
 }
        public Shop_Popup(string shopCode, string shopName, bool check)
        {
            InitializeComponent();
            this.LookAndFeel.SetSkinStyle(CommonHandler.Skin_Name);

            OnLoadView();
            //CommonHandler.SetComboBoxSelectedValue(cboArea, areaCode);
            Search(shopCode, shopName);
            if (check)
            {
                selection = new GridCheckMarksSelection(gridView1);
                selection.CheckMarkColumn.VisibleIndex = 0;
            }
            else
            {
            }
        }
Ejemplo n.º 33
0
        private void setReload()
        {
            gridControl1.DataSource = string.Empty;

            dt = new DataTable();

            using (var ds = new System.Data.DataSet())
            {
                //connect.connect.Open();

                string query = String.Format("SELECT PaymentRefNumber,PaymentDate,Amount from ViewReconciliationCollectionReport where BankCode LIKE '%{0}%'AND Period= '{1}' and IsRecordExit=1 and IsPayDirect=1 ORDER BY PaymentDate", BankCode, strPeriods);

                using (SqlDataAdapter ada = new SqlDataAdapter(query, Logic.ConnectionString))
                {
                    ada.Fill(ds, "table");
                }

                dt = ds.Tables[0];
                //gridControl4.DataSource = dt.DefaultView;

                gridControl1.DataSource = dt.DefaultView;
            }

            gridView1.OptionsBehavior.Editable = false;
            gridView1.Columns["Amount"].DisplayFormat.FormatType   = DevExpress.Utils.FormatType.Numeric;
            gridView1.Columns["Amount"].DisplayFormat.FormatString = "n2";
            gridView1.Columns["PaymentDate"].BestFit();
            gridView1.Columns["Amount"].BestFit();
            gridView1.Columns["PaymentRefNumber"].Visible = false;
            gridView1.BestFitColumns();


            gridView1.Columns["Amount"].SummaryItem.SummaryType   = DevExpress.Data.SummaryItemType.Sum;
            gridView1.Columns["Amount"].SummaryItem.DisplayFormat = "Total Amount = {0:n}";

            gridView1.OptionsView.ShowFooter = true;

            label5.Text = dt.Rows.Count + "  Rows of Records. ";

            if (isFirstGrid)
            {
                selection = new GridCheckMarksSelection(gridView1, ref label4);
                selection.CheckMarkColumn.VisibleIndex = 0;
                isFirstGrid = false;
            }
        }