Example #1
0
 public FormBrokerCompany(InfoPos.Core.Core core, long Brokerid)
 {
     InitializeComponent();
     _core     = core;
     _brokerid = Brokerid;
     Init();
 }
Example #2
0
 public frmMain(InfoPos.Core.Core mcore)
 {
     InitializeComponent();
     try
     {
         _core    = mcore;
         _apppath = _core.ApplicationPath;
         InitAll();
         if (_core.Resource != null)
         {
             barButtonItem184.Glyph = _core.Resource.GetImage("image_update");
             barButtonItem170.Glyph = _core.Resource.GetImage("image_vertical");
             barButtonItem171.Glyph = _core.Resource.GetImage("image_horizontal");
             barButtonItem172.Glyph = _core.Resource.GetImage("image_cascade");
             barButtonItem177.Glyph = _core.Resource.GetImage("image_windowadd");
             barButtonItem178.Glyph = _core.Resource.GetImage("image_exit");
             barButtonItem181.Glyph = _core.Resource.GetImage("image_settings");
             barButtonItem182.Glyph = _core.Resource.GetImage("image_changepass");
             barButtonItem183.Glyph = _core.Resource.GetImage("image_pupdate");
             barButtonItem186.Glyph = _core.Resource.GetImage("image_shortcut");
             barButtonItem185.Glyph = _core.Resource.GetImage("image_about");
             imageCollection1.Images.Add(_core.Resource.GetImage("dashboard_unread"));
             imageCollection1.Images.Add(_core.Resource.GetImage("image_mailalert"));
         }
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.ToString());
     }
 }
Example #3
0
 public frmTagReader(InfoPos.Core.Core core, string caption = "")
 {
     InitializeComponent();
     //this.FormClosing += new FormClosingEventHandler(frmTagReader_FormClosing);
     lblCaption.Text = caption;
     _core           = core;
 }
Example #4
0
 public PassOption(InfoPos.Core.Core core)
 {
     InitializeComponent();
     _core = core;
     InitCombo();
     lod();
 }
Example #5
0
 public FormIssueTracking(InfoPos.Core.Core core, long projectid, DataRow dr)
 {
     InitializeComponent();
     _core     = core;
     ProjectID = projectid;
     DRProject = dr;
 }
Example #6
0
 public SalesProductBO(Core.Core core)
 {
     InitializeComponent();
     _core = core;
     ucSalesProductBO.Resource = _core.Resource;
     Init();
 }
Example #7
0
        public frmCompanySearch(InfoPos.Core.Core core)
        {
            try
            {
                InitializeComponent();
                this.Core         = core;
                this.FormClosing += frmCustSearch_FormClosing;
                this.ResizeRedraw = true;

                gridView1.OptionsBehavior.ReadOnly        = true;
                gridView1.OptionsBehavior.Editable        = false;
                gridView1.OptionsCustomization.AllowGroup = false;
                gridView1.OptionsView.AnimationType       = DevExpress.XtraGrid.Views.Base.GridAnimationType.NeverAnimate;
                gridView1.OptionsView.ColumnAutoWidth     = false;
                //gridView1.OptionsView.ShowAutoFilterRow = false;
                gridView1.OptionsView.ShowGroupPanel = false;
                gridView1.OptionsView.ShowIndicator  = false;
                gridView1.OptionsView.RowAutoHeight  = true;
                gridView1.Appearance.Row.Font        = new Font("Tahoma", 10.0F);

                _layoutfilename = string.Format(@"{0}\Data\Layout_{1}.xml", Static.WorkingFolder, this.GetType().Name);
            }
            catch (Exception ex)
            {
                MessageBox.Show(string.Format("{0} : {1}", ex.Message, ex.StackTrace));
            }
        }
Example #8
0
 public FormIssue(InfoPos.Core.Core core, long issueid, long customerno)
 {
     _core       = core;
     _issueid    = issueid;
     _customerno = customerno;
     InitializeComponent();
 }
Example #9
0
 public SalesSearch(Core.Core core)
 {
     InitializeComponent();
     _core = core;
     ucSalesSearch.Resource = _core.Resource;
     Init();
 }
Example #10
0
        public frmSearchPledge(InfoPos.Core.Core core)
        {
            InitializeComponent();
            Init();

            _core = core;
        }
Example #11
0
        public frmCreate(InfoPos.Core.Core core, string pledgeno)
        {
            InitializeComponent();

            _core     = core;
            _pledgeno = pledgeno;


            gridView1.OptionsBehavior.ReadOnly       = true;
            gridView1.OptionsBehavior.Editable       = false;
            gridView1.OptionsBehavior.EditorShowMode = DevExpress.Utils.EditorShowMode.Click;
            gridView1.OptionsView.ShowColumnHeaders  = false;
            gridView1.OptionsView.ShowVertLines      = false;

            gridView1.OptionsCustomization.AllowGroup = false;
            gridView1.OptionsView.AnimationType       = DevExpress.XtraGrid.Views.Base.GridAnimationType.NeverAnimate;
            gridView1.OptionsView.ColumnAutoWidth     = false;
            //gridView1.OptionsView.ShowAutoFilterRow = false;
            gridView1.OptionsView.ShowGroupPanel = false;
            gridView1.OptionsView.ShowIndicator  = false;
            gridView1.OptionsView.RowAutoHeight  = true;
            gridView1.Appearance.Row.Font        = new Font("Tahoma", 10.0F);

            gridView1.OptionsSelection.EnableAppearanceFocusedCell   = false;
            gridView1.OptionsSelection.EnableAppearanceHideSelection = false;

            // зурган багана нэмж оруулахад энэ үзэгдлийг зарлаж дотор нь зургаа set хийнэ.
            //gridView1.CustomUnboundColumnData += new DevExpress.XtraGrid.Views.Base.CustomColumnDataEventHandler(gridView1_CustomUnboundColumnData);
            //gridView1.RowCellClick += new DevExpress.XtraGrid.Views.Grid.RowCellClickEventHandler(gridView1_RowCellClick);
            gridView1.FocusedRowChanged += new DevExpress.XtraGrid.Views.Base.FocusedRowChangedEventHandler(gridView1_FocusedRowChanged);
        }
Example #12
0
 public FormProjectEnq(InfoPos.Core.Core core, long projectid, long issueid)
 {
     InitializeComponent();
     _core     = core;
     ProjectID = projectid;
     IssueID   = issueid;
 }
Example #13
0
 public FormAssign(InfoPos.Core.Core core, long issueid, int userno)
 {
     InitializeComponent();
     _core    = core;
     _issueid = issueid;
     _userno  = userno;
 }
Example #14
0
 public FormIssueTrack(InfoPos.Core.Core core, long issueid, long ProjectID)
 {
     _core      = core;
     _issueid   = issueid;
     _projectid = ProjectID;
     InitializeComponent();
 }
Example #15
0
        public frmPayment(InfoPos.Core.Core core, string salesno)
        {
            InitializeComponent();
            this.Core                  = core;
            this.SalesNo               = salesno;
            this.ResizeRedraw          = true;
            this.popupContainer1.Width = dropDownButton1.Width;
            this.ucNumpad1.EditControl = numPayment;

            _layoutfilename = string.Format(@"{0}\Data\Layout_{1}.xml", Static.WorkingFolder, this.GetType().Name);

            #region Events
            this.FormClosing += frmPayment_FormClosing;
            this.gridView2.FocusedRowChanged += gridView2_FocusedRowChanged;
            #endregion
            #region Numeric field format

            numTotal.Properties.DisplayFormat.FormatType   = DevExpress.Utils.FormatType.Numeric;
            numTotal.Properties.DisplayFormat.FormatString = "#,##0.00";

            numPrepaid.Properties.DisplayFormat.FormatType   = DevExpress.Utils.FormatType.Numeric;
            numPrepaid.Properties.DisplayFormat.FormatString = "#,##0.00";

            numRemain.Properties.DisplayFormat.FormatType   = DevExpress.Utils.FormatType.Numeric;
            numRemain.Properties.DisplayFormat.FormatString = "#,##0.00";

            numChange.Properties.DisplayFormat.FormatType   = DevExpress.Utils.FormatType.Numeric;
            numChange.Properties.DisplayFormat.FormatString = "#,##0.00";

            numPayment.Properties.DisplayFormat.FormatType   = DevExpress.Utils.FormatType.Numeric;
            numPayment.Properties.DisplayFormat.FormatString = "#,##0.00";

            #endregion
            #region Gird format

            gridView1.OptionsSelection.EnableAppearanceFocusedCell   = false;
            gridView1.OptionsSelection.EnableAppearanceHideSelection = false;

            //gridView1.OptionsBehavior.ReadOnly = false;
            //gridView1.OptionsBehavior.Editable = true;
            //gridView1.OptionsCustomization.AllowGroup = false;
            //gridView1.OptionsView.AnimationType = DevExpress.XtraGrid.Views.Base.GridAnimationType.NeverAnimate;
            //gridView1.OptionsView.ColumnAutoWidth = false;
            ////gridView1.OptionsView.ShowAutoFilterRow = false;
            //gridView1.OptionsView.ShowGroupPanel = false;
            //gridView1.OptionsView.ShowIndicator = false;
            //gridView1.OptionsView.RowAutoHeight = true;
            //gridView1.Appearance.Row.Font = new Font("Tahoma", 10.0F);

            //// зурган багана нэмж оруулахад энэ үзэгдлийг зарлаж дотор нь зургаа set хийнэ.
            //gridView1.CustomUnboundColumnData += new DevExpress.XtraGrid.Views.Base.CustomColumnDataEventHandler(gridView1_CustomUnboundColumnData);
            //gridView1.FocusedRowChanged += new DevExpress.XtraGrid.Views.Base.FocusedRowChangedEventHandler(gridView1_FocusedRowChanged);
            //gridView1.RowCellClick += new DevExpress.XtraGrid.Views.Grid.RowCellClickEventHandler(gridView1_RowCellClick);
            //gridView1.CellValueChanged += new DevExpress.XtraGrid.Views.Base.CellValueChangedEventHandler(gridView1_CellValueChanged);
            gridView1.RowHeight = 28;
            #endregion
            #region Init functions
            InitGrid();
            #endregion
        }
Example #16
0
 public PassOption(HeavenPro.Core.Core core)
 {
     InitializeComponent();
     _core = core;
     InitCombo();
     lod();
 }
Example #17
0
        public void Init(string buttonkey, TouchLinkItem item, Form parent, object param, ref bool cancel)
        {
            try
            {
                _core     = (InfoPos.Core.Core)param;
                _resource = _core.Resource;

                //this.ucSaleSearch1.Remote = _core.RemoteObject;
                //this.ucSaleSearch1.Resource = _resource;
                //this.ucCustSearch1.Remote = _core.RemoteObject;
                //this.ucCustSearch1.Resource = _resource;

                //this.ucRentTag1.Core = _core;

                //this.ucRentList1.Remote = _core.RemoteObject;
                //this.ucRentList1.Resource = _resource;

                this.MdiParent = parent;
                this.Show();
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.ToString());
            }
        }
Example #18
0
 public FormCloseType(InfoPos.Core.Core core)
 {
     InitializeComponent();
     _core = core;
     Init();
     this.Resource = _core.Resource;
     this.FieldLinkSetSaveState();
 }
Example #19
0
        /************* Error codes and descriptions **************
         * 10 - Ini file not found.
         * 20 - Empty report file name.
         * 21 - Empty data source.
         * 22 - Not found specified report file.
         * 23 - Export error.
         * 24 - User cancel the report.
         * 29 - Other error.
         * 30 - Report ini file not found.
         * 31 - Report is not prepared.
         ********************************************************/
        public Generator(InfoPos.Core.Core core)
        {
            _core = core;



            //   BacAccount.ActiveForm.AcceptButton = ucBacAccountList.btnFind;
        }
Example #20
0
        public void CallOpenXML(object[] param)
        {
            _core = (Core.Core)param[0];

            InfoPos.Customer.OpenXml frm = new InfoPos.Customer.OpenXml(_core);
            frm.MdiParent = _core.MainForm;
            frm.Show();
        }
Example #21
0
 public frmProductList(InfoPos.Core.Core core)
 {
     InitializeComponent();
     ucProductList1.Core     = core;
     ucProductList1.Remote   = core.RemoteObject;
     ucProductList1.Resource = core.Resource;
     ucProductList1.DataRefresh(1);
 }
Example #22
0
 public CRMProjectType(Core.Core core)
 {
     InitializeComponent();
     _core = core;
     Init();
     this.Resource = _core.Resource;
     this.FieldLinkSetSaveState();
 }
Example #23
0
 public FormCustomerAdd(Core.Core core)
 {
     InitializeComponent();
     _core = core;
     Init();
     ucDynamicParameter1.Remote   = _core.RemoteObject;
     ucDynamicParameter1.Resource = _core.Resource;
 }
Example #24
0
 public CRMIssueTrack(Core.Core core)
 {
     InitializeComponent();
     _core = core;
     Init();
     this.Resource = _core.Resource;
     this.FieldLinkSetSaveState();
 }
Example #25
0
        public frmRegSearch(InfoPos.Core.Core core)
        {
            InitializeComponent();
            this.FormClosing += frmSearch_FormClosing;
            Init();

            this.Core = core;
        }
Example #26
0
 public CRMIssueActionType(InfoPos.Core.Core core)
 {
     InitializeComponent();
     _core = core;
     Init();
     this.Resource = _core.Resource;
     this.FieldLinkSetSaveState();
 }
Example #27
0
 public FormLink(InfoPos.Core.Core core, long issueid, int userno, int count)
 {
     InitializeComponent();
     _core    = core;
     _issueid = issueid;
     _userno  = userno;
     _count   = count;
 }
Example #28
0
        public frmInfoPos()
        {
            InitializeComponent();

            try
            {
                _core          = Program.Core; // энэ класс дээр глобал бдлаар үүсгэсэн байгаа.
                _core.MainForm = this;

                #region Event declaration
                this.MdiChildActivate += new EventHandler(frmInfoPos_MdiChildActivate);
                this.touchButtonGroup1.EventKeyDown += new ISM.Touch.TouchButtonGroup.delegateKeyDown(touchButtonGroup1_EventKeyDown);
                _core.RemoteObject.DisConnected     += new ISM.CUser.Remote.DelegateDisConnected(RemoteObject_DisConnected);
                #endregion
                #region Header Grid Options

                gridView1.OptionsCustomization.AllowRowSizing = false;

                gridView1.OptionsBehavior.EditorShowMode = DevExpress.Utils.EditorShowMode.Click;
                gridView1.OptionsBehavior.Editable       = false;
                gridView1.OptionsBehavior.ReadOnly       = true;

                gridView1.OptionsView.ShowIndicator     = false;
                gridView1.OptionsView.ShowGroupPanel    = false;
                gridView1.OptionsView.ShowColumnHeaders = false;
                gridView1.OptionsView.ShowAutoFilterRow = false;
                gridView1.OptionsView.ColumnAutoWidth   = true;
                gridView1.OptionsView.RowAutoHeight     = true;
                gridView1.OptionsView.AllowCellMerge    = false;
                //gridView1.OptionsView.ShowHorzLines = false;

                gridView1.OptionsSelection.MultiSelect     = false;
                gridView1.OptionsSelection.MultiSelectMode = DevExpress.XtraGrid.Views.Grid.GridMultiSelectMode.RowSelect;

                //this.gridView1.BorderStyle = DevExpress.XtraEditors.Controls.BorderStyles.NoBorder;

                if (gridControl1.Parent != null)
                {
                    //gridView1.Appearance.Empty.BackColor = System.Drawing.Color.Transparent;
                    gridView1.Appearance.Empty.BackColor            = gridControl1.Parent.BackColor;
                    gridView1.Appearance.Empty.Options.UseBackColor = true;
                }
                //gridView1.Appearance.Row.BackColor = System.Drawing.Color.Transparent;
                //gridView1.Appearance.Row.Options.UseBackColor = true;

                #endregion

                InitAll();
                touchButtonGroup1.ParentMDI = this;
                TouchButtonsInit();
                touchButtonGroup1.Init(2, 8, 2);

                _core.Tag.EventOnCard += Tag_EventOnCard;
            }
            catch (Exception ex)
            {
            }
        }
Example #29
0
 public FormCustomerMask(InfoPos.Core.Core core)
 {
     InitializeComponent();
     _core = core;
     Init();
     InitCombo();
     this.Resource = _core.Resource;
     this.FieldLinkSetSaveState();
 }
Example #30
0
 public frmAbout(InfoPos.Core.Core core)
 {
     InitializeComponent();
     _core = core;
     if (_core.Resource != null)
     {
         btnClose.Image = _core.Resource.GetImage("navigate_home");
     }
 }