Esempio n. 1
0
        private void btnSearch_Click(object sender, EventArgs e)
        {
            if (Static.ToInt(cboProdType.EditValue) == 0)
            {
                InfoPos.List.InventoryList frm = new InfoPos.List.InventoryList(_core);

                frm.ucInventoryList.Browsable = true;

                DialogResult res = frm.ShowDialog();
                if ((res == System.Windows.Forms.DialogResult.OK))
                {
                    cboProdNo.Text = Static.ToStr(frm.ucInventoryList.SelectedRow["INVID"]);
                }
            }
            else if (Static.ToInt(cboProdType.EditValue) == 1)
            {
                InfoPos.List.ServiceList frm = new InfoPos.List.ServiceList(_core);

                frm.ucServiceList.Browsable = true;

                DialogResult res = frm.ShowDialog();
                if ((res == System.Windows.Forms.DialogResult.OK))
                {
                    cboProdNo.Text = Static.ToStr(frm.ucServiceList.SelectedRow["SERVID"]);
                }
            }
        }
Esempio n. 2
0
        public void CallServiceList(object[] param)                 //Үйлчилгээний жагсаалт дуудах
        {
            _core = (Core.Core)param[0];

            InfoPos.List.ServiceList frm = new InfoPos.List.ServiceList(_core);
            frm.MdiParent = _core.MainForm;
            frm.Show();
        }