Esempio n. 1
0
        public void SubMenu_Payment(TouchLinkItem item)
        {
            Result res = null;

            if (tabMain.SelectedTabPageIndex != 1)
            {
                res = Msg.Get(EnumMessage.SALES_NOT_SELECTED);
            }
            else
            {
                _paymentno = "";
                res        = ucPayment1.PaymentTable(_paymentno);
                if (res.ResultNo == 0)
                {
                    _core.AlertShow("Мэдээлэл", "Төлбөр амжилттай хийгдлээ.");
                    decimal[] amount = ucPayment1.GetAmount();
                    ucBill1.SalesPrint(_batchno, 0, _isvat, amount[4], amount[5], Static.ToStr(res.Param[2]), amount[2]);
                    // Төлбөр амжилттай хийгдвэл шууд формоо хаах
                    item.IsClose = 1;
                    this.Close();
                }
                else
                {
                    MessageBox.Show(res.ResultNo + " : " + res.ResultDesc);
                }
            }
        }
Esempio n. 2
0
        public void Init(string buttonkey, TouchLinkItem item, Form parent, object param, ref bool cancel)
        {
            try
            {
                frmSaleNew frm;

                switch (item.Row * 10 + item.Col)
                {
                case 12:
                    // New
                    frm           = new frmSaleNew(param, 0);
                    frm.MdiParent = parent;
                    frm.Show();
                    break;

                case 22:
                    // Update
                    frm           = new frmSaleNew(param, 1);
                    frm.MdiParent = parent;
                    frm.Show();
                    break;
                }
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.ToString());
            }
        }
Esempio n. 3
0
        public void Call(string buttonkey, TouchLinkItem item, ref bool cancel)
        {
            Result res = new Result();

            try
            {
                switch (buttonkey)
                {
                case "fo_customer_search":
                    break;

                case "fo_order_ordernew":
                    break;

                case "fo_order_personnew":
                    break;

                case "fo_order_groupnew":
                    break;

                case "fo_order_new_exit":
                    this.Close();
                    item.IsClose = 1;
                    break;
                }
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.ToString());
            }
        }
Esempio n. 4
0
        public void Call(string buttonkey, TouchLinkItem item, ref bool cancel)
        {
            Result res = new Result();

            try
            {
                switch (buttonkey)
                {
                case "master_search":
                    TabMain.SelectedTabPageIndex = 0;
                    ucMaster1.DataRefresh();
                    break;

                case "master_active":
                    ucMaster1.btnActive_Click(null, null);
                    break;

                case "master_inactive":
                    ucMaster1.btnInActive_Click(null, null);
                    break;

                case "master_exit":
                    this.Close();
                    break;
                }
                ISM.Template.FormUtility.ValidateQuery(res);
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.ToString());
            }
        }
Esempio n. 5
0
        public void Call(string buttonkey, TouchLinkItem item, ref bool cancel)
        {
            try
            {
                switch (buttonkey)
                {
                case "fo_cashreg_1.1":
                    TabMAIN.SelectedTabPageIndex = 0;
                    break;

                case "fo_cash_new_2.1":
                    TabMAIN.SelectedTabPageIndex = 1;
                    break;

                case "fo_cash_new_1.2":
                    TabMAIN.SelectedTabPageIndex = 2;
                    break;

                case "fo_cashreg_2.8":
                    item.IsClose = 1;
                    this.Close();
                    break;
                }
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.ToString());
            }
        }
Esempio n. 6
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());
            }
        }
Esempio n. 7
0
        public void Call(string buttonkey, TouchLinkItem item, ref bool cancel)
        {
            Result res = new Result();

            try
            {
                switch (buttonkey)
                {
                case "fo_payment_search":
                    SubMenu_Search();
                    break;

                case "fo_payment_tag":
                    SubMenu_SearchTag();
                    break;

                case "fo_payment_set":
                    SubMenu_Payment(item);
                    break;

                case "fo_payment_exit":
                    item.IsClose = 1;
                    this.Close();
                    break;
                }
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.ToString());
            }
        }
Esempio n. 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;
                _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());
            }
        }
Esempio n. 9
0
        void TouchChoice_EventKeyDown(Control sender, MouseEventArgs e, TouchLinkItem item, ref bool cancel)
        {
            switch (item.Key)
            {
            case "customertosale": TabMAIN.SelectedTabPageIndex = 1; ucCustSearch1.DataRefresh(1); break;

            case "ordertosale": TabMAIN.SelectedTabPageIndex = 2; ucOrderSearch1.DataRefresh(1); break;

            case "registertosale": TabMAIN.SelectedTabPageIndex = 3; ucContractSearch1.DataRefresh(1); break;
            }
        }
Esempio n. 10
0
        void TouchProductMenu_EventKeyDown(Control sender, MouseEventArgs e, TouchLinkItem item, ref bool cancel)
        {
            if (item != null)
            {
                if (productpanel.ContainsKey(item.parentKey.ToString() + "-" + item.Key.ToString()))
                {
                    DataTable productlist = new DataTable();
                    productlist.Columns.Add("SALESNO", typeof(string));
                    productlist.Columns.Add("CUSTOMERNO", typeof(long));
                    productlist.Columns.Add("PRODCODE", typeof(string));
                    productlist.Columns.Add("PRODTYPE", typeof(int));
                    productlist.Columns.Add("PRODNAME", typeof(string));
                    productlist.Columns.Add("PRICE", typeof(decimal));
                    productlist.Columns.Add("DISCOUNT", typeof(decimal));
                    productlist.Columns.Add("SALESAMOUNT", typeof(decimal));
                    productlist.Columns.Add("QUANTITY", typeof(long));
                    productlist.Columns.Add("FLAG", typeof(int));
                    productlist.Columns.Add("EDIT");
                    productlist.Columns.Add("DELETE");
                    DataRow drow = (DataRow)productpanel[item.parentKey.ToString() + "-" + item.Key.ToString()];
                    switch (Static.ToInt(drow["NODETYPE"]))
                    {
                    case 1:
                        productlist = GetPack(Static.ToStr(drow["NODEID"]), productlist);
                        break;

                    case 2:
                        productlist = GetInv(Static.ToStr(drow["NODEID"]), productlist, 1);
                        break;

                    case 3:
                        productlist = GetServ(Static.ToStr(drow["NODEID"]), productlist, 1);
                        break;
                    }
                    foreach (DataRow dr in productlist.Rows)
                    {
                        ucSalesProd1.AddProduct(SalesNo,
                                                Static.ToLong(dr["CUSTOMERNO"]),
                                                Static.ToStr(dr["PRODCODE"]),
                                                Static.ToInt(dr["PRODTYPE"]),
                                                Static.ToStr(dr["PRODNAME"]),
                                                Static.ToDecimal(dr["PRICE"]),
                                                Static.ToDecimal(dr["DISCOUNT"]),
                                                Static.ToDecimal(dr["SALESAMOUNT"]),
                                                Static.ToInt(dr["QUANTITY"]),
                                                Static.ToInt(dr["FLAG"]),
                                                0
                                                );
                    }
                    ucSalesPayment1.DiscountState();
                }
            }
        }
Esempio n. 11
0
        public void Call(string buttonkey, TouchLinkItem item, ref bool cancel)
        {
            try
            {
                switch (buttonkey)
                {
                case "fo_shift_supply":    //Кассын зузаатгал
                    SubMenu_Supply();
                    break;

                case "fo_shift_draw":    //Касс тушаах
                    SubMenu_Draw();
                    break;

                case "fo_shift_open":    //Ээлж нээх
                    SubMenu_Open();
                    break;

                case "fo_shift_close":    //Ээлж хаах
                    SubMenu_Close();
                    break;

                case "fo_pos_open":     //ПОС нээх
                    SubMenu_PosOpen();
                    break;

                case "fo_pos_close":     //ПОС хаах
                    SubMenu_PosClose();
                    break;

                case "fo_pos_print":
                    SubMenu_PosPrint();
                    break;

                case "fo_pos_repbrief":
                    SubMenu_ReportBrief();
                    break;

                case "fo_pos_repcash":
                    SubMenu_CashReport();
                    break;

                case "fo_shift_exit":
                    item.IsClose = 1;
                    this.Close();
                    break;
                }
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.ToString());
            }
        }
Esempio n. 12
0
        public void Call(string buttonkey, TouchLinkItem item, ref bool cancel)
        {
            frmSaleNew frm;


            MessageBox.Show(string.Format("CalcSales Form2: Call. key={0} r={1} c={2}", buttonkey, item.Row, item.Col));

            if (item.Row == 2 && item.Col == 2)
            {
                // Борлуулалт хайх
                //xtraTabControl1.SelectedTabPageIndex = 5;
            }
        }
Esempio n. 13
0
        public void Call(string buttonkey, TouchLinkItem item, ref bool cancel)
        {
            Result res = new Result();

            try
            {
                if (txtOrderNo.EditValue != null || txtOrderNo.Text != "" || buttonkey == "fo_order_new" || buttonkey == "fo_order_new_exit" || buttonkey == "fo_customer_search")
                {
                    switch (buttonkey)
                    {
                    case "fo_customer_search":
                        TabMain.SelectedTabPageIndex = 0;
                        labelControl15.Text          = "Захиалга - Харилцагч сонгох";
                        break;

                    case "fo_order_ordernew":
                        TabMain.SelectedTabPageIndex = 1;
                        labelControl15.Text          = "Захиалга - Захиалга үүсгэх";
                        break;

                    case "fo_order_personnew":
                        TabMain.SelectedTabPageIndex = 2;
                        RefreshPerson();
                        labelControl15.Text = "Захиалга - Хамрагдах үйлчлүүлэгчид";
                        break;

                    case "fo_order_groupnew":
                        TabMain.SelectedTabPageIndex = 3;
                        ucOrderGroup1.orderno        = Static.ToStr(txtOrderNo.EditValue);
                        ucOrderGroup1.RefreshGroup(Static.ToStr(txtOrderNo.EditValue));
                        labelControl15.Text = "Захиалга - Багц үйлчилгээний бүлэг";
                        break;

                    case "fo_order_new_exit":
                        this.Close();
                        item.IsClose = 1;
                        break;
                    }
                    ISM.Template.FormUtility.ValidateQuery(res);
                }
                else
                {
                    MessageBox.Show("Захиалгаа эхэлж үүсгэнэ үү.", "Алдаа", MessageBoxButtons.OK, MessageBoxIcon.Warning);
                }
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.ToString());
            }
        }
Esempio n. 14
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());
            }
        }
Esempio n. 15
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());
     }
 }
Esempio n. 16
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();
        }
Esempio n. 17
0
        public void Call(string buttonkey, TouchLinkItem item, ref bool cancel)
        {
            Result res = new Result();

            try
            {
                switch (buttonkey)
                {
                case "fo_rent_search":
                    tabMain.SelectedTabPageIndex = 0;
                    break;

                case "fo_rent_tag":
                    ShowTagReader();
                    break;

                case "fo_rent_deliver":
                    if (tabMain.SelectedTabPageIndex != 1)
                    {
                        //res = Msg.Get(EnumMessage.PRODUCT_NOT_SELECTED);
                    }
                    else
                    {
                        //res = ucRentList1.Deliver();
                    }

                    break;

                case "fo_rent_receive":
                    if (tabMain.SelectedTabPageIndex != 1)
                    {
                        //res = Msg.Get(EnumMessage.PRODUCT_NOT_SELECTED);
                    }
                    else
                    {
                        //res = ucCustSearch1.Receive();
                    }
                    break;
                }
                ISM.Template.FormUtility.ValidateQuery(res);
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.ToString());
            }
        }
Esempio n. 18
0
        public void Call(string buttonkey, TouchLinkItem item, ref bool cancel)
        {
            try
            {
                switch (buttonkey)
                {
                case "tag_clear":
                    SubMenu_Clear();
                    break;

                case "tag_write":
                    SubMenu_Write();
                    break;

                case "tag_recycle":
                    SubMenu_Recycle();
                    break;

                case "tag_exit":
                    this.Close();
                    item.IsClose = 1;
                    break;

                case "call_tagreader":
                    string       tagno   = item.Text;
                    TagEventData tagdata = (TagEventData)item.Tag;

                    //Alert(string.Format("Сериал: {0} Төлөв: {1}", tagdata.readtagno, tagdata.readstatus), "Таг уншигдлаа.");

                    if (_frmTag == null)
                    {
                        SubMenu_TagReader(tagdata);
                    }
                    else
                    {
                        _frmTag.EventOnCard(tagdata);
                    }
                    break;
                }
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.ToString());
            }
        }
Esempio n. 19
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());
            }
        }
Esempio n. 20
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());
            }
        }
Esempio n. 21
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 TouchKeyboard();
                if (_core.IsTouch == true)
                {
                    _kb.Enable = true;
                }
                else
                {
                    _kb.Enable = false;
                }

                //this.ucPledgeSearch1.Core = _core;
                //this.ucPledgeSearch1.Remote = _core.RemoteObject;
                //this.ucPledgeSearch1.Resource = _resource;
                //this.ucPledgeSearch1.TouchKeyboard = _kb;

                //this.ucPledgeList1.Core = _core;
                //this.ucPledgeList1.Remote = _core.RemoteObject;
                //this.ucPledgeList1.Resource = _resource;
                //this.ucPledgeList1.TouchKeyboard = _kb;

                //this.ucRentList1.Core = _core;
                //this.ucRentList1.Remote = _core.RemoteObject;
                //this.ucRentList1.Resource = _resource;
                //this.ucRentList1.TouchKeyboard = _kb;

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

                this.MdiParent = parent;
                this.Show();
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.ToString());
            }
        }
Esempio n. 22
0
        public void Call(string buttonkey, TouchLinkItem item, ref bool cancel)
        {
            Result res = new Result();

            try
            {
                switch (buttonkey)
                {
                case "report_sales": xtraTabControl1.SelectedTabPageIndex = 0; break;

                case "report_payments": xtraTabControl1.SelectedTabPageIndex = 1; break;

                case "report_exit": item.IsClose = 1; this.Close(); break;
                }
                ISM.Template.FormUtility.ValidateQuery(res);
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.ToString());
            }
        }
Esempio n. 23
0
        public void Init(string buttonkey, TouchLinkItem item, Form parent, object param, ref bool cancel)
        {
            try
            {
                _core = (InfoPos.Core.Core)param;
                if (_core != null)
                {
                    _remote   = _core.RemoteObject;
                    _resource = _core.Resource;
                }



                this.MdiParent = parent;
                this.Show();
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.ToString());
            }
        }
Esempio n. 24
0
        public void Call(string buttonkey, TouchLinkItem item, ref bool cancel)
        {
            Result res = new Result();

            try
            {
                switch (buttonkey)
                {
                case "fo_repeat_bill":
                    if (ucBill.SalesNo != null)
                    {
                        if (_core.BillPrinterType == 1)
                        {
                            ucBill.PrindReport();
                        }
                        else
                        {
                            ucBill.PrindReportSerial();
                        }
                    }
                    else
                    {
                        MessageBox.Show("Борлуулалт сонгоогүй байна:"); return;
                    }
                    break;

                case "fo_cash_bill_exit":
                    item.IsClose = 1;
                    this.Close();
                    break;
                }
                ISM.Template.FormUtility.ValidateQuery(res);
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.ToString());
            }
        }
Esempio n. 25
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());
            }
        }
Esempio n. 26
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. 27
0
        public void Init(string buttonkey, TouchLinkItem item, Form parent, object param, ref bool cancel)
        {
            try
            {
                _kb       = new TouchKeyboard();
                _core     = (InfoPos.Core.Core)param;
                _resource = _core.Resource;

                ucSaleSearchToBill.Remote   = _core.RemoteObject;
                ucSaleSearchToBill.Core     = _core;
                ucSaleSearchToBill.Resource = _core.Resource;

                ucBill.remote = _core.RemoteObject;
                ucBill.kb     = _kb;
                ucBill.core   = _core;

                this.MdiParent = parent;
                this.Show();
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.ToString());
            }
        }
Esempio n. 28
0
        public void Call(string buttonkey, TouchLinkItem item, ref bool cancel)
        {
            Result res = new Result();

            try
            {
                if (txtOrderNo.EditValue != null || txtOrderNo.Text != "" || buttonkey == "fo_order_search" || buttonkey == "fo_order_edit" || buttonkey == "fo_order_edit_exit")
                {
                    switch (buttonkey)
                    {
                    case "fo_order_search":
                        tabMain.SelectedTabPageIndex = 0;
                        labelControl15.Text          = "Захиалга - Захиалга сонгох";
                        break;

                    case "fo_order_orderedit":
                        tabMain.SelectedTabPageIndex = 1;
                        labelControl15.Text          = "Захиалга - Захиалга засварлах";
                        break;

                    case "fo_order_personedit":
                        tabMain.SelectedTabPageIndex = 2;
                        RefreshPerson();
                        labelControl15.Text = "Захиалга - Хамрагдах үйлчлүүлэгчид";
                        break;

                    case "fo_order_groupedit":
                        tabMain.SelectedTabPageIndex = 3;
                        ucOrderGroup1.orderno        = Static.ToStr(txtOrderNo.EditValue);
                        ucOrderGroup1.RefreshGroup(Static.ToStr(txtOrderNo.EditValue));
                        ucOrderGroup1.gridView1.Columns[0].Caption  = "Захиалгын дугаар";
                        ucOrderGroup1.gridView1.Appearance.Row.Font = new Font("Tahoma", 10.0F);
                        ucOrderGroup1.gridView1.Columns[0].Visible  = false;
                        ucOrderGroup1.gridView1.Columns[1].Caption  = "Багцын дугаар";
                        ucOrderGroup1.gridView1.Columns[2].Caption  = "Бүртгэсэн огноо";
                        ucOrderGroup1.gridView1.Columns[3].Caption  = "Эхлэх цаг";
                        ucOrderGroup1.gridView1.Columns[3].DisplayFormat.FormatString = "hh::mm:ss";;
                        ucOrderGroup1.gridView1.Columns[4].DisplayFormat.FormatString = "hh:mm:ss";
                        ucOrderGroup1.gridView1.Columns[4].Caption = "Дуусах цаг";
                        ucOrderGroup1.gridView1.Columns[5].Caption = "Ажиллах давтамжын дугаар";
                        ucOrderGroup1.gridView1.Columns[5].Visible = false;
                        ucOrderGroup1.gridView1.Columns[6].Caption = "Ажиллах давтамж";

                        ucOrderGroup1.gridView1.Columns[0].OptionsColumn.AllowEdit = false;
                        ucOrderGroup1.gridView1.Columns[1].OptionsColumn.AllowEdit = false;
                        ucOrderGroup1.gridView1.Columns[2].OptionsColumn.AllowEdit = false;
                        ucOrderGroup1.gridView1.Columns[3].OptionsColumn.AllowEdit = false;
                        ucOrderGroup1.gridView1.Columns[4].OptionsColumn.AllowEdit = false;
                        ucOrderGroup1.gridView1.Columns[5].OptionsColumn.AllowEdit = false;
                        ucOrderGroup1.gridView1.Columns[6].OptionsColumn.AllowEdit = false;
                        labelControl15.Text = "Захиалга - Багц үйлчилгээний бүлэг";
                        ucOrderGroup1.RefreshProd(Static.ToStr(txtOrderNo.EditValue), 1);
                        break;

                    case "fo_order_cancel":
                        if (Static.ToInt(cboStatus.EditValue) != 0)
                        {
                            ucOrderCancel1.orderno       = Static.ToStr(txtOrderNo.EditValue);
                            tabMain.SelectedTabPageIndex = 4;
                            labelControl15.Text          = "Захиалга - Захиалга цуцлах";
                        }
                        else
                        {
                            MessageBox.Show("Захиалга цуцлагдсан байна.");
                        }
                        break;

                    case "fo_order_confirm":
                        if (Static.ToInt(cboStatus.EditValue) != 2)
                        {
                            ucOrderConfirm1.orderno      = Static.ToStr(txtOrderNo.EditValue);
                            tabMain.SelectedTabPageIndex = 5;
                            labelControl15.Text          = "Захиалга - Захиалга баталгаажуулах";
                        }
                        else
                        {
                            MessageBox.Show("Захиалга баталгаажсан байна.");
                        }
                        break;

                    case "fo_order_expend":
                        ucOrderExpend1.orderno       = Static.ToStr(txtOrderNo.EditValue);
                        ucOrderExpend1.expenddate    = Static.ToDate(dteEndDate.EditValue);
                        tabMain.SelectedTabPageIndex = 6;
                        labelControl15.Text          = "Захиалга - Захиалга сунгах";
                        break;

                    case "fo_order_edit_exit":
                        this.Close();
                        item.IsClose = 1;
                        break;
                    }
                }
                else
                {
                    MessageBox.Show("Захиалгаа эхэлж сонгоно уу", "Алдаа", MessageBoxButtons.OK, MessageBoxIcon.Warning);
                }
                ISM.Template.FormUtility.ValidateQuery(res);
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.ToString());
            }
        }
Esempio n. 29
0
 public void Call(string buttonkey, TouchLinkItem item, ref bool cancel)
 {
     MessageBox.Show(string.Format("Rent Form1: Call. r={0} c={1} key={2}", item.Row, item.Col, buttonkey));
 }
Esempio n. 30
0
 void touchButtonGroup1_EventKeyDown(Control sender, MouseEventArgs e, TouchLinkItem item, ref bool cancel)
 {
     MessageBox.Show(string.Format("Rent Form1: Button clicked. r={0} c={1} key={2}", item.Row, item.Col, sender.Name));
 }