Beispiel #1
0
        private void frmSchedule_Load(object sender, EventArgs e)
        {
            if (!isinit)
            {
                if (_core.Resource != null)
                {
                    btnRefresh.Image = _core.Resource.GetImage("navigate_refresh");
                }
                ucSchedule1.core       = _core;
                ucSchedule1.LineNumber = _linenumber;
                ucSchedule1.ProdType   = _prodtype;
                ucSchedule1.OrderNo    = _orderno;
                ucSchedule1.ProdNo     = _prodno;
                ucSchedule1.Duration   = _duration;
                ucSchedule1.Unit       = _unit;

                ucSchedule1.StatusAdd(0, "Захиалга хийгдэж байгаа", Color.Aqua);
                ucSchedule1.StatusAdd(1, "Захиалга хаагдсан", Color.OliveDrab);
                ucSchedule1.StatusAdd(2, "Захиалга цуцлагдсан", Color.OrangeRed);
                dteToday.EditValue = DateTime.Now;
                ucSchedule1.RefreshData(_prodtype, _prodno, Static.ToDate(dteToday.EditValue));
                _touchkeyboard        = new TouchKeyboard();
                _touchkeyboard.Enable = true;
                _touchkeyboard.AddToKeyboard(dteToday);
                _touchkeyboard.AddToKeyboard(dteStart);
                _touchkeyboard.AddToKeyboard(dteEnd);
                ucSchedule1.TouchKeyboard = _touchkeyboard;
            }
        }
Beispiel #2
0
        public void Init(string buttonkey, TouchLinkItem item, Form parent, object param, ref bool cancel)
        {
            try
            {
                _core           = (InfoPos.Core.Core)param;
                _kb             = new TouchKeyboard();
                _kb.Enable      = true;
                _layoutfilename = string.Format(@"{0}\Data\Layout_{1}.xml", Static.WorkingFolder, this.GetType().Name);
                ucOrderSearch1.TouchKeyboard = _kb;
                ucOrderSearch1.Core          = _core;
                ucOrderSearch1.Remote        = _core.RemoteObject;
                ucOrderSearch1.Resource      = _core.Resource;

                ucSchedule1.core          = _core;
                ucSchedule1.TouchKeyboard = _kb;


                ucOrderGroup1.TouchKeyboard = _kb;
                ucOrderGroup1.Core          = _core;
                ucOrderGroup1.Remote        = _core.RemoteObject;
                ucOrderGroup1.Resource      = _core.Resource;

                ucCustSearch1.Core          = _core;
                ucCustSearch1.Remote        = _core.RemoteObject;
                ucCustSearch1.Resource      = _core.Resource;
                ucCustSearch1.TouchKeyboard = _kb;

                ucOrderCancel1.Core          = _core;
                ucOrderCancel1.Remote        = _core.RemoteObject;
                ucOrderCancel1.Resource      = _core.Resource;
                ucOrderCancel1.TouchKeyboard = _kb;

                ucOrderConfirm1.Core          = _core;
                ucOrderConfirm1.Remote        = _core.RemoteObject;
                ucOrderConfirm1.Resource      = _core.Resource;
                ucOrderConfirm1.TouchKeyboard = _kb;

                ucOrderExpend1.Core          = _core;
                ucOrderExpend1.Remote        = _core.RemoteObject;
                ucOrderExpend1.Resource      = _core.Resource;
                ucOrderExpend1.TouchKeyboard = _kb;

                tabMain.ShowTabHeader       = DevExpress.Utils.DefaultBoolean.False;
                ucOrderSearch1.EventChoose += new ucOrderSearch.delegateEventChoose(ucOrderSearch1_EventChoose);
                ucCustSearch1.EventChoose  += new Panels.ucCustSearch.delegateEventChoose(ucCustSearch1_EventChoose);
                ucOrderGroup1.EventChoose  += new ucOrderGroup.delegateEventChoose(ucOrderGroup1_EventChoose);

                this.MdiParent = parent;
                this.Show();
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.ToString());
            }
        }
Beispiel #3
0
        public void Init(string buttonkey, TouchLinkItem item, Form parent, object param, ref bool cancel)
        {
            try
            {
                _core      = (InfoPos.Core.Core)param;
                _resource  = _core.Resource;
                _kb        = new ISM.Touch.TouchKeyboard();
                _kb.Enable = true;

                this.ucCustSearch1.Remote   = _core.RemoteObject;
                this.ucCustSearch1.Core     = _core;
                this.ucCustSearch1.Resource = _resource;

                this.ucSalesProd1.Remote        = _core.RemoteObject;
                this.ucSalesProd1.Resource      = _core.Resource;
                this.ucSalesProd1.TouchKeyboard = _kb;

                this.ucContractSearch1.Core          = _core;
                this.ucContractSearch1.Remote        = _core.RemoteObject;
                this.ucContractSearch1.Resource      = _core.Resource;
                this.ucContractSearch1.TouchKeyboard = _kb;

                this.ucOrderSearch1.Core          = _core;
                this.ucOrderSearch1.Remote        = _core.RemoteObject;
                this.ucOrderSearch1.Resource      = _core.Resource;
                this.ucOrderSearch1.TouchKeyboard = _kb;

                this.ucPayment1.Core          = _core;
                this.ucPayment1.Remote        = _core.RemoteObject;
                this.ucPayment1.Resource      = _core.Resource;
                this.ucPayment1.TouchKeyboard = _kb;

                this.MdiParent = _core.MainForm;
                this.Show();
                if (item.Key == "fo_cashreg")
                {
                    FormLoad(param, 0);
                }
                if (item.Key == "fo_salesreturn")
                {
                    FormLoad(param, 1);
                }
                TabMAIN.ShowTabHeader = DevExpress.Utils.DefaultBoolean.False;
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.ToString());
            }
        }
Beispiel #4
0
 public void Init(string buttonkey, TouchLinkItem item, Form parent, object param, ref bool cancel)
 {
     try
     {
         _touchkeyboard = new ISM.Touch.TouchKeyboard();
         _core          = (InfoPos.Core.Core)param;
         _resource      = _core.Resource;
         this.MdiParent = parent;
         this.Show();
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.ToString());
     }
 }
Beispiel #5
0
        public void Init(string buttonkey, TouchLinkItem item, Form parent, object param, ref bool cancel)
        {
            _core      = (InfoPos.Core.Core)param;
            _kb        = new TouchKeyboard();
            _kb.Enable = true;

            ucMaster1.Core          = _core;
            ucMaster1.Remote        = _core.RemoteObject;
            ucMaster1.Resource      = _core.Resource;
            ucMaster1.TouchKeyboard = _kb;

            TabMain.ShowTabHeader = DevExpress.Utils.DefaultBoolean.False;
            this.MdiParent        = parent;
            this.Show();
        }
Beispiel #6
0
        public void Init(string buttonkey, TouchLinkItem item, Form parent, object param, ref bool cancel)
        {
            try
            {
                _core      = (InfoPos.Core.Core)param;
                _kb        = new TouchKeyboard();
                _kb.Enable = true;



                this.MdiParent = parent;
                this.Show();
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.ToString());
            }
        }
Beispiel #7
0
        public void Init(string buttonkey, TouchLinkItem item, Form parent, object param, ref bool cancel)
        {
            try
            {
                _core      = (InfoPos.Core.Core)param;
                _kb        = new TouchKeyboard();
                _kb.Enable = true;

                xtraTabControl1.ShowTabHeader = DevExpress.Utils.DefaultBoolean.False;

                this.MdiParent = parent;
                this.Show();
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.ToString());
            }
        }
Beispiel #8
0
        public void Init(string buttonkey, TouchLinkItem item, Form parent, object param, ref bool cancel)
        {
            try
            {
                _core      = (InfoPos.Core.Core)param;
                _kb        = new TouchKeyboard();
                _kb.Enable = true;

                ucCustSearch2.Core          = _core;
                ucCustSearch2.Remote        = _core.RemoteObject;
                ucCustSearch2.Resource      = _core.Resource;
                ucCustSearch2.TouchKeyboard = _kb;

                ucSchedule1.core          = _core;
                ucSchedule1.TouchKeyboard = _kb;

                ucOrderGroup1.TouchKeyboard = _kb;
                ucOrderGroup1.Core          = _core;
                ucOrderGroup1.Remote        = _core.RemoteObject;
                ucOrderGroup1.Resource      = _core.Resource;

                ucCustSearch1.Core          = _core;
                ucCustSearch1.Remote        = _core.RemoteObject;
                ucCustSearch1.Resource      = _core.Resource;
                ucCustSearch1.TouchKeyboard = _kb;

                ucCustSearch2.EventChoose += new ucCustSearch.delegateEventChoose(ucCustSearch2_EventChoose);
                ucCustSearch1.EventChoose += new ucCustSearch.delegateEventChoose(ucCustSearch1_EventChoose);
                ucOrderGroup1.EventChoose += new ucOrderGroup.delegateEventChoose(ucOrderGroup1_EventChoose);
                TabMain.ShowTabHeader      = DevExpress.Utils.DefaultBoolean.False;
                this.MdiParent             = parent;
                this.Show();
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.ToString());
            }
        }
Beispiel #9
0
        public void Init(string buttonkey, TouchLinkItem item, Form parent, object param, ref bool cancel)
        {
            try
            {
                isinit = true;
                _core  = (InfoPos.Core.Core)param;
                if (_core.Resource != null)
                {
                    btnRefresh.Image = _core.Resource.GetImage("navigate_refresh");
                }
                ucSchedule1.core            = _core;
                this.ucSchedule1.LineNumber = _linenumber;
                this.ucSchedule1.ProdType   = _prodtype;
                this.ucSchedule1.OrderNo    = _orderno;
                this.ucSchedule1.ProdNo     = _prodno;
                this.ucSchedule1.Duration   = _duration;
                this.ucSchedule1.Unit       = _unit;


                ucSchedule1.StatusAdd(0, "Захиалга хийгдэж байгаа", Color.Aqua);
                ucSchedule1.StatusAdd(1, "Захиалга хаагдсан", Color.OliveDrab);
                ucSchedule1.StatusAdd(2, "Захиалга цуцлагдсан", Color.OrangeRed);
                ucSchedule1.RefreshData(_prodtype, _prodno, _selectday);

                _touchkeyboard        = new TouchKeyboard();
                _touchkeyboard.Enable = true;
                _touchkeyboard.AddToKeyboard(dteToday);
                _touchkeyboard.AddToKeyboard(dteStart);
                _touchkeyboard.AddToKeyboard(dteEnd);
                ucSchedule1.TouchKeyboard = _touchkeyboard;
                this.MdiParent            = parent;
                this.Show();
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.ToString());
            }
        }
Beispiel #10
0
 public frmCustomer(InfoPos.Core.Core core, string CustomerNo, string ClassCode, string Name1, string Name2, string CorporateName, string RegisterNo)
 {
     InitializeComponent();
     _core = core;
     Inviduale();
     if (CustomerNo == "")
     {
         Inviduale();
         btnRetail.ForeColor     = Color.OrangeRed;
         txtName1.EditValue      = Name1;
         txtName2.EditValue      = Name2;
         txtCorpName.EditValue   = CorporateName;
         txtRegisterNo.EditValue = RegisterNo;
     }
     if (_core.Resource != null)
     {
         btnSave.Image     = _core.Resource.GetImage("object_save");
         btnExit.Image     = _core.Resource.GetImage("image_exit");
         btnRetail.Image   = _core.Resource.GetImage("issue_assign");
         btnCorprate.Image = _core.Resource.GetImage("menu_office");
     }
     _kb = new TouchKeyboard();
 }