Esempio n. 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;
            }
        }
Esempio n. 2
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());
            }
        }
Esempio n. 3
0
        private void ucOrder_Load(object sender, EventArgs e)
        {
            if (_core.Resource != null)
            {
                btnSave.Image = _core.Resource.GetImage("object_save");
            }
            FormUtility.LookUpEdit_SetList(ref cboStatus, 0, "Цуцлагдсан");
            FormUtility.LookUpEdit_SetList(ref cboStatus, 1, "Идэвхтэй");
            FormUtility.LookUpEdit_SetList(ref cboStatus, 2, "Баталгаажсан");

            FormUtility.LookUpEdit_SetList(ref cboTermType, "T", "Цаг");
            FormUtility.LookUpEdit_SetList(ref cboTermType, "D", "Өдөр");
            FormUtility.LookUpEdit_SetList(ref cboTermType, "W", "Гараг");
            FormUtility.LookUpEdit_SetList(ref cboTermType, "M", "Сар");

            string    msg    = "";
            ArrayList Tables = new ArrayList();

            string[] names = { "CURRENCY" };
            DictUtility.PrivNo = 130001;
            Result    res = DictUtility.Get(_core.RemoteObject, names, ref Tables);
            DataTable dt  = (DataTable)Tables[0];

            if (dt == null)
            {
                msg = "Dictionary-д CURRENCY оруулаагүй байна-" + res.ResultDesc;
            }
            else
            {
                FormUtility.LookUpEdit_SetList(ref cboCurCode, dt, "CURRENCY", "NAME", "", null);
                cboCurCode.ItemIndex  = 0;
                cboStatus.ItemIndex   = 1;
                cboTermType.ItemIndex = 1;
            }
            _touchkeyboard.AddToKeyboard(dteStart);
            _touchkeyboard.AddToKeyboard(dteEnd);
            _touchkeyboard.AddToKeyboard(txtFee);
            _touchkeyboard.AddToKeyboard(txtConfirmTerm);
            _touchkeyboard.AddToKeyboard(txtOrderAmount);
            _touchkeyboard.AddToKeyboard(txtPersonCount);
            _touchkeyboard.AddToKeyboard(txtPrepaidAmount);
        }
Esempio n. 4
0
        private void frmCustomer_Load(object sender, EventArgs e)
        {
            _kb.Enable = true;
            _kb.AddToKeyboard(txtName1);
            _kb.AddToKeyboard(txtName2);
            _kb.AddToKeyboard(txtRegisterNo);
            _kb.AddToKeyboard(txtMobileNo);
            _kb.AddToKeyboard(txtFootSize);
            _kb.AddToKeyboard(txtHeight);
            _kb.AddToKeyboard(txtCorpName);

            /****************************************
            * Dictionary Table:
            * TypeCode
            * ClassCode
            * Name
            ****************************************/
            ISM.Template.DictUtility.Get(_core.RemoteObject, "CUSTOMERTYPECODE", ref _dtCustType);

            btnRetail_Click(null, null);
        }
Esempio n. 5
0
        private void frmSearch_Load(object sender, EventArgs e)
        {
            if (_touchkeyboard != null)
            {
                _touchkeyboard.AddToKeyboard(txtSaleNo);
                _touchkeyboard.AddToKeyboard(txtTagNo);
                _touchkeyboard.AddToKeyboard(txtRegNo);
                _touchkeyboard.AddToKeyboard(txtName1);
                _touchkeyboard.AddToKeyboard(txtName2);
                _touchkeyboard.AddToKeyboard(txtCorp);
            }
            if (Resource != null)
            {
                btnSearch.Image = Resource.GetImage("button_find");
                btnNext.Image   = Resource.GetImage("paging_next");
                btnPrev.Image   = Resource.GetImage("paging_prev");
                btnChoose.Image = Resource.GetImage("button_ok");
            }

            dteSales.EditValue = _core.TxnDate;
        }
Esempio n. 6
0
        private void frmOrderEdit_Load(object sender, EventArgs e)
        {
            try
            {
                if (_core.Resource != null)
                {
                    simpleButton1.Image = _core.Resource.GetImage("object_save");
                    btnOwnerFind.Image  = _core.Resource.GetImage("button_find");
                }
                #region [ Init Combo ]
                FormUtility.LookUpEdit_SetList(ref cboStatus, 0, "Цуцлагдсан");
                FormUtility.LookUpEdit_SetList(ref cboStatus, 1, "Идэвхтэй");
                FormUtility.LookUpEdit_SetList(ref cboStatus, 2, "Баталгаажсан");

                FormUtility.LookUpEdit_SetList(ref cboTermType, "T", "Цаг");
                FormUtility.LookUpEdit_SetList(ref cboTermType, "D", "Өдөр");
                FormUtility.LookUpEdit_SetList(ref cboTermType, "W", "Гараг");
                FormUtility.LookUpEdit_SetList(ref cboTermType, "M", "Сар");

                string    msg    = "";
                ArrayList Tables = new ArrayList();
                string[]  names  = { "CURRENCY", "REBATEMASTER" };
                DictUtility.PrivNo = 130001;
                Result    res = DictUtility.Get(_core.RemoteObject, names, ref Tables);
                DataTable dt  = (DataTable)Tables[0];
                if (dt == null)
                {
                    msg = "Dictionary-д CURRENCY оруулаагүй байна-" + res.ResultDesc;
                }
                else
                {
                    FormUtility.LookUpEdit_SetList(ref cboCurCode, dt, "CURRENCY", "NAME", "", null);
                    cboCurCode.ItemIndex  = 0;
                    cboStatus.ItemIndex   = 1;
                    cboTermType.ItemIndex = 1;
                }
                dt = (DataTable)Tables[1];
                if (dt == null)
                {
                    msg = "Dictionary-д REBATEMASTER оруулаагүй байна-" + res.ResultDesc;
                }
                else
                {
                    FormUtility.LookUpEdit_SetList(ref cboRebateID, dt, "MASTERID", "NAME", "MASTERTYPE=0", new int[] { 1 });
                    FormUtility.LookUpEdit_SetList(ref cboLoyalID, dt, "MASTERID", "NAME", "MASTERTYPE=1", new int[] { 1 });
                    FormUtility.LookUpEdit_SetList(ref cboPointID, dt, "MASTERID", "NAME", "MASTERTYPE=2", new int[] { 1 });
                }
                #endregion
                #region [AddKeyboard]
                _kb.AddToKeyboard(dteStartDate);
                _kb.AddToKeyboard(dteEndDate);
                _kb.AddToKeyboard(txtFee);
                _kb.AddToKeyboard(txtConfirmTerm);
                _kb.AddToKeyboard(txtOrderAmount);
                _kb.AddToKeyboard(txtPersonCount);
                _kb.AddToKeyboard(txtPrepaidAmount);
                _kb.AddToKeyboard(dteStart);
                _kb.AddToKeyboard(dteEnd);
                _kb.AddToKeyboard(dteToday);
                #endregion
                ucOrderSearch1.DataRefresh(1);
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message);
            }
        }
Esempio n. 7
0
        private void frmOrderNew_Load(object sender, EventArgs e)
        {
            if (_core.Resource != null)
            {
                btnSave.Image    = _core.Resource.GetImage("object_save");
                btnRefresh.Image = _core.Resource.GetImage("navigate_refresh");
            }
            FormUtility.LookUpEdit_SetList(ref cboStatus, 0, "Цуцлагдсан");
            FormUtility.LookUpEdit_SetList(ref cboStatus, 1, "Идэвхтэй");
            FormUtility.LookUpEdit_SetList(ref cboStatus, 2, "Баталгаажсан");

            FormUtility.LookUpEdit_SetList(ref cboTermType, "T", "Цаг");
            FormUtility.LookUpEdit_SetList(ref cboTermType, "D", "Өдөр");
            FormUtility.LookUpEdit_SetList(ref cboTermType, "W", "Гараг");
            FormUtility.LookUpEdit_SetList(ref cboTermType, "M", "Сар");

            string    msg    = "";
            ArrayList Tables = new ArrayList();

            string[] names = { "CURRENCY", "REBATEMASTER" };
            DictUtility.PrivNo = 130001;
            Result    res = DictUtility.Get(_core.RemoteObject, names, ref Tables);
            DataTable dt  = (DataTable)Tables[0];

            if (dt == null)
            {
                msg = "Dictionary-д CURRENCY оруулаагүй байна-" + res.ResultDesc;
            }
            else
            {
                FormUtility.LookUpEdit_SetList(ref cboCurCode, dt, "CURRENCY", "NAME", "", null);
                cboCurCode.ItemIndex = 0;
                FormUtility.LookUpEdit_SetValue(ref cboStatus, 1);
                cboTermType.ItemIndex = 1;
            }
            dt = (DataTable)Tables[1];
            if (dt == null)
            {
                msg = "Dictionary-д REBATEMASTER оруулаагүй байна-" + res.ResultDesc;
            }
            else
            {
                FormUtility.LookUpEdit_SetList(ref cboRebateID, dt, "MASTERID", "NAME", "MASTERTYPE=0", new int[] { 1 });
                FormUtility.LookUpEdit_SetList(ref cboLoyalID, dt, "MASTERID", "NAME", "MASTERTYPE=1", new int[] { 1 });
                FormUtility.LookUpEdit_SetList(ref cboPointID, dt, "MASTERID", "NAME", "MASTERTYPE=2", new int[] { 1 });
            }
            //General
            _kb.AddToKeyboard(dteStartDate);
            _kb.AddToKeyboard(dteEndDate);
            _kb.AddToKeyboard(txtFee);
            _kb.AddToKeyboard(txtConfirmTerm);
            _kb.AddToKeyboard(txtOrderAmount);
            _kb.AddToKeyboard(txtPersonCount);
            _kb.AddToKeyboard(txtPrepaidAmount);
            _kb.AddToKeyboard(cboRebateID);
            _kb.AddToKeyboard(cboLoyalID);
            _kb.AddToKeyboard(cboPointID);
            _kb.AddToKeyboard(cboCurCode);
            _kb.AddToKeyboard(cboTermType);

            dteStartDate.EditValue = _core.TxnDate;
            dteEndDate.EditValue   = _core.TxnDate;
            ucCustSearch2.DataRefresh(1);
        }